@things-factory/reference-app 4.0.1 → 4.0.5

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 (764) hide show
  1. package/attachments/69808491-8e6b-45e2-9bf8-dccea1c5b52e.png +0 -0
  2. package/attachments/7927fe8e-2246-453d-9869-7072b983437c.png +0 -0
  3. package/attachments/7d150574-01b8-4439-96a0-d57299f3ffcf.png +0 -0
  4. package/attachments/a1cf142c-f3c2-442c-b8d5-a7f9cc6a59b3.png +0 -0
  5. package/attachments/cb3ac834-ece0-4802-bef0-dfdc0fcd93bd.png +0 -0
  6. package/client/bootstrap.js +30 -0
  7. package/client/components/camera-capturer.js +29 -2
  8. package/client/components/ocr-viewpart.js +79 -0
  9. package/client/menu.js +1 -1
  10. package/client/pages/grist-mode-page.js +1 -3
  11. package/client/pages/label-scan-page.js +189 -0
  12. package/client/pages/ocr-page.js +4 -3
  13. package/client/route.js +4 -0
  14. package/config/config.development.js +5 -1
  15. package/db.sqlite +0 -0
  16. package/dist-server/service/reference/lambda-call.js +68 -0
  17. package/dist-server/service/reference/lambda-call.js.map +1 -0
  18. package/dist-server/service/reference/reference-query.js +26 -4
  19. package/dist-server/service/reference/reference-query.js.map +1 -1
  20. package/logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json +8 -3
  21. package/logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json +12 -37
  22. package/logs/application-2021-11-04-14.log +4 -0
  23. package/logs/application-2021-11-05-18.log +6 -0
  24. package/{dist-client/helps/scene/component/image-view.md → logs/connections-2021-11-02-11.log} +0 -0
  25. package/logs/{connections-2021-11-02-12.log → connections-2021-11-03-11.log} +0 -0
  26. package/logs/{connections-2021-11-02-13.log → connections-2021-11-04-14.log} +0 -0
  27. package/logs/{connections-2021-11-02-14.log → connections-2021-11-05-18.log} +0 -0
  28. package/package.json +41 -40
  29. package/server/service/reference/lambda-call.ts +69 -0
  30. package/server/service/reference/reference-query.ts +35 -7
  31. package/things-factory.config.js +4 -0
  32. package/attachments/05284c84-1330-4b54-a698-bcd3020d9d90.png +0 -0
  33. package/attachments/3a328a7f-b7fd-4ea1-9c4c-005e24e1e897.png +0 -0
  34. package/attachments/4412432a-b79b-49b8-81b2-af6b927703b4.png +0 -0
  35. package/attachments/60ca3d2a-cfa4-4f14-b952-a96be9f64f96.png +0 -0
  36. package/attachments/90ea058c-ed47-4802-a694-bce0e86c217f.png +0 -0
  37. package/attachments/9c92e78d-afcb-4d62-b51e-f73f15211314.png +0 -0
  38. package/attachments/b27517ec-f2ac-4735-9d8a-353af2fa5f67.png +0 -0
  39. package/attachments/cc7892b9-fca6-49f9-a10b-3febeef83fd2.png +0 -0
  40. package/attachments/dbf0459a-4f1a-44c6-a4fc-d73adc3e4cfa.png +0 -0
  41. package/dist-client/17.js +0 -6
  42. package/dist-client/18.js +0 -15
  43. package/dist-client/19.js +0 -15
  44. package/dist-client/20.js +0 -15
  45. package/dist-client/21.js +0 -15
  46. package/dist-client/22.js +0 -1
  47. package/dist-client/23.js +0 -1
  48. package/dist-client/24.js +0 -1
  49. package/dist-client/25.js +0 -1
  50. package/dist-client/26.js +0 -1
  51. package/dist-client/27.js +0 -1
  52. package/dist-client/28.js +0 -1
  53. package/dist-client/29.js +0 -1
  54. package/dist-client/30.js +0 -12
  55. package/dist-client/31.js +0 -1
  56. package/dist-client/32.js +0 -17
  57. package/dist-client/33.js +0 -1
  58. package/dist-client/34.js +0 -1
  59. package/dist-client/35.js +0 -1
  60. package/dist-client/36.js +0 -1
  61. package/dist-client/37.js +0 -1
  62. package/dist-client/38.js +0 -1
  63. package/dist-client/39.js +0 -1
  64. package/dist-client/40.js +0 -1
  65. package/dist-client/41.js +0 -1
  66. package/dist-client/42.js +0 -1
  67. package/dist-client/43.js +0 -1
  68. package/dist-client/44.js +0 -1
  69. package/dist-client/45.js +0 -1
  70. package/dist-client/46.js +0 -1
  71. package/dist-client/47.js +0 -1
  72. package/dist-client/48.js +0 -1
  73. package/dist-client/49.js +0 -1
  74. package/dist-client/50.js +0 -1
  75. package/dist-client/51.js +0 -1
  76. package/dist-client/52.js +0 -1
  77. package/dist-client/53.js +0 -1
  78. package/dist-client/54.js +0 -1
  79. package/dist-client/55.js +0 -1
  80. package/dist-client/56.js +0 -1
  81. package/dist-client/57.js +0 -1
  82. package/dist-client/58.js +0 -1
  83. package/dist-client/59.js +0 -1
  84. package/dist-client/60.js +0 -1
  85. package/dist-client/61.js +0 -1
  86. package/dist-client/assets/bar-chart.png +0 -0
  87. package/dist-client/assets/beacon.png +0 -0
  88. package/dist-client/assets/button.png +0 -0
  89. package/dist-client/assets/clock-analog.png +0 -0
  90. package/dist-client/assets/clock-digital.png +0 -0
  91. package/dist-client/assets/doughnut-chart.png +0 -0
  92. package/dist-client/assets/favicon.ico +0 -0
  93. package/dist-client/assets/fieldset.png +0 -0
  94. package/dist-client/assets/form.png +0 -0
  95. package/dist-client/assets/gauge-circle.png +0 -0
  96. package/dist-client/assets/gauge-horizontal.png +0 -0
  97. package/dist-client/assets/gauge-vertical.png +0 -0
  98. package/dist-client/assets/half-round-rect.png +0 -0
  99. package/dist-client/assets/helps/index.md +0 -1
  100. package/dist-client/assets/horizontal-bar-chart.png +0 -0
  101. package/dist-client/assets/icon-embed.png +0 -0
  102. package/dist-client/assets/icon-news-ticker.png +0 -0
  103. package/dist-client/assets/icon-radio-group.png +0 -0
  104. package/dist-client/assets/icon-simple-switch.png +0 -0
  105. package/dist-client/assets/icon-video.png +0 -0
  106. package/dist-client/assets/iframe.png +0 -0
  107. package/dist-client/assets/images/3d.ico +0 -0
  108. package/dist-client/assets/images/background-animation.json +0 -1
  109. package/dist-client/assets/images/barcode.ico +0 -0
  110. package/dist-client/assets/images/barcode.png +0 -0
  111. package/dist-client/assets/images/bg-auth-ui.png +0 -0
  112. package/dist-client/assets/images/bg-blue.png +0 -0
  113. package/dist-client/assets/images/bg-green.png +0 -0
  114. package/dist-client/assets/images/bg-input-select.png +0 -0
  115. package/dist-client/assets/images/bg-rail.png +0 -0
  116. package/dist-client/assets/images/chart.ico +0 -0
  117. package/dist-client/assets/images/cj.ico +0 -0
  118. package/dist-client/assets/images/components/audio.png +0 -0
  119. package/dist-client/assets/images/components/both-arrow.png +0 -0
  120. package/dist-client/assets/images/components/color-image.png +0 -0
  121. package/dist-client/assets/images/components/container.png +0 -0
  122. package/dist-client/assets/images/components/dash.png +0 -0
  123. package/dist-client/assets/images/components/donut.png +0 -0
  124. package/dist-client/assets/images/components/ellipse.png +0 -0
  125. package/dist-client/assets/images/components/forklift.png +0 -0
  126. package/dist-client/assets/images/components/gif-image.png +0 -0
  127. package/dist-client/assets/images/components/global-reference.png +0 -0
  128. package/dist-client/assets/images/components/gray-image.png +0 -0
  129. package/dist-client/assets/images/components/humidity-sensor.png +0 -0
  130. package/dist-client/assets/images/components/info-window.png +0 -0
  131. package/dist-client/assets/images/components/line.png +0 -0
  132. package/dist-client/assets/images/components/local-reference.png +0 -0
  133. package/dist-client/assets/images/components/no-image.png +0 -0
  134. package/dist-client/assets/images/components/person.png +0 -0
  135. package/dist-client/assets/images/components/polygon.png +0 -0
  136. package/dist-client/assets/images/components/polyline.png +0 -0
  137. package/dist-client/assets/images/components/rect.png +0 -0
  138. package/dist-client/assets/images/components/single-arrow.png +0 -0
  139. package/dist-client/assets/images/components/star.png +0 -0
  140. package/dist-client/assets/images/components/text.png +0 -0
  141. package/dist-client/assets/images/components/triangle.png +0 -0
  142. package/dist-client/assets/images/ellipse.ico +0 -0
  143. package/dist-client/assets/images/etc.ico +0 -0
  144. package/dist-client/assets/images/forklift.png +0 -0
  145. package/dist-client/assets/images/gauge.ico +0 -0
  146. package/dist-client/assets/images/hatiolab-logo.bac71281.png +0 -0
  147. package/dist-client/assets/images/hatiolab-logo.png +0 -0
  148. package/dist-client/assets/images/home.png +0 -0
  149. package/dist-client/assets/images/icon-activate.png +0 -0
  150. package/dist-client/assets/images/icon-backinfo.png +0 -0
  151. package/dist-client/assets/images/icon-brand.png +0 -0
  152. package/dist-client/assets/images/icon-close.png +0 -0
  153. package/dist-client/assets/images/icon-collapse-active.png +0 -0
  154. package/dist-client/assets/images/icon-collapse.png +0 -0
  155. package/dist-client/assets/images/icon-congratulations.png +0 -0
  156. package/dist-client/assets/images/icon-domain.png +0 -0
  157. package/dist-client/assets/images/icon-editor-gradient-direction.png +0 -0
  158. package/dist-client/assets/images/icon-fullscreen.png +0 -0
  159. package/dist-client/assets/images/icon-htoolbar.png +0 -0
  160. package/dist-client/assets/images/icon-mobile-brand.png +0 -0
  161. package/dist-client/assets/images/icon-nametag.png +0 -0
  162. package/dist-client/assets/images/icon-pallet-barcode.png +0 -0
  163. package/dist-client/assets/images/icon-profile.png +0 -0
  164. package/dist-client/assets/images/icon-properties-arrow-type.png +0 -0
  165. package/dist-client/assets/images/icon-properties-gradient-direction.png +0 -0
  166. package/dist-client/assets/images/icon-properties-ipattern.png +0 -0
  167. package/dist-client/assets/images/icon-properties-label.png +0 -0
  168. package/dist-client/assets/images/icon-properties-line-type.png +0 -0
  169. package/dist-client/assets/images/icon-properties-padding.png +0 -0
  170. package/dist-client/assets/images/icon-properties-ratio.png +0 -0
  171. package/dist-client/assets/images/icon-properties-table.png +0 -0
  172. package/dist-client/assets/images/icon-properties.png +0 -0
  173. package/dist-client/assets/images/icon-resource-select.png +0 -0
  174. package/dist-client/assets/images/icon-result.png +0 -0
  175. package/dist-client/assets/images/icon-setting.png +0 -0
  176. package/dist-client/assets/images/icon-shell-inspector.png +0 -0
  177. package/dist-client/assets/images/icon-vtoolbar-objects.png +0 -0
  178. package/dist-client/assets/images/icon-vtoolbar.png +0 -0
  179. package/dist-client/assets/images/invitation.png +0 -0
  180. package/dist-client/assets/images/line.ico +0 -0
  181. package/dist-client/assets/images/media.ico +0 -0
  182. package/dist-client/assets/images/person.png +0 -0
  183. package/dist-client/assets/images/poly.ico +0 -0
  184. package/dist-client/assets/images/profile.png +0 -0
  185. package/dist-client/assets/images/rect.ico +0 -0
  186. package/dist-client/assets/images/shape.ico +0 -0
  187. package/dist-client/assets/images/spinner.png +0 -0
  188. package/dist-client/assets/images/table.ico +0 -0
  189. package/dist-client/assets/images/text.ico +0 -0
  190. package/dist-client/assets/images/warehouse.ico +0 -0
  191. package/dist-client/assets/img.png +0 -0
  192. package/dist-client/assets/indoor-map.png +0 -0
  193. package/dist-client/assets/input-checkbox.png +0 -0
  194. package/dist-client/assets/input-color.png +0 -0
  195. package/dist-client/assets/input-date.png +0 -0
  196. package/dist-client/assets/input-email.png +0 -0
  197. package/dist-client/assets/input-file.png +0 -0
  198. package/dist-client/assets/input-number.png +0 -0
  199. package/dist-client/assets/input-password.png +0 -0
  200. package/dist-client/assets/input-radio.png +0 -0
  201. package/dist-client/assets/input-range.png +0 -0
  202. package/dist-client/assets/input-reset.png +0 -0
  203. package/dist-client/assets/input-search.png +0 -0
  204. package/dist-client/assets/input-submit.png +0 -0
  205. package/dist-client/assets/input-text.png +0 -0
  206. package/dist-client/assets/line-chart.png +0 -0
  207. package/dist-client/assets/link.png +0 -0
  208. package/dist-client/assets/manifest/apple-1024.png +0 -0
  209. package/dist-client/assets/manifest/apple-120.png +0 -0
  210. package/dist-client/assets/manifest/apple-152.png +0 -0
  211. package/dist-client/assets/manifest/apple-167.png +0 -0
  212. package/dist-client/assets/manifest/apple-180.png +0 -0
  213. package/dist-client/assets/manifest/apple-touch-icon.png +0 -0
  214. package/dist-client/assets/manifest/badge-128x128.png +0 -0
  215. package/dist-client/assets/manifest/chrome-splashscreen-icon-384x384.png +0 -0
  216. package/dist-client/assets/manifest/chrome-touch-icon-192x192.png +0 -0
  217. package/dist-client/assets/manifest/icon-128x128.png +0 -0
  218. package/dist-client/assets/manifest/icon-192x192.png +0 -0
  219. package/dist-client/assets/manifest/icon-512x512.png +0 -0
  220. package/dist-client/assets/manifest/icon-72x72.png +0 -0
  221. package/dist-client/assets/manifest/icon-96x96.png +0 -0
  222. package/dist-client/assets/manifest/image-metaog.png +0 -0
  223. package/dist-client/assets/manifest/maskable_icon.png +0 -0
  224. package/dist-client/assets/manifest/ms-icon-144x144.png +0 -0
  225. package/dist-client/assets/manifest/ms-touch-icon-144x144-precomposed.png +0 -0
  226. package/dist-client/assets/manifest.json +0 -27
  227. package/dist-client/assets/mixed-chart.png +0 -0
  228. package/dist-client/assets/no-image.png +0 -0
  229. package/dist-client/assets/pie-chart.png +0 -0
  230. package/dist-client/assets/polar-area-chart.png +0 -0
  231. package/dist-client/assets/progress-circle.png +0 -0
  232. package/dist-client/assets/progress-horizontal.png +0 -0
  233. package/dist-client/assets/progress-vertical.png +0 -0
  234. package/dist-client/assets/rack.png +0 -0
  235. package/dist-client/assets/radar-chart.png +0 -0
  236. package/dist-client/assets/random.png +0 -0
  237. package/dist-client/assets/scripts/markdown-webworker.js +0 -30
  238. package/dist-client/assets/select.png +0 -0
  239. package/dist-client/assets/tab.png +0 -0
  240. package/dist-client/assets/textarea.png +0 -0
  241. package/dist-client/auth/activate.js +0 -362
  242. package/dist-client/auth/checkin.js +0 -310
  243. package/dist-client/auth/forgot-password.js +0 -467
  244. package/dist-client/auth/reset-password.js +0 -467
  245. package/dist-client/auth/result.js +0 -379
  246. package/dist-client/auth/signin.js +0 -450
  247. package/dist-client/auth/signup.js +0 -450
  248. package/dist-client/auth/unlock-user.js +0 -467
  249. package/dist-client/headless-scene-components.js +0 -401
  250. package/dist-client/helps/about/components.md +0 -3
  251. package/dist-client/helps/about/framework/redirection.md +0 -45
  252. package/dist-client/helps/about/framework/typegraphql.md +0 -74
  253. package/dist-client/helps/about/framework.md +0 -10
  254. package/dist-client/helps/about/modules.md +0 -7
  255. package/dist-client/helps/about/things-factory.en.md +0 -255
  256. package/dist-client/helps/about/things-factory.ko.md +0 -258
  257. package/dist-client/helps/auth/appliance.en.md +0 -22
  258. package/dist-client/helps/auth/appliance.ko.md +0 -40
  259. package/dist-client/helps/auth/application.en.md +0 -33
  260. package/dist-client/helps/auth/images/app-binding.png +0 -0
  261. package/dist-client/helps/auth/images/appliance-generate-key.png +0 -0
  262. package/dist-client/helps/auth/images/appliance-sandbox-auth-1.png +0 -0
  263. package/dist-client/helps/auth/images/appliance-sandbox-auth-2.png +0 -0
  264. package/dist-client/helps/auth/images/appliance-sandbox-auth-3.png +0 -0
  265. package/dist-client/helps/auth/images/application-hub.png +0 -0
  266. package/dist-client/helps/auth/images/authorization-postman.png +0 -0
  267. package/dist-client/helps/auth/images/create-button2.png +0 -0
  268. package/dist-client/helps/auth/images/create-role.png +0 -0
  269. package/dist-client/helps/auth/images/flowchart-appliance-registration.jpg +0 -0
  270. package/dist-client/helps/auth/images/flowchart-role-management.jpg +0 -0
  271. package/dist-client/helps/auth/images/flowchart-user-account.jpg +0 -0
  272. package/dist-client/helps/auth/images/invite-user.png +0 -0
  273. package/dist-client/helps/auth/images/owner-transfer-confirm.png +0 -0
  274. package/dist-client/helps/auth/images/owner-transfer.png +0 -0
  275. package/dist-client/helps/auth/images/postman.png +0 -0
  276. package/dist-client/helps/auth/images/register-appliance-new.png +0 -0
  277. package/dist-client/helps/auth/images/register-appliance.png +0 -0
  278. package/dist-client/helps/auth/images/register-application.png +0 -0
  279. package/dist-client/helps/auth/images/registered-role.png +0 -0
  280. package/dist-client/helps/auth/images/role-list.png +0 -0
  281. package/dist-client/helps/auth/images/role-privilage.png +0 -0
  282. package/dist-client/helps/auth/images/role-privileges.png +0 -0
  283. package/dist-client/helps/auth/images/save-button2.png +0 -0
  284. package/dist-client/helps/auth/images/save-button3.png +0 -0
  285. package/dist-client/helps/auth/images/transfer-owner.png +0 -0
  286. package/dist-client/helps/auth/images/update-roles.png +0 -0
  287. package/dist-client/helps/auth/images/user-delete.png +0 -0
  288. package/dist-client/helps/auth/images/user-error.png +0 -0
  289. package/dist-client/helps/auth/images/user-invite.png +0 -0
  290. package/dist-client/helps/auth/images/user-roles.png +0 -0
  291. package/dist-client/helps/auth/roles.en.md +0 -59
  292. package/dist-client/helps/auth/roles.ko.md +0 -42
  293. package/dist-client/helps/auth/users.en.md +0 -33
  294. package/dist-client/helps/auth/users.ko.md +0 -54
  295. package/dist-client/helps/board-modeller/data-binding.ko.md +0 -86
  296. package/dist-client/helps/board-modeller/data-binding.md +0 -83
  297. package/dist-client/helps/board-modeller/data-binding.zh.md +0 -86
  298. package/dist-client/helps/board-modeller/effects/animation.ko.md +0 -46
  299. package/dist-client/helps/board-modeller/effects/animation.md +0 -47
  300. package/dist-client/helps/board-modeller/effects/animation.zh.md +0 -47
  301. package/dist-client/helps/board-modeller/effects/hover-event.ko.md +0 -55
  302. package/dist-client/helps/board-modeller/effects/hover-event.md +0 -57
  303. package/dist-client/helps/board-modeller/effects/hover-event.zh.md +0 -55
  304. package/dist-client/helps/board-modeller/effects/retention.ko.md +0 -4
  305. package/dist-client/helps/board-modeller/effects/retention.md +0 -4
  306. package/dist-client/helps/board-modeller/effects/retention.zh.md +0 -4
  307. package/dist-client/helps/board-modeller/effects/shadow.ko.md +0 -18
  308. package/dist-client/helps/board-modeller/effects/shadow.md +0 -21
  309. package/dist-client/helps/board-modeller/effects/shadow.zh.md +0 -19
  310. package/dist-client/helps/board-modeller/effects/tap-event.ko.md +0 -74
  311. package/dist-client/helps/board-modeller/effects/tap-event.md +0 -74
  312. package/dist-client/helps/board-modeller/effects/tap-event.zh.md +0 -74
  313. package/dist-client/helps/board-modeller/images/animation-01.gif +0 -0
  314. package/dist-client/helps/board-modeller/images/animation-02.gif +0 -0
  315. package/dist-client/helps/board-modeller/images/animation-03.gif +0 -0
  316. package/dist-client/helps/board-modeller/images/animation-04.gif +0 -0
  317. package/dist-client/helps/board-modeller/images/animation-05.gif +0 -0
  318. package/dist-client/helps/board-modeller/images/animation-06.gif +0 -0
  319. package/dist-client/helps/board-modeller/images/animation-07.gif +0 -0
  320. package/dist-client/helps/board-modeller/images/animation-08.gif +0 -0
  321. package/dist-client/helps/board-modeller/images/animation-09.gif +0 -0
  322. package/dist-client/helps/board-modeller/images/animation-10.gif +0 -0
  323. package/dist-client/helps/board-modeller/images/common-property-text-align-horizontal.png +0 -0
  324. package/dist-client/helps/board-modeller/images/common-property-text-align-vertical.png +0 -0
  325. package/dist-client/helps/board-modeller/images/common-property-text-margin.png +0 -0
  326. package/dist-client/helps/board-modeller/images/component-3D.png +0 -0
  327. package/dist-client/helps/board-modeller/images/component-arrow.png +0 -0
  328. package/dist-client/helps/board-modeller/images/component-chart-gauge.png +0 -0
  329. package/dist-client/helps/board-modeller/images/component-container.png +0 -0
  330. package/dist-client/helps/board-modeller/images/component-datasource.png +0 -0
  331. package/dist-client/helps/board-modeller/images/component-etc.png +0 -0
  332. package/dist-client/helps/board-modeller/images/component-form.png +0 -0
  333. package/dist-client/helps/board-modeller/images/component-gauge.png +0 -0
  334. package/dist-client/helps/board-modeller/images/component-image.png +0 -0
  335. package/dist-client/helps/board-modeller/images/component-iot.png +0 -0
  336. package/dist-client/helps/board-modeller/images/component-line.png +0 -0
  337. package/dist-client/helps/board-modeller/images/component-shape.png +0 -0
  338. package/dist-client/helps/board-modeller/images/component-table.png +0 -0
  339. package/dist-client/helps/board-modeller/images/component-text-media.png +0 -0
  340. package/dist-client/helps/board-modeller/images/component-toolbar.png +0 -0
  341. package/dist-client/helps/board-modeller/images/component-warehouse.png +0 -0
  342. package/dist-client/helps/board-modeller/images/control-toolbar-02.png +0 -0
  343. package/dist-client/helps/board-modeller/images/control-toolbar-03.png +0 -0
  344. package/dist-client/helps/board-modeller/images/control-toolbar-04.png +0 -0
  345. package/dist-client/helps/board-modeller/images/control-toolbar-05.png +0 -0
  346. package/dist-client/helps/board-modeller/images/control-toolbar-06.png +0 -0
  347. package/dist-client/helps/board-modeller/images/control-toolbar-07.png +0 -0
  348. package/dist-client/helps/board-modeller/images/control-toolbar-08.png +0 -0
  349. package/dist-client/helps/board-modeller/images/control-toolbar-09.png +0 -0
  350. package/dist-client/helps/board-modeller/images/control-toolbar-10.png +0 -0
  351. package/dist-client/helps/board-modeller/images/control-toolbar-11.png +0 -0
  352. package/dist-client/helps/board-modeller/images/control-toolbar-12.png +0 -0
  353. package/dist-client/helps/board-modeller/images/control-toolbar-13.png +0 -0
  354. package/dist-client/helps/board-modeller/images/control-toolbar-14.png +0 -0
  355. package/dist-client/helps/board-modeller/images/control-toolbar-15.png +0 -0
  356. package/dist-client/helps/board-modeller/images/control-toolbar-16.png +0 -0
  357. package/dist-client/helps/board-modeller/images/control-toolbar-17.png +0 -0
  358. package/dist-client/helps/board-modeller/images/control-toolbar-18.png +0 -0
  359. package/dist-client/helps/board-modeller/images/control-toolbar-19.png +0 -0
  360. package/dist-client/helps/board-modeller/images/control-toolbar-20.png +0 -0
  361. package/dist-client/helps/board-modeller/images/control-toolbar-21.png +0 -0
  362. package/dist-client/helps/board-modeller/images/control-toolbar-22.png +0 -0
  363. package/dist-client/helps/board-modeller/images/control-toolbar-23.png +0 -0
  364. package/dist-client/helps/board-modeller/images/control-toolbar-24.png +0 -0
  365. package/dist-client/helps/board-modeller/images/control-toolbar-25.png +0 -0
  366. package/dist-client/helps/board-modeller/images/control-toolbar-26.png +0 -0
  367. package/dist-client/helps/board-modeller/images/control-toolbar-27.png +0 -0
  368. package/dist-client/helps/board-modeller/images/control-toolbar-28.png +0 -0
  369. package/dist-client/helps/board-modeller/images/control-toolbar-29.png +0 -0
  370. package/dist-client/helps/board-modeller/images/control-toolbar-30.png +0 -0
  371. package/dist-client/helps/board-modeller/images/control-toolbar-31.png +0 -0
  372. package/dist-client/helps/board-modeller/images/control-toolbar-32.png +0 -0
  373. package/dist-client/helps/board-modeller/images/control-toolbar.png +0 -0
  374. package/dist-client/helps/board-modeller/images/effect-property.png +0 -0
  375. package/dist-client/helps/board-modeller/images/hover-01.png +0 -0
  376. package/dist-client/helps/board-modeller/images/join-type-bevel.png +0 -0
  377. package/dist-client/helps/board-modeller/images/join-type-miter.png +0 -0
  378. package/dist-client/helps/board-modeller/images/join-type-round.png +0 -0
  379. package/dist-client/helps/board-modeller/images/modeler-layout-01.png +0 -0
  380. package/dist-client/helps/board-modeller/images/property-window.png +0 -0
  381. package/dist-client/helps/board-modeller/images/shadow-02.png +0 -0
  382. package/dist-client/helps/board-modeller/images/shadow-03.png +0 -0
  383. package/dist-client/helps/board-modeller/images/shadow-04.png +0 -0
  384. package/dist-client/helps/board-modeller/images/shadow-05.png +0 -0
  385. package/dist-client/helps/board-modeller/images/shape-property.png +0 -0
  386. package/dist-client/helps/board-modeller/images/specific-property.png +0 -0
  387. package/dist-client/helps/board-modeller/images/style-property.png +0 -0
  388. package/dist-client/helps/board-modeller/images/target-property.png +0 -0
  389. package/dist-client/helps/board-modeller/images/variable-property.png +0 -0
  390. package/dist-client/helps/board-modeller/modeller.ko.md +0 -244
  391. package/dist-client/helps/board-modeller/modeller.md +0 -206
  392. package/dist-client/helps/board-modeller/modeller.zh.md +0 -241
  393. package/dist-client/helps/board-modeller/shapes/3dish.ko.md +0 -3
  394. package/dist-client/helps/board-modeller/shapes/3dish.md +0 -3
  395. package/dist-client/helps/board-modeller/shapes/3dish.zh.md +0 -3
  396. package/dist-client/helps/board-modeller/shapes/print-option.ko.md +0 -3
  397. package/dist-client/helps/board-modeller/shapes/print-option.md +0 -3
  398. package/dist-client/helps/board-modeller/shapes/print-option.zh.md +0 -3
  399. package/dist-client/helps/board-modeller/shapes/shapes.ko.md +0 -15
  400. package/dist-client/helps/board-modeller/shapes/shapes.md +0 -18
  401. package/dist-client/helps/board-modeller/shapes/shapes.zh.md +0 -16
  402. package/dist-client/helps/board-modeller/shapes/size.ko.md +0 -5
  403. package/dist-client/helps/board-modeller/shapes/size.md +0 -5
  404. package/dist-client/helps/board-modeller/shapes/size.zh.md +0 -5
  405. package/dist-client/helps/board-modeller/shapes/text-box.ko.md +0 -19
  406. package/dist-client/helps/board-modeller/shapes/text-box.md +0 -18
  407. package/dist-client/helps/board-modeller/shapes/text-box.zh.md +0 -18
  408. package/dist-client/helps/board-modeller/shapes/viewer-option.ko.md +0 -8
  409. package/dist-client/helps/board-modeller/shapes/viewer-option.md +0 -8
  410. package/dist-client/helps/board-modeller/shapes/viewer-option.zh.md +0 -8
  411. package/dist-client/helps/board-modeller/styles/fill-style.ko.md +0 -17
  412. package/dist-client/helps/board-modeller/styles/fill-style.md +0 -17
  413. package/dist-client/helps/board-modeller/styles/fill-style.zh.md +0 -17
  414. package/dist-client/helps/board-modeller/styles/line-style.ko.md +0 -19
  415. package/dist-client/helps/board-modeller/styles/line-style.md +0 -23
  416. package/dist-client/helps/board-modeller/styles/line-style.zh.md +0 -19
  417. package/dist-client/helps/board-modeller/styles/opacity.ko.md +0 -3
  418. package/dist-client/helps/board-modeller/styles/opacity.md +0 -3
  419. package/dist-client/helps/board-modeller/styles/opacity.zh.md +0 -3
  420. package/dist-client/helps/board-modeller/styles/text-style.ko.md +0 -8
  421. package/dist-client/helps/board-modeller/styles/text-style.md +0 -8
  422. package/dist-client/helps/board-modeller/styles/text-style.zh.md +0 -8
  423. package/dist-client/helps/components/oops-progress.md +0 -73
  424. package/dist-client/helps/index.md +0 -1
  425. package/dist-client/helps/integration/concept/connection.md +0 -27
  426. package/dist-client/helps/integration/concept/context.md +0 -83
  427. package/dist-client/helps/integration/concept/data-accessor.md +0 -9
  428. package/dist-client/helps/integration/concept/pending-queue.md +0 -32
  429. package/dist-client/helps/integration/concept/scenario-engine.md +0 -10
  430. package/dist-client/helps/integration/concept/scenario.md +0 -4
  431. package/dist-client/helps/integration/concept/task.md +0 -25
  432. package/dist-client/helps/integration/connector/mqtt-connector.md +0 -17
  433. package/dist-client/helps/integration/connector/mssql-connector.md +0 -34
  434. package/dist-client/helps/integration/connector/oracle-connector.md +0 -66
  435. package/dist-client/helps/integration/connector/postgresql-connector.md +0 -34
  436. package/dist-client/helps/integration/connector/sqlite-connector.md +0 -17
  437. package/dist-client/helps/integration/index.md +0 -37
  438. package/dist-client/helps/integration/task/book-up-scenario.md +0 -24
  439. package/dist-client/helps/integration/task/end.md +0 -3
  440. package/dist-client/helps/integration/task/floating-point.md +0 -34
  441. package/dist-client/helps/integration/task/goto.md +0 -8
  442. package/dist-client/helps/integration/task/local-graphql-mutate.md +0 -21
  443. package/dist-client/helps/integration/task/local-graphql-query.md +0 -21
  444. package/dist-client/helps/integration/task/log.md +0 -14
  445. package/dist-client/helps/integration/task/mqtt-publish.md +0 -10
  446. package/dist-client/helps/integration/task/mqtt-subscribe.md +0 -15
  447. package/dist-client/helps/integration/task/pick-pending-scenario.md +0 -13
  448. package/dist-client/helps/integration/task/publish.md +0 -16
  449. package/dist-client/helps/integration/task/script.md +0 -39
  450. package/dist-client/helps/integration/task/sleep.md +0 -8
  451. package/dist-client/helps/integration/task/throw.md +0 -12
  452. package/dist-client/helps/integration/task/variables.md +0 -37
  453. package/dist-client/helps/integration/ui/connection.md +0 -16
  454. package/dist-client/helps/integration/ui/crontab-editor.md +0 -9
  455. package/dist-client/helps/integration/ui/integration-monitor.md +0 -29
  456. package/dist-client/helps/integration/ui/scenario-detail.md +0 -35
  457. package/dist-client/helps/integration/ui/scenario.md +0 -35
  458. package/dist-client/helps/module/api.md +0 -117
  459. package/dist-client/helps/module/dashboard.md +0 -27
  460. package/dist-client/helps/module/help.md +0 -40
  461. package/dist-client/helps/module/lite-menu.md +0 -112
  462. package/dist-client/helps/module/notification-images/config-app-1.png +0 -0
  463. package/dist-client/helps/module/notification-images/config-app-2.png +0 -0
  464. package/dist-client/helps/module/notification-images/config-server-key.png +0 -0
  465. package/dist-client/helps/module/notification-images/config-service-account.png +0 -0
  466. package/dist-client/helps/module/notification-images/config-vapidkey-1.png +0 -0
  467. package/dist-client/helps/module/notification-images/config-vapidkey-2-get-public-key.png +0 -0
  468. package/dist-client/helps/module/notification-images/config-vapidkey-3-get-private-key.png +0 -0
  469. package/dist-client/helps/module/notification-images/element-notification-badge.png +0 -0
  470. package/dist-client/helps/module/notification-images/element-notification-list.png +0 -0
  471. package/dist-client/helps/module/notification-images/element-notification-setting-let.png +0 -0
  472. package/dist-client/helps/module/notification-images/push-test-on-chrome-1.png +0 -0
  473. package/dist-client/helps/module/notification-images/push-test-on-chrome-2.png +0 -0
  474. package/dist-client/helps/module/notification-images/push-test-on-firebase-1.png +0 -0
  475. package/dist-client/helps/module/notification-images/push-test-on-firebase-2.png +0 -0
  476. package/dist-client/helps/module/notification-images/push-test-on-firebase-3.png +0 -0
  477. package/dist-client/helps/module/notification-images/push-test-on-firebase-4.png +0 -0
  478. package/dist-client/helps/module/notification.md +0 -161
  479. package/dist-client/helps/oauth2-client/code-verifier.md +0 -5
  480. package/dist-client/helps/oauth2-client/credentials.md +0 -160
  481. package/dist-client/helps/oauth2-client/grant-type.md +0 -33
  482. package/dist-client/helps/scene/component/analog-clock.ko.md +0 -6
  483. package/dist-client/helps/scene/component/analog-clock.md +0 -8
  484. package/dist-client/helps/scene/component/analog-clock.zh.md +0 -6
  485. package/dist-client/helps/scene/component/arrow.ko.md +0 -9
  486. package/dist-client/helps/scene/component/arrow.md +0 -9
  487. package/dist-client/helps/scene/component/arrow.zh.md +0 -9
  488. package/dist-client/helps/scene/component/audio.ko.md +0 -1
  489. package/dist-client/helps/scene/component/audio.md +0 -1
  490. package/dist-client/helps/scene/component/audio.zh.md +0 -1
  491. package/dist-client/helps/scene/component/both-arrow.ko.md +0 -9
  492. package/dist-client/helps/scene/component/both-arrow.md +0 -9
  493. package/dist-client/helps/scene/component/both-arrow.zh.md +0 -9
  494. package/dist-client/helps/scene/component/chartjs.ko.md +0 -332
  495. package/dist-client/helps/scene/component/chartjs.md +0 -333
  496. package/dist-client/helps/scene/component/chartjs.zh.md +0 -331
  497. package/dist-client/helps/scene/component/color-image.ko.md +0 -9
  498. package/dist-client/helps/scene/component/color-image.md +0 -9
  499. package/dist-client/helps/scene/component/color-image.zh.md +0 -9
  500. package/dist-client/helps/scene/component/container.ko.md +0 -7
  501. package/dist-client/helps/scene/component/container.md +0 -9
  502. package/dist-client/helps/scene/component/container.zh.md +0 -8
  503. package/dist-client/helps/scene/component/donut.ko.md +0 -14
  504. package/dist-client/helps/scene/component/donut.md +0 -17
  505. package/dist-client/helps/scene/component/donut.zh.md +0 -18
  506. package/dist-client/helps/scene/component/dotted-line.ko.md +0 -7
  507. package/dist-client/helps/scene/component/dotted-line.md +0 -9
  508. package/dist-client/helps/scene/component/dotted-line.zh.md +0 -7
  509. package/dist-client/helps/scene/component/ellipse.ko.md +0 -11
  510. package/dist-client/helps/scene/component/ellipse.md +0 -11
  511. package/dist-client/helps/scene/component/ellipse.zh.md +0 -10
  512. package/dist-client/helps/scene/component/gauge-circle.ko.md +0 -168
  513. package/dist-client/helps/scene/component/gauge-circle.md +0 -167
  514. package/dist-client/helps/scene/component/gauge-circle.zh.md +0 -164
  515. package/dist-client/helps/scene/component/gauge-horizon.ko.md +0 -145
  516. package/dist-client/helps/scene/component/gauge-horizon.md +0 -145
  517. package/dist-client/helps/scene/component/gauge-horizon.zh.md +0 -145
  518. package/dist-client/helps/scene/component/gauge-vertical.ko.md +0 -12
  519. package/dist-client/helps/scene/component/gauge-vertical.md +0 -9
  520. package/dist-client/helps/scene/component/gauge-vertical.zh.md +0 -10
  521. package/dist-client/helps/scene/component/gif-view.ko.md +0 -10
  522. package/dist-client/helps/scene/component/gif-view.md +0 -10
  523. package/dist-client/helps/scene/component/gif-view.zh.md +0 -10
  524. package/dist-client/helps/scene/component/global-ref.ko.md +0 -1
  525. package/dist-client/helps/scene/component/global-ref.md +0 -1
  526. package/dist-client/helps/scene/component/global-ref.zh.md +0 -1
  527. package/dist-client/helps/scene/component/gray-image.ko.md +0 -9
  528. package/dist-client/helps/scene/component/gray-image.md +0 -9
  529. package/dist-client/helps/scene/component/gray-image.zh.md +0 -8
  530. package/dist-client/helps/scene/component/indoor-map.ko.md +0 -65
  531. package/dist-client/helps/scene/component/indoor-map.md +0 -65
  532. package/dist-client/helps/scene/component/indoor-map.zh.md +0 -65
  533. package/dist-client/helps/scene/component/info-window.ko.md +0 -1
  534. package/dist-client/helps/scene/component/info-window.md +0 -1
  535. package/dist-client/helps/scene/component/info-window.zh.md +0 -1
  536. package/dist-client/helps/scene/component/input.ko.md +0 -59
  537. package/dist-client/helps/scene/component/input.md +0 -59
  538. package/dist-client/helps/scene/component/input.zh.md +0 -58
  539. package/dist-client/helps/scene/component/line.ko.md +0 -9
  540. package/dist-client/helps/scene/component/line.md +0 -9
  541. package/dist-client/helps/scene/component/line.zh.md +0 -7
  542. package/dist-client/helps/scene/component/local-ref.ko.md +0 -1
  543. package/dist-client/helps/scene/component/local-ref.md +0 -1
  544. package/dist-client/helps/scene/component/local-ref.zh.md +0 -1
  545. package/dist-client/helps/scene/component/marker.ko.md +0 -15
  546. package/dist-client/helps/scene/component/marker.md +0 -15
  547. package/dist-client/helps/scene/component/marker.zh.md +0 -15
  548. package/dist-client/helps/scene/component/news-ticker.ko.md +0 -27
  549. package/dist-client/helps/scene/component/news-ticker.md +0 -27
  550. package/dist-client/helps/scene/component/news-ticker.zh.md +0 -27
  551. package/dist-client/helps/scene/component/polygon.ko.md +0 -9
  552. package/dist-client/helps/scene/component/polygon.md +0 -9
  553. package/dist-client/helps/scene/component/polygon.zh.md +0 -9
  554. package/dist-client/helps/scene/component/polyline.ko.md +0 -10
  555. package/dist-client/helps/scene/component/polyline.md +0 -10
  556. package/dist-client/helps/scene/component/polyline.zh.md +0 -10
  557. package/dist-client/helps/scene/component/progress-circle.ko.md +0 -41
  558. package/dist-client/helps/scene/component/progress-circle.md +0 -42
  559. package/dist-client/helps/scene/component/progress-circle.zh.md +0 -39
  560. package/dist-client/helps/scene/component/progress-horizontal.ko.md +0 -37
  561. package/dist-client/helps/scene/component/progress-horizontal.md +0 -31
  562. package/dist-client/helps/scene/component/progress-horizontal.zh.md +0 -31
  563. package/dist-client/helps/scene/component/progress-vertical.ko.md +0 -23
  564. package/dist-client/helps/scene/component/progress-vertical.md +0 -24
  565. package/dist-client/helps/scene/component/progress-vertical.zh.md +0 -23
  566. package/dist-client/helps/scene/component/rack.ko.md +0 -17
  567. package/dist-client/helps/scene/component/rack.md +0 -15
  568. package/dist-client/helps/scene/component/rack.zh.md +0 -16
  569. package/dist-client/helps/scene/component/random.ko.md +0 -12
  570. package/dist-client/helps/scene/component/random.md +0 -11
  571. package/dist-client/helps/scene/component/random.zh.md +0 -11
  572. package/dist-client/helps/scene/component/rect.ko.md +0 -17
  573. package/dist-client/helps/scene/component/rect.md +0 -16
  574. package/dist-client/helps/scene/component/rect.zh.md +0 -16
  575. package/dist-client/helps/scene/component/simple-switch.ko.md +0 -20
  576. package/dist-client/helps/scene/component/simple-switch.md +0 -19
  577. package/dist-client/helps/scene/component/simple-switch.zh.md +0 -19
  578. package/dist-client/helps/scene/component/star.ko.md +0 -19
  579. package/dist-client/helps/scene/component/star.md +0 -19
  580. package/dist-client/helps/scene/component/star.zh.md +0 -19
  581. package/dist-client/helps/scene/component/tab.ko.md +0 -14
  582. package/dist-client/helps/scene/component/tab.md +0 -13
  583. package/dist-client/helps/scene/component/tab.zh.md +0 -13
  584. package/dist-client/helps/scene/component/text-clock.ko.md +0 -25
  585. package/dist-client/helps/scene/component/text-clock.md +0 -22
  586. package/dist-client/helps/scene/component/text-clock.zh.md +0 -22
  587. package/dist-client/helps/scene/component/text.ko.md +0 -9
  588. package/dist-client/helps/scene/component/text.md +0 -9
  589. package/dist-client/helps/scene/component/text.zh.md +0 -9
  590. package/dist-client/helps/scene/component/top-rounded-ractangle.ko.md +0 -15
  591. package/dist-client/helps/scene/component/top-rounded-ractangle.md +0 -15
  592. package/dist-client/helps/scene/component/top-rounded-ractangle.zh.md +0 -15
  593. package/dist-client/helps/scene/component/triangle.ko.md +0 -9
  594. package/dist-client/helps/scene/component/triangle.md +0 -9
  595. package/dist-client/helps/scene/component/triangle.zh.md +0 -9
  596. package/dist-client/helps/scene/images/both-arrow-01.png +0 -0
  597. package/dist-client/helps/scene/images/button-evnet-mapping-01.png +0 -0
  598. package/dist-client/helps/scene/images/button-evnet-mapping-02.png +0 -0
  599. package/dist-client/helps/scene/images/button-evnet-mapping-03.png +0 -0
  600. package/dist-client/helps/scene/images/chart-bar-01.png +0 -0
  601. package/dist-client/helps/scene/images/chart-bar-02.png +0 -0
  602. package/dist-client/helps/scene/images/chart-bar-03.png +0 -0
  603. package/dist-client/helps/scene/images/chart-bar-08.png +0 -0
  604. package/dist-client/helps/scene/images/chart-bar-12.png +0 -0
  605. package/dist-client/helps/scene/images/chart-data-01.png +0 -0
  606. package/dist-client/helps/scene/images/chart-data-04.png +0 -0
  607. package/dist-client/helps/scene/images/chart-doughnut-01.png +0 -0
  608. package/dist-client/helps/scene/images/chart-horizontal-bar-01.png +0 -0
  609. package/dist-client/helps/scene/images/chart-line-01.png +0 -0
  610. package/dist-client/helps/scene/images/chart-mix-01.png +0 -0
  611. package/dist-client/helps/scene/images/chart-mix-02.png +0 -0
  612. package/dist-client/helps/scene/images/chart-pie-01.png +0 -0
  613. package/dist-client/helps/scene/images/chart-polar-01.png +0 -0
  614. package/dist-client/helps/scene/images/chart-radar-01.png +0 -0
  615. package/dist-client/helps/scene/images/clock-analog-01.png +0 -0
  616. package/dist-client/helps/scene/images/clock-text-01.png +0 -0
  617. package/dist-client/helps/scene/images/clock-text-02.png +0 -0
  618. package/dist-client/helps/scene/images/clock-text-03.png +0 -0
  619. package/dist-client/helps/scene/images/clock-text-04.png +0 -0
  620. package/dist-client/helps/scene/images/container-01.png +0 -0
  621. package/dist-client/helps/scene/images/container-03.png +0 -0
  622. package/dist-client/helps/scene/images/container-04.png +0 -0
  623. package/dist-client/helps/scene/images/dash-01.png +0 -0
  624. package/dist-client/helps/scene/images/donut-01.png +0 -0
  625. package/dist-client/helps/scene/images/donut-02.png +0 -0
  626. package/dist-client/helps/scene/images/ellipse-01.png +0 -0
  627. package/dist-client/helps/scene/images/gauge-circle-01.png +0 -0
  628. package/dist-client/helps/scene/images/gauge-circle-02.png +0 -0
  629. package/dist-client/helps/scene/images/gauge-circle-03.png +0 -0
  630. package/dist-client/helps/scene/images/gauge-circle-04.png +0 -0
  631. package/dist-client/helps/scene/images/gauge-circle-05.png +0 -0
  632. package/dist-client/helps/scene/images/gauge-circle-06.png +0 -0
  633. package/dist-client/helps/scene/images/gauge-circle-07.png +0 -0
  634. package/dist-client/helps/scene/images/gauge-circle-08.png +0 -0
  635. package/dist-client/helps/scene/images/gauge-circle-09.png +0 -0
  636. package/dist-client/helps/scene/images/gauge-circle-10.png +0 -0
  637. package/dist-client/helps/scene/images/gauge-circle-11.png +0 -0
  638. package/dist-client/helps/scene/images/gauge-circle-12.png +0 -0
  639. package/dist-client/helps/scene/images/gauge-circle-13.png +0 -0
  640. package/dist-client/helps/scene/images/gauge-circle-14.png +0 -0
  641. package/dist-client/helps/scene/images/gauge-circle-15.png +0 -0
  642. package/dist-client/helps/scene/images/gauge-circle-16.png +0 -0
  643. package/dist-client/helps/scene/images/gauge-circle-17.png +0 -0
  644. package/dist-client/helps/scene/images/gauge-circle-18.png +0 -0
  645. package/dist-client/helps/scene/images/gauge-circle-19.png +0 -0
  646. package/dist-client/helps/scene/images/gauge-circle-20.png +0 -0
  647. package/dist-client/helps/scene/images/gauge-circle-21.png +0 -0
  648. package/dist-client/helps/scene/images/gauge-horizontal-01.png +0 -0
  649. package/dist-client/helps/scene/images/gauge-vertical-01.png +0 -0
  650. package/dist-client/helps/scene/images/gauge-vertical-02.png +0 -0
  651. package/dist-client/helps/scene/images/gauge-vertical-03.png +0 -0
  652. package/dist-client/helps/scene/images/gauge-vertical-04.png +0 -0
  653. package/dist-client/helps/scene/images/gauge-vertical-05.png +0 -0
  654. package/dist-client/helps/scene/images/gauge-vertical-06.png +0 -0
  655. package/dist-client/helps/scene/images/gauge-vertical-07.png +0 -0
  656. package/dist-client/helps/scene/images/gauge-vertical-08.png +0 -0
  657. package/dist-client/helps/scene/images/gauge-vertical-09.png +0 -0
  658. package/dist-client/helps/scene/images/gauge-vertical-10.png +0 -0
  659. package/dist-client/helps/scene/images/gauge-vertical-11.png +0 -0
  660. package/dist-client/helps/scene/images/gauge-vertical-12.png +0 -0
  661. package/dist-client/helps/scene/images/gauge-vertical-13.png +0 -0
  662. package/dist-client/helps/scene/images/gauge-vertical-14.png +0 -0
  663. package/dist-client/helps/scene/images/gauge-vertical-15.png +0 -0
  664. package/dist-client/helps/scene/images/gauge-vertical-16.png +0 -0
  665. package/dist-client/helps/scene/images/gauge-vertical-17.png +0 -0
  666. package/dist-client/helps/scene/images/gauge-vertical-18.png +0 -0
  667. package/dist-client/helps/scene/images/half-round-rect-01.png +0 -0
  668. package/dist-client/helps/scene/images/half-round-rect-02.png +0 -0
  669. package/dist-client/helps/scene/images/indoor-button-finish-01.gif +0 -0
  670. package/dist-client/helps/scene/images/indoor-create-01.png +0 -0
  671. package/dist-client/helps/scene/images/indoor-create-02.png +0 -0
  672. package/dist-client/helps/scene/images/indoor-create-03.png +0 -0
  673. package/dist-client/helps/scene/images/indoor-setting-01.png +0 -0
  674. package/dist-client/helps/scene/images/line-01.png +0 -0
  675. package/dist-client/helps/scene/images/marker-01.png +0 -0
  676. package/dist-client/helps/scene/images/marker-02.png +0 -0
  677. package/dist-client/helps/scene/images/media-01.png +0 -0
  678. package/dist-client/helps/scene/images/media-02.png +0 -0
  679. package/dist-client/helps/scene/images/news_ticker_1.png +0 -0
  680. package/dist-client/helps/scene/images/news_ticker_2.png +0 -0
  681. package/dist-client/helps/scene/images/news_ticker_3.png +0 -0
  682. package/dist-client/helps/scene/images/news_ticker_video_1.gif +0 -0
  683. package/dist-client/helps/scene/images/news_ticker_video_2.gif +0 -0
  684. package/dist-client/helps/scene/images/polygon-01.png +0 -0
  685. package/dist-client/helps/scene/images/polyline-01.png +0 -0
  686. package/dist-client/helps/scene/images/progress-circle-01.png +0 -0
  687. package/dist-client/helps/scene/images/progress-circle-02.png +0 -0
  688. package/dist-client/helps/scene/images/progress-circle-03.png +0 -0
  689. package/dist-client/helps/scene/images/progress-circle-04.png +0 -0
  690. package/dist-client/helps/scene/images/progress-circle-05.png +0 -0
  691. package/dist-client/helps/scene/images/progress-horizontal-01.png +0 -0
  692. package/dist-client/helps/scene/images/progress-horizontal-02.png +0 -0
  693. package/dist-client/helps/scene/images/progress-horizontal-03.png +0 -0
  694. package/dist-client/helps/scene/images/progress-horizontal-04.png +0 -0
  695. package/dist-client/helps/scene/images/progress-vertical-01.png +0 -0
  696. package/dist-client/helps/scene/images/progress-vertical-02.png +0 -0
  697. package/dist-client/helps/scene/images/progress-vertical-03.png +0 -0
  698. package/dist-client/helps/scene/images/rect-01.png +0 -0
  699. package/dist-client/helps/scene/images/rect-02.png +0 -0
  700. package/dist-client/helps/scene/images/single-arrow-01.png +0 -0
  701. package/dist-client/helps/scene/images/star-01.png +0 -0
  702. package/dist-client/helps/scene/images/star-02.png +0 -0
  703. package/dist-client/helps/scene/images/star-03.png +0 -0
  704. package/dist-client/helps/scene/images/text-01.png +0 -0
  705. package/dist-client/helps/scene/images/triangle-01.png +0 -0
  706. package/dist-client/helps/setting/images/confirm-button.PNG +0 -0
  707. package/dist-client/helps/setting/images/delete-button.png +0 -0
  708. package/dist-client/helps/setting/images/error-setting.png +0 -0
  709. package/dist-client/helps/setting/images/export-button.png +0 -0
  710. package/dist-client/helps/setting/images/flowchart-setting-management.jpg +0 -0
  711. package/dist-client/helps/setting/images/partner-setting.png +0 -0
  712. package/dist-client/helps/setting/images/partners-list.PNG +0 -0
  713. package/dist-client/helps/setting/images/save-button.png +0 -0
  714. package/dist-client/helps/setting/images/select-button.PNG +0 -0
  715. package/dist-client/helps/setting/images/setting-board.png +0 -0
  716. package/dist-client/helps/setting/images/upload-button.png +0 -0
  717. package/dist-client/helps/setting/partner-setting.en.md +0 -19
  718. package/dist-client/helps/setting/settings.en.md +0 -26
  719. package/dist-client/helps/setting/settings.ko.md +0 -4
  720. package/dist-client/index.html +0 -14
  721. package/dist-client/main.js +0 -228
  722. package/dist-client/modules.js +0 -171
  723. package/dist-client/node_modules/@hatiolab/things-scene/package.json +0 -81
  724. package/dist-client/node_modules/@hatiolab/things-scene/rollup.config.js +0 -40
  725. package/dist-client/node_modules/@hatiolab/things-scene/things-board.js +0 -9
  726. package/dist-client/node_modules/@hatiolab/things-scene/things-scene-ie.js +0 -1
  727. package/dist-client/node_modules/@hatiolab/things-scene/things-scene-min.js +0 -1
  728. package/dist-client/node_modules/@lottiefiles/lottie-player/dist/lottie-player.js +0 -44
  729. package/dist-client/node_modules/@lottiefiles/lottie-player/dist/lottie-player.js.map +0 -1
  730. package/dist-client/node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js +0 -206
  731. package/dist-client/node_modules/marked/marked.min.js +0 -6
  732. package/dist-client/node_modules/marked/package.json +0 -88
  733. package/dist-client/node_modules/web-animations-js/web-animations-next.min.js +0 -16
  734. package/dist-client/node_modules/web-animations-js/web-animations-next.min.js.map +0 -1
  735. package/dist-client/oauth2/oauth2-decision-error-page.js +0 -299
  736. package/dist-client/oauth2/oauth2-decision-page.js +0 -362
  737. package/dist-client/openapi/unstable/scenario.yaml +0 -240
  738. package/dist-client/openapi/unstable.yaml +0 -41
  739. package/dist-client/profile.js +0 -1
  740. package/dist-client/public/home.js +0 -332
  741. package/dist-client/service-worker.js +0 -1
  742. package/dist-client/theme.css +0 -33
  743. package/dist-client/theme.js +0 -1
  744. package/dist-client/translations/en.json +0 -1083
  745. package/dist-client/translations/ko.json +0 -1083
  746. package/dist-client/translations/ms.json +0 -1073
  747. package/dist-client/translations/zh.json +0 -1061
  748. package/dist-client/vendors~modules.js +0 -2423
  749. package/dist-client/views/auth-page.html +0 -93
  750. package/dist-client/views/dependencies-view-graphviz.html +0 -75
  751. package/dist-client/views/dependencies-view.html +0 -139
  752. package/dist-client/views/internal-board-service-view.html +0 -65
  753. package/dist-client/views/internal-label-command-view.html +0 -301
  754. package/dist-client/views/oauth2-page.html +0 -90
  755. package/dist-client/views/public/home.html +0 -83
  756. package/dist-client/views/scenario-view.html +0 -64
  757. package/dist-client/views/template.html +0 -21
  758. package/logs/application-2021-11-08-10.log +0 -4
  759. package/logs/connections-2021-11-02-18.log +0 -0
  760. package/logs/connections-2021-11-03-09.log +0 -0
  761. package/logs/connections-2021-11-04-12.log +0 -0
  762. package/logs/connections-2021-11-04-13.log +0 -0
  763. package/logs/connections-2021-11-04-20.log +0 -0
  764. package/logs/connections-2021-11-08-10.log +0 -0
@@ -1,401 +0,0 @@
1
- !function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=907)}([function(e,t,r){"use strict";r.d(t,"c",(function(){return T})),r.d(t,"f",(function(){return k})),r.d(t,"j",(function(){return S})),r.d(t,"g",(function(){return D})),r.d(t,"i",(function(){return A})),r.d(t,"d",(function(){return O})),r.d(t,"h",(function(){return C})),r.d(t,"e",(function(){return c.g})),r.d(t,"k",(function(){return N})),r.d(t,"b",(function(){return H})),r.d(t,"a",(function(){return U}));var n=r(12),i=r(6);function a(e,t){for(var{element:{content:r},parts:n}=e,i=document.createTreeWalker(r,133,null,!1),a=s(n),o=n[a],l=-1,u=0,d=[],c=null;i.nextNode();){l++;var h=i.currentNode;for(h.previousSibling===c&&(c=null),t.has(h)&&(d.push(h),null===c&&(c=h)),null!==c&&u++;void 0!==o&&o.index===l;)o.index=null!==c?-1:o.index-u,o=n[a=s(n,a)]}d.forEach(e=>e.parentNode.removeChild(e))}var o=e=>{for(var t=11===e.nodeType?0:1,r=document.createTreeWalker(e,133,null,!1);r.nextNode();)t++;return t},s=(e,t=-1)=>{for(var r=t+1;r<e.length;r++){var n=e[r];if(Object(i.d)(n))return r}return-1};var l=r(22),u=r(21),d=r(31),c=r(5),h=(e,t)=>"".concat(e,"--").concat(t),f=!0;void 0===window.ShadyCSS?f=!1:void 0===window.ShadyCSS.prepareTemplateDom&&(console.warn("Incompatible ShadyCSS version detected. Please update to at least @webcomponents/webcomponentsjs@2.0.2 and @webcomponents/shadycss@1.3.1."),f=!1);var m=e=>t=>{var r=h(t.type,e),n=u.a.get(r);void 0===n&&(n={stringsArray:new WeakMap,keyString:new Map},u.a.set(r,n));var a=n.stringsArray.get(t.strings);if(void 0!==a)return a;var o=t.strings.join(i.f);if(void 0===(a=n.keyString.get(o))){var s=t.getTemplateElement();f&&window.ShadyCSS.prepareTemplateDom(s,e),a=new i.a(t,s),n.keyString.set(o,a)}return n.stringsArray.set(t.strings,a),a},p=["html","svg"],g=new Set,_=(e,t,r)=>{g.add(e);var n=r?r.element:document.createElement("template"),i=t.querySelectorAll("style"),{length:l}=i;if(0!==l){for(var d=document.createElement("style"),c=0;c<l;c++){var f=i[c];f.parentNode.removeChild(f),d.textContent+=f.textContent}(e=>{p.forEach(t=>{var r=u.a.get(h(t,e));void 0!==r&&r.keyString.forEach(e=>{var{element:{content:t}}=e,r=new Set;Array.from(t.querySelectorAll("style")).forEach(e=>{r.add(e)}),a(e,r)})})})(e);var m=n.content;r?function(e,t,r=null){var{element:{content:n},parts:i}=e;if(null!=r)for(var a=document.createTreeWalker(n,133,null,!1),l=s(i),u=0,d=-1;a.nextNode();){for(d++,a.currentNode===r&&(u=o(t),r.parentNode.insertBefore(t,r));-1!==l&&i[l].index===d;){if(u>0){for(;-1!==l;)i[l].index+=u,l=s(i,l);return}l=s(i,l)}}else n.appendChild(t)}(r,d,m.firstChild):m.insertBefore(d,m.firstChild),window.ShadyCSS.prepareTemplateStyles(n,e);var _=m.querySelector("style");if(window.ShadyCSS.nativeShadow&&null!==_)t.insertBefore(_.cloneNode(!0),t.firstChild);else if(r){m.insertBefore(d,m.firstChild);var v=new Set;v.add(d),a(r,v)}}else window.ShadyCSS.prepareTemplateStyles(n,e)};function v(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,i)}window.JSCompiler_renameProperty=(e,t)=>e;var y={toAttribute(e,t){switch(t){case Boolean:return e?"":null;case Object:case Array:return null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){switch(t){case Boolean:return null!==e;case Number:return null===e?null:Number(e);case Object:case Array:return JSON.parse(e)}return e}},b=(e,t)=>t!==e&&(t==t||e==e),M={attribute:!0,type:String,converter:y,reflect:!1,hasChanged:b};class w extends HTMLElement{constructor(){super(),this.initialize()}static get observedAttributes(){this.finalize();var e=[];return this._classProperties.forEach((t,r)=>{var n=this._attributeNameForProperty(r,t);void 0!==n&&(this._attributeToPropertyMap.set(n,r),e.push(n))}),e}static _ensureClassProperties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;var e=Object.getPrototypeOf(this)._classProperties;void 0!==e&&e.forEach((e,t)=>this._classProperties.set(t,e))}}static createProperty(e,t=M){if(this._ensureClassProperties(),this._classProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){var r="symbol"==typeof e?Symbol():"__".concat(e),n=this.getPropertyDescriptor(e,r,t);void 0!==n&&Object.defineProperty(this.prototype,e,n)}}static getPropertyDescriptor(e,t,r){return{get(){return this[t]},set(n){var i=this[e];this[t]=n,this.requestUpdateInternal(e,i,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this._classProperties&&this._classProperties.get(e)||M}static finalize(){var e=Object.getPrototypeOf(this);if(e.hasOwnProperty("finalized")||e.finalize(),this.finalized=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){var t=this.properties,r=[...Object.getOwnPropertyNames(t),..."function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[]];for(var n of r)this.createProperty(n,t[n])}}static _attributeNameForProperty(e,t){var r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}static _valueHasChanged(e,t,r=b){return r(e,t)}static _propertyValueFromAttribute(e,t){var r=t.type,n=t.converter||y,i="function"==typeof n?n:n.fromAttribute;return i?i(e,r):e}static _propertyValueToAttribute(e,t){if(void 0!==t.reflect){var r=t.type,n=t.converter;return(n&&n.toAttribute||y.toAttribute)(e,r)}}initialize(){this._updateState=0,this._updatePromise=new Promise(e=>this._enableUpdatingResolver=e),this._changedProperties=new Map,this._saveInstanceProperties(),this.requestUpdateInternal()}_saveInstanceProperties(){this.constructor._classProperties.forEach((e,t)=>{if(this.hasOwnProperty(t)){var r=this[t];delete this[t],this._instanceProperties||(this._instanceProperties=new Map),this._instanceProperties.set(t,r)}})}_applyInstanceProperties(){this._instanceProperties.forEach((e,t)=>this[t]=e),this._instanceProperties=void 0}connectedCallback(){this.enableUpdating()}enableUpdating(){void 0!==this._enableUpdatingResolver&&(this._enableUpdatingResolver(),this._enableUpdatingResolver=void 0)}disconnectedCallback(){}attributeChangedCallback(e,t,r){t!==r&&this._attributeToProperty(e,r)}_propertyToAttribute(e,t,r=M){var n=this.constructor,i=n._attributeNameForProperty(e,r);if(void 0!==i){var a=n._propertyValueToAttribute(t,r);if(void 0===a)return;this._updateState=8|this._updateState,null==a?this.removeAttribute(i):this.setAttribute(i,a),this._updateState=-9&this._updateState}}_attributeToProperty(e,t){if(!(8&this._updateState)){var r=this.constructor,n=r._attributeToPropertyMap.get(e);if(void 0!==n){var i=r.getPropertyOptions(n);this._updateState=16|this._updateState,this[n]=r._propertyValueFromAttribute(t,i),this._updateState=-17&this._updateState}}}requestUpdateInternal(e,t,r){var n=!0;if(void 0!==e){var i=this.constructor;r=r||i.getPropertyOptions(e),i._valueHasChanged(this[e],t,r.hasChanged)?(this._changedProperties.has(e)||this._changedProperties.set(e,t),!0!==r.reflect||16&this._updateState||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(e,r))):n=!1}!this._hasRequestedUpdate&&n&&(this._updatePromise=this._enqueueUpdate())}requestUpdate(e,t){return this.requestUpdateInternal(e,t),this.updateComplete}_enqueueUpdate(){var e,t=this;return(e=function*(){t._updateState=4|t._updateState;try{yield t._updatePromise}catch(e){}var e=t.performUpdate();return null!=e&&(yield e),!t._hasRequestedUpdate},function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function o(e){v(a,n,i,o,s,"next",e)}function s(e){v(a,n,i,o,s,"throw",e)}o(void 0)}))})()}get _hasRequestedUpdate(){return 4&this._updateState}get hasUpdated(){return 1&this._updateState}performUpdate(){if(this._hasRequestedUpdate){this._instanceProperties&&this._applyInstanceProperties();var e=!1,t=this._changedProperties;try{(e=this.shouldUpdate(t))?this.update(t):this._markUpdated()}catch(t){throw e=!1,this._markUpdated(),t}e&&(1&this._updateState||(this._updateState=1|this._updateState,this.firstUpdated(t)),this.updated(t))}}_markUpdated(){this._changedProperties=new Map,this._updateState=-5&this._updateState}get updateComplete(){return this._getUpdateComplete()}_getUpdateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._updatePromise}shouldUpdate(e){return!0}update(e){void 0!==this._reflectingProperties&&this._reflectingProperties.size>0&&(this._reflectingProperties.forEach((e,t)=>this._propertyToAttribute(t,this[t],e)),this._reflectingProperties=void 0),this._markUpdated()}updated(e){}firstUpdated(e){}}function L(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,i)}w.finalized=!0;
2
- /**
3
- * @license
4
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
5
- * This code may only be used under the BSD style license found at
6
- * http://polymer.github.io/LICENSE.txt
7
- * The complete set of authors may be found at
8
- * http://polymer.github.io/AUTHORS.txt
9
- * The complete set of contributors may be found at
10
- * http://polymer.github.io/CONTRIBUTORS.txt
11
- * Code distributed by Google as part of the polymer project is also
12
- * subject to an additional IP rights grant found at
13
- * http://polymer.github.io/PATENTS.txt
14
- */
15
- var T=e=>t=>"function"==typeof t?((e,t)=>(window.customElements.define(e,t),t))(e,t):((e,t)=>{var{kind:r,elements:n}=t;return{kind:r,elements:n,finisher(t){window.customElements.define(e,t)}}})(e,t),x=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?Object.assign(Object.assign({},t),{finisher(r){r.createProperty(t.key,e)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(r){r.createProperty(t.key,e)}};function k(e){return(t,r)=>void 0!==r?((e,t,r)=>{t.constructor.createProperty(r,e)})(e,t,r):x(e,t)}var S=e=>function(e){return k({attribute:!1,hasChanged:null==e?void 0:e.hasChanged})}(e);function D(e,t){return(r,n)=>{var i={get(){return this.renderRoot.querySelector(e)},enumerable:!0,configurable:!0};if(t){var a=void 0!==n?n:r.key,o="symbol"==typeof a?Symbol():"__".concat(a);i.get=function(){return void 0===this[o]&&(this[o]=this.renderRoot.querySelector(e)),this[o]}}return void 0!==n?E(i,r,n):Y(i,r)}}function A(e){return(t,r)=>{var n={get(){var t,r=this;return(t=function*(){return yield r.updateComplete,r.renderRoot.querySelector(e)},function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(e){L(a,n,i,o,s,"next",e)}function s(e){L(a,n,i,o,s,"throw",e)}o(void 0)}))})()},enumerable:!0,configurable:!0};return void 0!==r?E(n,t,r):Y(n,t)}}var E=(e,t,r)=>{Object.defineProperty(t,r,e)},Y=(e,t)=>({kind:"method",placement:"prototype",key:t.key,descriptor:e});function O(e){return(t,r)=>void 0!==r?((e,t,r)=>{Object.assign(t[r],e)})(e,t,r):((e,t)=>Object.assign(Object.assign({},t),{finisher(r){Object.assign(r.prototype[t.key],e)}}))(e,t)}var P=Element.prototype,R=P.msMatchesSelector||P.webkitMatchesSelector;function C(e="",t=!1,r=""){return(n,i)=>{var a={get(){var n="slot".concat(e?"[name=".concat(e,"]"):":not([name])"),i=this.renderRoot.querySelector(n),a=i&&i.assignedNodes({flatten:t});return a&&r&&(a=a.filter(e=>e.nodeType===Node.ELEMENT_NODE&&(e.matches?e.matches(r):R.call(e,r)))),a},enumerable:!0,configurable:!0};return void 0!==i?E(a,n,i):Y(a,n)}}
16
- /**
17
- @license
18
- Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
19
- This code may only be used under the BSD style license found at
20
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
21
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
22
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
23
- part of the polymer project is also subject to an additional IP rights grant
24
- found at http://polymer.github.io/PATENTS.txt
25
- */var I=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,F=Symbol();class j{constructor(e,t){if(t!==F)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}get styleSheet(){return void 0===this._styleSheet&&(I?(this._styleSheet=new CSSStyleSheet,this._styleSheet.replaceSync(this.cssText)):this._styleSheet=null),this._styleSheet}toString(){return this.cssText}}var N=e=>new j(String(e),F),H=(e,...t)=>{var r=t.reduce((t,r,n)=>t+(e=>{if(e instanceof j)return e.cssText;if("number"==typeof e)return e;throw new Error("Value passed to 'css' function must be a 'css' function result: ".concat(e,". Use 'unsafeCSS' to pass non-literal values, but\n take care to ensure page security."))})(r)+e[n+1],e[0]);return new j(r,F)};
26
- /**
27
- * @license
28
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
29
- * This code may only be used under the BSD style license found at
30
- * http://polymer.github.io/LICENSE.txt
31
- * The complete set of authors may be found at
32
- * http://polymer.github.io/AUTHORS.txt
33
- * The complete set of contributors may be found at
34
- * http://polymer.github.io/CONTRIBUTORS.txt
35
- * Code distributed by Google as part of the polymer project is also
36
- * subject to an additional IP rights grant found at
37
- * http://polymer.github.io/PATENTS.txt
38
- */
39
- (window.litElementVersions||(window.litElementVersions=[])).push("2.5.1");var B={};class U extends w{static getStyles(){return this.styles}static _getUniqueStyles(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_styles",this))){var e=this.getStyles();if(Array.isArray(e)){var t=(e,r)=>e.reduceRight((e,r)=>Array.isArray(r)?t(r,e):(e.add(r),e),r),r=t(e,new Set),n=[];r.forEach(e=>n.unshift(e)),this._styles=n}else this._styles=void 0===e?[]:[e];this._styles=this._styles.map(e=>{if(e instanceof CSSStyleSheet&&!I){var t=Array.prototype.slice.call(e.cssRules).reduce((e,t)=>e+t.cssText,"");return N(t)}return e})}}initialize(){super.initialize(),this.constructor._getUniqueStyles(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow(this.constructor.shadowRootOptions)}adoptStyles(){var e=this.constructor._styles;0!==e.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?I?this.renderRoot.adoptedStyleSheets=e.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(e.map(e=>e.cssText),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(e){var t=this.render();super.update(e),t!==B&&this.constructor.render(t,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach(e=>{var t=document.createElement("style");t.textContent=e.cssText,this.renderRoot.appendChild(t)}))}render(){return B}}U.finalized=!0,U.render=(e,t,r)=>{if(!r||"object"!=typeof r||!r.scopeName)throw new Error("The `scopeName` option is required.");var i=r.scopeName,a=l.a.has(t),o=f&&11===t.nodeType&&!!t.host,s=o&&!g.has(i),u=s?document.createDocumentFragment():t;if(Object(l.b)(e,u,Object.assign({templateFactory:m(i)},r)),s){var c=l.a.get(u);l.a.delete(u);var h=c.value instanceof d.a?c.value.template:void 0;_(i,u,h),Object(n.b)(t,t.firstChild),t.appendChild(u),l.a.set(t,c)}!a&&o&&window.ShadyCSS.styleElement(t.host)},U.shadowRootOptions={mode:"open"}},,,,,function(e,t,r){"use strict";r.d(t,"f",(function(){return o.a})),r.d(t,"h",(function(){return s.b})),r.d(t,"a",(function(){return n.b})),r.d(t,"b",(function(){return n.c})),r.d(t,"c",(function(){return n.d})),r.d(t,"d",(function(){return n.e})),r.d(t,"e",(function(){return n.g})),r.d(t,"g",(function(){return l}));var n=r(10);
40
- /**
41
- * @license
42
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
43
- * This code may only be used under the BSD style license found at
44
- * http://polymer.github.io/LICENSE.txt
45
- * The complete set of authors may be found at
46
- * http://polymer.github.io/AUTHORS.txt
47
- * The complete set of contributors may be found at
48
- * http://polymer.github.io/CONTRIBUTORS.txt
49
- * Code distributed by Google as part of the polymer project is also
50
- * subject to an additional IP rights grant found at
51
- * http://polymer.github.io/PATENTS.txt
52
- */var i=new class{handleAttributeExpressions(e,t,r,i){var a=t[0];return"."===a?new n.f(e,t.slice(1),r).parts:"@"===a?[new n.d(e,t.slice(1),i.eventContext)]:"?"===a?[new n.c(e,t.slice(1),r)]:new n.a(e,t,r).parts}handleTextExpression(e){return new n.e(e)}},a=r(27),o=r(18),s=(r(12),r(11));r(22),r(21),r(31),r(6);
53
- /**
54
- * @license
55
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
56
- * This code may only be used under the BSD style license found at
57
- * http://polymer.github.io/LICENSE.txt
58
- * The complete set of authors may be found at
59
- * http://polymer.github.io/AUTHORS.txt
60
- * The complete set of contributors may be found at
61
- * http://polymer.github.io/CONTRIBUTORS.txt
62
- * Code distributed by Google as part of the polymer project is also
63
- * subject to an additional IP rights grant found at
64
- * http://polymer.github.io/PATENTS.txt
65
- */
66
- "undefined"!=typeof window&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.4.1");var l=(e,...t)=>new a.b(e,t,"html",i)},function(e,t,r){"use strict";r.d(t,"f",(function(){return n})),r.d(t,"g",(function(){return i})),r.d(t,"b",(function(){return o})),r.d(t,"a",(function(){return s})),r.d(t,"d",(function(){return u})),r.d(t,"c",(function(){return d})),r.d(t,"e",(function(){return c}));
67
- /**
68
- * @license
69
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
70
- * This code may only be used under the BSD style license found at
71
- * http://polymer.github.io/LICENSE.txt
72
- * The complete set of authors may be found at
73
- * http://polymer.github.io/AUTHORS.txt
74
- * The complete set of contributors may be found at
75
- * http://polymer.github.io/CONTRIBUTORS.txt
76
- * Code distributed by Google as part of the polymer project is also
77
- * subject to an additional IP rights grant found at
78
- * http://polymer.github.io/PATENTS.txt
79
- */
80
- var n="{{lit-".concat(String(Math.random()).slice(2),"}}"),i="\x3c!--".concat(n,"--\x3e"),a=new RegExp("".concat(n,"|").concat(i)),o="$lit$";class s{constructor(e,t){this.parts=[],this.element=t;for(var r=[],i=[],s=document.createTreeWalker(t.content,133,null,!1),u=0,h=-1,f=0,{strings:m,values:{length:p}}=e;f<p;){var g=s.nextNode();if(null!==g){if(h++,1===g.nodeType){if(g.hasAttributes()){for(var _=g.attributes,{length:v}=_,y=0,b=0;b<v;b++)l(_[b].name,o)&&y++;for(;y-- >0;){var M=m[f],w=c.exec(M)[2],L=w.toLowerCase()+o,T=g.getAttribute(L);g.removeAttribute(L);var x=T.split(a);this.parts.push({type:"attribute",index:h,name:w,strings:x}),f+=x.length-1}}"TEMPLATE"===g.tagName&&(i.push(g),s.currentNode=g.content)}else if(3===g.nodeType){var k=g.data;if(k.indexOf(n)>=0){for(var S=g.parentNode,D=k.split(a),A=D.length-1,E=0;E<A;E++){var Y=void 0,O=D[E];if(""===O)Y=d();else{var P=c.exec(O);null!==P&&l(P[2],o)&&(O=O.slice(0,P.index)+P[1]+P[2].slice(0,-o.length)+P[3]),Y=document.createTextNode(O)}S.insertBefore(Y,g),this.parts.push({type:"node",index:++h})}""===D[A]?(S.insertBefore(d(),g),r.push(g)):g.data=D[A],f+=A}}else if(8===g.nodeType)if(g.data===n){var R=g.parentNode;null!==g.previousSibling&&h!==u||(h++,R.insertBefore(d(),g)),u=h,this.parts.push({type:"node",index:h}),null===g.nextSibling?g.data="":(r.push(g),h--),f++}else for(var C=-1;-1!==(C=g.data.indexOf(n,C+1));)this.parts.push({type:"node",index:-1}),f++}else s.currentNode=i.pop()}for(var I of r)I.parentNode.removeChild(I)}}var l=(e,t)=>{var r=e.length-t.length;return r>=0&&e.slice(r)===t},u=e=>-1!==e.index,d=()=>document.createComment(""),c=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/},,,,function(e,t,r){"use strict";r.d(t,"h",(function(){return u})),r.d(t,"a",(function(){return c})),r.d(t,"b",(function(){return h})),r.d(t,"e",(function(){return f})),r.d(t,"c",(function(){return m})),r.d(t,"f",(function(){return p})),r.d(t,"g",(function(){return g})),r.d(t,"d",(function(){return v}));var n=r(18),i=r(12),a=r(11),o=r(31),s=r(27),l=r(6),u=e=>null===e||!("object"==typeof e||"function"==typeof e),d=e=>Array.isArray(e)||!(!e||!e[Symbol.iterator]);class c{constructor(e,t,r){this.dirty=!0,this.element=e,this.name=t,this.strings=r,this.parts=[];for(var n=0;n<r.length-1;n++)this.parts[n]=this._createPart()}_createPart(){return new h(this)}_getValue(){var e=this.strings,t=e.length-1,r=this.parts;if(1===t&&""===e[0]&&""===e[1]){var n=r[0].value;if("symbol"==typeof n)return String(n);if("string"==typeof n||!d(n))return n}for(var i="",a=0;a<t;a++){i+=e[a];var o=r[a];if(void 0!==o){var s=o.value;if(u(s)||!d(s))i+="string"==typeof s?s:String(s);else for(var l of s)i+="string"==typeof l?l:String(l)}}return i+=e[t]}commit(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}class h{constructor(e){this.value=void 0,this.committer=e}setValue(e){e===a.a||u(e)&&e===this.value||(this.value=e,Object(n.b)(e)||(this.committer.dirty=!0))}commit(){for(;Object(n.b)(this.value);){var e=this.value;this.value=a.a,e(this)}this.value!==a.a&&this.committer.commit()}}class f{constructor(e){this.value=void 0,this.__pendingValue=void 0,this.options=e}appendInto(e){this.startNode=e.appendChild(Object(l.c)()),this.endNode=e.appendChild(Object(l.c)())}insertAfterNode(e){this.startNode=e,this.endNode=e.nextSibling}appendIntoPart(e){e.__insert(this.startNode=Object(l.c)()),e.__insert(this.endNode=Object(l.c)())}insertAfterPart(e){e.__insert(this.startNode=Object(l.c)()),this.endNode=e.endNode,e.endNode=this.startNode}setValue(e){this.__pendingValue=e}commit(){if(null!==this.startNode.parentNode){for(;Object(n.b)(this.__pendingValue);){var e=this.__pendingValue;this.__pendingValue=a.a,e(this)}var t=this.__pendingValue;t!==a.a&&(u(t)?t!==this.value&&this.__commitText(t):t instanceof s.b?this.__commitTemplateResult(t):t instanceof Node?this.__commitNode(t):d(t)?this.__commitIterable(t):t===a.b?(this.value=a.b,this.clear()):this.__commitText(t))}}__insert(e){this.endNode.parentNode.insertBefore(e,this.endNode)}__commitNode(e){this.value!==e&&(this.clear(),this.__insert(e),this.value=e)}__commitText(e){var t=this.startNode.nextSibling,r="string"==typeof(e=null==e?"":e)?e:String(e);t===this.endNode.previousSibling&&3===t.nodeType?t.data=r:this.__commitNode(document.createTextNode(r)),this.value=e}__commitTemplateResult(e){var t=this.options.templateFactory(e);if(this.value instanceof o.a&&this.value.template===t)this.value.update(e.values);else{var r=new o.a(t,e.processor,this.options),n=r._clone();r.update(e.values),this.__commitNode(n),this.value=r}}__commitIterable(e){Array.isArray(this.value)||(this.value=[],this.clear());var t,r=this.value,n=0;for(var i of e)void 0===(t=r[n])&&(t=new f(this.options),r.push(t),0===n?t.appendIntoPart(this):t.insertAfterPart(r[n-1])),t.setValue(i),t.commit(),n++;n<r.length&&(r.length=n,this.clear(t&&t.endNode))}clear(e=this.startNode){Object(i.b)(this.startNode.parentNode,e.nextSibling,this.endNode)}}class m{constructor(e,t,r){if(this.value=void 0,this.__pendingValue=void 0,2!==r.length||""!==r[0]||""!==r[1])throw new Error("Boolean attributes can only contain a single expression");this.element=e,this.name=t,this.strings=r}setValue(e){this.__pendingValue=e}commit(){for(;Object(n.b)(this.__pendingValue);){var e=this.__pendingValue;this.__pendingValue=a.a,e(this)}if(this.__pendingValue!==a.a){var t=!!this.__pendingValue;this.value!==t&&(t?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=t),this.__pendingValue=a.a}}}class p extends c{constructor(e,t,r){super(e,t,r),this.single=2===r.length&&""===r[0]&&""===r[1]}_createPart(){return new g(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}class g extends h{}var _=!1;(()=>{try{var e={get capture(){return _=!0,!1}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){}})();class v{constructor(e,t,r){this.value=void 0,this.__pendingValue=void 0,this.element=e,this.eventName=t,this.eventContext=r,this.__boundHandleEvent=e=>this.handleEvent(e)}setValue(e){this.__pendingValue=e}commit(){for(;Object(n.b)(this.__pendingValue);){var e=this.__pendingValue;this.__pendingValue=a.a,e(this)}if(this.__pendingValue!==a.a){var t=this.__pendingValue,r=this.value,i=null==t||null!=r&&(t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive),o=null!=t&&(null==r||i);i&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),o&&(this.__options=y(t),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=t,this.__pendingValue=a.a}}handleEvent(e){"function"==typeof this.value?this.value.call(this.eventContext||this.element,e):this.value.handleEvent(e)}}var y=e=>e&&(_?{capture:e.capture,passive:e.passive,once:e.once}:e.capture)},function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return i}));
81
- /**
82
- * @license
83
- * Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
84
- * This code may only be used under the BSD style license found at
85
- * http://polymer.github.io/LICENSE.txt
86
- * The complete set of authors may be found at
87
- * http://polymer.github.io/AUTHORS.txt
88
- * The complete set of contributors may be found at
89
- * http://polymer.github.io/CONTRIBUTORS.txt
90
- * Code distributed by Google as part of the polymer project is also
91
- * subject to an additional IP rights grant found at
92
- * http://polymer.github.io/PATENTS.txt
93
- */
94
- var n={},i={}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"c",(function(){return i})),r.d(t,"b",(function(){return a}));
95
- /**
96
- * @license
97
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
98
- * This code may only be used under the BSD style license found at
99
- * http://polymer.github.io/LICENSE.txt
100
- * The complete set of authors may be found at
101
- * http://polymer.github.io/AUTHORS.txt
102
- * The complete set of contributors may be found at
103
- * http://polymer.github.io/CONTRIBUTORS.txt
104
- * Code distributed by Google as part of the polymer project is also
105
- * subject to an additional IP rights grant found at
106
- * http://polymer.github.io/PATENTS.txt
107
- */
108
- var n="undefined"!=typeof window&&null!=window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,i=(e,t,r=null,n=null)=>{for(;t!==r;){var i=t.nextSibling;e.insertBefore(t,n),t=i}},a=(e,t,r=null)=>{for(;t!==r;){var n=t.nextSibling;e.removeChild(t),t=n}}},,,function(e,t,r){var n=r(55),i=r(279).f,a=r(280),o=r(281),s=r(388),l=r(426),u=r(347);e.exports=function(e,t){var r,d,c,h,f,m=e.target,p=e.global,g=e.stat;if(r=p?n:g?n[m]||s(m,{}):(n[m]||{}).prototype)for(d in t){if(h=t[d],c=e.noTargetGet?(f=i(r,d))&&f.value:r[d],!u(p?d:m+(g?".":"#")+d,e.forced)&&void 0!==c){if(typeof h==typeof c)continue;l(h,c)}(e.sham||c&&c.sham)&&a(h,"sham",!0),o(r,d,h,e)}}},,function(e,t){e.exports=scene},function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return a}));
109
- /**
110
- * @license
111
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
112
- * This code may only be used under the BSD style license found at
113
- * http://polymer.github.io/LICENSE.txt
114
- * The complete set of authors may be found at
115
- * http://polymer.github.io/AUTHORS.txt
116
- * The complete set of contributors may be found at
117
- * http://polymer.github.io/CONTRIBUTORS.txt
118
- * Code distributed by Google as part of the polymer project is also
119
- * subject to an additional IP rights grant found at
120
- * http://polymer.github.io/PATENTS.txt
121
- */
122
- var n=new WeakMap,i=e=>(...t)=>{var r=e(...t);return n.set(r,!0),r},a=e=>"function"==typeof e&&n.has(e)},function(e,t,r){(function(e){e.exports=function(){"use strict";var t,n;function i(){return t.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function u(e){return void 0===e}function d(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function h(e,t){var r,n=[];for(r=0;r<e.length;++r)n.push(t(e[r],r));return n}function f(e,t){for(var r in t)s(t,r)&&(e[r]=t[r]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function m(e,t,r,n){return xt(e,t,r,n,!0).utc()}function p(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function g(e){if(null==e._isValid){var t=p(e),r=n.call(t.parsedDateParts,(function(e){return null!=e})),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function _(e){var t=m(NaN);return null!=e?f(p(t),e):p(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,r=Object(this),n=r.length>>>0;for(t=0;t<n;t++)if(t in r&&e.call(this,r[t],t,r))return!0;return!1};var v=i.momentProperties=[],y=!1;function b(e,t){var r,n,i;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=p(t)),u(t._locale)||(e._locale=t._locale),v.length>0)for(r=0;r<v.length;r++)u(i=t[n=v[r]])||(e[n]=i);return e}function M(e){b(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,i.updateOffset(this),y=!1)}function w(e){return e instanceof M||null!=e&&null!=e._isAMomentObject}function L(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function T(e,t){var r=!0;return f((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),r){var n,a,o,l=[];for(a=0;a<arguments.length;a++){if(n="","object"==typeof arguments[a]){for(o in n+="\n["+a+"] ",arguments[0])s(arguments[0],o)&&(n+=o+": "+arguments[0][o]+", ");n=n.slice(0,-2)}else n=arguments[a];l.push(n)}L(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),r=!1}return t.apply(this,arguments)}),t)}var x,k={};function S(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),k[e]||(L(t),k[e]=!0)}function D(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function A(e,t){var r,n=f({},e);for(r in t)s(t,r)&&(o(e[r])&&o(t[r])?(n[r]={},f(n[r],e[r]),f(n[r],t[r])):null!=t[r]?n[r]=t[r]:delete n[r]);for(r in e)s(e,r)&&!s(t,r)&&o(e[r])&&(n[r]=f({},n[r]));return n}function E(e){null!=e&&this.set(e)}function Y(e,t,r){var n=""+Math.abs(e),i=t-n.length;return(e>=0?r?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+n}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,x=Object.keys?Object.keys:function(e){var t,r=[];for(t in e)s(e,t)&&r.push(t);return r};var O=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,P=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},C={};function I(e,t,r,n){var i=n;"string"==typeof n&&(i=function(){return this[n]()}),e&&(C[e]=i),t&&(C[t[0]]=function(){return Y(i.apply(this,arguments),t[1],t[2])}),r&&(C[r]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function F(e,t){return e.isValid()?(t=j(t,e.localeData()),R[t]=R[t]||function(e){var t,r,n,i=e.match(O);for(t=0,r=i.length;t<r;t++)C[i[t]]?i[t]=C[i[t]]:i[t]=(n=i[t]).match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"");return function(t){var n,a="";for(n=0;n<r;n++)a+=D(i[n])?i[n].call(t,e):i[n];return a}}(t),R[t](e)):e.localeData().invalidDate()}function j(e,t){var r=5;function n(e){return t.longDateFormat(e)||e}for(P.lastIndex=0;r>=0&&P.test(e);)e=e.replace(P,n),P.lastIndex=0,r-=1;return e}var N={};function H(e,t){var r=e.toLowerCase();N[r]=N[r+"s"]=N[t]=e}function B(e){return"string"==typeof e?N[e]||N[e.toLowerCase()]:void 0}function U(e){var t,r,n={};for(r in e)s(e,r)&&(t=B(r))&&(n[t]=e[r]);return n}var W={};function z(e,t){W[e]=t}function V(e){return e%4==0&&e%100!=0||e%400==0}function G(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function K(e){var t=+e,r=0;return 0!==t&&isFinite(t)&&(r=G(t)),r}function q(e,t){return function(r){return null!=r?(X(this,e,r),i.updateOffset(this,t),this):J(this,e)}}function J(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function X(e,t,r){e.isValid()&&!isNaN(r)&&("FullYear"===t&&V(e.year())&&1===e.month()&&29===e.date()?(r=K(r),e._d["set"+(e._isUTC?"UTC":"")+t](r,e.month(),we(r,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](r))}var $,Z=/\d/,Q=/\d\d/,ee=/\d{3}/,te=/\d{4}/,re=/[+-]?\d{6}/,ne=/\d\d?/,ie=/\d\d\d\d?/,ae=/\d\d\d\d\d\d?/,oe=/\d{1,3}/,se=/\d{1,4}/,le=/[+-]?\d{1,6}/,ue=/\d+/,de=/[+-]?\d+/,ce=/Z|[+-]\d\d:?\d\d/gi,he=/Z|[+-]\d\d(?::?\d\d)?/gi,fe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function me(e,t,r){$[e]=D(t)?t:function(e,n){return e&&r?r:t}}function pe(e,t){return s($,e)?$[e](t._strict,t._locale):new RegExp(ge(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,r,n,i){return t||r||n||i}))))}function ge(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}$={};var _e,ve={};function ye(e,t){var r,n=t;for("string"==typeof e&&(e=[e]),d(t)&&(n=function(e,r){r[t]=K(e)}),r=0;r<e.length;r++)ve[e[r]]=n}function be(e,t){ye(e,(function(e,r,n,i){n._w=n._w||{},t(e,n._w,n,i)}))}function Me(e,t,r){null!=t&&s(ve,e)&&ve[e](t,r._a,r,e)}function we(e,t){if(isNaN(e)||isNaN(t))return NaN;var r,n=(t%(r=12)+r)%r;return e+=(t-n)/12,1===n?V(e)?29:28:31-n%7%2}_e=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},I("M",["MM",2],"Mo",(function(){return this.month()+1})),I("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),I("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),H("month","M"),z("month",8),me("M",ne),me("MM",ne,Q),me("MMM",(function(e,t){return t.monthsShortRegex(e)})),me("MMMM",(function(e,t){return t.monthsRegex(e)})),ye(["M","MM"],(function(e,t){t[1]=K(e)-1})),ye(["MMM","MMMM"],(function(e,t,r,n){var i=r._locale.monthsParse(e,n,r._strict);null!=i?t[1]=i:p(r).invalidMonth=e}));var Le="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Te="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),xe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ke=fe,Se=fe;function De(e,t,r){var n,i,a,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)a=m([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(a,"").toLocaleLowerCase();return r?"MMM"===t?-1!==(i=_e.call(this._shortMonthsParse,o))?i:null:-1!==(i=_e.call(this._longMonthsParse,o))?i:null:"MMM"===t?-1!==(i=_e.call(this._shortMonthsParse,o))||-1!==(i=_e.call(this._longMonthsParse,o))?i:null:-1!==(i=_e.call(this._longMonthsParse,o))||-1!==(i=_e.call(this._shortMonthsParse,o))?i:null}function Ae(e,t){var r;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=K(t);else if(!d(t=e.localeData().monthsParse(t)))return e;return r=Math.min(e.date(),we(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,r),e}function Ee(e){return null!=e?(Ae(this,e),i.updateOffset(this,!0),this):J(this,"Month")}function Ye(){function e(e,t){return t.length-e.length}var t,r,n=[],i=[],a=[];for(t=0;t<12;t++)r=m([2e3,t]),n.push(this.monthsShort(r,"")),i.push(this.months(r,"")),a.push(this.months(r,"")),a.push(this.monthsShort(r,""));for(n.sort(e),i.sort(e),a.sort(e),t=0;t<12;t++)n[t]=ge(n[t]),i[t]=ge(i[t]);for(t=0;t<24;t++)a[t]=ge(a[t]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Oe(e){return V(e)?366:365}I("Y",0,0,(function(){var e=this.year();return e<=9999?Y(e,4):"+"+e})),I(0,["YY",2],0,(function(){return this.year()%100})),I(0,["YYYY",4],0,"year"),I(0,["YYYYY",5],0,"year"),I(0,["YYYYYY",6,!0],0,"year"),H("year","y"),z("year",1),me("Y",de),me("YY",ne,Q),me("YYYY",se,te),me("YYYYY",le,re),me("YYYYYY",le,re),ye(["YYYYY","YYYYYY"],0),ye("YYYY",(function(e,t){t[0]=2===e.length?i.parseTwoDigitYear(e):K(e)})),ye("YY",(function(e,t){t[0]=i.parseTwoDigitYear(e)})),ye("Y",(function(e,t){t[0]=parseInt(e,10)})),i.parseTwoDigitYear=function(e){return K(e)+(K(e)>68?1900:2e3)};var Pe=q("FullYear",!0);function Re(e,t,r,n,i,a,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,r,n,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,r,n,i,a,o),s}function Ce(e){var t,r;return e<100&&e>=0?((r=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ie(e,t,r){var n=7+t-r;return-(7+Ce(e,0,n).getUTCDay()-t)%7+n-1}function Fe(e,t,r,n,i){var a,o,s=1+7*(t-1)+(7+r-n)%7+Ie(e,n,i);return s<=0?o=Oe(a=e-1)+s:s>Oe(e)?(a=e+1,o=s-Oe(e)):(a=e,o=s),{year:a,dayOfYear:o}}function je(e,t,r){var n,i,a=Ie(e.year(),t,r),o=Math.floor((e.dayOfYear()-a-1)/7)+1;return o<1?n=o+Ne(i=e.year()-1,t,r):o>Ne(e.year(),t,r)?(n=o-Ne(e.year(),t,r),i=e.year()+1):(i=e.year(),n=o),{week:n,year:i}}function Ne(e,t,r){var n=Ie(e,t,r),i=Ie(e+1,t,r);return(Oe(e)-n+i)/7}function He(e,t){return e.slice(t,7).concat(e.slice(0,t))}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),H("week","w"),H("isoWeek","W"),z("week",5),z("isoWeek",5),me("w",ne),me("ww",ne,Q),me("W",ne),me("WW",ne,Q),be(["w","ww","W","WW"],(function(e,t,r,n){t[n.substr(0,1)]=K(e)})),I("d",0,"do","day"),I("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),I("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),I("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),H("day","d"),H("weekday","e"),H("isoWeekday","E"),z("day",11),z("weekday",11),z("isoWeekday",11),me("d",ne),me("e",ne),me("E",ne),me("dd",(function(e,t){return t.weekdaysMinRegex(e)})),me("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),me("dddd",(function(e,t){return t.weekdaysRegex(e)})),be(["dd","ddd","dddd"],(function(e,t,r,n){var i=r._locale.weekdaysParse(e,n,r._strict);null!=i?t.d=i:p(r).invalidWeekday=e})),be(["d","e","E"],(function(e,t,r,n){t[n]=K(e)}));var Be="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ue="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),We="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ze=fe,Ve=fe,Ge=fe;function Ke(e,t,r){var n,i,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)a=m([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(a,"").toLocaleLowerCase();return r?"dddd"===t?-1!==(i=_e.call(this._weekdaysParse,o))?i:null:"ddd"===t?-1!==(i=_e.call(this._shortWeekdaysParse,o))?i:null:-1!==(i=_e.call(this._minWeekdaysParse,o))?i:null:"dddd"===t?-1!==(i=_e.call(this._weekdaysParse,o))||-1!==(i=_e.call(this._shortWeekdaysParse,o))||-1!==(i=_e.call(this._minWeekdaysParse,o))?i:null:"ddd"===t?-1!==(i=_e.call(this._shortWeekdaysParse,o))||-1!==(i=_e.call(this._weekdaysParse,o))||-1!==(i=_e.call(this._minWeekdaysParse,o))?i:null:-1!==(i=_e.call(this._minWeekdaysParse,o))||-1!==(i=_e.call(this._weekdaysParse,o))||-1!==(i=_e.call(this._shortWeekdaysParse,o))?i:null}function qe(){function e(e,t){return t.length-e.length}var t,r,n,i,a,o=[],s=[],l=[],u=[];for(t=0;t<7;t++)r=m([2e3,1]).day(t),n=ge(this.weekdaysMin(r,"")),i=ge(this.weekdaysShort(r,"")),a=ge(this.weekdays(r,"")),o.push(n),s.push(i),l.push(a),u.push(n),u.push(i),u.push(a);o.sort(e),s.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Je(){return this.hours()%12||12}function Xe(e,t){I(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function $e(e,t){return t._meridiemParse}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,Je),I("k",["kk",2],0,(function(){return this.hours()||24})),I("hmm",0,0,(function(){return""+Je.apply(this)+Y(this.minutes(),2)})),I("hmmss",0,0,(function(){return""+Je.apply(this)+Y(this.minutes(),2)+Y(this.seconds(),2)})),I("Hmm",0,0,(function(){return""+this.hours()+Y(this.minutes(),2)})),I("Hmmss",0,0,(function(){return""+this.hours()+Y(this.minutes(),2)+Y(this.seconds(),2)})),Xe("a",!0),Xe("A",!1),H("hour","h"),z("hour",13),me("a",$e),me("A",$e),me("H",ne),me("h",ne),me("k",ne),me("HH",ne,Q),me("hh",ne,Q),me("kk",ne,Q),me("hmm",ie),me("hmmss",ae),me("Hmm",ie),me("Hmmss",ae),ye(["H","HH"],3),ye(["k","kk"],(function(e,t,r){var n=K(e);t[3]=24===n?0:n})),ye(["a","A"],(function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e})),ye(["h","hh"],(function(e,t,r){t[3]=K(e),p(r).bigHour=!0})),ye("hmm",(function(e,t,r){var n=e.length-2;t[3]=K(e.substr(0,n)),t[4]=K(e.substr(n)),p(r).bigHour=!0})),ye("hmmss",(function(e,t,r){var n=e.length-4,i=e.length-2;t[3]=K(e.substr(0,n)),t[4]=K(e.substr(n,2)),t[5]=K(e.substr(i)),p(r).bigHour=!0})),ye("Hmm",(function(e,t,r){var n=e.length-2;t[3]=K(e.substr(0,n)),t[4]=K(e.substr(n))})),ye("Hmmss",(function(e,t,r){var n=e.length-4,i=e.length-2;t[3]=K(e.substr(0,n)),t[4]=K(e.substr(n,2)),t[5]=K(e.substr(i))}));var Ze,Qe=q("Hours",!0),et={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Le,monthsShort:Te,week:{dow:0,doy:6},weekdays:Be,weekdaysMin:We,weekdaysShort:Ue,meridiemParse:/[ap]\.?m?\.?/i},tt={},rt={};function nt(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}function it(e){return e?e.toLowerCase().replace("_","-"):e}function at(t){var n=null;if(void 0===tt[t]&&void 0!==e&&e&&e.exports)try{n=Ze._abbr,r(855)("./"+t),ot(n)}catch(e){tt[t]=null}return tt[t]}function ot(e,t){var r;return e&&((r=u(t)?lt(e):st(e,t))?Ze=r:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ze._abbr}function st(e,t){if(null!==t){var r,n=et;if(t.abbr=e,null!=tt[e])S("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=tt[e]._config;else if(null!=t.parentLocale)if(null!=tt[t.parentLocale])n=tt[t.parentLocale]._config;else{if(null==(r=at(t.parentLocale)))return rt[t.parentLocale]||(rt[t.parentLocale]=[]),rt[t.parentLocale].push({name:e,config:t}),null;n=r._config}return tt[e]=new E(A(n,t)),rt[e]&&rt[e].forEach((function(e){st(e.name,e.config)})),ot(e),tt[e]}return delete tt[e],null}function lt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ze;if(!a(e)){if(t=at(e))return t;e=[e]}return function(e){for(var t,r,n,i,a=0;a<e.length;){for(t=(i=it(e[a]).split("-")).length,r=(r=it(e[a+1]))?r.split("-"):null;t>0;){if(n=at(i.slice(0,t).join("-")))return n;if(r&&r.length>=t&&nt(i,r)>=t-1)break;t--}a++}return Ze}(e)}function ut(e){var t,r=e._a;return r&&-2===p(e).overflow&&(t=r[1]<0||r[1]>11?1:r[2]<1||r[2]>we(r[0],r[1])?2:r[3]<0||r[3]>24||24===r[3]&&(0!==r[4]||0!==r[5]||0!==r[6])?3:r[4]<0||r[4]>59?4:r[5]<0||r[5]>59?5:r[6]<0||r[6]>999?6:-1,p(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),p(e)._overflowWeeks&&-1===t&&(t=7),p(e)._overflowWeekday&&-1===t&&(t=8),p(e).overflow=t),e}var dt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ct=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ht=/Z|[+-]\d\d(?::?\d\d)?/,ft=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],mt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],pt=/^\/?Date\((-?\d+)/i,gt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,_t={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function vt(e){var t,r,n,i,a,o,s=e._i,l=dt.exec(s)||ct.exec(s);if(l){for(p(e).iso=!0,t=0,r=ft.length;t<r;t++)if(ft[t][1].exec(l[1])){i=ft[t][0],n=!1!==ft[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,r=mt.length;t<r;t++)if(mt[t][1].exec(l[3])){a=(l[2]||" ")+mt[t][0];break}if(null==a)return void(e._isValid=!1)}if(!n&&null!=a)return void(e._isValid=!1);if(l[4]){if(!ht.exec(l[4]))return void(e._isValid=!1);o="Z"}e._f=i+(a||"")+(o||""),Lt(e)}else e._isValid=!1}function yt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function bt(e){var t,r,n,i,a,o,s,l,u=gt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(u){if(r=u[4],n=u[3],i=u[2],a=u[5],o=u[6],s=u[7],l=[yt(r),Te.indexOf(n),parseInt(i,10),parseInt(a,10),parseInt(o,10)],s&&l.push(parseInt(s,10)),t=l,!function(e,t,r){return!e||Ue.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(p(r).weekdayMismatch=!0,r._isValid=!1,!1)}(u[1],t,e))return;e._a=t,e._tzm=function(e,t,r){if(e)return _t[e];if(t)return 0;var n=parseInt(r,10),i=n%100;return(n-i)/100*60+i}(u[8],u[9],u[10]),e._d=Ce.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0}else e._isValid=!1}function Mt(e,t,r){return null!=e?e:null!=t?t:r}function wt(e){var t,r,n,a,o,s=[];if(!e._d){for(n=function(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,r,n,i,a,o,s,l,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(a=1,o=4,r=Mt(t.GG,e._a[0],je(kt(),1,4).year),n=Mt(t.W,1),((i=Mt(t.E,1))<1||i>7)&&(l=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,u=je(kt(),a,o),r=Mt(t.gg,e._a[0],u.year),n=Mt(t.w,u.week),null!=t.d?((i=t.d)<0||i>6)&&(l=!0):null!=t.e?(i=t.e+a,(t.e<0||t.e>6)&&(l=!0)):i=a),n<1||n>Ne(r,a,o)?p(e)._overflowWeeks=!0:null!=l?p(e)._overflowWeekday=!0:(s=Fe(r,n,i,a,o),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(o=Mt(e._a[0],n[0]),(e._dayOfYear>Oe(o)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),r=Ce(o,0,e._dayOfYear),e._a[1]=r.getUTCMonth(),e._a[2]=r.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=n[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Ce:Re).apply(null,s),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(p(e).weekdayMismatch=!0)}}function Lt(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],p(e).empty=!0;var t,r,n,a,o,s,l=""+e._i,u=l.length,d=0;for(n=j(e._f,e._locale).match(O)||[],t=0;t<n.length;t++)a=n[t],(r=(l.match(pe(a,e))||[])[0])&&((o=l.substr(0,l.indexOf(r))).length>0&&p(e).unusedInput.push(o),l=l.slice(l.indexOf(r)+r.length),d+=r.length),C[a]?(r?p(e).empty=!1:p(e).unusedTokens.push(a),Me(a,r,e)):e._strict&&!r&&p(e).unusedTokens.push(a);p(e).charsLeftOver=u-d,l.length>0&&p(e).unusedInput.push(l),e._a[3]<=12&&!0===p(e).bigHour&&e._a[3]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[3]=function(e,t,r){var n;return null==r?t:null!=e.meridiemHour?e.meridiemHour(t,r):null!=e.isPM?((n=e.isPM(r))&&t<12&&(t+=12),n||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(s=p(e).era)&&(e._a[0]=e._locale.erasConvertYear(s,e._a[0])),wt(e),ut(e)}else bt(e);else vt(e)}function Tt(e){var t=e._i,r=e._f;return e._locale=e._locale||lt(e._l),null===t||void 0===r&&""===t?_({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new M(ut(t)):(c(t)?e._d=t:a(r)?function(e){var t,r,n,i,a,o,s=!1;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)a=0,o=!1,t=b({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Lt(t),g(t)&&(o=!0),a+=p(t).charsLeftOver,a+=10*p(t).unusedTokens.length,p(t).score=a,s?a<n&&(n=a,r=t):(null==n||a<n||o)&&(n=a,r=t,o&&(s=!0));f(e,r||t)}(e):r?Lt(e):function(e){var t=e._i;u(t)?e._d=new Date(i.now()):c(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=pt.exec(e._i);null===t?(vt(e),!1===e._isValid&&(delete e._isValid,bt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:i.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):a(t)?(e._a=h(t.slice(0),(function(e){return parseInt(e,10)})),wt(e)):o(t)?function(e){if(!e._d){var t=U(e._i),r=void 0===t.day?t.date:t.day;e._a=h([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),wt(e)}}(e):d(t)?e._d=new Date(t):i.createFromInputFallback(e)}(e),g(e)||(e._d=null),e))}function xt(e,t,r,n,i){var s,u={};return!0!==t&&!1!==t||(n=t,t=void 0),!0!==r&&!1!==r||(n=r,r=void 0),(o(e)&&l(e)||a(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=i,u._l=r,u._i=e,u._f=t,u._strict=n,(s=new M(ut(Tt(u))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function kt(e,t,r,n){return xt(e,t,r,n,!1)}i.createFromInputFallback=T("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var St=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=kt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:_()})),Dt=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=kt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:_()}));function At(e,t){var r,n;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return kt();for(r=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](r)||(r=t[n]);return r}var Et=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Yt(e){var t=U(e),r=t.year||0,n=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,o=t.day||0,l=t.hour||0,u=t.minute||0,d=t.second||0,c=t.millisecond||0;this._isValid=function(e){var t,r,n=!1;for(t in e)if(s(e,t)&&(-1===_e.call(Et,t)||null!=e[t]&&isNaN(e[t])))return!1;for(r=0;r<Et.length;++r)if(e[Et[r]]){if(n)return!1;parseFloat(e[Et[r]])!==K(e[Et[r]])&&(n=!0)}return!0}(t),this._milliseconds=+c+1e3*d+6e4*u+1e3*l*60*60,this._days=+o+7*a,this._months=+i+3*n+12*r,this._data={},this._locale=lt(),this._bubble()}function Ot(e){return e instanceof Yt}function Pt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Rt(e,t){I(e,0,0,(function(){var e=this.utcOffset(),r="+";return e<0&&(e=-e,r="-"),r+Y(~~(e/60),2)+t+Y(~~e%60,2)}))}Rt("Z",":"),Rt("ZZ",""),me("Z",he),me("ZZ",he),ye(["Z","ZZ"],(function(e,t,r){r._useUTC=!0,r._tzm=It(he,e)}));var Ct=/([\+\-]|\d\d)/gi;function It(e,t){var r,n,i=(t||"").match(e);return null===i?null:0===(n=60*(r=((i[i.length-1]||[])+"").match(Ct)||["-",0,0])[1]+K(r[2]))?0:"+"===r[0]?n:-n}function Ft(e,t){var r,n;return t._isUTC?(r=t.clone(),n=(w(e)||c(e)?e.valueOf():kt(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+n),i.updateOffset(r,!1),r):kt(e).local()}function jt(e){return-Math.round(e._d.getTimezoneOffset())}function Nt(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Ht=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Bt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ut(e,t){var r,n,i,a,o,l,u=e,c=null;return Ot(e)?u={ms:e._milliseconds,d:e._days,M:e._months}:d(e)||!isNaN(+e)?(u={},t?u[t]=+e:u.milliseconds=+e):(c=Ht.exec(e))?(r="-"===c[1]?-1:1,u={y:0,d:K(c[2])*r,h:K(c[3])*r,m:K(c[4])*r,s:K(c[5])*r,ms:K(Pt(1e3*c[6]))*r}):(c=Bt.exec(e))?(r="-"===c[1]?-1:1,u={y:Wt(c[2],r),M:Wt(c[3],r),w:Wt(c[4],r),d:Wt(c[5],r),h:Wt(c[6],r),m:Wt(c[7],r),s:Wt(c[8],r)}):null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(a=kt(u.from),o=kt(u.to),i=a.isValid()&&o.isValid()?(o=Ft(o,a),a.isBefore(o)?l=zt(a,o):((l=zt(o,a)).milliseconds=-l.milliseconds,l.months=-l.months),l):{milliseconds:0,months:0},(u={}).ms=i.milliseconds,u.M=i.months),n=new Yt(u),Ot(e)&&s(e,"_locale")&&(n._locale=e._locale),Ot(e)&&s(e,"_isValid")&&(n._isValid=e._isValid),n}function Wt(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function zt(e,t){var r={};return r.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function Vt(e,t){return function(r,n){var i;return null===n||isNaN(+n)||(S(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=n,n=i),Gt(this,Ut(r,n),e),this}}function Gt(e,t,r,n){var a=t._milliseconds,o=Pt(t._days),s=Pt(t._months);e.isValid()&&(n=null==n||n,s&&Ae(e,J(e,"Month")+s*r),o&&X(e,"Date",J(e,"Date")+o*r),a&&e._d.setTime(e._d.valueOf()+a*r),n&&i.updateOffset(e,o||s))}Ut.fn=Yt.prototype,Ut.invalid=function(){return Ut(NaN)};var Kt=Vt(1,"add"),qt=Vt(-1,"subtract");function Jt(e){return"string"==typeof e||e instanceof String}function Xt(e){return w(e)||c(e)||Jt(e)||d(e)||function(e){var t=a(e),r=!1;return t&&(r=0===e.filter((function(t){return!d(t)&&Jt(e)})).length),t&&r}(e)||function(e){var t,r,n=o(e)&&!l(e),i=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<a.length;t+=1)r=a[t],i=i||s(e,r);return n&&i}(e)||null==e}function $t(e){var t,r=o(e)&&!l(e),n=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<i.length;t+=1)n=n||s(e,i[t]);return r&&n}function Zt(e,t){if(e.date()<t.date())return-Zt(t,e);var r=12*(t.year()-e.year())+(t.month()-e.month()),n=e.clone().add(r,"months");return-(r+(t-n<0?(t-n)/(n-e.clone().add(r-1,"months")):(t-n)/(e.clone().add(r+1,"months")-n)))||0}function Qt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=lt(e))&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var er=T("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function tr(){return this._locale}function rr(e,t){return(e%t+t)%t}function nr(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-126227808e5:new Date(e,t,r).valueOf()}function ir(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-126227808e5:Date.UTC(e,t,r)}function ar(e,t){return t.erasAbbrRegex(e)}function or(){var e,t,r=[],n=[],i=[],a=[],o=this.eras();for(e=0,t=o.length;e<t;++e)n.push(ge(o[e].name)),r.push(ge(o[e].abbr)),i.push(ge(o[e].narrow)),a.push(ge(o[e].name)),a.push(ge(o[e].abbr)),a.push(ge(o[e].narrow));this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function sr(e,t){I(0,[e,e.length],0,t)}function lr(e,t,r,n,i){var a;return null==e?je(this,n,i).year:(t>(a=Ne(e,n,i))&&(t=a),ur.call(this,e,t,r,n,i))}function ur(e,t,r,n,i){var a=Fe(e,t,r,n,i),o=Ce(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}I("N",0,0,"eraAbbr"),I("NN",0,0,"eraAbbr"),I("NNN",0,0,"eraAbbr"),I("NNNN",0,0,"eraName"),I("NNNNN",0,0,"eraNarrow"),I("y",["y",1],"yo","eraYear"),I("y",["yy",2],0,"eraYear"),I("y",["yyy",3],0,"eraYear"),I("y",["yyyy",4],0,"eraYear"),me("N",ar),me("NN",ar),me("NNN",ar),me("NNNN",(function(e,t){return t.erasNameRegex(e)})),me("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ye(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,r,n){var i=r._locale.erasParse(e,n,r._strict);i?p(r).era=i:p(r).invalidEra=e})),me("y",ue),me("yy",ue),me("yyy",ue),me("yyyy",ue),me("yo",(function(e,t){return t._eraYearOrdinalRegex||ue})),ye(["y","yy","yyy","yyyy"],0),ye(["yo"],(function(e,t,r,n){var i;r._locale._eraYearOrdinalRegex&&(i=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[0]=r._locale.eraYearOrdinalParse(e,i):t[0]=parseInt(e,10)})),I(0,["gg",2],0,(function(){return this.weekYear()%100})),I(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),sr("gggg","weekYear"),sr("ggggg","weekYear"),sr("GGGG","isoWeekYear"),sr("GGGGG","isoWeekYear"),H("weekYear","gg"),H("isoWeekYear","GG"),z("weekYear",1),z("isoWeekYear",1),me("G",de),me("g",de),me("GG",ne,Q),me("gg",ne,Q),me("GGGG",se,te),me("gggg",se,te),me("GGGGG",le,re),me("ggggg",le,re),be(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,r,n){t[n.substr(0,2)]=K(e)})),be(["gg","GG"],(function(e,t,r,n){t[n]=i.parseTwoDigitYear(e)})),I("Q",0,"Qo","quarter"),H("quarter","Q"),z("quarter",7),me("Q",Z),ye("Q",(function(e,t){t[1]=3*(K(e)-1)})),I("D",["DD",2],"Do","date"),H("date","D"),z("date",9),me("D",ne),me("DD",ne,Q),me("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ye(["D","DD"],2),ye("Do",(function(e,t){t[2]=K(e.match(ne)[0])}));var dr=q("Date",!0);I("DDD",["DDDD",3],"DDDo","dayOfYear"),H("dayOfYear","DDD"),z("dayOfYear",4),me("DDD",oe),me("DDDD",ee),ye(["DDD","DDDD"],(function(e,t,r){r._dayOfYear=K(e)})),I("m",["mm",2],0,"minute"),H("minute","m"),z("minute",14),me("m",ne),me("mm",ne,Q),ye(["m","mm"],4);var cr=q("Minutes",!1);I("s",["ss",2],0,"second"),H("second","s"),z("second",15),me("s",ne),me("ss",ne,Q),ye(["s","ss"],5);var hr,fr,mr=q("Seconds",!1);for(I("S",0,0,(function(){return~~(this.millisecond()/100)})),I(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),I(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),I(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),I(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),I(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),I(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),H("millisecond","ms"),z("millisecond",16),me("S",oe,Z),me("SS",oe,Q),me("SSS",oe,ee),hr="SSSS";hr.length<=9;hr+="S")me(hr,ue);function pr(e,t){t[6]=K(1e3*("0."+e))}for(hr="S";hr.length<=9;hr+="S")ye(hr,pr);fr=q("Milliseconds",!1),I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var gr=M.prototype;function _r(e){return e}gr.add=Kt,gr.calendar=function(e,t){1===arguments.length&&(arguments[0]?Xt(arguments[0])?(e=arguments[0],t=void 0):$t(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||kt(),n=Ft(r,this).startOf("day"),a=i.calendarFormat(this,n)||"sameElse",o=t&&(D(t[a])?t[a].call(this,r):t[a]);return this.format(o||this.localeData().calendar(a,this,kt(r)))},gr.clone=function(){return new M(this)},gr.diff=function(e,t,r){var n,i,a;if(!this.isValid())return NaN;if(!(n=Ft(e,this)).isValid())return NaN;switch(i=6e4*(n.utcOffset()-this.utcOffset()),t=B(t)){case"year":a=Zt(this,n)/12;break;case"month":a=Zt(this,n);break;case"quarter":a=Zt(this,n)/3;break;case"second":a=(this-n)/1e3;break;case"minute":a=(this-n)/6e4;break;case"hour":a=(this-n)/36e5;break;case"day":a=(this-n-i)/864e5;break;case"week":a=(this-n-i)/6048e5;break;default:a=this-n}return r?a:G(a)},gr.endOf=function(e){var t,r;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(r=this._isUTC?ir:nr,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-rr(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-rr(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-rr(t,1e3)-1}return this._d.setTime(t),i.updateOffset(this,!0),this},gr.format=function(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=F(this,e);return this.localeData().postformat(t)},gr.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||kt(e).isValid())?Ut({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},gr.fromNow=function(e){return this.from(kt(),e)},gr.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||kt(e).isValid())?Ut({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},gr.toNow=function(e){return this.to(kt(),e)},gr.get=function(e){return D(this[e=B(e)])?this[e]():this},gr.invalidAt=function(){return p(this).overflow},gr.isAfter=function(e,t){var r=w(e)?e:kt(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf())},gr.isBefore=function(e,t){var r=w(e)?e:kt(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf())},gr.isBetween=function(e,t,r,n){var i=w(e)?e:kt(e),a=w(t)?t:kt(t);return!!(this.isValid()&&i.isValid()&&a.isValid())&&(("("===(n=n||"()")[0]?this.isAfter(i,r):!this.isBefore(i,r))&&(")"===n[1]?this.isBefore(a,r):!this.isAfter(a,r)))},gr.isSame=function(e,t){var r,n=w(e)?e:kt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf()))},gr.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},gr.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},gr.isValid=function(){return g(this)},gr.lang=er,gr.locale=Qt,gr.localeData=tr,gr.max=Dt,gr.min=St,gr.parsingFlags=function(){return f({},p(this))},gr.set=function(e,t){if("object"==typeof e){var r,n=function(e){var t,r=[];for(t in e)s(e,t)&&r.push({unit:t,priority:W[t]});return r.sort((function(e,t){return e.priority-t.priority})),r}(e=U(e));for(r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit])}else if(D(this[e=B(e)]))return this[e](t);return this},gr.startOf=function(e){var t,r;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(r=this._isUTC?ir:nr,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=rr(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=rr(t,6e4);break;case"second":t=this._d.valueOf(),t-=rr(t,1e3)}return this._d.setTime(t),i.updateOffset(this,!0),this},gr.subtract=qt,gr.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},gr.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},gr.toDate=function(){return new Date(this.valueOf())},gr.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?F(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):D(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",F(r,"Z")):F(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},gr.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,r,n="moment",i="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+n+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r=i+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+r)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(gr[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),gr.toJSON=function(){return this.isValid()?this.toISOString():null},gr.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},gr.unix=function(){return Math.floor(this.valueOf()/1e3)},gr.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},gr.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},gr.eraName=function(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until)return n[e].name;if(n[e].until<=r&&r<=n[e].since)return n[e].name}return""},gr.eraNarrow=function(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until)return n[e].narrow;if(n[e].until<=r&&r<=n[e].since)return n[e].narrow}return""},gr.eraAbbr=function(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until)return n[e].abbr;if(n[e].until<=r&&r<=n[e].since)return n[e].abbr}return""},gr.eraYear=function(){var e,t,r,n,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(r=a[e].since<=a[e].until?1:-1,n=this.clone().startOf("day").valueOf(),a[e].since<=n&&n<=a[e].until||a[e].until<=n&&n<=a[e].since)return(this.year()-i(a[e].since).year())*r+a[e].offset;return this.year()},gr.year=Pe,gr.isLeapYear=function(){return V(this.year())},gr.weekYear=function(e){return lr.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},gr.isoWeekYear=function(e){return lr.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},gr.quarter=gr.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},gr.month=Ee,gr.daysInMonth=function(){return we(this.year(),this.month())},gr.week=gr.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},gr.isoWeek=gr.isoWeeks=function(e){var t=je(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},gr.weeksInYear=function(){var e=this.localeData()._week;return Ne(this.year(),e.dow,e.doy)},gr.weeksInWeekYear=function(){var e=this.localeData()._week;return Ne(this.weekYear(),e.dow,e.doy)},gr.isoWeeksInYear=function(){return Ne(this.year(),1,4)},gr.isoWeeksInISOWeekYear=function(){return Ne(this.isoWeekYear(),1,4)},gr.date=dr,gr.day=gr.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},gr.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},gr.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},gr.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},gr.hour=gr.hours=Qe,gr.minute=gr.minutes=cr,gr.second=gr.seconds=mr,gr.millisecond=gr.milliseconds=fr,gr.utcOffset=function(e,t,r){var n,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=It(he,e)))return this}else Math.abs(e)<16&&!r&&(e*=60);return!this._isUTC&&t&&(n=jt(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),a!==e&&(!t||this._changeInProgress?Gt(this,Ut(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:jt(this)},gr.utc=function(e){return this.utcOffset(0,e)},gr.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(jt(this),"m")),this},gr.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=It(ce,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},gr.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?kt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},gr.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},gr.isLocal=function(){return!!this.isValid()&&!this._isUTC},gr.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},gr.isUtc=Nt,gr.isUTC=Nt,gr.zoneAbbr=function(){return this._isUTC?"UTC":""},gr.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},gr.dates=T("dates accessor is deprecated. Use date instead.",dr),gr.months=T("months accessor is deprecated. Use month instead",Ee),gr.years=T("years accessor is deprecated. Use year instead",Pe),gr.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),gr.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=Tt(t))._a?(e=t._isUTC?m(t._a):kt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,r){var n,i=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),o=0;for(n=0;n<i;n++)(r&&e[n]!==t[n]||!r&&K(e[n])!==K(t[n]))&&o++;return o+a}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var vr=E.prototype;function yr(e,t,r,n){var i=lt(),a=m().set(n,t);return i[r](a,e)}function br(e,t,r){if(d(e)&&(t=e,e=void 0),e=e||"",null!=t)return yr(e,t,r,"month");var n,i=[];for(n=0;n<12;n++)i[n]=yr(e,n,r,"month");return i}function Mr(e,t,r,n){"boolean"==typeof e?(d(t)&&(r=t,t=void 0),t=t||""):(r=t=e,e=!1,d(t)&&(r=t,t=void 0),t=t||"");var i,a=lt(),o=e?a._week.dow:0,s=[];if(null!=r)return yr(t,(r+o)%7,n,"day");for(i=0;i<7;i++)s[i]=yr(t,(i+o)%7,n,"day");return s}vr.calendar=function(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return D(n)?n.call(t,r):n},vr.longDateFormat=function(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(O).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},vr.invalidDate=function(){return this._invalidDate},vr.ordinal=function(e){return this._ordinal.replace("%d",e)},vr.preparse=_r,vr.postformat=_r,vr.relativeTime=function(e,t,r,n){var i=this._relativeTime[r];return D(i)?i(e,t,r,n):i.replace(/%d/i,e)},vr.pastFuture=function(e,t){var r=this._relativeTime[e>0?"future":"past"];return D(r)?r(t):r.replace(/%s/i,t)},vr.set=function(e){var t,r;for(r in e)s(e,r)&&(D(t=e[r])?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},vr.eras=function(e,t){var r,n,a,o=this._eras||lt("en")._eras;for(r=0,n=o.length;r<n;++r){switch(typeof o[r].since){case"string":a=i(o[r].since).startOf("day"),o[r].since=a.valueOf()}switch(typeof o[r].until){case"undefined":o[r].until=1/0;break;case"string":a=i(o[r].until).startOf("day").valueOf(),o[r].until=a.valueOf()}}return o},vr.erasParse=function(e,t,r){var n,i,a,o,s,l=this.eras();for(e=e.toUpperCase(),n=0,i=l.length;n<i;++n)if(a=l[n].name.toUpperCase(),o=l[n].abbr.toUpperCase(),s=l[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(o===e)return l[n];break;case"NNNN":if(a===e)return l[n];break;case"NNNNN":if(s===e)return l[n]}else if([a,o,s].indexOf(e)>=0)return l[n]},vr.erasConvertYear=function(e,t){var r=e.since<=e.until?1:-1;return void 0===t?i(e.since).year():i(e.since).year()+(t-e.offset)*r},vr.erasAbbrRegex=function(e){return s(this,"_erasAbbrRegex")||or.call(this),e?this._erasAbbrRegex:this._erasRegex},vr.erasNameRegex=function(e){return s(this,"_erasNameRegex")||or.call(this),e?this._erasNameRegex:this._erasRegex},vr.erasNarrowRegex=function(e){return s(this,"_erasNarrowRegex")||or.call(this),e?this._erasNarrowRegex:this._erasRegex},vr.months=function(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||xe).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone},vr.monthsShort=function(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[xe.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},vr.monthsParse=function(e,t,r){var n,i,a;if(this._monthsParseExact)return De.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(i=m([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),r||this._monthsParse[n]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[n]=new RegExp(a.replace(".",""),"i")),r&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(r&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}},vr.monthsRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Ye.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=Se),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},vr.monthsShortRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Ye.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=ke),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},vr.week=function(e){return je(e,this._week.dow,this._week.doy).week},vr.firstDayOfYear=function(){return this._week.doy},vr.firstDayOfWeek=function(){return this._week.dow},vr.weekdays=function(e,t){var r=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?He(r,this._week.dow):e?r[e.day()]:r},vr.weekdaysMin=function(e){return!0===e?He(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},vr.weekdaysShort=function(e){return!0===e?He(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},vr.weekdaysParse=function(e,t,r){var n,i,a;if(this._weekdaysParseExact)return Ke.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(i=m([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[n]=new RegExp(a.replace(".",""),"i")),r&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(r&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(r&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}},vr.weekdaysRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=ze),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},vr.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ve),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},vr.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ge),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},vr.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},vr.meridiem=function(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"},ot("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===K(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),i.lang=T("moment.lang is deprecated. Use moment.locale instead.",ot),i.langData=T("moment.langData is deprecated. Use moment.localeData instead.",lt);var wr=Math.abs;function Lr(e,t,r,n){var i=Ut(t,r);return e._milliseconds+=n*i._milliseconds,e._days+=n*i._days,e._months+=n*i._months,e._bubble()}function Tr(e){return e<0?Math.floor(e):Math.ceil(e)}function xr(e){return 4800*e/146097}function kr(e){return 146097*e/4800}function Sr(e){return function(){return this.as(e)}}var Dr=Sr("ms"),Ar=Sr("s"),Er=Sr("m"),Yr=Sr("h"),Or=Sr("d"),Pr=Sr("w"),Rr=Sr("M"),Cr=Sr("Q"),Ir=Sr("y");function Fr(e){return function(){return this.isValid()?this._data[e]:NaN}}var jr=Fr("milliseconds"),Nr=Fr("seconds"),Hr=Fr("minutes"),Br=Fr("hours"),Ur=Fr("days"),Wr=Fr("months"),zr=Fr("years"),Vr=Math.round,Gr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Kr(e,t,r,n,i){return i.relativeTime(t||1,!!r,e,n)}var qr=Math.abs;function Jr(e){return(e>0)-(e<0)||+e}function Xr(){if(!this.isValid())return this.localeData().invalidDate();var e,t,r,n,i,a,o,s,l=qr(this._milliseconds)/1e3,u=qr(this._days),d=qr(this._months),c=this.asSeconds();return c?(e=G(l/60),t=G(e/60),l%=60,e%=60,r=G(d/12),d%=12,n=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=c<0?"-":"",a=Jr(this._months)!==Jr(c)?"-":"",o=Jr(this._days)!==Jr(c)?"-":"",s=Jr(this._milliseconds)!==Jr(c)?"-":"",i+"P"+(r?a+r+"Y":"")+(d?a+d+"M":"")+(u?o+u+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+n+"S":"")):"P0D"}var $r=Yt.prototype;return $r.isValid=function(){return this._isValid},$r.abs=function(){var e=this._data;return this._milliseconds=wr(this._milliseconds),this._days=wr(this._days),this._months=wr(this._months),e.milliseconds=wr(e.milliseconds),e.seconds=wr(e.seconds),e.minutes=wr(e.minutes),e.hours=wr(e.hours),e.months=wr(e.months),e.years=wr(e.years),this},$r.add=function(e,t){return Lr(this,e,t,1)},$r.subtract=function(e,t){return Lr(this,e,t,-1)},$r.as=function(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if("month"===(e=B(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,r=this._months+xr(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(kr(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}},$r.asMilliseconds=Dr,$r.asSeconds=Ar,$r.asMinutes=Er,$r.asHours=Yr,$r.asDays=Or,$r.asWeeks=Pr,$r.asMonths=Rr,$r.asQuarters=Cr,$r.asYears=Ir,$r.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*K(this._months/12):NaN},$r._bubble=function(){var e,t,r,n,i,a=this._milliseconds,o=this._days,s=this._months,l=this._data;return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*Tr(kr(s)+o),o=0,s=0),l.milliseconds=a%1e3,e=G(a/1e3),l.seconds=e%60,t=G(e/60),l.minutes=t%60,r=G(t/60),l.hours=r%24,o+=G(r/24),i=G(xr(o)),s+=i,o-=Tr(kr(i)),n=G(s/12),s%=12,l.days=o,l.months=s,l.years=n,this},$r.clone=function(){return Ut(this)},$r.get=function(e){return e=B(e),this.isValid()?this[e+"s"]():NaN},$r.milliseconds=jr,$r.seconds=Nr,$r.minutes=Hr,$r.hours=Br,$r.days=Ur,$r.weeks=function(){return G(this.days()/7)},$r.months=Wr,$r.years=zr,$r.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var r,n,i=!1,a=Gr;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(a=Object.assign({},Gr,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),r=this.localeData(),n=function(e,t,r,n){var i=Ut(e).abs(),a=Vr(i.as("s")),o=Vr(i.as("m")),s=Vr(i.as("h")),l=Vr(i.as("d")),u=Vr(i.as("M")),d=Vr(i.as("w")),c=Vr(i.as("y")),h=a<=r.ss&&["s",a]||a<r.s&&["ss",a]||o<=1&&["m"]||o<r.m&&["mm",o]||s<=1&&["h"]||s<r.h&&["hh",s]||l<=1&&["d"]||l<r.d&&["dd",l];return null!=r.w&&(h=h||d<=1&&["w"]||d<r.w&&["ww",d]),(h=h||u<=1&&["M"]||u<r.M&&["MM",u]||c<=1&&["y"]||["yy",c])[2]=t,h[3]=+e>0,h[4]=n,Kr.apply(null,h)}(this,!i,a,r),i&&(n=r.pastFuture(+this,n)),r.postformat(n)},$r.toISOString=Xr,$r.toString=Xr,$r.toJSON=Xr,$r.locale=Qt,$r.localeData=tr,$r.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Xr),$r.lang=er,I("X",0,0,"unix"),I("x",0,0,"valueOf"),me("x",de),me("X",/[+-]?\d+(\.\d{1,3})?/),ye("X",(function(e,t,r){r._d=new Date(1e3*parseFloat(e))})),ye("x",(function(e,t,r){r._d=new Date(K(e))})),//! moment.js
123
- i.version="2.29.1",t=kt,i.fn=gr,i.min=function(){var e=[].slice.call(arguments,0);return At("isBefore",e)},i.max=function(){var e=[].slice.call(arguments,0);return At("isAfter",e)},i.now=function(){return Date.now?Date.now():+new Date},i.utc=m,i.unix=function(e){return kt(1e3*e)},i.months=function(e,t){return br(e,t,"months")},i.isDate=c,i.locale=ot,i.invalid=_,i.duration=Ut,i.isMoment=w,i.weekdays=function(e,t,r){return Mr(e,t,r,"weekdays")},i.parseZone=function(){return kt.apply(null,arguments).parseZone()},i.localeData=lt,i.isDuration=Ot,i.monthsShort=function(e,t){return br(e,t,"monthsShort")},i.weekdaysMin=function(e,t,r){return Mr(e,t,r,"weekdaysMin")},i.defineLocale=st,i.updateLocale=function(e,t){if(null!=t){var r,n,i=et;null!=tt[e]&&null!=tt[e].parentLocale?tt[e].set(A(tt[e]._config,t)):(null!=(n=at(e))&&(i=n._config),t=A(i,t),null==n&&(t.abbr=e),(r=new E(t)).parentLocale=tt[e],tt[e]=r),ot(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?(tt[e]=tt[e].parentLocale,e===ot()&&ot(e)):null!=tt[e]&&delete tt[e]);return tt[e]},i.locales=function(){return x(tt)},i.weekdaysShort=function(e,t,r){return Mr(e,t,r,"weekdaysShort")},i.normalizeUnits=B,i.relativeTimeRounding=function(e){return void 0===e?Vr:"function"==typeof e&&(Vr=e,!0)},i.relativeTimeThreshold=function(e,t){return void 0!==Gr[e]&&(void 0===t?Gr[e]:(Gr[e]=t,"s"===e&&(Gr.ss=t-1),!0))},i.calendarFormat=function(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"},i.prototype=gr,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()}).call(this,r(68)(e))},,function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"a",(function(){return a}));var n=r(6);
124
- /**
125
- * @license
126
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
127
- * This code may only be used under the BSD style license found at
128
- * http://polymer.github.io/LICENSE.txt
129
- * The complete set of authors may be found at
130
- * http://polymer.github.io/AUTHORS.txt
131
- * The complete set of contributors may be found at
132
- * http://polymer.github.io/CONTRIBUTORS.txt
133
- * Code distributed by Google as part of the polymer project is also
134
- * subject to an additional IP rights grant found at
135
- * http://polymer.github.io/PATENTS.txt
136
- */function i(e){var t=a.get(e.type);void 0===t&&(t={stringsArray:new WeakMap,keyString:new Map},a.set(e.type,t));var r=t.stringsArray.get(e.strings);if(void 0!==r)return r;var i=e.strings.join(n.f);return void 0===(r=t.keyString.get(i))&&(r=new n.a(e,e.getTemplateElement()),t.keyString.set(i,r)),t.stringsArray.set(e.strings,r),r}var a=new Map},function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return s}));var n=r(12),i=r(10),a=r(21),o=new WeakMap,s=(e,t,r)=>{var s=o.get(t);void 0===s&&(Object(n.b)(t,t.firstChild),o.set(t,s=new i.e(Object.assign({templateFactory:a.b},r))),s.appendInto(t)),s.setValue(e),s.commit()}},,,,function(e,t,r){var n=r(100),i="object"==typeof self&&self&&self.Object===Object&&self,a=n||i||Function("return this")();e.exports=a},function(e,t,r){"use strict";r.d(t,"b",(function(){return s})),r.d(t,"a",(function(){return l}));var n=r(12),i=r(6),a=window.trustedTypes&&trustedTypes.createPolicy("lit-html",{createHTML:e=>e}),o=" ".concat(i.f," ");class s{constructor(e,t,r,n){this.strings=e,this.values=t,this.type=r,this.processor=n}getHTML(){for(var e=this.strings.length-1,t="",r=!1,n=0;n<e;n++){var a=this.strings[n],s=a.lastIndexOf("\x3c!--");r=(s>-1||r)&&-1===a.indexOf("--\x3e",s+1);var l=i.e.exec(a);t+=null===l?a+(r?o:i.g):a.substr(0,l.index)+l[1]+l[2]+i.b+l[3]+i.f}return t+=this.strings[e]}getTemplateElement(){var e=document.createElement("template"),t=this.getHTML();return void 0!==a&&(t=a.createHTML(t)),e.innerHTML=t,e}}class l extends s{getHTML(){return"<svg>".concat(super.getHTML(),"</svg>")}getTemplateElement(){var e=super.getTemplateElement(),t=e.content,r=t.firstChild;return t.removeChild(r),Object(n.c)(t,r.firstChild),e}}},,,,function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(12),i=r(6);
137
- /**
138
- * @license
139
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
140
- * This code may only be used under the BSD style license found at
141
- * http://polymer.github.io/LICENSE.txt
142
- * The complete set of authors may be found at
143
- * http://polymer.github.io/AUTHORS.txt
144
- * The complete set of contributors may be found at
145
- * http://polymer.github.io/CONTRIBUTORS.txt
146
- * Code distributed by Google as part of the polymer project is also
147
- * subject to an additional IP rights grant found at
148
- * http://polymer.github.io/PATENTS.txt
149
- */
150
- class a{constructor(e,t,r){this.__parts=[],this.template=e,this.processor=t,this.options=r}update(e){var t=0;for(var r of this.__parts)void 0!==r&&r.setValue(e[t]),t++;for(var n of this.__parts)void 0!==n&&n.commit()}_clone(){for(var e,t=n.a?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),r=[],a=this.template.parts,o=document.createTreeWalker(t,133,null,!1),s=0,l=0,u=o.nextNode();s<a.length;)if(e=a[s],Object(i.d)(e)){for(;l<e.index;)l++,"TEMPLATE"===u.nodeName&&(r.push(u),o.currentNode=u.content),null===(u=o.nextNode())&&(o.currentNode=r.pop(),u=o.nextNode());if("node"===e.type){var d=this.processor.handleTextExpression(this.options);d.insertAfterNode(u.previousSibling),this.__parts.push(d)}else this.__parts.push(...this.processor.handleAttributeExpressions(u,e.name,e.strings,this.options));s++}else this.__parts.push(void 0),s++;return n.a&&(document.adoptNode(t),customElements.upgrade(t)),t}}},,,,,function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){var n=r(166),i=r(171);e.exports=function(e,t){var r=i(e,t);return n(r)?r:void 0}},,,function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},,,function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},,,function(e,t){var r=Array.isArray;e.exports=r},,function(e,t,r){var n=r(50),i=r(167),a=r(168),o=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?i(e):a(e)}},function(e,t,r){var n=r(26).Symbol;e.exports=n},,,function(e,t,r){var n=r(202),i=r(69),a=r(203),o=r(204),s=r(205),l=r(49),u=r(101),d=u(n),c=u(i),h=u(a),f=u(o),m=u(s),p=l;(n&&"[object DataView]"!=p(new n(new ArrayBuffer(1)))||i&&"[object Map]"!=p(new i)||a&&"[object Promise]"!=p(a.resolve())||o&&"[object Set]"!=p(new o)||s&&"[object WeakMap]"!=p(new s))&&(p=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case d:return"[object DataView]";case c:return"[object Map]";case h:return"[object Promise]";case f:return"[object Set]";case m:return"[object WeakMap]"}return t}),e.exports=p},,function(e,t,r){(function(t){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,r(37))},function(e,t,r){var n=r(156),i=r(157),a=r(158),o=r(159),s=r(160);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=o,l.prototype.set=s,e.exports=l},function(e,t,r){var n=r(78);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},function(e,t,r){var n=r(38)(Object,"create");e.exports=n},function(e,t,r){var n=r(180);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},function(e,t,r){var n=r(102),i=r(103);e.exports=function(e,t,r,a){var o=!r;r||(r={});for(var s=-1,l=t.length;++s<l;){var u=t[s],d=a?a(r[u],e[u],u,r,e):void 0;void 0===d&&(d=e[u]),o?i(r,u,d):n(r,u,d)}return r}},,,,function(e,t){var r=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}},,function(e,t,r){(function(e){var n=r(26),i=r(189),a=t&&!t.nodeType&&t,o=a&&"object"==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===a?n.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;e.exports=l}).call(this,r(68)(e))},,function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){var n=r(38)(r(26),"Map");e.exports=n},function(e,t,r){var n=r(104),i=r(147),a=r(88);e.exports=function(e){return a(e)?n(e):i(e)}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,r){(function(e){var n=r(100),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,o=a&&a.exports===i&&n.process,s=function(){try{var e=a&&a.require&&a.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=s}).call(this,r(68)(e))},function(e,t,r){var n=r(104),i=r(194),a=r(88);e.exports=function(e){return a(e)?n(e,!0):i(e)}},function(e,t,r){var n=r(199),i=r(107),a=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(e){return null==e?[]:(e=Object(e),n(o(e),(function(t){return a.call(e,t)})))}:i;e.exports=s},function(e,t,r){var n=r(120);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},,,function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},,function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},,,,,function(e,t,r){var n=r(80);e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,r){var n=r(229),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},function(e,t,r){var n=r(55),i=r(362),a=r(148),o=r(344),s=r(386),l=r(422),u=i("wks"),d=n.Symbol,c=l?d:d&&d.withoutSetter||o;e.exports=function(e){return a(u,e)&&(s||"string"==typeof u[e])||(s&&a(d,e)?u[e]=d[e]:u[e]=c("Symbol."+e)),u[e]}},function(e,t,r){var n=r(99),i=r(105);e.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},function(e,t,r){var n=r(44);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},,function(e,t,r){var n=r(191),i=r(71),a=r(72),o=a&&a.isTypedArray,s=o?i(o):n;e.exports=s},,function(e,t,r){"use strict";var n,i,a,o=r(403),s=r(89),l=r(55),u=r(80),d=r(148),c=r(352),h=r(280),f=r(281),m=r(121).f,p=r(301),g=r(316),_=r(87),v=r(344),y=l.Int8Array,b=y&&y.prototype,M=l.Uint8ClampedArray,w=M&&M.prototype,L=y&&p(y),T=b&&p(b),x=Object.prototype,k=x.isPrototypeOf,S=_("toStringTag"),D=v("TYPED_ARRAY_TAG"),A=v("TYPED_ARRAY_CONSTRUCTOR"),E=o&&!!g&&"Opera"!==c(l.opera),Y=!1,O={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},P={BigInt64Array:8,BigUint64Array:8},R=function(e){if(!u(e))return!1;var t=c(e);return d(O,t)||d(P,t)};for(n in O)(a=(i=l[n])&&i.prototype)?h(a,A,i):E=!1;for(n in P)(a=(i=l[n])&&i.prototype)&&h(a,A,i);if((!E||"function"!=typeof L||L===Function.prototype)&&(L=function(){throw TypeError("Incorrect invocation")},E))for(n in O)l[n]&&g(l[n],L);if((!E||!T||T===x)&&(T=L.prototype,E))for(n in O)l[n]&&g(l[n].prototype,T);if(E&&p(w)!==T&&g(w,T),s&&!d(T,S))for(n in Y=!0,m(T,S,{get:function(){return u(this)?this[D]:void 0}}),O)l[n]&&h(l[n],D,n);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:E,TYPED_ARRAY_CONSTRUCTOR:A,TYPED_ARRAY_TAG:Y&&D,aTypedArray:function(e){if(R(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(g&&!k.call(L,e))throw TypeError("Target is not a typed array constructor");return e},exportTypedArrayMethod:function(e,t,r){if(s){if(r)for(var n in O){var i=l[n];if(i&&d(i.prototype,e))try{delete i.prototype[e]}catch(e){}}T[e]&&!r||f(T,e,r?t:E&&b[e]||t)}},exportTypedArrayStaticMethod:function(e,t,r){var n,i;if(s){if(g){if(r)for(n in O)if((i=l[n])&&d(i,e))try{delete i[e]}catch(e){}if(L[e]&&!r)return;try{return f(L,e,r?t:E&&L[e]||t)}catch(e){}}for(n in O)!(i=l[n])||i[e]&&!r||f(i,e,t)}},isView:function(e){if(!u(e))return!1;var t=c(e);return"DataView"===t||d(O,t)||d(P,t)},isTypedArray:R,TypedArray:L,TypedArrayPrototype:T}},,function(e,t){var r,n,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(e){r=a}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var l,u=[],d=!1,c=-1;function h(){d&&l&&(d=!1,l.length?u=l.concat(u):c=-1,u.length&&f())}function f(){if(!d){var e=s(h);d=!0;for(var t=u.length;t;){for(l=u,u=[];++c<t;)l&&l[c].run();c=-1,t=u.length}l=null,d=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function p(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new m(e,t)),1!==u.length||d||s(f)},m.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,r){var n=r(335);e.exports=function(e){if(n(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)}},,function(e,t,r){var n=r(155);e.exports=function(e){return n(e,5)}},function(e,t,r){var n=r(49),i=r(36);e.exports=function(e){if(!i(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,r){(function(t){var r="object"==typeof t&&t&&t.Object===Object&&t;e.exports=r}).call(this,r(37))},function(e,t){var r=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,r){var n=r(103),i=r(78),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var o=e[t];a.call(e,t)&&i(o,r)&&(void 0!==r||t in e)||n(e,t,r)}},function(e,t,r){var n=r(185);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},function(e,t,r){var n=r(187),i=r(146),a=r(47),o=r(66),s=r(190),l=r(91),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=a(e),d=!r&&i(e),c=!r&&!d&&o(e),h=!r&&!d&&!c&&l(e),f=r||d||c||h,m=f?n(e.length,String):[],p=m.length;for(var g in e)!t&&!u.call(e,g)||f&&("length"==g||c&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,p))||m.push(g);return m}},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t){e.exports=function(e,t){return function(r){return e(t(r))}}},function(e,t){e.exports=function(){return[]}},function(e,t,r){var n=r(109),i=r(110),a=r(74),o=r(107),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,a(e)),e=i(e);return t}:o;e.exports=s},function(e,t){e.exports=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}},function(e,t,r){var n=r(106)(Object.getPrototypeOf,Object);e.exports=n},function(e,t,r){var n=r(109),i=r(47);e.exports=function(e,t,r){var a=t(e);return i(e)?a:n(a,r(e))}},,,,,,function(e,t,r){var n=r(56),i=r(161),a=r(162),o=r(163),s=r(164),l=r(165);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=i,u.prototype.delete=a,u.prototype.get=o,u.prototype.has=s,u.prototype.set=l,e.exports=u},function(e,t,r){var n=r(172),i=r(179),a=r(181),o=r(182),s=r(183);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=o,l.prototype.set=s,e.exports=l},function(e,t,r){var n=r(111),i=r(74),a=r(70);e.exports=function(e){return n(e,a,i)}},function(e,t,r){var n=r(26).Uint8Array;e.exports=n},function(e,t,r){var n=r(89),i=r(424),a=r(85),o=r(322),s=Object.defineProperty;t.f=n?s:function(e,t,r){if(a(e),t=o(t),a(r),i)try{return s(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},,,,,,,,,,,,,,,,,,,,,,function(e,t,r){var n=r(227);e.exports=function(e){return Object(n(e))}},,,function(e,t,r){var n=r(188),i=r(41),a=Object.prototype,o=a.hasOwnProperty,s=a.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return i(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},function(e,t,r){var n=r(64),i=r(192),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=[];for(var r in Object(e))a.call(e,r)&&"constructor"!=r&&t.push(r);return t}},function(e,t,r){var n=r(143),i={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return i.call(n(e),t)}},function(e,t,r){"use strict";(function(e){
151
- /*!
152
- * The buffer module from node.js, for the browser.
153
- *
154
- * @author Feross Aboukhadijeh <http://feross.org>
155
- * @license MIT
156
- */
157
- var n=r(218),i=r(219),a=r(153);function o(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,r){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return c(this,e)}return u(this,e,t,r)}function u(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=h(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!l.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|m(t,r),i=(e=s(e,n)).write(t,r);i!==n&&(e=e.slice(0,i));return e}(e,t,r):function(e,t){if(l.isBuffer(t)){var r=0|f(t.length);return 0===(e=s(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?s(e,0):h(e,t);if("Buffer"===t.type&&a(t.data))return h(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function d(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function c(e,t){if(d(t),e=s(e,t<0?0:0|f(t)),!l.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function h(e,t){var r=t.length<0?0:0|f(t.length);e=s(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function f(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return B(e).length;default:if(n)return H(e).length;t=(""+t).toLowerCase(),n=!0}}function p(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,r);case"utf8":case"utf-8":return k(this,t,r);case"ascii":return S(this,t,r);case"latin1":case"binary":return D(this,t,r);case"base64":return x(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function g(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function _(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=l.from(t,n)),l.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,i);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):v(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,r,n,i){var a,o=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var d=-1;for(a=r;a<s;a++)if(u(e,a)===u(t,-1===d?0:a-d)){if(-1===d&&(d=a),a-d+1===l)return d*o}else-1!==d&&(a-=a-d),d=-1}else for(r+l>s&&(r=s-l),a=r;a>=0;a--){for(var c=!0,h=0;h<l;h++)if(u(e,a+h)!==u(t,h)){c=!1;break}if(c)return a}return-1}function y(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var o=0;o<n;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[r+o]=s}return o}function b(e,t,r,n){return U(H(t,e.length-r),e,r,n)}function M(e,t,r,n){return U(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function w(e,t,r,n){return M(e,t,r,n)}function L(e,t,r,n){return U(B(t),e,r,n)}function T(e,t,r,n){return U(function(e,t){for(var r,n,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)r=e.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}(t,e.length-r),e,r,n)}function x(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function k(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var a,o,s,l,u=e[i],d=null,c=u>239?4:u>223?3:u>191?2:1;if(i+c<=r)switch(c){case 1:u<128&&(d=u);break;case 2:128==(192&(a=e[i+1]))&&(l=(31&u)<<6|63&a)>127&&(d=l);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(l=(15&u)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(d=l);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(l=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(d=l)}null===d?(d=65533,c=1):d>65535&&(d-=65536,n.push(d>>>10&1023|55296),d=56320|1023&d),n.push(d),i+=c}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=o(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,r){return u(null,e,t,r)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,r){return function(e,t,r,n){return d(t),t<=0?s(e,t):void 0!==r?"string"==typeof n?s(e,t).fill(r,n):s(e,t).fill(r):s(e,t)}(null,e,t,r)},l.allocUnsafe=function(e){return c(null,e)},l.allocUnsafeSlow=function(e){return c(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i<a;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=l.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(!l.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?k(this,0,e):p.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,r,n,i){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(t>>>=0),s=Math.min(a,o),u=this.slice(n,i),d=e.slice(t,r),c=0;c<s;++c)if(u[c]!==d[c]){a=u[c],o=d[c];break}return a<o?-1:o<a?1:0},l.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},l.prototype.indexOf=function(e,t,r){return _(this,e,t,r,!0)},l.prototype.lastIndexOf=function(e,t,r){return _(this,e,t,r,!1)},l.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return y(this,e,t,r);case"utf8":case"utf-8":return b(this,e,t,r);case"ascii":return M(this,e,t,r);case"latin1":case"binary":return w(this,e,t,r);case"base64":return L(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function S(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function D(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function A(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=t;a<r;++a)i+=N(e[a]);return i}function E(e,t,r){for(var n=e.slice(t,r),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function Y(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function O(e,t,r,n,i,a){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function P(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-r,2);i<a;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function R(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-r,4);i<a;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function C(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function I(e,t,r,n,a){return a||C(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function F(e,t,r,n,a){return a||C(e,0,r,8),i.write(e,t,r,n,52,8),r+8}l.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=l.prototype;else{var i=t-e;r=new l(i,void 0);for(var a=0;a<i;++a)r[a]=this[a+e]}return r},l.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||Y(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n},l.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||Y(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},l.prototype.readUInt8=function(e,t){return t||Y(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||Y(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||Y(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||Y(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||Y(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||Y(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},l.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||Y(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},l.prototype.readInt8=function(e,t){return t||Y(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||Y(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt16BE=function(e,t){t||Y(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt32LE=function(e,t){return t||Y(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||Y(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||Y(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||Y(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||Y(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||Y(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||O(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[t]=255&e;++a<r&&(i*=256);)this[t+a]=e/i&255;return t+r},l.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||O(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+r},l.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):R(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);O(this,e,t,r,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<r&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},l.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);O(this,e,t,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},l.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):R(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,r){return I(this,e,t,!0,r)},l.prototype.writeFloatBE=function(e,t,r){return I(this,e,t,!1,r)},l.prototype.writeDoubleLE=function(e,t,r){return F(this,e,t,!0,r)},l.prototype.writeDoubleBE=function(e,t,r){return F(this,e,t,!1,r)},l.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i,a=n-r;if(this===e&&r<t&&t<n)for(i=a-1;i>=0;--i)e[i+t]=this[i+r];else if(a<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+a),t);return a},l.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!l.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var a;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a<r;++a)this[a]=e;else{var o=l.isBuffer(e)?e:H(new l(e,n).toString()),s=o.length;for(a=0;a<r-t;++a)this[a+t]=o[a%s]}return this};var j=/[^+\/0-9A-Za-z-_]/g;function N(e){return e<16?"0"+e.toString(16):e.toString(16)}function H(e,t){var r;t=t||1/0;for(var n=e.length,i=null,a=[],o=0;o<n;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function B(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(j,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function U(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}}).call(this,r(37))},,,,function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},,function(e,t,r){var n=r(117),i=r(184),a=r(102),o=r(186),s=r(193),l=r(196),u=r(197),d=r(198),c=r(200),h=r(119),f=r(201),m=r(53),p=r(206),g=r(207),_=r(212),v=r(47),y=r(66),b=r(214),M=r(36),w=r(216),L=r(70),T=r(73),x={};x["[object Arguments]"]=x["[object Array]"]=x["[object ArrayBuffer]"]=x["[object DataView]"]=x["[object Boolean]"]=x["[object Date]"]=x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Map]"]=x["[object Number]"]=x["[object Object]"]=x["[object RegExp]"]=x["[object Set]"]=x["[object String]"]=x["[object Symbol]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x["[object Error]"]=x["[object Function]"]=x["[object WeakMap]"]=!1,e.exports=function e(t,r,k,S,D,A){var E,Y=1&r,O=2&r,P=4&r;if(k&&(E=D?k(t,S,D,A):k(t)),void 0!==E)return E;if(!M(t))return t;var R=v(t);if(R){if(E=p(t),!Y)return u(t,E)}else{var C=m(t),I="[object Function]"==C||"[object GeneratorFunction]"==C;if(y(t))return l(t,Y);if("[object Object]"==C||"[object Arguments]"==C||I&&!D){if(E=O||I?{}:_(t),!Y)return O?c(t,s(E,t)):d(t,o(E,t))}else{if(!x[C])return D?t:{};E=g(t,C,Y)}}A||(A=new n);var F=A.get(t);if(F)return F;A.set(t,E),w(t)?t.forEach((function(n){E.add(e(n,r,k,n,t,A))})):b(t)&&t.forEach((function(n,i){E.set(i,e(n,r,k,i,t,A))}));var j=R?void 0:(P?O?f:h:O?T:L)(t);return i(j||t,(function(n,i){j&&(n=t[i=n]),a(E,i,e(n,r,k,i,t,A))})),E}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,r){var n=r(57),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():i.call(t,r,1),--this.size,!0)}},function(e,t,r){var n=r(57);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},function(e,t,r){var n=r(57);e.exports=function(e){return n(this.__data__,e)>-1}},function(e,t,r){var n=r(57);e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},function(e,t,r){var n=r(56);e.exports=function(){this.__data__=new n,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,r){var n=r(56),i=r(69),a=r(118);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var o=r.__data__;if(!i||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new a(o)}return r.set(e,t),this.size=r.size,this}},function(e,t,r){var n=r(99),i=r(169),a=r(36),o=r(101),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,d=l.toString,c=u.hasOwnProperty,h=RegExp("^"+d.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||i(e))&&(n(e)?h:s).test(o(e))}},function(e,t,r){var n=r(50),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var i=o.call(e);return n&&(t?e[s]=r:delete e[s]),i}},function(e,t){var r=Object.prototype.toString;e.exports=function(e){return r.call(e)}},function(e,t,r){var n,i=r(170),a=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!a&&a in e}},function(e,t,r){var n=r(26)["__core-js_shared__"];e.exports=n},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,r){var n=r(173),i=r(56),a=r(69);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(a||i),string:new n}}},function(e,t,r){var n=r(174),i=r(175),a=r(176),o=r(177),s=r(178);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=o,l.prototype.set=s,e.exports=l},function(e,t,r){var n=r(58);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,r){var n=r(58),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(t,e)?t[e]:void 0}},function(e,t,r){var n=r(58),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:i.call(t,e)}},function(e,t,r){var n=r(58);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,r){var n=r(59);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,r){var n=r(59);e.exports=function(e){return n(this,e).get(e)}},function(e,t,r){var n=r(59);e.exports=function(e){return n(this,e).has(e)}},function(e,t,r){var n=r(59);e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}},function(e,t){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}},function(e,t,r){var n=r(38),i=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t,r){var n=r(60),i=r(70);e.exports=function(e,t){return e&&n(t,i(t),e)}},function(e,t){e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},function(e,t,r){var n=r(49),i=r(41);e.exports=function(e){return i(e)&&"[object Arguments]"==n(e)}},function(e,t){e.exports=function(){return!1}},function(e,t){var r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&r.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,r){var n=r(49),i=r(105),a=r(41),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&i(e.length)&&!!o[n(e)]}},function(e,t,r){var n=r(106)(Object.keys,Object);e.exports=n},function(e,t,r){var n=r(60),i=r(73);e.exports=function(e,t){return e&&n(t,i(t),e)}},function(e,t,r){var n=r(36),i=r(64),a=r(195),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return a(e);var t=i(e),r=[];for(var s in e)("constructor"!=s||!t&&o.call(e,s))&&r.push(s);return r}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},function(e,t,r){(function(e){var n=r(26),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,o=a&&a.exports===i?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=s?s(r):new e.constructor(r);return e.copy(n),n}}).call(this,r(68)(e))},function(e,t){e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},function(e,t,r){var n=r(60),i=r(74);e.exports=function(e,t){return n(e,i(e),t)}},function(e,t){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}},function(e,t,r){var n=r(60),i=r(108);e.exports=function(e,t){return n(e,i(e),t)}},function(e,t,r){var n=r(111),i=r(108),a=r(73);e.exports=function(e){return n(e,a,i)}},function(e,t,r){var n=r(38)(r(26),"DataView");e.exports=n},function(e,t,r){var n=r(38)(r(26),"Promise");e.exports=n},function(e,t,r){var n=r(38)(r(26),"Set");e.exports=n},function(e,t,r){var n=r(38)(r(26),"WeakMap");e.exports=n},function(e,t){var r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&r.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},function(e,t,r){var n=r(75),i=r(208),a=r(209),o=r(210),s=r(211);e.exports=function(e,t,r){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return i(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,r);case"[object Map]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return a(e);case"[object Set]":return new l;case"[object Symbol]":return o(e)}}},function(e,t,r){var n=r(75);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},function(e,t){var r=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,r.exec(e));return t.lastIndex=e.lastIndex,t}},function(e,t,r){var n=r(50),i=n?n.prototype:void 0,a=i?i.valueOf:void 0;e.exports=function(e){return a?Object(a.call(e)):{}}},function(e,t,r){var n=r(75);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},function(e,t,r){var n=r(213),i=r(110),a=r(64);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:n(i(e))}},function(e,t,r){var n=r(36),i=Object.create,a=function(){function e(){}return function(t){if(!n(t))return{};if(i)return i(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=a},function(e,t,r){var n=r(215),i=r(71),a=r(72),o=a&&a.isMap,s=o?i(o):n;e.exports=s},function(e,t,r){var n=r(53),i=r(41);e.exports=function(e){return i(e)&&"[object Map]"==n(e)}},function(e,t,r){var n=r(217),i=r(71),a=r(72),o=a&&a.isSet,s=o?i(o):n;e.exports=s},function(e,t,r){var n=r(53),i=r(41);e.exports=function(e){return i(e)&&"[object Set]"==n(e)}},function(e,t,r){"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,n=u(e),o=n[0],s=n[1],l=new a(function(e,t,r){return 3*(t+r)/4-r}(0,o,s)),d=0,c=s>0?o-4:o;for(r=0;r<c;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],l[d++]=t>>16&255,l[d++]=t>>8&255,l[d++]=255&t;2===s&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,l[d++]=255&t);1===s&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,l[d++]=t>>8&255,l[d++]=255&t);return l},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,a=[],o=0,s=r-i;o<s;o+=16383)a.push(d(e,o,o+16383>s?s:o+16383));1===i?(t=e[r-1],a.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],a.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return a.join("")};for(var n=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=o.length;s<l;++s)n[s]=o[s],i[o.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function d(e,t,r){for(var i,a,o=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(n[(a=i)>>18&63]+n[a>>12&63]+n[a>>6&63]+n[63&a]);return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){
158
- /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
159
- t.read=function(e,t,r,n,i){var a,o,s=8*i-n-1,l=(1<<s)-1,u=l>>1,d=-7,c=r?i-1:0,h=r?-1:1,f=e[t+c];for(c+=h,a=f&(1<<-d)-1,f>>=-d,d+=s;d>0;a=256*a+e[t+c],c+=h,d-=8);for(o=a&(1<<-d)-1,a>>=-d,d+=n;d>0;o=256*o+e[t+c],c+=h,d-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,n),a-=u}return(f?-1:1)*o*Math.pow(2,a-n)},t.write=function(e,t,r,n,i,a){var o,s,l,u=8*a-i-1,d=(1<<u)-1,c=d>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:a-1,m=n?1:-1,p=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=d):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+c>=1?h/l:h*Math.pow(2,1-c))*l>=2&&(o++,l/=2),o+c>=d?(s=0,o=d):o+c>=1?(s=(t*l-1)*Math.pow(2,i),o+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;e[r+f]=255&s,f+=m,s/=256,i-=8);for(o=o<<i|s,u+=i;u>0;e[r+f]=255&o,f+=m,o/=256,u-=8);e[r+f-m]|=128*p}},,,,,,,,function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var n,i,a,o=r(425),s=r(55),l=r(80),u=r(280),d=r(148),c=r(387),h=r(363),f=r(345),m=s.WeakMap;if(o||c.state){var p=c.state||(c.state=new m),g=p.get,_=p.has,v=p.set;n=function(e,t){if(_.call(p,e))throw new TypeError("Object already initialized");return t.facade=e,v.call(p,e,t),t},i=function(e){return g.call(p,e)||{}},a=function(e){return _.call(p,e)}}else{var y=h("state");f[y]=!0,n=function(e,t){if(d(e,y))throw new TypeError("Object already initialized");return t.facade=e,u(e,y,t),t},i=function(e){return d(e,y)?e[y]:{}},a=function(e){return d(e,y)}}e.exports={set:n,get:i,has:a,enforce:function(e){return a(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!l(t)||(r=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t,r){var n=r(326),i=r(343),a=r(143),o=r(86),s=r(349),l=[].push,u=function(e){var t=1==e,r=2==e,u=3==e,d=4==e,c=6==e,h=7==e,f=5==e||c;return function(m,p,g,_){for(var v,y,b=a(m),M=i(b),w=n(p,g,3),L=o(M.length),T=0,x=_||s,k=t?x(m,L):r||h?x(m,0):void 0;L>T;T++)if((f||T in M)&&(y=w(v=M[T],T,b),e))if(t)k[T]=y;else if(y)switch(e){case 3:return!0;case 5:return v;case 6:return T;case 2:l.call(k,v)}else switch(e){case 4:return!1;case 7:l.call(k,v)}return c?-1:u||d?d:k}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){var n=r(89),i=r(361),a=r(313),o=r(297),s=r(322),l=r(148),u=r(424),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=o(e),t=s(t),u)try{return d(e,t)}catch(e){}if(l(e,t))return a(!i.f.call(e,t),e[t])}},function(e,t,r){var n=r(89),i=r(121),a=r(313);e.exports=n?function(e,t,r){return i.f(e,t,a(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){var n=r(55),i=r(280),a=r(148),o=r(388),s=r(390),l=r(228),u=l.get,d=l.enforce,c=String(String).split("String");(e.exports=function(e,t,r,s){var l,u=!!s&&!!s.unsafe,h=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof r&&("string"!=typeof t||a(r,"name")||i(r,"name",t),(l=d(r)).source||(l.source=c.join("string"==typeof t?t:""))),e!==n?(u?!f&&e[t]&&(h=!0):delete e[t],h?e[t]=r:i(e,t,r)):h?e[t]=r:o(t,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||s(this)}))},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},,,,function(e,t,r){var n=r(55),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(n[e]):n[e]&&n[e][t]}},function(e,t,r){var n=r(430),i=r(148),a=r(429),o=r(121).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});i(t,e)||o(t,e,{value:a.f(e)})}},,,,,,,,,,function(e,t,r){var n=r(343),i=r(227);e.exports=function(e){return n(i(e))}},function(e,t,r){var n=r(227),i=r(96),a=/"/g;e.exports=function(e,t,r,o){var s=i(n(e)),l="<"+t;return""!==r&&(l+=" "+r+'="'+i(o).replace(a,"&quot;")+'"'),l+">"+s+"</"+t+">"}},function(e,t,r){var n=r(44);e.exports=function(e){return n((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},function(e,t){e.exports=!1},function(e,t,r){var n=r(148),i=r(143),a=r(363),o=r(396),s=a("IE_PROTO"),l=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=i(e),n(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},,,function(e,t,r){var n,i=r(85),a=r(394),o=r(392),s=r(345),l=r(428),u=r(389),d=r(363),c=d("IE_PROTO"),h=function(){},f=function(e){return"<script>"+e+"<\/script>"},m=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},p=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t;p="undefined"!=typeof document?document.domain&&n?m(n):((t=u("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):m(n);for(var r=o.length;r--;)delete p.prototype[o[r]];return p()};s[c]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(h.prototype=i(e),r=new h,h.prototype=null,r[c]=e):r=p(),void 0===t?r:a(r,t)}},function(e,t,r){var n=r(121).f,i=r(148),a=r(87)("toStringTag");e.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,a)&&n(e,a,{configurable:!0,value:t})}},,,,,,,,function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t,r){var n=r(286);e.exports=n("navigator","userAgent")||""},function(e,t,r){var n=r(85),i=r(431);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),t=r instanceof Array}catch(e){}return function(r,a){return n(r),i(a),t?e.call(r,a):r.__proto__=a,r}}():void 0)},function(e,t,r){var n=r(87),i=r(304),a=r(121),o=n("unscopables"),s=Array.prototype;null==s[o]&&a.f(s,o,{configurable:!0,value:i(null)}),e.exports=function(e){s[o][e]=!0}},function(e,t,r){"use strict";var n=r(44);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){throw 1},1)}))}},function(e,t,r){"use strict";var n=r(15),i=r(55),a=r(89),o=r(415),s=r(93),l=r(368),u=r(328),d=r(313),c=r(280),h=r(407),f=r(86),m=r(442),p=r(461),g=r(322),_=r(148),v=r(352),y=r(80),b=r(335),M=r(304),w=r(316),L=r(324).f,T=r(462),x=r(230).forEach,k=r(337),S=r(121),D=r(279),A=r(228),E=r(370),Y=A.get,O=A.set,P=S.f,R=D.f,C=Math.round,I=i.RangeError,F=l.ArrayBuffer,j=l.DataView,N=s.NATIVE_ARRAY_BUFFER_VIEWS,H=s.TYPED_ARRAY_CONSTRUCTOR,B=s.TYPED_ARRAY_TAG,U=s.TypedArray,W=s.TypedArrayPrototype,z=s.aTypedArrayConstructor,V=s.isTypedArray,G=function(e,t){for(var r=0,n=t.length,i=new(z(e))(n);n>r;)i[r]=t[r++];return i},K=function(e,t){P(e,t,{get:function(){return Y(this)[t]}})},q=function(e){var t;return e instanceof F||"ArrayBuffer"==(t=v(e))||"SharedArrayBuffer"==t},J=function(e,t){return V(e)&&!b(t)&&t in e&&h(+t)&&t>=0},X=function(e,t){return t=g(t),J(e,t)?d(2,e[t]):R(e,t)},$=function(e,t,r){return t=g(t),!(J(e,t)&&y(r)&&_(r,"value"))||_(r,"get")||_(r,"set")||r.configurable||_(r,"writable")&&!r.writable||_(r,"enumerable")&&!r.enumerable?P(e,t,r):(e[t]=r.value,e)};a?(N||(D.f=X,S.f=$,K(W,"buffer"),K(W,"byteOffset"),K(W,"byteLength"),K(W,"length")),n({target:"Object",stat:!0,forced:!N},{getOwnPropertyDescriptor:X,defineProperty:$}),e.exports=function(e,t,r){var a=e.match(/\d+$/)[0]/8,s=e+(r?"Clamped":"")+"Array",l="get"+e,d="set"+e,h=i[s],g=h,_=g&&g.prototype,v={},b=function(e,t){P(e,t,{get:function(){return function(e,t){var r=Y(e);return r.view[l](t*a+r.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,n){var i=Y(e);r&&(n=(n=C(n))<0?0:n>255?255:255&n),i.view[d](t*a+i.byteOffset,n,!0)}(this,t,e)},enumerable:!0})};N?o&&(g=t((function(e,t,r,n){return u(e,g,s),E(y(t)?q(t)?void 0!==n?new h(t,p(r,a),n):void 0!==r?new h(t,p(r,a)):new h(t):V(t)?G(g,t):T.call(g,t):new h(m(t)),e,g)})),w&&w(g,U),x(L(h),(function(e){e in g||c(g,e,h[e])})),g.prototype=_):(g=t((function(e,t,r,n){u(e,g,s);var i,o,l,d=0,c=0;if(y(t)){if(!q(t))return V(t)?G(g,t):T.call(g,t);i=t,c=p(r,a);var h=t.byteLength;if(void 0===n){if(h%a)throw I("Wrong length");if((o=h-c)<0)throw I("Wrong length")}else if((o=f(n)*a)+c>h)throw I("Wrong length");l=o/a}else l=m(t),i=new F(o=l*a);for(O(e,{buffer:i,byteOffset:c,byteLength:o,length:l,view:new j(i)});d<l;)b(e,d++)})),w&&w(g,U),_=g.prototype=M(W)),_.constructor!==g&&c(_,"constructor",g),c(_,H,g),B&&c(_,B,s),v[s]=g,n({global:!0,forced:g!=h,sham:!N},v),"BYTES_PER_ELEMENT"in g||c(g,"BYTES_PER_ELEMENT",a),"BYTES_PER_ELEMENT"in _||c(_,"BYTES_PER_ELEMENT",a),k(s)}):e.exports=function(){}},,,function(e,t,r){var n=r(385),i=r(335);e.exports=function(e){var t=n(e,"string");return i(t)?t:String(t)}},function(e,t,r){var n,i,a=r(55),o=r(315),s=a.process,l=a.Deno,u=s&&s.versions||l&&l.version,d=u&&u.v8;d?i=(n=d.split("."))[0]<4?1:n[0]+n[1]:o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(i=n[1]),e.exports=i&&+i},function(e,t,r){var n=r(427),i=r(392).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},function(e,t,r){var n=r(229),i=Math.max,a=Math.min;e.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):a(r,t)}},function(e,t,r){var n=r(282);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,r){var n=r(85),i=r(397),a=r(86),o=r(326),s=r(364),l=r(351),u=r(432),d=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,r){var c,h,f,m,p,g,_,v=r&&r.that,y=!(!r||!r.AS_ENTRIES),b=!(!r||!r.IS_ITERATOR),M=!(!r||!r.INTERRUPTED),w=o(t,v,1+y+M),L=function(e){return c&&u(c,"normal",e),new d(!0,e)},T=function(e){return y?(n(e),M?w(e[0],e[1],L):w(e[0],e[1])):M?w(e,L):w(e)};if(b)c=e;else{if("function"!=typeof(h=l(e)))throw TypeError("Target is not iterable");if(i(h)){for(f=0,m=a(e.length);m>f;f++)if((p=T(e[f]))&&p instanceof d)return p;return new d(!1)}c=s(e,h)}for(g=c.next;!(_=g.call(c)).done;){try{p=T(_.value)}catch(e){u(c,"throw",e)}if("object"==typeof p&&p&&p instanceof d)return p}return new d(!1)}},function(e,t){e.exports=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e}},,function(e,t,r){var n=r(314);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,r){"use strict";var n=r(322),i=r(121),a=r(313);e.exports=function(e,t,r){var o=n(t);o in e?i.f(e,o,a(0,r)):e[o]=r}},function(e,t,r){var n=r(15),i=r(345),a=r(80),o=r(148),s=r(121).f,l=r(324),u=r(395),d=r(344),c=r(354),h=!1,f=d("meta"),m=0,p=Object.isExtensible||function(){return!0},g=function(e){s(e,f,{value:{objectID:"O"+m++,weakData:{}}})},_=e.exports={enable:function(){_.enable=function(){},h=!0;var e=l.f,t=[].splice,r={};r[f]=1,e(r).length&&(l.f=function(r){for(var n=e(r),i=0,a=n.length;i<a;i++)if(n[i]===f){t.call(n,i,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:u.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,f)){if(!p(e))return"F";if(!t)return"E";g(e)}return e[f].objectID},getWeakData:function(e,t){if(!o(e,f)){if(!p(e))return!0;if(!t)return!1;g(e)}return e[f].weakData},onFreeze:function(e){return c&&h&&p(e)&&!o(e,f)&&g(e),e}};i[f]=!0},function(e,t,r){"use strict";var n=r(382),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=c;var a=Object.create(r(356));a.inherits=r(342);var o=r(603),s=r(418);a.inherits(c,o);for(var l=i(s.prototype),u=0;u<l.length;u++){var d=l[u];c.prototype[d]||(c.prototype[d]=s.prototype[d])}function c(e){if(!(this instanceof c))return new c(e);o.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||n.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),c.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},,function(e,t,r){var n=r(286),i=r(422);e.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return"function"==typeof t&&Object(e)instanceof t}},function(e,t,r){var n=r(314),i=r(55);e.exports="process"==n(i.process)},function(e,t,r){"use strict";var n=r(286),i=r(121),a=r(87),o=r(89),s=a("species");e.exports=function(e){var t=n(e),r=i.f;o&&t&&!t[s]&&r(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,r){var n=r(281);e.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}},function(e,t,r){var n=r(85),i=r(282),a=r(87)("species");e.exports=function(e,t){var r,o=n(e).constructor;return void 0===o||null==(r=n(o)[a])?t:i(r)}},function(e,t,r){var n=r(227),i=r(96),a="["+r(372)+"]",o=RegExp("^"+a+a+"*"),s=RegExp(a+a+"*$"),l=function(e){return function(t){var r=i(n(t));return 1&e&&(r=r.replace(o,"")),2&e&&(r=r.replace(s,"")),r}};e.exports={start:l(1),end:l(2),trim:l(3)}},function(e,t,r){"use strict";var n=r(85);e.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},function(e,t,r){var n=r(44),i=r(314),a="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?a.call(e,""):Object(e)}:Object},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++r+n).toString(36)}},function(e,t){e.exports={}},function(e,t,r){var n=r(297),i=r(86),a=r(325),o=function(e){return function(t,r,o){var s,l=n(t),u=i(l.length),d=a(o,u);if(e&&r!=r){for(;u>d;)if((s=l[d++])!=s)return!0}else for(;u>d;d++)if((e||d in l)&&l[d]===r)return e||d||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},function(e,t,r){var n=r(44),i=/#|\.prototype\./,a=function(e,t){var r=s[o(e)];return r==u||r!=l&&("function"==typeof t?n(t):!!t)},o=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=a.data={},l=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},function(e,t,r){var n=r(427),i=r(392);e.exports=Object.keys||function(e){return n(e,i)}},function(e,t,r){var n=r(614);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},function(e,t){e.exports={}},function(e,t,r){var n=r(352),i=r(350),a=r(87)("iterator");e.exports=function(e){if(null!=e)return e[a]||e["@@iterator"]||i[n(e)]}},function(e,t,r){var n=r(398),i=r(314),a=r(87)("toStringTag"),o="Arguments"==i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),a))?r:o?i(t):"Object"==(n=i(t))&&"function"==typeof t.callee?"Arguments":n}},function(e,t,r){var n=r(44),i=r(87),a=r(323),o=i("species");e.exports=function(e){return a>=51||!n((function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,r){var n=r(44);e.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,r){var n=r(80),i=r(314),a=r(87)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==i(e))}},function(e,t,r){function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(149).Buffer.isBuffer},function(e,t,r){
160
- /*!
161
- * Chart.js v2.9.4
162
- * https://www.chartjs.org
163
- * (c) 2020 Chart.js Contributors
164
- * Released under the MIT License
165
- */
166
- e.exports=function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var t={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},r=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[t[n]]=n);var i=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in i)if(i.hasOwnProperty(a)){if(!("channels"in i[a]))throw new Error("missing channels property: "+a);if(!("labels"in i[a]))throw new Error("missing channel labels property: "+a);if(i[a].labels.length!==i[a].channels)throw new Error("channel and label counts mismatch: "+a);var o=i[a].channels,s=i[a].labels;delete i[a].channels,delete i[a].labels,Object.defineProperty(i[a],"channels",{value:o}),Object.defineProperty(i[a],"labels",{value:s})}i.rgb.hsl=function(e){var t,r,n=e[0]/255,i=e[1]/255,a=e[2]/255,o=Math.min(n,i,a),s=Math.max(n,i,a),l=s-o;return s===o?t=0:n===s?t=(i-a)/l:i===s?t=2+(a-n)/l:a===s&&(t=4+(n-i)/l),(t=Math.min(60*t,360))<0&&(t+=360),r=(o+s)/2,[t,100*(s===o?0:r<=.5?l/(s+o):l/(2-s-o)),100*r]},i.rgb.hsv=function(e){var t,r,n,i,a,o=e[0]/255,s=e[1]/255,l=e[2]/255,u=Math.max(o,s,l),d=u-Math.min(o,s,l),c=function(e){return(u-e)/6/d+.5};return 0===d?i=a=0:(a=d/u,t=c(o),r=c(s),n=c(l),o===u?i=n-r:s===u?i=1/3+t-n:l===u&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*a,100*u]},i.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2];return[i.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(r,n))*100,100*(n=1-1/255*Math.max(t,Math.max(r,n)))]},i.rgb.cmyk=function(e){var t,r=e[0]/255,n=e[1]/255,i=e[2]/255;return[100*((1-r-(t=Math.min(1-r,1-n,1-i)))/(1-t)||0),100*((1-n-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},i.rgb.keyword=function(e){var n=r[e];if(n)return n;var i,a,o,s=1/0;for(var l in t)if(t.hasOwnProperty(l)){var u=t[l],d=(a=e,o=u,Math.pow(a[0]-o[0],2)+Math.pow(a[1]-o[1],2)+Math.pow(a[2]-o[2],2));d<s&&(s=d,i=l)}return i},i.keyword.rgb=function(e){return t[e]},i.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},i.rgb.lab=function(e){var t=i.rgb.xyz(e),r=t[0],n=t[1],a=t[2];return n/=100,a/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(r-n),200*(n-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]},i.hsl.rgb=function(e){var t,r,n,i,a,o=e[0]/360,s=e[1]/100,l=e[2]/100;if(0===s)return[a=255*l,a,a];t=2*l-(r=l<.5?l*(1+s):l+s-l*s),i=[0,0,0];for(var u=0;u<3;u++)(n=o+1/3*-(u-1))<0&&n++,n>1&&n--,a=6*n<1?t+6*(r-t)*n:2*n<1?r:3*n<2?t+(r-t)*(2/3-n)*6:t,i[u]=255*a;return i},i.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=r,a=Math.max(n,.01);return r*=(n*=2)<=1?n:2-n,i*=a<=1?a:2-a,[t,100*(0===n?2*i/(a+i):2*r/(n+r)),(n+r)/2*100]},i.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,a=t-Math.floor(t),o=255*n*(1-r),s=255*n*(1-r*a),l=255*n*(1-r*(1-a));switch(n*=255,i){case 0:return[n,l,o];case 1:return[s,n,o];case 2:return[o,n,l];case 3:return[o,s,n];case 4:return[l,o,n];case 5:return[n,o,s]}},i.hsv.hsl=function(e){var t,r,n,i=e[0],a=e[1]/100,o=e[2]/100,s=Math.max(o,.01);return n=(2-a)*o,r=a*s,[i,100*(r=(r/=(t=(2-a)*s)<=1?t:2-t)||0),100*(n/=2)]},i.hwb.rgb=function(e){var t,r,n,i,a,o,s,l=e[0]/360,u=e[1]/100,d=e[2]/100,c=u+d;switch(c>1&&(u/=c,d/=c),n=6*l-(t=Math.floor(6*l)),0!=(1&t)&&(n=1-n),i=u+n*((r=1-d)-u),t){default:case 6:case 0:a=r,o=i,s=u;break;case 1:a=i,o=r,s=u;break;case 2:a=u,o=r,s=i;break;case 3:a=u,o=i,s=r;break;case 4:a=i,o=u,s=r;break;case 5:a=r,o=u,s=i}return[255*a,255*o,255*s]},i.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i))]},i.xyz.rgb=function(e){var t,r,n,i=e[0]/100,a=e[1]/100,o=e[2]/100;return r=-.9689*i+1.8758*a+.0415*o,n=.0557*i+-.204*a+1.057*o,t=(t=3.2406*i+-1.5372*a+-.4986*o)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,[255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1)),255*(n=Math.min(Math.max(0,n),1))]},i.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2];return r/=100,n/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(t-r),200*(r-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},i.lab.xyz=function(e){var t,r,n,i=e[0];t=e[1]/500+(r=(i+16)/116),n=r-e[2]/200;var a=Math.pow(r,3),o=Math.pow(t,3),s=Math.pow(n,3);return r=a>.008856?a:(r-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,n=s>.008856?s:(n-16/116)/7.787,[t*=95.047,r*=100,n*=108.883]},i.lab.lch=function(e){var t,r=e[0],n=e[1],i=e[2];return(t=360*Math.atan2(i,n)/2/Math.PI)<0&&(t+=360),[r,Math.sqrt(n*n+i*i),t]},i.lch.lab=function(e){var t,r=e[0],n=e[1];return t=e[2]/360*2*Math.PI,[r,n*Math.cos(t),n*Math.sin(t)]},i.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],a=1 in arguments?arguments[1]:i.rgb.hsv(e)[2];if(0===(a=Math.round(a/50)))return 30;var o=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return 2===a&&(o+=60),o},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},i.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},i.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var r;return e-=16,[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]},i.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},i.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];3===t[0].length&&(r=r.split("").map((function(e){return e+e})).join(""));var n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},i.rgb.hcg=function(e){var t,r=e[0]/255,n=e[1]/255,i=e[2]/255,a=Math.max(Math.max(r,n),i),o=Math.min(Math.min(r,n),i),s=a-o;return t=s<=0?0:a===r?(n-i)/s%6:a===n?2+(i-r)/s:4+(r-n)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?o/(1-s):0)]},i.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,i=0;return(n=r<.5?2*t*r:2*t*(1-r))<1&&(i=(r-.5*n)/(1-n)),[e[0],100*n,100*i]},i.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],100*n,100*i]},i.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];var i,a=[0,0,0],o=t%1*6,s=o%1,l=1-s;switch(Math.floor(o)){case 0:a[0]=1,a[1]=s,a[2]=0;break;case 1:a[0]=l,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=s;break;case 3:a[0]=0,a[1]=l,a[2]=1;break;case 4:a[0]=s,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=l}return i=(1-r)*n,[255*(r*a[0]+i),255*(r*a[1]+i),255*(r*a[2]+i)]},i.hcg.hsv=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t),n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},i.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100*(1-t)+.5*t,n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},i.hcg.hwb=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},i.hwb.hcg=function(e){var t=e[1]/100,r=1-e[2]/100,n=r-t,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],100*n,100*i]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=i.gray.hsv=function(e){return[0,0,e[0]]},i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function n(e){var t=function(){for(var e={},t=Object.keys(r),n=t.length,i=0;i<n;i++)e[t[i]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;)for(var i=n.pop(),a=Object.keys(r[i]),o=a.length,s=0;s<o;s++){var l=a[s],u=t[l];-1===u.distance&&(u.distance=t[i].distance+1,u.parent=i,n.unshift(l))}return t}function i(e,t){return function(r){return t(e(r))}}function a(e,t){for(var n=[t[e].parent,e],a=r[t[e].parent][e],o=t[e].parent;t[o].parent;)n.unshift(t[o].parent),a=i(r[t[o].parent][o],a),o=t[o].parent;return a.conversion=n,a}r.rgb,r.hsl,r.hsv,r.hwb,r.cmyk,r.xyz,r.lab,r.lch,r.hex,r.keyword,r.ansi16,r.ansi256,r.hcg,r.apple,r.gray;var o={};Object.keys(r).forEach((function(e){o[e]={},Object.defineProperty(o[e],"channels",{value:r[e].channels}),Object.defineProperty(o[e],"labels",{value:r[e].labels});var t=function(e){for(var t=n(e),r={},i=Object.keys(t),o=i.length,s=0;s<o;s++){var l=i[s];null!==t[l].parent&&(r[l]=a(l,t))}return r}(e);Object.keys(t).forEach((function(r){var n=t[r];o[e][r]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var r=e(t);if("object"==typeof r)for(var n=r.length,i=0;i<n;i++)r[i]=Math.round(r[i]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(n),o[e][r].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(n)}))}));var s=o,l={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},u={getRgba:d,getHsla:c,getRgb:function(e){var t=d(e);return t&&t.slice(0,3)},getHsl:function(e){var t=c(e);return t&&t.slice(0,3)},getHwb:h,getAlpha:function(e){var t=d(e);return t||(t=c(e))||(t=h(e))?t[3]:void 0},hexString:function(e,t){return t=void 0!==t&&3===e.length?t:e[3],"#"+_(e[0])+_(e[1])+_(e[2])+(t>=0&&t<1?_(Math.round(255*t)):"")},rgbString:function(e,t){return t<1||e[3]&&e[3]<1?f(e,t):"rgb("+e[0]+", "+e[1]+", "+e[2]+")"},rgbaString:f,percentString:function(e,t){if(t<1||e[3]&&e[3]<1)return m(e,t);var r=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),i=Math.round(e[2]/255*100);return"rgb("+r+"%, "+n+"%, "+i+"%)"},percentaString:m,hslString:function(e,t){return t<1||e[3]&&e[3]<1?p(e,t):"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"},hslaString:p,hwbString:function(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"},keyword:function(e){return v[e.slice(0,3)]}};function d(e){if(e){var t=[0,0,0],r=1,n=e.match(/^#([a-fA-F0-9]{3,4})$/i),i="";if(n){i=(n=n[1])[3];for(var a=0;a<t.length;a++)t[a]=parseInt(n[a]+n[a],16);i&&(r=Math.round(parseInt(i+i,16)/255*100)/100)}else if(n=e.match(/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i)){for(i=n[2],n=n[1],a=0;a<t.length;a++)t[a]=parseInt(n.slice(2*a,2*a+2),16);i&&(r=Math.round(parseInt(i,16)/255*100)/100)}else if(n=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(a=0;a<t.length;a++)t[a]=parseInt(n[a+1]);r=parseFloat(n[4])}else if(n=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(a=0;a<t.length;a++)t[a]=Math.round(2.55*parseFloat(n[a+1]));r=parseFloat(n[4])}else if(n=e.match(/(\w+)/)){if("transparent"==n[1])return[0,0,0,0];if(!(t=l[n[1]]))return}for(a=0;a<t.length;a++)t[a]=g(t[a],0,255);return r=r||0==r?g(r,0,1):1,t[3]=r,t}}function c(e){if(e){var t=e.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var r=parseFloat(t[4]);return[g(parseInt(t[1]),0,360),g(parseFloat(t[2]),0,100),g(parseFloat(t[3]),0,100),g(isNaN(r)?1:r,0,1)]}}}function h(e){if(e){var t=e.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var r=parseFloat(t[4]);return[g(parseInt(t[1]),0,360),g(parseFloat(t[2]),0,100),g(parseFloat(t[3]),0,100),g(isNaN(r)?1:r,0,1)]}}}function f(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function m(e,t){return"rgba("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%, "+(t||e[3]||1)+")"}function p(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function g(e,t,r){return Math.min(Math.max(t,e),r)}function _(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}var v={};for(var y in l)v[l[y]]=y;var b=function(e){return e instanceof b?e:this instanceof b?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof e?(t=u.getRgba(e))?this.setValues("rgb",t):(t=u.getHsla(e))?this.setValues("hsl",t):(t=u.getHwb(e))&&this.setValues("hwb",t):"object"==typeof e&&(void 0!==(t=e).r||void 0!==t.red?this.setValues("rgb",t):void 0!==t.l||void 0!==t.lightness?this.setValues("hsl",t):void 0!==t.v||void 0!==t.value?this.setValues("hsv",t):void 0!==t.w||void 0!==t.whiteness?this.setValues("hwb",t):void 0===t.c&&void 0===t.cyan||this.setValues("cmyk",t)))):new b(e);var t};b.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var e=this.values;return 1!==e.alpha?e.hwb.concat([e.alpha]):e.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var e=this.values;return e.rgb.concat([e.alpha])},hslaArray:function(){var e=this.values;return e.hsl.concat([e.alpha])},alpha:function(e){return void 0===e?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)},green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return e&&(e=(e%=360)<0?360+e:e),this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv",2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return u.hexString(this.values.rgb)},rgbString:function(){return u.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return u.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return u.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return u.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return u.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return u.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return u.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var e=this.values.rgb;return e[0]<<16|e[1]<<8|e[2]},luminosity:function(){for(var e=this.values.rgb,t=[],r=0;r<e.length;r++){var n=e[r]/255;t[r]=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues("hsl",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues("hsl",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues("hsl",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues("hsl",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues("hwb",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues("hwb",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues("alpha",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues("alpha",t+t*e),this},rotate:function(e){var t=this.values.hsl,r=(t[0]+e)%360;return t[0]=r<0?360+r:r,this.setValues("hsl",t),this},mix:function(e,t){var r=e,n=void 0===t?.5:t,i=2*n-1,a=this.alpha()-r.alpha(),o=((i*a==-1?i:(i+a)/(1+i*a))+1)/2,s=1-o;return this.rgb(o*this.red()+s*r.red(),o*this.green()+s*r.green(),o*this.blue()+s*r.blue()).alpha(this.alpha()*n+r.alpha()*(1-n))},toJSON:function(){return this.rgb()},clone:function(){var e,t,r=new b,n=this.values,i=r.values;for(var a in n)n.hasOwnProperty(a)&&(e=n[a],"[object Array]"===(t={}.toString.call(e))?i[a]=e.slice(0):"[object Number]"===t?i[a]=e:console.error("unexpected color value:",e));return r}},b.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},b.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},b.prototype.getValues=function(e){for(var t=this.values,r={},n=0;n<e.length;n++)r[e.charAt(n)]=t[e][n];return 1!==t.alpha&&(r.a=t.alpha),r},b.prototype.setValues=function(e,t){var r,n,i=this.values,a=this.spaces,o=this.maxes,l=1;if(this.valid=!0,"alpha"===e)l=t;else if(t.length)i[e]=t.slice(0,e.length),l=t[e.length];else if(void 0!==t[e.charAt(0)]){for(r=0;r<e.length;r++)i[e][r]=t[e.charAt(r)];l=t.a}else if(void 0!==t[a[e][0]]){var u=a[e];for(r=0;r<e.length;r++)i[e][r]=t[u[r]];l=t.alpha}if(i.alpha=Math.max(0,Math.min(1,void 0===l?i.alpha:l)),"alpha"===e)return!1;for(r=0;r<e.length;r++)n=Math.max(0,Math.min(o[e][r],i[e][r])),i[e][r]=Math.round(n);for(var d in a)d!==e&&(i[d]=s[e][d](i[e]));return!0},b.prototype.setSpace=function(e,t){var r=t[0];return void 0===r?this.getValues(e):("number"==typeof r&&(r=Array.prototype.slice.call(t)),this.setValues(e,r),this)},b.prototype.setChannel=function(e,t,r){var n=this.values[e];return void 0===r?n[t]:(r===n[t]||(n[t]=r,this.setValues(e,n)),this)},"undefined"!=typeof window&&(window.Color=b);var M=b;function w(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}var L,T={noop:function(){},uid:(L=0,function(){return L++}),isNullOrUndef:function(e){return null==e},isArray:function(e){if(Array.isArray&&Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)},isObject:function(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)},isFinite:function(e){return("number"==typeof e||e instanceof Number)&&isFinite(e)},valueOrDefault:function(e,t){return void 0===e?t:e},valueAtIndexOrDefault:function(e,t,r){return T.valueOrDefault(T.isArray(e)?e[t]:e,r)},callback:function(e,t,r){if(e&&"function"==typeof e.call)return e.apply(r,t)},each:function(e,t,r,n){var i,a,o;if(T.isArray(e))if(a=e.length,n)for(i=a-1;i>=0;i--)t.call(r,e[i],i);else for(i=0;i<a;i++)t.call(r,e[i],i);else if(T.isObject(e))for(a=(o=Object.keys(e)).length,i=0;i<a;i++)t.call(r,e[o[i]],o[i])},arrayEquals:function(e,t){var r,n,i,a;if(!e||!t||e.length!==t.length)return!1;for(r=0,n=e.length;r<n;++r)if(i=e[r],a=t[r],i instanceof Array&&a instanceof Array){if(!T.arrayEquals(i,a))return!1}else if(i!==a)return!1;return!0},clone:function(e){if(T.isArray(e))return e.map(T.clone);if(T.isObject(e)){for(var t=Object.create(e),r=Object.keys(e),n=r.length,i=0;i<n;++i)t[r[i]]=T.clone(e[r[i]]);return t}return e},_merger:function(e,t,r,n){if(w(e)){var i=t[e],a=r[e];T.isObject(i)&&T.isObject(a)?T.merge(i,a,n):t[e]=T.clone(a)}},_mergerIf:function(e,t,r){if(w(e)){var n=t[e],i=r[e];T.isObject(n)&&T.isObject(i)?T.mergeIf(n,i):t.hasOwnProperty(e)||(t[e]=T.clone(i))}},merge:function(e,t,r){var n,i,a,o,s,l=T.isArray(t)?t:[t],u=l.length;if(!T.isObject(e))return e;for(n=(r=r||{}).merger||T._merger,i=0;i<u;++i)if(t=l[i],T.isObject(t))for(s=0,o=(a=Object.keys(t)).length;s<o;++s)n(a[s],e,t,r);return e},mergeIf:function(e,t){return T.merge(e,t,{merger:T._mergerIf})},extend:Object.assign||function(e){return T.merge(e,[].slice.call(arguments,1),{merger:function(e,t,r){t[e]=r[e]}})},inherits:function(e){var t=this,r=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return t.apply(this,arguments)},n=function(){this.constructor=r};return n.prototype=t.prototype,r.prototype=new n,r.extend=T.inherits,e&&T.extend(r.prototype,e),r.__super__=t.prototype,r},_deprecated:function(e,t,r,n){void 0!==t&&console.warn(e+': "'+r+'" is deprecated. Please use "'+n+'" instead')}},x=T;T.callCallback=T.callback,T.indexOf=function(e,t,r){return Array.prototype.indexOf.call(e,t,r)},T.getValueOrDefault=T.valueOrDefault,T.getValueAtIndexOrDefault=T.valueAtIndexOrDefault;var k={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e-=1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e-=1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e-=1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return 1-Math.cos(e*(Math.PI/2))},easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},easeInCirc:function(e){return e>=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,r=0,n=1;return 0===e?0:1===e?1:(r||(r=.3),n<1?(n=1,t=r/4):t=r/(2*Math.PI)*Math.asin(1/n),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r))},easeOutElastic:function(e){var t=1.70158,r=0,n=1;return 0===e?0:1===e?1:(r||(r=.3),n<1?(n=1,t=r/4):t=r/(2*Math.PI)*Math.asin(1/n),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},easeInOutElastic:function(e){var t=1.70158,r=0,n=1;return 0===e?0:2==(e/=.5)?1:(r||(r=.45),n<1?(n=1,t=r/4):t=r/(2*Math.PI)*Math.asin(1/n),e<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-k.easeOutBounce(1-e)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*k.easeInBounce(2*e):.5*k.easeOutBounce(2*e-1)+.5}},S={effects:k};x.easingEffects=k;var D=Math.PI,A=D/180,E=2*D,Y=D/2,O=D/4,P=2*D/3,R={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,r,n,i,a){if(a){var o=Math.min(a,i/2,n/2),s=t+o,l=r+o,u=t+n-o,d=r+i-o;e.moveTo(t,l),s<u&&l<d?(e.arc(s,l,o,-D,-Y),e.arc(u,l,o,-Y,0),e.arc(u,d,o,0,Y),e.arc(s,d,o,Y,D)):s<u?(e.moveTo(s,r),e.arc(u,l,o,-Y,Y),e.arc(s,l,o,Y,D+Y)):l<d?(e.arc(s,l,o,-D,0),e.arc(s,d,o,0,D)):e.arc(s,l,o,-D,D),e.closePath(),e.moveTo(t,r)}else e.rect(t,r,n,i)},drawPoint:function(e,t,r,n,i,a){var o,s,l,u,d,c=(a||0)*A;if(t&&"object"==typeof t&&("[object HTMLImageElement]"===(o=t.toString())||"[object HTMLCanvasElement]"===o))return e.save(),e.translate(n,i),e.rotate(c),e.drawImage(t,-t.width/2,-t.height/2,t.width,t.height),void e.restore();if(!(isNaN(r)||r<=0)){switch(e.beginPath(),t){default:e.arc(n,i,r,0,E),e.closePath();break;case"triangle":e.moveTo(n+Math.sin(c)*r,i-Math.cos(c)*r),c+=P,e.lineTo(n+Math.sin(c)*r,i-Math.cos(c)*r),c+=P,e.lineTo(n+Math.sin(c)*r,i-Math.cos(c)*r),e.closePath();break;case"rectRounded":u=r-(d=.516*r),s=Math.cos(c+O)*u,l=Math.sin(c+O)*u,e.arc(n-s,i-l,d,c-D,c-Y),e.arc(n+l,i-s,d,c-Y,c),e.arc(n+s,i+l,d,c,c+Y),e.arc(n-l,i+s,d,c+Y,c+D),e.closePath();break;case"rect":if(!a){u=Math.SQRT1_2*r,e.rect(n-u,i-u,2*u,2*u);break}c+=O;case"rectRot":s=Math.cos(c)*r,l=Math.sin(c)*r,e.moveTo(n-s,i-l),e.lineTo(n+l,i-s),e.lineTo(n+s,i+l),e.lineTo(n-l,i+s),e.closePath();break;case"crossRot":c+=O;case"cross":s=Math.cos(c)*r,l=Math.sin(c)*r,e.moveTo(n-s,i-l),e.lineTo(n+s,i+l),e.moveTo(n+l,i-s),e.lineTo(n-l,i+s);break;case"star":s=Math.cos(c)*r,l=Math.sin(c)*r,e.moveTo(n-s,i-l),e.lineTo(n+s,i+l),e.moveTo(n+l,i-s),e.lineTo(n-l,i+s),c+=O,s=Math.cos(c)*r,l=Math.sin(c)*r,e.moveTo(n-s,i-l),e.lineTo(n+s,i+l),e.moveTo(n+l,i-s),e.lineTo(n-l,i+s);break;case"line":s=Math.cos(c)*r,l=Math.sin(c)*r,e.moveTo(n-s,i-l),e.lineTo(n+s,i+l);break;case"dash":e.moveTo(n,i),e.lineTo(n+Math.cos(c)*r,i+Math.sin(c)*r)}e.fill(),e.stroke()}},_isPointInArea:function(e,t){return e.x>t.left-1e-6&&e.x<t.right+1e-6&&e.y>t.top-1e-6&&e.y<t.bottom+1e-6},clipArea:function(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()},unclipArea:function(e){e.restore()},lineTo:function(e,t,r,n){var i=r.steppedLine;if(i){if("middle"===i){var a=(t.x+r.x)/2;e.lineTo(a,n?r.y:t.y),e.lineTo(a,n?t.y:r.y)}else"after"===i&&!n||"after"!==i&&n?e.lineTo(t.x,r.y):e.lineTo(r.x,t.y);e.lineTo(r.x,r.y)}else r.tension?e.bezierCurveTo(n?t.controlPointPreviousX:t.controlPointNextX,n?t.controlPointPreviousY:t.controlPointNextY,n?r.controlPointNextX:r.controlPointPreviousX,n?r.controlPointNextY:r.controlPointPreviousY,r.x,r.y):e.lineTo(r.x,r.y)}},C=R;x.clear=R.clear,x.drawRoundedRectangle=function(e){e.beginPath(),R.roundedRect.apply(R,arguments)};var I={_set:function(e,t){return x.merge(this[e]||(this[e]={}),t)}};I._set("global",{defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",defaultLineHeight:1.2,showLines:!0});var F=I,j=x.valueOrDefault,N={toLineHeight:function(e,t){var r=(""+e).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!r||"normal"===r[1])return 1.2*t;switch(e=+r[2],r[3]){case"px":return e;case"%":e/=100}return t*e},toPadding:function(e){var t,r,n,i;return x.isObject(e)?(t=+e.top||0,r=+e.right||0,n=+e.bottom||0,i=+e.left||0):t=r=n=i=+e||0,{top:t,right:r,bottom:n,left:i,height:t+n,width:i+r}},_parseFont:function(e){var t=F.global,r=j(e.fontSize,t.defaultFontSize),n={family:j(e.fontFamily,t.defaultFontFamily),lineHeight:x.options.toLineHeight(j(e.lineHeight,t.defaultLineHeight),r),size:r,style:j(e.fontStyle,t.defaultFontStyle),weight:null,string:""};return n.string=function(e){return!e||x.isNullOrUndef(e.size)||x.isNullOrUndef(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(n),n},resolve:function(e,t,r,n){var i,a,o,s=!0;for(i=0,a=e.length;i<a;++i)if(void 0!==(o=e[i])&&(void 0!==t&&"function"==typeof o&&(o=o(t),s=!1),void 0!==r&&x.isArray(o)&&(o=o[r],s=!1),void 0!==o))return n&&!s&&(n.cacheable=!1),o}},H={_factorize:function(e){var t,r=[],n=Math.sqrt(e);for(t=1;t<n;t++)e%t==0&&(r.push(t),r.push(e/t));return n===(0|n)&&r.push(n),r.sort((function(e,t){return e-t})).pop(),r},log10:Math.log10||function(e){var t=Math.log(e)*Math.LOG10E,r=Math.round(t);return e===Math.pow(10,r)?r:t}},B=H;x.log10=H.log10;var U=x,W=S,z=C,V=N,G=B,K={getRtlAdapter:function(e,t,r){return e?function(e,t){return{x:function(r){return e+e+t-r},setWidth:function(e){t=e},textAlign:function(e){return"center"===e?e:"right"===e?"left":"right"},xPlus:function(e,t){return e-t},leftForLtr:function(e,t){return e-t}}}(t,r):{x:function(e){return e},setWidth:function(e){},textAlign:function(e){return e},xPlus:function(e,t){return e+t},leftForLtr:function(e,t){return e}}},overrideTextDirection:function(e,t){var r,n;"ltr"!==t&&"rtl"!==t||(n=[(r=e.canvas.style).getPropertyValue("direction"),r.getPropertyPriority("direction")],r.setProperty("direction",t,"important"),e.prevTextDirection=n)},restoreTextDirection:function(e){var t=e.prevTextDirection;void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}};U.easing=W,U.canvas=z,U.options=V,U.math=G,U.rtl=K;var q=function(e){U.extend(this,e),this.initialize.apply(this,arguments)};U.extend(q.prototype,{_type:void 0,initialize:function(){this.hidden=!1},pivot:function(){var e=this;return e._view||(e._view=U.extend({},e._model)),e._start={},e},transition:function(e){var t=this,r=t._model,n=t._start,i=t._view;return r&&1!==e?(i||(i=t._view={}),n||(n=t._start={}),function(e,t,r,n){var i,a,o,s,l,u,d,c,h,f=Object.keys(r);for(i=0,a=f.length;i<a;++i)if(u=r[o=f[i]],t.hasOwnProperty(o)||(t[o]=u),(s=t[o])!==u&&"_"!==o[0]){if(e.hasOwnProperty(o)||(e[o]=s),(d=typeof u)==typeof(l=e[o]))if("string"===d){if((c=M(l)).valid&&(h=M(u)).valid){t[o]=h.mix(c,n).rgbString();continue}}else if(U.isFinite(l)&&U.isFinite(u)){t[o]=l+(u-l)*n;continue}t[o]=u}}(n,i,r,e),t):(t._view=U.extend({},r),t._start=null,t)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return U.isNumber(this._model.x)&&U.isNumber(this._model.y)}}),q.extend=U.inherits;var J=q,X=J.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),$=X;Object.defineProperty(X.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(X.prototype,"chartInstance",{get:function(){return this.chart},set:function(e){this.chart=e}}),F._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:U.noop,onComplete:U.noop}});var Z={animations:[],request:null,addAnimation:function(e,t,r,n){var i,a,o=this.animations;for(t.chart=e,t.startTime=Date.now(),t.duration=r,n||(e.animating=!0),i=0,a=o.length;i<a;++i)if(o[i].chart===e)return void(o[i]=t);o.push(t),1===o.length&&this.requestAnimationFrame()},cancelAnimation:function(e){var t=U.findIndex(this.animations,(function(t){return t.chart===e}));-1!==t&&(this.animations.splice(t,1),e.animating=!1)},requestAnimationFrame:function(){var e=this;null===e.request&&(e.request=U.requestAnimFrame.call(window,(function(){e.request=null,e.startDigest()})))},startDigest:function(){this.advance(),this.animations.length>0&&this.requestAnimationFrame()},advance:function(){for(var e,t,r,n,i=this.animations,a=0;a<i.length;)t=(e=i[a]).chart,r=e.numSteps,n=Math.floor((Date.now()-e.startTime)/e.duration*r)+1,e.currentStep=Math.min(n,r),U.callback(e.render,[t,e],t),U.callback(e.onAnimationProgress,[e],t),e.currentStep>=r?(U.callback(e.onAnimationComplete,[e],t),t.animating=!1,i.splice(a,1)):++a}},Q=U.options.resolve,ee=["push","pop","shift","splice","unshift"];function te(e,t){var r=e._chartjs;if(r){var n=r.listeners,i=n.indexOf(t);-1!==i&&n.splice(i,1),n.length>0||(ee.forEach((function(t){delete e[t]})),delete e._chartjs)}}var re=function(e,t){this.initialize(e,t)};U.extend(re.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(e,t){var r=this;r.chart=e,r.index=t,r.linkScales(),r.addElements(),r._type=r.getMeta().type},updateIndex:function(e){this.index=e},linkScales:function(){var e=this.getMeta(),t=this.chart,r=t.scales,n=this.getDataset(),i=t.options.scales;null!==e.xAxisID&&e.xAxisID in r&&!n.xAxisID||(e.xAxisID=n.xAxisID||i.xAxes[0].id),null!==e.yAxisID&&e.yAxisID in r&&!n.yAxisID||(e.yAxisID=n.yAxisID||i.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&te(this._data,this)},createMetaDataset:function(){var e=this.datasetElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(e){var t=this.dataElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index,_index:e})},addElements:function(){var e,t,r=this.getMeta(),n=this.getDataset().data||[],i=r.data;for(e=0,t=n.length;e<t;++e)i[e]=i[e]||this.createMetaData(e);r.dataset=r.dataset||this.createMetaDataset()},addElementAndReset:function(e){var t=this.createMetaData(e);this.getMeta().data.splice(e,0,t),this.updateElement(t,e,!0)},buildOrUpdateElements:function(){var e,t,r=this,n=r.getDataset(),i=n.data||(n.data=[]);r._data!==i&&(r._data&&te(r._data,r),i&&Object.isExtensible(i)&&(t=r,(e=i)._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),ee.forEach((function(t){var r="onData"+t.charAt(0).toUpperCase()+t.slice(1),n=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:function(){var t=Array.prototype.slice.call(arguments),i=n.apply(this,t);return U.each(e._chartjs.listeners,(function(e){"function"==typeof e[r]&&e[r].apply(e,t)})),i}})})))),r._data=i),r.resyncElements()},_configure:function(){this._config=U.merge(Object.create(null),[this.chart.options.datasets[this._type],this.getDataset()],{merger:function(e,t,r){"_meta"!==e&&"data"!==e&&U._merger(e,t,r)}})},_update:function(e){this._configure(),this._cachedDataOpts=null,this.update(e)},update:U.noop,transition:function(e){for(var t=this.getMeta(),r=t.data||[],n=r.length,i=0;i<n;++i)r[i].transition(e);t.dataset&&t.dataset.transition(e)},draw:function(){var e=this.getMeta(),t=e.data||[],r=t.length,n=0;for(e.dataset&&e.dataset.draw();n<r;++n)t[n].draw()},getStyle:function(e){var t,r=this.getMeta(),n=r.dataset;return this._configure(),n&&void 0===e?t=this._resolveDatasetElementOptions(n||{}):(e=e||0,t=this._resolveDataElementOptions(r.data[e]||{},e)),!1!==t.fill&&null!==t.fill||(t.backgroundColor=t.borderColor),t},_resolveDatasetElementOptions:function(e,t){var r,n,i,a,o=this,s=o.chart,l=o._config,u=e.custom||{},d=s.options.elements[o.datasetElementType.prototype._type]||{},c=o._datasetElementOptions,h={},f={chart:s,dataset:o.getDataset(),datasetIndex:o.index,hover:t};for(r=0,n=c.length;r<n;++r)i=c[r],a=t?"hover"+i.charAt(0).toUpperCase()+i.slice(1):i,h[i]=Q([u[a],l[a],d[a]],f);return h},_resolveDataElementOptions:function(e,t){var r=this,n=e&&e.custom,i=r._cachedDataOpts;if(i&&!n)return i;var a,o,s,l,u=r.chart,d=r._config,c=u.options.elements[r.dataElementType.prototype._type]||{},h=r._dataElementOptions,f={},m={chart:u,dataIndex:t,dataset:r.getDataset(),datasetIndex:r.index},p={cacheable:!n};if(n=n||{},U.isArray(h))for(o=0,s=h.length;o<s;++o)f[l=h[o]]=Q([n[l],d[l],c[l]],m,t,p);else for(o=0,s=(a=Object.keys(h)).length;o<s;++o)f[l=a[o]]=Q([n[l],d[h[l]],d[l],c[l]],m,t,p);return p.cacheable&&(r._cachedDataOpts=Object.freeze(f)),f},removeHoverStyle:function(e){U.merge(e._model,e.$previousStyle||{}),delete e.$previousStyle},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],r=e._index,n=e.custom||{},i=e._model,a=U.getHoverColor;e.$previousStyle={backgroundColor:i.backgroundColor,borderColor:i.borderColor,borderWidth:i.borderWidth},i.backgroundColor=Q([n.hoverBackgroundColor,t.hoverBackgroundColor,a(i.backgroundColor)],void 0,r),i.borderColor=Q([n.hoverBorderColor,t.hoverBorderColor,a(i.borderColor)],void 0,r),i.borderWidth=Q([n.hoverBorderWidth,t.hoverBorderWidth,i.borderWidth],void 0,r)},_removeDatasetHoverStyle:function(){var e=this.getMeta().dataset;e&&this.removeHoverStyle(e)},_setDatasetHoverStyle:function(){var e,t,r,n,i,a,o=this.getMeta().dataset,s={};if(o){for(a=o._model,i=this._resolveDatasetElementOptions(o,!0),e=0,t=(n=Object.keys(i)).length;e<t;++e)s[r=n[e]]=a[r],a[r]=i[r];o.$previousStyle=s}},resyncElements:function(){var e=this.getMeta(),t=this.getDataset().data,r=e.data.length,n=t.length;n<r?e.data.splice(n,r-n):n>r&&this.insertElements(r,n-r)},insertElements:function(e,t){for(var r=0;r<t;++r)this.addElementAndReset(e+r)},onDataPush:function(){var e=arguments.length;this.insertElements(this.getDataset().data.length-e,e)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(e,t){this.getMeta().data.splice(e,t),this.insertElements(e,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),re.extend=U.inherits;var ne=re,ie=2*Math.PI;function ae(e,t){var r=t.startAngle,n=t.endAngle,i=t.pixelMargin,a=i/t.outerRadius,o=t.x,s=t.y;e.beginPath(),e.arc(o,s,t.outerRadius,r-a,n+a),t.innerRadius>i?(a=i/t.innerRadius,e.arc(o,s,t.innerRadius-i,n+a,r-a,!0)):e.arc(o,s,i,n+Math.PI/2,r-Math.PI/2),e.closePath(),e.clip()}function oe(e,t,r){var n="inner"===t.borderAlign;n?(e.lineWidth=2*t.borderWidth,e.lineJoin="round"):(e.lineWidth=t.borderWidth,e.lineJoin="bevel"),r.fullCircles&&function(e,t,r,n){var i,a=r.endAngle;for(n&&(r.endAngle=r.startAngle+ie,ae(e,r),r.endAngle=a,r.endAngle===r.startAngle&&r.fullCircles&&(r.endAngle+=ie,r.fullCircles--)),e.beginPath(),e.arc(r.x,r.y,r.innerRadius,r.startAngle+ie,r.startAngle,!0),i=0;i<r.fullCircles;++i)e.stroke();for(e.beginPath(),e.arc(r.x,r.y,t.outerRadius,r.startAngle,r.startAngle+ie),i=0;i<r.fullCircles;++i)e.stroke()}(e,t,r,n),n&&ae(e,r),e.beginPath(),e.arc(r.x,r.y,t.outerRadius,r.startAngle,r.endAngle),e.arc(r.x,r.y,r.innerRadius,r.endAngle,r.startAngle,!0),e.closePath(),e.stroke()}F._set("global",{elements:{arc:{backgroundColor:F.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});var se=J.extend({_type:"arc",inLabelRange:function(e){var t=this._view;return!!t&&Math.pow(e-t.x,2)<Math.pow(t.radius+t.hoverRadius,2)},inRange:function(e,t){var r=this._view;if(r){for(var n=U.getAngleFromPoint(r,{x:e,y:t}),i=n.angle,a=n.distance,o=r.startAngle,s=r.endAngle;s<o;)s+=ie;for(;i>s;)i-=ie;for(;i<o;)i+=ie;var l=i>=o&&i<=s,u=a>=r.innerRadius&&a<=r.outerRadius;return l&&u}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,r=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*r,y:e.y+Math.sin(t)*r}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,r=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*r,y:e.y+Math.sin(t)*r}},draw:function(){var e,t=this._chart.ctx,r=this._view,n="inner"===r.borderAlign?.33:0,i={x:r.x,y:r.y,innerRadius:r.innerRadius,outerRadius:Math.max(r.outerRadius-n,0),pixelMargin:n,startAngle:r.startAngle,endAngle:r.endAngle,fullCircles:Math.floor(r.circumference/ie)};if(t.save(),t.fillStyle=r.backgroundColor,t.strokeStyle=r.borderColor,i.fullCircles){for(i.endAngle=i.startAngle+ie,t.beginPath(),t.arc(i.x,i.y,i.outerRadius,i.startAngle,i.endAngle),t.arc(i.x,i.y,i.innerRadius,i.endAngle,i.startAngle,!0),t.closePath(),e=0;e<i.fullCircles;++e)t.fill();i.endAngle=i.startAngle+r.circumference%ie}t.beginPath(),t.arc(i.x,i.y,i.outerRadius,i.startAngle,i.endAngle),t.arc(i.x,i.y,i.innerRadius,i.endAngle,i.startAngle,!0),t.closePath(),t.fill(),r.borderWidth&&oe(t,r,i),t.restore()}}),le=U.valueOrDefault,ue=F.global.defaultColor;F._set("global",{elements:{line:{tension:.4,backgroundColor:ue,borderWidth:3,borderColor:ue,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var de=J.extend({_type:"line",draw:function(){var e,t,r,n=this,i=n._view,a=n._chart.ctx,o=i.spanGaps,s=n._children.slice(),l=F.global,u=l.elements.line,d=-1,c=n._loop;if(s.length){if(n._loop){for(e=0;e<s.length;++e)if(t=U.previousItem(s,e),!s[e]._view.skip&&t._view.skip){s=s.slice(e).concat(s.slice(0,e)),c=o;break}c&&s.push(s[0])}for(a.save(),a.lineCap=i.borderCapStyle||u.borderCapStyle,a.setLineDash&&a.setLineDash(i.borderDash||u.borderDash),a.lineDashOffset=le(i.borderDashOffset,u.borderDashOffset),a.lineJoin=i.borderJoinStyle||u.borderJoinStyle,a.lineWidth=le(i.borderWidth,u.borderWidth),a.strokeStyle=i.borderColor||l.defaultColor,a.beginPath(),(r=s[0]._view).skip||(a.moveTo(r.x,r.y),d=0),e=1;e<s.length;++e)r=s[e]._view,t=-1===d?U.previousItem(s,e):s[d],r.skip||(d!==e-1&&!o||-1===d?a.moveTo(r.x,r.y):U.canvas.lineTo(a,t._view,r),d=e);c&&a.closePath(),a.stroke(),a.restore()}}}),ce=U.valueOrDefault,he=F.global.defaultColor;function fe(e){var t=this._view;return!!t&&Math.abs(e-t.x)<t.radius+t.hitRadius}F._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:he,borderColor:he,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});var me=J.extend({_type:"point",inRange:function(e,t){var r=this._view;return!!r&&Math.pow(e-r.x,2)+Math.pow(t-r.y,2)<Math.pow(r.hitRadius+r.radius,2)},inLabelRange:fe,inXRange:fe,inYRange:function(e){var t=this._view;return!!t&&Math.abs(e-t.y)<t.radius+t.hitRadius},getCenterPoint:function(){var e=this._view;return{x:e.x,y:e.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y,padding:e.radius+e.borderWidth}},draw:function(e){var t=this._view,r=this._chart.ctx,n=t.pointStyle,i=t.rotation,a=t.radius,o=t.x,s=t.y,l=F.global,u=l.defaultColor;t.skip||(void 0===e||U.canvas._isPointInArea(t,e))&&(r.strokeStyle=t.borderColor||u,r.lineWidth=ce(t.borderWidth,l.elements.point.borderWidth),r.fillStyle=t.backgroundColor||u,U.canvas.drawPoint(r,n,a,o,s,i))}}),pe=F.global.defaultColor;function ge(e){return e&&void 0!==e.width}function _e(e){var t,r,n,i,a;return ge(e)?(a=e.width/2,t=e.x-a,r=e.x+a,n=Math.min(e.y,e.base),i=Math.max(e.y,e.base)):(a=e.height/2,t=Math.min(e.x,e.base),r=Math.max(e.x,e.base),n=e.y-a,i=e.y+a),{left:t,top:n,right:r,bottom:i}}function ve(e,t,r){return e===t?r:e===r?t:e}function ye(e,t,r){var n,i,a,o,s=e.borderWidth,l=function(e){var t=e.borderSkipped,r={};return t?(e.horizontal?e.base>e.x&&(t=ve(t,"left","right")):e.base<e.y&&(t=ve(t,"bottom","top")),r[t]=!0,r):r}(e);return U.isObject(s)?(n=+s.top||0,i=+s.right||0,a=+s.bottom||0,o=+s.left||0):n=i=a=o=+s||0,{t:l.top||n<0?0:n>r?r:n,r:l.right||i<0?0:i>t?t:i,b:l.bottom||a<0?0:a>r?r:a,l:l.left||o<0?0:o>t?t:o}}function be(e,t,r){var n=null===t,i=null===r,a=!(!e||n&&i)&&_e(e);return a&&(n||t>=a.left&&t<=a.right)&&(i||r>=a.top&&r<=a.bottom)}F._set("global",{elements:{rectangle:{backgroundColor:pe,borderColor:pe,borderSkipped:"bottom",borderWidth:0}}});var Me=J.extend({_type:"rectangle",draw:function(){var e=this._chart.ctx,t=this._view,r=function(e){var t=_e(e),r=t.right-t.left,n=t.bottom-t.top,i=ye(e,r/2,n/2);return{outer:{x:t.left,y:t.top,w:r,h:n},inner:{x:t.left+i.l,y:t.top+i.t,w:r-i.l-i.r,h:n-i.t-i.b}}}(t),n=r.outer,i=r.inner;e.fillStyle=t.backgroundColor,e.fillRect(n.x,n.y,n.w,n.h),n.w===i.w&&n.h===i.h||(e.save(),e.beginPath(),e.rect(n.x,n.y,n.w,n.h),e.clip(),e.fillStyle=t.borderColor,e.rect(i.x,i.y,i.w,i.h),e.fill("evenodd"),e.restore())},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){return be(this._view,e,t)},inLabelRange:function(e,t){var r=this._view;return ge(r)?be(r,e,null):be(r,null,t)},inXRange:function(e){return be(this._view,e,null)},inYRange:function(e){return be(this._view,null,e)},getCenterPoint:function(){var e,t,r=this._view;return ge(r)?(e=r.x,t=(r.y+r.base)/2):(e=(r.x+r.base)/2,t=r.y),{x:e,y:t}},getArea:function(){var e=this._view;return ge(e)?e.width*Math.abs(e.y-e.base):e.height*Math.abs(e.x-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}}),we={},Le=se,Te=de,xe=me,ke=Me;we.Arc=Le,we.Line=Te,we.Point=xe,we.Rectangle=ke;var Se=U._deprecated,De=U.valueOrDefault;function Ae(e,t,r){var n,i,a=r.barThickness,o=t.stackCount,s=t.pixels[e],l=U.isNullOrUndef(a)?function(e,t){var r,n,i,a,o=e._length;for(i=1,a=t.length;i<a;++i)o=Math.min(o,Math.abs(t[i]-t[i-1]));for(i=0,a=e.getTicks().length;i<a;++i)n=e.getPixelForTick(i),o=i>0?Math.min(o,Math.abs(n-r)):o,r=n;return o}(t.scale,t.pixels):-1;return U.isNullOrUndef(a)?(n=l*r.categoryPercentage,i=r.barPercentage):(n=a*o,i=1),{chunk:n/o,ratio:i,start:s-n/2}}F._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),F._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var Ee=ne.extend({dataElementType:we.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var e,t,r=this;ne.prototype.initialize.apply(r,arguments),(e=r.getMeta()).stack=r.getDataset().stack,e.bar=!0,t=r._getIndexScale().options,Se("bar chart",t.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),Se("bar chart",t.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),Se("bar chart",t.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),Se("bar chart",r._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),Se("bar chart",t.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(e){var t,r,n=this.getMeta().data;for(this._ruler=this.getRuler(),t=0,r=n.length;t<r;++t)this.updateElement(n[t],t,e)},updateElement:function(e,t,r){var n=this,i=n.getMeta(),a=n.getDataset(),o=n._resolveDataElementOptions(e,t);e._xScale=n.getScaleForId(i.xAxisID),e._yScale=n.getScaleForId(i.yAxisID),e._datasetIndex=n.index,e._index=t,e._model={backgroundColor:o.backgroundColor,borderColor:o.borderColor,borderSkipped:o.borderSkipped,borderWidth:o.borderWidth,datasetLabel:a.label,label:n.chart.data.labels[t]},U.isArray(a.data[t])&&(e._model.borderSkipped=null),n._updateElementGeometry(e,t,r,o),e.pivot()},_updateElementGeometry:function(e,t,r,n){var i=this,a=e._model,o=i._getValueScale(),s=o.getBasePixel(),l=o.isHorizontal(),u=i._ruler||i.getRuler(),d=i.calculateBarValuePixels(i.index,t,n),c=i.calculateBarIndexPixels(i.index,t,u,n);a.horizontal=l,a.base=r?s:d.base,a.x=l?r?s:d.head:c.center,a.y=l?c.center:r?s:d.head,a.height=l?c.size:void 0,a.width=l?void 0:c.size},_getStacks:function(e){var t,r,n=this._getIndexScale(),i=n._getMatchingVisibleMetas(this._type),a=n.options.stacked,o=i.length,s=[];for(t=0;t<o&&(r=i[t],(!1===a||-1===s.indexOf(r.stack)||void 0===a&&void 0===r.stack)&&s.push(r.stack),r.index!==e);++t);return s},getStackCount:function(){return this._getStacks().length},getStackIndex:function(e,t){var r=this._getStacks(e),n=void 0!==t?r.indexOf(t):-1;return-1===n?r.length-1:n},getRuler:function(){var e,t,r=this._getIndexScale(),n=[];for(e=0,t=this.getMeta().data.length;e<t;++e)n.push(r.getPixelForValue(null,e,this.index));return{pixels:n,start:r._startPixel,end:r._endPixel,stackCount:this.getStackCount(),scale:r}},calculateBarValuePixels:function(e,t,r){var n,i,a,o,s,l,u,d=this.chart,c=this._getValueScale(),h=c.isHorizontal(),f=d.data.datasets,m=c._getMatchingVisibleMetas(this._type),p=c._parseValue(f[e].data[t]),g=r.minBarLength,_=c.options.stacked,v=this.getMeta().stack,y=void 0===p.start?0:p.max>=0&&p.min>=0?p.min:p.max,b=void 0===p.start?p.end:p.max>=0&&p.min>=0?p.max-p.min:p.min-p.max,M=m.length;if(_||void 0===_&&void 0!==v)for(n=0;n<M&&(i=m[n]).index!==e;++n)i.stack===v&&(a=void 0===(u=c._parseValue(f[i.index].data[t])).start?u.end:u.min>=0&&u.max>=0?u.max:u.min,(p.min<0&&a<0||p.max>=0&&a>0)&&(y+=a));return o=c.getPixelForValue(y),l=(s=c.getPixelForValue(y+b))-o,void 0!==g&&Math.abs(l)<g&&(l=g,s=b>=0&&!h||b<0&&h?o-g:o+g),{size:l,base:o,head:s,center:s+l/2}},calculateBarIndexPixels:function(e,t,r,n){var i="flex"===n.barThickness?function(e,t,r){var n,i=t.pixels,a=i[e],o=e>0?i[e-1]:null,s=e<i.length-1?i[e+1]:null,l=r.categoryPercentage;return null===o&&(o=a-(null===s?t.end-t.start:s-a)),null===s&&(s=a+a-o),n=a-(a-Math.min(o,s))/2*l,{chunk:Math.abs(s-o)/2*l/t.stackCount,ratio:r.barPercentage,start:n}}(t,r,n):Ae(t,r,n),a=this.getStackIndex(e,this.getMeta().stack),o=i.start+i.chunk*a+i.chunk/2,s=Math.min(De(n.maxBarThickness,1/0),i.chunk*i.ratio);return{base:o-s/2,head:o+s/2,center:o,size:s}},draw:function(){var e=this.chart,t=this._getValueScale(),r=this.getMeta().data,n=this.getDataset(),i=r.length,a=0;for(U.canvas.clipArea(e.ctx,e.chartArea);a<i;++a){var o=t._parseValue(n.data[a]);isNaN(o.min)||isNaN(o.max)||r[a].draw()}U.canvas.unclipArea(e.ctx)},_resolveDataElementOptions:function(){var e=this,t=U.extend({},ne.prototype._resolveDataElementOptions.apply(e,arguments)),r=e._getIndexScale().options,n=e._getValueScale().options;return t.barPercentage=De(r.barPercentage,t.barPercentage),t.barThickness=De(r.barThickness,t.barThickness),t.categoryPercentage=De(r.categoryPercentage,t.categoryPercentage),t.maxBarThickness=De(r.maxBarThickness,t.maxBarThickness),t.minBarLength=De(n.minBarLength,t.minBarLength),t}}),Ye=U.valueOrDefault,Oe=U.options.resolve;F._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(e,t){var r=t.datasets[e.datasetIndex].label||"",n=t.datasets[e.datasetIndex].data[e.index];return r+": ("+e.xLabel+", "+e.yLabel+", "+n.r+")"}}}});var Pe=ne.extend({dataElementType:we.Point,_dataElementOptions:["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"],update:function(e){var t=this,r=t.getMeta().data;U.each(r,(function(r,n){t.updateElement(r,n,e)}))},updateElement:function(e,t,r){var n=this,i=n.getMeta(),a=e.custom||{},o=n.getScaleForId(i.xAxisID),s=n.getScaleForId(i.yAxisID),l=n._resolveDataElementOptions(e,t),u=n.getDataset().data[t],d=n.index,c=r?o.getPixelForDecimal(.5):o.getPixelForValue("object"==typeof u?u:NaN,t,d),h=r?s.getBasePixel():s.getPixelForValue(u,t,d);e._xScale=o,e._yScale=s,e._options=l,e._datasetIndex=d,e._index=t,e._model={backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,hitRadius:l.hitRadius,pointStyle:l.pointStyle,rotation:l.rotation,radius:r?0:l.radius,skip:a.skip||isNaN(c)||isNaN(h),x:c,y:h},e.pivot()},setHoverStyle:function(e){var t=e._model,r=e._options,n=U.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=Ye(r.hoverBackgroundColor,n(r.backgroundColor)),t.borderColor=Ye(r.hoverBorderColor,n(r.borderColor)),t.borderWidth=Ye(r.hoverBorderWidth,r.borderWidth),t.radius=r.radius+r.hoverRadius},_resolveDataElementOptions:function(e,t){var r=this,n=r.chart,i=r.getDataset(),a=e.custom||{},o=i.data[t]||{},s=ne.prototype._resolveDataElementOptions.apply(r,arguments),l={chart:n,dataIndex:t,dataset:i,datasetIndex:r.index};return r._cachedDataOpts===s&&(s=U.extend({},s)),s.radius=Oe([a.radius,o.r,r._config.radius,n.options.elements.point.radius],l,t),s}}),Re=U.valueOrDefault,Ce=Math.PI,Ie=2*Ce,Fe=Ce/2;F._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(e){var t,r,n,i=document.createElement("ul"),a=e.data,o=a.datasets,s=a.labels;if(i.setAttribute("class",e.id+"-legend"),o.length)for(t=0,r=o[0].data.length;t<r;++t)(n=i.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=o[0].backgroundColor[t],s[t]&&n.appendChild(document.createTextNode(s[t]));return i.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map((function(r,n){var i=e.getDatasetMeta(0),a=i.controller.getStyle(n);return{text:r,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,hidden:isNaN(t.datasets[0].data[n])||i.data[n].hidden,index:n}})):[]}},onClick:function(e,t){var r,n,i,a=t.index,o=this.chart;for(r=0,n=(o.data.datasets||[]).length;r<n;++r)(i=o.getDatasetMeta(r)).data[a]&&(i.data[a].hidden=!i.data[a].hidden);o.update()}},cutoutPercentage:50,rotation:-Fe,circumference:Ie,tooltips:{callbacks:{title:function(){return""},label:function(e,t){var r=t.labels[e.index],n=": "+t.datasets[e.datasetIndex].data[e.index];return U.isArray(r)?(r=r.slice())[0]+=n:r+=n,r}}}});var je=ne.extend({dataElementType:we.Arc,linkScales:U.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],getRingIndex:function(e){for(var t=0,r=0;r<e;++r)this.chart.isDatasetVisible(r)&&++t;return t},update:function(e){var t,r,n,i,a=this,o=a.chart,s=o.chartArea,l=o.options,u=1,d=1,c=0,h=0,f=a.getMeta(),m=f.data,p=l.cutoutPercentage/100||0,g=l.circumference,_=a._getRingWeight(a.index);if(g<Ie){var v=l.rotation%Ie,y=(v+=v>=Ce?-Ie:v<-Ce?Ie:0)+g,b=Math.cos(v),M=Math.sin(v),w=Math.cos(y),L=Math.sin(y),T=v<=0&&y>=0||y>=Ie,x=v<=Fe&&y>=Fe||y>=Ie+Fe,k=v<=-Fe&&y>=-Fe||y>=Ce+Fe,S=v===-Ce||y>=Ce?-1:Math.min(b,b*p,w,w*p),D=k?-1:Math.min(M,M*p,L,L*p),A=T?1:Math.max(b,b*p,w,w*p),E=x?1:Math.max(M,M*p,L,L*p);u=(A-S)/2,d=(E-D)/2,c=-(A+S)/2,h=-(E+D)/2}for(n=0,i=m.length;n<i;++n)m[n]._options=a._resolveDataElementOptions(m[n],n);for(o.borderWidth=a.getMaxBorderWidth(),t=(s.right-s.left-o.borderWidth)/u,r=(s.bottom-s.top-o.borderWidth)/d,o.outerRadius=Math.max(Math.min(t,r)/2,0),o.innerRadius=Math.max(o.outerRadius*p,0),o.radiusLength=(o.outerRadius-o.innerRadius)/(a._getVisibleDatasetWeightTotal()||1),o.offsetX=c*o.outerRadius,o.offsetY=h*o.outerRadius,f.total=a.calculateTotal(),a.outerRadius=o.outerRadius-o.radiusLength*a._getRingWeightOffset(a.index),a.innerRadius=Math.max(a.outerRadius-o.radiusLength*_,0),n=0,i=m.length;n<i;++n)a.updateElement(m[n],n,e)},updateElement:function(e,t,r){var n=this,i=n.chart,a=i.chartArea,o=i.options,s=o.animation,l=(a.left+a.right)/2,u=(a.top+a.bottom)/2,d=o.rotation,c=o.rotation,h=n.getDataset(),f=r&&s.animateRotate||e.hidden?0:n.calculateCircumference(h.data[t])*(o.circumference/Ie),m=r&&s.animateScale?0:n.innerRadius,p=r&&s.animateScale?0:n.outerRadius,g=e._options||{};U.extend(e,{_datasetIndex:n.index,_index:t,_model:{backgroundColor:g.backgroundColor,borderColor:g.borderColor,borderWidth:g.borderWidth,borderAlign:g.borderAlign,x:l+i.offsetX,y:u+i.offsetY,startAngle:d,endAngle:c,circumference:f,outerRadius:p,innerRadius:m,label:U.valueAtIndexOrDefault(h.label,t,i.data.labels[t])}});var _=e._model;r&&s.animateRotate||(_.startAngle=0===t?o.rotation:n.getMeta().data[t-1]._model.endAngle,_.endAngle=_.startAngle+_.circumference),e.pivot()},calculateTotal:function(){var e,t=this.getDataset(),r=this.getMeta(),n=0;return U.each(r.data,(function(r,i){e=t.data[i],isNaN(e)||r.hidden||(n+=Math.abs(e))})),n},calculateCircumference:function(e){var t=this.getMeta().total;return t>0&&!isNaN(e)?Ie*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){var t,r,n,i,a,o,s,l,u=0,d=this.chart;if(!e)for(t=0,r=d.data.datasets.length;t<r;++t)if(d.isDatasetVisible(t)){e=(n=d.getDatasetMeta(t)).data,t!==this.index&&(a=n.controller);break}if(!e)return 0;for(t=0,r=e.length;t<r;++t)i=e[t],a?(a._configure(),o=a._resolveDataElementOptions(i,t)):o=i._options,"inner"!==o.borderAlign&&(s=o.borderWidth,u=(l=o.hoverBorderWidth)>(u=s>u?s:u)?l:u);return u},setHoverStyle:function(e){var t=e._model,r=e._options,n=U.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=Re(r.hoverBackgroundColor,n(r.backgroundColor)),t.borderColor=Re(r.hoverBorderColor,n(r.borderColor)),t.borderWidth=Re(r.hoverBorderWidth,r.borderWidth)},_getRingWeightOffset:function(e){for(var t=0,r=0;r<e;++r)this.chart.isDatasetVisible(r)&&(t+=this._getRingWeight(r));return t},_getRingWeight:function(e){return Math.max(Re(this.chart.data.datasets[e].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});F._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{type:"category",position:"left",offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{mode:"index",axis:"y"}}),F._set("global",{datasets:{horizontalBar:{categoryPercentage:.8,barPercentage:.9}}});var Ne=Ee.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),He=U.valueOrDefault,Be=U.options.resolve,Ue=U.canvas._isPointInArea;function We(e,t){var r=e&&e.options.ticks||{},n=r.reverse,i=void 0===r.min?t:0,a=void 0===r.max?t:0;return{start:n?a:i,end:n?i:a}}function ze(e,t,r){var n=r/2,i=We(e,n),a=We(t,n);return{top:a.end,right:i.end,bottom:a.start,left:i.start}}function Ve(e){var t,r,n,i;return U.isObject(e)?(t=e.top,r=e.right,n=e.bottom,i=e.left):t=r=n=i=e,{top:t,right:r,bottom:n,left:i}}F._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}});var Ge=ne.extend({datasetElementType:we.Line,dataElementType:we.Point,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth","cubicInterpolationMode","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},update:function(e){var t,r,n=this,i=n.getMeta(),a=i.dataset,o=i.data||[],s=n.chart.options,l=n._config,u=n._showLine=He(l.showLine,s.showLines);for(n._xScale=n.getScaleForId(i.xAxisID),n._yScale=n.getScaleForId(i.yAxisID),u&&(void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),a._scale=n._yScale,a._datasetIndex=n.index,a._children=o,a._model=n._resolveDatasetElementOptions(a),a.pivot()),t=0,r=o.length;t<r;++t)n.updateElement(o[t],t,e);for(u&&0!==a._model.tension&&n.updateBezierControlPoints(),t=0,r=o.length;t<r;++t)o[t].pivot()},updateElement:function(e,t,r){var n,i,a=this,o=a.getMeta(),s=e.custom||{},l=a.getDataset(),u=a.index,d=l.data[t],c=a._xScale,h=a._yScale,f=o.dataset._model,m=a._resolveDataElementOptions(e,t);n=c.getPixelForValue("object"==typeof d?d:NaN,t,u),i=r?h.getBasePixel():a.calculatePointY(d,t,u),e._xScale=c,e._yScale=h,e._options=m,e._datasetIndex=u,e._index=t,e._model={x:n,y:i,skip:s.skip||isNaN(n)||isNaN(i),radius:m.radius,pointStyle:m.pointStyle,rotation:m.rotation,backgroundColor:m.backgroundColor,borderColor:m.borderColor,borderWidth:m.borderWidth,tension:He(s.tension,f?f.tension:0),steppedLine:!!f&&f.steppedLine,hitRadius:m.hitRadius}},_resolveDatasetElementOptions:function(e){var t=this,r=t._config,n=e.custom||{},i=t.chart.options,a=i.elements.line,o=ne.prototype._resolveDatasetElementOptions.apply(t,arguments);return o.spanGaps=He(r.spanGaps,i.spanGaps),o.tension=He(r.lineTension,a.tension),o.steppedLine=Be([n.steppedLine,r.steppedLine,a.stepped]),o.clip=Ve(He(r.clip,ze(t._xScale,t._yScale,o.borderWidth))),o},calculatePointY:function(e,t,r){var n,i,a,o,s,l,u,d=this.chart,c=this._yScale,h=0,f=0;if(c.options.stacked){for(s=+c.getRightValue(e),u=(l=d._getSortedVisibleDatasetMetas()).length,n=0;n<u&&(a=l[n]).index!==r;++n)i=d.data.datasets[a.index],"line"===a.type&&a.yAxisID===c.id&&((o=+c.getRightValue(i.data[t]))<0?f+=o||0:h+=o||0);return s<0?c.getPixelForValue(f+s):c.getPixelForValue(h+s)}return c.getPixelForValue(e)},updateBezierControlPoints:function(){var e,t,r,n,i=this.chart,a=this.getMeta(),o=a.dataset._model,s=i.chartArea,l=a.data||[];function u(e,t,r){return Math.max(Math.min(e,r),t)}if(o.spanGaps&&(l=l.filter((function(e){return!e._model.skip}))),"monotone"===o.cubicInterpolationMode)U.splineCurveMonotone(l);else for(e=0,t=l.length;e<t;++e)r=l[e]._model,n=U.splineCurve(U.previousItem(l,e)._model,r,U.nextItem(l,e)._model,o.tension),r.controlPointPreviousX=n.previous.x,r.controlPointPreviousY=n.previous.y,r.controlPointNextX=n.next.x,r.controlPointNextY=n.next.y;if(i.options.elements.line.capBezierPoints)for(e=0,t=l.length;e<t;++e)r=l[e]._model,Ue(r,s)&&(e>0&&Ue(l[e-1]._model,s)&&(r.controlPointPreviousX=u(r.controlPointPreviousX,s.left,s.right),r.controlPointPreviousY=u(r.controlPointPreviousY,s.top,s.bottom)),e<l.length-1&&Ue(l[e+1]._model,s)&&(r.controlPointNextX=u(r.controlPointNextX,s.left,s.right),r.controlPointNextY=u(r.controlPointNextY,s.top,s.bottom)))},draw:function(){var e,t=this.chart,r=this.getMeta(),n=r.data||[],i=t.chartArea,a=t.canvas,o=0,s=n.length;for(this._showLine&&(e=r.dataset._model.clip,U.canvas.clipArea(t.ctx,{left:!1===e.left?0:i.left-e.left,right:!1===e.right?a.width:i.right+e.right,top:!1===e.top?0:i.top-e.top,bottom:!1===e.bottom?a.height:i.bottom+e.bottom}),r.dataset.draw(),U.canvas.unclipArea(t.ctx));o<s;++o)n[o].draw(i)},setHoverStyle:function(e){var t=e._model,r=e._options,n=U.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=He(r.hoverBackgroundColor,n(r.backgroundColor)),t.borderColor=He(r.hoverBorderColor,n(r.borderColor)),t.borderWidth=He(r.hoverBorderWidth,r.borderWidth),t.radius=He(r.hoverRadius,r.radius)}}),Ke=U.options.resolve;F._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(e){var t,r,n,i=document.createElement("ul"),a=e.data,o=a.datasets,s=a.labels;if(i.setAttribute("class",e.id+"-legend"),o.length)for(t=0,r=o[0].data.length;t<r;++t)(n=i.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=o[0].backgroundColor[t],s[t]&&n.appendChild(document.createTextNode(s[t]));return i.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map((function(r,n){var i=e.getDatasetMeta(0),a=i.controller.getStyle(n);return{text:r,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,hidden:isNaN(t.datasets[0].data[n])||i.data[n].hidden,index:n}})):[]}},onClick:function(e,t){var r,n,i,a=t.index,o=this.chart;for(r=0,n=(o.data.datasets||[]).length;r<n;++r)(i=o.getDatasetMeta(r)).data[a].hidden=!i.data[a].hidden;o.update()}},tooltips:{callbacks:{title:function(){return""},label:function(e,t){return t.labels[e.index]+": "+e.yLabel}}}});var qe=ne.extend({dataElementType:we.Arc,linkScales:U.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var t,r,n,i=this,a=i.getDataset(),o=i.getMeta(),s=i.chart.options.startAngle||0,l=i._starts=[],u=i._angles=[],d=o.data;for(i._updateRadius(),o.count=i.countVisibleElements(),t=0,r=a.data.length;t<r;t++)l[t]=s,n=i._computeAngle(t),u[t]=n,s+=n;for(t=0,r=d.length;t<r;++t)d[t]._options=i._resolveDataElementOptions(d[t],t),i.updateElement(d[t],t,e)},_updateRadius:function(){var e=this,t=e.chart,r=t.chartArea,n=t.options,i=Math.min(r.right-r.left,r.bottom-r.top);t.outerRadius=Math.max(i/2,0),t.innerRadius=Math.max(n.cutoutPercentage?t.outerRadius/100*n.cutoutPercentage:1,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),e.outerRadius=t.outerRadius-t.radiusLength*e.index,e.innerRadius=e.outerRadius-t.radiusLength},updateElement:function(e,t,r){var n=this,i=n.chart,a=n.getDataset(),o=i.options,s=o.animation,l=i.scale,u=i.data.labels,d=l.xCenter,c=l.yCenter,h=o.startAngle,f=e.hidden?0:l.getDistanceFromCenterForValue(a.data[t]),m=n._starts[t],p=m+(e.hidden?0:n._angles[t]),g=s.animateScale?0:l.getDistanceFromCenterForValue(a.data[t]),_=e._options||{};U.extend(e,{_datasetIndex:n.index,_index:t,_scale:l,_model:{backgroundColor:_.backgroundColor,borderColor:_.borderColor,borderWidth:_.borderWidth,borderAlign:_.borderAlign,x:d,y:c,innerRadius:0,outerRadius:r?g:f,startAngle:r&&s.animateRotate?h:m,endAngle:r&&s.animateRotate?h:p,label:U.valueAtIndexOrDefault(u,t,u[t])}}),e.pivot()},countVisibleElements:function(){var e=this.getDataset(),t=this.getMeta(),r=0;return U.each(t.data,(function(t,n){isNaN(e.data[n])||t.hidden||r++})),r},setHoverStyle:function(e){var t=e._model,r=e._options,n=U.getHoverColor,i=U.valueOrDefault;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=i(r.hoverBackgroundColor,n(r.backgroundColor)),t.borderColor=i(r.hoverBorderColor,n(r.borderColor)),t.borderWidth=i(r.hoverBorderWidth,r.borderWidth)},_computeAngle:function(e){var t=this,r=this.getMeta().count,n=t.getDataset(),i=t.getMeta();if(isNaN(n.data[e])||i.data[e].hidden)return 0;var a={chart:t.chart,dataIndex:e,dataset:n,datasetIndex:t.index};return Ke([t.chart.options.elements.arc.angle,2*Math.PI/r],a,e)}});F._set("pie",U.clone(F.doughnut)),F._set("pie",{cutoutPercentage:0});var Je=je,Xe=U.valueOrDefault;F._set("radar",{spanGaps:!1,scale:{type:"radialLinear"},elements:{line:{fill:"start",tension:0}}});var $e=ne.extend({datasetElementType:we.Line,dataElementType:we.Point,linkScales:U.noop,_datasetElementOptions:["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var t,r,n=this,i=n.getMeta(),a=i.dataset,o=i.data||[],s=n.chart.scale,l=n._config;for(void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),a._scale=s,a._datasetIndex=n.index,a._children=o,a._loop=!0,a._model=n._resolveDatasetElementOptions(a),a.pivot(),t=0,r=o.length;t<r;++t)n.updateElement(o[t],t,e);for(n.updateBezierControlPoints(),t=0,r=o.length;t<r;++t)o[t].pivot()},updateElement:function(e,t,r){var n=this,i=e.custom||{},a=n.getDataset(),o=n.chart.scale,s=o.getPointPositionForValue(t,a.data[t]),l=n._resolveDataElementOptions(e,t),u=n.getMeta().dataset._model,d=r?o.xCenter:s.x,c=r?o.yCenter:s.y;e._scale=o,e._options=l,e._datasetIndex=n.index,e._index=t,e._model={x:d,y:c,skip:i.skip||isNaN(d)||isNaN(c),radius:l.radius,pointStyle:l.pointStyle,rotation:l.rotation,backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,tension:Xe(i.tension,u?u.tension:0),hitRadius:l.hitRadius}},_resolveDatasetElementOptions:function(){var e=this,t=e._config,r=e.chart.options,n=ne.prototype._resolveDatasetElementOptions.apply(e,arguments);return n.spanGaps=Xe(t.spanGaps,r.spanGaps),n.tension=Xe(t.lineTension,r.elements.line.tension),n},updateBezierControlPoints:function(){var e,t,r,n,i=this.getMeta(),a=this.chart.chartArea,o=i.data||[];function s(e,t,r){return Math.max(Math.min(e,r),t)}for(i.dataset._model.spanGaps&&(o=o.filter((function(e){return!e._model.skip}))),e=0,t=o.length;e<t;++e)r=o[e]._model,n=U.splineCurve(U.previousItem(o,e,!0)._model,r,U.nextItem(o,e,!0)._model,r.tension),r.controlPointPreviousX=s(n.previous.x,a.left,a.right),r.controlPointPreviousY=s(n.previous.y,a.top,a.bottom),r.controlPointNextX=s(n.next.x,a.left,a.right),r.controlPointNextY=s(n.next.y,a.top,a.bottom)},setHoverStyle:function(e){var t=e._model,r=e._options,n=U.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=Xe(r.hoverBackgroundColor,n(r.backgroundColor)),t.borderColor=Xe(r.hoverBorderColor,n(r.borderColor)),t.borderWidth=Xe(r.hoverBorderWidth,r.borderWidth),t.radius=Xe(r.hoverRadius,r.radius)}});F._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},tooltips:{callbacks:{title:function(){return""},label:function(e){return"("+e.xLabel+", "+e.yLabel+")"}}}}),F._set("global",{datasets:{scatter:{showLine:!1}}});var Ze={bar:Ee,bubble:Pe,doughnut:je,horizontalBar:Ne,line:Ge,polarArea:qe,pie:Je,radar:$e,scatter:Ge};function Qe(e,t){return e.native?{x:e.x,y:e.y}:U.getRelativePosition(e,t)}function et(e,t){var r,n,i,a,o,s,l=e._getSortedVisibleDatasetMetas();for(n=0,a=l.length;n<a;++n)for(i=0,o=(r=l[n].data).length;i<o;++i)(s=r[i])._view.skip||t(s)}function tt(e,t){var r=[];return et(e,(function(e){e.inRange(t.x,t.y)&&r.push(e)})),r}function rt(e,t,r,n){var i=Number.POSITIVE_INFINITY,a=[];return et(e,(function(e){if(!r||e.inRange(t.x,t.y)){var o=e.getCenterPoint(),s=n(t,o);s<i?(a=[e],i=s):s===i&&a.push(e)}})),a}function nt(e){var t=-1!==e.indexOf("x"),r=-1!==e.indexOf("y");return function(e,n){var i=t?Math.abs(e.x-n.x):0,a=r?Math.abs(e.y-n.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(a,2))}}function it(e,t,r){var n=Qe(t,e);r.axis=r.axis||"x";var i=nt(r.axis),a=r.intersect?tt(e,n):rt(e,n,!1,i),o=[];return a.length?(e._getSortedVisibleDatasetMetas().forEach((function(e){var t=e.data[a[0]._index];t&&!t._view.skip&&o.push(t)})),o):[]}var at={modes:{single:function(e,t){var r=Qe(t,e),n=[];return et(e,(function(e){if(e.inRange(r.x,r.y))return n.push(e),n})),n.slice(0,1)},label:it,index:it,dataset:function(e,t,r){var n=Qe(t,e);r.axis=r.axis||"xy";var i=nt(r.axis),a=r.intersect?tt(e,n):rt(e,n,!1,i);return a.length>0&&(a=e.getDatasetMeta(a[0]._datasetIndex).data),a},"x-axis":function(e,t){return it(e,t,{intersect:!1})},point:function(e,t){return tt(e,Qe(t,e))},nearest:function(e,t,r){var n=Qe(t,e);r.axis=r.axis||"xy";var i=nt(r.axis);return rt(e,n,r.intersect,i)},x:function(e,t,r){var n=Qe(t,e),i=[],a=!1;return et(e,(function(e){e.inXRange(n.x)&&i.push(e),e.inRange(n.x,n.y)&&(a=!0)})),r.intersect&&!a&&(i=[]),i},y:function(e,t,r){var n=Qe(t,e),i=[],a=!1;return et(e,(function(e){e.inYRange(n.y)&&i.push(e),e.inRange(n.x,n.y)&&(a=!0)})),r.intersect&&!a&&(i=[]),i}}},ot=U.extend;function st(e,t){return U.where(e,(function(e){return e.pos===t}))}function lt(e,t){return e.sort((function(e,r){var n=t?r:e,i=t?e:r;return n.weight===i.weight?n.index-i.index:n.weight-i.weight}))}function ut(e,t,r,n){return Math.max(e[r],t[r])+Math.max(e[n],t[n])}function dt(e,t,r){var n,i,a=r.box,o=e.maxPadding;if(r.size&&(e[r.pos]-=r.size),r.size=r.horizontal?a.height:a.width,e[r.pos]+=r.size,a.getPadding){var s=a.getPadding();o.top=Math.max(o.top,s.top),o.left=Math.max(o.left,s.left),o.bottom=Math.max(o.bottom,s.bottom),o.right=Math.max(o.right,s.right)}if(n=t.outerWidth-ut(o,e,"left","right"),i=t.outerHeight-ut(o,e,"top","bottom"),n!==e.w||i!==e.h){e.w=n,e.h=i;var l=r.horizontal?[n,e.w]:[i,e.h];return!(l[0]===l[1]||isNaN(l[0])&&isNaN(l[1]))}}function ct(e,t){var r=t.maxPadding;function n(e){var n={left:0,top:0,right:0,bottom:0};return e.forEach((function(e){n[e]=Math.max(t[e],r[e])})),n}return n(e?["left","right"]:["top","bottom"])}function ht(e,t,r){var n,i,a,o,s,l,u=[];for(n=0,i=e.length;n<i;++n)(o=(a=e[n]).box).update(a.width||t.w,a.height||t.h,ct(a.horizontal,t)),dt(t,r,a)&&(l=!0,u.length&&(s=!0)),o.fullWidth||u.push(a);return s&&ht(u,t,r)||l}function ft(e,t,r){var n,i,a,o,s=r.padding,l=t.x,u=t.y;for(n=0,i=e.length;n<i;++n)o=(a=e[n]).box,a.horizontal?(o.left=o.fullWidth?s.left:t.left,o.right=o.fullWidth?r.outerWidth-s.right:t.left+t.w,o.top=u,o.bottom=u+o.height,o.width=o.right-o.left,u=o.bottom):(o.left=l,o.right=l+o.width,o.top=t.top,o.bottom=t.top+t.h,o.height=o.bottom-o.top,l=o.right);t.x=l,t.y=u}F._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var mt,pt={defaults:{},addBox:function(e,t){e.boxes||(e.boxes=[]),t.fullWidth=t.fullWidth||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw:function(){t.draw.apply(t,arguments)}}]},e.boxes.push(t)},removeBox:function(e,t){var r=e.boxes?e.boxes.indexOf(t):-1;-1!==r&&e.boxes.splice(r,1)},configure:function(e,t,r){for(var n,i=["fullWidth","position","weight"],a=i.length,o=0;o<a;++o)n=i[o],r.hasOwnProperty(n)&&(t[n]=r[n])},update:function(e,t,r){if(e){var n=e.options.layout||{},i=U.options.toPadding(n.padding),a=t-i.width,o=r-i.height,s=function(e){var t=function(e){var t,r,n,i=[];for(t=0,r=(e||[]).length;t<r;++t)n=e[t],i.push({index:t,box:n,pos:n.position,horizontal:n.isHorizontal(),weight:n.weight});return i}(e),r=lt(st(t,"left"),!0),n=lt(st(t,"right")),i=lt(st(t,"top"),!0),a=lt(st(t,"bottom"));return{leftAndTop:r.concat(i),rightAndBottom:n.concat(a),chartArea:st(t,"chartArea"),vertical:r.concat(n),horizontal:i.concat(a)}}(e.boxes),l=s.vertical,u=s.horizontal,d=Object.freeze({outerWidth:t,outerHeight:r,padding:i,availableWidth:a,vBoxMaxWidth:a/2/l.length,hBoxMaxHeight:o/2}),c=ot({maxPadding:ot({},i),w:a,h:o,x:i.left,y:i.top},i);!function(e,t){var r,n,i;for(r=0,n=e.length;r<n;++r)(i=e[r]).width=i.horizontal?i.box.fullWidth&&t.availableWidth:t.vBoxMaxWidth,i.height=i.horizontal&&t.hBoxMaxHeight}(l.concat(u),d),ht(l,c,d),ht(u,c,d)&&ht(l,c,d),function(e){var t=e.maxPadding;function r(r){var n=Math.max(t[r]-e[r],0);return e[r]+=n,n}e.y+=r("top"),e.x+=r("left"),r("right"),r("bottom")}(c),ft(s.leftAndTop,c,d),c.x+=c.w,c.y+=c.h,ft(s.rightAndBottom,c,d),e.chartArea={left:c.left,top:c.top,right:c.left+c.w,bottom:c.top+c.h},U.each(s.chartArea,(function(t){var r=t.box;ot(r,e.chartArea),r.update(c.w,c.h)}))}}},gt=(mt=Object.freeze({__proto__:null,default:"/*\r\n * DOM element rendering detection\r\n * https://davidwalsh.name/detect-node-insertion\r\n */\r\n@keyframes chartjs-render-animation {\r\n\tfrom { opacity: 0.99; }\r\n\tto { opacity: 1; }\r\n}\r\n\r\n.chartjs-render-monitor {\r\n\tanimation: chartjs-render-animation 0.001s;\r\n}\r\n\r\n/*\r\n * DOM element resizing detection\r\n * https://github.com/marcj/css-element-queries\r\n */\r\n.chartjs-size-monitor,\r\n.chartjs-size-monitor-expand,\r\n.chartjs-size-monitor-shrink {\r\n\tposition: absolute;\r\n\tdirection: ltr;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tbottom: 0;\r\n\toverflow: hidden;\r\n\tpointer-events: none;\r\n\tvisibility: hidden;\r\n\tz-index: -1;\r\n}\r\n\r\n.chartjs-size-monitor-expand > div {\r\n\tposition: absolute;\r\n\twidth: 1000000px;\r\n\theight: 1000000px;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n\r\n.chartjs-size-monitor-shrink > div {\r\n\tposition: absolute;\r\n\twidth: 200%;\r\n\theight: 200%;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n"}))&&mt.default||mt,_t=["animationstart","webkitAnimationStart"],vt={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function yt(e,t){var r=U.getStyle(e,t),n=r&&r.match(/^(\d+)(\.\d+)?px$/);return n?Number(n[1]):void 0}var bt=!!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("e",null,t)}catch(e){}return e}()&&{passive:!0};function Mt(e,t,r){e.addEventListener(t,r,bt)}function wt(e,t,r){e.removeEventListener(t,r,bt)}function Lt(e,t,r,n,i){return{type:e,chart:t,native:i||null,x:void 0!==r?r:null,y:void 0!==n?n:null}}function Tt(e){var t=document.createElement("div");return t.className=e||"",t}function xt(e,t,r){var n,i,a,o,s=e.$chartjs||(e.$chartjs={}),l=s.resizer=function(e){var t=Tt("chartjs-size-monitor"),r=Tt("chartjs-size-monitor-expand"),n=Tt("chartjs-size-monitor-shrink");r.appendChild(Tt()),n.appendChild(Tt()),t.appendChild(r),t.appendChild(n),t._reset=function(){r.scrollLeft=1e6,r.scrollTop=1e6,n.scrollLeft=1e6,n.scrollTop=1e6};var i=function(){t._reset(),e()};return Mt(r,"scroll",i.bind(r,"expand")),Mt(n,"scroll",i.bind(n,"shrink")),t}((n=function(){if(s.resizer){var n=r.options.maintainAspectRatio&&e.parentNode,i=n?n.clientWidth:0;t(Lt("resize",r)),n&&n.clientWidth<i&&r.canvas&&t(Lt("resize",r))}},a=!1,o=[],function(){o=Array.prototype.slice.call(arguments),i=i||this,a||(a=!0,U.requestAnimFrame.call(window,(function(){a=!1,n.apply(i,o)})))}));!function(e,t){var r=e.$chartjs||(e.$chartjs={}),n=r.renderProxy=function(e){"chartjs-render-animation"===e.animationName&&t()};U.each(_t,(function(t){Mt(e,t,n)})),r.reflow=!!e.offsetParent,e.classList.add("chartjs-render-monitor")}(e,(function(){if(s.resizer){var t=e.parentNode;t&&t!==l.parentNode&&t.insertBefore(l,t.firstChild),l._reset()}}))}function kt(e){var t=e.$chartjs||{},r=t.resizer;delete t.resizer,function(e){var t=e.$chartjs||{},r=t.renderProxy;r&&(U.each(_t,(function(t){wt(e,t,r)})),delete t.renderProxy),e.classList.remove("chartjs-render-monitor")}(e),r&&r.parentNode&&r.parentNode.removeChild(r)}var St={disableCSSInjection:!1,_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,_ensureLoaded:function(e){if(!this.disableCSSInjection){var t=e.getRootNode?e.getRootNode():document;!function(e,t){var r=e.$chartjs||(e.$chartjs={});if(!r.containsStyles){r.containsStyles=!0,t="/* Chart.js */\n"+t;var n=document.createElement("style");n.setAttribute("type","text/css"),n.appendChild(document.createTextNode(t)),e.appendChild(n)}}(t.host?t:document.head,gt)}},acquireContext:function(e,t){"string"==typeof e?e=document.getElementById(e):e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas);var r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(this._ensureLoaded(e),function(e,t){var r=e.style,n=e.getAttribute("height"),i=e.getAttribute("width");if(e.$chartjs={initial:{height:n,width:i,style:{display:r.display,height:r.height,width:r.width}}},r.display=r.display||"block",null===i||""===i){var a=yt(e,"width");void 0!==a&&(e.width=a)}if(null===n||""===n)if(""===e.style.height)e.height=e.width/(t.options.aspectRatio||2);else{var o=yt(e,"height");void 0!==a&&(e.height=o)}}(e,t),r):null},releaseContext:function(e){var t=e.canvas;if(t.$chartjs){var r=t.$chartjs.initial;["height","width"].forEach((function(e){var n=r[e];U.isNullOrUndef(n)?t.removeAttribute(e):t.setAttribute(e,n)})),U.each(r.style||{},(function(e,r){t.style[r]=e})),t.width=t.width,delete t.$chartjs}},addEventListener:function(e,t,r){var n=e.canvas;if("resize"!==t){var i=r.$chartjs||(r.$chartjs={});Mt(n,t,(i.proxies||(i.proxies={}))[e.id+"_"+t]=function(t){r(function(e,t){var r=vt[e.type]||e.type,n=U.getRelativePosition(e,t);return Lt(r,t,n.x,n.y,e)}(t,e))})}else xt(n,r,e)},removeEventListener:function(e,t,r){var n=e.canvas;if("resize"!==t){var i=((r.$chartjs||{}).proxies||{})[e.id+"_"+t];i&&wt(n,t,i)}else kt(n)}};U.addEvent=Mt,U.removeEvent=wt;var Dt=St._enabled?St:{acquireContext:function(e){return e&&e.canvas&&(e=e.canvas),e&&e.getContext("2d")||null}},At=U.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},Dt);F._set("global",{plugins:{}});var Et={_plugins:[],_cacheId:0,register:function(e){var t=this._plugins;[].concat(e).forEach((function(e){-1===t.indexOf(e)&&t.push(e)})),this._cacheId++},unregister:function(e){var t=this._plugins;[].concat(e).forEach((function(e){var r=t.indexOf(e);-1!==r&&t.splice(r,1)})),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(e,t,r){var n,i,a,o,s,l=this.descriptors(e),u=l.length;for(n=0;n<u;++n)if("function"==typeof(s=(a=(i=l[n]).plugin)[t])&&((o=[e].concat(r||[])).push(i.options),!1===s.apply(a,o)))return!1;return!0},descriptors:function(e){var t=e.$plugins||(e.$plugins={});if(t.id===this._cacheId)return t.descriptors;var r=[],n=[],i=e&&e.config||{},a=i.options&&i.options.plugins||{};return this._plugins.concat(i.plugins||[]).forEach((function(e){if(-1===r.indexOf(e)){var t=e.id,i=a[t];!1!==i&&(!0===i&&(i=U.clone(F.global.plugins[t])),r.push(e),n.push({plugin:e,options:i||{}}))}})),t.descriptors=n,t.id=this._cacheId,n},_invalidate:function(e){delete e.$plugins}},Yt={constructors:{},defaults:{},registerScaleType:function(e,t,r){this.constructors[e]=t,this.defaults[e]=U.clone(r)},getScaleConstructor:function(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:void 0},getScaleDefaults:function(e){return this.defaults.hasOwnProperty(e)?U.merge(Object.create(null),[F.scale,this.defaults[e]]):{}},updateScaleDefaults:function(e,t){this.defaults.hasOwnProperty(e)&&(this.defaults[e]=U.extend(this.defaults[e],t))},addScalesToLayout:function(e){U.each(e.scales,(function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,pt.addBox(e,t)}))}},Ot=U.valueOrDefault,Pt=U.rtl.getRtlAdapter;F._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:U.noop,title:function(e,t){var r="",n=t.labels,i=n?n.length:0;if(e.length>0){var a=e[0];a.label?r=a.label:a.xLabel?r=a.xLabel:i>0&&a.index<i&&(r=n[a.index])}return r},afterTitle:U.noop,beforeBody:U.noop,beforeLabel:U.noop,label:function(e,t){var r=t.datasets[e.datasetIndex].label||"";return r&&(r+=": "),U.isNullOrUndef(e.value)?r+=e.yLabel:r+=e.value,r},labelColor:function(e,t){var r=t.getDatasetMeta(e.datasetIndex).data[e.index]._view;return{borderColor:r.borderColor,backgroundColor:r.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:U.noop,afterBody:U.noop,beforeFooter:U.noop,footer:U.noop,afterFooter:U.noop}}});var Rt={average:function(e){if(!e.length)return!1;var t,r,n=0,i=0,a=0;for(t=0,r=e.length;t<r;++t){var o=e[t];if(o&&o.hasValue()){var s=o.tooltipPosition();n+=s.x,i+=s.y,++a}}return{x:n/a,y:i/a}},nearest:function(e,t){var r,n,i,a=t.x,o=t.y,s=Number.POSITIVE_INFINITY;for(r=0,n=e.length;r<n;++r){var l=e[r];if(l&&l.hasValue()){var u=l.getCenterPoint(),d=U.distanceBetweenPoints(t,u);d<s&&(s=d,i=l)}}if(i){var c=i.tooltipPosition();a=c.x,o=c.y}return{x:a,y:o}}};function Ct(e,t){return t&&(U.isArray(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function It(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function Ft(e){var t=F.global;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,rtl:e.rtl,textDirection:e.textDirection,bodyFontColor:e.bodyFontColor,_bodyFontFamily:Ot(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:Ot(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:Ot(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:Ot(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:Ot(e.titleFontStyle,t.defaultFontStyle),titleFontSize:Ot(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:Ot(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:Ot(e.footerFontStyle,t.defaultFontStyle),footerFontSize:Ot(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function jt(e,t){return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-e.xPadding:e.x+e.xPadding}function Nt(e){return Ct([],It(e))}var Ht=J.extend({initialize:function(){this._model=Ft(this._options),this._lastActive=[]},getTitle:function(){var e=this,t=e._options,r=t.callbacks,n=r.beforeTitle.apply(e,arguments),i=r.title.apply(e,arguments),a=r.afterTitle.apply(e,arguments),o=[];return o=Ct(o,It(n)),o=Ct(o,It(i)),o=Ct(o,It(a))},getBeforeBody:function(){return Nt(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,t){var r=this,n=r._options.callbacks,i=[];return U.each(e,(function(e){var a={before:[],lines:[],after:[]};Ct(a.before,It(n.beforeLabel.call(r,e,t))),Ct(a.lines,n.label.call(r,e,t)),Ct(a.after,It(n.afterLabel.call(r,e,t))),i.push(a)})),i},getAfterBody:function(){return Nt(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var e=this,t=e._options.callbacks,r=t.beforeFooter.apply(e,arguments),n=t.footer.apply(e,arguments),i=t.afterFooter.apply(e,arguments),a=[];return a=Ct(a,It(r)),a=Ct(a,It(n)),a=Ct(a,It(i))},update:function(e){var t,r,n,i,a,o,s,l,u,d,c=this,h=c._options,f=c._model,m=c._model=Ft(h),p=c._active,g=c._data,_={xAlign:f.xAlign,yAlign:f.yAlign},v={x:f.x,y:f.y},y={width:f.width,height:f.height},b={x:f.caretX,y:f.caretY};if(p.length){m.opacity=1;var M=[],w=[];b=Rt[h.position].call(c,p,c._eventPosition);var L=[];for(t=0,r=p.length;t<r;++t)L.push((n=p[t],i=void 0,a=void 0,o=void 0,s=void 0,l=void 0,u=void 0,d=void 0,i=n._xScale,a=n._yScale||n._scale,o=n._index,s=n._datasetIndex,l=n._chart.getDatasetMeta(s).controller,u=l._getIndexScale(),d=l._getValueScale(),{xLabel:i?i.getLabelForIndex(o,s):"",yLabel:a?a.getLabelForIndex(o,s):"",label:u?""+u.getLabelForIndex(o,s):"",value:d?""+d.getLabelForIndex(o,s):"",index:o,datasetIndex:s,x:n._model.x,y:n._model.y}));h.filter&&(L=L.filter((function(e){return h.filter(e,g)}))),h.itemSort&&(L=L.sort((function(e,t){return h.itemSort(e,t,g)}))),U.each(L,(function(e){M.push(h.callbacks.labelColor.call(c,e,c._chart)),w.push(h.callbacks.labelTextColor.call(c,e,c._chart))})),m.title=c.getTitle(L,g),m.beforeBody=c.getBeforeBody(L,g),m.body=c.getBody(L,g),m.afterBody=c.getAfterBody(L,g),m.footer=c.getFooter(L,g),m.x=b.x,m.y=b.y,m.caretPadding=h.caretPadding,m.labelColors=M,m.labelTextColors=w,m.dataPoints=L,y=function(e,t){var r=e._chart.ctx,n=2*t.yPadding,i=0,a=t.body,o=a.reduce((function(e,t){return e+t.before.length+t.lines.length+t.after.length}),0);o+=t.beforeBody.length+t.afterBody.length;var s=t.title.length,l=t.footer.length,u=t.titleFontSize,d=t.bodyFontSize,c=t.footerFontSize;n+=s*u,n+=s?(s-1)*t.titleSpacing:0,n+=s?t.titleMarginBottom:0,n+=o*d,n+=o?(o-1)*t.bodySpacing:0,n+=l?t.footerMarginTop:0,n+=l*c,n+=l?(l-1)*t.footerSpacing:0;var h=0,f=function(e){i=Math.max(i,r.measureText(e).width+h)};return r.font=U.fontString(u,t._titleFontStyle,t._titleFontFamily),U.each(t.title,f),r.font=U.fontString(d,t._bodyFontStyle,t._bodyFontFamily),U.each(t.beforeBody.concat(t.afterBody),f),h=t.displayColors?d+2:0,U.each(a,(function(e){U.each(e.before,f),U.each(e.lines,f),U.each(e.after,f)})),h=0,r.font=U.fontString(c,t._footerFontStyle,t._footerFontFamily),U.each(t.footer,f),{width:i+=2*t.xPadding,height:n}}(this,m),v=function(e,t,r,n){var i=e.x,a=e.y,o=e.caretSize,s=e.caretPadding,l=e.cornerRadius,u=r.xAlign,d=r.yAlign,c=o+s,h=l+s;return"right"===u?i-=t.width:"center"===u&&((i-=t.width/2)+t.width>n.width&&(i=n.width-t.width),i<0&&(i=0)),"top"===d?a+=c:a-="bottom"===d?t.height+c:t.height/2,"center"===d?"left"===u?i+=c:"right"===u&&(i-=c):"left"===u?i-=h:"right"===u&&(i+=h),{x:i,y:a}}(m,y,_=function(e,t){var r,n,i,a,o,s=e._model,l=e._chart,u=e._chart.chartArea,d="center",c="center";s.y<t.height?c="top":s.y>l.height-t.height&&(c="bottom");var h=(u.left+u.right)/2,f=(u.top+u.bottom)/2;"center"===c?(r=function(e){return e<=h},n=function(e){return e>h}):(r=function(e){return e<=t.width/2},n=function(e){return e>=l.width-t.width/2}),i=function(e){return e+t.width+s.caretSize+s.caretPadding>l.width},a=function(e){return e-t.width-s.caretSize-s.caretPadding<0},o=function(e){return e<=f?"top":"bottom"},r(s.x)?(d="left",i(s.x)&&(d="center",c=o(s.y))):n(s.x)&&(d="right",a(s.x)&&(d="center",c=o(s.y)));var m=e._options;return{xAlign:m.xAlign?m.xAlign:d,yAlign:m.yAlign?m.yAlign:c}}(this,y),c._chart)}else m.opacity=0;return m.xAlign=_.xAlign,m.yAlign=_.yAlign,m.x=v.x,m.y=v.y,m.width=y.width,m.height=y.height,m.caretX=b.x,m.caretY=b.y,c._model=m,e&&h.custom&&h.custom.call(c,m),c},drawCaret:function(e,t){var r=this._chart.ctx,n=this._view,i=this.getCaretPosition(e,t,n);r.lineTo(i.x1,i.y1),r.lineTo(i.x2,i.y2),r.lineTo(i.x3,i.y3)},getCaretPosition:function(e,t,r){var n,i,a,o,s,l,u=r.caretSize,d=r.cornerRadius,c=r.xAlign,h=r.yAlign,f=e.x,m=e.y,p=t.width,g=t.height;if("center"===h)s=m+g/2,"left"===c?(i=(n=f)-u,a=n,o=s+u,l=s-u):(i=(n=f+p)+u,a=n,o=s-u,l=s+u);else if("left"===c?(n=(i=f+d+u)-u,a=i+u):"right"===c?(n=(i=f+p-d-u)-u,a=i+u):(n=(i=r.caretX)-u,a=i+u),"top"===h)s=(o=m)-u,l=o;else{s=(o=m+g)+u,l=o;var _=a;a=n,n=_}return{x1:n,x2:i,x3:a,y1:o,y2:s,y3:l}},drawTitle:function(e,t,r){var n,i,a,o=t.title,s=o.length;if(s){var l=Pt(t.rtl,t.x,t.width);for(e.x=jt(t,t._titleAlign),r.textAlign=l.textAlign(t._titleAlign),r.textBaseline="middle",n=t.titleFontSize,i=t.titleSpacing,r.fillStyle=t.titleFontColor,r.font=U.fontString(n,t._titleFontStyle,t._titleFontFamily),a=0;a<s;++a)r.fillText(o[a],l.x(e.x),e.y+n/2),e.y+=n+i,a+1===s&&(e.y+=t.titleMarginBottom-i)}},drawBody:function(e,t,r){var n,i,a,o,s,l,u,d,c=t.bodyFontSize,h=t.bodySpacing,f=t._bodyAlign,m=t.body,p=t.displayColors,g=0,_=p?jt(t,"left"):0,v=Pt(t.rtl,t.x,t.width),y=function(t){r.fillText(t,v.x(e.x+g),e.y+c/2),e.y+=c+h},b=v.textAlign(f);for(r.textAlign=f,r.textBaseline="middle",r.font=U.fontString(c,t._bodyFontStyle,t._bodyFontFamily),e.x=jt(t,b),r.fillStyle=t.bodyFontColor,U.each(t.beforeBody,y),g=p&&"right"!==b?"center"===f?c/2+1:c+2:0,s=0,u=m.length;s<u;++s){for(n=m[s],i=t.labelTextColors[s],a=t.labelColors[s],r.fillStyle=i,U.each(n.before,y),l=0,d=(o=n.lines).length;l<d;++l){if(p){var M=v.x(_);r.fillStyle=t.legendColorBackground,r.fillRect(v.leftForLtr(M,c),e.y,c,c),r.lineWidth=1,r.strokeStyle=a.borderColor,r.strokeRect(v.leftForLtr(M,c),e.y,c,c),r.fillStyle=a.backgroundColor,r.fillRect(v.leftForLtr(v.xPlus(M,1),c-2),e.y+1,c-2,c-2),r.fillStyle=i}y(o[l])}U.each(n.after,y)}g=0,U.each(t.afterBody,y),e.y-=h},drawFooter:function(e,t,r){var n,i,a=t.footer,o=a.length;if(o){var s=Pt(t.rtl,t.x,t.width);for(e.x=jt(t,t._footerAlign),e.y+=t.footerMarginTop,r.textAlign=s.textAlign(t._footerAlign),r.textBaseline="middle",n=t.footerFontSize,r.fillStyle=t.footerFontColor,r.font=U.fontString(n,t._footerFontStyle,t._footerFontFamily),i=0;i<o;++i)r.fillText(a[i],s.x(e.x),e.y+n/2),e.y+=n+t.footerSpacing}},drawBackground:function(e,t,r,n){r.fillStyle=t.backgroundColor,r.strokeStyle=t.borderColor,r.lineWidth=t.borderWidth;var i=t.xAlign,a=t.yAlign,o=e.x,s=e.y,l=n.width,u=n.height,d=t.cornerRadius;r.beginPath(),r.moveTo(o+d,s),"top"===a&&this.drawCaret(e,n),r.lineTo(o+l-d,s),r.quadraticCurveTo(o+l,s,o+l,s+d),"center"===a&&"right"===i&&this.drawCaret(e,n),r.lineTo(o+l,s+u-d),r.quadraticCurveTo(o+l,s+u,o+l-d,s+u),"bottom"===a&&this.drawCaret(e,n),r.lineTo(o+d,s+u),r.quadraticCurveTo(o,s+u,o,s+u-d),"center"===a&&"left"===i&&this.drawCaret(e,n),r.lineTo(o,s+d),r.quadraticCurveTo(o,s,o+d,s),r.closePath(),r.fill(),t.borderWidth>0&&r.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var r={width:t.width,height:t.height},n={x:t.x,y:t.y},i=Math.abs(t.opacity<.001)?0:t.opacity,a=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;this._options.enabled&&a&&(e.save(),e.globalAlpha=i,this.drawBackground(n,t,e,r),n.y+=t.yPadding,U.rtl.overrideTextDirection(e,t.textDirection),this.drawTitle(n,t,e),this.drawBody(n,t,e),this.drawFooter(n,t,e),U.rtl.restoreTextDirection(e,t.textDirection),e.restore())}},handleEvent:function(e){var t,r=this,n=r._options;return r._lastActive=r._lastActive||[],"mouseout"===e.type?r._active=[]:(r._active=r._chart.getElementsAtEventForMode(e,n.mode,n),n.reverse&&r._active.reverse()),(t=!U.arrayEquals(r._active,r._lastActive))&&(r._lastActive=r._active,(n.enabled||n.custom)&&(r._eventPosition={x:e.x,y:e.y},r.update(!0),r.pivot())),t}}),Bt=Rt,Ut=Ht;Ut.positioners=Bt;var Wt=U.valueOrDefault;function zt(){return U.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,r,n){if("xAxes"===e||"yAxes"===e){var i,a,o,s=r[e].length;for(t[e]||(t[e]=[]),i=0;i<s;++i)o=r[e][i],a=Wt(o.type,"xAxes"===e?"category":"linear"),i>=t[e].length&&t[e].push({}),!t[e][i].type||o.type&&o.type!==t[e][i].type?U.merge(t[e][i],[Yt.getScaleDefaults(a),o]):U.merge(t[e][i],o)}else U._merger(e,t,r,n)}})}function Vt(){return U.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,r,n){var i=t[e]||Object.create(null),a=r[e];"scales"===e?t[e]=zt(i,a):"scale"===e?t[e]=U.merge(i,[Yt.getScaleDefaults(a.type),a]):U._merger(e,t,r,n)}})}function Gt(e){var t=e.options;U.each(e.scales,(function(t){pt.removeBox(e,t)})),t=Vt(F.global,F[e.config.type],t),e.options=e.config.options=t,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=t.tooltips,e.tooltip.initialize()}function Kt(e,t,r){var n,i=function(e){return e.id===n};do{n=t+r++}while(U.findIndex(e,i)>=0);return n}function qt(e){return"top"===e||"bottom"===e}function Jt(e,t){return function(r,n){return r[e]===n[e]?r[t]-n[t]:r[e]-n[e]}}F._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var Xt=function(e,t){return this.construct(e,t),this};U.extend(Xt.prototype,{construct:function(e,t){var r=this;t=function(e){var t=(e=e||Object.create(null)).data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=Vt(F.global,F[e.type],e.options||{}),e}(t);var n=At.acquireContext(e,t),i=n&&n.canvas,a=i&&i.height,o=i&&i.width;r.id=U.uid(),r.ctx=n,r.canvas=i,r.config=t,r.width=o,r.height=a,r.aspectRatio=a?o/a:null,r.options=t.options,r._bufferedRender=!1,r._layers=[],r.chart=r,r.controller=r,Xt.instances[r.id]=r,Object.defineProperty(r,"data",{get:function(){return r.config.data},set:function(e){r.config.data=e}}),n&&i?(r.initialize(),r.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this;return Et.notify(e,"beforeInit"),U.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.initToolTip(),Et.notify(e,"afterInit"),e},clear:function(){return U.canvas.clear(this),this},stop:function(){return Z.cancelAnimation(this),this},resize:function(e){var t=this,r=t.options,n=t.canvas,i=r.maintainAspectRatio&&t.aspectRatio||null,a=Math.max(0,Math.floor(U.getMaximumWidth(n))),o=Math.max(0,Math.floor(i?a/i:U.getMaximumHeight(n)));if((t.width!==a||t.height!==o)&&(n.width=t.width=a,n.height=t.height=o,n.style.width=a+"px",n.style.height=o+"px",U.retinaScale(t,r.devicePixelRatio),!e)){var s={width:a,height:o};Et.notify(t,"resize",[s]),r.onResize&&r.onResize(t,s),t.stop(),t.update({duration:r.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},r=e.scale;U.each(t.xAxes,(function(e,r){e.id||(e.id=Kt(t.xAxes,"x-axis-",r))})),U.each(t.yAxes,(function(e,r){e.id||(e.id=Kt(t.yAxes,"y-axis-",r))})),r&&(r.id=r.id||"scale")},buildOrUpdateScales:function(){var e=this,t=e.options,r=e.scales||{},n=[],i=Object.keys(r).reduce((function(e,t){return e[t]=!1,e}),{});t.scales&&(n=n.concat((t.scales.xAxes||[]).map((function(e){return{options:e,dtype:"category",dposition:"bottom"}})),(t.scales.yAxes||[]).map((function(e){return{options:e,dtype:"linear",dposition:"left"}})))),t.scale&&n.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),U.each(n,(function(t){var n=t.options,a=n.id,o=Wt(n.type,t.dtype);qt(n.position)!==qt(t.dposition)&&(n.position=t.dposition),i[a]=!0;var s=null;if(a in r&&r[a].type===o)(s=r[a]).options=n,s.ctx=e.ctx,s.chart=e;else{var l=Yt.getScaleConstructor(o);if(!l)return;s=new l({id:a,type:o,options:n,ctx:e.ctx,chart:e}),r[s.id]=s}s.mergeTicksOptions(),t.isDefault&&(e.scale=s)})),U.each(i,(function(e,t){e||delete r[t]})),e.scales=r,Yt.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e,t,r=this,n=[],i=r.data.datasets;for(e=0,t=i.length;e<t;e++){var a=i[e],o=r.getDatasetMeta(e),s=a.type||r.config.type;if(o.type&&o.type!==s&&(r.destroyDatasetMeta(e),o=r.getDatasetMeta(e)),o.type=s,o.order=a.order||0,o.index=e,o.controller)o.controller.updateIndex(e),o.controller.linkScales();else{var l=Ze[o.type];if(void 0===l)throw new Error('"'+o.type+'" is not a chart type.');o.controller=new l(r,e),n.push(o.controller)}}return n},resetElements:function(){var e=this;U.each(e.data.datasets,(function(t,r){e.getDatasetMeta(r).controller.reset()}),e)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(e){var t,r,n=this;if(e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]}),Gt(n),Et._invalidate(n),!1!==Et.notify(n,"beforeUpdate")){n.tooltip._data=n.data;var i=n.buildOrUpdateControllers();for(t=0,r=n.data.datasets.length;t<r;t++)n.getDatasetMeta(t).controller.buildOrUpdateElements();n.updateLayout(),n.options.animation&&n.options.animation.duration&&U.each(i,(function(e){e.reset()})),n.updateDatasets(),n.tooltip.initialize(),n.lastActive=[],Et.notify(n,"afterUpdate"),n._layers.sort(Jt("z","_idx")),n._bufferedRender?n._bufferedRequest={duration:e.duration,easing:e.easing,lazy:e.lazy}:n.render(e)}},updateLayout:function(){var e=this;!1!==Et.notify(e,"beforeLayout")&&(pt.update(this,this.width,this.height),e._layers=[],U.each(e.boxes,(function(t){t._configure&&t._configure(),e._layers.push.apply(e._layers,t._layers())}),e),e._layers.forEach((function(e,t){e._idx=t})),Et.notify(e,"afterScaleUpdate"),Et.notify(e,"afterLayout"))},updateDatasets:function(){if(!1!==Et.notify(this,"beforeDatasetsUpdate")){for(var e=0,t=this.data.datasets.length;e<t;++e)this.updateDataset(e);Et.notify(this,"afterDatasetsUpdate")}},updateDataset:function(e){var t=this.getDatasetMeta(e),r={meta:t,index:e};!1!==Et.notify(this,"beforeDatasetUpdate",[r])&&(t.controller._update(),Et.notify(this,"afterDatasetUpdate",[r]))},render:function(e){var t=this;e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]});var r=t.options.animation,n=Wt(e.duration,r&&r.duration),i=e.lazy;if(!1!==Et.notify(t,"beforeRender")){var a=function(e){Et.notify(t,"afterRender"),U.callback(r&&r.onComplete,[e],t)};if(r&&n){var o=new $({numSteps:n/16.66,easing:e.easing||r.easing,render:function(e,t){var r=U.easing.effects[t.easing],n=t.currentStep,i=n/t.numSteps;e.draw(r(i),i,n)},onAnimationProgress:r.onProgress,onAnimationComplete:a});Z.addAnimation(t,o,n,i)}else t.draw(),a(new $({numSteps:0,chart:t}));return t}},draw:function(e){var t,r,n=this;if(n.clear(),U.isNullOrUndef(e)&&(e=1),n.transition(e),!(n.width<=0||n.height<=0)&&!1!==Et.notify(n,"beforeDraw",[e])){for(r=n._layers,t=0;t<r.length&&r[t].z<=0;++t)r[t].draw(n.chartArea);for(n.drawDatasets(e);t<r.length;++t)r[t].draw(n.chartArea);n._drawTooltip(e),Et.notify(n,"afterDraw",[e])}},transition:function(e){for(var t=0,r=(this.data.datasets||[]).length;t<r;++t)this.isDatasetVisible(t)&&this.getDatasetMeta(t).controller.transition(e);this.tooltip.transition(e)},_getSortedDatasetMetas:function(e){var t,r,n=[];for(t=0,r=(this.data.datasets||[]).length;t<r;++t)e&&!this.isDatasetVisible(t)||n.push(this.getDatasetMeta(t));return n.sort(Jt("order","index")),n},_getSortedVisibleDatasetMetas:function(){return this._getSortedDatasetMetas(!0)},drawDatasets:function(e){var t,r;if(!1!==Et.notify(this,"beforeDatasetsDraw",[e])){for(r=(t=this._getSortedVisibleDatasetMetas()).length-1;r>=0;--r)this.drawDataset(t[r],e);Et.notify(this,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var r={meta:e,index:e.index,easingValue:t};!1!==Et.notify(this,"beforeDatasetDraw",[r])&&(e.controller.draw(t),Et.notify(this,"afterDatasetDraw",[r]))},_drawTooltip:function(e){var t=this.tooltip,r={tooltip:t,easingValue:e};!1!==Et.notify(this,"beforeTooltipDraw",[r])&&(t.draw(),Et.notify(this,"afterTooltipDraw",[r]))},getElementAtEvent:function(e){return at.modes.single(this,e)},getElementsAtEvent:function(e){return at.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return at.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,r){var n=at.modes[t];return"function"==typeof n?n(this,e,r):[]},getDatasetAtEvent:function(e){return at.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this.data.datasets[e];t._meta||(t._meta={});var r=t._meta[this.id];return r||(r=t._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t.order||0,index:e}),r},getVisibleDatasetCount:function(){for(var e=0,t=0,r=this.data.datasets.length;t<r;++t)this.isDatasetVisible(t)&&e++;return e},isDatasetVisible:function(e){var t=this.getDatasetMeta(e);return"boolean"==typeof t.hidden?!t.hidden:!this.data.datasets[e].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(e){var t=this.id,r=this.data.datasets[e],n=r._meta&&r._meta[t];n&&(n.controller.destroy(),delete r._meta[t])},destroy:function(){var e,t,r=this,n=r.canvas;for(r.stop(),e=0,t=r.data.datasets.length;e<t;++e)r.destroyDatasetMeta(e);n&&(r.unbindEvents(),U.canvas.clear(r),At.releaseContext(r.ctx),r.canvas=null,r.ctx=null),Et.notify(r,"destroy"),delete Xt.instances[r.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new Ut({_chart:e,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e)},bindEvents:function(){var e=this,t=e._listeners={},r=function(){e.eventHandler.apply(e,arguments)};U.each(e.options.events,(function(n){At.addEventListener(e,n,r),t[n]=r})),e.options.responsive&&(r=function(){e.resize()},At.addEventListener(e,"resize",r),t.resize=r)},unbindEvents:function(){var e=this,t=e._listeners;t&&(delete e._listeners,U.each(t,(function(t,r){At.removeEventListener(e,r,t)})))},updateHoverStyle:function(e,t,r){var n,i,a,o=r?"set":"remove";for(i=0,a=e.length;i<a;++i)(n=e[i])&&this.getDatasetMeta(n._datasetIndex).controller[o+"HoverStyle"](n);"dataset"===t&&this.getDatasetMeta(e[0]._datasetIndex).controller["_"+o+"DatasetHoverStyle"]()},eventHandler:function(e){var t=this,r=t.tooltip;if(!1!==Et.notify(t,"beforeEvent",[e])){t._bufferedRender=!0,t._bufferedRequest=null;var n=t.handleEvent(e);r&&(n=r._start?r.handleEvent(e):n|r.handleEvent(e)),Et.notify(t,"afterEvent",[e]);var i=t._bufferedRequest;return i?t.render(i):n&&!t.animating&&(t.stop(),t.render({duration:t.options.hover.animationDuration,lazy:!0})),t._bufferedRender=!1,t._bufferedRequest=null,t}},handleEvent:function(e){var t,r=this,n=r.options||{},i=n.hover;return r.lastActive=r.lastActive||[],"mouseout"===e.type?r.active=[]:r.active=r.getElementsAtEventForMode(e,i.mode,i),U.callback(n.onHover||n.hover.onHover,[e.native,r.active],r),"mouseup"!==e.type&&"click"!==e.type||n.onClick&&n.onClick.call(r,e.native,r.active),r.lastActive.length&&r.updateHoverStyle(r.lastActive,i.mode,!1),r.active.length&&i.mode&&r.updateHoverStyle(r.active,i.mode,!0),t=!U.arrayEquals(r.active,r.lastActive),r.lastActive=r.active,t}}),Xt.instances={};var $t=Xt;function Zt(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function Qt(e){this.options=e||{}}Xt.Controller=Xt,Xt.types={},U.configMerge=Vt,U.scaleMerge=zt,U.extend(Qt.prototype,{formats:Zt,parse:Zt,format:Zt,add:Zt,diff:Zt,startOf:Zt,endOf:Zt,_create:function(e){return e}}),Qt.override=function(e){U.extend(Qt.prototype,e)};var er={_date:Qt},tr={formatters:{values:function(e){return U.isArray(e)?e:""+e},linear:function(e,t,r){var n=r.length>3?r[2]-r[1]:r[1]-r[0];Math.abs(n)>1&&e!==Math.floor(e)&&(n=e-Math.floor(e));var i=U.log10(Math.abs(n)),a="";if(0!==e)if(Math.max(Math.abs(r[0]),Math.abs(r[r.length-1]))<1e-4){var o=U.log10(Math.abs(e)),s=Math.floor(o)-Math.floor(i);s=Math.max(Math.min(s,20),0),a=e.toExponential(s)}else{var l=-1*Math.floor(i);l=Math.max(Math.min(l,20),0),a=e.toFixed(l)}else a="0";return a},logarithmic:function(e,t,r){var n=e/Math.pow(10,Math.floor(U.log10(e)));return 0===e?"0":1===n||2===n||5===n||0===t||t===r.length-1?e.toExponential():""}}},rr=U.isArray,nr=U.isNullOrUndef,ir=U.valueOrDefault,ar=U.valueAtIndexOrDefault;function or(e,t,r){var n,i=e.getTicks().length,a=Math.min(t,i-1),o=e.getPixelForTick(a),s=e._startPixel,l=e._endPixel;if(!(r&&(n=1===i?Math.max(o-s,l-o):0===t?(e.getPixelForTick(1)-o)/2:(o-e.getPixelForTick(a-1))/2,(o+=a<t?n:-n)<s-1e-6||o>l+1e-6)))return o}function sr(e,t,r,n){var i,a,o,s,l,u,d,c,h,f,m,p,g,_=r.length,v=[],y=[],b=[],M=0,w=0;for(i=0;i<_;++i){if(s=r[i].label,l=r[i].major?t.major:t.minor,e.font=u=l.string,d=n[u]=n[u]||{data:{},gc:[]},c=l.lineHeight,h=f=0,nr(s)||rr(s)){if(rr(s))for(a=0,o=s.length;a<o;++a)m=s[a],nr(m)||rr(m)||(h=U.measureText(e,d.data,d.gc,h,m),f+=c)}else h=U.measureText(e,d.data,d.gc,h,s),f=c;v.push(h),y.push(f),b.push(c/2),M=Math.max(h,M),w=Math.max(f,w)}function L(e){return{width:v[e]||0,height:y[e]||0,offset:b[e]||0}}return function(e,t){U.each(e,(function(e){var r,n=e.gc,i=n.length/2;if(i>t){for(r=0;r<i;++r)delete e.data[n[r]];n.splice(0,i)}}))}(n,_),p=v.indexOf(M),g=y.indexOf(w),{first:L(0),last:L(_-1),widest:L(p),highest:L(g)}}function lr(e){return e.drawTicks?e.tickMarkLength:0}function ur(e){var t,r;return e.display?(t=U.options._parseFont(e),r=U.options.toPadding(e.padding),t.lineHeight+r.height):0}function dr(e,t){return U.extend(U.options._parseFont({fontFamily:ir(t.fontFamily,e.fontFamily),fontSize:ir(t.fontSize,e.fontSize),fontStyle:ir(t.fontStyle,e.fontStyle),lineHeight:ir(t.lineHeight,e.lineHeight)}),{color:U.options.resolve([t.fontColor,e.fontColor,F.global.defaultFontColor])})}function cr(e){var t=dr(e,e.minor);return{minor:t,major:e.major.enabled?dr(e,e.major):t}}function hr(e){var t,r,n,i=[];for(r=0,n=e.length;r<n;++r)void 0!==(t=e[r])._index&&i.push(t);return i}function fr(e,t,r,n){var i,a,o,s,l=ir(r,0),u=Math.min(ir(n,e.length),e.length),d=0;for(t=Math.ceil(t),n&&(t=(i=n-r)/Math.floor(i/t)),s=l;s<0;)d++,s=Math.round(l+d*t);for(a=Math.max(l,0);a<u;a++)o=e[a],a===s?(o._index=a,d++,s=Math.round(l+d*t)):delete o.label}F._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:tr.formatters.values,minor:{},major:{}}});var mr=J.extend({zeroLineIndex:0,getPadding:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}},getTicks:function(){return this._ticks},_getLabels:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]},mergeTicksOptions:function(){},beforeUpdate:function(){U.callback(this.options.beforeUpdate,[this])},update:function(e,t,r){var n,i,a,o,s,l=this,u=l.options.ticks,d=u.sampleSize;if(l.beforeUpdate(),l.maxWidth=e,l.maxHeight=t,l.margins=U.extend({left:0,right:0,top:0,bottom:0},r),l._ticks=null,l.ticks=null,l._labelSizes=null,l._maxLabelLines=0,l.longestLabelWidth=0,l.longestTextCache=l.longestTextCache||{},l._gridLineItems=null,l._labelItems=null,l.beforeSetDimensions(),l.setDimensions(),l.afterSetDimensions(),l.beforeDataLimits(),l.determineDataLimits(),l.afterDataLimits(),l.beforeBuildTicks(),o=l.buildTicks()||[],(!(o=l.afterBuildTicks(o)||o)||!o.length)&&l.ticks)for(o=[],n=0,i=l.ticks.length;n<i;++n)o.push({value:l.ticks[n],major:!1});return l._ticks=o,s=d<o.length,a=l._convertTicksToLabels(s?function(e,t){for(var r=[],n=e.length/t,i=0,a=e.length;i<a;i+=n)r.push(e[Math.floor(i)]);return r}(o,d):o),l._configure(),l.beforeCalculateTickRotation(),l.calculateTickRotation(),l.afterCalculateTickRotation(),l.beforeFit(),l.fit(),l.afterFit(),l._ticksToDraw=u.display&&(u.autoSkip||"auto"===u.source)?l._autoSkip(o):o,s&&(a=l._convertTicksToLabels(l._ticksToDraw)),l.ticks=a,l.afterUpdate(),l.minSize},_configure:function(){var e,t,r=this,n=r.options.ticks.reverse;r.isHorizontal()?(e=r.left,t=r.right):(e=r.top,t=r.bottom,n=!n),r._startPixel=e,r._endPixel=t,r._reversePixels=n,r._length=t-e},afterUpdate:function(){U.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){U.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0},afterSetDimensions:function(){U.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){U.callback(this.options.beforeDataLimits,[this])},determineDataLimits:U.noop,afterDataLimits:function(){U.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){U.callback(this.options.beforeBuildTicks,[this])},buildTicks:U.noop,afterBuildTicks:function(e){var t=this;return rr(e)&&e.length?U.callback(t.options.afterBuildTicks,[t,e]):(t.ticks=U.callback(t.options.afterBuildTicks,[t,t.ticks])||t.ticks,e)},beforeTickToLabelConversion:function(){U.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var e=this.options.ticks;this.ticks=this.ticks.map(e.userCallback||e.callback,this)},afterTickToLabelConversion:function(){U.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){U.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var e,t,r,n,i,a,o,s=this,l=s.options,u=l.ticks,d=s.getTicks().length,c=u.minRotation||0,h=u.maxRotation,f=c;!s._isVisible()||!u.display||c>=h||d<=1||!s.isHorizontal()?s.labelRotation=c:(t=(e=s._getLabelSizes()).widest.width,r=e.highest.height-e.highest.offset,n=Math.min(s.maxWidth,s.chart.width-t),t+6>(i=l.offset?s.maxWidth/d:n/(d-1))&&(i=n/(d-(l.offset?.5:1)),a=s.maxHeight-lr(l.gridLines)-u.padding-ur(l.scaleLabel),o=Math.sqrt(t*t+r*r),f=U.toDegrees(Math.min(Math.asin(Math.min((e.highest.height+6)/i,1)),Math.asin(Math.min(a/o,1))-Math.asin(r/o))),f=Math.max(c,Math.min(h,f))),s.labelRotation=f)},afterCalculateTickRotation:function(){U.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){U.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},r=e.chart,n=e.options,i=n.ticks,a=n.scaleLabel,o=n.gridLines,s=e._isVisible(),l="bottom"===n.position,u=e.isHorizontal();if(u?t.width=e.maxWidth:s&&(t.width=lr(o)+ur(a)),u?s&&(t.height=lr(o)+ur(a)):t.height=e.maxHeight,i.display&&s){var d=cr(i),c=e._getLabelSizes(),h=c.first,f=c.last,m=c.widest,p=c.highest,g=.4*d.minor.lineHeight,_=i.padding;if(u){var v=0!==e.labelRotation,y=U.toRadians(e.labelRotation),b=Math.cos(y),M=Math.sin(y),w=M*m.width+b*(p.height-(v?p.offset:0))+(v?0:g);t.height=Math.min(e.maxHeight,t.height+w+_);var L,T,x=e.getPixelForTick(0)-e.left,k=e.right-e.getPixelForTick(e.getTicks().length-1);v?(L=l?b*h.width+M*h.offset:M*(h.height-h.offset),T=l?M*(f.height-f.offset):b*f.width+M*f.offset):(L=h.width/2,T=f.width/2),e.paddingLeft=Math.max((L-x)*e.width/(e.width-x),0)+3,e.paddingRight=Math.max((T-k)*e.width/(e.width-k),0)+3}else{var S=i.mirror?0:m.width+_+g;t.width=Math.min(e.maxWidth,t.width+S),e.paddingTop=h.height/2,e.paddingBottom=f.height/2}}e.handleMargins(),u?(e.width=e._length=r.width-e.margins.left-e.margins.right,e.height=t.height):(e.width=t.width,e.height=e._length=r.height-e.margins.top-e.margins.bottom)},handleMargins:function(){var e=this;e.margins&&(e.margins.left=Math.max(e.paddingLeft,e.margins.left),e.margins.top=Math.max(e.paddingTop,e.margins.top),e.margins.right=Math.max(e.paddingRight,e.margins.right),e.margins.bottom=Math.max(e.paddingBottom,e.margins.bottom))},afterFit:function(){U.callback(this.options.afterFit,[this])},isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(nr(e))return NaN;if(("number"==typeof e||e instanceof Number)&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},_convertTicksToLabels:function(e){var t,r,n,i=this;for(i.ticks=e.map((function(e){return e.value})),i.beforeTickToLabelConversion(),t=i.convertTicksToLabels(e)||i.ticks,i.afterTickToLabelConversion(),r=0,n=e.length;r<n;++r)e[r].label=t[r];return t},_getLabelSizes:function(){var e=this,t=e._labelSizes;return t||(e._labelSizes=t=sr(e.ctx,cr(e.options.ticks),e.getTicks(),e.longestTextCache),e.longestLabelWidth=t.widest.width),t},_parseValue:function(e){var t,r,n,i;return rr(e)?(t=+this.getRightValue(e[0]),r=+this.getRightValue(e[1]),n=Math.min(t,r),i=Math.max(t,r)):(t=void 0,r=e=+this.getRightValue(e),n=e,i=e),{min:n,max:i,start:t,end:r}},_getScaleLabel:function(e){var t=this._parseValue(e);return void 0!==t.start?"["+t.start+", "+t.end+"]":+this.getRightValue(e)},getLabelForIndex:U.noop,getPixelForValue:U.noop,getValueForPixel:U.noop,getPixelForTick:function(e){var t=this.options.offset,r=this._ticks.length,n=1/Math.max(r-(t?0:1),1);return e<0||e>r-1?null:this.getPixelForDecimal(e*n+(t?n/2:0))},getPixelForDecimal:function(e){return this._reversePixels&&(e=1-e),this._startPixel+e*this._length},getDecimalForPixel:function(e){var t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this.min,t=this.max;return this.beginAtZero?0:e<0&&t<0?t:e>0&&t>0?e:0},_autoSkip:function(e){var t,r,n,i,a=this.options.ticks,o=this._length,s=a.maxTicksLimit||o/this._tickSize()+1,l=a.major.enabled?function(e){var t,r,n=[];for(t=0,r=e.length;t<r;t++)e[t].major&&n.push(t);return n}(e):[],u=l.length,d=l[0],c=l[u-1];if(u>s)return function(e,t,r){var n,i,a=0,o=t[0];for(r=Math.ceil(r),n=0;n<e.length;n++)i=e[n],n===o?(i._index=n,o=t[++a*r]):delete i.label}(e,l,u/s),hr(e);if(n=function(e,t,r,n){var i,a,o,s,l=function(e){var t,r,n=e.length;if(n<2)return!1;for(r=e[0],t=1;t<n;++t)if(e[t]-e[t-1]!==r)return!1;return r}(e),u=(t.length-1)/n;if(!l)return Math.max(u,1);for(o=0,s=(i=U.math._factorize(l)).length-1;o<s;o++)if((a=i[o])>u)return a;return Math.max(u,1)}(l,e,0,s),u>0){for(t=0,r=u-1;t<r;t++)fr(e,n,l[t],l[t+1]);return i=u>1?(c-d)/(u-1):null,fr(e,n,U.isNullOrUndef(i)?0:d-i,d),fr(e,n,c,U.isNullOrUndef(i)?e.length:c+i),hr(e)}return fr(e,n),hr(e)},_tickSize:function(){var e=this.options.ticks,t=U.toRadians(this.labelRotation),r=Math.abs(Math.cos(t)),n=Math.abs(Math.sin(t)),i=this._getLabelSizes(),a=e.autoSkipPadding||0,o=i?i.widest.width+a:0,s=i?i.highest.height+a:0;return this.isHorizontal()?s*r>o*n?o/r:s/n:s*n<o*r?s/r:o/n},_isVisible:function(){var e,t,r,n=this.chart,i=this.options.display;if("auto"!==i)return!!i;for(e=0,t=n.data.datasets.length;e<t;++e)if(n.isDatasetVisible(e)&&((r=n.getDatasetMeta(e)).xAxisID===this.id||r.yAxisID===this.id))return!0;return!1},_computeGridLineItems:function(e){var t,r,n,i,a,o,s,l,u,d,c,h,f,m,p,g,_,v=this,y=v.chart,b=v.options,M=b.gridLines,w=b.position,L=M.offsetGridLines,T=v.isHorizontal(),x=v._ticksToDraw,k=x.length+(L?1:0),S=lr(M),D=[],A=M.drawBorder?ar(M.lineWidth,0,0):0,E=A/2,Y=U._alignPixel,O=function(e){return Y(y,e,A)};for("top"===w?(t=O(v.bottom),s=v.bottom-S,u=t-E,c=O(e.top)+E,f=e.bottom):"bottom"===w?(t=O(v.top),c=e.top,f=O(e.bottom)-E,s=t+E,u=v.top+S):"left"===w?(t=O(v.right),o=v.right-S,l=t-E,d=O(e.left)+E,h=e.right):(t=O(v.left),d=e.left,h=O(e.right)-E,o=t+E,l=v.left+S),r=0;r<k;++r)n=x[r]||{},nr(n.label)&&r<x.length||(r===v.zeroLineIndex&&b.offset===L?(m=M.zeroLineWidth,p=M.zeroLineColor,g=M.zeroLineBorderDash||[],_=M.zeroLineBorderDashOffset||0):(m=ar(M.lineWidth,r,1),p=ar(M.color,r,"rgba(0,0,0,0.1)"),g=M.borderDash||[],_=M.borderDashOffset||0),void 0!==(i=or(v,n._index||r,L))&&(a=Y(y,i,m),T?o=l=d=h=a:s=u=c=f=a,D.push({tx1:o,ty1:s,tx2:l,ty2:u,x1:d,y1:c,x2:h,y2:f,width:m,color:p,borderDash:g,borderDashOffset:_})));return D.ticksLength=k,D.borderValue=t,D},_computeLabelItems:function(){var e,t,r,n,i,a,o,s,l,u,d,c,h=this,f=h.options,m=f.ticks,p=f.position,g=m.mirror,_=h.isHorizontal(),v=h._ticksToDraw,y=cr(m),b=m.padding,M=lr(f.gridLines),w=-U.toRadians(h.labelRotation),L=[];for("top"===p?(a=h.bottom-M-b,o=w?"left":"center"):"bottom"===p?(a=h.top+M+b,o=w?"right":"center"):"left"===p?(i=h.right-(g?0:M)-b,o=g?"left":"right"):(i=h.left+(g?0:M)+b,o=g?"right":"left"),e=0,t=v.length;e<t;++e)n=(r=v[e]).label,nr(n)||(s=h.getPixelForTick(r._index||e)+m.labelOffset,u=(l=r.major?y.major:y.minor).lineHeight,d=rr(n)?n.length:1,_?(i=s,c="top"===p?((w?1:.5)-d)*u:(w?0:.5)*u):(a=s,c=(1-d)*u/2),L.push({x:i,y:a,rotation:w,label:n,font:l,textOffset:c,textAlign:o}));return L},_drawGrid:function(e){var t=this,r=t.options.gridLines;if(r.display){var n,i,a,o,s,l=t.ctx,u=t.chart,d=U._alignPixel,c=r.drawBorder?ar(r.lineWidth,0,0):0,h=t._gridLineItems||(t._gridLineItems=t._computeGridLineItems(e));for(a=0,o=h.length;a<o;++a)n=(s=h[a]).width,i=s.color,n&&i&&(l.save(),l.lineWidth=n,l.strokeStyle=i,l.setLineDash&&(l.setLineDash(s.borderDash),l.lineDashOffset=s.borderDashOffset),l.beginPath(),r.drawTicks&&(l.moveTo(s.tx1,s.ty1),l.lineTo(s.tx2,s.ty2)),r.drawOnChartArea&&(l.moveTo(s.x1,s.y1),l.lineTo(s.x2,s.y2)),l.stroke(),l.restore());if(c){var f,m,p,g,_=c,v=ar(r.lineWidth,h.ticksLength-1,1),y=h.borderValue;t.isHorizontal()?(f=d(u,t.left,_)-_/2,m=d(u,t.right,v)+v/2,p=g=y):(p=d(u,t.top,_)-_/2,g=d(u,t.bottom,v)+v/2,f=m=y),l.lineWidth=c,l.strokeStyle=ar(r.color,0),l.beginPath(),l.moveTo(f,p),l.lineTo(m,g),l.stroke()}}},_drawLabels:function(){var e=this;if(e.options.ticks.display){var t,r,n,i,a,o,s,l,u=e.ctx,d=e._labelItems||(e._labelItems=e._computeLabelItems());for(t=0,n=d.length;t<n;++t){if(o=(a=d[t]).font,u.save(),u.translate(a.x,a.y),u.rotate(a.rotation),u.font=o.string,u.fillStyle=o.color,u.textBaseline="middle",u.textAlign=a.textAlign,s=a.label,l=a.textOffset,rr(s))for(r=0,i=s.length;r<i;++r)u.fillText(""+s[r],0,l),l+=o.lineHeight;else u.fillText(s,0,l);u.restore()}}},_drawTitle:function(){var e=this,t=e.ctx,r=e.options,n=r.scaleLabel;if(n.display){var i,a,o=ir(n.fontColor,F.global.defaultFontColor),s=U.options._parseFont(n),l=U.options.toPadding(n.padding),u=s.lineHeight/2,d=r.position,c=0;if(e.isHorizontal())i=e.left+e.width/2,a="bottom"===d?e.bottom-u-l.bottom:e.top+u+l.top;else{var h="left"===d;i=h?e.left+u+l.top:e.right-u-l.top,a=e.top+e.height/2,c=h?-.5*Math.PI:.5*Math.PI}t.save(),t.translate(i,a),t.rotate(c),t.textAlign="center",t.textBaseline="middle",t.fillStyle=o,t.font=s.string,t.fillText(n.labelString,0,0),t.restore()}},draw:function(e){this._isVisible()&&(this._drawGrid(e),this._drawTitle(),this._drawLabels())},_layers:function(){var e=this,t=e.options,r=t.ticks&&t.ticks.z||0,n=t.gridLines&&t.gridLines.z||0;return e._isVisible()&&r!==n&&e.draw===e._draw?[{z:n,draw:function(){e._drawGrid.apply(e,arguments),e._drawTitle.apply(e,arguments)}},{z:r,draw:function(){e._drawLabels.apply(e,arguments)}}]:[{z:r,draw:function(){e.draw.apply(e,arguments)}}]},_getMatchingVisibleMetas:function(e){var t=this,r=t.isHorizontal();return t.chart._getSortedVisibleDatasetMetas().filter((function(n){return(!e||n.type===e)&&(r?n.xAxisID===t.id:n.yAxisID===t.id)}))}});mr.prototype._draw=mr.prototype.draw;var pr=mr,gr=U.isNullOrUndef,_r=pr.extend({determineDataLimits:function(){var e,t=this,r=t._getLabels(),n=t.options.ticks,i=n.min,a=n.max,o=0,s=r.length-1;void 0!==i&&(e=r.indexOf(i))>=0&&(o=e),void 0!==a&&(e=r.indexOf(a))>=0&&(s=e),t.minIndex=o,t.maxIndex=s,t.min=r[o],t.max=r[s]},buildTicks:function(){var e=this._getLabels(),t=this.minIndex,r=this.maxIndex;this.ticks=0===t&&r===e.length-1?e:e.slice(t,r+1)},getLabelForIndex:function(e,t){var r=this.chart;return r.getDatasetMeta(t).controller._getValueScaleId()===this.id?this.getRightValue(r.data.datasets[t].data[e]):this._getLabels()[e]},_configure:function(){var e=this,t=e.options.offset,r=e.ticks;pr.prototype._configure.call(e),e.isHorizontal()||(e._reversePixels=!e._reversePixels),r&&(e._startValue=e.minIndex-(t?.5:0),e._valueRange=Math.max(r.length-(t?0:1),1))},getPixelForValue:function(e,t,r){var n,i,a,o=this;return gr(t)||gr(r)||(e=o.chart.data.datasets[r].data[t]),gr(e)||(n=o.isHorizontal()?e.x:e.y),(void 0!==n||void 0!==e&&isNaN(t))&&(i=o._getLabels(),e=U.valueOrDefault(n,e),t=-1!==(a=i.indexOf(e))?a:t,isNaN(t)&&(t=e)),o.getPixelForDecimal((t-o._startValue)/o._valueRange)},getPixelForTick:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e],e+this.minIndex)},getValueForPixel:function(e){var t=Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange);return Math.min(Math.max(t,0),this.ticks.length-1)},getBasePixel:function(){return this.bottom}}),vr={position:"bottom"};_r._defaults=vr;var yr=U.noop,br=U.isNullOrUndef,Mr=pr.extend({getRightValue:function(e){return"string"==typeof e?+e:pr.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;if(t.beginAtZero){var r=U.sign(e.min),n=U.sign(e.max);r<0&&n<0?e.max=0:r>0&&n>0&&(e.min=0)}var i=void 0!==t.min||void 0!==t.suggestedMin,a=void 0!==t.max||void 0!==t.suggestedMax;void 0!==t.min?e.min=t.min:void 0!==t.suggestedMin&&(null===e.min?e.min=t.suggestedMin:e.min=Math.min(e.min,t.suggestedMin)),void 0!==t.max?e.max=t.max:void 0!==t.suggestedMax&&(null===e.max?e.max=t.suggestedMax:e.max=Math.max(e.max,t.suggestedMax)),i!==a&&e.min>=e.max&&(i?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,t.beginAtZero||e.min--)},getTickLimit:function(){var e,t=this.options.ticks,r=t.stepSize,n=t.maxTicksLimit;return r?e=Math.ceil(this.max/r)-Math.floor(this.min/r)+1:(e=this._computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:yr,buildTicks:function(){var e=this,t=e.options.ticks,r=e.getTickLimit(),n={maxTicks:r=Math.max(2,r),min:t.min,max:t.max,precision:t.precision,stepSize:U.valueOrDefault(t.fixedStepSize,t.stepSize)},i=e.ticks=function(e,t){var r,n,i,a,o=[],s=e.stepSize,l=s||1,u=e.maxTicks-1,d=e.min,c=e.max,h=e.precision,f=t.min,m=t.max,p=U.niceNum((m-f)/u/l)*l;if(p<1e-14&&br(d)&&br(c))return[f,m];(a=Math.ceil(m/p)-Math.floor(f/p))>u&&(p=U.niceNum(a*p/u/l)*l),s||br(h)?r=Math.pow(10,U._decimalPlaces(p)):(r=Math.pow(10,h),p=Math.ceil(p*r)/r),n=Math.floor(f/p)*p,i=Math.ceil(m/p)*p,s&&(!br(d)&&U.almostWhole(d/p,p/1e3)&&(n=d),!br(c)&&U.almostWhole(c/p,p/1e3)&&(i=c)),a=(i-n)/p,a=U.almostEquals(a,Math.round(a),p/1e3)?Math.round(a):Math.ceil(a),n=Math.round(n*r)/r,i=Math.round(i*r)/r,o.push(br(d)?n:d);for(var g=1;g<a;++g)o.push(Math.round((n+g*p)*r)/r);return o.push(br(c)?i:c),o}(n,e);e.handleDirectionalChanges(),e.max=U.max(i),e.min=U.min(i),t.reverse?(i.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),pr.prototype.convertTicksToLabels.call(e)},_configure:function(){var e,t=this,r=t.getTicks(),n=t.min,i=t.max;pr.prototype._configure.call(t),t.options.offset&&r.length&&(n-=e=(i-n)/Math.max(r.length-1,1)/2,i+=e),t._startValue=n,t._endValue=i,t._valueRange=i-n}}),wr={position:"left",ticks:{callback:tr.formatters.linear}};function Lr(e,t,r,n){var i,a,o=e.options,s=function(e,t,r){var n=[r.type,void 0===t&&void 0===r.stack?r.index:"",r.stack].join(".");return void 0===e[n]&&(e[n]={pos:[],neg:[]}),e[n]}(t,o.stacked,r),l=s.pos,u=s.neg,d=n.length;for(i=0;i<d;++i)a=e._parseValue(n[i]),isNaN(a.min)||isNaN(a.max)||r.data[i].hidden||(l[i]=l[i]||0,u[i]=u[i]||0,o.relativePoints?l[i]=100:a.min<0||a.max<0?u[i]+=a.min:l[i]+=a.max)}function Tr(e,t,r){var n,i,a=r.length;for(n=0;n<a;++n)i=e._parseValue(r[n]),isNaN(i.min)||isNaN(i.max)||t.data[n].hidden||(e.min=Math.min(e.min,i.min),e.max=Math.max(e.max,i.max))}var xr=Mr.extend({determineDataLimits:function(){var e,t,r,n,i=this,a=i.options,o=i.chart.data.datasets,s=i._getMatchingVisibleMetas(),l=a.stacked,u={},d=s.length;if(i.min=Number.POSITIVE_INFINITY,i.max=Number.NEGATIVE_INFINITY,void 0===l)for(e=0;!l&&e<d;++e)l=void 0!==(t=s[e]).stack;for(e=0;e<d;++e)r=o[(t=s[e]).index].data,l?Lr(i,u,t,r):Tr(i,t,r);U.each(u,(function(e){n=e.pos.concat(e.neg),i.min=Math.min(i.min,U.min(n)),i.max=Math.max(i.max,U.max(n))})),i.min=U.isFinite(i.min)&&!isNaN(i.min)?i.min:0,i.max=U.isFinite(i.max)&&!isNaN(i.max)?i.max:1,i.handleTickRangeOptions()},_computeTickLimit:function(){var e;return this.isHorizontal()?Math.ceil(this.width/40):(e=U.options._parseFont(this.options.ticks),Math.ceil(this.height/e.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForValue:function(e){return this.getPixelForDecimal((+this.getRightValue(e)-this._startValue)/this._valueRange)},getValueForPixel:function(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange},getPixelForTick:function(e){var t=this.ticksAsNumbers;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])}}),kr=wr;xr._defaults=kr;var Sr=U.valueOrDefault,Dr=U.math.log10,Ar={position:"left",ticks:{callback:tr.formatters.logarithmic}};function Er(e,t){return U.isFinite(e)&&e>=0?e:t}var Yr=pr.extend({determineDataLimits:function(){var e,t,r,n,i,a,o=this,s=o.options,l=o.chart,u=l.data.datasets,d=o.isHorizontal();function c(e){return d?e.xAxisID===o.id:e.yAxisID===o.id}o.min=Number.POSITIVE_INFINITY,o.max=Number.NEGATIVE_INFINITY,o.minNotZero=Number.POSITIVE_INFINITY;var h=s.stacked;if(void 0===h)for(e=0;e<u.length;e++)if(t=l.getDatasetMeta(e),l.isDatasetVisible(e)&&c(t)&&void 0!==t.stack){h=!0;break}if(s.stacked||h){var f={};for(e=0;e<u.length;e++){var m=[(t=l.getDatasetMeta(e)).type,void 0===s.stacked&&void 0===t.stack?e:"",t.stack].join(".");if(l.isDatasetVisible(e)&&c(t))for(void 0===f[m]&&(f[m]=[]),i=0,a=(n=u[e].data).length;i<a;i++){var p=f[m];r=o._parseValue(n[i]),isNaN(r.min)||isNaN(r.max)||t.data[i].hidden||r.min<0||r.max<0||(p[i]=p[i]||0,p[i]+=r.max)}}U.each(f,(function(e){if(e.length>0){var t=U.min(e),r=U.max(e);o.min=Math.min(o.min,t),o.max=Math.max(o.max,r)}}))}else for(e=0;e<u.length;e++)if(t=l.getDatasetMeta(e),l.isDatasetVisible(e)&&c(t))for(i=0,a=(n=u[e].data).length;i<a;i++)r=o._parseValue(n[i]),isNaN(r.min)||isNaN(r.max)||t.data[i].hidden||r.min<0||r.max<0||(o.min=Math.min(r.min,o.min),o.max=Math.max(r.max,o.max),0!==r.min&&(o.minNotZero=Math.min(r.min,o.minNotZero)));o.min=U.isFinite(o.min)?o.min:null,o.max=U.isFinite(o.max)?o.max:null,o.minNotZero=U.isFinite(o.minNotZero)?o.minNotZero:null,this.handleTickRangeOptions()},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;e.min=Er(t.min,e.min),e.max=Er(t.max,e.max),e.min===e.max&&(0!==e.min&&null!==e.min?(e.min=Math.pow(10,Math.floor(Dr(e.min))-1),e.max=Math.pow(10,Math.floor(Dr(e.max))+1)):(e.min=1,e.max=10)),null===e.min&&(e.min=Math.pow(10,Math.floor(Dr(e.max))-1)),null===e.max&&(e.max=0!==e.min?Math.pow(10,Math.floor(Dr(e.min))+1):10),null===e.minNotZero&&(e.min>0?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor(Dr(e.max))):e.minNotZero=1)},buildTicks:function(){var e=this,t=e.options.ticks,r=!e.isHorizontal(),n={min:Er(t.min),max:Er(t.max)},i=e.ticks=function(e,t){var r,n,i=[],a=Sr(e.min,Math.pow(10,Math.floor(Dr(t.min)))),o=Math.floor(Dr(t.max)),s=Math.ceil(t.max/Math.pow(10,o));0===a?(r=Math.floor(Dr(t.minNotZero)),n=Math.floor(t.minNotZero/Math.pow(10,r)),i.push(a),a=n*Math.pow(10,r)):(r=Math.floor(Dr(a)),n=Math.floor(a/Math.pow(10,r)));var l=r<0?Math.pow(10,Math.abs(r)):1;do{i.push(a),10==++n&&(n=1,l=++r>=0?1:l),a=Math.round(n*Math.pow(10,r)*l)/l}while(r<o||r===o&&n<s);var u=Sr(e.max,a);return i.push(u),i}(n,e);e.max=U.max(i),e.min=U.min(i),t.reverse?(r=!r,e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),r&&i.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),pr.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForTick:function(e){var t=this.tickValues;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])},_getFirstTickValue:function(e){var t=Math.floor(Dr(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},_configure:function(){var e=this,t=e.min,r=0;pr.prototype._configure.call(e),0===t&&(t=e._getFirstTickValue(e.minNotZero),r=Sr(e.options.ticks.fontSize,F.global.defaultFontSize)/e._length),e._startValue=Dr(t),e._valueOffset=r,e._valueRange=(Dr(e.max)-Dr(t))/(1-r)},getPixelForValue:function(e){var t=this,r=0;return(e=+t.getRightValue(e))>t.min&&e>0&&(r=(Dr(e)-t._startValue)/t._valueRange+t._valueOffset),t.getPixelForDecimal(r)},getValueForPixel:function(e){var t=this,r=t.getDecimalForPixel(e);return 0===r&&0===t.min?0:Math.pow(10,t._startValue+(r-t._valueOffset)*t._valueRange)}}),Or=Ar;Yr._defaults=Or;var Pr=U.valueOrDefault,Rr=U.valueAtIndexOrDefault,Cr=U.options.resolve,Ir={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:tr.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}};function Fr(e){var t=e.ticks;return t.display&&e.display?Pr(t.fontSize,F.global.defaultFontSize)+2*t.backdropPaddingY:0}function jr(e,t,r,n,i){return e===n||e===i?{start:t-r/2,end:t+r/2}:e<n||e>i?{start:t-r,end:t}:{start:t,end:t+r}}function Nr(e){return 0===e||180===e?"center":e<180?"left":"right"}function Hr(e,t,r,n){var i,a,o=r.y+n/2;if(U.isArray(t))for(i=0,a=t.length;i<a;++i)e.fillText(t[i],r.x,o),o+=n;else e.fillText(t,r.x,o)}function Br(e,t,r){90===e||270===e?r.y-=t.h/2:(e>270||e<90)&&(r.y-=t.h)}function Ur(e){return U.isNumber(e)?e:0}var Wr=Mr.extend({setDimensions:function(){var e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=Fr(e.options)/2,e.xCenter=Math.floor(e.width/2),e.yCenter=Math.floor((e.height-e.paddingTop)/2),e.drawingArea=Math.min(e.height-e.paddingTop,e.width)/2},determineDataLimits:function(){var e=this,t=e.chart,r=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;U.each(t.data.datasets,(function(i,a){if(t.isDatasetVisible(a)){var o=t.getDatasetMeta(a);U.each(i.data,(function(t,i){var a=+e.getRightValue(t);isNaN(a)||o.data[i].hidden||(r=Math.min(a,r),n=Math.max(a,n))}))}})),e.min=r===Number.POSITIVE_INFINITY?0:r,e.max=n===Number.NEGATIVE_INFINITY?0:n,e.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/Fr(this.options))},convertTicksToLabels:function(){var e=this;Mr.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map((function(){var t=U.callback(e.options.pointLabels.callback,arguments,e);return t||0===t?t:""}))},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function(){var e=this.options;e.display&&e.pointLabels.display?function(e){var t,r,n,i=U.options._parseFont(e.options.pointLabels),a={l:0,r:e.width,t:0,b:e.height-e.paddingTop},o={};e.ctx.font=i.string,e._pointLabelSizes=[];var s,l,u,d=e.chart.data.labels.length;for(t=0;t<d;t++){n=e.getPointPosition(t,e.drawingArea+5),s=e.ctx,l=i.lineHeight,u=e.pointLabels[t],r=U.isArray(u)?{w:U.longestText(s,s.font,u),h:u.length*l}:{w:s.measureText(u).width,h:l},e._pointLabelSizes[t]=r;var c=e.getIndexAngle(t),h=U.toDegrees(c)%360,f=jr(h,n.x,r.w,0,180),m=jr(h,n.y,r.h,90,270);f.start<a.l&&(a.l=f.start,o.l=c),f.end>a.r&&(a.r=f.end,o.r=c),m.start<a.t&&(a.t=m.start,o.t=c),m.end>a.b&&(a.b=m.end,o.b=c)}e.setReductions(e.drawingArea,a,o)}(this):this.setCenterPoint(0,0,0,0)},setReductions:function(e,t,r){var n=this,i=t.l/Math.sin(r.l),a=Math.max(t.r-n.width,0)/Math.sin(r.r),o=-t.t/Math.cos(r.t),s=-Math.max(t.b-(n.height-n.paddingTop),0)/Math.cos(r.b);i=Ur(i),a=Ur(a),o=Ur(o),s=Ur(s),n.drawingArea=Math.min(Math.floor(e-(i+a)/2),Math.floor(e-(o+s)/2)),n.setCenterPoint(i,a,o,s)},setCenterPoint:function(e,t,r,n){var i=this,a=i.width-t-i.drawingArea,o=e+i.drawingArea,s=r+i.drawingArea,l=i.height-i.paddingTop-n-i.drawingArea;i.xCenter=Math.floor((o+a)/2+i.left),i.yCenter=Math.floor((s+l)/2+i.top+i.paddingTop)},getIndexAngle:function(e){var t=this.chart,r=(e*(360/t.data.labels.length)+((t.options||{}).startAngle||0))%360;return(r<0?r+360:r)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this;if(U.isNullOrUndef(e))return NaN;var r=t.drawingArea/(t.max-t.min);return t.options.ticks.reverse?(t.max-e)*r:(e-t.min)*r},getPointPosition:function(e,t){var r=this.getIndexAngle(e)-Math.PI/2;return{x:Math.cos(r)*t+this.xCenter,y:Math.sin(r)*t+this.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(e){var t=this.min,r=this.max;return this.getPointPositionForValue(e||0,this.beginAtZero?0:t<0&&r<0?r:t>0&&r>0?t:0)},_drawGrid:function(){var e,t,r,n=this,i=n.ctx,a=n.options,o=a.gridLines,s=a.angleLines,l=Pr(s.lineWidth,o.lineWidth),u=Pr(s.color,o.color);if(a.pointLabels.display&&function(e){var t=e.ctx,r=e.options,n=r.pointLabels,i=Fr(r),a=e.getDistanceFromCenterForValue(r.ticks.reverse?e.min:e.max),o=U.options._parseFont(n);t.save(),t.font=o.string,t.textBaseline="middle";for(var s=e.chart.data.labels.length-1;s>=0;s--){var l=0===s?i/2:0,u=e.getPointPosition(s,a+l+5),d=Rr(n.fontColor,s,F.global.defaultFontColor);t.fillStyle=d;var c=e.getIndexAngle(s),h=U.toDegrees(c);t.textAlign=Nr(h),Br(h,e._pointLabelSizes[s],u),Hr(t,e.pointLabels[s],u,o.lineHeight)}t.restore()}(n),o.display&&U.each(n.ticks,(function(e,r){0!==r&&(t=n.getDistanceFromCenterForValue(n.ticksAsNumbers[r]),function(e,t,r,n){var i,a=e.ctx,o=t.circular,s=e.chart.data.labels.length,l=Rr(t.color,n-1),u=Rr(t.lineWidth,n-1);if((o||s)&&l&&u){if(a.save(),a.strokeStyle=l,a.lineWidth=u,a.setLineDash&&(a.setLineDash(t.borderDash||[]),a.lineDashOffset=t.borderDashOffset||0),a.beginPath(),o)a.arc(e.xCenter,e.yCenter,r,0,2*Math.PI);else{i=e.getPointPosition(0,r),a.moveTo(i.x,i.y);for(var d=1;d<s;d++)i=e.getPointPosition(d,r),a.lineTo(i.x,i.y)}a.closePath(),a.stroke(),a.restore()}}(n,o,t,r))})),s.display&&l&&u){for(i.save(),i.lineWidth=l,i.strokeStyle=u,i.setLineDash&&(i.setLineDash(Cr([s.borderDash,o.borderDash,[]])),i.lineDashOffset=Cr([s.borderDashOffset,o.borderDashOffset,0])),e=n.chart.data.labels.length-1;e>=0;e--)t=n.getDistanceFromCenterForValue(a.ticks.reverse?n.min:n.max),r=n.getPointPosition(e,t),i.beginPath(),i.moveTo(n.xCenter,n.yCenter),i.lineTo(r.x,r.y),i.stroke();i.restore()}},_drawLabels:function(){var e=this,t=e.ctx,r=e.options.ticks;if(r.display){var n,i,a=e.getIndexAngle(0),o=U.options._parseFont(r),s=Pr(r.fontColor,F.global.defaultFontColor);t.save(),t.font=o.string,t.translate(e.xCenter,e.yCenter),t.rotate(a),t.textAlign="center",t.textBaseline="middle",U.each(e.ticks,(function(a,l){(0!==l||r.reverse)&&(n=e.getDistanceFromCenterForValue(e.ticksAsNumbers[l]),r.showLabelBackdrop&&(i=t.measureText(a).width,t.fillStyle=r.backdropColor,t.fillRect(-i/2-r.backdropPaddingX,-n-o.size/2-r.backdropPaddingY,i+2*r.backdropPaddingX,o.size+2*r.backdropPaddingY)),t.fillStyle=s,t.fillText(a,0,-n))})),t.restore()}},_drawTitle:U.noop}),zr=Ir;Wr._defaults=zr;var Vr=U._deprecated,Gr=U.options.resolve,Kr=U.valueOrDefault,qr=Number.MIN_SAFE_INTEGER||-9007199254740991,Jr=Number.MAX_SAFE_INTEGER||9007199254740991,Xr={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},$r=Object.keys(Xr);function Zr(e,t){return e-t}function Qr(e){return U.valueOrDefault(e.time.min,e.ticks.min)}function en(e){return U.valueOrDefault(e.time.max,e.ticks.max)}function tn(e,t,r,n){var i=function(e,t,r){for(var n,i,a,o=0,s=e.length-1;o>=0&&o<=s;){if(i=e[(n=o+s>>1)-1]||null,a=e[n],!i)return{lo:null,hi:a};if(a[t]<r)o=n+1;else{if(!(i[t]>r))return{lo:i,hi:a};s=n-1}}return{lo:a,hi:null}}(e,t,r),a=i.lo?i.hi?i.lo:e[e.length-2]:e[0],o=i.lo?i.hi?i.hi:e[e.length-1]:e[1],s=o[t]-a[t],l=s?(r-a[t])/s:0,u=(o[n]-a[n])*l;return a[n]+u}function rn(e,t){var r=e._adapter,n=e.options.time,i=n.parser,a=i||n.format,o=t;return"function"==typeof i&&(o=i(o)),U.isFinite(o)||(o="string"==typeof a?r.parse(o,a):r.parse(o)),null!==o?+o:(i||"function"!=typeof a||(o=a(t),U.isFinite(o)||(o=r.parse(o))),o)}function nn(e,t){if(U.isNullOrUndef(t))return null;var r=e.options.time,n=rn(e,e.getRightValue(t));return null===n||r.round&&(n=+e._adapter.startOf(n,r.round)),n}function an(e,t,r,n){var i,a,o,s=$r.length;for(i=$r.indexOf(e);i<s-1;++i)if(o=(a=Xr[$r[i]]).steps?a.steps:Jr,a.common&&Math.ceil((r-t)/(o*a.size))<=n)return $r[i];return $r[s-1]}function on(e,t,r){var n,i,a=[],o={},s=t.length;for(n=0;n<s;++n)o[i=t[n]]=n,a.push({value:i,major:!1});return 0!==s&&r?function(e,t,r,n){var i,a,o=e._adapter,s=+o.startOf(t[0].value,n),l=t[t.length-1].value;for(i=s;i<=l;i=+o.add(i,1,n))(a=r[i])>=0&&(t[a].major=!0);return t}(e,a,o,r):a}var sn=pr.extend({initialize:function(){this.mergeTicksOptions(),pr.prototype.initialize.call(this)},update:function(){var e=this,t=e.options,r=t.time||(t.time={}),n=e._adapter=new er._date(t.adapters.date);return Vr("time scale",r.format,"time.format","time.parser"),Vr("time scale",r.min,"time.min","ticks.min"),Vr("time scale",r.max,"time.max","ticks.max"),U.mergeIf(r.displayFormats,n.formats()),pr.prototype.update.apply(e,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),pr.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e,t,r,n,i,a,o,s=this,l=s.chart,u=s._adapter,d=s.options,c=d.time.unit||"day",h=Jr,f=qr,m=[],p=[],g=[],_=s._getLabels();for(e=0,r=_.length;e<r;++e)g.push(nn(s,_[e]));for(e=0,r=(l.data.datasets||[]).length;e<r;++e)if(l.isDatasetVisible(e))if(i=l.data.datasets[e].data,U.isObject(i[0]))for(p[e]=[],t=0,n=i.length;t<n;++t)a=nn(s,i[t]),m.push(a),p[e][t]=a;else p[e]=g.slice(0),o||(m=m.concat(g),o=!0);else p[e]=[];g.length&&(h=Math.min(h,g[0]),f=Math.max(f,g[g.length-1])),m.length&&(m=r>1?function(e){var t,r,n,i={},a=[];for(t=0,r=e.length;t<r;++t)i[n=e[t]]||(i[n]=!0,a.push(n));return a}(m).sort(Zr):m.sort(Zr),h=Math.min(h,m[0]),f=Math.max(f,m[m.length-1])),h=nn(s,Qr(d))||h,f=nn(s,en(d))||f,h=h===Jr?+u.startOf(Date.now(),c):h,f=f===qr?+u.endOf(Date.now(),c)+1:f,s.min=Math.min(h,f),s.max=Math.max(h+1,f),s._table=[],s._timestamps={data:m,datasets:p,labels:g}},buildTicks:function(){var e,t,r,n=this,i=n.min,a=n.max,o=n.options,s=o.ticks,l=o.time,u=n._timestamps,d=[],c=n.getLabelCapacity(i),h=s.source,f=o.distribution;for(u="data"===h||"auto"===h&&"series"===f?u.data:"labels"===h?u.labels:function(e,t,r,n){var i,a=e._adapter,o=e.options,s=o.time,l=s.unit||an(s.minUnit,t,r,n),u=Gr([s.stepSize,s.unitStepSize,1]),d="week"===l&&s.isoWeekday,c=t,h=[];if(d&&(c=+a.startOf(c,"isoWeek",d)),c=+a.startOf(c,d?"day":l),a.diff(r,t,l)>1e5*u)throw t+" and "+r+" are too far apart with stepSize of "+u+" "+l;for(i=c;i<r;i=+a.add(i,u,l))h.push(i);return i!==r&&"ticks"!==o.bounds||h.push(i),h}(n,i,a,c),"ticks"===o.bounds&&u.length&&(i=u[0],a=u[u.length-1]),i=nn(n,Qr(o))||i,a=nn(n,en(o))||a,e=0,t=u.length;e<t;++e)(r=u[e])>=i&&r<=a&&d.push(r);return n.min=i,n.max=a,n._unit=l.unit||(s.autoSkip?an(l.minUnit,n.min,n.max,c):function(e,t,r,n,i){var a,o;for(a=$r.length-1;a>=$r.indexOf(r);a--)if(o=$r[a],Xr[o].common&&e._adapter.diff(i,n,o)>=t-1)return o;return $r[r?$r.indexOf(r):0]}(n,d.length,l.minUnit,n.min,n.max)),n._majorUnit=s.major.enabled&&"year"!==n._unit?function(e){for(var t=$r.indexOf(e)+1,r=$r.length;t<r;++t)if(Xr[$r[t]].common)return $r[t]}(n._unit):void 0,n._table=function(e,t,r,n){if("linear"===n||!e.length)return[{time:t,pos:0},{time:r,pos:1}];var i,a,o,s,l,u=[],d=[t];for(i=0,a=e.length;i<a;++i)(s=e[i])>t&&s<r&&d.push(s);for(d.push(r),i=0,a=d.length;i<a;++i)l=d[i+1],o=d[i-1],s=d[i],void 0!==o&&void 0!==l&&Math.round((l+o)/2)===s||u.push({time:s,pos:i/(a-1)});return u}(n._timestamps.data,i,a,f),n._offsets=function(e,t,r,n,i){var a,o,s=0,l=0;return i.offset&&t.length&&(a=tn(e,"time",t[0],"pos"),s=1===t.length?1-a:(tn(e,"time",t[1],"pos")-a)/2,o=tn(e,"time",t[t.length-1],"pos"),l=1===t.length?o:(o-tn(e,"time",t[t.length-2],"pos"))/2),{start:s,end:l,factor:1/(s+1+l)}}(n._table,d,0,0,o),s.reverse&&d.reverse(),on(n,d,n._majorUnit)},getLabelForIndex:function(e,t){var r=this,n=r._adapter,i=r.chart.data,a=r.options.time,o=i.labels&&e<i.labels.length?i.labels[e]:"",s=i.datasets[t].data[e];return U.isObject(s)&&(o=r.getRightValue(s)),a.tooltipFormat?n.format(rn(r,o),a.tooltipFormat):"string"==typeof o?o:n.format(rn(r,o),a.displayFormats.datetime)},tickFormatFunction:function(e,t,r,n){var i=this._adapter,a=this.options,o=a.time.displayFormats,s=o[this._unit],l=this._majorUnit,u=o[l],d=r[t],c=a.ticks,h=l&&u&&d&&d.major,f=i.format(e,n||(h?u:s)),m=h?c.major:c.minor,p=Gr([m.callback,m.userCallback,c.callback,c.userCallback]);return p?p(f,t,r):f},convertTicksToLabels:function(e){var t,r,n=[];for(t=0,r=e.length;t<r;++t)n.push(this.tickFormatFunction(e[t].value,t,e));return n},getPixelForOffset:function(e){var t=this._offsets,r=tn(this._table,"time",e,"pos");return this.getPixelForDecimal((t.start+r)*t.factor)},getPixelForValue:function(e,t,r){var n=null;if(void 0!==t&&void 0!==r&&(n=this._timestamps.datasets[r][t]),null===n&&(n=nn(this,e)),null!==n)return this.getPixelForOffset(n)},getPixelForTick:function(e){var t=this.getTicks();return e>=0&&e<t.length?this.getPixelForOffset(t[e].value):null},getValueForPixel:function(e){var t=this._offsets,r=this.getDecimalForPixel(e)/t.factor-t.end,n=tn(this._table,"pos",r,"time");return this._adapter._create(n)},_getLabelSize:function(e){var t=this.options.ticks,r=this.ctx.measureText(e).width,n=U.toRadians(this.isHorizontal()?t.maxRotation:t.minRotation),i=Math.cos(n),a=Math.sin(n),o=Kr(t.fontSize,F.global.defaultFontSize);return{w:r*i+o*a,h:r*a+o*i}},getLabelWidth:function(e){return this._getLabelSize(e).w},getLabelCapacity:function(e){var t=this,r=t.options.time,n=r.displayFormats,i=n[r.unit]||n.millisecond,a=t.tickFormatFunction(e,0,on(t,[e],t._majorUnit),i),o=t._getLabelSize(a),s=Math.floor(t.isHorizontal()?t.width/o.w:t.height/o.h);return t.options.offset&&s--,s>0?s:1}}),ln={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}};sn._defaults=ln;var un={category:_r,linear:xr,logarithmic:Yr,radialLinear:Wr,time:sn},dn={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};er._date.override("function"==typeof e?{_id:"moment",formats:function(){return dn},parse:function(t,r){return"string"==typeof t&&"string"==typeof r?t=e(t,r):t instanceof e||(t=e(t)),t.isValid()?t.valueOf():null},format:function(t,r){return e(t).format(r)},add:function(t,r,n){return e(t).add(r,n).valueOf()},diff:function(t,r,n){return e(t).diff(e(r),n)},startOf:function(t,r,n){return t=e(t),"isoWeek"===r?t.isoWeekday(n).valueOf():t.startOf(r).valueOf()},endOf:function(t,r){return e(t).endOf(r).valueOf()},_create:function(t){return e(t)}}:{}),F._set("global",{plugins:{filler:{propagate:!0}}});var cn={dataset:function(e){var t=e.fill,r=e.chart,n=r.getDatasetMeta(t),i=n&&r.isDatasetVisible(t)&&n.dataset._children||[],a=i.length||0;return a?function(e,t){return t<a&&i[t]._view||null}:null},boundary:function(e){var t=e.boundary,r=t?t.x:null,n=t?t.y:null;return U.isArray(t)?function(e,r){return t[r]}:function(e){return{x:null===r?e.x:r,y:null===n?e.y:n}}}};function hn(e,t,r){var n,i=e._model||{},a=i.fill;if(void 0===a&&(a=!!i.backgroundColor),!1===a||null===a)return!1;if(!0===a)return"origin";if(n=parseFloat(a,10),isFinite(n)&&Math.floor(n)===n)return"-"!==a[0]&&"+"!==a[0]||(n=t+n),!(n===t||n<0||n>=r)&&n;switch(a){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return a;default:return!1}}function fn(e){return(e.el._scale||{}).getPointPositionForValue?function(e){var t,r,n,i,a,o=e.el._scale,s=o.options,l=o.chart.data.labels.length,u=e.fill,d=[];if(!l)return null;for(t=s.ticks.reverse?o.max:o.min,r=s.ticks.reverse?o.min:o.max,n=o.getPointPositionForValue(0,t),i=0;i<l;++i)a="start"===u||"end"===u?o.getPointPositionForValue(i,"start"===u?t:r):o.getBasePosition(i),s.gridLines.circular&&(a.cx=n.x,a.cy=n.y,a.angle=o.getIndexAngle(i)-Math.PI/2),d.push(a);return d}(e):function(e){var t,r=e.el._model||{},n=e.el._scale||{},i=e.fill,a=null;if(isFinite(i))return null;if("start"===i?a=void 0===r.scaleBottom?n.bottom:r.scaleBottom:"end"===i?a=void 0===r.scaleTop?n.top:r.scaleTop:void 0!==r.scaleZero?a=r.scaleZero:n.getBasePixel&&(a=n.getBasePixel()),null!=a){if(void 0!==a.x&&void 0!==a.y)return a;if(U.isFinite(a))return{x:(t=n.isHorizontal())?a:null,y:t?null:a}}return null}(e)}function mn(e,t,r){var n,i=e[t].fill,a=[t];if(!r)return i;for(;!1!==i&&-1===a.indexOf(i);){if(!isFinite(i))return i;if(!(n=e[i]))return!1;if(n.visible)return i;a.push(i),i=n.fill}return!1}function pn(e){var t=e.fill,r="dataset";return!1===t?null:(isFinite(t)||(r="boundary"),cn[r](e))}function gn(e){return e&&!e.skip}function _n(e,t,r,n,i){var a,o,s,l;if(n&&i){for(e.moveTo(t[0].x,t[0].y),a=1;a<n;++a)U.canvas.lineTo(e,t[a-1],t[a]);if(void 0===r[0].angle)for(e.lineTo(r[i-1].x,r[i-1].y),a=i-1;a>0;--a)U.canvas.lineTo(e,r[a],r[a-1],!0);else for(o=r[0].cx,s=r[0].cy,l=Math.sqrt(Math.pow(r[0].x-o,2)+Math.pow(r[0].y-s,2)),a=i-1;a>0;--a)e.arc(o,s,l,r[a].angle,r[a-1].angle,!0)}}function vn(e,t,r,n,i,a){var o,s,l,u,d,c,h,f,m=t.length,p=n.spanGaps,g=[],_=[],v=0,y=0;for(e.beginPath(),o=0,s=m;o<s;++o)d=r(u=t[l=o%m]._view,l,n),c=gn(u),h=gn(d),a&&void 0===f&&c&&(s=m+(f=o+1)),c&&h?(v=g.push(u),y=_.push(d)):v&&y&&(p?(c&&g.push(u),h&&_.push(d)):(_n(e,g,_,v,y),v=y=0,g=[],_=[]));_n(e,g,_,v,y),e.closePath(),e.fillStyle=i,e.fill()}var yn={id:"filler",afterDatasetsUpdate:function(e,t){var r,n,i,a,o=(e.data.datasets||[]).length,s=t.propagate,l=[];for(n=0;n<o;++n)a=null,(i=(r=e.getDatasetMeta(n)).dataset)&&i._model&&i instanceof we.Line&&(a={visible:e.isDatasetVisible(n),fill:hn(i,n,o),chart:e,el:i}),r.$filler=a,l.push(a);for(n=0;n<o;++n)(a=l[n])&&(a.fill=mn(l,n,s),a.boundary=fn(a),a.mapper=pn(a))},beforeDatasetsDraw:function(e){var t,r,n,i,a,o,s,l=e._getSortedVisibleDatasetMetas(),u=e.ctx;for(r=l.length-1;r>=0;--r)(t=l[r].$filler)&&t.visible&&(i=(n=t.el)._view,a=n._children||[],o=t.mapper,s=i.backgroundColor||F.global.defaultColor,o&&s&&a.length&&(U.canvas.clipArea(u,e.chartArea),vn(u,a,o,i,s,n._loop),U.canvas.unclipArea(u)))}},bn=U.rtl.getRtlAdapter,Mn=U.noop,wn=U.valueOrDefault;function Ln(e,t){return e.usePointStyle&&e.boxWidth>t?t:e.boxWidth}F._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var r=t.datasetIndex,n=this.chart,i=n.getDatasetMeta(r);i.hidden=null===i.hidden?!n.data.datasets[r].hidden:null,n.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var t=e.data.datasets,r=e.options.legend||{},n=r.labels&&r.labels.usePointStyle;return e._getSortedDatasetMetas().map((function(r){var i=r.controller.getStyle(n?0:void 0);return{text:t[r.index].label,fillStyle:i.backgroundColor,hidden:!e.isDatasetVisible(r.index),lineCap:i.borderCapStyle,lineDash:i.borderDash,lineDashOffset:i.borderDashOffset,lineJoin:i.borderJoinStyle,lineWidth:i.borderWidth,strokeStyle:i.borderColor,pointStyle:i.pointStyle,rotation:i.rotation,datasetIndex:r.index}}),this)}}},legendCallback:function(e){var t,r,n,i=document.createElement("ul"),a=e.data.datasets;for(i.setAttribute("class",e.id+"-legend"),t=0,r=a.length;t<r;t++)(n=i.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=a[t].backgroundColor,a[t].label&&n.appendChild(document.createTextNode(a[t].label));return i.outerHTML}});var Tn=J.extend({initialize:function(e){U.extend(this,e),this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1},beforeUpdate:Mn,update:function(e,t,r){var n=this;return n.beforeUpdate(),n.maxWidth=e,n.maxHeight=t,n.margins=r,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeBuildLabels(),n.buildLabels(),n.afterBuildLabels(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate(),n.minSize},afterUpdate:Mn,beforeSetDimensions:Mn,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:Mn,beforeBuildLabels:Mn,buildLabels:function(){var e=this,t=e.options.labels||{},r=U.callback(t.generateLabels,[e.chart],e)||[];t.filter&&(r=r.filter((function(r){return t.filter(r,e.chart.data)}))),e.options.reverse&&r.reverse(),e.legendItems=r},afterBuildLabels:Mn,beforeFit:Mn,fit:function(){var e=this,t=e.options,r=t.labels,n=t.display,i=e.ctx,a=U.options._parseFont(r),o=a.size,s=e.legendHitBoxes=[],l=e.minSize,u=e.isHorizontal();if(u?(l.width=e.maxWidth,l.height=n?10:0):(l.width=n?10:0,l.height=e.maxHeight),n){if(i.font=a.string,u){var d=e.lineWidths=[0],c=0;i.textAlign="left",i.textBaseline="middle",U.each(e.legendItems,(function(e,t){var n=Ln(r,o)+o/2+i.measureText(e.text).width;(0===t||d[d.length-1]+n+2*r.padding>l.width)&&(c+=o+r.padding,d[d.length-(t>0?0:1)]=0),s[t]={left:0,top:0,width:n,height:o},d[d.length-1]+=n+r.padding})),l.height+=c}else{var h=r.padding,f=e.columnWidths=[],m=e.columnHeights=[],p=r.padding,g=0,_=0;U.each(e.legendItems,(function(e,t){var n=Ln(r,o)+o/2+i.measureText(e.text).width;t>0&&_+o+2*h>l.height&&(p+=g+r.padding,f.push(g),m.push(_),g=0,_=0),g=Math.max(g,n),_+=o+h,s[t]={left:0,top:0,width:n,height:o}})),p+=g,f.push(g),m.push(_),l.width+=p}e.width=l.width,e.height=l.height}else e.width=l.width=e.height=l.height=0},afterFit:Mn,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,r=t.labels,n=F.global,i=n.defaultColor,a=n.elements.line,o=e.height,s=e.columnHeights,l=e.width,u=e.lineWidths;if(t.display){var d,c=bn(t.rtl,e.left,e.minSize.width),h=e.ctx,f=wn(r.fontColor,n.defaultFontColor),m=U.options._parseFont(r),p=m.size;h.textAlign=c.textAlign("left"),h.textBaseline="middle",h.lineWidth=.5,h.strokeStyle=f,h.fillStyle=f,h.font=m.string;var g=Ln(r,p),_=e.legendHitBoxes,v=function(e,n){switch(t.align){case"start":return r.padding;case"end":return e-n;default:return(e-n+r.padding)/2}},y=e.isHorizontal();d=y?{x:e.left+v(l,u[0]),y:e.top+r.padding,line:0}:{x:e.left+r.padding,y:e.top+v(o,s[0]),line:0},U.rtl.overrideTextDirection(e.ctx,t.textDirection);var b=p+r.padding;U.each(e.legendItems,(function(t,n){var f=h.measureText(t.text).width,m=g+p/2+f,M=d.x,w=d.y;c.setWidth(e.minSize.width),y?n>0&&M+m+r.padding>e.left+e.minSize.width&&(w=d.y+=b,d.line++,M=d.x=e.left+v(l,u[d.line])):n>0&&w+b>e.top+e.minSize.height&&(M=d.x=M+e.columnWidths[d.line]+r.padding,d.line++,w=d.y=e.top+v(o,s[d.line]));var L=c.x(M);!function(e,t,n){if(!(isNaN(g)||g<=0)){h.save();var o=wn(n.lineWidth,a.borderWidth);if(h.fillStyle=wn(n.fillStyle,i),h.lineCap=wn(n.lineCap,a.borderCapStyle),h.lineDashOffset=wn(n.lineDashOffset,a.borderDashOffset),h.lineJoin=wn(n.lineJoin,a.borderJoinStyle),h.lineWidth=o,h.strokeStyle=wn(n.strokeStyle,i),h.setLineDash&&h.setLineDash(wn(n.lineDash,a.borderDash)),r&&r.usePointStyle){var s=g*Math.SQRT2/2,l=c.xPlus(e,g/2),u=t+p/2;U.canvas.drawPoint(h,n.pointStyle,s,l,u,n.rotation)}else h.fillRect(c.leftForLtr(e,g),t,g,p),0!==o&&h.strokeRect(c.leftForLtr(e,g),t,g,p);h.restore()}}(L,w,t),_[n].left=c.leftForLtr(L,_[n].width),_[n].top=w,function(e,t,r,n){var i=p/2,a=c.xPlus(e,g+i),o=t+i;h.fillText(r.text,a,o),r.hidden&&(h.beginPath(),h.lineWidth=2,h.moveTo(a,o),h.lineTo(c.xPlus(a,n),o),h.stroke())}(L,w,t,f),y?d.x+=m+r.padding:d.y+=b})),U.rtl.restoreTextDirection(e.ctx,t.textDirection)}},_getLegendItemAt:function(e,t){var r,n,i,a=this;if(e>=a.left&&e<=a.right&&t>=a.top&&t<=a.bottom)for(i=a.legendHitBoxes,r=0;r<i.length;++r)if(e>=(n=i[r]).left&&e<=n.left+n.width&&t>=n.top&&t<=n.top+n.height)return a.legendItems[r];return null},handleEvent:function(e){var t,r=this,n=r.options,i="mouseup"===e.type?"click":e.type;if("mousemove"===i){if(!n.onHover&&!n.onLeave)return}else{if("click"!==i)return;if(!n.onClick)return}t=r._getLegendItemAt(e.x,e.y),"click"===i?t&&n.onClick&&n.onClick.call(r,e.native,t):(n.onLeave&&t!==r._hoveredItem&&(r._hoveredItem&&n.onLeave.call(r,e.native,r._hoveredItem),r._hoveredItem=t),n.onHover&&t&&n.onHover.call(r,e.native,t))}});function xn(e,t){var r=new Tn({ctx:e.ctx,options:t,chart:e});pt.configure(e,r,t),pt.addBox(e,r),e.legend=r}var kn={id:"legend",_element:Tn,beforeInit:function(e){var t=e.options.legend;t&&xn(e,t)},beforeUpdate:function(e){var t=e.options.legend,r=e.legend;t?(U.mergeIf(t,F.global.legend),r?(pt.configure(e,r,t),r.options=t):xn(e,t)):r&&(pt.removeBox(e,r),delete e.legend)},afterEvent:function(e,t){var r=e.legend;r&&r.handleEvent(t)}},Sn=U.noop;F._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var Dn=J.extend({initialize:function(e){U.extend(this,e),this.legendHitBoxes=[]},beforeUpdate:Sn,update:function(e,t,r){var n=this;return n.beforeUpdate(),n.maxWidth=e,n.maxHeight=t,n.margins=r,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeBuildLabels(),n.buildLabels(),n.afterBuildLabels(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate(),n.minSize},afterUpdate:Sn,beforeSetDimensions:Sn,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:Sn,beforeBuildLabels:Sn,buildLabels:Sn,afterBuildLabels:Sn,beforeFit:Sn,fit:function(){var e,t=this,r=t.options,n=t.minSize={},i=t.isHorizontal();r.display?(e=(U.isArray(r.text)?r.text.length:1)*U.options._parseFont(r).lineHeight+2*r.padding,t.width=n.width=i?t.maxWidth:e,t.height=n.height=i?e:t.maxHeight):t.width=n.width=t.height=n.height=0},afterFit:Sn,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var e=this,t=e.ctx,r=e.options;if(r.display){var n,i,a,o=U.options._parseFont(r),s=o.lineHeight,l=s/2+r.padding,u=0,d=e.top,c=e.left,h=e.bottom,f=e.right;t.fillStyle=U.valueOrDefault(r.fontColor,F.global.defaultFontColor),t.font=o.string,e.isHorizontal()?(i=c+(f-c)/2,a=d+l,n=f-c):(i="left"===r.position?c+l:f-l,a=d+(h-d)/2,n=h-d,u=Math.PI*("left"===r.position?-.5:.5)),t.save(),t.translate(i,a),t.rotate(u),t.textAlign="center",t.textBaseline="middle";var m=r.text;if(U.isArray(m))for(var p=0,g=0;g<m.length;++g)t.fillText(m[g],0,p,n),p+=s;else t.fillText(m,0,0,n);t.restore()}}});function An(e,t){var r=new Dn({ctx:e.ctx,options:t,chart:e});pt.configure(e,r,t),pt.addBox(e,r),e.titleBlock=r}var En={},Yn=yn,On=kn,Pn={id:"title",_element:Dn,beforeInit:function(e){var t=e.options.title;t&&An(e,t)},beforeUpdate:function(e){var t=e.options.title,r=e.titleBlock;t?(U.mergeIf(t,F.global.title),r?(pt.configure(e,r,t),r.options=t):An(e,t)):r&&(pt.removeBox(e,r),delete e.titleBlock)}};for(var Rn in En.filler=Yn,En.legend=On,En.title=Pn,$t.helpers=U,function(){function e(e,t,r){var n;return"string"==typeof e?(n=parseInt(e,10),-1!==e.indexOf("%")&&(n=n/100*t.parentNode[r])):n=e,n}function t(e){return null!=e&&"none"!==e}function r(r,n,i){var a=document.defaultView,o=U._getParentNode(r),s=a.getComputedStyle(r)[n],l=a.getComputedStyle(o)[n],u=t(s),d=t(l),c=Number.POSITIVE_INFINITY;return u||d?Math.min(u?e(s,r,i):c,d?e(l,o,i):c):"none"}U.where=function(e,t){if(U.isArray(e)&&Array.prototype.filter)return e.filter(t);var r=[];return U.each(e,(function(e){t(e)&&r.push(e)})),r},U.findIndex=Array.prototype.findIndex?function(e,t,r){return e.findIndex(t,r)}:function(e,t,r){r=void 0===r?e:r;for(var n=0,i=e.length;n<i;++n)if(t.call(r,e[n],n,e))return n;return-1},U.findNextWhere=function(e,t,r){U.isNullOrUndef(r)&&(r=-1);for(var n=r+1;n<e.length;n++){var i=e[n];if(t(i))return i}},U.findPreviousWhere=function(e,t,r){U.isNullOrUndef(r)&&(r=e.length);for(var n=r-1;n>=0;n--){var i=e[n];if(t(i))return i}},U.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},U.almostEquals=function(e,t,r){return Math.abs(e-t)<r},U.almostWhole=function(e,t){var r=Math.round(e);return r-t<=e&&r+t>=e},U.max=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.max(e,t)}),Number.NEGATIVE_INFINITY)},U.min=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.min(e,t)}),Number.POSITIVE_INFINITY)},U.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return 0==(e=+e)||isNaN(e)?e:e>0?1:-1},U.toRadians=function(e){return e*(Math.PI/180)},U.toDegrees=function(e){return e*(180/Math.PI)},U._decimalPlaces=function(e){if(U.isFinite(e)){for(var t=1,r=0;Math.round(e*t)/t!==e;)t*=10,r++;return r}},U.getAngleFromPoint=function(e,t){var r=t.x-e.x,n=t.y-e.y,i=Math.sqrt(r*r+n*n),a=Math.atan2(n,r);return a<-.5*Math.PI&&(a+=2*Math.PI),{angle:a,distance:i}},U.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},U.aliasPixel=function(e){return e%2==0?0:.5},U._alignPixel=function(e,t,r){var n=e.currentDevicePixelRatio,i=r/2;return Math.round((t-i)*n)/n+i},U.splineCurve=function(e,t,r,n){var i=e.skip?t:e,a=t,o=r.skip?t:r,s=Math.sqrt(Math.pow(a.x-i.x,2)+Math.pow(a.y-i.y,2)),l=Math.sqrt(Math.pow(o.x-a.x,2)+Math.pow(o.y-a.y,2)),u=s/(s+l),d=l/(s+l),c=n*(u=isNaN(u)?0:u),h=n*(d=isNaN(d)?0:d);return{previous:{x:a.x-c*(o.x-i.x),y:a.y-c*(o.y-i.y)},next:{x:a.x+h*(o.x-i.x),y:a.y+h*(o.y-i.y)}}},U.EPSILON=Number.EPSILON||1e-14,U.splineCurveMonotone=function(e){var t,r,n,i,a,o,s,l,u,d=(e||[]).map((function(e){return{model:e._model,deltaK:0,mK:0}})),c=d.length;for(t=0;t<c;++t)if(!(n=d[t]).model.skip){if(r=t>0?d[t-1]:null,(i=t<c-1?d[t+1]:null)&&!i.model.skip){var h=i.model.x-n.model.x;n.deltaK=0!==h?(i.model.y-n.model.y)/h:0}!r||r.model.skip?n.mK=n.deltaK:!i||i.model.skip?n.mK=r.deltaK:this.sign(r.deltaK)!==this.sign(n.deltaK)?n.mK=0:n.mK=(r.deltaK+n.deltaK)/2}for(t=0;t<c-1;++t)n=d[t],i=d[t+1],n.model.skip||i.model.skip||(U.almostEquals(n.deltaK,0,this.EPSILON)?n.mK=i.mK=0:(a=n.mK/n.deltaK,o=i.mK/n.deltaK,(l=Math.pow(a,2)+Math.pow(o,2))<=9||(s=3/Math.sqrt(l),n.mK=a*s*n.deltaK,i.mK=o*s*n.deltaK)));for(t=0;t<c;++t)(n=d[t]).model.skip||(r=t>0?d[t-1]:null,i=t<c-1?d[t+1]:null,r&&!r.model.skip&&(u=(n.model.x-r.model.x)/3,n.model.controlPointPreviousX=n.model.x-u,n.model.controlPointPreviousY=n.model.y-u*n.mK),i&&!i.model.skip&&(u=(i.model.x-n.model.x)/3,n.model.controlPointNextX=n.model.x+u,n.model.controlPointNextY=n.model.y+u*n.mK))},U.nextItem=function(e,t,r){return r?t>=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},U.previousItem=function(e,t,r){return r?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},U.niceNum=function(e,t){var r=Math.floor(U.log10(e)),n=e/Math.pow(10,r);return(t?n<1.5?1:n<3?2:n<7?5:10:n<=1?1:n<=2?2:n<=5?5:10)*Math.pow(10,r)},U.requestAnimFrame="undefined"==typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)},U.getRelativePosition=function(e,t){var r,n,i=e.originalEvent||e,a=e.target||e.srcElement,o=a.getBoundingClientRect(),s=i.touches;s&&s.length>0?(r=s[0].clientX,n=s[0].clientY):(r=i.clientX,n=i.clientY);var l=parseFloat(U.getStyle(a,"padding-left")),u=parseFloat(U.getStyle(a,"padding-top")),d=parseFloat(U.getStyle(a,"padding-right")),c=parseFloat(U.getStyle(a,"padding-bottom")),h=o.right-o.left-l-d,f=o.bottom-o.top-u-c;return{x:r=Math.round((r-o.left-l)/h*a.width/t.currentDevicePixelRatio),y:n=Math.round((n-o.top-u)/f*a.height/t.currentDevicePixelRatio)}},U.getConstraintWidth=function(e){return r(e,"max-width","clientWidth")},U.getConstraintHeight=function(e){return r(e,"max-height","clientHeight")},U._calculatePadding=function(e,t,r){return(t=U.getStyle(e,t)).indexOf("%")>-1?r*parseInt(t,10)/100:parseInt(t,10)},U._getParentNode=function(e){var t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t},U.getMaximumWidth=function(e){var t=U._getParentNode(e);if(!t)return e.clientWidth;var r=t.clientWidth,n=r-U._calculatePadding(t,"padding-left",r)-U._calculatePadding(t,"padding-right",r),i=U.getConstraintWidth(e);return isNaN(i)?n:Math.min(n,i)},U.getMaximumHeight=function(e){var t=U._getParentNode(e);if(!t)return e.clientHeight;var r=t.clientHeight,n=r-U._calculatePadding(t,"padding-top",r)-U._calculatePadding(t,"padding-bottom",r),i=U.getConstraintHeight(e);return isNaN(i)?n:Math.min(n,i)},U.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},U.retinaScale=function(e,t){var r=e.currentDevicePixelRatio=t||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==r){var n=e.canvas,i=e.height,a=e.width;n.height=i*r,n.width=a*r,e.ctx.scale(r,r),n.style.height||n.style.width||(n.style.height=i+"px",n.style.width=a+"px")}},U.fontString=function(e,t,r){return t+" "+e+"px "+r},U.longestText=function(e,t,r,n){var i=(n=n||{}).data=n.data||{},a=n.garbageCollect=n.garbageCollect||[];n.font!==t&&(i=n.data={},a=n.garbageCollect=[],n.font=t),e.font=t;var o,s,l,u,d,c=0,h=r.length;for(o=0;o<h;o++)if(null!=(u=r[o])&&!0!==U.isArray(u))c=U.measureText(e,i,a,c,u);else if(U.isArray(u))for(s=0,l=u.length;s<l;s++)null==(d=u[s])||U.isArray(d)||(c=U.measureText(e,i,a,c,d));var f=a.length/2;if(f>r.length){for(o=0;o<f;o++)delete i[a[o]];a.splice(0,f)}return c},U.measureText=function(e,t,r,n,i){var a=t[i];return a||(a=t[i]=e.measureText(i).width,r.push(i)),a>n&&(n=a),n},U.numberOfLabelLines=function(e){var t=1;return U.each(e,(function(e){U.isArray(e)&&e.length>t&&(t=e.length)})),t},U.color=M?function(e){return e instanceof CanvasGradient&&(e=F.global.defaultColor),M(e)}:function(e){return console.error("Color.js not found!"),e},U.getHoverColor=function(e){return e instanceof CanvasPattern||e instanceof CanvasGradient?e:U.color(e).saturate(.5).darken(.1).rgbString()}}(),$t._adapters=er,$t.Animation=$,$t.animationService=Z,$t.controllers=Ze,$t.DatasetController=ne,$t.defaults=F,$t.Element=J,$t.elements=we,$t.Interaction=at,$t.layouts=pt,$t.platform=At,$t.plugins=Et,$t.Scale=pr,$t.scaleService=Yt,$t.Ticks=tr,$t.Tooltip=Ut,$t.helpers.each(un,(function(e,t){$t.scaleService.registerScaleType(t,e,e._defaults)})),En)En.hasOwnProperty(Rn)&&$t.plugins.register(En[Rn]);$t.platform.initialize();var Cn=$t;return"undefined"!=typeof window&&(window.Chart=$t),$t.Chart=$t,$t.Legend=En.legend._element,$t.Title=En.title._element,$t.pluginService=$t.plugins,$t.PluginBase=$t.Element.extend({}),$t.canvasHelpers=$t.helpers.canvas,$t.layoutService=$t.layouts,$t.LinearScaleBase=Mr,$t.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],(function(e){$t[e]=function(t,r){return new $t(t,$t.helpers.merge(r||{},{type:e.charAt(0).toLowerCase()+e.slice(1)}))}})),Cn}(function(){try{return r(19)}catch(e){}}())},,,,function(e,t,r){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,a=i&&!n.call({1:2},1);t.f=a?function(e){var t=i(this,e);return!!t&&t.enumerable}:n},function(e,t,r){var n=r(300),i=r(387);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.17.1",mode:n?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(e,t,r){var n=r(362),i=r(344),a=n("keys");e.exports=function(e){return a[e]||(a[e]=i(e))}},function(e,t,r){var n=r(85),i=r(351);e.exports=function(e,t){var r=arguments.length<2?i(e):t;if("function"!=typeof r)throw TypeError(String(e)+" is not iterable");return n(r.call(e))}},function(e,t,r){var n=r(87)("iterator"),i=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){i=!0}};o[n]=function(){return this},Array.from(o,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var a={};a[n]=function(){return{next:function(){return{done:r=!0}}}},e(a)}catch(e){}return r}},function(e,t,r){"use strict";var n=r(297),i=r(317),a=r(350),o=r(228),s=r(400),l=o.set,u=o.getterFor("Array Iterator");e.exports=s(Array,"Array",(function(e,t){l(this,{type:"Array Iterator",target:n(e),index:0,kind:t})}),(function(){var e=u(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),a.Arguments=a.Array,i("keys"),i("values"),i("entries")},function(e,t,r){var n=r(282),i=r(143),a=r(343),o=r(86),s=function(e){return function(t,r,s,l){n(r);var u=i(t),d=a(u),c=o(u.length),h=e?c-1:0,f=e?-1:1;if(s<2)for(;;){if(h in d){l=d[h],h+=f;break}if(h+=f,e?h<0:c<=h)throw TypeError("Reduce of empty array with no initial value")}for(;e?h>=0:c>h;h+=f)h in d&&(l=r(l,d[h],h,u));return l}};e.exports={left:s(!1),right:s(!0)}},function(e,t,r){"use strict";var n=r(55),i=r(89),a=r(403),o=r(280),s=r(338),l=r(44),u=r(328),d=r(229),c=r(86),h=r(442),f=r(661),m=r(301),p=r(316),g=r(324).f,_=r(121).f,v=r(399),y=r(305),b=r(228),M=b.get,w=b.set,L=n.ArrayBuffer,T=L,x=n.DataView,k=x&&x.prototype,S=Object.prototype,D=n.RangeError,A=f.pack,E=f.unpack,Y=function(e){return[255&e]},O=function(e){return[255&e,e>>8&255]},P=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},R=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},C=function(e){return A(e,23,4)},I=function(e){return A(e,52,8)},F=function(e,t){_(e.prototype,t,{get:function(){return M(this)[t]}})},j=function(e,t,r,n){var i=h(r),a=M(e);if(i+t>a.byteLength)throw D("Wrong index");var o=M(a.buffer).bytes,s=i+a.byteOffset,l=o.slice(s,s+t);return n?l:l.reverse()},N=function(e,t,r,n,i,a){var o=h(r),s=M(e);if(o+t>s.byteLength)throw D("Wrong index");for(var l=M(s.buffer).bytes,u=o+s.byteOffset,d=n(+i),c=0;c<t;c++)l[u+c]=d[a?c:t-c-1]};if(a){if(!l((function(){L(1)}))||!l((function(){new L(-1)}))||l((function(){return new L,new L(1.5),new L(NaN),"ArrayBuffer"!=L.name}))){for(var H,B=(T=function(e){return u(this,T),new L(h(e))}).prototype=L.prototype,U=g(L),W=0;U.length>W;)(H=U[W++])in T||o(T,H,L[H]);B.constructor=T}p&&m(k)!==S&&p(k,S);var z=new x(new T(2)),V=k.setInt8;z.setInt8(0,2147483648),z.setInt8(1,2147483649),!z.getInt8(0)&&z.getInt8(1)||s(k,{setInt8:function(e,t){V.call(this,e,t<<24>>24)},setUint8:function(e,t){V.call(this,e,t<<24>>24)}},{unsafe:!0})}else T=function(e){u(this,T,"ArrayBuffer");var t=h(e);w(this,{bytes:v.call(new Array(t),0),byteLength:t}),i||(this.byteLength=t)},x=function(e,t,r){u(this,x,"DataView"),u(e,T,"DataView");var n=M(e).byteLength,a=d(t);if(a<0||a>n)throw D("Wrong offset");if(a+(r=void 0===r?n-a:c(r))>n)throw D("Wrong length");w(this,{buffer:e,byteLength:r,byteOffset:a}),i||(this.buffer=e,this.byteLength=r,this.byteOffset=a)},i&&(F(T,"byteLength"),F(x,"buffer"),F(x,"byteLength"),F(x,"byteOffset")),s(x.prototype,{getInt8:function(e){return j(this,1,e)[0]<<24>>24},getUint8:function(e){return j(this,1,e)[0]},getInt16:function(e){var t=j(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=j(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return R(j(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return R(j(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return E(j(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return E(j(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){N(this,1,e,Y,t)},setUint8:function(e,t){N(this,1,e,Y,t)},setInt16:function(e,t){N(this,2,e,O,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){N(this,2,e,O,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){N(this,4,e,P,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){N(this,4,e,P,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){N(this,4,e,C,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){N(this,8,e,I,t,arguments.length>2?arguments[2]:void 0)}});y(T,"ArrayBuffer"),y(x,"DataView"),e.exports={ArrayBuffer:T,DataView:x}},function(e,t,r){"use strict";var n=r(15),i=r(55),a=r(347),o=r(281),s=r(332),l=r(327),u=r(328),d=r(80),c=r(44),h=r(365),f=r(305),m=r(370);e.exports=function(e,t,r){var p=-1!==e.indexOf("Map"),g=-1!==e.indexOf("Weak"),_=p?"set":"add",v=i[e],y=v&&v.prototype,b=v,M={},w=function(e){var t=y[e];o(y,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(g&&!d(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return g&&!d(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(g&&!d(e))&&t.call(this,0===e?0:e)}:function(e,r){return t.call(this,0===e?0:e,r),this})};if(a(e,"function"!=typeof v||!(g||y.forEach&&!c((function(){(new v).entries().next()})))))b=r.getConstructor(t,e,p,_),s.enable();else if(a(e,!0)){var L=new b,T=L[_](g?{}:-0,1)!=L,x=c((function(){L.has(1)})),k=h((function(e){new v(e)})),S=!g&&c((function(){for(var e=new v,t=5;t--;)e[_](t,t);return!e.has(-0)}));k||((b=t((function(t,r){u(t,b,e);var n=m(new v,t,b);return null!=r&&l(r,n[_],{that:n,AS_ENTRIES:p}),n}))).prototype=y,y.constructor=b),(x||S)&&(w("delete"),w("has"),p&&w("get")),(S||T)&&w(_),g&&y.clear&&delete y.clear}return M[e]=b,n({global:!0,forced:b!=v},M),f(b,e),g||r.setStrong(b,e,p),b}},function(e,t,r){var n=r(80),i=r(316);e.exports=function(e,t,r){var a,o;return i&&"function"==typeof(a=t.constructor)&&a!==r&&n(o=a.prototype)&&o!==r.prototype&&i(e,o),e}},function(e,t){var r=Math.expm1,n=Math.exp;e.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||-2e-17!=r(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:n(e)-1}:r},function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(e,t,r){"use strict";var n=r(300),i=r(55),a=r(44),o=r(402);e.exports=n||!a((function(){if(!(o&&o<535)){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete i[e]}}))},function(e,t,r){"use strict";var n=r(282),i=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new i(e)}},function(e,t,r){var n=r(44),i=r(55).RegExp;t.UNSUPPORTED_Y=n((function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=n((function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},function(e,t,r){"use strict";var n,i,a=r(96),o=r(341),s=r(375),l=r(362),u=r(304),d=r(228).get,c=r(410),h=r(457),f=RegExp.prototype.exec,m=l("native-string-replace",String.prototype.replace),p=f,g=(n=/a/,i=/b*/g,f.call(n,"a"),f.call(i,"a"),0!==n.lastIndex||0!==i.lastIndex),_=s.UNSUPPORTED_Y||s.BROKEN_CARET,v=void 0!==/()??/.exec("")[1];(g||v||_||c||h)&&(p=function(e){var t,r,n,i,s,l,c,h=this,y=d(h),b=a(e),M=y.raw;if(M)return M.lastIndex=h.lastIndex,t=p.call(M,b),h.lastIndex=M.lastIndex,t;var w=y.groups,L=_&&h.sticky,T=o.call(h),x=h.source,k=0,S=b;if(L&&(-1===(T=T.replace("y","")).indexOf("g")&&(T+="g"),S=b.slice(h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==b.charAt(h.lastIndex-1))&&(x="(?: "+x+")",S=" "+S,k++),r=new RegExp("^(?:"+x+")",T)),v&&(r=new RegExp("^"+x+"$(?!\\s)",T)),g&&(n=h.lastIndex),i=f.call(L?r:h,S),L?i?(i.input=i.input.slice(k),i[0]=i[0].slice(k),i.index=h.lastIndex,h.lastIndex+=i[0].length):h.lastIndex=0:g&&i&&(h.lastIndex=h.global?i.index+i[0].length:n),v&&i&&i.length>1&&m.call(i[0],r,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(i[s]=void 0)})),i&&w)for(i.groups=l=u(null),s=0;s<w.length;s++)l[(c=w[s])[0]]=i[c[1]];return i}),e.exports=p},function(e,t,r){var n=r(229),i=r(96),a=r(227),o=function(e){return function(t,r){var o,s,l=i(a(t)),u=n(r),d=l.length;return u<0||u>=d?e?"":void 0:(o=l.charCodeAt(u))<55296||o>56319||u+1===d||(s=l.charCodeAt(u+1))<56320||s>57343?e?l.charAt(u):o:e?l.slice(u,u+2):s-56320+(o-55296<<10)+65536}};e.exports={codeAt:o(!1),charAt:o(!0)}},function(e,t,r){"use strict";r(411);var n=r(281),i=r(376),a=r(44),o=r(87),s=r(280),l=o("species"),u=RegExp.prototype;e.exports=function(e,t,r,d){var c=o(e),h=!a((function(){var t={};return t[c]=function(){return 7},7!=""[e](t)})),f=h&&!a((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[l]=function(){return r},r.flags="",r[c]=/./[c]),r.exec=function(){return t=!0,null},r[c](""),!t}));if(!h||!f||r){var m=/./[c],p=t(c,""[e],(function(e,t,r,n,a){var o=t.exec;return o===i||o===u.exec?h&&!a?{done:!0,value:m.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}}));n(String.prototype,e,p[0]),n(u,c,p[1])}d&&s(u[c],"sham",!0)}},function(e,t,r){"use strict";var n=r(377).charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},function(e,t,r){var n=r(314),i=r(376);e.exports=function(e,t){var r=e.exec;if("function"==typeof r){var a=r.call(e,t);if("object"!=typeof a)throw TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==n(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},function(e,t,r){var n=r(93),i=r(339),a=n.TYPED_ARRAY_CONSTRUCTOR,o=n.aTypedArrayConstructor;e.exports=function(e){return o(i(e,e[a]))}},function(e,t,r){"use strict";(function(t){void 0===t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,r,n,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var a,o,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,r)}));case 3:return t.nextTick((function(){e.call(null,r,n)}));case 4:return t.nextTick((function(){e.call(null,r,n,i)}));default:for(a=new Array(s-1),o=0;o<a.length;)a[o++]=arguments[o];return t.nextTick((function(){e.apply(null,a)}))}}}:e.exports=t}).call(this,r(95))},function(e,t,r){
167
- /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
168
- var n=r(149),i=n.Buffer;function a(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(a(n,t),t.Buffer=o),o.prototype=Object.create(i.prototype),a(i,o),o.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},function(e,t,r){var n;"undefined"!=typeof window&&(n=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r(r.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":
169
- /*!*********************************************!*\
170
- !*** ./node_modules/eventemitter3/index.js ***!
171
- \*********************************************/
172
- /*! no static exports found */
173
- /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty,i="~";function a(){}function o(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function s(e,t,r,n,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,n||e,a),l=i?i+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function l(e,t){0==--e._eventsCount?e._events=new a:delete e._events[t]}function u(){this._events=new a,this._eventsCount=0}Object.create&&(a.prototype=Object.create(null),(new a).__proto__||(i=!1)),u.prototype.eventNames=function(){var e,t,r=[];if(0===this._eventsCount)return r;for(t in e=this._events)n.call(e,t)&&r.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},u.prototype.listeners=function(e){var t=i?i+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,a=r.length,o=new Array(a);n<a;n++)o[n]=r[n].fn;return o},u.prototype.listenerCount=function(e){var t=i?i+e:e,r=this._events[t];return r?r.fn?1:r.length:0},u.prototype.emit=function(e,t,r,n,a,o){var s=i?i+e:e;if(!this._events[s])return!1;var l,u,d=this._events[s],c=arguments.length;if(d.fn){switch(d.once&&this.removeListener(e,d.fn,void 0,!0),c){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,t),!0;case 3:return d.fn.call(d.context,t,r),!0;case 4:return d.fn.call(d.context,t,r,n),!0;case 5:return d.fn.call(d.context,t,r,n,a),!0;case 6:return d.fn.call(d.context,t,r,n,a,o),!0}for(u=1,l=new Array(c-1);u<c;u++)l[u-1]=arguments[u];d.fn.apply(d.context,l)}else{var h,f=d.length;for(u=0;u<f;u++)switch(d[u].once&&this.removeListener(e,d[u].fn,void 0,!0),c){case 1:d[u].fn.call(d[u].context);break;case 2:d[u].fn.call(d[u].context,t);break;case 3:d[u].fn.call(d[u].context,t,r);break;case 4:d[u].fn.call(d[u].context,t,r,n);break;default:if(!l)for(h=1,l=new Array(c-1);h<c;h++)l[h-1]=arguments[h];d[u].fn.apply(d[u].context,l)}}return!0},u.prototype.on=function(e,t,r){return s(this,e,t,r,!1)},u.prototype.once=function(e,t,r){return s(this,e,t,r,!0)},u.prototype.removeListener=function(e,t,r,n){var a=i?i+e:e;if(!this._events[a])return this;if(!t)return l(this,a),this;var o=this._events[a];if(o.fn)o.fn!==t||n&&!o.once||r&&o.context!==r||l(this,a);else{for(var s=0,u=[],d=o.length;s<d;s++)(o[s].fn!==t||n&&!o[s].once||r&&o[s].context!==r)&&u.push(o[s]);u.length?this._events[a]=1===u.length?u[0]:u:l(this,a)}return this},u.prototype.removeAllListeners=function(e){var t;return e?(t=i?i+e:e,this._events[t]&&l(this,t)):(this._events=new a,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=i,u.EventEmitter=u,e.exports=u},"./node_modules/url-toolkit/src/url-toolkit.js":
174
- /*!*****************************************************!*\
175
- !*** ./node_modules/url-toolkit/src/url-toolkit.js ***!
176
- \*****************************************************/
177
- /*! no static exports found */
178
- /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,r){var n,i,a,o,s;n=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#.*)?$/,i=/^([^\/?#]*)(.*)$/,a=/(?:\/|^)\.(?=\/)/g,o=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,s={buildAbsoluteURL:function(e,t,r){if(r=r||{},e=e.trim(),!(t=t.trim())){if(!r.alwaysNormalize)return e;var n=s.parseURL(e);if(!n)throw new Error("Error trying to parse base URL.");return n.path=s.normalizePath(n.path),s.buildURLFromParts(n)}var a=s.parseURL(t);if(!a)throw new Error("Error trying to parse relative URL.");if(a.scheme)return r.alwaysNormalize?(a.path=s.normalizePath(a.path),s.buildURLFromParts(a)):t;var o=s.parseURL(e);if(!o)throw new Error("Error trying to parse base URL.");if(!o.netLoc&&o.path&&"/"!==o.path[0]){var l=i.exec(o.path);o.netLoc=l[1],o.path=l[2]}o.netLoc&&!o.path&&(o.path="/");var u={scheme:o.scheme,netLoc:a.netLoc,path:null,params:a.params,query:a.query,fragment:a.fragment};if(!a.netLoc&&(u.netLoc=o.netLoc,"/"!==a.path[0]))if(a.path){var d=o.path,c=d.substring(0,d.lastIndexOf("/")+1)+a.path;u.path=s.normalizePath(c)}else u.path=o.path,a.params||(u.params=o.params,a.query||(u.query=o.query));return null===u.path&&(u.path=r.alwaysNormalize?s.normalizePath(a.path):a.path),s.buildURLFromParts(u)},parseURL:function(e){var t=n.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(a,"");e.length!==(e=e.replace(o,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}},e.exports=s},"./node_modules/webworkify-webpack/index.js":
179
- /*!**************************************************!*\
180
- !*** ./node_modules/webworkify-webpack/index.js ***!
181
- \**************************************************/
182
- /*! no static exports found */
183
- /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,r){function n(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=e,r.c=t,r.i=function(e){return e},r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r.oe=function(e){throw console.error(e),e};var n=r(r.s=ENTRY_MODULE);return n.default||n}function i(e){return(e+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function a(e,t,n){var a={};a[n]=[];var o=t.toString(),s=o.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!s)return a;for(var l,u=s[1],d=new RegExp("(\\\\n|\\W)"+i(u)+"\\(\\s*(/\\*.*?\\*/)?\\s*.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)","g");l=d.exec(o);)"dll-reference"!==l[3]&&a[n].push(l[3]);for(d=new RegExp("\\("+i(u)+'\\("(dll-reference\\s([\\.|\\-|\\+|\\w|/|@]+))"\\)\\)\\(\\s*(/\\*.*?\\*/)?\\s*.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)',"g");l=d.exec(o);)e[l[2]]||(a[n].push(l[1]),e[l[2]]=r(l[1]).m),a[l[2]]=a[l[2]]||[],a[l[2]].push(l[4]);for(var c,h=Object.keys(a),f=0;f<h.length;f++)for(var m=0;m<a[h[f]].length;m++)c=a[h[f]][m],isNaN(1*c)||(a[h[f]][m]=1*a[h[f]][m]);return a}function o(e){return Object.keys(e).reduce((function(t,r){return t||e[r].length>0}),!1)}e.exports=function(e,t){t=t||{};var i={main:r.m},s=t.all?{main:Object.keys(i.main)}:function(e,t){for(var r={main:[t]},n={main:[]},i={main:{}};o(r);)for(var s=Object.keys(r),l=0;l<s.length;l++){var u=s[l],d=r[u].pop();if(i[u]=i[u]||{},!i[u][d]&&e[u][d]){i[u][d]=!0,n[u]=n[u]||[],n[u].push(d);for(var c=a(e,e[u][d],u),h=Object.keys(c),f=0;f<h.length;f++)r[h[f]]=r[h[f]]||[],r[h[f]]=r[h[f]].concat(c[h[f]])}}return n}(i,e),l="";Object.keys(s).filter((function(e){return"main"!==e})).forEach((function(e){for(var t=0;s[e][t];)t++;s[e].push(t),i[e][t]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",l=l+"var "+e+" = ("+n.toString().replace("ENTRY_MODULE",JSON.stringify(t))+")({"+s[e].map((function(t){return JSON.stringify(t)+": "+i[e][t].toString()})).join(",")+"});\n"})),l=l+"new (("+n.toString().replace("ENTRY_MODULE",JSON.stringify(e))+")({"+s.main.map((function(e){return JSON.stringify(e)+": "+i.main[e].toString()})).join(",")+"}))(self);";var u=new window.Blob([l],{type:"text/javascript"});if(t.bare)return u;var d=(window.URL||window.webkitURL||window.mozURL||window.msURL).createObjectURL(u),c=new window.Worker(d);return c.objectURL=d,c}},"./src/crypt/decrypter.js":
184
- /*!********************************************!*\
185
- !*** ./src/crypt/decrypter.js + 3 modules ***!
186
- \********************************************/
187
- /*! exports provided: default */
188
- /*! ModuleConcatenation bailout: Cannot concat with ./src/errors.ts because of ./src/hls.ts */
189
- /*! ModuleConcatenation bailout: Cannot concat with ./src/events.js because of ./src/hls.ts */
190
- /*! ModuleConcatenation bailout: Cannot concat with ./src/utils/get-self-scope.js because of ./src/hls.ts */
191
- /*! ModuleConcatenation bailout: Cannot concat with ./src/utils/logger.js because of ./src/hls.ts */function(e,t,r){"use strict";r.r(t);var n=function(){function e(e,t){this.subtle=e,this.aesIV=t}return e.prototype.decrypt=function(e,t){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e)},e}(),i=function(){function e(e,t){this.subtle=e,this.key=t}return e.prototype.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},e}(),a=function(){function e(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.initTable()}var t=e.prototype;return t.uint8ArrayToUint32Array_=function(e){for(var t=new DataView(e),r=new Uint32Array(4),n=0;n<4;n++)r[n]=t.getUint32(4*n);return r},t.initTable=function(){var e=this.sBox,t=this.invSBox,r=this.subMix,n=r[0],i=r[1],a=r[2],o=r[3],s=this.invSubMix,l=s[0],u=s[1],d=s[2],c=s[3],h=new Uint32Array(256),f=0,m=0,p=0;for(p=0;p<256;p++)h[p]=p<128?p<<1:p<<1^283;for(p=0;p<256;p++){var g=m^m<<1^m<<2^m<<3^m<<4;g=g>>>8^255&g^99,e[f]=g,t[g]=f;var _=h[f],v=h[_],y=h[v],b=257*h[g]^16843008*g;n[f]=b<<24|b>>>8,i[f]=b<<16|b>>>16,a[f]=b<<8|b>>>24,o[f]=b,b=16843009*y^65537*v^257*_^16843008*f,l[g]=b<<24|b>>>8,u[g]=b<<16|b>>>16,d[g]=b<<8|b>>>24,c[g]=b,f?(f=_^h[h[h[y^_]]],m^=h[h[m]]):f=m=1}},t.expandKey=function(e){for(var t=this.uint8ArrayToUint32Array_(e),r=!0,n=0;n<t.length&&r;)r=t[n]===this.key[n],n++;if(!r){this.key=t;var i=this.keySize=t.length;if(4!==i&&6!==i&&8!==i)throw new Error("Invalid aes key size="+i);var a,o,s,l,u=this.ksRows=4*(i+6+1),d=this.keySchedule=new Uint32Array(u),c=this.invKeySchedule=new Uint32Array(u),h=this.sBox,f=this.rcon,m=this.invSubMix,p=m[0],g=m[1],_=m[2],v=m[3];for(a=0;a<u;a++)a<i?s=d[a]=t[a]:(l=s,a%i==0?(l=h[(l=l<<8|l>>>24)>>>24]<<24|h[l>>>16&255]<<16|h[l>>>8&255]<<8|h[255&l],l^=f[a/i|0]<<24):i>6&&a%i==4&&(l=h[l>>>24]<<24|h[l>>>16&255]<<16|h[l>>>8&255]<<8|h[255&l]),d[a]=s=(d[a-i]^l)>>>0);for(o=0;o<u;o++)a=u-o,l=3&o?d[a]:d[a-4],c[o]=o<4||a<=4?l:p[h[l>>>24]]^g[h[l>>>16&255]]^_[h[l>>>8&255]]^v[h[255&l]],c[o]=c[o]>>>0}},t.networkToHostOrderSwap=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},t.decrypt=function(e,t,r,n){for(var i,a,o,s,l,u,d,c,h,f,m,p,g,_,v,y,b,M=this.keySize+6,w=this.invKeySchedule,L=this.invSBox,T=this.invSubMix,x=T[0],k=T[1],S=T[2],D=T[3],A=this.uint8ArrayToUint32Array_(r),E=A[0],Y=A[1],O=A[2],P=A[3],R=new Int32Array(e),C=new Int32Array(R.length),I=this.networkToHostOrderSwap;t<R.length;){for(h=I(R[t]),f=I(R[t+1]),m=I(R[t+2]),p=I(R[t+3]),l=h^w[0],u=p^w[1],d=m^w[2],c=f^w[3],g=4,_=1;_<M;_++)i=x[l>>>24]^k[u>>16&255]^S[d>>8&255]^D[255&c]^w[g],a=x[u>>>24]^k[d>>16&255]^S[c>>8&255]^D[255&l]^w[g+1],o=x[d>>>24]^k[c>>16&255]^S[l>>8&255]^D[255&u]^w[g+2],s=x[c>>>24]^k[l>>16&255]^S[u>>8&255]^D[255&d]^w[g+3],l=i,u=a,d=o,c=s,g+=4;i=L[l>>>24]<<24^L[u>>16&255]<<16^L[d>>8&255]<<8^L[255&c]^w[g],a=L[u>>>24]<<24^L[d>>16&255]<<16^L[c>>8&255]<<8^L[255&l]^w[g+1],o=L[d>>>24]<<24^L[c>>16&255]<<16^L[l>>8&255]<<8^L[255&u]^w[g+2],s=L[c>>>24]<<24^L[l>>16&255]<<16^L[u>>8&255]<<8^L[255&d]^w[g+3],g+=3,C[t]=I(i^E),C[t+1]=I(s^Y),C[t+2]=I(o^O),C[t+3]=I(a^P),E=h,Y=f,O=m,P=p,t+=4}return n?(v=C.buffer,y=v.byteLength,(b=y&&new DataView(v).getUint8(y-1))?v.slice(0,y-b):v):C.buffer},t.destroy=function(){this.key=void 0,this.keySize=void 0,this.ksRows=void 0,this.sBox=void 0,this.invSBox=void 0,this.subMix=void 0,this.invSubMix=void 0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.rcon=void 0},e}(),o=r("./src/errors.ts"),s=r("./src/utils/logger.js"),l=r("./src/events.js"),u=r("./src/utils/get-self-scope.js"),d=Object(u.getSelfScope)(),c=function(){function e(e,t,r){var n=(void 0===r?{}:r).removePKCS7Padding,i=void 0===n||n;if(this.logEnabled=!0,this.observer=e,this.config=t,this.removePKCS7Padding=i,i)try{var a=d.crypto;a&&(this.subtle=a.subtle||a.webkitSubtle)}catch(e){}this.disableWebCrypto=!this.subtle}var t=e.prototype;return t.isSync=function(){return this.disableWebCrypto&&this.config.enableSoftwareAES},t.decrypt=function(e,t,r,o){var l=this;if(this.disableWebCrypto&&this.config.enableSoftwareAES){this.logEnabled&&(s.logger.log("JS AES decrypt"),this.logEnabled=!1);var u=this.decryptor;u||(this.decryptor=u=new a),u.expandKey(t),o(u.decrypt(e,0,r,this.removePKCS7Padding))}else{this.logEnabled&&(s.logger.log("WebCrypto AES decrypt"),this.logEnabled=!1);var d=this.subtle;this.key!==t&&(this.key=t,this.fastAesKey=new i(d,t)),this.fastAesKey.expandKey().then((function(i){new n(d,r).decrypt(e,i).catch((function(n){l.onWebCryptoError(n,e,t,r,o)})).then((function(e){o(e)}))})).catch((function(n){l.onWebCryptoError(n,e,t,r,o)}))}},t.onWebCryptoError=function(e,t,r,n,i){this.config.enableSoftwareAES?(s.logger.log("WebCrypto Error, disable WebCrypto API"),this.disableWebCrypto=!0,this.logEnabled=!0,this.decrypt(t,r,n,i)):(s.logger.error("decrypting error : "+e.message),this.observer.trigger(l.default.ERROR,{type:o.ErrorTypes.MEDIA_ERROR,details:o.ErrorDetails.FRAG_DECRYPT_ERROR,fatal:!0,reason:e.message}))},t.destroy=function(){var e=this.decryptor;e&&(e.destroy(),this.decryptor=void 0)},e}();t.default=c},"./src/demux/demuxer-inline.js":
192
- /*!**************************************************!*\
193
- !*** ./src/demux/demuxer-inline.js + 12 modules ***!
194
- \**************************************************/
195
- /*! exports provided: default */
196
- /*! ModuleConcatenation bailout: Cannot concat with ./src/crypt/decrypter.js because of ./src/hls.ts */
197
- /*! ModuleConcatenation bailout: Cannot concat with ./src/demux/id3.js because of ./src/hls.ts */
198
- /*! ModuleConcatenation bailout: Cannot concat with ./src/demux/mp4demuxer.js because of ./src/hls.ts */
199
- /*! ModuleConcatenation bailout: Cannot concat with ./src/errors.ts because of ./src/hls.ts */
200
- /*! ModuleConcatenation bailout: Cannot concat with ./src/events.js because of ./src/hls.ts */
201
- /*! ModuleConcatenation bailout: Cannot concat with ./src/polyfills/number.js because of ./src/hls.ts */
202
- /*! ModuleConcatenation bailout: Cannot concat with ./src/utils/get-self-scope.js because of ./src/hls.ts */
203
- /*! ModuleConcatenation bailout: Cannot concat with ./src/utils/logger.js because of ./src/hls.ts */function(e,t,r){"use strict";r.r(t);var n=r("./src/events.js"),i=r("./src/errors.ts"),a=r("./src/crypt/decrypter.js"),o=r("./src/polyfills/number.js"),s=r("./src/utils/logger.js"),l=r("./src/utils/get-self-scope.js");function u(e,t){return 255===e[t]&&240==(246&e[t+1])}function d(e,t){return 1&e[t+1]?7:9}function c(e,t){return(3&e[t+3])<<11|e[t+4]<<3|(224&e[t+5])>>>5}function h(e,t){return!!(t+1<e.length&&u(e,t))}function f(e,t){if(h(e,t)){var r=d(e,t);if(t+r>=e.length)return!1;var n=c(e,t);if(n<=r)return!1;var i=t+n;if(i===e.length||i+1<e.length&&u(e,i))return!0}return!1}function m(e,t,r,a,o){if(!e.samplerate){var l=function(e,t,r,a){var o,l,u,d,c,h=navigator.userAgent.toLowerCase(),f=a,m=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];if(o=1+((192&t[r+2])>>>6),!((l=(60&t[r+2])>>>2)>m.length-1))return d=(1&t[r+2])<<2,d|=(192&t[r+3])>>>6,s.logger.log("manifest codec:"+a+",ADTS data:type:"+o+",sampleingIndex:"+l+"["+m[l]+"Hz],channelConfig:"+d),/firefox/i.test(h)?l>=6?(o=5,c=new Array(4),u=l-3):(o=2,c=new Array(2),u=l):-1!==h.indexOf("android")?(o=2,c=new Array(2),u=l):(o=5,c=new Array(4),a&&(-1!==a.indexOf("mp4a.40.29")||-1!==a.indexOf("mp4a.40.5"))||!a&&l>=6?u=l-3:((a&&-1!==a.indexOf("mp4a.40.2")&&(l>=6&&1===d||/vivaldi/i.test(h))||!a&&1===d)&&(o=2,c=new Array(2)),u=l)),c[0]=o<<3,c[0]|=(14&l)>>1,c[1]|=(1&l)<<7,c[1]|=d<<3,5===o&&(c[1]|=(14&u)>>1,c[2]=(1&u)<<7,c[2]|=8,c[3]=0),{config:c,samplerate:m[l],channelCount:d,codec:"mp4a.40."+o,manifestCodec:f};e.trigger(n.default.ERROR,{type:i.ErrorTypes.MEDIA_ERROR,details:i.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+l})}(t,r,a,o);e.config=l.config,e.samplerate=l.samplerate,e.channelCount=l.channelCount,e.codec=l.codec,e.manifestCodec=l.manifestCodec,s.logger.log("parsed codec:"+e.codec+",rate:"+l.samplerate+",nb channel:"+l.channelCount)}}function p(e){return 9216e4/e}function g(e,t,r,n,i){var a=function(e,t,r,n,i){var a,o,s=e.length;if(a=d(e,t),o=c(e,t),(o-=a)>0&&t+a+o<=s)return{headerLength:a,frameLength:o,stamp:r+n*i}}(t,r,n,i,p(e.samplerate));if(a){var o=a.stamp,s=a.headerLength,l=a.frameLength,u={unit:t.subarray(r+s,r+s+l),pts:o,dts:o};return e.samples.push(u),{sample:u,length:l+s}}}var _=r("./src/demux/id3.js"),v=function(){function e(e,t,r){this.observer=e,this.config=r,this.remuxer=t}var t=e.prototype;return t.resetInitSegment=function(e,t,r,n){this._audioTrack={container:"audio/adts",type:"audio",id:0,sequenceNumber:0,isAAC:!0,samples:[],len:0,manifestCodec:t,duration:n,inputTimeScale:9e4}},t.resetTimeStamp=function(){},e.probe=function(e){if(!e)return!1;for(var t=(_.default.getID3Data(e,0)||[]).length,r=e.length;t<r;t++)if(f(e,t))return s.logger.log("ADTS sync word found !"),!0;return!1},t.append=function(e,t,r,n){for(var i=this._audioTrack,a=_.default.getID3Data(e,0)||[],l=_.default.getTimeStamp(a),u=Object(o.isFiniteNumber)(l)?90*l:9e4*t,d=0,c=u,f=e.length,p=a.length,v=[{pts:c,dts:c,data:a}];p<f-1;)if(h(e,p)&&p+5<f){m(i,this.observer,e,p,i.manifestCodec);var y=g(i,e,p,u,d);if(!y){s.logger.log("Unable to parse AAC frame");break}p+=y.length,c=y.sample.pts,d++}else _.default.isHeader(e,p)?(a=_.default.getID3Data(e,p),v.push({pts:c,dts:c,data:a}),p+=a.length):p++;this.remuxer.remux(i,{samples:[]},{samples:v,inputTimeScale:9e4},{samples:[]},t,r,n)},t.destroy=function(){},e}(),y=r("./src/demux/mp4demuxer.js"),b={BitratesMap:[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],SamplingRateMap:[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],SamplesCoefficients:[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],BytesInSlot:[0,1,1,4],appendFrame:function(e,t,r,n,i){if(!(r+24>t.length)){var a=this.parseHeader(t,r);if(a&&r+a.frameLength<=t.length){var o=n+i*(9e4*a.samplesPerFrame/a.sampleRate),s={unit:t.subarray(r,r+a.frameLength),pts:o,dts:o};return e.config=[],e.channelCount=a.channelCount,e.samplerate=a.sampleRate,e.samples.push(s),{sample:s,length:a.frameLength}}}},parseHeader:function(e,t){var r=e[t+1]>>3&3,n=e[t+1]>>1&3,i=e[t+2]>>4&15,a=e[t+2]>>2&3,o=e[t+2]>>1&1;if(1!==r&&0!==i&&15!==i&&3!==a){var s=3===r?3-n:3===n?3:4,l=1e3*b.BitratesMap[14*s+i-1],u=3===r?0:2===r?1:2,d=b.SamplingRateMap[3*u+a],c=e[t+3]>>6==3?1:2,h=b.SamplesCoefficients[r][n],f=b.BytesInSlot[n],m=8*h*f;return{sampleRate:d,channelCount:c,frameLength:parseInt(h*l/d+o,10)*f,samplesPerFrame:m}}},isHeaderPattern:function(e,t){return 255===e[t]&&224==(224&e[t+1])&&0!=(6&e[t+1])},isHeader:function(e,t){return!!(t+1<e.length&&this.isHeaderPattern(e,t))},probe:function(e,t){if(t+1<e.length&&this.isHeaderPattern(e,t)){var r=this.parseHeader(e,t),n=4;r&&r.frameLength&&(n=r.frameLength);var i=t+n;if(i===e.length||i+1<e.length&&this.isHeaderPattern(e,i))return!0}return!1}},M=b,w=function(){function e(e){this.data=e,this.bytesAvailable=e.byteLength,this.word=0,this.bitsAvailable=0}var t=e.prototype;return t.loadWord=function(){var e=this.data,t=this.bytesAvailable,r=e.byteLength-t,n=new Uint8Array(4),i=Math.min(4,t);if(0===i)throw new Error("no bytes available");n.set(e.subarray(r,r+i)),this.word=new DataView(n.buffer).getUint32(0),this.bitsAvailable=8*i,this.bytesAvailable-=i},t.skipBits=function(e){var t;this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(e-=this.bitsAvailable,e-=(t=e>>3)>>3,this.bytesAvailable-=t,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)},t.readBits=function(e){var t=Math.min(this.bitsAvailable,e),r=this.word>>>32-t;return e>32&&s.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=t,this.bitsAvailable>0?this.word<<=t:this.bytesAvailable>0&&this.loadWord(),(t=e-t)>0&&this.bitsAvailable?r<<t|this.readBits(t):r},t.skipLZ=function(){var e;for(e=0;e<this.bitsAvailable;++e)if(0!=(this.word&2147483648>>>e))return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()},t.skipUEG=function(){this.skipBits(1+this.skipLZ())},t.skipEG=function(){this.skipBits(1+this.skipLZ())},t.readUEG=function(){var e=this.skipLZ();return this.readBits(e+1)-1},t.readEG=function(){var e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)},t.readBoolean=function(){return 1===this.readBits(1)},t.readUByte=function(){return this.readBits(8)},t.readUShort=function(){return this.readBits(16)},t.readUInt=function(){return this.readBits(32)},t.skipScalingList=function(e){var t,r=8,n=8;for(t=0;t<e;t++)0!==n&&(n=(r+this.readEG()+256)%256),r=0===n?r:n},t.readSPS=function(){var e,t,r,n,i,a,o,s=0,l=0,u=0,d=0,c=this.readUByte.bind(this),h=this.readBits.bind(this),f=this.readUEG.bind(this),m=this.readBoolean.bind(this),p=this.skipBits.bind(this),g=this.skipEG.bind(this),_=this.skipUEG.bind(this),v=this.skipScalingList.bind(this);if(c(),e=c(),h(5),p(3),c(),_(),100===e||110===e||122===e||244===e||44===e||83===e||86===e||118===e||128===e){var y=f();if(3===y&&p(1),_(),_(),p(1),m())for(a=3!==y?8:12,o=0;o<a;o++)m()&&v(o<6?16:64)}_();var b=f();if(0===b)f();else if(1===b)for(p(1),g(),g(),t=f(),o=0;o<t;o++)g();_(),p(1),r=f(),n=f(),0===(i=h(1))&&p(1),p(1),m()&&(s=f(),l=f(),u=f(),d=f());var M=[1,1];if(m()&&m())switch(c()){case 1:M=[1,1];break;case 2:M=[12,11];break;case 3:M=[10,11];break;case 4:M=[16,11];break;case 5:M=[40,33];break;case 6:M=[24,11];break;case 7:M=[20,11];break;case 8:M=[32,11];break;case 9:M=[80,33];break;case 10:M=[18,11];break;case 11:M=[15,11];break;case 12:M=[64,33];break;case 13:M=[160,99];break;case 14:M=[4,3];break;case 15:M=[3,2];break;case 16:M=[2,1];break;case 255:M=[c()<<8|c(),c()<<8|c()]}return{width:Math.ceil(16*(r+1)-2*s-2*l),height:(2-i)*(n+1)*16-(i?2:4)*(u+d),pixelRatio:M}},t.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},e}(),L=function(){function e(e,t,r,n){this.decryptdata=r,this.discardEPB=n,this.decrypter=new a.default(e,t,{removePKCS7Padding:!1})}var t=e.prototype;return t.decryptBuffer=function(e,t){this.decrypter.decrypt(e,this.decryptdata.key.buffer,this.decryptdata.iv.buffer,t)},t.decryptAacSample=function(e,t,r,n){var i=e[t].unit,a=i.subarray(16,i.length-i.length%16),o=a.buffer.slice(a.byteOffset,a.byteOffset+a.length),s=this;this.decryptBuffer(o,(function(a){a=new Uint8Array(a),i.set(a,16),n||s.decryptAacSamples(e,t+1,r)}))},t.decryptAacSamples=function(e,t,r){for(;;t++){if(t>=e.length)return void r();if(!(e[t].unit.length<32)){var n=this.decrypter.isSync();if(this.decryptAacSample(e,t,r,n),!n)return}}},t.getAvcEncryptedData=function(e){for(var t=16*Math.floor((e.length-48)/160)+16,r=new Int8Array(t),n=0,i=32;i<=e.length-16;i+=160,n+=16)r.set(e.subarray(i,i+16),n);return r},t.getAvcDecryptedUnit=function(e,t){t=new Uint8Array(t);for(var r=0,n=32;n<=e.length-16;n+=160,r+=16)e.set(t.subarray(r,r+16),n);return e},t.decryptAvcSample=function(e,t,r,n,i,a){var o=this.discardEPB(i.data),s=this.getAvcEncryptedData(o),l=this;this.decryptBuffer(s.buffer,(function(s){i.data=l.getAvcDecryptedUnit(o,s),a||l.decryptAvcSamples(e,t,r+1,n)}))},t.decryptAvcSamples=function(e,t,r,n){for(;;t++,r=0){if(t>=e.length)return void n();for(var i=e[t].units;!(r>=i.length);r++){var a=i[r];if(!(a.data.length<=48||1!==a.type&&5!==a.type)){var o=this.decrypter.isSync();if(this.decryptAvcSample(e,t,r,n,a,o),!o)return}}}},e}(),T={video:1,audio:2,id3:3,text:4},x=function(){function e(e,t,r,n){this.observer=e,this.config=r,this.typeSupported=n,this.remuxer=t,this.sampleAes=null,this.pmtUnknownTypes={}}var t=e.prototype;return t.setDecryptData=function(e){null!=e&&null!=e.key&&"SAMPLE-AES"===e.method?this.sampleAes=new L(this.observer,this.config,e,this.discardEPB):this.sampleAes=null},e.probe=function(t){var r=e._syncOffset(t);return!(r<0||(r&&s.logger.warn("MPEG2-TS detected but first sync word found @ offset "+r+", junk ahead ?"),0))},e._syncOffset=function(e){for(var t=Math.min(1e3,e.length-564),r=0;r<t;){if(71===e[r]&&71===e[r+188]&&71===e[r+376])return r;r++}return-1},e.createTrack=function(e,t){return{container:"video"===e||"audio"===e?"video/mp2t":void 0,type:e,id:T[e],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:"video"===e?0:void 0,isAAC:"audio"===e||void 0,duration:"audio"===e?t:void 0}},t.resetInitSegment=function(t,r,n,i){this.pmtParsed=!1,this._pmtId=-1,this.pmtUnknownTypes={},this._avcTrack=e.createTrack("video",i),this._audioTrack=e.createTrack("audio",i),this._id3Track=e.createTrack("id3",i),this._txtTrack=e.createTrack("text",i),this.aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=r,this.videoCodec=n,this._duration=i},t.resetTimeStamp=function(){},t.append=function(t,r,a,o){var l,u,d,c,h,f=t.length,m=!1;this.pmtUnknownTypes={},this.contiguous=a;var p=this.pmtParsed,g=this._avcTrack,_=this._audioTrack,v=this._id3Track,y=g.pid,b=_.pid,M=v.pid,w=this._pmtId,L=g.pesData,T=_.pesData,x=v.pesData,k=this._parsePAT,S=this._parsePMT.bind(this),D=this._parsePES,A=this._parseAVCPES.bind(this),E=this._parseAACPES.bind(this),Y=this._parseMPEGPES.bind(this),O=this._parseID3PES.bind(this),P=e._syncOffset(t);for(f-=(f+P)%188,l=P;l<f;l+=188)if(71===t[l]){if(u=!!(64&t[l+1]),d=((31&t[l+1])<<8)+t[l+2],(48&t[l+3])>>4>1){if((c=l+5+t[l+4])===l+188)continue}else c=l+4;switch(d){case y:u&&(L&&(h=D(L))&&A(h,!1),L={data:[],size:0}),L&&(L.data.push(t.subarray(c,l+188)),L.size+=l+188-c);break;case b:u&&(T&&(h=D(T))&&(_.isAAC?E(h):Y(h)),T={data:[],size:0}),T&&(T.data.push(t.subarray(c,l+188)),T.size+=l+188-c);break;case M:u&&(x&&(h=D(x))&&O(h),x={data:[],size:0}),x&&(x.data.push(t.subarray(c,l+188)),x.size+=l+188-c);break;case 0:u&&(c+=t[c]+1),w=this._pmtId=k(t,c);break;case w:u&&(c+=t[c]+1);var R=S(t,c,!0===this.typeSupported.mpeg||!0===this.typeSupported.mp3,null!=this.sampleAes);(y=R.avc)>0&&(g.pid=y),(b=R.audio)>0&&(_.pid=b,_.isAAC=R.isAAC),(M=R.id3)>0&&(v.pid=M),m&&!p&&(s.logger.log("reparse from beginning"),m=!1,l=P-188),p=this.pmtParsed=!0;break;case 17:case 8191:break;default:m=!0}}else this.observer.trigger(n.default.ERROR,{type:i.ErrorTypes.MEDIA_ERROR,details:i.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});L&&(h=D(L))?(A(h,!0),g.pesData=null):g.pesData=L,T&&(h=D(T))?(_.isAAC?E(h):Y(h),_.pesData=null):(T&&T.size&&s.logger.log("last AAC PES packet truncated,might overlap between fragments"),_.pesData=T),x&&(h=D(x))?(O(h),v.pesData=null):v.pesData=x,null==this.sampleAes?this.remuxer.remux(_,g,v,this._txtTrack,r,a,o):this.decryptAndRemux(_,g,v,this._txtTrack,r,a,o)},t.decryptAndRemux=function(e,t,r,n,i,a,o){if(e.samples&&e.isAAC){var s=this;this.sampleAes.decryptAacSamples(e.samples,0,(function(){s.decryptAndRemuxAvc(e,t,r,n,i,a,o)}))}else this.decryptAndRemuxAvc(e,t,r,n,i,a,o)},t.decryptAndRemuxAvc=function(e,t,r,n,i,a,o){if(t.samples){var s=this;this.sampleAes.decryptAvcSamples(t.samples,0,0,(function(){s.remuxer.remux(e,t,r,n,i,a,o)}))}else this.remuxer.remux(e,t,r,n,i,a,o)},t.destroy=function(){this._initPTS=this._initDTS=void 0,this._duration=0},t._parsePAT=function(e,t){return(31&e[t+10])<<8|e[t+11]},t._trackUnknownPmt=function(e,t,r){var n=this.pmtUnknownTypes[e]||0;return 0===n&&(this.pmtUnknownTypes[e]=0,t.call(s.logger,r)),this.pmtUnknownTypes[e]++,n},t._parsePMT=function(e,t,r,n){var i,a,o={audio:-1,avc:-1,id3:-1,isAAC:!0};for(i=t+3+((15&e[t+1])<<8|e[t+2])-4,t+=12+((15&e[t+10])<<8|e[t+11]);t<i;){switch(a=(31&e[t+1])<<8|e[t+2],e[t]){case 207:if(!n){this._trackUnknownPmt(e[t],s.logger.warn,"ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:-1===o.audio&&(o.audio=a);break;case 21:-1===o.id3&&(o.id3=a);break;case 219:if(!n){this._trackUnknownPmt(e[t],s.logger.warn,"H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:-1===o.avc&&(o.avc=a);break;case 3:case 4:r?-1===o.audio&&(o.audio=a,o.isAAC=!1):this._trackUnknownPmt(e[t],s.logger.warn,"MPEG audio found, not supported in this browser");break;case 36:this._trackUnknownPmt(e[t],s.logger.warn,"Unsupported HEVC stream type found");break;default:this._trackUnknownPmt(e[t],s.logger.log,"Unknown stream type:"+e[t])}t+=5+((15&e[t+3])<<8|e[t+4])}return o},t._parsePES=function(e){var t,r,n,i,a,o,l,u,d=0,c=e.data;if(!e||0===e.size)return null;for(;c[0].length<19&&c.length>1;){var h=new Uint8Array(c[0].length+c[1].length);h.set(c[0]),h.set(c[1],c[0].length),c[0]=h,c.splice(1,1)}if(1===((t=c[0])[0]<<16)+(t[1]<<8)+t[2]){if((n=(t[4]<<8)+t[5])&&n>e.size-6)return null;if(192&(r=t[7])&&(o=536870912*(14&t[9])+4194304*(255&t[10])+16384*(254&t[11])+128*(255&t[12])+(254&t[13])/2,64&r?o-(l=536870912*(14&t[14])+4194304*(255&t[15])+16384*(254&t[16])+128*(255&t[17])+(254&t[18])/2)>54e5&&(s.logger.warn(Math.round((o-l)/9e4)+"s delta between PTS and DTS, align them"),o=l):l=o),u=(i=t[8])+9,e.size<=u)return null;e.size-=u,a=new Uint8Array(e.size);for(var f=0,m=c.length;f<m;f++){var p=(t=c[f]).byteLength;if(u){if(u>p){u-=p;continue}t=t.subarray(u),p-=u,u=0}a.set(t,d),d+=p}return n&&(n-=i+3),{data:a,pts:o,dts:l,len:n}}return null},t.pushAccesUnit=function(e,t){if(e.units.length&&e.frame){var r=t.samples,n=r.length;if(isNaN(e.pts)){if(!n)return void t.dropped++;var i=r[n-1];e.pts=i.pts,e.dts=i.dts}!this.config.forceKeyFrameOnDiscontinuity||!0===e.key||t.sps&&(n||this.contiguous)?(e.id=n,r.push(e)):t.dropped++}e.debug.length&&s.logger.log(e.pts+"/"+e.dts+":"+e.debug)},t._parseAVCPES=function(e,t){var r,n,i,a=this,o=this._avcTrack,s=this._parseAVCNALu(e.data),l=this.avcSample,u=!1,d=this.pushAccesUnit.bind(this),c=function(e,t,r,n){return{key:e,pts:t,dts:r,units:[],debug:n}};e.data=null,l&&s.length&&!o.audFound&&(d(l,o),l=this.avcSample=c(!1,e.pts,e.dts,"")),s.forEach((function(t){switch(t.type){case 1:n=!0,l||(l=a.avcSample=c(!0,e.pts,e.dts,"")),l.frame=!0;var s=t.data;if(u&&s.length>4){var h=new w(s).readSliceType();2!==h&&4!==h&&7!==h&&9!==h||(l.key=!0)}break;case 5:n=!0,l||(l=a.avcSample=c(!0,e.pts,e.dts,"")),l.key=!0,l.frame=!0;break;case 6:n=!0,(r=new w(a.discardEPB(t.data))).readUByte();for(var f=0,m=0,p=!1,g=0;!p&&r.bytesAvailable>1;){f=0;do{f+=g=r.readUByte()}while(255===g);m=0;do{m+=g=r.readUByte()}while(255===g);if(4===f&&0!==r.bytesAvailable){if(p=!0,181===r.readUByte()&&49===r.readUShort()&&1195456820===r.readUInt()&&3===r.readUByte()){var v=r.readUByte(),y=31&v,b=[v,r.readUByte()];for(i=0;i<y;i++)b.push(r.readUByte()),b.push(r.readUByte()),b.push(r.readUByte());a._insertSampleInOrder(a._txtTrack.samples,{type:3,pts:e.pts,bytes:b})}}else if(5===f&&0!==r.bytesAvailable){if(p=!0,m>16){var M=[];for(i=0;i<16;i++)M.push(r.readUByte().toString(16)),3!==i&&5!==i&&7!==i&&9!==i||M.push("-");var L=m-16,T=new Uint8Array(L);for(i=0;i<L;i++)T[i]=r.readUByte();a._insertSampleInOrder(a._txtTrack.samples,{pts:e.pts,payloadType:f,uuid:M.join(""),userDataBytes:T,userData:Object(_.utf8ArrayToStr)(T.buffer)})}}else if(m<r.bytesAvailable)for(i=0;i<m;i++)r.readUByte()}break;case 7:if(n=!0,u=!0,!o.sps){var x=(r=new w(t.data)).readSPS();o.width=x.width,o.height=x.height,o.pixelRatio=x.pixelRatio,o.sps=[t.data],o.duration=a._duration;var k=t.data.subarray(1,4),S="avc1.";for(i=0;i<3;i++){var D=k[i].toString(16);D.length<2&&(D="0"+D),S+=D}o.codec=S}break;case 8:n=!0,o.pps||(o.pps=[t.data]);break;case 9:n=!1,o.audFound=!0,l&&d(l,o),l=a.avcSample=c(!1,e.pts,e.dts,"");break;case 12:n=!1;break;default:n=!1,l&&(l.debug+="unknown NAL "+t.type+" ")}l&&n&&l.units.push(t)})),t&&l&&(d(l,o),this.avcSample=null)},t._insertSampleInOrder=function(e,t){var r=e.length;if(r>0){if(t.pts>=e[r-1].pts)e.push(t);else for(var n=r-1;n>=0;n--)if(t.pts<e[n].pts){e.splice(n,0,t);break}}else e.push(t)},t._getLastNalUnit=function(){var e,t=this.avcSample;if(!t||0===t.units.length){var r=this._avcTrack.samples;t=r[r.length-1]}if(t){var n=t.units;e=n[n.length-1]}return e},t._parseAVCNALu=function(e){var t,r,n,i,a=0,o=e.byteLength,s=this._avcTrack,l=s.naluState||0,u=l,d=[],c=-1;for(-1===l&&(c=0,i=31&e[0],l=0,a=1);a<o;)if(t=e[a++],l)if(1!==l)if(t)if(1===t){if(c>=0)n={data:e.subarray(c,a-l-1),type:i},d.push(n);else{var h=this._getLastNalUnit();if(h&&(u&&a<=4-u&&h.state&&(h.data=h.data.subarray(0,h.data.byteLength-u)),(r=a-l-1)>0)){var f=new Uint8Array(h.data.byteLength+r);f.set(h.data,0),f.set(e.subarray(0,r),h.data.byteLength),h.data=f}}a<o?(c=a,i=31&e[a],l=0):l=-1}else l=0;else l=3;else l=t?0:2;else l=t?0:1;if(c>=0&&l>=0&&(n={data:e.subarray(c,o),type:i,state:l},d.push(n)),0===d.length){var m=this._getLastNalUnit();if(m){var p=new Uint8Array(m.data.byteLength+e.byteLength);p.set(m.data,0),p.set(e,m.data.byteLength),m.data=p}}return s.naluState=l,d},t.discardEPB=function(e){for(var t,r,n=e.byteLength,i=[],a=1;a<n-2;)0===e[a]&&0===e[a+1]&&3===e[a+2]?(i.push(a+2),a+=2):a++;if(0===i.length)return e;t=n-i.length,r=new Uint8Array(t);var o=0;for(a=0;a<t;o++,a++)o===i[0]&&(o++,i.shift()),r[a]=e[o];return r},t._parseAACPES=function(e){var t,r,a,o,l,u,d,c=this._audioTrack,f=e.data,_=e.pts,v=this.aacOverFlow,y=this.aacLastPTS;if(v){var b=new Uint8Array(v.byteLength+f.byteLength);b.set(v,0),b.set(f,v.byteLength),f=b}for(a=0,l=f.length;a<l-1&&!h(f,a);a++);if(!a||(a<l-1?(u="AAC PES did not start with ADTS header,offset:"+a,d=!1):(u="no ADTS header found in AAC PES",d=!0),s.logger.warn("parsing error:"+u),this.observer.trigger(n.default.ERROR,{type:i.ErrorTypes.MEDIA_ERROR,details:i.ErrorDetails.FRAG_PARSING_ERROR,fatal:d,reason:u}),!d)){if(m(c,this.observer,f,a,this.audioCodec),r=0,t=p(c.samplerate),v&&y){var M=y+t;Math.abs(M-_)>1&&(s.logger.log("AAC: align PTS for overlapping frames by "+Math.round((M-_)/90)),_=M)}for(;a<l;){if(h(f,a)){if(a+5<l){var w=g(c,f,a,_,r);if(w){a+=w.length,o=w.sample.pts,r++;continue}}break}a++}v=a<l?f.subarray(a,l):null,this.aacOverFlow=v,this.aacLastPTS=o}},t._parseMPEGPES=function(e){for(var t=e.data,r=t.length,n=0,i=0,a=e.pts;i<r;)if(M.isHeader(t,i)){var o=M.appendFrame(this._audioTrack,t,i,a,n);if(!o)break;i+=o.length,n++}else i++},t._parseID3PES=function(e){this._id3Track.samples.push(e)},e}(),k=function(){function e(e,t,r){this.observer=e,this.config=r,this.remuxer=t}var t=e.prototype;return t.resetInitSegment=function(e,t,r,n){this._audioTrack={container:"audio/mpeg",type:"audio",id:-1,sequenceNumber:0,isAAC:!1,samples:[],len:0,manifestCodec:t,duration:n,inputTimeScale:9e4}},t.resetTimeStamp=function(){},e.probe=function(e){var t,r,n=_.default.getID3Data(e,0);if(n&&void 0!==_.default.getTimeStamp(n))for(t=n.length,r=Math.min(e.length-1,t+100);t<r;t++)if(M.probe(e,t))return s.logger.log("MPEG Audio sync word found !"),!0;return!1},t.append=function(e,t,r,n){for(var i=_.default.getID3Data(e,0)||[],a=_.default.getTimeStamp(i),o=void 0!==a?90*a:9e4*t,s=i.length,l=e.length,u=0,d=0,c=this._audioTrack,h=[{pts:o,dts:o,data:i}];s<l;)if(M.isHeader(e,s)){var f=M.appendFrame(c,e,s,o,u);if(!f)break;s+=f.length,d=f.sample.pts,u++}else _.default.isHeader(e,s)?(i=_.default.getID3Data(e,s),h.push({pts:d,dts:d,data:i}),s+=i.length):s++;this.remuxer.remux(c,{samples:[]},{samples:h,inputTimeScale:9e4},{samples:[]},t,r,n)},t.destroy=function(){},e}(),S=function(){function e(){}return e.getSilentFrame=function(e,t){switch(e){case"mp4a.40.2":if(1===t)return new Uint8Array([0,200,0,128,35,128]);if(2===t)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(1===t)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null},e}(),D=Math.pow(2,32)-1,A=function(){function e(){}return e.init=function(){var t;for(t in e.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]},e.types)e.types.hasOwnProperty(t)&&(e.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);var r=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),n=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);e.HDLR_TYPES={video:r,audio:n};var i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),a=new Uint8Array([0,0,0,0,0,0,0,0]);e.STTS=e.STSC=e.STCO=a,e.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),e.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),e.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),e.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var o=new Uint8Array([105,115,111,109]),s=new Uint8Array([97,118,99,49]),l=new Uint8Array([0,0,0,1]);e.FTYP=e.box(e.types.ftyp,o,l,o,s),e.DINF=e.box(e.types.dinf,e.box(e.types.dref,i))},e.box=function(e){for(var t,r=Array.prototype.slice.call(arguments,1),n=8,i=r.length,a=i;i--;)n+=r[i].byteLength;for((t=new Uint8Array(n))[0]=n>>24&255,t[1]=n>>16&255,t[2]=n>>8&255,t[3]=255&n,t.set(e,4),i=0,n=8;i<a;i++)t.set(r[i],n),n+=r[i].byteLength;return t},e.hdlr=function(t){return e.box(e.types.hdlr,e.HDLR_TYPES[t])},e.mdat=function(t){return e.box(e.types.mdat,t)},e.mdhd=function(t,r){r*=t;var n=Math.floor(r/(D+1)),i=Math.floor(r%(D+1));return e.box(e.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24,n>>16&255,n>>8&255,255&n,i>>24,i>>16&255,i>>8&255,255&i,85,196,0,0]))},e.mdia=function(t){return e.box(e.types.mdia,e.mdhd(t.timescale,t.duration),e.hdlr(t.type),e.minf(t))},e.mfhd=function(t){return e.box(e.types.mfhd,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t]))},e.minf=function(t){return"audio"===t.type?e.box(e.types.minf,e.box(e.types.smhd,e.SMHD),e.DINF,e.stbl(t)):e.box(e.types.minf,e.box(e.types.vmhd,e.VMHD),e.DINF,e.stbl(t))},e.moof=function(t,r,n){return e.box(e.types.moof,e.mfhd(t),e.traf(n,r))},e.moov=function(t){for(var r=t.length,n=[];r--;)n[r]=e.trak(t[r]);return e.box.apply(null,[e.types.moov,e.mvhd(t[0].timescale,t[0].duration)].concat(n).concat(e.mvex(t)))},e.mvex=function(t){for(var r=t.length,n=[];r--;)n[r]=e.trex(t[r]);return e.box.apply(null,[e.types.mvex].concat(n))},e.mvhd=function(t,r){r*=t;var n=Math.floor(r/(D+1)),i=Math.floor(r%(D+1)),a=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24,n>>16&255,n>>8&255,255&n,i>>24,i>>16&255,i>>8&255,255&i,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return e.box(e.types.mvhd,a)},e.sdtp=function(t){var r,n,i=t.samples||[],a=new Uint8Array(4+i.length);for(n=0;n<i.length;n++)r=i[n].flags,a[n+4]=r.dependsOn<<4|r.isDependedOn<<2|r.hasRedundancy;return e.box(e.types.sdtp,a)},e.stbl=function(t){return e.box(e.types.stbl,e.stsd(t),e.box(e.types.stts,e.STTS),e.box(e.types.stsc,e.STSC),e.box(e.types.stsz,e.STSZ),e.box(e.types.stco,e.STCO))},e.avc1=function(t){var r,n,i,a=[],o=[];for(r=0;r<t.sps.length;r++)i=(n=t.sps[r]).byteLength,a.push(i>>>8&255),a.push(255&i),a=a.concat(Array.prototype.slice.call(n));for(r=0;r<t.pps.length;r++)i=(n=t.pps[r]).byteLength,o.push(i>>>8&255),o.push(255&i),o=o.concat(Array.prototype.slice.call(n));var s=e.box(e.types.avcC,new Uint8Array([1,a[3],a[4],a[5],255,224|t.sps.length].concat(a).concat([t.pps.length]).concat(o))),l=t.width,u=t.height,d=t.pixelRatio[0],c=t.pixelRatio[1];return e.box(e.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,l>>8&255,255&l,u>>8&255,255&u,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),s,e.box(e.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),e.box(e.types.pasp,new Uint8Array([d>>24,d>>16&255,d>>8&255,255&d,c>>24,c>>16&255,c>>8&255,255&c])))},e.esds=function(e){var t=e.config.length;return new Uint8Array([0,0,0,0,3,23+t,0,1,0,4,15+t,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([t]).concat(e.config).concat([6,1,2]))},e.mp4a=function(t){var r=t.samplerate;return e.box(e.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t.channelCount,0,16,0,0,0,0,r>>8&255,255&r,0,0]),e.box(e.types.esds,e.esds(t)))},e.mp3=function(t){var r=t.samplerate;return e.box(e.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t.channelCount,0,16,0,0,0,0,r>>8&255,255&r,0,0]))},e.stsd=function(t){return"audio"===t.type?t.isAAC||"mp3"!==t.codec?e.box(e.types.stsd,e.STSD,e.mp4a(t)):e.box(e.types.stsd,e.STSD,e.mp3(t)):e.box(e.types.stsd,e.STSD,e.avc1(t))},e.tkhd=function(t){var r=t.id,n=t.duration*t.timescale,i=t.width,a=t.height,o=Math.floor(n/(D+1)),s=Math.floor(n%(D+1));return e.box(e.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,r>>24&255,r>>16&255,r>>8&255,255&r,0,0,0,0,o>>24,o>>16&255,o>>8&255,255&o,s>>24,s>>16&255,s>>8&255,255&s,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,i>>8&255,255&i,0,0,a>>8&255,255&a,0,0]))},e.traf=function(t,r){var n=e.sdtp(t),i=t.id,a=Math.floor(r/(D+1)),o=Math.floor(r%(D+1));return e.box(e.types.traf,e.box(e.types.tfhd,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,255&i])),e.box(e.types.tfdt,new Uint8Array([1,0,0,0,a>>24,a>>16&255,a>>8&255,255&a,o>>24,o>>16&255,o>>8&255,255&o])),e.trun(t,n.length+16+20+8+16+8+8),n)},e.trak=function(t){return t.duration=t.duration||4294967295,e.box(e.types.trak,e.tkhd(t),e.mdia(t))},e.trex=function(t){var r=t.id;return e.box(e.types.trex,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},e.trun=function(t,r){var n,i,a,o,s,l,u=t.samples||[],d=u.length,c=12+16*d,h=new Uint8Array(c);for(r+=8+c,h.set([0,0,15,1,d>>>24&255,d>>>16&255,d>>>8&255,255&d,r>>>24&255,r>>>16&255,r>>>8&255,255&r],0),n=0;n<d;n++)a=(i=u[n]).duration,o=i.size,s=i.flags,l=i.cts,h.set([a>>>24&255,a>>>16&255,a>>>8&255,255&a,o>>>24&255,o>>>16&255,o>>>8&255,255&o,s.isLeading<<2|s.dependsOn,s.isDependedOn<<6|s.hasRedundancy<<4|s.paddingValue<<1|s.isNonSync,61440&s.degradPrio,15&s.degradPrio,l>>>24&255,l>>>16&255,l>>>8&255,255&l],12+16*n);return e.box(e.types.trun,h)},e.initSegment=function(t){e.types||e.init();var r,n=e.moov(t);return(r=new Uint8Array(e.FTYP.byteLength+n.byteLength)).set(e.FTYP),r.set(n,e.FTYP.byteLength),r},e}();function E(e,t,r,n){void 0===r&&(r=1),void 0===n&&(n=!1);var i=e*t*r;return n?Math.round(i):i}function Y(e,t){return void 0===t&&(t=!1),E(e,1e3,1/9e4,t)}function O(e,t){return void 0===t&&(t=1),E(e,9e4,1/t)}var P=O(10),R=O(.2),C=null;function I(e,t){var r;if(void 0===t)return e;for(r=t<e?-8589934592:8589934592;Math.abs(e-t)>4294967296;)e+=r;return e}var F,j=function(){function e(e,t,r,n){if(this.observer=e,this.config=t,this.typeSupported=r,this.ISGenerated=!1,null===C){var i=navigator.userAgent.match(/Chrome\/(\d+)/i);C=i?parseInt(i[1]):0}}var t=e.prototype;return t.destroy=function(){},t.resetTimeStamp=function(e){this._initPTS=this._initDTS=e},t.resetInitSegment=function(){this.ISGenerated=!1},t.getVideoStartPts=function(e){var t=!1,r=e.reduce((function(e,r){var n=r.pts-e;return n<-4294967296?(t=!0,I(e,r.pts)):n>0?e:r.pts}),e[0].pts);return t&&s.logger.debug("PTS rollover detected"),r},t.remux=function(e,t,r,i,a,o,l){if(this.ISGenerated||this.generateIS(e,t,a),this.ISGenerated){var u=e.samples.length,d=t.samples.length,c=a,h=a;if(u&&d){var f=this.getVideoStartPts(t.samples),m=(I(e.samples[0].pts,f)-f)/t.inputTimeScale;c+=Math.max(0,m),h+=Math.max(0,-m)}if(u){e.timescale||(s.logger.warn("regenerate InitSegment as audio detected"),this.generateIS(e,t,a));var p,g=this.remuxAudio(e,c,o,l);d&&(g&&(p=g.endPTS-g.startPTS),t.timescale||(s.logger.warn("regenerate InitSegment as video detected"),this.generateIS(e,t,a)),this.remuxVideo(t,h,o,p))}else if(d){var _=this.remuxVideo(t,h,o,0,l);_&&e.codec&&this.remuxEmptyAudio(e,c,o,_)}}r.samples.length&&this.remuxID3(r,a),i.samples.length&&this.remuxText(i,a),this.observer.trigger(n.default.FRAG_PARSED)},t.generateIS=function(e,t,r){var a,o,l=this.observer,u=e.samples,d=t.samples,c=this.typeSupported,h="audio/mp4",f={},m={tracks:f},p=void 0===this._initPTS;if(p&&(a=o=1/0),e.config&&u.length&&(e.timescale=e.samplerate,s.logger.log("audio sampling rate : "+e.samplerate),e.isAAC||(c.mpeg?(h="audio/mpeg",e.codec=""):c.mp3&&(e.codec="mp3")),f.audio={container:h,codec:e.codec,initSegment:!e.isAAC&&c.mpeg?new Uint8Array:A.initSegment([e]),metadata:{channelCount:e.channelCount}},p&&(a=o=u[0].pts-Math.round(e.inputTimeScale*r))),t.sps&&t.pps&&d.length){var g=t.inputTimeScale;if(t.timescale=g,f.video={container:"video/mp4",codec:t.codec,initSegment:A.initSegment([t]),metadata:{width:t.width,height:t.height}},p){var _=this.getVideoStartPts(d),v=Math.round(g*r);o=Math.min(o,I(d[0].dts,_)-v),a=Math.min(a,_-v),this.observer.trigger(n.default.INIT_PTS_FOUND,{initPTS:a})}}else p&&f.audio&&this.observer.trigger(n.default.INIT_PTS_FOUND,{initPTS:a});Object.keys(f).length?(l.trigger(n.default.FRAG_PARSING_INIT_SEGMENT,m),this.ISGenerated=!0,p&&(this._initPTS=a,this._initDTS=o)):l.trigger(n.default.ERROR,{type:i.ErrorTypes.MEDIA_ERROR,details:i.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"no audio/video samples found"})},t.remuxVideo=function(e,t,r,a){var o,l,u,d,c,h=e.timescale,f=e.samples,m=[],p=f.length,g=this._initPTS,_=8,v=Number.POSITIVE_INFINITY,y=Number.NEGATIVE_INFINITY,b=0,M=!1,w=this.nextAvcDts;if(0!==p){r||(w=t*h-(f[0].pts-I(f[0].dts,f[0].pts)));for(var L=0;L<p;L++){var T=f[L];T.pts=I(T.pts-g,w),T.dts=I(T.dts-g,w),T.dts>T.pts&&(b=Math.max(Math.min(b,T.pts-T.dts),-1*R)),T.dts<f[L>0?L-1:L].dts&&(M=!0)}M&&f.sort((function(e,t){var r=e.dts-t.dts,n=e.pts-t.pts;return r||n||e.id-t.id})),d=f[0].dts,c=f[p-1].dts;var x=Math.round((c-d)/(p-1));if(b<0){if(b<-2*x){s.logger.warn("PTS < DTS detected in video samples, offsetting DTS from PTS by "+Y(-x,!0)+" ms");for(var k=b,S=0;S<p;S++)f[S].dts=k=Math.max(k,f[S].pts-x),f[S].pts=Math.max(k,f[S].pts)}else{s.logger.warn("PTS < DTS detected in video samples, shifting DTS by "+Y(b,!0)+" ms to overcome this issue");for(var D=0;D<p;D++)f[D].dts=f[D].dts+b}d=f[0].dts,c=f[p-1].dts}if(r){var E=d-w,O=E>x;if(O||E<-1){O?s.logger.warn("AVC: "+Y(E,!0)+" ms ("+E+"dts) hole between fragments detected, filling it"):s.logger.warn("AVC: "+Y(-E,!0)+" ms ("+E+"dts) overlapping between fragments detected"),d=w;var P=f[0].pts-E;f[0].dts=d,f[0].pts=P,s.logger.log("Video: First PTS/DTS adjusted: "+Y(P,!0)+"/"+Y(d,!0)+", delta: "+Y(E,!0)+" ms")}}C&&C<75&&(d=Math.max(0,d));for(var F=0,j=0,N=0;N<p;N++){for(var H=f[N],B=H.units,U=B.length,W=0,z=0;z<U;z++)W+=B[z].data.length;j+=W,F+=U,H.length=W,H.dts=Math.max(H.dts,d),H.pts=Math.max(H.pts,H.dts,0),v=Math.min(H.pts,v),y=Math.max(H.pts,y)}c=f[p-1].dts;var V=j+4*F+8;try{l=new Uint8Array(V)}catch(e){return void this.observer.trigger(n.default.ERROR,{type:i.ErrorTypes.MUX_ERROR,details:i.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:V,reason:"fail allocating video mdat "+V})}var G=new DataView(l.buffer);G.setUint32(0,V),l.set(A.types.mdat,4);for(var K=0;K<p;K++){for(var q,J=f[K],X=J.units,$=0,Z=0,Q=X.length;Z<Q;Z++){var ee=X[Z],te=ee.data,re=ee.data.byteLength;G.setUint32(_,re),_+=4,l.set(te,_),_+=re,$+=4+re}if(K<p-1)o=f[K+1].dts-J.dts;else{var ne=this.config,ie=J.dts-f[K>0?K-1:K].dts;if(ne.stretchShortVideoTrack){var ae=ne.maxBufferHole,oe=Math.floor(ae*h),se=(a?v+a*h:this.nextAudioPts)-J.pts;se>oe?((o=se-ie)<0&&(o=ie),s.logger.log("It is approximately "+Y(se,!1)+" ms to the next segment; using duration "+Y(o,!1)+" ms for the last video frame.")):o=ie}else o=ie}q=Math.round(J.pts-J.dts),m.push({size:$,duration:o,cts:q,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:J.key?2:1,isNonSync:J.key?0:1}})}this.nextAvcDts=c+o;var le=e.dropped;if(e.nbNalu=0,e.dropped=0,m.length&&navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var ue=m[0].flags;ue.dependsOn=2,ue.isNonSync=0}e.samples=m,u=A.moof(e.sequenceNumber++,d,e),e.samples=[];var de={data1:u,data2:l,startPTS:v/h,endPTS:(y+o)/h,startDTS:d/h,endDTS:this.nextAvcDts/h,type:"video",hasAudio:!1,hasVideo:!0,nb:m.length,dropped:le};return this.observer.trigger(n.default.FRAG_PARSING_DATA,de),de}},t.remuxAudio=function(e,t,r,a){var o,l,u,d,c,h,f=e.inputTimeScale,m=e.timescale,p=f/m,g=(e.isAAC?1024:1152)*p,_=this._initPTS,v=!e.isAAC&&this.typeSupported.mpeg,y=v?0:8,b=e.samples,M=[],w=this.nextAudioPts;if(r|=b.length&&w&&(a&&Math.abs(t-w/f)<.1||Math.abs(b[0].pts-w-_)<20*g),b.forEach((function(e){e.pts=e.dts=I(e.pts-_,t*f)})),0!==(b=b.filter((function(e){return e.pts>=0}))).length){if(r||(w=a?Math.max(0,t*f):b[0].pts),e.isAAC)for(var L=this.config.maxAudioFramesDrift,T=0,x=w;T<b.length;){var k=b[T],D=k.pts,E=D-x;if(E<=-L*g)r||T>0?(s.logger.warn("Dropping 1 audio frame @ "+Y(x,!0)/1e3+"s due to "+Y(E,!0)+" ms overlap."),b.splice(T,1)):(s.logger.warn("Audio frame @ "+Y(D,!0)/1e3+"s overlaps nextAudioPts by "+Y(E,!0)+" ms."),x=D+g,T++);else if(E>=L*g&&E<P&&x){var O=Math.round(E/g);s.logger.warn("Injecting "+O+" audio frames @ "+Y(x,!0)/1e3+"s due to "+Y(E,!0)+" ms gap.");for(var R=0;R<O;R++){var C=Math.max(x,0);(l=S.getSilentFrame(e.manifestCodec||e.codec,e.channelCount))||(s.logger.log("Unable to get silent frame for given audio codec; duplicating last frame instead."),l=k.unit.subarray()),b.splice(T,0,{unit:l,pts:C,dts:C}),x+=g,T++}k.pts=k.dts=x,x+=g,T++}else Math.abs(E),k.pts=k.dts=x,x+=g,T++}for(var F=b.length,j=0;F--;)j+=b[F].unit.byteLength;for(var N=0,H=b.length;N<H;N++){var B=b[N],U=B.unit,W=B.pts;if(void 0!==h&&o)o.duration=Math.round((W-h)/p);else{var z=W-w,V=0;if(r&&e.isAAC&&z){if(z>0&&z<P)V=Math.round((W-w)/g),s.logger.log(Y(z,!0)+" ms hole between AAC samples detected,filling it"),V>0&&((l=S.getSilentFrame(e.manifestCodec||e.codec,e.channelCount))||(l=U.subarray()),j+=V*l.length);else if(z<-12){s.logger.log("drop overlapping AAC sample, expected/parsed/delta: "+Y(w,!0)+" ms / "+Y(W,!0)+" ms / "+Y(-z,!0)+" ms"),j-=U.byteLength;continue}W=w}if(c=W,!(j>0))return;j+=y;try{u=new Uint8Array(j)}catch(e){return void this.observer.trigger(n.default.ERROR,{type:i.ErrorTypes.MUX_ERROR,details:i.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:j,reason:"fail allocating audio mdat "+j})}v||(new DataView(u.buffer).setUint32(0,j),u.set(A.types.mdat,4));for(var G=0;G<V;G++)(l=S.getSilentFrame(e.manifestCodec||e.codec,e.channelCount))||(s.logger.log("Unable to get silent frame for given audio codec; duplicating this frame instead."),l=U.subarray()),u.set(l,y),y+=l.byteLength,o={size:l.byteLength,cts:0,duration:1024,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:1}},M.push(o)}u.set(U,y);var K=U.byteLength;y+=K,o={size:K,cts:0,duration:0,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:1}},M.push(o),h=W}var q=0;if((F=M.length)>=2&&(q=M[F-2].duration,o.duration=q),F){this.nextAudioPts=w=h+p*q,e.samples=M,d=v?new Uint8Array:A.moof(e.sequenceNumber++,c/p,e),e.samples=[];var J=c/f,X=w/f,$={data1:d,data2:u,startPTS:J,endPTS:X,startDTS:J,endDTS:X,type:"audio",hasAudio:!0,hasVideo:!1,nb:F};return this.observer.trigger(n.default.FRAG_PARSING_DATA,$),$}return null}},t.remuxEmptyAudio=function(e,t,r,n){var i=e.inputTimeScale,a=i/(e.samplerate?e.samplerate:i),o=this.nextAudioPts,l=(void 0!==o?o:n.startDTS*i)+this._initDTS,u=n.endDTS*i+this._initDTS,d=1024*a,c=Math.ceil((u-l)/d),h=S.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);if(s.logger.warn("remux empty Audio"),h){for(var f=[],m=0;m<c;m++){var p=l+m*d;f.push({unit:h,pts:p,dts:p})}e.samples=f,this.remuxAudio(e,t,r)}else s.logger.trace("Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec!")},t.remuxID3=function(e,t){var r=e.samples.length;if(r){for(var i=e.inputTimeScale,a=this._initPTS,o=this._initDTS,s=0;s<r;s++){var l=e.samples[s];l.pts=I(l.pts-a,t*i)/i,l.dts=I(l.dts-o,t*i)/i}this.observer.trigger(n.default.FRAG_PARSING_METADATA,{samples:e.samples}),e.samples=[]}},t.remuxText=function(e,t){var r=e.samples.length,i=e.inputTimeScale,a=this._initPTS;if(r){for(var o=0;o<r;o++){var s=e.samples[o];s.pts=I(s.pts-a,t*i)/i}e.samples.sort((function(e,t){return e.pts-t.pts})),this.observer.trigger(n.default.FRAG_PARSING_USERDATA,{samples:e.samples})}e.samples=[]},e}(),N=function(){function e(e){this.observer=e}var t=e.prototype;return t.destroy=function(){},t.resetTimeStamp=function(){},t.resetInitSegment=function(){},t.remux=function(e,t,r,i,a,o,s,l){var u=this.observer,d="";e&&(d+="audio"),t&&(d+="video"),u.trigger(n.default.FRAG_PARSING_DATA,{data1:l,startPTS:a,startDTS:a,type:d,hasAudio:!!e,hasVideo:!!t,nb:1,dropped:0}),u.trigger(n.default.FRAG_PARSED)},e}(),H=Object(l.getSelfScope)();try{F=H.performance.now.bind(H.performance)}catch(e){s.logger.debug("Unable to use Performance API on this environment"),F=H.Date.now}var B=function(){function e(e,t,r,n){this.observer=e,this.typeSupported=t,this.config=r,this.vendor=n}var t=e.prototype;return t.destroy=function(){var e=this.demuxer;e&&e.destroy()},t.push=function(e,t,r,i,o,s,l,u,d,c,h,f){var m=this;if(e.byteLength>0&&null!=t&&null!=t.key&&"AES-128"===t.method){var p=this.decrypter;null==p&&(p=this.decrypter=new a.default(this.observer,this.config));var g=F();p.decrypt(e,t.key.buffer,t.iv.buffer,(function(e){var a=F();m.observer.trigger(n.default.FRAG_DECRYPTED,{stats:{tstart:g,tdecrypt:a}}),m.pushDecrypted(new Uint8Array(e),t,new Uint8Array(r),i,o,s,l,u,d,c,h,f)}))}else this.pushDecrypted(new Uint8Array(e),t,new Uint8Array(r),i,o,s,l,u,d,c,h,f)},t.pushDecrypted=function(e,t,r,a,o,s,l,u,d,c,h,f){var m=this.demuxer,p=this.remuxer;if(!m||l||u){for(var g,_=this.observer,b=this.typeSupported,M=this.config,w=[{demux:x,remux:j},{demux:y.default,remux:N},{demux:v,remux:j},{demux:k,remux:j}],L=0,T=w.length;L<T&&!(g=w[L]).demux.probe(e);L++);if(!g)return void _.trigger(n.default.ERROR,{type:i.ErrorTypes.MEDIA_ERROR,details:i.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"});p&&p instanceof g.remux||(p=new g.remux(_,M,b,this.vendor)),m&&m instanceof g.demux||(m=new g.demux(_,p,M,b),this.probe=g.demux.probe),this.demuxer=m,this.remuxer=p}(l||u)&&(m.resetInitSegment(r,a,o,c),p.resetInitSegment()),l&&(m.resetTimeStamp(f),p.resetTimeStamp(f)),"function"==typeof m.setDecryptData&&m.setDecryptData(t),m.append(e,s,d,h)},e}();t.default=B},"./src/demux/demuxer-worker.js":
204
- /*!*************************************!*\
205
- !*** ./src/demux/demuxer-worker.js ***!
206
- \*************************************/
207
- /*! exports provided: default */
208
- /*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./src/demux/demuxer.js (referenced with require.resolve) */function(e,t,r){"use strict";r.r(t);var n=r(/*! ../demux/demuxer-inline */"./src/demux/demuxer-inline.js"),i=r(/*! ../events */"./src/events.js"),a=r(/*! ../utils/logger */"./src/utils/logger.js"),o=r(/*! eventemitter3 */"./node_modules/eventemitter3/index.js");t.default=function(e){var t=new o.EventEmitter;t.trigger=function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];t.emit.apply(t,[e,e].concat(n))},t.off=function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];t.removeListener.apply(t,[e].concat(n))};var r=function(t,r){e.postMessage({event:t,data:r})};e.addEventListener("message",(function(i){var o=i.data;switch(o.cmd){case"init":var s=JSON.parse(o.config);e.demuxer=new n.default(t,o.typeSupported,s,o.vendor),Object(a.enableLogs)(s.debug),r("init",null);break;case"demux":e.demuxer.push(o.data,o.decryptdata,o.initSegment,o.audioCodec,o.videoCodec,o.timeOffset,o.discontinuity,o.trackSwitch,o.contiguous,o.duration,o.accurateTimeOffset,o.defaultInitPTS)}})),t.on(i.default.FRAG_DECRYPTED,r),t.on(i.default.FRAG_PARSING_INIT_SEGMENT,r),t.on(i.default.FRAG_PARSED,r),t.on(i.default.ERROR,r),t.on(i.default.FRAG_PARSING_METADATA,r),t.on(i.default.FRAG_PARSING_USERDATA,r),t.on(i.default.INIT_PTS_FOUND,r),t.on(i.default.FRAG_PARSING_DATA,(function(t,r){var n=[],i={event:t,data:r};r.data1&&(i.data1=r.data1.buffer,n.push(r.data1.buffer),delete r.data1),r.data2&&(i.data2=r.data2.buffer,n.push(r.data2.buffer),delete r.data2),e.postMessage(i,n)}))}},"./src/demux/id3.js":
209
- /*!**************************!*\
210
- !*** ./src/demux/id3.js ***!
211
- \**************************/
212
- /*! exports provided: default, utf8ArrayToStr */function(e,t,r){"use strict";r.r(t),r.d(t,"utf8ArrayToStr",(function(){return s}));var n,i=r(/*! ../utils/get-self-scope */"./src/utils/get-self-scope.js"),a=function(){function e(){}return e.isHeader=function(e,t){return t+10<=e.length&&73===e[t]&&68===e[t+1]&&51===e[t+2]&&e[t+3]<255&&e[t+4]<255&&e[t+6]<128&&e[t+7]<128&&e[t+8]<128&&e[t+9]<128},e.isFooter=function(e,t){return t+10<=e.length&&51===e[t]&&68===e[t+1]&&73===e[t+2]&&e[t+3]<255&&e[t+4]<255&&e[t+6]<128&&e[t+7]<128&&e[t+8]<128&&e[t+9]<128},e.getID3Data=function(t,r){for(var n=r,i=0;e.isHeader(t,r);)i+=10,i+=e._readSize(t,r+6),e.isFooter(t,r+10)&&(i+=10),r+=i;if(i>0)return t.subarray(n,n+i)},e._readSize=function(e,t){var r=0;return r=(127&e[t])<<21,r|=(127&e[t+1])<<14,r|=(127&e[t+2])<<7,r|=127&e[t+3]},e.getTimeStamp=function(t){for(var r=e.getID3Frames(t),n=0;n<r.length;n++){var i=r[n];if(e.isTimeStampFrame(i))return e._readTimeStamp(i)}},e.isTimeStampFrame=function(e){return e&&"PRIV"===e.key&&"com.apple.streaming.transportStreamTimestamp"===e.info},e._getFrameData=function(t){var r=String.fromCharCode(t[0],t[1],t[2],t[3]),n=e._readSize(t,4);return{type:r,size:n,data:t.subarray(10,10+n)}},e.getID3Frames=function(t){for(var r=0,n=[];e.isHeader(t,r);){for(var i=e._readSize(t,r+6),a=(r+=10)+i;r+8<a;){var o=e._getFrameData(t.subarray(r)),s=e._decodeFrame(o);s&&n.push(s),r+=o.size+10}e.isFooter(t,r)&&(r+=10)}return n},e._decodeFrame=function(t){return"PRIV"===t.type?e._decodePrivFrame(t):"W"===t.type[0]?e._decodeURLFrame(t):e._decodeTextFrame(t)},e._readTimeStamp=function(e){if(8===e.data.byteLength){var t=new Uint8Array(e.data),r=1&t[3],n=(t[4]<<23)+(t[5]<<15)+(t[6]<<7)+t[7];return n/=45,r&&(n+=47721858.84),Math.round(n)}},e._decodePrivFrame=function(t){if(!(t.size<2)){var r=e._utf8ArrayToStr(t.data,!0),n=new Uint8Array(t.data.subarray(r.length+1));return{key:t.type,info:r,data:n.buffer}}},e._decodeTextFrame=function(t){if(!(t.size<2)){if("TXXX"===t.type){var r=1,n=e._utf8ArrayToStr(t.data.subarray(r),!0);r+=n.length+1;var i=e._utf8ArrayToStr(t.data.subarray(r));return{key:t.type,info:n,data:i}}var a=e._utf8ArrayToStr(t.data.subarray(1));return{key:t.type,data:a}}},e._decodeURLFrame=function(t){if("WXXX"===t.type){if(t.size<2)return;var r=1,n=e._utf8ArrayToStr(t.data.subarray(r),!0);r+=n.length+1;var i=e._utf8ArrayToStr(t.data.subarray(r));return{key:t.type,info:n,data:i}}var a=e._utf8ArrayToStr(t.data);return{key:t.type,data:a}},e._utf8ArrayToStr=function(e,t){void 0===t&&(t=!1);var r=o();if(r){var n=r.decode(e);if(t){var i=n.indexOf("\0");return-1!==i?n.substring(0,i):n}return n.replace(/\0/g,"")}for(var a,s,l,u=e.length,d="",c=0;c<u;){if(0===(a=e[c++])&&t)return d;if(0!==a&&3!==a)switch(a>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:d+=String.fromCharCode(a);break;case 12:case 13:s=e[c++],d+=String.fromCharCode((31&a)<<6|63&s);break;case 14:s=e[c++],l=e[c++],d+=String.fromCharCode((15&a)<<12|(63&s)<<6|(63&l)<<0)}}return d},e}();function o(){var e=Object(i.getSelfScope)();return n||void 0===e.TextDecoder||(n=new e.TextDecoder("utf-8")),n}var s=a._utf8ArrayToStr;t.default=a},"./src/demux/mp4demuxer.js":
213
- /*!*********************************!*\
214
- !*** ./src/demux/mp4demuxer.js ***!
215
- \*********************************/
216
- /*! exports provided: default */function(e,t,r){"use strict";r.r(t);var n=r(/*! ../utils/logger */"./src/utils/logger.js"),i=r(/*! ../events */"./src/events.js"),a=Math.pow(2,32)-1,o=function(){function e(e,t){this.observer=e,this.remuxer=t}var t=e.prototype;return t.resetTimeStamp=function(e){this.initPTS=e},t.resetInitSegment=function(t,r,n,a){if(t&&t.byteLength){var o=this.initData=e.parseInitSegment(t);null==r&&(r="mp4a.40.5"),null==n&&(n="avc1.42e01e");var s={};o.audio&&o.video?s.audiovideo={container:"video/mp4",codec:r+","+n,initSegment:a?t:null}:(o.audio&&(s.audio={container:"audio/mp4",codec:r,initSegment:a?t:null}),o.video&&(s.video={container:"video/mp4",codec:n,initSegment:a?t:null})),this.observer.trigger(i.default.FRAG_PARSING_INIT_SEGMENT,{tracks:s})}else r&&(this.audioCodec=r),n&&(this.videoCodec=n)},e.probe=function(t){return e.findBox({data:t,start:0,end:Math.min(t.length,16384)},["moof"]).length>0},e.bin2str=function(e){return String.fromCharCode.apply(null,e)},e.readUint16=function(e,t){e.data&&(t+=e.start,e=e.data);var r=e[t]<<8|e[t+1];return r<0?65536+r:r},e.readUint32=function(e,t){e.data&&(t+=e.start,e=e.data);var r=e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3];return r<0?4294967296+r:r},e.writeUint32=function(e,t,r){e.data&&(t+=e.start,e=e.data),e[t]=r>>24,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r},e.findBox=function(t,r){var n,i,a,o,s,l,u=[];if(t.data?(s=t.start,a=t.end,t=t.data):(s=0,a=t.byteLength),!r.length)return null;for(n=s;n<a;)l=(i=e.readUint32(t,n))>1?n+i:a,e.bin2str(t.subarray(n+4,n+8))===r[0]&&(1===r.length?u.push({data:t,start:n+8,end:l}):(o=e.findBox({data:t,start:n+8,end:l},r.slice(1))).length&&(u=u.concat(o))),n=l;return u},e.parseSegmentIndex=function(t){var r,n=e.findBox(t,["moov"])[0],i=n?n.end:null,a=0,o=e.findBox(t,["sidx"]);if(!o||!o[0])return null;r=[];var s=(o=o[0]).data[0];a=0===s?8:16;var l=e.readUint32(o,a);a+=4,a+=0===s?8:16,a+=2;var u=o.end+0,d=e.readUint16(o,a);a+=2;for(var c=0;c<d;c++){var h=a,f=e.readUint32(o,h);h+=4;var m=2147483647&f;if(1==(2147483648&f)>>>31)return void console.warn("SIDX has hierarchical references (not supported)");var p=e.readUint32(o,h);h+=4,r.push({referenceSize:m,subsegmentDuration:p,info:{duration:p/l,start:u,end:u+m-1}}),u+=m,a=h+=4}return{earliestPresentationTime:0,timescale:l,version:s,referencesCount:d,references:r,moovEndOffset:i}},e.parseInitSegment=function(t){var r=[];return e.findBox(t,["moov","trak"]).forEach((function(t){var i=e.findBox(t,["tkhd"])[0];if(i){var a=i.data[i.start],o=0===a?12:20,s=e.readUint32(i,o),l=e.findBox(t,["mdia","mdhd"])[0];if(l){o=0===(a=l.data[l.start])?12:20;var u=e.readUint32(l,o),d=e.findBox(t,["mdia","hdlr"])[0];if(d){var c={soun:"audio",vide:"video"}[e.bin2str(d.data.subarray(d.start+8,d.start+12))];if(c){var h=e.findBox(t,["mdia","minf","stbl","stsd"]);if(h.length){h=h[0];var f=e.bin2str(h.data.subarray(h.start+12,h.start+16));n.logger.log("MP4Demuxer:"+c+":"+f+" found")}r[s]={timescale:u,type:c},r[c]={timescale:u,id:s}}}}}})),r},e.getStartDTS=function(t,r){var n,i,a;return n=e.findBox(r,["moof","traf"]),i=[].concat.apply([],n.map((function(r){return e.findBox(r,["tfhd"]).map((function(n){var i,a;return i=e.readUint32(n,4),a=t[i].timescale||9e4,e.findBox(r,["tfdt"]).map((function(t){var r,n;return r=t.data[t.start],n=e.readUint32(t,4),1===r&&(n*=Math.pow(2,32),n+=e.readUint32(t,8)),n}))[0]/a}))}))),a=Math.min.apply(null,i),isFinite(a)?a:0},e.offsetStartDTS=function(t,r,n){e.findBox(r,["moof","traf"]).map((function(r){return e.findBox(r,["tfhd"]).map((function(i){var o=e.readUint32(i,4),s=t[o].timescale||9e4;e.findBox(r,["tfdt"]).map((function(t){var r=t.data[t.start],i=e.readUint32(t,4);if(0===r)e.writeUint32(t,4,i-n*s);else{i*=Math.pow(2,32),i+=e.readUint32(t,8),i-=n*s,i=Math.max(i,0);var o=Math.floor(i/(a+1)),l=Math.floor(i%(a+1));e.writeUint32(t,4,o),e.writeUint32(t,8,l)}}))}))}))},t.append=function(t,r,n,a){var o=this.initData;o||(this.resetInitSegment(t,this.audioCodec,this.videoCodec,!1),o=this.initData);var s,l=this.initPTS;if(void 0===l){var u=e.getStartDTS(o,t);this.initPTS=l=u-r,this.observer.trigger(i.default.INIT_PTS_FOUND,{initPTS:l})}e.offsetStartDTS(o,t,l),s=e.getStartDTS(o,t),this.remuxer.remux(o.audio,o.video,null,null,s,n,a,t)},t.destroy=function(){},e}();t.default=o},"./src/errors.ts":
217
- /*!***********************!*\
218
- !*** ./src/errors.ts ***!
219
- \***********************/
220
- /*! exports provided: ErrorTypes, ErrorDetails */function(e,t,r){"use strict";var n,i;r.r(t),r.d(t,"ErrorTypes",(function(){return n})),r.d(t,"ErrorDetails",(function(){return i})),function(e){e.NETWORK_ERROR="networkError",e.MEDIA_ERROR="mediaError",e.KEY_SYSTEM_ERROR="keySystemError",e.MUX_ERROR="muxError",e.OTHER_ERROR="otherError"}(n||(n={})),function(e){e.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",e.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",e.KEY_SYSTEM_NO_SESSION="keySystemNoSession",e.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",e.KEY_SYSTEM_NO_INIT_DATA="keySystemNoInitData",e.MANIFEST_LOAD_ERROR="manifestLoadError",e.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",e.MANIFEST_PARSING_ERROR="manifestParsingError",e.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",e.LEVEL_EMPTY_ERROR="levelEmptyError",e.LEVEL_LOAD_ERROR="levelLoadError",e.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",e.LEVEL_SWITCH_ERROR="levelSwitchError",e.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",e.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",e.FRAG_LOAD_ERROR="fragLoadError",e.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",e.FRAG_DECRYPT_ERROR="fragDecryptError",e.FRAG_PARSING_ERROR="fragParsingError",e.REMUX_ALLOC_ERROR="remuxAllocError",e.KEY_LOAD_ERROR="keyLoadError",e.KEY_LOAD_TIMEOUT="keyLoadTimeOut",e.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",e.BUFFER_APPEND_ERROR="bufferAppendError",e.BUFFER_APPENDING_ERROR="bufferAppendingError",e.BUFFER_STALLED_ERROR="bufferStalledError",e.BUFFER_FULL_ERROR="bufferFullError",e.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",e.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",e.INTERNAL_EXCEPTION="internalException"}(i||(i={}))},"./src/events.js":
221
- /*!***********************!*\
222
- !*** ./src/events.js ***!
223
- \***********************/
224
- /*! exports provided: default */function(e,t,r){"use strict";r.r(t),t.default={MEDIA_ATTACHING:"hlsMediaAttaching",MEDIA_ATTACHED:"hlsMediaAttached",MEDIA_DETACHING:"hlsMediaDetaching",MEDIA_DETACHED:"hlsMediaDetached",BUFFER_RESET:"hlsBufferReset",BUFFER_CODECS:"hlsBufferCodecs",BUFFER_CREATED:"hlsBufferCreated",BUFFER_APPENDING:"hlsBufferAppending",BUFFER_APPENDED:"hlsBufferAppended",BUFFER_EOS:"hlsBufferEos",BUFFER_FLUSHING:"hlsBufferFlushing",BUFFER_FLUSHED:"hlsBufferFlushed",MANIFEST_LOADING:"hlsManifestLoading",MANIFEST_LOADED:"hlsManifestLoaded",MANIFEST_PARSED:"hlsManifestParsed",LEVEL_SWITCHING:"hlsLevelSwitching",LEVEL_SWITCHED:"hlsLevelSwitched",LEVEL_LOADING:"hlsLevelLoading",LEVEL_LOADED:"hlsLevelLoaded",LEVEL_UPDATED:"hlsLevelUpdated",LEVEL_PTS_UPDATED:"hlsLevelPtsUpdated",LEVELS_UPDATED:"hlsLevelsUpdated",AUDIO_TRACKS_UPDATED:"hlsAudioTracksUpdated",AUDIO_TRACK_SWITCHING:"hlsAudioTrackSwitching",AUDIO_TRACK_SWITCHED:"hlsAudioTrackSwitched",AUDIO_TRACK_LOADING:"hlsAudioTrackLoading",AUDIO_TRACK_LOADED:"hlsAudioTrackLoaded",SUBTITLE_TRACKS_UPDATED:"hlsSubtitleTracksUpdated",SUBTITLE_TRACK_SWITCH:"hlsSubtitleTrackSwitch",SUBTITLE_TRACK_LOADING:"hlsSubtitleTrackLoading",SUBTITLE_TRACK_LOADED:"hlsSubtitleTrackLoaded",SUBTITLE_FRAG_PROCESSED:"hlsSubtitleFragProcessed",CUES_PARSED:"hlsCuesParsed",NON_NATIVE_TEXT_TRACKS_FOUND:"hlsNonNativeTextTracksFound",INIT_PTS_FOUND:"hlsInitPtsFound",FRAG_LOADING:"hlsFragLoading",FRAG_LOAD_PROGRESS:"hlsFragLoadProgress",FRAG_LOAD_EMERGENCY_ABORTED:"hlsFragLoadEmergencyAborted",FRAG_LOADED:"hlsFragLoaded",FRAG_DECRYPTED:"hlsFragDecrypted",FRAG_PARSING_INIT_SEGMENT:"hlsFragParsingInitSegment",FRAG_PARSING_USERDATA:"hlsFragParsingUserdata",FRAG_PARSING_METADATA:"hlsFragParsingMetadata",FRAG_PARSING_DATA:"hlsFragParsingData",FRAG_PARSED:"hlsFragParsed",FRAG_BUFFERED:"hlsFragBuffered",FRAG_CHANGED:"hlsFragChanged",FPS_DROP:"hlsFpsDrop",FPS_DROP_LEVEL_CAPPING:"hlsFpsDropLevelCapping",ERROR:"hlsError",DESTROYING:"hlsDestroying",KEY_LOADING:"hlsKeyLoading",KEY_LOADED:"hlsKeyLoaded",STREAM_STATE_TRANSITION:"hlsStreamStateTransition",LIVE_BACK_BUFFER_REACHED:"hlsLiveBackBufferReached"}},"./src/hls.ts":
225
- /*!*********************************!*\
226
- !*** ./src/hls.ts + 50 modules ***!
227
- \*********************************/
228
- /*! exports provided: default */
229
- /*! ModuleConcatenation bailout: Cannot concat with ./src/crypt/decrypter.js because of ./src/demux/demuxer-worker.js */
230
- /*! ModuleConcatenation bailout: Cannot concat with ./src/demux/demuxer-inline.js because of ./src/demux/demuxer-worker.js */
231
- /*! ModuleConcatenation bailout: Cannot concat with ./src/demux/id3.js because of ./src/demux/demuxer-worker.js */
232
- /*! ModuleConcatenation bailout: Cannot concat with ./src/demux/mp4demuxer.js because of ./src/demux/demuxer-worker.js */
233
- /*! ModuleConcatenation bailout: Cannot concat with ./src/errors.ts because of ./src/demux/demuxer-worker.js */
234
- /*! ModuleConcatenation bailout: Cannot concat with ./src/events.js because of ./src/demux/demuxer-worker.js */
235
- /*! ModuleConcatenation bailout: Cannot concat with ./src/polyfills/number.js because of ./src/demux/demuxer-worker.js */
236
- /*! ModuleConcatenation bailout: Cannot concat with ./src/utils/get-self-scope.js because of ./src/demux/demuxer-worker.js */
237
- /*! ModuleConcatenation bailout: Cannot concat with ./src/utils/logger.js because of ./src/demux/demuxer-worker.js */
238
- /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/eventemitter3/index.js (<- Module is not an ECMAScript module) */
239
- /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/url-toolkit/src/url-toolkit.js (<- Module is not an ECMAScript module) */function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return ar}));var n={};r.r(n),r.d(n,"newCue",(function(){return ft}));var i,a,o=r("./node_modules/url-toolkit/src/url-toolkit.js"),s=r("./src/errors.ts"),l=r("./src/polyfills/number.js"),u=r("./src/events.js"),d=r("./src/utils/logger.js"),c={hlsEventGeneric:!0,hlsHandlerDestroying:!0,hlsHandlerDestroyed:!0},h=function(){function e(e){this.hls=void 0,this.handledEvents=void 0,this.useGenericHandler=void 0,this.hls=e,this.onEvent=this.onEvent.bind(this);for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.handledEvents=r,this.useGenericHandler=!0,this.registerListeners()}var t=e.prototype;return t.destroy=function(){this.onHandlerDestroying(),this.unregisterListeners(),this.onHandlerDestroyed()},t.onHandlerDestroying=function(){},t.onHandlerDestroyed=function(){},t.isEventHandler=function(){return"object"==typeof this.handledEvents&&this.handledEvents.length&&"function"==typeof this.onEvent},t.registerListeners=function(){this.isEventHandler()&&this.handledEvents.forEach((function(e){if(c[e])throw new Error("Forbidden event-name: "+e);this.hls.on(e,this.onEvent)}),this)},t.unregisterListeners=function(){this.isEventHandler()&&this.handledEvents.forEach((function(e){this.hls.off(e,this.onEvent)}),this)},t.onEvent=function(e,t){this.onEventGeneric(e,t)},t.onEventGeneric=function(e,t){try{(function(e,t){var r="on"+e.replace("hls","");if("function"!=typeof this[r])throw new Error("Event "+e+" has no generic handler in this "+this.constructor.name+" class (tried "+r+")");return this[r].bind(this,t)}).call(this,e,t).call()}catch(t){d.logger.error("An internal error happened while handling event "+e+'. Error message: "'+t.message+'". Here is a stacktrace:',t),this.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.OTHER_ERROR,details:s.ErrorDetails.INTERNAL_EXCEPTION,fatal:!1,event:e,err:t})}},e}();!function(e){e.MANIFEST="manifest",e.LEVEL="level",e.AUDIO_TRACK="audioTrack",e.SUBTITLE_TRACK="subtitleTrack"}(i||(i={})),function(e){e.MAIN="main",e.AUDIO="audio",e.SUBTITLE="subtitle"}(a||(a={}));var f=r("./src/demux/mp4demuxer.js");function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var p,g=function(){function e(e,t){this._uri=null,this.baseuri=void 0,this.reluri=void 0,this.method=null,this.key=null,this.iv=null,this.baseuri=e,this.reluri=t}var t,r,n;return t=e,(r=[{key:"uri",get:function(){return!this._uri&&this.reluri&&(this._uri=Object(o.buildAbsoluteURL)(this.baseuri,this.reluri,{alwaysNormalize:!0})),this._uri}}])&&m(t.prototype,r),n&&m(t,n),e}();function _(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}!function(e){e.AUDIO="audio",e.VIDEO="video"}(p||(p={}));var v=function(){function e(){var e;this._url=null,this._byteRange=null,this._decryptdata=null,this._elementaryStreams=((e={})[p.AUDIO]=!1,e[p.VIDEO]=!1,e),this.deltaPTS=0,this.rawProgramDateTime=null,this.programDateTime=null,this.title=null,this.tagList=[],this.cc=void 0,this.type=void 0,this.relurl=void 0,this.baseurl=void 0,this.duration=void 0,this.start=void 0,this.sn=0,this.urlId=0,this.level=0,this.levelkey=void 0,this.loader=void 0}var t,r,n,i=e.prototype;return i.setByteRange=function(e,t){var r=e.split("@",2),n=[];1===r.length?n[0]=t?t.byteRangeEndOffset:0:n[0]=parseInt(r[1]),n[1]=parseInt(r[0])+n[0],this._byteRange=n},i.addElementaryStream=function(e){this._elementaryStreams[e]=!0},i.hasElementaryStream=function(e){return!0===this._elementaryStreams[e]},i.createInitializationVector=function(e){for(var t=new Uint8Array(16),r=12;r<16;r++)t[r]=e>>8*(15-r)&255;return t},i.setDecryptDataFromLevelKey=function(e,t){var r=e;return(null==e?void 0:e.method)&&e.uri&&!e.iv&&((r=new g(e.baseuri,e.reluri)).method=e.method,r.iv=this.createInitializationVector(t)),r},t=e,(r=[{key:"url",get:function(){return!this._url&&this.relurl&&(this._url=Object(o.buildAbsoluteURL)(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url},set:function(e){this._url=e}},{key:"byteRange",get:function(){return this._byteRange?this._byteRange:[]}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var e=this.sn;"number"!=typeof e&&(this.levelkey&&"AES-128"===this.levelkey.method&&!this.levelkey.iv&&d.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),e=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,e)}return this._decryptdata}},{key:"endProgramDateTime",get:function(){if(null===this.programDateTime)return null;if(!Object(l.isFiniteNumber)(this.programDateTime))return null;var e=Object(l.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+1e3*e}},{key:"encrypted",get:function(){return!(!this.decryptdata||null===this.decryptdata.uri||null!==this.decryptdata.key)}}])&&_(t.prototype,r),n&&_(t,n),e}();function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var b=function(){function e(e){this.endCC=0,this.endSN=0,this.fragments=[],this.initSegment=null,this.live=!0,this.needSidxRanges=!1,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=e,this.version=null}var t,r,n;return t=e,(r=[{key:"hasProgramDateTime",get:function(){return!(!this.fragments[0]||!Object(l.isFiniteNumber)(this.fragments[0].programDateTime))}}])&&y(t.prototype,r),n&&y(t,n),e}(),M=/^(\d+)x(\d+)$/,w=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,L=function(){function e(t){for(var r in"string"==typeof t&&(t=e.parseAttrList(t)),t)t.hasOwnProperty(r)&&(this[r]=t[r])}var t=e.prototype;return t.decimalInteger=function(e){var t=parseInt(this[e],10);return t>Number.MAX_SAFE_INTEGER?1/0:t},t.hexadecimalInteger=function(e){if(this[e]){var t=(this[e]||"0x").slice(2);t=(1&t.length?"0":"")+t;for(var r=new Uint8Array(t.length/2),n=0;n<t.length/2;n++)r[n]=parseInt(t.slice(2*n,2*n+2),16);return r}return null},t.hexadecimalIntegerAsNumber=function(e){var t=parseInt(this[e],16);return t>Number.MAX_SAFE_INTEGER?1/0:t},t.decimalFloatingPoint=function(e){return parseFloat(this[e])},t.enumeratedString=function(e){return this[e]},t.decimalResolution=function(e){var t=M.exec(this[e]);if(null!==t)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}},e.parseAttrList=function(e){var t,r={};for(w.lastIndex=0;null!==(t=w.exec(e));){var n=t[2];0===n.indexOf('"')&&n.lastIndexOf('"')===n.length-1&&(n=n.slice(1,-1)),r[t[1]]=n}return r},e}(),T={audio:{a3ds:!0,"ac-3":!0,"ac-4":!0,alac:!0,alaw:!0,dra1:!0,"dts+":!0,"dts-":!0,dtsc:!0,dtse:!0,dtsh:!0,"ec-3":!0,enca:!0,g719:!0,g726:!0,m4ae:!0,mha1:!0,mha2:!0,mhm1:!0,mhm2:!0,mlpa:!0,mp4a:!0,"raw ":!0,Opus:!0,samr:!0,sawb:!0,sawp:!0,sevc:!0,sqcp:!0,ssmv:!0,twos:!0,ulaw:!0},video:{avc1:!0,avc2:!0,avc3:!0,avc4:!0,avcp:!0,drac:!0,dvav:!0,dvhe:!0,encv:!0,hev1:!0,hvc1:!0,mjp2:!0,mp4v:!0,mvc1:!0,mvc2:!0,mvc3:!0,mvc4:!0,resv:!0,rv60:!0,s263:!0,svc1:!0,svc2:!0,"vc-1":!0,vp08:!0,vp09:!0}};function x(e,t){return MediaSource.isTypeSupported((t||"video")+'/mp4;codecs="'+e+'"')}var k=/(?:#EXT-X-STREAM-INF:([^\n\r]*)[\r\n]+([^\r\n]+)|#EXT-X-SESSION-DATA:([^\n\r]*)[\r\n]+)/g,S=/#EXT-X-MEDIA:(.*)/g,D=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/|(?!#)([\S+ ?]+)/.source,/|#EXT-X-BYTERANGE:*(.+)/.source,/|#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/|#.*/.source].join(""),"g"),A=/(?:(?:#(EXTM3U))|(?:#EXT-X-(PLAYLIST-TYPE):(.+))|(?:#EXT-X-(MEDIA-SEQUENCE): *(\d+))|(?:#EXT-X-(TARGETDURATION): *(\d+))|(?:#EXT-X-(KEY):(.+))|(?:#EXT-X-(START):(.+))|(?:#EXT-X-(ENDLIST))|(?:#EXT-X-(DISCONTINUITY-SEQ)UENCE:(\d+))|(?:#EXT-X-(DIS)CONTINUITY))|(?:#EXT-X-(VERSION):(\d+))|(?:#EXT-X-(MAP):(.+))|(?:(#)([^:]*):(.*))|(?:(#)(.*))(?:.*)\r?\n?/,E=/\.(mp4|m4s|m4v|m4a)$/i,Y=function(){function e(){}return e.findGroup=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.id===t)return n}},e.convertAVC1ToAVCOTI=function(e){var t,r=e.split(".");return r.length>2?(t=r.shift()+".",t+=parseInt(r.shift()).toString(16),t+=("000"+parseInt(r.shift()).toString(16)).substr(-4)):t=e,t},e.resolve=function(e,t){return o.buildAbsoluteURL(t,e,{alwaysNormalize:!0})},e.parseMasterPlaylist=function(t,r){var n,i=[],a={},o=!1;function s(e,t){["video","audio"].forEach((function(r){var n=e.filter((function(e){return function(e,t){var r=T[t];return!!r&&!0===r[e.slice(0,4)]}(e,r)}));if(n.length){var i=n.filter((function(e){return 0===e.lastIndexOf("avc1",0)||0===e.lastIndexOf("mp4a",0)}));t[r+"Codec"]=i.length>0?i[0]:n[0],e=e.filter((function(e){return-1===n.indexOf(e)}))}})),t.unknownCodecs=e}for(k.lastIndex=0;null!=(n=k.exec(t));)if(n[1]){var l={},u=l.attrs=new L(n[1]);l.url=e.resolve(n[2],r);var d=u.decimalResolution("RESOLUTION");d&&(l.width=d.width,l.height=d.height),l.bitrate=u.decimalInteger("AVERAGE-BANDWIDTH")||u.decimalInteger("BANDWIDTH"),l.name=u.NAME,s([].concat((u.CODECS||"").split(/[ ,]+/)),l),l.videoCodec&&-1!==l.videoCodec.indexOf("avc1")&&(l.videoCodec=e.convertAVC1ToAVCOTI(l.videoCodec)),i.push(l)}else if(n[3]){var c=new L(n[3]);c["DATA-ID"]&&(o=!0,a[c["DATA-ID"]]=c)}return{levels:i,sessionData:o?a:null}},e.parseMasterPlaylistMedia=function(t,r,n,i){var a;void 0===i&&(i=[]);var o=[],s=0;for(S.lastIndex=0;null!==(a=S.exec(t));){var l=new L(a[1]);if(l.TYPE===n){var u={attrs:l,id:s++,groupId:l["GROUP-ID"],instreamId:l["INSTREAM-ID"],name:l.NAME||l.LANGUAGE,type:n,default:"YES"===l.DEFAULT,autoselect:"YES"===l.AUTOSELECT,forced:"YES"===l.FORCED,lang:l.LANGUAGE};if(l.URI&&(u.url=e.resolve(l.URI,r)),i.length){var d=e.findGroup(i,u.groupId);u.audioCodec=d?d.codec:i[0].codec}o.push(u)}}return o},e.parseLevelPlaylist=function(e,t,r,n,i){var a,o,s,u=0,c=0,h=new b(t),f=0,m=null,p=new v,_=null;for(D.lastIndex=0;null!==(a=D.exec(e));){var y=a[1];if(y){p.duration=parseFloat(y);var M=(" "+a[2]).slice(1);p.title=M||null,p.tagList.push(M?["INF",y,M]:["INF",y])}else if(a[3]){if(Object(l.isFiniteNumber)(p.duration)){var w=u++;p.type=n,p.start=c,s&&(p.levelkey=s),p.sn=w,p.level=r,p.cc=f,p.urlId=i,p.baseurl=t,p.relurl=(" "+a[3]).slice(1),O(p,m),h.fragments.push(p),m=p,c+=p.duration,p=new v}}else if(a[4]){var T=(" "+a[4]).slice(1);m?p.setByteRange(T,m):p.setByteRange(T)}else if(a[5])p.rawProgramDateTime=(" "+a[5]).slice(1),p.tagList.push(["PROGRAM-DATE-TIME",p.rawProgramDateTime]),null===_&&(_=h.fragments.length);else{if(!(a=a[0].match(A))){d.logger.warn("No matches on slow regex match for level playlist!");continue}for(o=1;o<a.length&&void 0===a[o];o++);var x=(" "+a[o+1]).slice(1),k=(" "+a[o+2]).slice(1);switch(a[o]){case"#":p.tagList.push(k?[x,k]:[x]);break;case"PLAYLIST-TYPE":h.type=x.toUpperCase();break;case"MEDIA-SEQUENCE":u=h.startSN=parseInt(x);break;case"TARGETDURATION":h.targetduration=parseFloat(x);break;case"VERSION":h.version=parseInt(x);break;case"EXTM3U":break;case"ENDLIST":h.live=!1;break;case"DIS":f++,p.tagList.push(["DIS"]);break;case"DISCONTINUITY-SEQ":f=parseInt(x);break;case"KEY":var S=new L(x),Y=S.enumeratedString("METHOD"),P=S.URI,R=S.hexadecimalInteger("IV");if("com.apple.streamingkeydelivery"===(S.KEYFORMAT||"identity")){d.logger.warn("Keyformat com.apple.streamingkeydelivery is not supported");continue}Y&&(s=new g(t,P),P&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(Y)>=0&&(s.method=Y,s.key=null,s.iv=R));break;case"START":var C=new L(x).decimalFloatingPoint("TIME-OFFSET");Object(l.isFiniteNumber)(C)&&(h.startTimeOffset=C);break;case"MAP":var I=new L(x);p.relurl=I.URI,I.BYTERANGE&&p.setByteRange(I.BYTERANGE),p.baseurl=t,p.level=r,p.type=n,p.sn="initSegment",h.initSegment=p,(p=new v).rawProgramDateTime=h.initSegment.rawProgramDateTime;break;default:d.logger.warn("line parsed but not handled: "+a)}}}return(p=m)&&!p.relurl&&(h.fragments.pop(),c-=p.duration),h.totalduration=c,h.averagetargetduration=c/h.fragments.length,h.endSN=u-1,h.startCC=h.fragments[0]?h.fragments[0].cc:0,h.endCC=f,!h.initSegment&&h.fragments.length&&h.fragments.every((function(e){return E.test(e.relurl)}))&&(d.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),(p=new v).relurl=h.fragments[0].relurl,p.baseurl=t,p.level=r,p.type=n,p.sn="initSegment",h.initSegment=p,h.needSidxRanges=!0),_&&function(e,t){for(var r=e[t],n=t-1;n>=0;n--){var i=e[n];i.programDateTime=r.programDateTime-1e3*i.duration,r=i}}(h.fragments,_),h},e}();function O(e,t){e.rawProgramDateTime?e.programDateTime=Date.parse(e.rawProgramDateTime):(null==t?void 0:t.programDateTime)&&(e.programDateTime=t.endProgramDateTime),Object(l.isFiniteNumber)(e.programDateTime)||(e.programDateTime=null,e.rawProgramDateTime=null)}var P=window.performance,R=function(e){var t,r;function n(t){var r;return(r=e.call(this,t,u.default.MANIFEST_LOADING,u.default.LEVEL_LOADING,u.default.AUDIO_TRACK_LOADING,u.default.SUBTITLE_TRACK_LOADING)||this).loaders={},r}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,n.canHaveQualityLevels=function(e){return e!==i.AUDIO_TRACK&&e!==i.SUBTITLE_TRACK},n.mapContextToLevelType=function(e){switch(e.type){case i.AUDIO_TRACK:return a.AUDIO;case i.SUBTITLE_TRACK:return a.SUBTITLE;default:return a.MAIN}},n.getResponseUrl=function(e,t){var r=e.url;return void 0!==r&&0!==r.indexOf("data:")||(r=t.url),r};var o=n.prototype;return o.createInternalLoader=function(e){var t=this.hls.config,r=t.pLoader,n=t.loader,i=new(r||n)(t);return e.loader=i,this.loaders[e.type]=i,i},o.getInternalLoader=function(e){return this.loaders[e.type]},o.resetInternalLoader=function(e){this.loaders[e]&&delete this.loaders[e]},o.destroyInternalLoaders=function(){for(var e in this.loaders){var t=this.loaders[e];t&&t.destroy(),this.resetInternalLoader(e)}},o.destroy=function(){this.destroyInternalLoaders(),e.prototype.destroy.call(this)},o.onManifestLoading=function(e){this.load({url:e.url,type:i.MANIFEST,level:0,id:null,responseType:"text"})},o.onLevelLoading=function(e){this.load({url:e.url,type:i.LEVEL,level:e.level,id:e.id,responseType:"text"})},o.onAudioTrackLoading=function(e){this.load({url:e.url,type:i.AUDIO_TRACK,level:null,id:e.id,responseType:"text"})},o.onSubtitleTrackLoading=function(e){this.load({url:e.url,type:i.SUBTITLE_TRACK,level:null,id:e.id,responseType:"text"})},o.load=function(e){var t=this.hls.config;d.logger.debug("Loading playlist of type "+e.type+", level: "+e.level+", id: "+e.id);var r,n,a,o,s=this.getInternalLoader(e);if(s){var l=s.context;if(l&&l.url===e.url)return d.logger.trace("playlist request ongoing"),!1;d.logger.warn("aborting previous loader for type: "+e.type),s.abort()}switch(e.type){case i.MANIFEST:r=t.manifestLoadingMaxRetry,n=t.manifestLoadingTimeOut,a=t.manifestLoadingRetryDelay,o=t.manifestLoadingMaxRetryTimeout;break;case i.LEVEL:r=0,o=0,a=0,n=t.levelLoadingTimeOut;break;default:r=t.levelLoadingMaxRetry,n=t.levelLoadingTimeOut,a=t.levelLoadingRetryDelay,o=t.levelLoadingMaxRetryTimeout}s=this.createInternalLoader(e);var u={timeout:n,maxRetry:r,retryDelay:a,maxRetryDelay:o},c={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};return d.logger.debug("Calling internal loader delegate for URL: "+e.url),s.load(e,u,c),!0},o.loadsuccess=function(e,t,r,n){if(void 0===n&&(n=null),r.isSidxRequest)return this._handleSidxRequest(e,r),void this._handlePlaylistLoaded(e,t,r,n);if(this.resetInternalLoader(r.type),"string"!=typeof e.data)throw new Error('expected responseType of "text" for PlaylistLoader');var i=e.data;t.tload=P.now(),0===i.indexOf("#EXTM3U")?i.indexOf("#EXTINF:")>0||i.indexOf("#EXT-X-TARGETDURATION:")>0?this._handleTrackOrLevelPlaylist(e,t,r,n):this._handleMasterPlaylist(e,t,r,n):this._handleManifestParsingError(e,r,"no EXTM3U delimiter",n)},o.loaderror=function(e,t,r){void 0===r&&(r=null),this._handleNetworkError(t,r,!1,e)},o.loadtimeout=function(e,t,r){void 0===r&&(r=null),this._handleNetworkError(t,r,!0)},o._handleMasterPlaylist=function(e,t,r,i){var a=this.hls,o=e.data,s=n.getResponseUrl(e,r),l=Y.parseMasterPlaylist(o,s),c=l.levels,h=l.sessionData;if(c.length){var f=c.map((function(e){return{id:e.attrs.AUDIO,codec:e.audioCodec}})),m=Y.parseMasterPlaylistMedia(o,s,"AUDIO",f),p=Y.parseMasterPlaylistMedia(o,s,"SUBTITLES"),g=Y.parseMasterPlaylistMedia(o,s,"CLOSED-CAPTIONS");if(m.length){var _=!1;m.forEach((function(e){e.url||(_=!0)})),!1===_&&c[0].audioCodec&&!c[0].attrs.AUDIO&&(d.logger.log("audio codec signaled in quality level, but no embedded audio track signaled, create one"),m.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:{},url:""}))}a.trigger(u.default.MANIFEST_LOADED,{levels:c,audioTracks:m,subtitles:p,captions:g,url:s,stats:t,networkDetails:i,sessionData:h})}else this._handleManifestParsingError(e,r,"no level found in manifest",i)},o._handleTrackOrLevelPlaylist=function(e,t,r,a){var o=this.hls,d=r.id,c=r.level,h=r.type,f=n.getResponseUrl(e,r),m=Object(l.isFiniteNumber)(d)?d:0,p=Object(l.isFiniteNumber)(c)?c:m,g=n.mapContextToLevelType(r),_=Y.parseLevelPlaylist(e.data,f,p,g,m);if(_.tload=t.tload,_.fragments.length){if(h===i.MANIFEST){var v={url:f,details:_};o.trigger(u.default.MANIFEST_LOADED,{levels:[v],audioTracks:[],url:f,stats:t,networkDetails:a,sessionData:null})}if(t.tparsed=P.now(),_.needSidxRanges){var y=_.initSegment.url;this.load({url:y,isSidxRequest:!0,type:h,level:c,levelDetails:_,id:d,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer"})}else r.levelDetails=_,this._handlePlaylistLoaded(e,t,r,a)}else o.trigger(u.default.ERROR,{type:s.ErrorTypes.NETWORK_ERROR,details:s.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:f,reason:"no fragments found in level",level:"number"==typeof r.level?r.level:void 0})},o._handleSidxRequest=function(e,t){if("string"==typeof e.data)throw new Error("sidx request must be made with responseType of array buffer");var r=f.default.parseSegmentIndex(new Uint8Array(e.data));if(r){var n=r.references,i=t.levelDetails;n.forEach((function(e,t){var r=e.info;if(i){var n=i.fragments[t];0===n.byteRange.length&&n.setByteRange(String(1+r.end-r.start)+"@"+String(r.start))}})),i&&i.initSegment.setByteRange(String(r.moovEndOffset)+"@0")}},o._handleManifestParsingError=function(e,t,r,n){this.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.NETWORK_ERROR,details:s.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:!0,url:e.url,reason:r,networkDetails:n})},o._handleNetworkError=function(e,t,r,n){var a,o;void 0===r&&(r=!1),void 0===n&&(n=null),d.logger.info("A network error occured while loading a "+e.type+"-type playlist");var l=this.getInternalLoader(e);switch(e.type){case i.MANIFEST:a=r?s.ErrorDetails.MANIFEST_LOAD_TIMEOUT:s.ErrorDetails.MANIFEST_LOAD_ERROR,o=!0;break;case i.LEVEL:a=r?s.ErrorDetails.LEVEL_LOAD_TIMEOUT:s.ErrorDetails.LEVEL_LOAD_ERROR,o=!1;break;case i.AUDIO_TRACK:a=r?s.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:s.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,o=!1;break;default:o=!1}l&&(l.abort(),this.resetInternalLoader(e.type));var c={type:s.ErrorTypes.NETWORK_ERROR,details:a,fatal:o,url:e.url,loader:l,context:e,networkDetails:t};n&&(c.response=n),this.hls.trigger(u.default.ERROR,c)},o._handlePlaylistLoaded=function(e,t,r,a){var o=r.type,s=r.level,l=r.id,d=r.levelDetails;if(d&&d.targetduration)if(n.canHaveQualityLevels(r.type))this.hls.trigger(u.default.LEVEL_LOADED,{details:d,level:s||0,id:l||0,stats:t,networkDetails:a});else switch(o){case i.AUDIO_TRACK:this.hls.trigger(u.default.AUDIO_TRACK_LOADED,{details:d,id:l,stats:t,networkDetails:a});break;case i.SUBTITLE_TRACK:this.hls.trigger(u.default.SUBTITLE_TRACK_LOADED,{details:d,id:l,stats:t,networkDetails:a})}else this._handleManifestParsingError(e,r,"invalid target duration",a)},n}(h),C=function(e){var t,r;function n(t){var r;return(r=e.call(this,t,u.default.FRAG_LOADING)||this).loaders={},r}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var i=n.prototype;return i.destroy=function(){var t=this.loaders;for(var r in t){var n=t[r];n&&n.destroy()}this.loaders={},e.prototype.destroy.call(this)},i.onFragLoading=function(e){var t=e.frag,r=t.type,n=this.loaders,i=this.hls.config,a=i.fLoader,o=i.loader;t.loaded=0;var s,u,c,h=n[r];h&&(d.logger.warn("abort previous fragment loader for type: "+r),h.abort()),h=n[r]=t.loader=i.fLoader?new a(i):new o(i),s={url:t.url,frag:t,responseType:"arraybuffer",progressData:!1};var f=t.byteRangeStartOffset,m=t.byteRangeEndOffset;Object(l.isFiniteNumber)(f)&&Object(l.isFiniteNumber)(m)&&(s.rangeStart=f,s.rangeEnd=m),u={timeout:i.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:i.fragLoadingMaxRetryTimeout},c={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this),onProgress:this.loadprogress.bind(this)},h.load(s,u,c)},i.loadsuccess=function(e,t,r,n){void 0===n&&(n=null);var i=e.data,a=r.frag;a.loader=void 0,this.loaders[a.type]=void 0,this.hls.trigger(u.default.FRAG_LOADED,{payload:i,frag:a,stats:t,networkDetails:n})},i.loaderror=function(e,t,r){void 0===r&&(r=null);var n=t.frag,i=n.loader;i&&i.abort(),this.loaders[n.type]=void 0,this.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.NETWORK_ERROR,details:s.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:t.frag,response:e,networkDetails:r})},i.loadtimeout=function(e,t,r){void 0===r&&(r=null);var n=t.frag,i=n.loader;i&&i.abort(),this.loaders[n.type]=void 0,this.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.NETWORK_ERROR,details:s.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t.frag,networkDetails:r})},i.loadprogress=function(e,t,r,n){void 0===n&&(n=null);var i=t.frag;i.loaded=e.loaded,this.hls.trigger(u.default.FRAG_LOAD_PROGRESS,{frag:i,stats:e,networkDetails:n})},n}(h),I=function(e){var t,r;function n(t){var r;return(r=e.call(this,t,u.default.KEY_LOADING)||this).loaders={},r.decryptkey=null,r.decrypturl=null,r}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var i=n.prototype;return i.destroy=function(){for(var t in this.loaders){var r=this.loaders[t];r&&r.destroy()}this.loaders={},e.prototype.destroy.call(this)},i.onKeyLoading=function(e){var t=e.frag,r=t.type,n=this.loaders[r];if(t.decryptdata){var i=t.decryptdata.uri;if(i!==this.decrypturl||null===this.decryptkey){var a=this.hls.config;if(n&&(d.logger.warn("abort previous key loader for type:"+r),n.abort()),!i)return void d.logger.warn("key uri is falsy");t.loader=this.loaders[r]=new a.loader(a),this.decrypturl=i,this.decryptkey=null;var o={url:i,frag:t,responseType:"arraybuffer"},s={timeout:a.fragLoadingTimeOut,maxRetry:0,retryDelay:a.fragLoadingRetryDelay,maxRetryDelay:a.fragLoadingMaxRetryTimeout},l={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};t.loader.load(o,s,l)}else this.decryptkey&&(t.decryptdata.key=this.decryptkey,this.hls.trigger(u.default.KEY_LOADED,{frag:t}))}else d.logger.warn("Missing decryption data on fragment in onKeyLoading")},i.loadsuccess=function(e,t,r){var n=r.frag;n.decryptdata?(this.decryptkey=n.decryptdata.key=new Uint8Array(e.data),n.loader=void 0,delete this.loaders[n.type],this.hls.trigger(u.default.KEY_LOADED,{frag:n})):d.logger.error("after key load, decryptdata unset")},i.loaderror=function(e,t){var r=t.frag,n=r.loader;n&&n.abort(),delete this.loaders[r.type],this.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.NETWORK_ERROR,details:s.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:r,response:e})},i.loadtimeout=function(e,t){var r=t.frag,n=r.loader;n&&n.abort(),delete this.loaders[r.type],this.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.NETWORK_ERROR,details:s.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:r})},n}(h),F="NOT_LOADED",j="APPENDING",N="PARTIAL",H="OK",B=function(e){var t,r;function n(t){var r;return(r=e.call(this,t,u.default.BUFFER_APPENDED,u.default.FRAG_BUFFERED,u.default.FRAG_LOADED)||this).bufferPadding=.2,r.fragments=Object.create(null),r.timeRanges=Object.create(null),r.config=t.config,r}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var i=n.prototype;return i.destroy=function(){this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.config=null,h.prototype.destroy.call(this),e.prototype.destroy.call(this)},i.getBufferedFrag=function(e,t){var r=this.fragments,n=Object.keys(r).filter((function(n){var i=r[n];if(i.body.type!==t)return!1;if(!i.buffered)return!1;var a=i.body;return a.startPTS<=e&&e<=a.endPTS}));if(0===n.length)return null;var i=n.pop();return r[i].body},i.detectEvictedFragments=function(e,t){var r=this;Object.keys(this.fragments).forEach((function(n){var i=r.fragments[n];if(i&&i.buffered){var a=i.range[e];if(a)for(var o=a.time,s=0;s<o.length;s++){var l=o[s];if(!r.isTimeBuffered(l.startPTS,l.endPTS,t)){r.removeFragment(i.body);break}}}}))},i.detectPartialFragments=function(e){var t=this,r=this.getFragmentKey(e),n=this.fragments[r];n&&(n.buffered=!0,Object.keys(this.timeRanges).forEach((function(r){if(e.hasElementaryStream(r)){var i=t.timeRanges[r];n.range[r]=t.getBufferedTimes(e.startPTS,e.endPTS,i)}})))},i.getBufferedTimes=function(e,t,r){for(var n,i,a=[],o=!1,s=0;s<r.length;s++){if(n=r.start(s)-this.bufferPadding,i=r.end(s)+this.bufferPadding,e>=n&&t<=i){a.push({startPTS:Math.max(e,r.start(s)),endPTS:Math.min(t,r.end(s))});break}if(e<i&&t>n)a.push({startPTS:Math.max(e,r.start(s)),endPTS:Math.min(t,r.end(s))}),o=!0;else if(t<=n)break}return{time:a,partial:o}},i.getFragmentKey=function(e){return e.type+"_"+e.level+"_"+e.urlId+"_"+e.sn},i.getPartialFragment=function(e){var t,r,n,i=this,a=null,o=0;return Object.keys(this.fragments).forEach((function(s){var l=i.fragments[s];i.isPartial(l)&&(r=l.body.startPTS-i.bufferPadding,n=l.body.endPTS+i.bufferPadding,e>=r&&e<=n&&(t=Math.min(e-r,n-e),o<=t&&(a=l.body,o=t)))})),a},i.getState=function(e){var t=this.getFragmentKey(e),r=this.fragments[t],n=F;return void 0!==r&&(n=r.buffered?!0===this.isPartial(r)?N:H:j),n},i.isPartial=function(e){return!0===e.buffered&&(void 0!==e.range.video&&!0===e.range.video.partial||void 0!==e.range.audio&&!0===e.range.audio.partial)},i.isTimeBuffered=function(e,t,r){for(var n,i,a=0;a<r.length;a++){if(n=r.start(a)-this.bufferPadding,i=r.end(a)+this.bufferPadding,e>=n&&t<=i)return!0;if(t<=n)return!1}return!1},i.onFragLoaded=function(e){var t=e.frag;Object(l.isFiniteNumber)(t.sn)&&!t.bitrateTest&&(this.fragments[this.getFragmentKey(t)]={body:t,range:Object.create(null),buffered:!1})},i.onBufferAppended=function(e){var t=this;this.timeRanges=e.timeRanges,Object.keys(this.timeRanges).forEach((function(e){var r=t.timeRanges[e];t.detectEvictedFragments(e,r)}))},i.onFragBuffered=function(e){this.detectPartialFragments(e.frag)},i.hasFragment=function(e){var t=this.getFragmentKey(e);return void 0!==this.fragments[t]},i.removeFragment=function(e){var t=this.getFragmentKey(e);delete this.fragments[t]},i.removeAllFragments=function(){this.fragments=Object.create(null)},n}(h),U={search:function(e,t){for(var r=0,n=e.length-1,i=null,a=null;r<=n;){var o=t(a=e[i=(r+n)/2|0]);if(o>0)r=i+1;else{if(!(o<0))return a;n=i-1}}return null}},W=function(){function e(){}return e.isBuffered=function(e,t){try{if(e)for(var r=e.buffered,n=0;n<r.length;n++)if(t>=r.start(n)&&t<=r.end(n))return!0}catch(e){}return!1},e.bufferInfo=function(e,t,r){try{if(e){var n,i=e.buffered,a=[];for(n=0;n<i.length;n++)a.push({start:i.start(n),end:i.end(n)});return this.bufferedInfo(a,t,r)}}catch(e){}return{len:0,start:t,end:t,nextStart:void 0}},e.bufferedInfo=function(e,t,r){e.sort((function(e,t){var r=e.start-t.start;return r||t.end-e.end}));var n=[];if(r)for(var i=0;i<e.length;i++){var a=n.length;if(a){var o=n[a-1].end;e[i].start-o<r?e[i].end>o&&(n[a-1].end=e[i].end):n.push(e[i])}else n.push(e[i])}else n=e;for(var s,l=0,u=t,d=t,c=0;c<n.length;c++){var h=n[c].start,f=n[c].end;if(t+r>=h&&t<f)u=h,l=(d=f)-t;else if(t+r<h){s=h;break}}return{len:l,start:u,end:d,nextStart:s}},e}(),z=r("./node_modules/eventemitter3/index.js"),V=r("./node_modules/webworkify-webpack/index.js"),G=r("./src/demux/demuxer-inline.js");function K(){return window.MediaSource||window.WebKitMediaSource}var q=r("./src/utils/get-self-scope.js"),J=function(e){var t,r;function n(){return e.apply(this,arguments)||this}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,n.prototype.trigger=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.emit.apply(this,[e,e].concat(r))},n}(z.EventEmitter),X=Object(q.getSelfScope)(),$=K()||{isTypeSupported:function(){return!1}},Z=function(){function e(e,t){var r=this;this.hls=e,this.id=t;var n=this.observer=new J,i=e.config,a=function(t,n){(n=n||{}).frag=r.frag,n.id=r.id,e.trigger(t,n)};n.on(u.default.FRAG_DECRYPTED,a),n.on(u.default.FRAG_PARSING_INIT_SEGMENT,a),n.on(u.default.FRAG_PARSING_DATA,a),n.on(u.default.FRAG_PARSED,a),n.on(u.default.ERROR,a),n.on(u.default.FRAG_PARSING_METADATA,a),n.on(u.default.FRAG_PARSING_USERDATA,a),n.on(u.default.INIT_PTS_FOUND,a);var o={mp4:$.isTypeSupported("video/mp4"),mpeg:$.isTypeSupported("audio/mpeg"),mp3:$.isTypeSupported('audio/mp4; codecs="mp3"')},l=navigator.vendor;if(i.enableWorker&&"undefined"!=typeof Worker){var c;d.logger.log("demuxing in webworker");try{c=this.w=V(/*! ../demux/demuxer-worker.js */"./src/demux/demuxer-worker.js"),this.onwmsg=this.onWorkerMessage.bind(this),c.addEventListener("message",this.onwmsg),c.onerror=function(t){e.trigger(u.default.ERROR,{type:s.ErrorTypes.OTHER_ERROR,details:s.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",err:{message:t.message+" ("+t.filename+":"+t.lineno+")"}})},c.postMessage({cmd:"init",typeSupported:o,vendor:l,id:t,config:JSON.stringify(i)})}catch(e){d.logger.warn("Error in worker:",e),d.logger.error("Error while initializing DemuxerWorker, fallback on DemuxerInline"),c&&X.URL.revokeObjectURL(c.objectURL),this.demuxer=new G.default(n,o,i,l),this.w=void 0}}else this.demuxer=new G.default(n,o,i,l)}var t=e.prototype;return t.destroy=function(){var e=this.w;if(e)e.removeEventListener("message",this.onwmsg),e.terminate(),this.w=null;else{var t=this.demuxer;t&&(t.destroy(),this.demuxer=null)}var r=this.observer;r&&(r.removeAllListeners(),this.observer=null)},t.push=function(e,t,r,n,i,a,o,s){var u=this.w,c=Object(l.isFiniteNumber)(i.startPTS)?i.startPTS:i.start,h=i.decryptdata,f=this.frag,m=!(f&&i.cc===f.cc),p=!(f&&i.level===f.level),g=f&&i.sn===f.sn+1,_=!p&&g;if(m&&d.logger.log(this.id+":discontinuity detected"),p&&d.logger.log(this.id+":switch detected"),this.frag=i,u)u.postMessage({cmd:"demux",data:e,decryptdata:h,initSegment:t,audioCodec:r,videoCodec:n,timeOffset:c,discontinuity:m,trackSwitch:p,contiguous:_,duration:a,accurateTimeOffset:o,defaultInitPTS:s},e instanceof ArrayBuffer?[e]:[]);else{var v=this.demuxer;v&&v.push(e,h,t,r,n,c,m,p,_,a,o,s)}},t.onWorkerMessage=function(e){var t=e.data,r=this.hls;switch(t.event){case"init":X.URL.revokeObjectURL(this.w.objectURL);break;case u.default.FRAG_PARSING_DATA:t.data.data1=new Uint8Array(t.data1),t.data2&&(t.data.data2=new Uint8Array(t.data2));default:t.data=t.data||{},t.data.frag=this.frag,t.data.id=this.id,r.trigger(t.event,t.data)}},e}();function Q(e,t,r){switch(t){case"audio":e.audioGroupIds||(e.audioGroupIds=[]),e.audioGroupIds.push(r);break;case"text":e.textGroupIds||(e.textGroupIds=[]),e.textGroupIds.push(r)}}function ee(e,t,r){var n=e[t],i=e[r],a=i.startPTS;if(Object(l.isFiniteNumber)(a))r>t?(n.duration=a-n.start,n.duration<0&&d.logger.warn("negative duration computed for frag "+n.sn+",level "+n.level+", there should be some duration drift between playlist and fragment!")):(i.duration=n.start-a,i.duration<0&&d.logger.warn("negative duration computed for frag "+i.sn+",level "+i.level+", there should be some duration drift between playlist and fragment!"));else if(r>t){var o=n.cc===i.cc;i.start=n.start+(o&&n.minEndPTS?n.minEndPTS-n.start:n.duration)}else i.start=Math.max(n.start-i.duration,0)}function te(e,t,r,n,i,a){var o=r,s=n;if(Object(l.isFiniteNumber)(t.startPTS)){var u=Math.abs(t.startPTS-r);Object(l.isFiniteNumber)(t.deltaPTS)?t.deltaPTS=Math.max(u,t.deltaPTS):t.deltaPTS=u,o=Math.max(r,t.startPTS),r=Math.min(r,t.startPTS),s=Math.min(n,t.endPTS),n=Math.max(n,t.endPTS),i=Math.min(i,t.startDTS),a=Math.max(a,t.endDTS)}var d=r-t.start;t.start=t.startPTS=r,t.maxStartPTS=o,t.endPTS=n,t.minEndPTS=s,t.startDTS=i,t.endDTS=a,t.duration=n-r;var c,h,f,m=t.sn;if(!e||m<e.startSN||m>e.endSN)return 0;for(c=m-e.startSN,(h=e.fragments)[c]=t,f=c;f>0;f--)ee(h,f,f-1);for(f=c;f<h.length-1;f++)ee(h,f,f+1);return e.PTSKnown=!0,d}function re(e,t){t.initSegment&&e.initSegment&&(t.initSegment=e.initSegment);var r,n=0;if(ne(e,t,(function(e,i){n=e.cc-i.cc,Object(l.isFiniteNumber)(e.startPTS)&&(i.start=i.startPTS=e.startPTS,i.endPTS=e.endPTS,i.duration=e.duration,i.backtracked=e.backtracked,i.dropped=e.dropped,r=i),t.PTSKnown=!0})),t.PTSKnown){if(n){d.logger.log("discontinuity sliding from playlist, take drift into account");for(var i=t.fragments,a=0;a<i.length;a++)i[a].cc+=n}r?te(t,r,r.startPTS,r.endPTS,r.startDTS,r.endDTS):function(e,t){var r=t.startSN-e.startSN,n=e.fragments,i=t.fragments;if(!(r<0||r>n.length))for(var a=0;a<i.length;a++)i[a].start+=n[r].start}(e,t),t.PTSKnown=e.PTSKnown}}function ne(e,t,r){if(e&&t)for(var n=Math.max(e.startSN,t.startSN)-t.startSN,i=Math.min(e.endSN,t.endSN)-t.startSN,a=t.startSN-e.startSN,o=n;o<=i;o++){var s=e.fragments[a+o],l=t.fragments[o];if(!s||!l)break;r(s,l,o)}}function ie(e,t,r){var n=1e3*(t.averagetargetduration?t.averagetargetduration:t.targetduration),i=n/2;return e&&t.endSN===e.endSN&&(n=i),r&&(n=Math.max(i,n-(window.performance.now()-r))),Math.round(n)}var ae={toString:function(e){for(var t="",r=e.length,n=0;n<r;n++)t+="["+e.start(n).toFixed(3)+","+e.end(n).toFixed(3)+"]";return t}};function oe(e,t){t.fragments.forEach((function(t){if(t){var r=t.start+e;t.start=t.startPTS=r,t.endPTS=r+t.duration}})),t.PTSKnown=!0}function se(e,t,r){!function(e,t,r){if(function(e,t,r){var n=!1;return t&&t.details&&r&&(r.endCC>r.startCC||e&&e.cc<r.startCC)&&(n=!0),n}(e,r,t)){var n=function(e,t){var r=e.fragments,n=t.fragments;if(n.length&&r.length){var i=function(e,t){for(var r=null,n=0;n<e.length;n+=1){var i=e[n];if(i&&i.cc===t){r=i;break}}return r}(r,n[0].cc);if(i&&(!i||i.startPTS))return i;d.logger.log("No frag in previous level to align on")}else d.logger.log("No fragments to align")}(r.details,t);n&&(d.logger.log("Adjusting PTS using last level due to CC increase within current level"),oe(n.start,t))}}(e,r,t),!r.PTSKnown&&t&&function(e,t){if(t&&t.fragments.length){if(!e.hasProgramDateTime||!t.hasProgramDateTime)return;var r=t.fragments[0].programDateTime,n=(e.fragments[0].programDateTime-r)/1e3+t.fragments[0].start;Object(l.isFiniteNumber)(n)&&(d.logger.log("adjusting PTS using programDateTime delta, sliding:"+n.toFixed(3)),oe(n,e))}}(r,t.details)}function le(e,t,r){if(null===t||!Array.isArray(e)||!e.length||!Object(l.isFiniteNumber)(t))return null;if(t<(e[0].programDateTime||0))return null;if(t>=(e[e.length-1].endProgramDateTime||0))return null;r=r||0;for(var n=0;n<e.length;++n){var i=e[n];if(ce(t,r,i))return i}return null}function ue(e,t,r,n){void 0===r&&(r=0),void 0===n&&(n=0);var i=null;if(e?i=t[e.sn-t[0].sn+1]:0===r&&0===t[0].start&&(i=t[0]),i&&0===de(r,n,i))return i;var a=U.search(t,de.bind(null,r,n));return a||i}function de(e,t,r){void 0===e&&(e=0),void 0===t&&(t=0);var n=Math.min(t,r.duration+(r.deltaPTS?r.deltaPTS:0));return r.start+r.duration-n<=e?1:r.start-n>e&&r.start?-1:0}function ce(e,t,r){var n=1e3*Math.min(t,r.duration+(r.deltaPTS?r.deltaPTS:0));return(r.endProgramDateTime||0)-n>e}var he=function(){function e(e,t,r,n){this.config=e,this.media=t,this.fragmentTracker=r,this.hls=n,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1}var t=e.prototype;return t.poll=function(e){var t=this.config,r=this.media,n=this.stalled,i=r.currentTime,a=r.seeking,o=this.seeking&&!a,s=!this.seeking&&a;if(this.seeking=a,i===e){if((s||o)&&(this.stalled=null),!r.paused&&!r.ended&&0!==r.playbackRate&&r.buffered.length){var l=W.bufferInfo(r,i,0),u=l.len>0,c=l.nextStart||0;if(u||c){if(a){var h=l.len>2,f=!c||c-i>2&&!this.fragmentTracker.getPartialFragment(i);if(h||f)return;this.moved=!1}if(!this.moved&&this.stalled){var m=Math.max(c,l.start||0)-i;if(m>0&&m<=2)return void this._trySkipBufferHole(null)}var p=self.performance.now();if(null!==n){var g=p-n;!a&&g>=250&&this._reportStall(l.len);var _=W.bufferInfo(r,i,t.maxBufferHole);this._tryFixBufferStall(_,g)}else this.stalled=p}}}else if(this.moved=!0,null!==n){if(this.stallReported){var v=self.performance.now()-n;d.logger.warn("playback not stuck anymore @"+i+", after "+Math.round(v)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}},t._tryFixBufferStall=function(e,t){var r=this.config,n=this.fragmentTracker,i=this.media.currentTime,a=n.getPartialFragment(i);a&&this._trySkipBufferHole(a)||e.len>r.maxBufferHole&&t>1e3*r.highBufferWatchdogPeriod&&(d.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},t._reportStall=function(e){var t=this.hls,r=this.media;this.stallReported||(this.stallReported=!0,d.logger.warn("Playback stalling at @"+r.currentTime+" due to low buffer (buffer="+e+")"),t.trigger(u.default.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:e}))},t._trySkipBufferHole=function(e){for(var t=this.config,r=this.hls,n=this.media,i=n.currentTime,a=0,o=0;o<n.buffered.length;o++){var l=n.buffered.start(o);if(i+t.maxBufferHole>=a&&i<l){var c=Math.max(l+.05,n.currentTime+.1);return d.logger.warn("skipping hole, adjusting currentTime from "+i+" to "+c),this.moved=!0,this.stalled=null,n.currentTime=c,e&&r.trigger(u.default.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.BUFFER_SEEK_OVER_HOLE,fatal:!1,reason:"fragment loaded with buffer holes, seeking from "+i+" to "+c,frag:e}),c}a=n.buffered.end(o)}return 0},t._tryNudgeBuffer=function(){var e=this.config,t=this.hls,r=this.media,n=r.currentTime,i=(this.nudgeRetry||0)+1;if(this.nudgeRetry=i,i<e.nudgeMaxRetry){var a=n+i*e.nudgeOffset;d.logger.warn("Nudging 'currentTime' from "+n+" to "+a),r.currentTime=a,t.trigger(u.default.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.BUFFER_NUDGE_ON_STALL,fatal:!1})}else d.logger.error("Playhead still not moving while enough data buffered @"+n+" after "+e.nudgeMaxRetry+" nudges"),t.trigger(u.default.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!0})},e}();function fe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var me=function(e){var t,r;function n(t){for(var r,n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return(r=e.call.apply(e,[this,t].concat(i))||this)._boundTick=void 0,r._tickTimer=null,r._tickInterval=null,r._tickCallCount=0,r._boundTick=r.tick.bind(fe(r)),r}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var i=n.prototype;return i.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},i.hasInterval=function(){return!!this._tickInterval},i.hasNextTick=function(){return!!this._tickTimer},i.setInterval=function(e){return!this._tickInterval&&(this._tickInterval=self.setInterval(this._boundTick,e),!0)},i.clearInterval=function(){return!!this._tickInterval&&(self.clearInterval(this._tickInterval),this._tickInterval=null,!0)},i.clearNextTick=function(){return!!this._tickTimer&&(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0)},i.tick=function(){this._tickCallCount++,1===this._tickCallCount&&(this.doTick(),this._tickCallCount>1&&(this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)),this._tickCallCount=0)},i.doTick=function(){},n}(h),pe="STOPPED",ge="STARTING",_e="IDLE",ve="PAUSED",ye="KEY_LOADING",be="FRAG_LOADING",Me="FRAG_LOADING_WAITING_RETRY",we="WAITING_TRACK",Le="PARSING",Te="PARSED",xe="BUFFER_FLUSHING",ke="ENDED",Se="ERROR",De="WAITING_INIT_PTS",Ae="WAITING_LEVEL",Ee=function(e){var t,r;function n(){return e.apply(this,arguments)||this}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var i=n.prototype;return i.doTick=function(){},i.startLoad=function(){},i.stopLoad=function(){var e=this.fragCurrent;e&&(e.loader&&e.loader.abort(),this.fragmentTracker.removeFragment(e)),this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=pe},i._streamEnded=function(e,t){var r=this.fragCurrent,n=this.fragmentTracker;if(!t.live&&r&&!r.backtracked&&r.sn===t.endSN&&!e.nextStart){var i=n.getState(r);return i===N||i===H}return!1},i.onMediaSeeking=function(){var e=this.config,t=this.media,r=this.mediaBuffer,n=this.state,i=t?t.currentTime:null,a=W.bufferInfo(r||t,i,this.config.maxBufferHole);if(d.logger.log("media seeking to "+(Object(l.isFiniteNumber)(i)?i.toFixed(3):i)),n===be){var o=this.fragCurrent;if(0===a.len&&o){var s=e.maxFragLookUpTolerance,u=o.start-s,c=o.start+o.duration+s;i<u||i>c?(o.loader&&(d.logger.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),o.loader.abort()),this.fragCurrent=null,this.fragPrevious=null,this.state=_e):d.logger.log("seeking outside of buffer but within currently loaded fragment range")}}else n===ke&&(0===a.len&&(this.fragPrevious=null,this.fragCurrent=null),this.state=_e);t&&(this.lastCurrentTime=i),this.loadedmetadata||(this.nextLoadPosition=this.startPosition=i),this.tick()},i.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},i.onHandlerDestroying=function(){this.stopLoad(),e.prototype.onHandlerDestroying.call(this)},i.onHandlerDestroyed=function(){this.state=pe,this.fragmentTracker=null},i.computeLivePosition=function(e,t){var r=void 0!==this.config.liveSyncDuration?this.config.liveSyncDuration:this.config.liveSyncDurationCount*t.targetduration;return e+Math.max(0,t.totalduration-r)},n}(me);function Ye(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Oe,Pe=function(e){var t,r;function n(t,r){var n;return(n=e.call(this,t,u.default.MEDIA_ATTACHED,u.default.MEDIA_DETACHING,u.default.MANIFEST_LOADING,u.default.MANIFEST_PARSED,u.default.LEVEL_LOADED,u.default.LEVELS_UPDATED,u.default.KEY_LOADED,u.default.FRAG_LOADED,u.default.FRAG_LOAD_EMERGENCY_ABORTED,u.default.FRAG_PARSING_INIT_SEGMENT,u.default.FRAG_PARSING_DATA,u.default.FRAG_PARSED,u.default.ERROR,u.default.AUDIO_TRACK_SWITCHING,u.default.AUDIO_TRACK_SWITCHED,u.default.BUFFER_CREATED,u.default.BUFFER_APPENDED,u.default.BUFFER_FLUSHED)||this).fragmentTracker=r,n.config=t.config,n.audioCodecSwap=!1,n._state=pe,n.stallReported=!1,n.gapController=null,n.altAudio=!1,n.audioOnly=!1,n.bitrateTest=!1,n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var i,o,c,h=n.prototype;return h.startLoad=function(e){if(this.levels){var t=this.lastCurrentTime,r=this.hls;if(this.stopLoad(),this.setInterval(100),this.level=-1,this.fragLoadError=0,!this.startFragRequested){var n=r.startLevel;-1===n&&(r.config.testBandwidth?(n=0,this.bitrateTest=!0):n=r.nextAutoLevel),this.level=r.nextLoadLevel=n,this.loadedmetadata=!1}t>0&&-1===e&&(d.logger.log("override startPosition with lastCurrentTime @"+t.toFixed(3)),e=t),this.state=_e,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}else this.forceStartLoad=!0,this.state=pe},h.stopLoad=function(){this.forceStartLoad=!1,e.prototype.stopLoad.call(this)},h.doTick=function(){switch(this.state){case xe:this.fragLoadError=0;break;case _e:this._doTickIdle();break;case Ae:var e=this.levels[this.level];e&&e.details&&(this.state=_e);break;case Me:var t=window.performance.now(),r=this.retryDate;(!r||t>=r||this.media&&this.media.seeking)&&(d.logger.log("mediaController: retryDate reached, switch back to IDLE state"),this.state=_e)}this._checkBuffer(),this._checkFragmentChanged()},h._doTickIdle=function(){var e=this.hls,t=e.config,r=this.media;if(void 0!==this.levelLastLoaded&&(r||!this.startFragRequested&&t.startFragPrefetch))if(this.altAudio&&this.audioOnly)this.demuxer.frag=null;else{var n;n=this.loadedmetadata?r.currentTime:this.nextLoadPosition;var i=e.nextLoadLevel,a=this.levels[i];if(a){var o,s=a.bitrate;o=s?Math.max(8*t.maxBufferSize/s,t.maxBufferLength):t.maxBufferLength,o=Math.min(o,t.maxMaxBufferLength);var l=n<t.maxBufferHole?Math.max(2,t.maxBufferHole):t.maxBufferHole,c=W.bufferInfo(this.mediaBuffer?this.mediaBuffer:r,n,l),h=c.len;if(!(h>=o)){d.logger.trace("buffer length of "+h.toFixed(3)+" is below max of "+o.toFixed(3)+". checking for more payload ..."),this.level=e.nextLoadLevel=i;var f=a.details;if(!f||f.live&&this.levelLastLoaded!==i)this.state=Ae;else{if(this._streamEnded(c,f)){var m={};return this.altAudio&&(m.type="video"),this.hls.trigger(u.default.BUFFER_EOS,m),void(this.state=ke)}this._fetchPayloadOrEos(n,c,f)}}}}},h._fetchPayloadOrEos=function(e,t,r){var n=this.fragPrevious,i=(this.level,r.fragments),a=i.length;if(0!==a){var o,s=i[0].start,l=i[a-1].start+i[a-1].duration,u=t.end;if(r.initSegment&&!r.initSegment.data)o=r.initSegment;else if(r.live){var c=this.config.initialLiveManifestSize;if(a<c)return void d.logger.warn("Can not start playback of a level, reason: not enough fragments "+a+" < "+c);if(null===(o=this._ensureFragmentAtLivePoint(r,u,s,l,n,i)))return}else u<s&&(o=i[0]);o||(o=this._findFragment(s,n,a,i,u,l,r)),o&&(o.encrypted?this._loadKey(o,r):this._loadFragment(o,r,e,u))}},h._ensureFragmentAtLivePoint=function(e,t,r,n,i,a){var o,s=this.hls.config,u=this.media,c=1/0;if(void 0!==s.liveMaxLatencyDuration?c=s.liveMaxLatencyDuration:Object(l.isFiniteNumber)(s.liveMaxLatencyDurationCount)&&(c=s.liveMaxLatencyDurationCount*e.targetduration),t<Math.max(r-s.maxFragLookUpTolerance,n-c)){var h=this.liveSyncPosition=this.computeLivePosition(r,e);t=h,u&&!u.paused&&u.readyState&&u.duration>h&&h>u.currentTime&&(d.logger.log("buffer end: "+t.toFixed(3)+" is located too far from the end of live sliding playlist, reset currentTime to : "+h.toFixed(3)),u.currentTime=h),this.nextLoadPosition=h}if(e.PTSKnown&&t>n&&u&&u.readyState)return null;if(this.startFragRequested&&!e.PTSKnown&&i)if(e.hasProgramDateTime)d.logger.log("live playlist, switching playlist, load frag with same PDT: "+i.programDateTime),o=le(a,i.endProgramDateTime,s.maxFragLookUpTolerance);else{var f=i.sn+1;if(f>=e.startSN&&f<=e.endSN){var m=a[f-e.startSN];i.cc===m.cc&&(o=m,d.logger.log("live playlist, switching playlist, load frag with next SN: "+o.sn))}o||(o=U.search(a,(function(e){return i.cc-e.cc})))&&d.logger.log("live playlist, switching playlist, load frag with same CC: "+o.sn)}return o},h._findFragment=function(e,t,r,n,i,a,o){var s,l=this.hls.config;if(s=i<a?ue(t,n,i,i>a-l.maxFragLookUpTolerance?0:l.maxFragLookUpTolerance):n[r-1]){var u=s.sn-o.startSN,c=t&&s.level===t.level,h=n[u-1],f=n[u+1];if(t&&s.sn===t.sn)if(c&&!s.backtracked)if(s.sn<o.endSN){var m=t.deltaPTS;m&&m>l.maxBufferHole&&t.dropped&&u?(s=h,d.logger.warn("Previous fragment was dropped with large PTS gap between audio and video. Maybe fragment is not starting with a keyframe? Loading previous one to try to overcome this")):(s=f,this.fragmentTracker.getState(s)!==H&&d.logger.log("Re-loading fragment with SN: "+s.sn))}else s=null;else s.backtracked&&(f&&f.backtracked?(d.logger.warn("Already backtracked from fragment "+f.sn+", will not backtrack to fragment "+s.sn+". Loading fragment "+f.sn),s=f):(d.logger.warn("Loaded fragment with dropped frames, backtracking 1 segment to find a keyframe"),s.dropped=0,h?(s=h).backtracked=!0:u&&(s=null)))}return s},h._loadKey=function(e,t){d.logger.log("Loading key for "+e.sn+" of ["+t.startSN+"-"+t.endSN+"], level "+this.level),this.state=ye,this.hls.trigger(u.default.KEY_LOADING,{frag:e})},h._loadFragment=function(e,t,r,n){var i=this.fragmentTracker.getState(e);this.fragCurrent=e,"initSegment"!==e.sn&&(this.startFragRequested=!0),Object(l.isFiniteNumber)(e.sn)&&!e.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),e.backtracked||i===F||i===N?(e.autoLevel=this.hls.autoLevelEnabled,e.bitrateTest=this.bitrateTest,d.logger.log("Loading "+e.sn+" of ["+t.startSN+"-"+t.endSN+"], level "+this.level+", "+(this.loadedmetadata?"currentTime":"nextLoadPosition")+": "+parseFloat(r.toFixed(3))+", bufferEnd: "+parseFloat(n.toFixed(3))),this.hls.trigger(u.default.FRAG_LOADING,{frag:e}),this.demuxer||(this.demuxer=new Z(this.hls,"main")),this.state=be):i===j&&this._reduceMaxBufferLength(e.duration)&&this.fragmentTracker.removeFragment(e)},h.getBufferedFrag=function(e){return this.fragmentTracker.getBufferedFrag(e,a.MAIN)},h.followingBufferedFrag=function(e){return e?this.getBufferedFrag(e.endPTS+.5):null},h._checkFragmentChanged=function(){var e,t,r=this.media;if(r&&r.readyState&&!1===r.seeking&&((t=r.currentTime)>this.lastCurrentTime&&(this.lastCurrentTime=t),W.isBuffered(r,t)?e=this.getBufferedFrag(t):W.isBuffered(r,t+.1)&&(e=this.getBufferedFrag(t+.1)),e)){var n=e;if(n!==this.fragPlaying){this.hls.trigger(u.default.FRAG_CHANGED,{frag:n});var i=n.level;this.fragPlaying&&this.fragPlaying.level===i||this.hls.trigger(u.default.LEVEL_SWITCHED,{level:i}),this.fragPlaying=n}}},h.immediateLevelSwitch=function(){if(d.logger.log("immediateLevelSwitch"),!this.immediateSwitch){this.immediateSwitch=!0;var e,t=this.media;t?(e=t.paused)||t.pause():e=!0,this.previouslyPaused=e}var r=this.fragCurrent;r&&r.loader&&r.loader.abort(),this.fragCurrent=null,this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},h.immediateLevelSwitchEnd=function(){var e=this.media;e&&e.buffered.length&&(this.immediateSwitch=!1,e.currentTime>0&&W.isBuffered(e,e.currentTime)&&(e.currentTime-=1e-4),this.previouslyPaused||e.play())},h.nextLevelSwitch=function(){var e=this.media;if(e&&e.readyState){var t,r=this.getBufferedFrag(e.currentTime);if(r&&r.startPTS>1&&this.flushMainBuffer(0,r.startPTS-1),e.paused)t=0;else{var n=this.hls.nextLoadLevel,i=this.levels[n],a=this.fragLastKbps;t=a&&this.fragCurrent?this.fragCurrent.duration*i.bitrate/(1e3*a)+1:0}var o=this.getBufferedFrag(e.currentTime+t);if(o){var s=this.followingBufferedFrag(o);if(s){var l=this.fragCurrent;l&&l.loader&&l.loader.abort(),this.fragCurrent=null;var u=Math.max(o.endPTS,s.maxStartPTS+Math.min(this.config.maxFragLookUpTolerance,s.duration));this.flushMainBuffer(u,Number.POSITIVE_INFINITY)}}}},h.flushMainBuffer=function(e,t){this.state=xe;var r={startOffset:e,endOffset:t};this.altAudio&&(r.type="video"),this.hls.trigger(u.default.BUFFER_FLUSHING,r)},h.onMediaAttached=function(e){var t=this.media=this.mediaBuffer=e.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),this.onvended=this.onMediaEnded.bind(this),t.addEventListener("seeking",this.onvseeking),t.addEventListener("seeked",this.onvseeked),t.addEventListener("ended",this.onvended);var r=this.config;this.levels&&r.autoStartLoad&&this.hls.startLoad(r.startPosition),this.gapController=new he(r,t,this.fragmentTracker,this.hls)},h.onMediaDetaching=function(){var e=this.media;e&&e.ended&&(d.logger.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0);var t=this.levels;t&&t.forEach((function(e){e.details&&e.details.fragments.forEach((function(e){e.backtracked=void 0}))})),e&&(e.removeEventListener("seeking",this.onvseeking),e.removeEventListener("seeked",this.onvseeked),e.removeEventListener("ended",this.onvended),this.onvseeking=this.onvseeked=this.onvended=null),this.fragmentTracker.removeAllFragments(),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.stopLoad()},h.onMediaSeeked=function(){var e=this.media,t=e?e.currentTime:void 0;Object(l.isFiniteNumber)(t)&&d.logger.log("media seeked to "+t.toFixed(3)),this.tick()},h.onManifestLoading=function(){d.logger.log("trigger BUFFER_RESET"),this.hls.trigger(u.default.BUFFER_RESET),this.fragmentTracker.removeAllFragments(),this.stalled=!1,this.startPosition=this.lastCurrentTime=0},h.onManifestParsed=function(e){var t,r=!1,n=!1;e.levels.forEach((function(e){(t=e.audioCodec)&&(-1!==t.indexOf("mp4a.40.2")&&(r=!0),-1!==t.indexOf("mp4a.40.5")&&(n=!0))})),this.audioCodecSwitch=r&&n,this.audioCodecSwitch&&d.logger.log("both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.altAudio=e.altAudio,this.levels=e.levels,this.startFragRequested=!1;var i=this.config;(i.autoStartLoad||this.forceStartLoad)&&this.hls.startLoad(i.startPosition)},h.onLevelLoaded=function(e){var t=e.details,r=e.level,n=this.levels[this.levelLastLoaded],i=this.levels[r],a=t.totalduration,o=0;if(d.logger.log("level "+r+" loaded ["+t.startSN+","+t.endSN+"],duration:"+a),t.live||i.details&&i.details.live){var s=i.details;s&&t.fragments.length>0?(re(s,t),o=t.fragments[0].start,this.liveSyncPosition=this.computeLivePosition(o,s),t.PTSKnown&&Object(l.isFiniteNumber)(o)?d.logger.log("live playlist sliding:"+o.toFixed(3)):(d.logger.log("live playlist - outdated PTS, unknown sliding"),se(this.fragPrevious,n,t))):(d.logger.log("live playlist - first load, unknown sliding"),t.PTSKnown=!1,se(this.fragPrevious,n,t))}else t.PTSKnown=!1;if(i.details=t,this.levelLastLoaded=r,this.hls.trigger(u.default.LEVEL_UPDATED,{details:t,level:r}),!1===this.startFragRequested){if(-1===this.startPosition||-1===this.lastCurrentTime){var c=t.startTimeOffset;Object(l.isFiniteNumber)(c)?(c<0&&(d.logger.log("negative start time offset "+c+", count from end of last fragment"),c=o+a+c),d.logger.log("start time offset found in playlist, adjust startPosition to "+c),this.startPosition=c):t.live?(this.startPosition=this.computeLivePosition(o,t),d.logger.log("configure startPosition to "+this.startPosition)):this.startPosition=0,this.lastCurrentTime=this.startPosition}this.nextLoadPosition=this.startPosition}this.state===Ae&&(this.state=_e),this.tick()},h.onKeyLoaded=function(){this.state===ye&&(this.state=_e,this.tick())},h.onFragLoaded=function(e){var t=this.fragCurrent,r=this.hls,n=this.levels,i=this.media,a=e.frag;if(this.state===be&&t&&"main"===a.type&&a.level===t.level&&a.sn===t.sn){var o=e.stats,s=n[t.level],l=s.details;if(this.bitrateTest=!1,this.stats=o,d.logger.log("Loaded "+t.sn+" of ["+l.startSN+" ,"+l.endSN+"],level "+t.level),a.bitrateTest&&r.nextLoadLevel)this.state=_e,this.startFragRequested=!1,o.tparsed=o.tbuffered=window.performance.now(),r.trigger(u.default.FRAG_BUFFERED,{stats:o,frag:t,id:"main"}),this.tick();else if("initSegment"===a.sn)this.state=_e,o.tparsed=o.tbuffered=window.performance.now(),l.initSegment.data=e.payload,r.trigger(u.default.FRAG_BUFFERED,{stats:o,frag:t,id:"main"}),this.tick();else{d.logger.log("Parsing "+t.sn+" of ["+l.startSN+" ,"+l.endSN+"],level "+t.level+", cc "+t.cc),this.state=Le,this.pendingBuffering=!0,this.appended=!1,a.bitrateTest&&(a.bitrateTest=!1,this.fragmentTracker.onFragLoaded({frag:a}));var c=!(i&&i.seeking)&&(l.PTSKnown||!l.live),h=l.initSegment?l.initSegment.data:[],f=this._getAudioCodec(s);(this.demuxer=this.demuxer||new Z(this.hls,"main")).push(e.payload,h,f,s.videoCodec,t,l.totalduration,c)}}this.fragLoadError=0},h.onFragParsingInitSegment=function(e){var t=this.fragCurrent,r=e.frag;if(t&&"main"===e.id&&r.sn===t.sn&&r.level===t.level&&this.state===Le){var n,i,a=e.tracks;if(this.audioOnly=a.audio&&!a.video,this.altAudio&&!this.audioOnly&&delete a.audio,i=a.audio){var o=this.levels[this.level].audioCodec,s=navigator.userAgent.toLowerCase();o&&this.audioCodecSwap&&(d.logger.log("swapping playlist audio codec"),o=-1!==o.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),this.audioCodecSwitch&&1!==i.metadata.channelCount&&-1===s.indexOf("firefox")&&(o="mp4a.40.5"),-1!==s.indexOf("android")&&"audio/mpeg"!==i.container&&(o="mp4a.40.2",d.logger.log("Android: force audio codec to "+o)),i.levelCodec=o,i.id=e.id}for(n in(i=a.video)&&(i.levelCodec=this.levels[this.level].videoCodec,i.id=e.id),this.hls.trigger(u.default.BUFFER_CODECS,a),a){i=a[n],d.logger.log("main track:"+n+",container:"+i.container+",codecs[level/parsed]=["+i.levelCodec+"/"+i.codec+"]");var l=i.initSegment;l&&(this.appended=!0,this.pendingBuffering=!0,this.hls.trigger(u.default.BUFFER_APPENDING,{type:n,data:l,parent:"main",content:"initSegment"}))}this.tick()}},h.onFragParsingData=function(e){var t=this,r=this.fragCurrent,n=e.frag;if(r&&"main"===e.id&&n.sn===r.sn&&n.level===r.level&&("audio"!==e.type||!this.altAudio)&&this.state===Le){var i=this.levels[this.level],a=r;if(Object(l.isFiniteNumber)(e.endPTS)||(e.endPTS=e.startPTS+r.duration,e.endDTS=e.startDTS+r.duration),!0===e.hasAudio&&a.addElementaryStream(p.AUDIO),!0===e.hasVideo&&a.addElementaryStream(p.VIDEO),d.logger.log("Parsed "+e.type+",PTS:["+e.startPTS.toFixed(3)+","+e.endPTS.toFixed(3)+"],DTS:["+e.startDTS.toFixed(3)+"/"+e.endDTS.toFixed(3)+"],nb:"+e.nb+",dropped:"+(e.dropped||0)),"video"===e.type)if(a.dropped=e.dropped,a.dropped)if(a.backtracked)d.logger.warn("Already backtracked on this fragment, appending with the gap",a.sn);else{var o=i.details;if(!o||a.sn!==o.startSN)return d.logger.warn("missing video frame(s), backtracking fragment",a.sn),this.fragmentTracker.removeFragment(a),a.backtracked=!0,this.nextLoadPosition=e.startPTS,this.state=_e,this.fragPrevious=a,this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),void this.tick();d.logger.warn("missing video frame(s) on first frag, appending with gap",a.sn)}else a.backtracked=!1;var s=te(i.details,a,e.startPTS,e.endPTS,e.startDTS,e.endDTS),c=this.hls;c.trigger(u.default.LEVEL_PTS_UPDATED,{details:i.details,level:this.level,drift:s,type:e.type,start:e.startPTS,end:e.endPTS}),[e.data1,e.data2].forEach((function(r){r&&r.length&&t.state===Le&&(t.appended=!0,t.pendingBuffering=!0,c.trigger(u.default.BUFFER_APPENDING,{type:e.type,data:r,parent:"main",content:"data"}))})),this.tick()}},h.onFragParsed=function(e){var t=this.fragCurrent,r=e.frag;t&&"main"===e.id&&r.sn===t.sn&&r.level===t.level&&this.state===Le&&(this.stats.tparsed=window.performance.now(),this.state=Te,this._checkAppendedParsed())},h.onAudioTrackSwitching=function(e){var t=this.altAudio,r=!!e.url,n=e.id;if(!r){if(this.mediaBuffer!==this.media){d.logger.log("switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var i=this.fragCurrent;i.loader&&(d.logger.log("switching to main audio track, cancel main fragment load"),i.loader.abort()),this.fragCurrent=null,this.fragPrevious=null,this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),this.state=_e}var a=this.hls;t&&a.trigger(u.default.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),a.trigger(u.default.AUDIO_TRACK_SWITCHED,{id:n})}},h.onAudioTrackSwitched=function(e){var t=e.id,r=!!this.hls.audioTracks[t].url;if(r){var n=this.videoBuffer;n&&this.mediaBuffer!==n&&(d.logger.log("switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=n)}this.altAudio=r,this.tick()},h.onBufferCreated=function(e){var t,r,n=e.tracks,i=!1;for(var a in n){var o=n[a];"main"===o.id?(r=a,t=o,"video"===a&&(this.videoBuffer=n[a].buffer)):i=!0}i&&t?(d.logger.log("alternate track found, use "+r+".buffered to schedule main fragment loading"),this.mediaBuffer=t.buffer):this.mediaBuffer=this.media},h.onBufferAppended=function(e){if("main"===e.parent){var t=this.state;t!==Le&&t!==Te||(this.pendingBuffering=e.pending>0,this._checkAppendedParsed())}},h._checkAppendedParsed=function(){if(!(this.state!==Te||this.appended&&this.pendingBuffering)){var e=this.fragCurrent;if(e){var t=this.mediaBuffer?this.mediaBuffer:this.media;d.logger.log("main buffered : "+ae.toString(t.buffered)),this.fragPrevious=e;var r=this.stats;r.tbuffered=window.performance.now(),this.fragLastKbps=Math.round(8*r.total/(r.tbuffered-r.tfirst)),this.hls.trigger(u.default.FRAG_BUFFERED,{stats:r,frag:e,id:"main"}),this.state=_e}(this.loadedmetadata||this.startPosition<=0)&&this.tick()}},h.onError=function(e){var t=e.frag||this.fragCurrent;if(!t||"main"===t.type){var r=!!this.media&&W.isBuffered(this.media,this.media.currentTime)&&W.isBuffered(this.media,this.media.currentTime+.5);switch(e.details){case s.ErrorDetails.FRAG_LOAD_ERROR:case s.ErrorDetails.FRAG_LOAD_TIMEOUT:case s.ErrorDetails.KEY_LOAD_ERROR:case s.ErrorDetails.KEY_LOAD_TIMEOUT:if(!e.fatal)if(this.fragLoadError+1<=this.config.fragLoadingMaxRetry){var n=Math.min(Math.pow(2,this.fragLoadError)*this.config.fragLoadingRetryDelay,this.config.fragLoadingMaxRetryTimeout);d.logger.warn("mediaController: frag loading failed, retry in "+n+" ms"),this.retryDate=window.performance.now()+n,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.fragLoadError++,this.state=Me}else d.logger.error("mediaController: "+e.details+" reaches max retry, redispatch as fatal ..."),e.fatal=!0,this.state=Se;break;case s.ErrorDetails.LEVEL_LOAD_ERROR:case s.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==Se&&(e.fatal?(this.state=Se,d.logger.warn("streamController: "+e.details+",switch to "+this.state+" state ...")):e.levelRetry||this.state!==Ae||(this.state=_e));break;case s.ErrorDetails.BUFFER_FULL_ERROR:"main"!==e.parent||this.state!==Le&&this.state!==Te||(r?(this._reduceMaxBufferLength(this.config.maxBufferLength),this.state=_e):(d.logger.warn("buffer full error also media.currentTime is not buffered, flush everything"),this.fragCurrent=null,this.flushMainBuffer(0,Number.POSITIVE_INFINITY)))}}},h._reduceMaxBufferLength=function(e){var t=this.config;return t.maxMaxBufferLength>=e&&(t.maxMaxBufferLength/=2,d.logger.warn("main:reduce max buffer length to "+t.maxMaxBufferLength+"s"),!0)},h._checkBuffer=function(){var e=this.media;if(e&&0!==e.readyState){var t=(this.mediaBuffer?this.mediaBuffer:e).buffered;!this.loadedmetadata&&t.length?(this.loadedmetadata=!0,this._seekToStartPos()):this.immediateSwitch?this.immediateLevelSwitchEnd():this.gapController.poll(this.lastCurrentTime,t)}},h.onFragLoadEmergencyAborted=function(){this.state=_e,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tick()},h.onBufferFlushed=function(){var e=this.mediaBuffer?this.mediaBuffer:this.media;if(e){var t=this.audioOnly?p.AUDIO:p.VIDEO;this.fragmentTracker.detectEvictedFragments(t,e.buffered)}this.state=_e,this.fragPrevious=null},h.onLevelsUpdated=function(e){this.levels=e.levels},h.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},h._seekToStartPos=function(){var e=this.media,t=e.currentTime,r=this.startPosition;if(t!==r&&r>=0){if(e.seeking)return void d.logger.log("could not seek to "+r+", already seeking at "+t);var n=(e.buffered.length?e.buffered.start(0):0)-r;n>0&&n<this.config.maxBufferHole&&(d.logger.log("adjusting start position by "+n+" to match buffer start"),r+=n,this.startPosition=r),d.logger.log("seek to target start position "+r+" from current time "+t+". ready state "+e.readyState),e.currentTime=r}},h._getAudioCodec=function(e){var t=this.config.defaultAudioCodec||e.audioCodec;return this.audioCodecSwap&&(d.logger.log("swapping playlist audio codec"),t&&(t=-1!==t.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5")),t},i=n,(o=[{key:"state",set:function(e){if(this.state!==e){var t=this.state;this._state=e,d.logger.log("main stream-controller: "+t+"->"+e),this.hls.trigger(u.default.STREAM_STATE_TRANSITION,{previousState:t,nextState:e})}},get:function(){return this._state}},{key:"currentLevel",get:function(){var e=this.media;if(e){var t=this.getBufferedFrag(e.currentTime);if(t)return t.level}return-1}},{key:"nextBufferedFrag",get:function(){var e=this.media;return e?this.followingBufferedFrag(this.getBufferedFrag(e.currentTime)):null}},{key:"nextLevel",get:function(){var e=this.nextBufferedFrag;return e?e.level:-1}},{key:"liveSyncPosition",get:function(){return this._liveSyncPosition},set:function(e){this._liveSyncPosition=e}}])&&Ye(i.prototype,o),c&&Ye(i,c),n}(Ee);function Re(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Ce=function(e){var t,r;function n(t){var r;return(r=e.call(this,t,u.default.MANIFEST_LOADED,u.default.LEVEL_LOADED,u.default.AUDIO_TRACK_SWITCHED,u.default.FRAG_LOADED,u.default.ERROR)||this).canload=!1,r.currentLevelIndex=null,r.manualLevelIndex=-1,r.timer=null,Oe=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),r}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var i,a,o,l=n.prototype;return l.onHandlerDestroying=function(){this.clearTimer(),this.manualLevelIndex=-1},l.clearTimer=function(){null!==this.timer&&(clearTimeout(this.timer),this.timer=null)},l.startLoad=function(){var e=this._levels;this.canload=!0,this.levelRetryCount=0,e&&e.forEach((function(e){e.loadError=0;var t=e.details;t&&t.live&&(e.details=void 0)})),null!==this.timer&&this.loadLevel()},l.stopLoad=function(){this.canload=!1},l.onManifestLoaded=function(e){var t,r=[],n=[],i={},a=null,o=!1,l=!1;if(e.levels.forEach((function(e){var t=e.attrs;e.loadError=0,e.fragmentError=!1,o=o||!!e.videoCodec,l=l||!!e.audioCodec,Oe&&e.audioCodec&&-1!==e.audioCodec.indexOf("mp4a.40.34")&&(e.audioCodec=void 0),(a=i[e.bitrate])?a.url.push(e.url):(e.url=[e.url],e.urlId=0,i[e.bitrate]=e,r.push(e)),t&&(t.AUDIO&&Q(a||e,"audio",t.AUDIO),t.SUBTITLES&&Q(a||e,"text",t.SUBTITLES))})),o&&l&&(r=r.filter((function(e){return!!e.videoCodec}))),r=r.filter((function(e){var t=e.audioCodec,r=e.videoCodec;return(!t||x(t,"audio"))&&(!r||x(r,"video"))})),e.audioTracks&&(n=e.audioTracks.filter((function(e){return!e.audioCodec||x(e.audioCodec,"audio")}))).forEach((function(e,t){e.id=t})),r.length>0){t=r[0].bitrate,r.sort((function(e,t){return e.bitrate-t.bitrate})),this._levels=r;for(var c=0;c<r.length;c++)if(r[c].bitrate===t){this._firstLevel=c,d.logger.log("manifest loaded,"+r.length+" level(s) found, first bitrate:"+t);break}var h=l&&!o;this.hls.trigger(u.default.MANIFEST_PARSED,{levels:r,audioTracks:n,firstLevel:this._firstLevel,stats:e.stats,audio:l,video:o,altAudio:!h&&n.some((function(e){return!!e.url}))})}else this.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:this.hls.url,reason:"no level with compatible codecs found in manifest"})},l.setLevelInternal=function(e){var t=this._levels,r=this.hls;if(e>=0&&e<t.length){if(this.clearTimer(),this.currentLevelIndex!==e){d.logger.log("switching to level "+e),this.currentLevelIndex=e;var n=t[e];n.level=e,r.trigger(u.default.LEVEL_SWITCHING,n)}var i=t[e],a=i.details;if(!a||a.live){var o=i.urlId;r.trigger(u.default.LEVEL_LOADING,{url:i.url[o],level:e,id:o})}}else r.trigger(u.default.ERROR,{type:s.ErrorTypes.OTHER_ERROR,details:s.ErrorDetails.LEVEL_SWITCH_ERROR,level:e,fatal:!1,reason:"invalid level idx"})},l.onError=function(e){if(e.fatal)e.type===s.ErrorTypes.NETWORK_ERROR&&this.clearTimer();else{var t,r=!1,n=!1;switch(e.details){case s.ErrorDetails.FRAG_LOAD_ERROR:case s.ErrorDetails.FRAG_LOAD_TIMEOUT:case s.ErrorDetails.KEY_LOAD_ERROR:case s.ErrorDetails.KEY_LOAD_TIMEOUT:t=e.frag.level,n=!0;break;case s.ErrorDetails.LEVEL_LOAD_ERROR:case s.ErrorDetails.LEVEL_LOAD_TIMEOUT:t=e.context.level,r=!0;break;case s.ErrorDetails.REMUX_ALLOC_ERROR:t=e.level,r=!0}void 0!==t&&this.recoverLevel(e,t,r,n)}},l.recoverLevel=function(e,t,r,n){var i,a,o,s=this,l=this.hls.config,u=e.details,c=this._levels[t];if(c.loadError++,c.fragmentError=n,r){if(!(this.levelRetryCount+1<=l.levelLoadingMaxRetry))return d.logger.error("level controller, cannot recover from "+u+" error"),this.currentLevelIndex=null,this.clearTimer(),void(e.fatal=!0);a=Math.min(Math.pow(2,this.levelRetryCount)*l.levelLoadingRetryDelay,l.levelLoadingMaxRetryTimeout),this.timer=setTimeout((function(){return s.loadLevel()}),a),e.levelRetry=!0,this.levelRetryCount++,d.logger.warn("level controller, "+u+", retry in "+a+" ms, current retry count is "+this.levelRetryCount)}(r||n)&&((i=c.url.length)>1&&c.loadError<i?(c.urlId=(c.urlId+1)%i,c.details=void 0,d.logger.warn("level controller, "+u+" for level "+t+": switching to redundant URL-id "+c.urlId)):-1===this.manualLevelIndex?(o=0===t?this._levels.length-1:t-1,d.logger.warn("level controller, "+u+": switch to "+o),this.hls.nextAutoLevel=this.currentLevelIndex=o):n&&(d.logger.warn("level controller, "+u+": reload a fragment"),this.currentLevelIndex=null))},l.onFragLoaded=function(e){var t=e.frag;if(void 0!==t&&"main"===t.type){var r=this._levels[t.level];void 0!==r&&(r.fragmentError=!1,r.loadError=0,this.levelRetryCount=0)}},l.onLevelLoaded=function(e){var t=this,r=e.level,n=e.details;if(r===this.currentLevelIndex){var i=this._levels[r];if(i.fragmentError||(i.loadError=0,this.levelRetryCount=0),n.live){var a=ie(i.details,n,e.stats.trequest);d.logger.log("live playlist, reload in "+Math.round(a)+" ms"),this.timer=setTimeout((function(){return t.loadLevel()}),a)}else this.clearTimer()}},l.onAudioTrackSwitched=function(e){var t=this.hls.audioTracks[e.id].groupId,r=this.hls.levels[this.currentLevelIndex];if(r&&r.audioGroupIds){for(var n=-1,i=0;i<r.audioGroupIds.length;i++)if(r.audioGroupIds[i]===t){n=i;break}n!==r.urlId&&(r.urlId=n,this.startLoad())}},l.loadLevel=function(){if(d.logger.debug("call to loadLevel"),null!==this.currentLevelIndex&&this.canload){var e=this._levels[this.currentLevelIndex];if("object"==typeof e&&e.url.length>0){var t=this.currentLevelIndex,r=e.urlId,n=e.url[r];d.logger.log("Attempt loading level index "+t+" with URL-id "+r),this.hls.trigger(u.default.LEVEL_LOADING,{url:n,level:t,id:r})}}},l.removeLevel=function(e,t){var r=this.levels.filter((function(r,n){return n!==e||r.url.length>1&&void 0!==t&&(r.url=r.url.filter((function(e,r){return r!==t})),r.urlId=0,!0)})).map((function(e,t){var r=e.details;return r&&r.fragments&&r.fragments.forEach((function(e){e.level=t})),e}));this._levels=r,this.hls.trigger(u.default.LEVELS_UPDATED,{levels:r})},i=n,(a=[{key:"levels",get:function(){return this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(e){var t=this._levels;t&&(e=Math.min(e,t.length-1),this.currentLevelIndex===e&&t[e].details||this.setLevelInternal(e))}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(e){this.manualLevelIndex=e,void 0===this._startLevel&&(this._startLevel=e),-1!==e&&(this.level=e)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(e){this._firstLevel=e}},{key:"startLevel",get:function(){if(void 0===this._startLevel){var e=this.hls.config.startLevel;return void 0!==e?e:this._firstLevel}return this._startLevel},set:function(e){this._startLevel=e}},{key:"nextLoadLevel",get:function(){return-1!==this.manualLevelIndex?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(e){this.level=e,-1===this.manualLevelIndex&&(this.hls.nextAutoLevel=e)}}])&&Re(i.prototype,a),o&&Re(i,o),n}(h),Ie=r("./src/demux/id3.js");function Fe(e,t){var r;try{r=new Event("addtrack")}catch(e){(r=document.createEvent("Event")).initEvent("addtrack",!1,!1)}r.track=e,t.dispatchEvent(r)}function je(e){if(null==e?void 0:e.cues)for(;e.cues.length>0;)e.removeCue(e.cues[0])}var Ne=function(e){var t,r;function n(t){var r;return(r=e.call(this,t,u.default.MEDIA_ATTACHED,u.default.MEDIA_DETACHING,u.default.FRAG_PARSING_METADATA,u.default.LIVE_BACK_BUFFER_REACHED)||this).id3Track=void 0,r.media=void 0,r}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var i=n.prototype;return i.destroy=function(){h.prototype.destroy.call(this)},i.onMediaAttached=function(e){this.media=e.media,this.media},i.onMediaDetaching=function(){je(this.id3Track),this.id3Track=void 0,this.media=void 0},i.getID3Track=function(e){for(var t=0;t<e.length;t++){var r=e[t];if("metadata"===r.kind&&"id3"===r.label)return Fe(r,this.media),r}return this.media.addTextTrack("metadata","id3")},i.onFragParsingMetadata=function(e){var t=e.frag,r=e.samples;this.id3Track||(this.id3Track=this.getID3Track(this.media.textTracks),this.id3Track.mode="hidden");for(var n=window.WebKitDataCue||window.VTTCue||window.TextTrackCue,i=0;i<r.length;i++){var a=Ie.default.getID3Frames(r[i].data);if(a){var o=Math.max(r[i].pts,0),s=i<r.length-1?r[i+1].pts:t.endPTS;s||(s=t.start+t.duration),s-o<=0&&(s=o+.25);for(var l=0;l<a.length;l++){var u=a[l];if(!Ie.default.isTimeStampFrame(u)){var d=new n(o,s,"");d.value=u,this.id3Track.addCue(d)}}}}},i.onLiveBackBufferReached=function(e){var t=e.bufferEnd,r=this.id3Track;if(r&&r.cues&&r.cues.length){var n=function(e,t){if(t<e[0].endTime)return e[0];if(t>e[e.length-1].endTime)return e[e.length-1];for(var r=0,n=e.length-1;r<=n;){var i=Math.floor((n+r)/2);if(t<e[i].endTime)n=i-1;else{if(!(t>e[i].endTime))return e[i];r=i+1}}return e[r].endTime-t<t-e[n].endTime?e[r]:e[n]}(r.cues,t);if(n)for(;r.cues[0]!==n;)r.removeCue(r.cues[0])}},n}(h),He=function(){function e(e){this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.alpha_=e?Math.exp(Math.log(.5)/e):0,this.estimate_=0,this.totalWeight_=0}var t=e.prototype;return t.sample=function(e,t){var r=Math.pow(this.alpha_,e);this.estimate_=t*(1-r)+r*this.estimate_,this.totalWeight_+=e},t.getTotalWeight=function(){return this.totalWeight_},t.getEstimate=function(){if(this.alpha_){var e=1-Math.pow(this.alpha_,this.totalWeight_);return this.estimate_/e}return this.estimate_},e}(),Be=function(){function e(e,t,r,n){this.hls=void 0,this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.hls=e,this.defaultEstimate_=n,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new He(t),this.fast_=new He(r)}var t=e.prototype;return t.sample=function(e,t){var r=(e=Math.max(e,this.minDelayMs_))/1e3,n=8*t/r;this.fast_.sample(r,n),this.slow_.sample(r,n)},t.canEstimate=function(){var e=this.fast_;return e&&e.getTotalWeight()>=this.minWeight_},t.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},t.destroy=function(){},e}();function Ue(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var We=window.performance,ze=function(e){var t,r;function n(t){var r;return(r=e.call(this,t,u.default.FRAG_LOADING,u.default.FRAG_LOADED,u.default.FRAG_BUFFERED,u.default.ERROR)||this).lastLoadedFragLevel=0,r._nextAutoLevel=-1,r.hls=t,r.timer=null,r._bwEstimator=null,r.onCheck=r._abandonRulesCheck.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r)),r}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var i,a,o,c=n.prototype;return c.destroy=function(){this.clearTimer(),h.prototype.destroy.call(this)},c.onFragLoading=function(e){var t=e.frag;if("main"===t.type&&(this.timer||(this.fragCurrent=t,this.timer=setInterval(this.onCheck,100)),!this._bwEstimator)){var r,n,i=this.hls,a=i.config,o=t.level;i.levels[o].details.live?(r=a.abrEwmaFastLive,n=a.abrEwmaSlowLive):(r=a.abrEwmaFastVoD,n=a.abrEwmaSlowVoD),this._bwEstimator=new Be(i,n,r,a.abrEwmaDefaultEstimate)}},c._abandonRulesCheck=function(){var e=this.hls,t=e.media,r=this.fragCurrent;if(r){var n=r.loader;if(!n||n.stats&&n.stats.aborted)return d.logger.warn("frag loader destroy or aborted, disarm abandonRules"),this.clearTimer(),void(this._nextAutoLevel=-1);var i=n.stats;if(t&&i&&(!t.paused&&0!==t.playbackRate||!t.readyState)&&r.autoLevel&&r.level){var a=We.now()-i.trequest,o=Math.abs(t.playbackRate);if(a>500*r.duration/o){var s=e.levels,l=Math.max(1,i.bw?i.bw/8:1e3*i.loaded/a),c=s[r.level];if(!c)return;var h=c.realBitrate?Math.max(c.realBitrate,c.bitrate):c.bitrate,f=i.total?i.total:Math.max(i.loaded,Math.round(r.duration*h/8)),m=t.currentTime,p=(f-i.loaded)/l,g=(W.bufferInfo(t,m,e.config.maxBufferHole).end-m)/o;if(g<2*r.duration/o&&p>g){var _,v=e.minAutoLevel;for(_=r.level-1;_>v;_--){var y=s[_].realBitrate?Math.max(s[_].realBitrate,s[_].bitrate):s[_].bitrate;if(r.duration*y/(6.4*l)<g)break}void 0<p&&(d.logger.warn("loading too slow, abort fragment loading and switch to level "+_+":fragLoadedDelay["+_+"]<fragLoadedDelay["+(r.level-1)+"];bufferStarvationDelay:"+(void 0).toFixed(1)+"<"+p.toFixed(1)+":"+g.toFixed(1)),e.nextLoadLevel=_,this._bwEstimator.sample(a,i.loaded),n.abort(),this.clearTimer(),e.trigger(u.default.FRAG_LOAD_EMERGENCY_ABORTED,{frag:r,stats:i}))}}}}},c.onFragLoaded=function(e){var t=e.frag;if("main"===t.type&&Object(l.isFiniteNumber)(t.sn)){if(this.clearTimer(),this.lastLoadedFragLevel=t.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var r=this.hls.levels[t.level],n=(r.loaded?r.loaded.bytes:0)+e.stats.loaded,i=(r.loaded?r.loaded.duration:0)+e.frag.duration;r.loaded={bytes:n,duration:i},r.realBitrate=Math.round(8*n/i)}if(e.frag.bitrateTest){var a=e.stats;a.tparsed=a.tbuffered=a.tload,this.onFragBuffered(e)}}},c.onFragBuffered=function(e){var t=e.stats,r=e.frag;if(!0!==t.aborted&&"main"===r.type&&Object(l.isFiniteNumber)(r.sn)&&(!r.bitrateTest||t.tload===t.tbuffered)){var n=t.tparsed-t.trequest;d.logger.log("latency/loading/parsing/append/kbps:"+Math.round(t.tfirst-t.trequest)+"/"+Math.round(t.tload-t.tfirst)+"/"+Math.round(t.tparsed-t.tload)+"/"+Math.round(t.tbuffered-t.tparsed)+"/"+Math.round(8*t.loaded/(t.tbuffered-t.trequest))),this._bwEstimator.sample(n,t.loaded),t.bwEstimate=this._bwEstimator.getEstimate(),r.bitrateTest?this.bitrateTestDelay=n/1e3:this.bitrateTestDelay=0}},c.onError=function(e){switch(e.details){case s.ErrorDetails.FRAG_LOAD_ERROR:case s.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer()}},c.clearTimer=function(){clearInterval(this.timer),this.timer=null},c._findBestLevel=function(e,t,r,n,i,a,o,s,l){for(var u=i;u>=n;u--){var c=l[u];if(c){var h=c.details,f=h?h.totalduration/h.fragments.length:t,m=!!h&&h.live,p=void 0;p=u<=e?o*r:s*r;var g=l[u].realBitrate?Math.max(l[u].realBitrate,l[u].bitrate):l[u].bitrate,_=g*f/p;if(d.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+u+"/"+Math.round(p)+"/"+g+"/"+f+"/"+a+"/"+_),p>g&&(!_||m&&!this.bitrateTestDelay||_<a))return u}}return-1},i=n,(a=[{key:"nextAutoLevel",get:function(){var e=this._nextAutoLevel,t=this._bwEstimator;if(!(-1===e||t&&t.canEstimate()))return e;var r=this._nextABRAutoLevel;return-1!==e&&(r=Math.min(e,r)),r},set:function(e){this._nextAutoLevel=e}},{key:"_nextABRAutoLevel",get:function(){var e=this.hls,t=e.maxAutoLevel,r=e.levels,n=e.config,i=e.minAutoLevel,a=e.media,o=this.lastLoadedFragLevel,s=this.fragCurrent?this.fragCurrent.duration:0,l=a?a.currentTime:0,u=a&&0!==a.playbackRate?Math.abs(a.playbackRate):1,c=this._bwEstimator?this._bwEstimator.getEstimate():n.abrEwmaDefaultEstimate,h=(W.bufferInfo(a,l,n.maxBufferHole).end-l)/u,f=this._findBestLevel(o,s,c,i,t,h,n.abrBandWidthFactor,n.abrBandWidthUpFactor,r);if(f>=0)return f;d.logger.trace("rebuffering expected to happen, lets try to find a quality level minimizing the rebuffering");var m=s?Math.min(s,n.maxStarvationDelay):n.maxStarvationDelay,p=n.abrBandWidthFactor,g=n.abrBandWidthUpFactor;if(0===h){var _=this.bitrateTestDelay;_&&(m=(s?Math.min(s,n.maxLoadingDelay):n.maxLoadingDelay)-_,d.logger.trace("bitrate test took "+Math.round(1e3*_)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*m)+" ms"),p=g=1)}return f=this._findBestLevel(o,s,c,i,t,h+m,p,g,r),Math.max(f,0)}}])&&Ue(i.prototype,a),o&&Ue(i,o),n}(h),Ve=K(),Ge=function(e){var t,r;function n(t){var r;return(r=e.call(this,t,u.default.MEDIA_ATTACHING,u.default.MEDIA_DETACHING,u.default.MANIFEST_PARSED,u.default.BUFFER_RESET,u.default.BUFFER_APPENDING,u.default.BUFFER_CODECS,u.default.BUFFER_EOS,u.default.BUFFER_FLUSHING,u.default.LEVEL_PTS_UPDATED,u.default.LEVEL_UPDATED)||this)._msDuration=null,r._levelDuration=null,r._levelTargetDuration=10,r._live=null,r._objectUrl=null,r._needsFlush=!1,r._needsEos=!1,r.config=void 0,r.audioTimestampOffset=void 0,r.bufferCodecEventsExpected=0,r._bufferCodecEventsTotal=0,r.media=null,r.mediaSource=null,r.segments=[],r.parent=void 0,r.appending=!1,r.appended=0,r.appendError=0,r.flushBufferCounter=0,r.tracks={},r.pendingTracks={},r.sourceBuffer={},r.flushRange=[],r._onMediaSourceOpen=function(){d.logger.log("media source opened"),r.hls.trigger(u.default.MEDIA_ATTACHED,{media:r.media});var e=r.mediaSource;e&&e.removeEventListener("sourceopen",r._onMediaSourceOpen),r.checkPendingTracks()},r._onMediaSourceClose=function(){d.logger.log("media source closed")},r._onMediaSourceEnded=function(){d.logger.log("media source ended")},r._onSBUpdateEnd=function(){if(r.audioTimestampOffset&&r.sourceBuffer.audio){var e=r.sourceBuffer.audio;d.logger.warn("change mpeg audio timestamp offset from "+e.timestampOffset+" to "+r.audioTimestampOffset),e.timestampOffset=r.audioTimestampOffset,delete r.audioTimestampOffset}r._needsFlush&&r.doFlush(),r._needsEos&&r.checkEos(),r.appending=!1;var t=r.parent,n=r.segments.reduce((function(e,r){return r.parent===t?e+1:e}),0),i={},a=r.sourceBuffer;for(var o in a){var s=a[o];if(!s)throw Error("handling source buffer update end error: source buffer for "+o+" uninitilized and unable to update buffered TimeRanges.");i[o]=s.buffered}r.hls.trigger(u.default.BUFFER_APPENDED,{parent:t,pending:n,timeRanges:i}),r._needsFlush||r.doAppending(),r.updateMediaElementDuration(),0===n&&r.flushLiveBackBuffer()},r._onSBUpdateError=function(e){d.logger.error("sourceBuffer error:",e),r.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1})},r.config=t.config,r}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var i=n.prototype;return i.destroy=function(){h.prototype.destroy.call(this)},i.onLevelPtsUpdated=function(e){var t=e.type,r=this.tracks.audio;if("audio"===t&&r&&"audio/mpeg"===r.container){var n=this.sourceBuffer.audio;if(!n)throw Error("Level PTS Updated and source buffer for audio uninitalized");if(Math.abs(n.timestampOffset-e.start)>.1){var i=n.updating;try{n.abort()}catch(e){d.logger.warn("can not abort audio buffer: "+e)}i?this.audioTimestampOffset=e.start:(d.logger.warn("change mpeg audio timestamp offset from "+n.timestampOffset+" to "+e.start),n.timestampOffset=e.start)}}},i.onManifestParsed=function(e){var t=2;(e.audio&&!e.video||!e.altAudio)&&(t=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=t,d.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},i.onMediaAttaching=function(e){var t=this.media=e.media;if(t&&Ve){var r=this.mediaSource=new Ve;r.addEventListener("sourceopen",this._onMediaSourceOpen),r.addEventListener("sourceended",this._onMediaSourceEnded),r.addEventListener("sourceclose",this._onMediaSourceClose),t.src=window.URL.createObjectURL(r),this._objectUrl=t.src}},i.onMediaDetaching=function(){d.logger.log("media source detaching");var e=this.mediaSource;if(e){if("open"===e.readyState)try{e.endOfStream()}catch(e){d.logger.warn("onMediaDetaching:"+e.message+" while calling endOfStream")}e.removeEventListener("sourceopen",this._onMediaSourceOpen),e.removeEventListener("sourceended",this._onMediaSourceEnded),e.removeEventListener("sourceclose",this._onMediaSourceClose),this.media&&(this._objectUrl&&window.URL.revokeObjectURL(this._objectUrl),this.media.src===this._objectUrl?(this.media.removeAttribute("src"),this.media.load()):d.logger.warn("media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={},this.sourceBuffer={},this.flushRange=[],this.segments=[],this.appended=0}this.hls.trigger(u.default.MEDIA_DETACHED)},i.checkPendingTracks=function(){var e=this.bufferCodecEventsExpected,t=this.pendingTracks,r=Object.keys(t).length;(r&&!e||2===r)&&(this.createSourceBuffers(t),this.pendingTracks={},this.doAppending())},i.onBufferReset=function(){var e=this.sourceBuffer;for(var t in e){var r=e[t];try{r&&(this.mediaSource&&this.mediaSource.removeSourceBuffer(r),r.removeEventListener("updateend",this._onSBUpdateEnd),r.removeEventListener("error",this._onSBUpdateError))}catch(e){}}this.sourceBuffer={},this.flushRange=[],this.segments=[],this.appended=0},i.onBufferCodecs=function(e){var t=this;Object.keys(this.sourceBuffer).length||(Object.keys(e).forEach((function(r){t.pendingTracks[r]=e[r]})),this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&"open"===this.mediaSource.readyState&&this.checkPendingTracks())},i.createSourceBuffers=function(e){var t=this.sourceBuffer,r=this.mediaSource;if(!r)throw Error("createSourceBuffers called when mediaSource was null");for(var n in e)if(!t[n]){var i=e[n];if(!i)throw Error("source buffer exists for track "+n+", however track does not");var a=i.levelCodec||i.codec,o=i.container+";codecs="+a;d.logger.log("creating sourceBuffer("+o+")");try{var l=t[n]=r.addSourceBuffer(o);l.addEventListener("updateend",this._onSBUpdateEnd),l.addEventListener("error",this._onSBUpdateError),this.tracks[n]={buffer:l,codec:a,id:i.id,container:i.container,levelCodec:i.levelCodec}}catch(e){d.logger.error("error while trying to add sourceBuffer:"+e.message),this.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,err:e,mimeType:o})}}this.hls.trigger(u.default.BUFFER_CREATED,{tracks:this.tracks})},i.onBufferAppending=function(e){this._needsFlush||(this.segments?this.segments.push(e):this.segments=[e],this.doAppending())},i.onBufferEos=function(e){for(var t in this.sourceBuffer)if(!e.type||e.type===t){var r=this.sourceBuffer[t];r&&!r.ended&&(r.ended=!0,d.logger.log(t+" sourceBuffer now EOS"))}this.checkEos()},i.checkEos=function(){var e=this.sourceBuffer,t=this.mediaSource;if(t&&"open"===t.readyState){for(var r in e){var n=e[r];if(n){if(!n.ended)return;if(n.updating)return void(this._needsEos=!0)}}d.logger.log("all media data are available, signal endOfStream() to MediaSource and stop loading fragment");try{t.endOfStream()}catch(e){d.logger.warn("exception while calling mediaSource.endOfStream()")}this._needsEos=!1}else this._needsEos=!1},i.onBufferFlushing=function(e){e.type?this.flushRange.push({start:e.startOffset,end:e.endOffset,type:e.type}):(this.flushRange.push({start:e.startOffset,end:e.endOffset,type:"video"}),this.flushRange.push({start:e.startOffset,end:e.endOffset,type:"audio"})),this.flushBufferCounter=0,this.doFlush()},i.flushLiveBackBuffer=function(){if(this._live){var e=this.config.liveBackBufferLength;if(isFinite(e)&&!(e<0))if(this.media)for(var t=this.media.currentTime,r=this.sourceBuffer,n=Object.keys(r),i=t-Math.max(e,this._levelTargetDuration),a=n.length-1;a>=0;a--){var o=n[a],s=r[o];if(s){var l=s.buffered;l.length>0&&i>l.start(0)&&this.removeBufferRange(o,s,0,i)&&this.hls.trigger(u.default.LIVE_BACK_BUFFER_REACHED,{bufferEnd:i})}}else d.logger.error("flushLiveBackBuffer called without attaching media")}},i.onLevelUpdated=function(e){var t=e.details;t.fragments.length>0&&(this._levelDuration=t.totalduration+t.fragments[0].start,this._levelTargetDuration=t.averagetargetduration||t.targetduration||10,this._live=t.live,this.updateMediaElementDuration())},i.updateMediaElementDuration=function(){var e,t=this.config;if(null!==this._levelDuration&&this.media&&this.mediaSource&&this.sourceBuffer&&0!==this.media.readyState&&"open"===this.mediaSource.readyState){for(var r in this.sourceBuffer){var n=this.sourceBuffer[r];if(n&&!0===n.updating)return}e=this.media.duration,null===this._msDuration&&(this._msDuration=this.mediaSource.duration),!0===this._live&&!0===t.liveDurationInfinity?(d.logger.log("Media Source duration is set to Infinity"),this._msDuration=this.mediaSource.duration=1/0):(this._levelDuration>this._msDuration&&this._levelDuration>e||!Object(l.isFiniteNumber)(e))&&(d.logger.log("Updating Media Source duration to "+this._levelDuration.toFixed(3)),this._msDuration=this.mediaSource.duration=this._levelDuration)}},i.doFlush=function(){for(;this.flushRange.length;){var e=this.flushRange[0];if(!this.flushBuffer(e.start,e.end,e.type))return void(this._needsFlush=!0);this.flushRange.shift(),this.flushBufferCounter=0}if(0===this.flushRange.length){this._needsFlush=!1;var t=0,r=this.sourceBuffer;try{for(var n in r){var i=r[n];i&&(t+=i.buffered.length)}}catch(e){d.logger.error("error while accessing sourceBuffer.buffered")}this.appended=t,this.hls.trigger(u.default.BUFFER_FLUSHED)}},i.doAppending=function(){var e=this.config,t=this.hls,r=this.segments,n=this.sourceBuffer;if(Object.keys(n).length){if(!this.media||this.media.error)return this.segments=[],void d.logger.error("trying to append although a media error occured, flush segment and abort");if(!this.appending){var i=r.shift();if(i)try{var a=n[i.type];if(!a)return void this._onSBUpdateEnd();if(a.updating)return void r.unshift(i);a.ended=!1,this.parent=i.parent,a.appendBuffer(i.data),this.appendError=0,this.appended++,this.appending=!0}catch(n){d.logger.error("error while trying to append buffer:"+n.message),r.unshift(i);var o={type:s.ErrorTypes.MEDIA_ERROR,parent:i.parent,details:"",fatal:!1};22===n.code?(this.segments=[],o.details=s.ErrorDetails.BUFFER_FULL_ERROR):(this.appendError++,o.details=s.ErrorDetails.BUFFER_APPEND_ERROR,this.appendError>e.appendErrorMaxRetry&&(d.logger.log("fail "+e.appendErrorMaxRetry+" times to append segment in sourceBuffer"),this.segments=[],o.fatal=!0)),t.trigger(u.default.ERROR,o)}}}},i.flushBuffer=function(e,t,r){var n=this.sourceBuffer;if(!Object.keys(n).length)return!0;var i="null";if(this.media&&(i=this.media.currentTime.toFixed(3)),d.logger.log("flushBuffer,pos/start/end: "+i+"/"+e+"/"+t),this.flushBufferCounter>=this.appended)return d.logger.warn("abort flushing too many retries"),!0;var a=n[r];if(a){if(a.ended=!1,a.updating)return d.logger.warn("cannot flush, sb updating in progress"),!1;if(this.removeBufferRange(r,a,e,t))return this.flushBufferCounter++,!1}return d.logger.log("buffer flushed"),!0},i.removeBufferRange=function(e,t,r,n){try{for(var i=0;i<t.buffered.length;i++){var a=t.buffered.start(i),o=t.buffered.end(i),s=Math.max(a,r),l=Math.min(o,n);if(Math.min(l,o)-s>.5){var u="null";return this.media&&(u=this.media.currentTime.toString()),d.logger.log("sb remove "+e+" ["+s+","+l+"], of ["+a+","+o+"], pos:"+u),t.remove(s,l),!0}}}catch(e){d.logger.warn("removeBufferRange failed",e)}return!1},n}(h);function Ke(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var qe=function(e){var t,r;function n(t){var r;return(r=e.call(this,t,u.default.FPS_DROP_LEVEL_CAPPING,u.default.MEDIA_ATTACHING,u.default.MANIFEST_PARSED,u.default.LEVELS_UPDATED,u.default.BUFFER_CODECS,u.default.MEDIA_DETACHING)||this).autoLevelCapping=Number.POSITIVE_INFINITY,r.firstLevel=null,r.levels=[],r.media=null,r.restrictedLevels=[],r.timer=null,r.clientRect=null,r}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var i,a,o,s=n.prototype;return s.destroy=function(){this.hls.config.capLevelToPlayerSize&&(this.media=null,this.clientRect=null,this.stopCapping())},s.onFpsDropLevelCapping=function(e){n.isLevelAllowed(e.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(e.droppedLevel)},s.onMediaAttaching=function(e){this.media=e.media instanceof window.HTMLVideoElement?e.media:null},s.onManifestParsed=function(e){var t=this.hls;this.restrictedLevels=[],this.levels=e.levels,this.firstLevel=e.firstLevel,t.config.capLevelToPlayerSize&&e.video&&this.startCapping()},s.onBufferCodecs=function(e){this.hls.config.capLevelToPlayerSize&&e.video&&this.startCapping()},s.onLevelsUpdated=function(e){this.levels=e.levels},s.onMediaDetaching=function(){this.stopCapping()},s.detectPlayerSize=function(){if(this.media){var e=this.levels?this.levels.length:0;if(e){var t=this.hls;t.autoLevelCapping=this.getMaxLevel(e-1),t.autoLevelCapping>this.autoLevelCapping&&t.streamController.nextLevelSwitch(),this.autoLevelCapping=t.autoLevelCapping}}},s.getMaxLevel=function(e){var t=this;if(!this.levels)return-1;var r=this.levels.filter((function(r,i){return n.isLevelAllowed(i,t.restrictedLevels)&&i<=e}));return this.clientRect=null,n.getMaxLevelByMediaSize(r,this.mediaWidth,this.mediaHeight)},s.startCapping=function(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),clearInterval(this.timer),this.timer=setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())},s.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=null,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(this.timer=clearInterval(this.timer),this.timer=null)},s.getDimensions=function(){if(this.clientRect)return this.clientRect;var e=this.media,t={width:0,height:0};if(e){var r=e.getBoundingClientRect();t.width=r.width,t.height=r.height,t.width||t.height||(t.width=r.right-r.left||e.width||0,t.height=r.bottom-r.top||e.height||0)}return this.clientRect=t,t},n.isLevelAllowed=function(e,t){return void 0===t&&(t=[]),-1===t.indexOf(e)},n.getMaxLevelByMediaSize=function(e,t,r){if(!e||e&&!e.length)return-1;for(var n,i,a=e.length-1,o=0;o<e.length;o+=1){var s=e[o];if((s.width>=t||s.height>=r)&&(n=s,!(i=e[o+1])||n.width!==i.width||n.height!==i.height)){a=o;break}}return a},i=n,o=[{key:"contentScaleFactor",get:function(){var e=1;try{e=window.devicePixelRatio}catch(e){}return e}}],(a=[{key:"mediaWidth",get:function(){return this.getDimensions().width*n.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*n.contentScaleFactor}}])&&Ke(i.prototype,a),o&&Ke(i,o),n}(h),Je=window.performance,Xe=function(e){var t,r;function n(t){return e.call(this,t,u.default.MEDIA_ATTACHING)||this}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var i=n.prototype;return i.destroy=function(){this.timer&&clearInterval(this.timer),this.isVideoPlaybackQualityAvailable=!1},i.onMediaAttaching=function(e){var t=this.hls.config;t.capLevelOnFPSDrop&&("function"==typeof(this.video=e.media instanceof window.HTMLVideoElement?e.media:null).getVideoPlaybackQuality&&(this.isVideoPlaybackQualityAvailable=!0),clearInterval(this.timer),this.timer=setInterval(this.checkFPSInterval.bind(this),t.fpsDroppedMonitoringPeriod))},i.checkFPS=function(e,t,r){var n=Je.now();if(t){if(this.lastTime){var i=n-this.lastTime,a=r-this.lastDroppedFrames,o=t-this.lastDecodedFrames,s=1e3*a/i,l=this.hls;if(l.trigger(u.default.FPS_DROP,{currentDropped:a,currentDecoded:o,totalDroppedFrames:r}),s>0&&a>l.config.fpsDroppedMonitoringThreshold*o){var c=l.currentLevel;d.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+c),c>0&&(-1===l.autoLevelCapping||l.autoLevelCapping>=c)&&(c-=1,l.trigger(u.default.FPS_DROP_LEVEL_CAPPING,{level:c,droppedLevel:l.currentLevel}),l.autoLevelCapping=c,l.streamController.nextLevelSwitch())}}this.lastTime=n,this.lastDroppedFrames=r,this.lastDecodedFrames=t}},i.checkFPSInterval=function(){var e=this.video;if(e)if(this.isVideoPlaybackQualityAvailable){var t=e.getVideoPlaybackQuality();this.checkFPS(e,t.totalVideoFrames,t.droppedVideoFrames)}else this.checkFPS(e,e.webkitDecodedFrameCount,e.webkitDroppedFrameCount)},n}(h),$e=function(){function e(e){e&&e.xhrSetup&&(this.xhrSetup=e.xhrSetup)}var t=e.prototype;return t.destroy=function(){this.abort(),this.loader=null},t.abort=function(){var e=this.loader;e&&4!==e.readyState&&(this.stats.aborted=!0,e.abort()),window.clearTimeout(this.requestTimeout),this.requestTimeout=null,window.clearTimeout(this.retryTimeout),this.retryTimeout=null},t.load=function(e,t,r){this.context=e,this.config=t,this.callbacks=r,this.stats={trequest:window.performance.now(),retry:0},this.retryDelay=t.retryDelay,this.loadInternal()},t.loadInternal=function(){var e,t=this.context;e=this.loader=new window.XMLHttpRequest;var r=this.stats;r.tfirst=0,r.loaded=0;var n=this.xhrSetup;try{if(n)try{n(e,t.url)}catch(r){e.open("GET",t.url,!0),n(e,t.url)}e.readyState||e.open("GET",t.url,!0)}catch(r){return void this.callbacks.onError({code:e.status,text:r.message},t,e)}t.rangeEnd&&e.setRequestHeader("Range","bytes="+t.rangeStart+"-"+(t.rangeEnd-1)),e.onreadystatechange=this.readystatechange.bind(this),e.onprogress=this.loadprogress.bind(this),e.responseType=t.responseType,this.requestTimeout=window.setTimeout(this.loadtimeout.bind(this),this.config.timeout),e.send()},t.readystatechange=function(e){var t=e.currentTarget,r=t.readyState,n=this.stats,i=this.context,a=this.config;if(!n.aborted&&r>=2)if(window.clearTimeout(this.requestTimeout),0===n.tfirst&&(n.tfirst=Math.max(window.performance.now(),n.trequest)),4===r){var o=t.status;if(o>=200&&o<300){var s,l;n.tload=Math.max(n.tfirst,window.performance.now()),l="arraybuffer"===i.responseType?(s=t.response).byteLength:(s=t.responseText).length,n.loaded=n.total=l;var u={url:t.responseURL,data:s};this.callbacks.onSuccess(u,n,i,t)}else n.retry>=a.maxRetry||o>=400&&o<499?(d.logger.error(o+" while loading "+i.url),this.callbacks.onError({code:o,text:t.statusText},i,t)):(d.logger.warn(o+" while loading "+i.url+", retrying in "+this.retryDelay+"..."),this.destroy(),this.retryTimeout=window.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,a.maxRetryDelay),n.retry++)}else this.requestTimeout=window.setTimeout(this.loadtimeout.bind(this),a.timeout)},t.loadtimeout=function(){d.logger.warn("timeout while loading "+this.context.url),this.callbacks.onTimeout(this.stats,this.context,null)},t.loadprogress=function(e){var t=e.currentTarget,r=this.stats;r.loaded=e.loaded,e.lengthComputable&&(r.total=e.total);var n=this.callbacks.onProgress;n&&n(r,this.context,null,t)},e}();function Ze(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Qe=function(e){var t,r;function n(t){var r;return(r=e.call(this,t,u.default.MANIFEST_LOADING,u.default.MANIFEST_PARSED,u.default.AUDIO_TRACK_LOADED,u.default.AUDIO_TRACK_SWITCHED,u.default.LEVEL_LOADED,u.default.ERROR)||this)._trackId=-1,r._selectDefaultTrack=!0,r.tracks=[],r.trackIdBlacklist=Object.create(null),r.audioGroupId=null,r}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var i,a,o,l=n.prototype;return l.onManifestLoading=function(){this.tracks=[],this._trackId=-1,this._selectDefaultTrack=!0},l.onManifestParsed=function(e){var t=this.tracks=e.audioTracks||[];this.hls.trigger(u.default.AUDIO_TRACKS_UPDATED,{audioTracks:t}),this._selectAudioGroup(this.hls.nextLoadLevel)},l.onAudioTrackLoaded=function(e){if(e.id>=this.tracks.length)d.logger.warn("Invalid audio track id:",e.id);else{if(d.logger.log("audioTrack "+e.id+" loaded"),this.tracks[e.id].details=e.details,e.details.live&&!this.hasInterval()){var t=1e3*e.details.targetduration;this.setInterval(t)}!e.details.live&&this.hasInterval()&&this.clearInterval()}},l.onAudioTrackSwitched=function(e){var t=this.tracks[e.id].groupId;t&&this.audioGroupId!==t&&(this.audioGroupId=t)},l.onLevelLoaded=function(e){this._selectAudioGroup(e.level)},l.onError=function(e){e.type===s.ErrorTypes.NETWORK_ERROR&&(e.fatal&&this.clearInterval(),e.details===s.ErrorDetails.AUDIO_TRACK_LOAD_ERROR&&(d.logger.warn("Network failure on audio-track id:",e.context.id),this._handleLoadError()))},l._setAudioTrack=function(e){if(this._trackId===e&&this.tracks[this._trackId].details)d.logger.debug("Same id as current audio-track passed, and track details available -> no-op");else if(e<0||e>=this.tracks.length)d.logger.warn("Invalid id passed to audio-track controller");else{var t=this.tracks[e];d.logger.log("Now switching to audio-track index "+e),this.clearInterval(),this._trackId=e;var r=t.url,n=t.type,i=t.id;this.hls.trigger(u.default.AUDIO_TRACK_SWITCHING,{id:i,type:n,url:r}),this._loadTrackDetailsIfNeeded(t)}},l.doTick=function(){this._updateTrack(this._trackId)},l._selectAudioGroup=function(e){var t=this.hls.levels[e];if(t&&t.audioGroupIds){var r=t.audioGroupIds[t.urlId];this.audioGroupId!==r&&(this.audioGroupId=r,this._selectInitialAudioTrack())}},l._selectInitialAudioTrack=function(){var e=this,t=this.tracks;if(t.length){var r=this.tracks[this._trackId],n=null;if(r&&(n=r.name),this._selectDefaultTrack){var i=t.filter((function(e){return e.default}));i.length?t=i:d.logger.warn("No default audio tracks defined")}var a=!1,o=function(){t.forEach((function(t){a||e.audioGroupId&&t.groupId!==e.audioGroupId||n&&n!==t.name||(e._setAudioTrack(t.id),a=!0)}))};o(),a||(n=null,o()),a||(d.logger.error("No track found for running audio group-ID: "+this.audioGroupId),this.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))}},l._needsTrackLoading=function(e){var t=e.details,r=e.url;return!(t&&!t.live||!r)},l._loadTrackDetailsIfNeeded=function(e){if(this._needsTrackLoading(e)){var t=e.url,r=e.id;d.logger.log("loading audio-track playlist for id: "+r),this.hls.trigger(u.default.AUDIO_TRACK_LOADING,{url:t,id:r})}},l._updateTrack=function(e){if(!(e<0||e>=this.tracks.length)){this.clearInterval(),this._trackId=e,d.logger.log("trying to update audio-track "+e);var t=this.tracks[e];this._loadTrackDetailsIfNeeded(t)}},l._handleLoadError=function(){this.trackIdBlacklist[this._trackId]=!0;var e=this._trackId,t=this.tracks[e],r=t.name,n=t.language,i=t.groupId;d.logger.warn("Loading failed on audio track id: "+e+", group-id: "+i+', name/language: "'+r+'" / "'+n+'"');for(var a=e,o=0;o<this.tracks.length;o++)if(!this.trackIdBlacklist[o]&&this.tracks[o].name===r){a=o;break}a!==e?(d.logger.log("Attempting audio-track fallback id:",a,"group-id:",this.tracks[a].groupId),this._setAudioTrack(a)):d.logger.warn('No fallback audio-track found for name/language: "'+r+'" / "'+n+'"')},i=n,(a=[{key:"audioTracks",get:function(){return this.tracks}},{key:"audioTrack",get:function(){return this._trackId},set:function(e){this._setAudioTrack(e),this._selectDefaultTrack=!1}}])&&Ze(i.prototype,a),o&&Ze(i,o),n}(me);function et(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var tt=window.performance,rt=function(e){var t,r;function n(t,r){var n;return(n=e.call(this,t,u.default.MEDIA_ATTACHED,u.default.MEDIA_DETACHING,u.default.AUDIO_TRACKS_UPDATED,u.default.AUDIO_TRACK_SWITCHING,u.default.AUDIO_TRACK_LOADED,u.default.KEY_LOADED,u.default.FRAG_LOADED,u.default.FRAG_PARSING_INIT_SEGMENT,u.default.FRAG_PARSING_DATA,u.default.FRAG_PARSED,u.default.ERROR,u.default.BUFFER_RESET,u.default.BUFFER_CREATED,u.default.BUFFER_APPENDED,u.default.BUFFER_FLUSHED,u.default.INIT_PTS_FOUND)||this).fragmentTracker=r,n.config=t.config,n.audioCodecSwap=!1,n._state=pe,n.initPTS=[],n.waitingFragment=null,n.videoTrackCC=null,n.waitingVideoCC=null,n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var i,a,o,c=n.prototype;return c.onInitPtsFound=function(e){var t=e.id,r=e.frag.cc,n=e.initPTS;"main"===t&&(this.initPTS[r]=n,this.videoTrackCC=r,d.logger.log("InitPTS for cc: "+r+" found from main: "+n),this.state===De&&this.tick())},c.startLoad=function(e){if(this.tracks){var t=this.lastCurrentTime;this.stopLoad(),this.setInterval(100),this.fragLoadError=0,t>0&&-1===e?(d.logger.log("audio:override startPosition with lastCurrentTime @"+t.toFixed(3)),this.state=_e):(this.lastCurrentTime=this.startPosition?this.startPosition:e,this.state=ge),this.nextLoadPosition=this.startPosition=this.lastCurrentTime,this.tick()}else this.startPosition=e,this.state=pe},c.doTick=function(){var e,t,r,n=this.hls,i=n.config;switch(this.state){case Se:case ve:case xe:break;case ge:this.state=we,this.loadedmetadata=!1;break;case _e:var a=this.tracks;if(!a)break;if(!this.media&&(this.startFragRequested||!i.startFragPrefetch))break;if(this.loadedmetadata)e=this.media.currentTime;else if(void 0===(e=this.nextLoadPosition))break;var o=this.mediaBuffer?this.mediaBuffer:this.media,s=this.videoBuffer?this.videoBuffer:this.media,c=e<i.maxBufferHole?Math.max(2,i.maxBufferHole):i.maxBufferHole,h=W.bufferInfo(o,e,c),f=W.bufferInfo(s,e,c),m=h.len,p=h.end,g=this.fragPrevious,_=Math.min(i.maxBufferLength,i.maxMaxBufferLength),v=Math.max(_,f.len),y=this.audioSwitch,b=this.trackId;if((m<v||y)&&b<a.length){if(void 0===(r=a[b].details)){this.state=we;break}if(!y&&this._streamEnded(h,r))return this.hls.trigger(u.default.BUFFER_EOS,{type:"audio"}),void(this.state=ke);var M,w=r.fragments,L=w.length,T=w[0].start,x=w[L-1].start+w[L-1].duration;if(y)if(r.live&&!r.PTSKnown)d.logger.log("switching audiotrack, live stream, unknown PTS,load first fragment"),p=0;else if(p=e,r.PTSKnown&&e<T){if(!(h.end>T||h.nextStart))return;d.logger.log("alt audio track ahead of main track, seek to start of alt audio track"),this.media.currentTime=T+.05}if(r.initSegment&&!r.initSegment.data)M=r.initSegment;else if(p<=T){if(M=w[0],null!==this.videoTrackCC&&M.cc!==this.videoTrackCC&&(M=function(e,t){return U.search(e,(function(e){return e.cc<t?1:e.cc>t?-1:0}))}(w,this.videoTrackCC)),r.live&&M.loadIdx&&M.loadIdx===this.fragLoadIdx){var k=h.nextStart?h.nextStart:T;return d.logger.log("no alt audio available @currentTime:"+this.media.currentTime+", seeking @"+(k+.05)),void(this.media.currentTime=k+.05)}}else{var S,D=i.maxFragLookUpTolerance,A=g?w[g.sn-w[0].sn+1]:void 0;p<x?(p>x-D&&(D=0),S=A&&!de(p,D,A)?A:U.search(w,(function(e){return de(p,D,e)}))):S=w[L-1],S&&(M=S,T=S.start,g&&M.level===g.level&&M.sn===g.sn&&(M.sn<r.endSN?(M=w[M.sn+1-r.startSN],this.fragmentTracker.getState(M)!==H&&d.logger.log("SN just loaded, load next one: "+M.sn)):M=null))}M&&(M.encrypted?(d.logger.log("Loading key for "+M.sn+" of ["+r.startSN+" ,"+r.endSN+"],track "+b),this.state=ye,n.trigger(u.default.KEY_LOADING,{frag:M})):(this.fragCurrent=M,(y||this.fragmentTracker.getState(M)===F)&&(d.logger.log("Loading "+M.sn+", cc: "+M.cc+" of ["+r.startSN+" ,"+r.endSN+"],track "+b+", "+(this.loadedmetadata?"currentTime":"nextLoadPosition")+": "+e+", bufferEnd: "+p.toFixed(3)),"initSegment"!==M.sn&&(this.startFragRequested=!0),Object(l.isFiniteNumber)(M.sn)&&(this.nextLoadPosition=M.start+M.duration),n.trigger(u.default.FRAG_LOADING,{frag:M}),this.state=be)))}break;case we:(t=this.tracks[this.trackId])&&t.details&&(this.state=_e);break;case Me:var E=tt.now(),Y=this.retryDate,O=(o=this.media)&&o.seeking;(!Y||E>=Y||O)&&(d.logger.log("audioStreamController: retryDate reached, switch back to IDLE state"),this.state=_e);break;case De:var P=this.waitingFragment;if(P){var R=P.frag.cc;if(void 0!==this.initPTS[R])this.waitingFragment=null,this.state=be,this.onFragLoaded(P);else if(this.videoTrackCC!==this.waitingVideoCC)d.logger.log("Waiting fragment cc ("+R+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var C=W.bufferInfo(this.mediaBuffer,this.media.currentTime,i.maxBufferHole);de(C.end,i.maxFragLookUpTolerance,P.frag)<0&&(d.logger.log("Waiting fragment cc ("+R+") @ "+P.frag.start+" cancelled because another fragment at "+C.end+" is needed"),this.clearWaitingFragment())}}else this.state=_e}},c.clearWaitingFragment=function(){var e=this.waitingFragment;e&&(this.fragmentTracker.removeFragment(e.frag),this.waitingFragment=null,this.waitingVideoCC=null,this.state=_e)},c.onMediaAttached=function(e){var t=this.media=this.mediaBuffer=e.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),t.addEventListener("seeking",this.onvseeking),t.addEventListener("ended",this.onvended);var r=this.config;this.tracks&&r.autoStartLoad&&this.startLoad(r.startPosition)},c.onMediaDetaching=function(){var e=this.media;e&&e.ended&&(d.logger.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),e&&(e.removeEventListener("seeking",this.onvseeking),e.removeEventListener("ended",this.onvended),this.onvseeking=this.onvseeked=this.onvended=null),this.media=this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()},c.onAudioTracksUpdated=function(e){d.logger.log("audio tracks updated"),this.tracks=e.audioTracks},c.onAudioTrackSwitching=function(e){var t=!!e.url;this.trackId=e.id,this.fragCurrent=null,this.clearWaitingFragment(),this.state=ve,t?this.setInterval(100):this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),t&&(this.audioSwitch=!0,this.state=_e),this.tick()},c.onAudioTrackLoaded=function(e){var t=e.details,r=e.id,n=this.tracks[r],i=n.details,a=t.totalduration,o=0;if(d.logger.log("track "+r+" loaded ["+t.startSN+","+t.endSN+"],duration:"+a),t.live||i&&i.live?i&&t.fragments.length>0?(re(i,t),o=t.fragments[0].start,t.PTSKnown?d.logger.log("live audio playlist sliding:"+o.toFixed(3)):d.logger.log("live audio playlist - outdated PTS, unknown sliding")):(t.PTSKnown=!1,d.logger.log("live audio playlist - first load, unknown sliding")):t.PTSKnown=!1,n.details=t,!this.startFragRequested){if(-1===this.startPosition){var s=t.startTimeOffset;Object(l.isFiniteNumber)(s)?(d.logger.log("start time offset found in playlist, adjust startPosition to "+s),this.startPosition=s):t.live?(this.startPosition=this.computeLivePosition(o,t),d.logger.log("compute startPosition for audio-track to "+this.startPosition)):this.startPosition=0}this.nextLoadPosition=this.startPosition}this.state===we&&(this.state=_e),this.tick()},c.onKeyLoaded=function(){this.state===ye&&(this.state=_e,this.tick())},c.onFragLoaded=function(e){var t=this.fragCurrent,r=e.frag;if(this.state===be&&t&&"audio"===r.type&&r.level===t.level&&r.sn===t.sn){var n=this.tracks[this.trackId],i=n.details,a=i.totalduration,o=t.level,s=t.sn,l=t.cc,c=this.config.defaultAudioCodec||n.audioCodec||"mp4a.40.2",h=this.stats=e.stats;if("initSegment"===s)this.state=_e,h.tparsed=h.tbuffered=tt.now(),i.initSegment.data=e.payload,this.hls.trigger(u.default.FRAG_BUFFERED,{stats:h,frag:t,id:"audio"}),this.tick();else{this.state=Le,this.appended=!1,this.demuxer||(this.demuxer=new Z(this.hls,"audio"));var f=this.initPTS[l],m=i.initSegment?i.initSegment.data:[];void 0!==f?(this.pendingBuffering=!0,d.logger.log("Demuxing "+s+" of ["+i.startSN+" ,"+i.endSN+"],track "+o),this.demuxer.push(e.payload,m,c,null,t,a,!1,f)):(d.logger.log("Unknown video PTS for cc "+l+", waiting for video PTS before demuxing audio frag "+s+" of ["+i.startSN+" ,"+i.endSN+"],track "+o),this.waitingFragment=e,this.waitingVideoCC=this.videoTrackCC,this.state=De)}}this.fragLoadError=0},c.onFragParsingInitSegment=function(e){var t=this.fragCurrent,r=e.frag;if(t&&"audio"===e.id&&r.sn===t.sn&&r.level===t.level&&this.state===Le){var n,i=e.tracks;if(i.video&&delete i.video,n=i.audio){n.levelCodec=n.codec,n.id=e.id,this.hls.trigger(u.default.BUFFER_CODECS,i),d.logger.log("audio track:audio,container:"+n.container+",codecs[level/parsed]=["+n.levelCodec+"/"+n.codec+"]");var a=n.initSegment;if(a){var o={type:"audio",data:a,parent:"audio",content:"initSegment"};this.audioSwitch?this.pendingData=[o]:(this.appended=!0,this.pendingBuffering=!0,this.hls.trigger(u.default.BUFFER_APPENDING,o))}this.tick()}}},c.onFragParsingData=function(e){var t=this,r=this.fragCurrent,n=e.frag;if(r&&"audio"===e.id&&"audio"===e.type&&n.sn===r.sn&&n.level===r.level&&this.state===Le){var i=this.trackId,a=this.tracks[i],o=this.hls;Object(l.isFiniteNumber)(e.endPTS)||(e.endPTS=e.startPTS+r.duration,e.endDTS=e.startDTS+r.duration),r.addElementaryStream(p.AUDIO),d.logger.log("parsed "+e.type+",PTS:["+e.startPTS.toFixed(3)+","+e.endPTS.toFixed(3)+"],DTS:["+e.startDTS.toFixed(3)+"/"+e.endDTS.toFixed(3)+"],nb:"+e.nb),te(a.details,r,e.startPTS,e.endPTS);var c=this.media,h=!1;if(this.audioSwitch)if(c&&c.readyState){var f=c.currentTime;d.logger.log("switching audio track : currentTime:"+f),f>=e.startPTS&&(d.logger.log("switching audio track : flushing all audio"),this.state=xe,o.trigger(u.default.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),h=!0,this.audioSwitch=!1,o.trigger(u.default.AUDIO_TRACK_SWITCHED,{id:i}))}else this.audioSwitch=!1,o.trigger(u.default.AUDIO_TRACK_SWITCHED,{id:i});var m=this.pendingData;if(!m)return d.logger.warn("Apparently attempt to enqueue media payload without codec initialization data upfront"),void o.trigger(u.default.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:null,fatal:!0});this.audioSwitch||([e.data1,e.data2].forEach((function(t){t&&t.length&&m.push({type:e.type,data:t,parent:"audio",content:"data"})})),!h&&m.length&&(m.forEach((function(e){t.state===Le&&(t.pendingBuffering=!0,t.hls.trigger(u.default.BUFFER_APPENDING,e))})),this.pendingData=[],this.appended=!0)),this.tick()}},c.onFragParsed=function(e){var t=this.fragCurrent,r=e.frag;t&&"audio"===e.id&&r.sn===t.sn&&r.level===t.level&&this.state===Le&&(this.stats.tparsed=tt.now(),this.state=Te,this._checkAppendedParsed())},c.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},c.onBufferCreated=function(e){var t=e.tracks.audio;t&&(this.mediaBuffer=t.buffer,this.loadedmetadata=!0),e.tracks.video&&(this.videoBuffer=e.tracks.video.buffer)},c.onBufferAppended=function(e){if("audio"===e.parent){var t=this.state;t!==Le&&t!==Te||(this.pendingBuffering=e.pending>0,this._checkAppendedParsed())}},c._checkAppendedParsed=function(){if(!(this.state!==Te||this.appended&&this.pendingBuffering)){var e=this.fragCurrent,t=this.stats,r=this.hls;if(e){this.fragPrevious=e,t.tbuffered=tt.now(),r.trigger(u.default.FRAG_BUFFERED,{stats:t,frag:e,id:"audio"});var n=this.mediaBuffer?this.mediaBuffer:this.media;n&&d.logger.log("audio buffered : "+ae.toString(n.buffered)),this.audioSwitch&&this.appended&&(this.audioSwitch=!1,r.trigger(u.default.AUDIO_TRACK_SWITCHED,{id:this.trackId})),this.state=_e}this.tick()}},c.onError=function(e){var t=e.frag;if(!t||"audio"===t.type)switch(e.details){case s.ErrorDetails.FRAG_LOAD_ERROR:case s.ErrorDetails.FRAG_LOAD_TIMEOUT:var r=e.frag;if(r&&"audio"!==r.type)break;if(!e.fatal){var n=this.fragLoadError;n?n++:n=1;var i=this.config;if(n<=i.fragLoadingMaxRetry){this.fragLoadError=n;var a=Math.min(Math.pow(2,n-1)*i.fragLoadingRetryDelay,i.fragLoadingMaxRetryTimeout);d.logger.warn("AudioStreamController: frag loading failed, retry in "+a+" ms"),this.retryDate=tt.now()+a,this.state=Me}else d.logger.error("AudioStreamController: "+e.details+" reaches max retry, redispatch as fatal ..."),e.fatal=!0,this.state=Se}break;case s.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case s.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:case s.ErrorDetails.KEY_LOAD_ERROR:case s.ErrorDetails.KEY_LOAD_TIMEOUT:this.state!==Se&&(this.state=e.fatal?Se:_e,d.logger.warn("AudioStreamController: "+e.details+" while loading frag, now switching to "+this.state+" state ..."));break;case s.ErrorDetails.BUFFER_FULL_ERROR:if("audio"===e.parent&&(this.state===Le||this.state===Te)){var o=this.mediaBuffer,l=this.media.currentTime;if(o&&W.isBuffered(o,l)&&W.isBuffered(o,l+.5)){var c=this.config;c.maxMaxBufferLength>=c.maxBufferLength&&(c.maxMaxBufferLength/=2,d.logger.warn("AudioStreamController: reduce max buffer length to "+c.maxMaxBufferLength+"s")),this.state=_e}else d.logger.warn("AudioStreamController: buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,this.state=xe,this.hls.trigger(u.default.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"})}}},c.onBufferFlushed=function(){var e=this,t=this.pendingData;t&&t.length?(d.logger.log("AudioStreamController: appending pending audio data after buffer flushed"),t.forEach((function(t){e.hls.trigger(u.default.BUFFER_APPENDING,t)})),this.appended=!0,this.pendingData=[],this.state=Te):(this.state=_e,this.fragPrevious=null,this.tick())},i=n,(a=[{key:"state",set:function(e){if(this.state!==e){var t=this.state;this._state=e,d.logger.log("audio stream:"+t+"->"+e)}},get:function(){return this._state}}])&&et(i.prototype,a),o&&et(i,o),n}(Ee),nt=function(){if("undefined"!=typeof window&&window.VTTCue)return window.VTTCue;var e={"":!0,lr:!0,rl:!0},t={start:!0,middle:!0,end:!0,left:!0,right:!0};function r(e){return"string"==typeof e&&!!t[e.toLowerCase()]&&e.toLowerCase()}function n(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}function i(t,i,a){var o=this,s={enumerable:!0};o.hasBeenReset=!1;var l="",u=!1,d=t,c=i,h=a,f=null,m="",p=!0,g="auto",_="start",v=50,y="middle",b=50,M="middle";Object.defineProperty(o,"id",n({},s,{get:function(){return l},set:function(e){l=""+e}})),Object.defineProperty(o,"pauseOnExit",n({},s,{get:function(){return u},set:function(e){u=!!e}})),Object.defineProperty(o,"startTime",n({},s,{get:function(){return d},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");d=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"endTime",n({},s,{get:function(){return c},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");c=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"text",n({},s,{get:function(){return h},set:function(e){h=""+e,this.hasBeenReset=!0}})),Object.defineProperty(o,"region",n({},s,{get:function(){return f},set:function(e){f=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"vertical",n({},s,{get:function(){return m},set:function(t){var r=function(t){return"string"==typeof t&&!!e[t.toLowerCase()]&&t.toLowerCase()}(t);if(!1===r)throw new SyntaxError("An invalid or illegal string was specified.");m=r,this.hasBeenReset=!0}})),Object.defineProperty(o,"snapToLines",n({},s,{get:function(){return p},set:function(e){p=!!e,this.hasBeenReset=!0}})),Object.defineProperty(o,"line",n({},s,{get:function(){return g},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("An invalid number or illegal string was specified.");g=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"lineAlign",n({},s,{get:function(){return _},set:function(e){var t=r(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");_=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"position",n({},s,{get:function(){return v},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");v=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"positionAlign",n({},s,{get:function(){return y},set:function(e){var t=r(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");y=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"size",n({},s,{get:function(){return b},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");b=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"align",n({},s,{get:function(){return M},set:function(e){var t=r(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");M=t,this.hasBeenReset=!0}})),o.displayState=void 0}return i.prototype.getCueAsHTML=function(){return window.WebVTT.convertCueToDOMTree(window,this.text)},i}(),it=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}};function at(){this.window=window,this.state="INITIAL",this.buffer="",this.decoder=new it,this.regionList=[]}function ot(){this.values=Object.create(null)}function st(e,t,r,n){var i=n?e.split(n):[e];for(var a in i)if("string"==typeof i[a]){var o=i[a].split(r);2===o.length&&t(o[0],o[1])}}ot.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,r){return r?this.has(e)?this.values[e]:t[r]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,r){for(var n=0;n<r.length;++n)if(t===r[n]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t))>=0&&t<=100)&&(this.set(e,t),!0)}};var lt=new nt(0,0,0),ut="middle"===lt.align?"middle":"center";function dt(e,t,r){var n=e;function i(){var t=function(e){function t(e,t,r,n){return 3600*(0|e)+60*(0|t)+(0|r)+(0|n)/1e3}var r=e.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return r?r[3]?t(r[1],r[2],r[3].replace(":",""),r[4]):r[1]>59?t(r[1],r[2],0,r[4]):t(0,r[1],r[2],r[4]):null}(e);if(null===t)throw new Error("Malformed timestamp: "+n);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function a(){e=e.replace(/^\s+/,"")}if(a(),t.startTime=i(),a(),"--\x3e"!==e.substr(0,3))throw new Error("Malformed time stamp (time stamps must be separated by '--\x3e'): "+n);e=e.substr(3),a(),t.endTime=i(),a(),function(e,t){var n=new ot;st(e,(function(e,t){switch(e){case"region":for(var i=r.length-1;i>=0;i--)if(r[i].id===t){n.set(e,r[i].region);break}break;case"vertical":n.alt(e,t,["rl","lr"]);break;case"line":var a=t.split(","),o=a[0];n.integer(e,o),n.percent(e,o)&&n.set("snapToLines",!1),n.alt(e,o,["auto"]),2===a.length&&n.alt("lineAlign",a[1],["start",ut,"end"]);break;case"position":a=t.split(","),n.percent(e,a[0]),2===a.length&&n.alt("positionAlign",a[1],["start",ut,"end","line-left","line-right","auto"]);break;case"size":n.percent(e,t);break;case"align":n.alt(e,t,["start",ut,"end","left","right"])}}),/:/,/\s/),t.region=n.get("region",null),t.vertical=n.get("vertical","");var i=n.get("line","auto");"auto"===i&&-1===lt.line&&(i=-1),t.line=i,t.lineAlign=n.get("lineAlign","start"),t.snapToLines=n.get("snapToLines",!0),t.size=n.get("size",100),t.align=n.get("align",ut);var a=n.get("position","auto");"auto"===a&&50===lt.position&&(a="start"===t.align||"left"===t.align?0:"end"===t.align||"right"===t.align?100:50),t.position=a}(e,t)}function ct(e){return e.replace(/<br(?: \/)?>/gi,"\n")}at.prototype={parse:function(e){var t=this;function r(){var e=t.buffer,r=0;for(e=ct(e);r<e.length&&"\r"!==e[r]&&"\n"!==e[r];)++r;var n=e.substr(0,r);return"\r"===e[r]&&++r,"\n"===e[r]&&++r,t.buffer=e.substr(r),n}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{var n;if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;var i=(n=r()).match(/^()?WEBVTT([ \t].*)?$/);if(!i||!i[0])throw new Error("Malformed WebVTT signature.");t.state="HEADER"}for(var a=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(a?a=!1:n=r(),t.state){case"HEADER":/:/.test(n)?st(n,(function(e,t){}),/:/):n||(t.state="ID");continue;case"NOTE":n||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(n)){t.state="NOTE";break}if(!n)continue;if(t.cue=new nt(0,0,""),t.state="CUE",-1===n.indexOf("--\x3e")){t.cue.id=n;continue}case"CUE":try{dt(n,t.cue,t.regionList)}catch(e){t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var o=-1!==n.indexOf("--\x3e");if(!n||o&&(a=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=n;continue;case"BADCUE":n||(t.state="ID");continue}}}catch(e){"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){try{if(this.buffer+=this.decoder.decode(),(this.cue||"HEADER"===this.state)&&(this.buffer+="\n\n",this.parse()),"INITIAL"===this.state)throw new Error("Malformed WebVTT signature.")}catch(e){throw e}return this.onflush&&this.onflush(),this}};var ht=at;function ft(e,t,r,n){for(var i,a,o,s,l,u=[],d=window.VTTCue||TextTrackCue,c=0;c<n.rows.length;c++)if(o=!0,s=0,l="",!(i=n.rows[c]).isEmpty()){for(var h=0;h<i.chars.length;h++)i.chars[h].uchar.match(/\s/)&&o?s++:(l+=i.chars[h].uchar,o=!1);i.cueStartTime=t,t===r&&(r+=1e-4),a=new d(t,r,ct(l.trim())),s>=16?s--:s++,navigator.userAgent.match(/Firefox\//)?a.line=c+1:a.line=c>7?c-2:c+1,a.align="left",a.position=Math.max(0,Math.min(100,s/32*100)),u.push(a),e&&e.addCue(a)}return u}var mt,pt={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},gt=function(e){var t=e;return pt.hasOwnProperty(e)&&(t=pt[e]),String.fromCharCode(t)},_t={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},vt={17:2,18:4,21:6,22:8,23:10,19:13,20:15},yt={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},bt={25:2,26:4,29:6,30:8,31:10,27:13,28:15},Mt=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];!function(e){e[e.ERROR=0]="ERROR",e[e.TEXT=1]="TEXT",e[e.WARNING=2]="WARNING",e[e.INFO=2]="INFO",e[e.DEBUG=3]="DEBUG",e[e.DATA=3]="DATA"}(mt||(mt={}));var wt=function(){function e(){this.time=null,this.verboseLevel=mt.ERROR}return e.prototype.log=function(e,t){this.verboseLevel>=e&&d.logger.log(this.time+" ["+e+"] "+t)},e}(),Lt=function(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].toString(16));return t},Tt=function(){function e(e,t,r,n,i){this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=e||"white",this.underline=t||!1,this.italics=r||!1,this.background=n||"black",this.flash=i||!1}var t=e.prototype;return t.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},t.setStyles=function(e){for(var t=["foreground","underline","italics","background","flash"],r=0;r<t.length;r++){var n=t[r];e.hasOwnProperty(n)&&(this[n]=e[n])}},t.isDefault=function(){return"white"===this.foreground&&!this.underline&&!this.italics&&"black"===this.background&&!this.flash},t.equals=function(e){return this.foreground===e.foreground&&this.underline===e.underline&&this.italics===e.italics&&this.background===e.background&&this.flash===e.flash},t.copy=function(e){this.foreground=e.foreground,this.underline=e.underline,this.italics=e.italics,this.background=e.background,this.flash=e.flash},t.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},e}(),xt=function(){function e(e,t,r,n,i,a){this.uchar=void 0,this.penState=void 0,this.uchar=e||" ",this.penState=new Tt(t,r,n,i,a)}var t=e.prototype;return t.reset=function(){this.uchar=" ",this.penState.reset()},t.setChar=function(e,t){this.uchar=e,this.penState.copy(t)},t.setPenState=function(e){this.penState.copy(e)},t.equals=function(e){return this.uchar===e.uchar&&this.penState.equals(e.penState)},t.copy=function(e){this.uchar=e.uchar,this.penState.copy(e.penState)},t.isEmpty=function(){return" "===this.uchar&&this.penState.isDefault()},e}(),kt=function(){function e(e){this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var t=0;t<100;t++)this.chars.push(new xt);this.logger=e,this.pos=0,this.currPenState=new Tt}var t=e.prototype;return t.equals=function(e){for(var t=!0,r=0;r<100;r++)if(!this.chars[r].equals(e.chars[r])){t=!1;break}return t},t.copy=function(e){for(var t=0;t<100;t++)this.chars[t].copy(e.chars[t])},t.isEmpty=function(){for(var e=!0,t=0;t<100;t++)if(!this.chars[t].isEmpty()){e=!1;break}return e},t.setCursor=function(e){this.pos!==e&&(this.pos=e),this.pos<0?(this.logger.log(mt.DEBUG,"Negative cursor position "+this.pos),this.pos=0):this.pos>100&&(this.logger.log(mt.DEBUG,"Too large cursor position "+this.pos),this.pos=100)},t.moveCursor=function(e){var t=this.pos+e;if(e>1)for(var r=this.pos+1;r<t+1;r++)this.chars[r].setPenState(this.currPenState);this.setCursor(t)},t.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},t.insertChar=function(e){e>=144&&this.backSpace();var t=gt(e);this.pos>=100?this.logger.log(mt.ERROR,"Cannot insert "+e.toString(16)+" ("+t+") at position "+this.pos+". Skipping it!"):(this.chars[this.pos].setChar(t,this.currPenState),this.moveCursor(1))},t.clearFromPos=function(e){var t;for(t=e;t<100;t++)this.chars[t].reset()},t.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},t.clearToEndOfRow=function(){this.clearFromPos(this.pos)},t.getTextString=function(){for(var e=[],t=!0,r=0;r<100;r++){var n=this.chars[r].uchar;" "!==n&&(t=!1),e.push(n)}return t?"":e.join("")},t.setPenStyles=function(e){this.currPenState.setStyles(e),this.chars[this.pos].setPenState(this.currPenState)},e}(),St=function(){function e(e){this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var t=0;t<15;t++)this.rows.push(new kt(e));this.logger=e,this.currRow=14,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}var t=e.prototype;return t.reset=function(){for(var e=0;e<15;e++)this.rows[e].clear();this.currRow=14},t.equals=function(e){for(var t=!0,r=0;r<15;r++)if(!this.rows[r].equals(e.rows[r])){t=!1;break}return t},t.copy=function(e){for(var t=0;t<15;t++)this.rows[t].copy(e.rows[t])},t.isEmpty=function(){for(var e=!0,t=0;t<15;t++)if(!this.rows[t].isEmpty()){e=!1;break}return e},t.backSpace=function(){this.rows[this.currRow].backSpace()},t.clearToEndOfRow=function(){this.rows[this.currRow].clearToEndOfRow()},t.insertChar=function(e){this.rows[this.currRow].insertChar(e)},t.setPen=function(e){this.rows[this.currRow].setPenStyles(e)},t.moveCursor=function(e){this.rows[this.currRow].moveCursor(e)},t.setCursor=function(e){this.logger.log(mt.INFO,"setCursor: "+e),this.rows[this.currRow].setCursor(e)},t.setPAC=function(e){this.logger.log(mt.INFO,"pacData = "+JSON.stringify(e));var t=e.row-1;if(this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==t){for(var r=0;r<15;r++)this.rows[r].clear();var n=this.currRow+1-this.nrRollUpRows,i=this.lastOutputScreen;if(i){var a=i.rows[n].cueStartTime,o=this.logger.time;if(a&&null!==o&&a<o)for(var s=0;s<this.nrRollUpRows;s++)this.rows[t-this.nrRollUpRows+s+1].copy(i.rows[n+s])}}this.currRow=t;var l=this.rows[this.currRow];if(null!==e.indent){var u=e.indent,d=Math.max(u-1,0);l.setCursor(e.indent),e.color=l.chars[d].penState.foreground}var c={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(c)},t.setBkgData=function(e){this.logger.log(mt.INFO,"bkgData = "+JSON.stringify(e)),this.backSpace(),this.setPen(e),this.insertChar(32)},t.setRollUpRows=function(e){this.nrRollUpRows=e},t.rollUp=function(){if(null!==this.nrRollUpRows){this.logger.log(mt.TEXT,this.getDisplayText());var e=this.currRow+1-this.nrRollUpRows,t=this.rows.splice(e,1)[0];t.clear(),this.rows.splice(this.currRow,0,t),this.logger.log(mt.INFO,"Rolling up")}else this.logger.log(mt.DEBUG,"roll_up but nrRollUpRows not set yet")},t.getDisplayText=function(e){e=e||!1;for(var t=[],r="",n=-1,i=0;i<15;i++){var a=this.rows[i].getTextString();a&&(n=i+1,e?t.push("Row "+n+": '"+a+"'"):t.push(a.trim()))}return t.length>0&&(r=e?"["+t.join(" | ")+"]":t.join("\n")),r},t.getTextAndFormat=function(){return this.rows},e}(),Dt=function(){function e(e,t,r){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=e,this.outputFilter=t,this.mode=null,this.verbose=0,this.displayedMemory=new St(r),this.nonDisplayedMemory=new St(r),this.lastOutputScreen=new St(r),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=r}var t=e.prototype;return t.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},t.getHandler=function(){return this.outputFilter},t.setHandler=function(e){this.outputFilter=e},t.setPAC=function(e){this.writeScreen.setPAC(e)},t.setBkgData=function(e){this.writeScreen.setBkgData(e)},t.setMode=function(e){e!==this.mode&&(this.mode=e,this.logger.log(mt.INFO,"MODE="+e),"MODE_POP-ON"===this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=e)},t.insertChars=function(e){for(var t=0;t<e.length;t++)this.writeScreen.insertChar(e[t]);var r=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(mt.INFO,r+": "+this.writeScreen.getDisplayText(!0)),"MODE_PAINT-ON"!==this.mode&&"MODE_ROLL-UP"!==this.mode||(this.logger.log(mt.TEXT,"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},t.ccRCL=function(){this.logger.log(mt.INFO,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},t.ccBS=function(){this.logger.log(mt.INFO,"BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())},t.ccAOF=function(){},t.ccAON=function(){},t.ccDER=function(){this.logger.log(mt.INFO,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},t.ccRU=function(e){this.logger.log(mt.INFO,"RU("+e+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(e)},t.ccFON=function(){this.logger.log(mt.INFO,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},t.ccRDC=function(){this.logger.log(mt.INFO,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},t.ccTR=function(){this.logger.log(mt.INFO,"TR"),this.setMode("MODE_TEXT")},t.ccRTD=function(){this.logger.log(mt.INFO,"RTD"),this.setMode("MODE_TEXT")},t.ccEDM=function(){this.logger.log(mt.INFO,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},t.ccCR=function(){this.logger.log(mt.INFO,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},t.ccENM=function(){this.logger.log(mt.INFO,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},t.ccEOC=function(){if(this.logger.log(mt.INFO,"EOC - End Of Caption"),"MODE_POP-ON"===this.mode){var e=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=e,this.writeScreen=this.nonDisplayedMemory,this.logger.log(mt.TEXT,"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)},t.ccTO=function(e){this.logger.log(mt.INFO,"TO("+e+") - Tab Offset"),this.writeScreen.moveCursor(e)},t.ccMIDROW=function(e){var t={flash:!1};if(t.underline=e%2==1,t.italics=e>=46,t.italics)t.foreground="white";else{var r=Math.floor(e/2)-16;t.foreground=["white","green","blue","cyan","red","yellow","magenta"][r]}this.logger.log(mt.INFO,"MIDROW: "+JSON.stringify(t)),this.writeScreen.setPen(t)},t.outputDataUpdate=function(e){void 0===e&&(e=!1);var t=this.logger.time;null!==t&&this.outputFilter&&(null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,t,this.lastOutputScreen),e&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:t):this.cueStartTime=t,this.lastOutputScreen.copy(this.displayedMemory))},t.cueSplitAtTime=function(e){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.displayedMemory),this.cueStartTime=e))},e}();function At(e,t,r){r.a=e,r.b=t}function Et(e,t,r){return r.a===e&&r.b===t}var Yt=function(){function e(e,t,r){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var n=new wt;this.channels=[null,new Dt(e,t,n),new Dt(e+1,r,n)],this.cmdHistory={a:null,b:null},this.logger=n}var t=e.prototype;return t.getHandler=function(e){return this.channels[e].getHandler()},t.setHandler=function(e,t){this.channels[e].setHandler(t)},t.addData=function(e,t){var r,n,i,a=!1;this.logger.time=e;for(var o=0;o<t.length;o+=2)if(n=127&t[o],i=127&t[o+1],0!==n||0!==i){if(this.logger.log(mt.DATA,"["+Lt([t[o],t[o+1]])+"] -> ("+Lt([n,i])+")"),(r=this.parseCmd(n,i))||(r=this.parseMidrow(n,i)),r||(r=this.parsePAC(n,i)),r||(r=this.parseBackgroundAttributes(n,i)),!r&&(a=this.parseChars(n,i))){var s=this.currentChannel;s&&s>0?this.channels[s].insertChars(a):this.logger.log(mt.WARNING,"No channel found yet. TEXT-MODE?")}r||a||this.logger.log(mt.WARNING,"Couldn't parse cleaned data "+Lt([n,i])+" orig: "+Lt([t[o],t[o+1]]))}},t.parseCmd=function(e,t){var r=this.cmdHistory;if(!((20===e||28===e||21===e||29===e)&&t>=32&&t<=47||(23===e||31===e)&&t>=33&&t<=35))return!1;if(Et(e,t,r))return At(null,null,r),this.logger.log(mt.DEBUG,"Repeated command ("+Lt([e,t])+") is dropped"),!0;var n=20===e||21===e||23===e?1:2,i=this.channels[n];return 20===e||21===e||28===e||29===e?32===t?i.ccRCL():33===t?i.ccBS():34===t?i.ccAOF():35===t?i.ccAON():36===t?i.ccDER():37===t?i.ccRU(2):38===t?i.ccRU(3):39===t?i.ccRU(4):40===t?i.ccFON():41===t?i.ccRDC():42===t?i.ccTR():43===t?i.ccRTD():44===t?i.ccEDM():45===t?i.ccCR():46===t?i.ccENM():47===t&&i.ccEOC():i.ccTO(t-32),At(e,t,r),this.currentChannel=n,!0},t.parseMidrow=function(e,t){var r=0;if((17===e||25===e)&&t>=32&&t<=47){if((r=17===e?1:2)!==this.currentChannel)return this.logger.log(mt.ERROR,"Mismatch channel in midrow parsing"),!1;var n=this.channels[r];return!!n&&(n.ccMIDROW(t),this.logger.log(mt.DEBUG,"MIDROW ("+Lt([e,t])+")"),!0)}return!1},t.parsePAC=function(e,t){var r,n=this.cmdHistory;if(!((e>=17&&e<=23||e>=25&&e<=31)&&t>=64&&t<=127||(16===e||24===e)&&t>=64&&t<=95))return!1;if(Et(e,t,n))return At(null,null,n),!0;var i=e<=23?1:2;r=t>=64&&t<=95?1===i?_t[e]:yt[e]:1===i?vt[e]:bt[e];var a=this.channels[i];return!!a&&(a.setPAC(this.interpretPAC(r,t)),At(e,t,n),this.currentChannel=i,!0)},t.interpretPAC=function(e,t){var r=t,n={color:null,italics:!1,indent:null,underline:!1,row:e};return r=t>95?t-96:t-64,n.underline=1==(1&r),r<=13?n.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(r/2)]:r<=15?(n.italics=!0,n.color="white"):n.indent=4*Math.floor((r-16)/2),n},t.parseChars=function(e,t){var r,n=null,i=null;if(e>=25?(r=2,i=e-8):(r=1,i=e),i>=17&&i<=19){var a=t;a=17===i?t+80:18===i?t+112:t+144,this.logger.log(mt.INFO,"Special char '"+gt(a)+"' in channel "+r),n=[a]}else e>=32&&e<=127&&(n=0===t?[e]:[e,t]);if(n){var o=Lt(n);this.logger.log(mt.DEBUG,"Char codes = "+o.join(",")),At(e,t,this.cmdHistory)}return n},t.parseBackgroundAttributes=function(e,t){var r;if(!((16===e||24===e)&&t>=32&&t<=47||(23===e||31===e)&&t>=45&&t<=47))return!1;var n={};16===e||24===e?(r=Math.floor((t-32)/2),n.background=Mt[r],t%2==1&&(n.background=n.background+"_semi")):45===t?n.background="transparent":(n.foreground="black",47===t&&(n.underline=!0));var i=e<=23?1:2;return this.channels[i].setBkgData(n),At(e,t,this.cmdHistory),!0},t.reset=function(){for(var e=0;e<Object.keys(this.channels).length;e++){var t=this.channels[e];t&&t.reset()}this.cmdHistory={a:null,b:null}},t.cueSplitAtTime=function(e){for(var t=0;t<this.channels.length;t++){var r=this.channels[t];r&&r.cueSplitAtTime(e)}},e}(),Ot=function(){function e(e,t){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=e,this.trackName=t}var t=e.prototype;return t.dispatchCue=function(){null!==this.startTime&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)},t.newCue=function(e,t,r){(null===this.startTime||this.startTime>e)&&(this.startTime=e),this.endTime=t,this.screen=r,this.timelineController.createCaptionsTrack(this.trackName)},t.reset=function(){this.cueRanges=[]},e}(),Pt=function(e,t,r){return e.substr(r||0,t.length)===t},Rt=function(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return(t>>>0).toString()},Ct={parse:function(e,t,r,n,i,a){var o,s=Object(Ie.utf8ArrayToStr)(new Uint8Array(e)).trim().replace(/\r\n|\n\r|\n|\r/g,"\n").split("\n"),u="00:00.000",d=0,c=0,h=0,f=[],m=!0,p=!1,g=new ht;g.oncue=function(e){var t=r[n],i=r.ccOffset;t&&t.new&&(void 0!==c?i=r.ccOffset=t.start:function(e,t,r){var n=e[t],i=e[n.prevCC];if(!i||!i.new&&n.new)return e.ccOffset=e.presentationOffset=n.start,void(n.new=!1);for(;i&&i.new;)e.ccOffset+=n.start-i.start,n.new=!1,i=e[(n=i).prevCC];e.presentationOffset=r}(r,n,h)),h&&(i=h-r.presentationOffset),p&&(e.startTime+=i-c,e.endTime+=i-c),e.id=Rt(e.startTime.toString())+Rt(e.endTime.toString())+Rt(e.text),e.text=decodeURIComponent(encodeURIComponent(e.text)),e.endTime>0&&f.push(e)},g.onparsingerror=function(e){o=e},g.onflush=function(){o&&a?a(o):i(f)},s.forEach((function(e){if(m){if(Pt(e,"X-TIMESTAMP-MAP=")){m=!1,p=!0,e.substr(16).split(",").forEach((function(e){Pt(e,"LOCAL:")?u=e.substr(6):Pt(e,"MPEGTS:")&&(d=parseInt(e.substr(7)))}));try{t+(9e4*r[n].start||0)<0&&(t+=8589934592),d-=t,c=function(e){var t=parseInt(e.substr(-3)),r=parseInt(e.substr(-6,2)),n=parseInt(e.substr(-9,2)),i=e.length>9?parseInt(e.substr(0,e.indexOf(":"))):0;if(!(Object(l.isFiniteNumber)(t)&&Object(l.isFiniteNumber)(r)&&Object(l.isFiniteNumber)(n)&&Object(l.isFiniteNumber)(i)))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+e);return t+=1e3*r,t+=6e4*n,t+=36e5*i}(u)/1e3,h=d/9e4}catch(e){p=!1,o=e}return}""===e&&(m=!1)}g.parse(e+"\n")})),g.flush()}};function It(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ft(e,t){return e&&e.label===t.name&&!(e.textTrack1||e.textTrack2)}var jt=function(e){var t,r;function n(t){var r;if((r=e.call(this,t,u.default.MEDIA_ATTACHING,u.default.MEDIA_DETACHING,u.default.FRAG_PARSING_USERDATA,u.default.FRAG_DECRYPTED,u.default.MANIFEST_LOADING,u.default.MANIFEST_LOADED,u.default.FRAG_LOADED,u.default.INIT_PTS_FOUND)||this).media=null,r.config=void 0,r.enabled=!0,r.Cues=void 0,r.textTracks=[],r.tracks=[],r.initPTS=[],r.unparsedVttFrags=[],r.captionsTracks={},r.nonNativeCaptionsTracks={},r.captionsProperties=void 0,r.cea608Parser1=void 0,r.cea608Parser2=void 0,r.lastSn=-1,r.prevCC=-1,r.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}},r.hls=t,r.config=t.config,r.Cues=t.config.cueHandler,r.captionsProperties={textTrack1:{label:r.config.captionsTextTrack1Label,languageCode:r.config.captionsTextTrack1LanguageCode},textTrack2:{label:r.config.captionsTextTrack2Label,languageCode:r.config.captionsTextTrack2LanguageCode},textTrack3:{label:r.config.captionsTextTrack3Label,languageCode:r.config.captionsTextTrack3LanguageCode},textTrack4:{label:r.config.captionsTextTrack4Label,languageCode:r.config.captionsTextTrack4LanguageCode}},r.config.enableCEA708Captions){var n=new Ot(It(r),"textTrack1"),i=new Ot(It(r),"textTrack2"),a=new Ot(It(r),"textTrack3"),o=new Ot(It(r),"textTrack4");r.cea608Parser1=new Yt(1,n,i),r.cea608Parser2=new Yt(3,a,o)}return r}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var i=n.prototype;return i.addCues=function(e,t,r,n,i){for(var a,o,s,l,d=!1,c=i.length;c--;){var h=i[c],f=(a=h[0],o=h[1],s=t,l=r,Math.min(o,l)-Math.max(a,s));if(f>=0&&(h[0]=Math.min(h[0],t),h[1]=Math.max(h[1],r),d=!0,f/(r-t)>.5))return}if(d||i.push([t,r]),this.config.renderTextTracksNatively)this.Cues.newCue(this.captionsTracks[e],t,r,n);else{var m=this.Cues.newCue(null,t,r,n);this.hls.trigger(u.default.CUES_PARSED,{type:"captions",cues:m,track:e})}},i.onInitPtsFound=function(e){var t=this,r=e.frag,n=e.id,i=e.initPTS,a=this.unparsedVttFrags;"main"===n&&(this.initPTS[r.cc]=i),a.length&&(this.unparsedVttFrags=[],a.forEach((function(e){t.onFragLoaded(e)})))},i.getExistingTrack=function(e){var t=this.media;if(t)for(var r=0;r<t.textTracks.length;r++){var n=t.textTracks[r];if(n[e])return n}return null},i.createCaptionsTrack=function(e){this.config.renderTextTracksNatively?this.createNativeTrack(e):this.createNonNativeTrack(e)},i.createNativeTrack=function(e){if(!this.captionsTracks[e]){var t=this.captionsProperties,r=this.captionsTracks,n=this.media,i=t[e],a=i.label,o=i.languageCode,s=this.getExistingTrack(e);if(s)r[e]=s,je(r[e]),Fe(r[e],n);else{var l=this.createTextTrack("captions",a,o);l&&(l[e]=!0,r[e]=l)}}},i.createNonNativeTrack=function(e){if(!this.nonNativeCaptionsTracks[e]){var t=this.captionsProperties[e];if(t){var r={_id:e,label:t.label,kind:"captions",default:!!t.media&&!!t.media.default,closedCaptions:t.media};this.nonNativeCaptionsTracks[e]=r,this.hls.trigger(u.default.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[r]})}}},i.createTextTrack=function(e,t,r){var n=this.media;if(n)return n.addTextTrack(e,t,r)},i.destroy=function(){e.prototype.destroy.call(this)},i.onMediaAttaching=function(e){this.media=e.media,this._cleanTracks()},i.onMediaDetaching=function(){var e=this.captionsTracks;Object.keys(e).forEach((function(t){je(e[t]),delete e[t]})),this.nonNativeCaptionsTracks={}},i.onManifestLoading=function(){this.lastSn=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}},this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={}},i._cleanTracks=function(){var e=this.media;if(e){var t=e.textTracks;if(t)for(var r=0;r<t.length;r++)je(t[r])}},i.onManifestLoaded=function(e){var t=this;if(this.textTracks=[],this.unparsedVttFrags=this.unparsedVttFrags||[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset()),this.config.enableWebVTT){var r=e.subtitles||[],n=this.tracks&&r&&this.tracks.length===r.length;if(this.tracks=e.subtitles||[],this.config.renderTextTracksNatively){var i=this.media?this.media.textTracks:[];this.tracks.forEach((function(e,r){var n;if(r<i.length){for(var a=null,o=0;o<i.length;o++)if(Ft(i[o],e)){a=i[o];break}a&&(n=a)}n||(n=t.createTextTrack("subtitles",e.name,e.lang)),e.default?n.mode=t.hls.subtitleDisplay?"showing":"hidden":n.mode="disabled",t.textTracks.push(n)}))}else if(!n&&this.tracks&&this.tracks.length){var a=this.tracks.map((function(e){return{label:e.name,kind:e.type.toLowerCase(),default:e.default,subtitleTrack:e}}));this.hls.trigger(u.default.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:a})}}this.config.enableCEA708Captions&&e.captions&&e.captions.forEach((function(e){var r=/(?:CC|SERVICE)([1-4])/.exec(e.instreamId);if(r){var n="textTrack"+r[1],i=t.captionsProperties[n];i&&(i.label=e.name,e.lang&&(i.languageCode=e.lang),i.media=e)}}))},i.onFragLoaded=function(e){var t=e.frag,r=e.payload,n=this.cea608Parser1,i=this.cea608Parser2,a=this.initPTS,o=this.lastSn,s=this.unparsedVttFrags;if("main"===t.type){var d=t.sn;t.sn!==o+1&&n&&i&&(n.reset(),i.reset()),this.lastSn=d}else if("subtitle"===t.type)if(r.byteLength){if(!Object(l.isFiniteNumber)(a[t.cc]))return s.push(e),void(a.length&&this.hls.trigger(u.default.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t}));var c=t.decryptdata;null!=c&&null!=c.key&&"AES-128"===c.method||this._parseVTTs(t,r)}else this.hls.trigger(u.default.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t})},i._parseVTTs=function(e,t){var r=this,n=this.hls,i=this.prevCC,a=this.textTracks,o=this.vttCCs;o[e.cc]||(o[e.cc]={start:e.start,prevCC:i,new:!0},this.prevCC=e.cc),Ct.parse(t,this.initPTS[e.cc],o,e.cc,(function(t){if(r.config.renderTextTracksNatively){var i=a[e.level];if("disabled"===i.mode)return void n.trigger(u.default.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e});t.forEach((function(e){if(!i.cues.getCueById(e.id))try{if(i.addCue(e),!i.cues.getCueById(e.id))throw new Error("addCue is failed for: "+e)}catch(r){d.logger.debug("Failed occurred on adding cues: "+r);var t=new window.TextTrackCue(e.startTime,e.endTime,e.text);t.id=e.id,i.addCue(t)}}))}else{var o=r.tracks[e.level].default?"default":"subtitles"+e.level;n.trigger(u.default.CUES_PARSED,{type:"subtitles",cues:t,track:o})}n.trigger(u.default.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})}),(function(t){d.logger.log("Failed to parse VTT cue: "+t),n.trigger(u.default.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e})}))},i.onFragDecrypted=function(e){var t=e.frag,r=e.payload;if("subtitle"===t.type){if(!Object(l.isFiniteNumber)(this.initPTS[t.cc]))return void this.unparsedVttFrags.push(e);this._parseVTTs(t,r)}},i.onFragParsingUserdata=function(e){var t=this.cea608Parser1,r=this.cea608Parser2;if(this.enabled&&t&&r)for(var n=0;n<e.samples.length;n++){var i=e.samples[n].bytes;if(i){var a=this.extractCea608Data(i);t.addData(e.samples[n].pts,a[0]),r.addData(e.samples[n].pts,a[1])}}},i.extractCea608Data=function(e){for(var t=31&e[0],r=2,n=[[],[]],i=0;i<t;i++){var a=e[r++],o=127&e[r++],s=127&e[r++],l=3&a;0===o&&0===s||0!=(4&a)&&(0!==l&&1!==l||(n[l].push(o),n[l].push(s)))}return n},n}(h);function Nt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ht(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];"subtitles"===n.kind&&n.label&&t.push(e[r])}return t}var Bt,Ut=function(e){var t,r;function n(t){var r;return(r=e.call(this,t,u.default.MEDIA_ATTACHED,u.default.MEDIA_DETACHING,u.default.MANIFEST_LOADED,u.default.SUBTITLE_TRACK_LOADED)||this).tracks=[],r.trackId=-1,r.media=null,r.stopped=!0,r.subtitleDisplay=!0,r.queuedDefaultTrack=null,r}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var i,a,o,s=n.prototype;return s.destroy=function(){h.prototype.destroy.call(this)},s.onMediaAttached=function(e){var t=this;this.media=e.media,this.media&&(Object(l.isFiniteNumber)(this.queuedDefaultTrack)&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=null),this.trackChangeListener=this._onTextTracksChanged.bind(this),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.subtitlePollingInterval=setInterval((function(){t.trackChangeListener()}),500):this.media.textTracks.addEventListener("change",this.trackChangeListener))},s.onMediaDetaching=function(){this.media&&(this.useTextTrackPolling?clearInterval(this.subtitlePollingInterval):this.media.textTracks.removeEventListener("change",this.trackChangeListener),Object(l.isFiniteNumber)(this.subtitleTrack)&&(this.queuedDefaultTrack=this.subtitleTrack),Ht(this.media.textTracks).forEach((function(e){je(e)})),this.subtitleTrack=-1,this.media=null)},s.onManifestLoaded=function(e){var t=this,r=e.subtitles||[];this.tracks=r,this.hls.trigger(u.default.SUBTITLE_TRACKS_UPDATED,{subtitleTracks:r}),r.forEach((function(e){e.default&&(t.media?t.subtitleTrack=e.id:t.queuedDefaultTrack=e.id)}))},s.onSubtitleTrackLoaded=function(e){var t=this,r=e.id,n=e.details,i=this.trackId,a=this.tracks,o=a[i];if(r>=a.length||r!==i||!o||this.stopped)this._clearReloadTimer();else if(d.logger.log("subtitle track "+r+" loaded"),n.live){var s=ie(o.details,n,e.stats.trequest);d.logger.log("Reloading live subtitle playlist in "+s+"ms"),this.timer=setTimeout((function(){t._loadCurrentTrack()}),s)}else this._clearReloadTimer()},s.startLoad=function(){this.stopped=!1,this._loadCurrentTrack()},s.stopLoad=function(){this.stopped=!0,this._clearReloadTimer()},s._clearReloadTimer=function(){this.timer&&(clearTimeout(this.timer),this.timer=null)},s._loadCurrentTrack=function(){var e=this.trackId,t=this.tracks,r=this.hls,n=t[e];e<0||!n||n.details&&!n.details.live||(d.logger.log("Loading subtitle track "+e),r.trigger(u.default.SUBTITLE_TRACK_LOADING,{url:n.url,id:e}))},s._toggleTrackModes=function(e){var t=this.media,r=this.subtitleDisplay,n=this.trackId;if(t){var i=Ht(t.textTracks);if(-1===e)[].slice.call(i).forEach((function(e){e.mode="disabled"}));else{var a=i[n];a&&(a.mode="disabled")}var o=i[e];o&&(o.mode=r?"showing":"hidden")}},s._setSubtitleTrackInternal=function(e){var t=this.hls,r=this.tracks;!Object(l.isFiniteNumber)(e)||e<-1||e>=r.length||(this.trackId=e,d.logger.log("Switching to subtitle track "+e),t.trigger(u.default.SUBTITLE_TRACK_SWITCH,{id:e}),this._loadCurrentTrack())},s._onTextTracksChanged=function(){if(this.media&&this.hls.config.renderTextTracksNatively){for(var e=-1,t=Ht(this.media.textTracks),r=0;r<t.length;r++)if("hidden"===t[r].mode)e=r;else if("showing"===t[r].mode){e=r;break}this.subtitleTrack=e}},i=n,(a=[{key:"subtitleTracks",get:function(){return this.tracks}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(e){this.trackId!==e&&(this._toggleTrackModes(e),this._setSubtitleTrackInternal(e))}}])&&Nt(i.prototype,a),o&&Nt(i,o),n}(h),Wt=r("./src/crypt/decrypter.js"),zt=window.performance,Vt=function(e){var t,r;function n(t,r){var n;return(n=e.call(this,t,u.default.MEDIA_ATTACHED,u.default.MEDIA_DETACHING,u.default.ERROR,u.default.KEY_LOADED,u.default.FRAG_LOADED,u.default.SUBTITLE_TRACKS_UPDATED,u.default.SUBTITLE_TRACK_SWITCH,u.default.SUBTITLE_TRACK_LOADED,u.default.SUBTITLE_FRAG_PROCESSED,u.default.LEVEL_UPDATED)||this).fragmentTracker=r,n.config=t.config,n.state=pe,n.tracks=[],n.tracksBuffered=[],n.currentTrackId=-1,n.decrypter=new Wt.default(t,t.config),n.lastAVStart=0,n._onMediaSeeking=n.onMediaSeeking.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)),n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var i=n.prototype;return i.startLoad=function(){this.stopLoad(),this.state=_e;var e=this.tracks[this.currentTrackId];e&&e.details&&(this.setInterval(500),this.tick())},i.onSubtitleFragProcessed=function(e){var t=e.frag,r=e.success;if(this.fragPrevious=t,this.state=_e,r){var n=this.tracksBuffered[this.currentTrackId];if(n){for(var i,a=t.start,o=0;o<n.length;o++)if(a>=n[o].start&&a<=n[o].end){i=n[o];break}var s=t.start+t.duration;i?i.end=s:(i={start:a,end:s},n.push(i))}}},i.onMediaAttached=function(e){var t=e.media;this.media=t,t.addEventListener("seeking",this._onMediaSeeking),this.state=_e},i.onMediaDetaching=function(){var e=this;this.media&&(this.media.removeEventListener("seeking",this._onMediaSeeking),this.fragmentTracker.removeAllFragments(),this.currentTrackId=-1,this.tracks.forEach((function(t){e.tracksBuffered[t.id]=[]})),this.media=null,this.state=pe)},i.onError=function(e){var t=e.frag;t&&"subtitle"===t.type&&(this.fragCurrent&&this.fragCurrent.loader&&this.fragCurrent.loader.abort(),this.state=_e)},i.onSubtitleTracksUpdated=function(e){var t=this;d.logger.log("subtitle tracks updated"),this.tracksBuffered=[],this.tracks=e.subtitleTracks,this.tracks.forEach((function(e){t.tracksBuffered[e.id]=[]}))},i.onSubtitleTrackSwitch=function(e){if(this.currentTrackId=e.id,this.tracks&&this.tracks.length&&-1!==this.currentTrackId){var t=this.tracks[this.currentTrackId];t&&t.details&&this.setInterval(500)}else this.clearInterval()},i.onSubtitleTrackLoaded=function(e){var t=e.id,r=e.details,n=this.currentTrackId,i=this.tracks,a=i[n];t>=i.length||t!==n||!a||(r.live&&function(e,t,r){void 0===r&&(r=0);var n=-1;ne(e,t,(function(e,t,r){t.start=e.start,n=r}));var i=t.fragments;if(n<0)i.forEach((function(e){e.start+=r}));else for(var a=n+1;a<i.length;a++)i[a].start=i[a-1].start+i[a-1].duration}(a.details,r,this.lastAVStart),a.details=r,this.setInterval(500))},i.onKeyLoaded=function(){this.state===ye&&(this.state=_e)},i.onFragLoaded=function(e){var t=this.fragCurrent,r=e.frag.decryptdata,n=e.frag,i=this.hls;if(this.state===be&&t&&"subtitle"===e.frag.type&&t.sn===e.frag.sn&&e.payload.byteLength>0&&r&&r.key&&"AES-128"===r.method){var a=zt.now();this.decrypter.decrypt(e.payload,r.key.buffer,r.iv.buffer,(function(e){var t=zt.now();i.trigger(u.default.FRAG_DECRYPTED,{frag:n,payload:e,stats:{tstart:a,tdecrypt:t}})}))}},i.onLevelUpdated=function(e){var t=e.details.fragments;this.lastAVStart=t.length?t[0].start:0},i.doTick=function(){if(this.media)switch(this.state){case _e:var e=this.config,t=this.currentTrackId,r=this.fragmentTracker,n=this.media,i=this.tracks;if(!i||!i[t]||!i[t].details)break;var a,o=e.maxBufferHole,s=e.maxFragLookUpTolerance,l=Math.min(e.maxBufferLength,e.maxMaxBufferLength),c=W.bufferedInfo(this._getBuffered(),n.currentTime,o),h=c.end,f=c.len,m=i[t].details,p=m.fragments,g=p.length,_=p[g-1].start+p[g-1].duration;if(f>l)return;var v=this.fragPrevious;h<_?(v&&m.hasProgramDateTime&&(a=le(p,v.endProgramDateTime,s)),a||(a=ue(v,p,h,s))):a=p[g-1],a&&a.encrypted?(d.logger.log("Loading key for "+a.sn),this.state=ye,this.hls.trigger(u.default.KEY_LOADING,{frag:a})):a&&r.getState(a)===F&&(this.fragCurrent=a,this.state=be,this.hls.trigger(u.default.FRAG_LOADING,{frag:a}))}else this.state=_e},i.stopLoad=function(){this.lastAVStart=0,this.fragPrevious=null,e.prototype.stopLoad.call(this)},i._getBuffered=function(){return this.tracksBuffered[this.currentTrackId]||[]},i.onMediaSeeking=function(){if(this.fragCurrent){var e=this.media?this.media.currentTime:0,t=this.config.maxFragLookUpTolerance,r=this.fragCurrent.start-t,n=this.fragCurrent.start+this.fragCurrent.duration+t;(e<r||e>n)&&(this.fragCurrent.loader&&this.fragCurrent.loader.abort(),this.fragmentTracker.removeFragment(this.fragCurrent),this.fragCurrent=null,this.fragPrevious=null,this.state=_e,this.tick())}},n}(Ee);!function(e){e.WIDEVINE="com.widevine.alpha",e.PLAYREADY="com.microsoft.playready"}(Bt||(Bt={}));var Gt="undefined"!=typeof window&&window.navigator&&window.navigator.requestMediaKeySystemAccess?window.navigator.requestMediaKeySystemAccess.bind(window.navigator):null;function Kt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var qt=function(e){var t,r;function n(t){var r;return(r=e.call(this,t,u.default.MEDIA_ATTACHED,u.default.MEDIA_DETACHED,u.default.MANIFEST_PARSED)||this)._widevineLicenseUrl=void 0,r._licenseXhrSetup=void 0,r._emeEnabled=void 0,r._requestMediaKeySystemAccess=void 0,r._drmSystemOptions=void 0,r._config=void 0,r._mediaKeysList=[],r._media=null,r._hasSetMediaKeys=!1,r._requestLicenseFailureCount=0,r.mediaKeysPromise=null,r._onMediaEncrypted=function(e){if(d.logger.log('Media is encrypted using "'+e.initDataType+'" init data type'),!r.mediaKeysPromise)return d.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been requested"),void r.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.KEY_SYSTEM_ERROR,details:s.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});var t=function(t){r._media&&(r._attemptSetMediaKeys(t),r._generateRequestWithPreferredKeySession(e.initDataType,e.initData))};r.mediaKeysPromise.then(t).catch(t)},r._config=t.config,r._widevineLicenseUrl=r._config.widevineLicenseUrl,r._licenseXhrSetup=r._config.licenseXhrSetup,r._emeEnabled=r._config.emeEnabled,r._requestMediaKeySystemAccess=r._config.requestMediaKeySystemAccessFunc,r._drmSystemOptions=t.config.drmSystemOptions,r}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var i,a,o,l=n.prototype;return l.getLicenseServerUrl=function(e){switch(e){case Bt.WIDEVINE:if(!this._widevineLicenseUrl)break;return this._widevineLicenseUrl}throw new Error('no license server URL configured for key-system "'+e+'"')},l._attemptKeySystemAccess=function(e,t,r){var n=this,i=function(e,t,r,n){switch(e){case Bt.WIDEVINE:return function(e,t,r){var n={audioCapabilities:[],videoCapabilities:[]};return e.forEach((function(e){n.audioCapabilities.push({contentType:'audio/mp4; codecs="'+e+'"',robustness:r.audioRobustness||""})})),t.forEach((function(e){n.videoCapabilities.push({contentType:'video/mp4; codecs="'+e+'"',robustness:r.videoRobustness||""})})),[n]}(t,r,n);default:throw new Error("Unknown key-system: "+e)}}(e,t,r,this._drmSystemOptions);d.logger.log("Requesting encrypted media key-system access");var a=this.requestMediaKeySystemAccess(e,i);this.mediaKeysPromise=a.then((function(t){return n._onMediaKeySystemAccessObtained(e,t)})),a.catch((function(t){d.logger.error('Failed to obtain key-system "'+e+'" access:',t)}))},l._onMediaKeySystemAccessObtained=function(e,t){var r=this;d.logger.log('Access for key-system "'+e+'" obtained');var n={mediaKeysSessionInitialized:!1,mediaKeySystemAccess:t,mediaKeySystemDomain:e};this._mediaKeysList.push(n);var i=Promise.resolve().then((function(){return t.createMediaKeys()})).then((function(t){return n.mediaKeys=t,d.logger.log('Media-keys created for key-system "'+e+'"'),r._onMediaKeysCreated(),t}));return i.catch((function(e){d.logger.error("Failed to create media-keys:",e)})),i},l._onMediaKeysCreated=function(){var e=this;this._mediaKeysList.forEach((function(t){t.mediaKeysSession||(t.mediaKeysSession=t.mediaKeys.createSession(),e._onNewMediaKeySession(t.mediaKeysSession))}))},l._onNewMediaKeySession=function(e){var t=this;d.logger.log("New key-system session "+e.sessionId),e.addEventListener("message",(function(r){t._onKeySessionMessage(e,r.message)}),!1)},l._onKeySessionMessage=function(e,t){d.logger.log("Got EME message event, creating license request"),this._requestLicense(t,(function(t){d.logger.log("Received license data (length: "+(t?t.byteLength:t)+"), updating key-session"),e.update(t)}))},l._attemptSetMediaKeys=function(e){if(!this._media)throw new Error("Attempted to set mediaKeys without first attaching a media element");if(!this._hasSetMediaKeys){var t=this._mediaKeysList[0];if(!t||!t.mediaKeys)return d.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been obtained yet"),void this.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.KEY_SYSTEM_ERROR,details:s.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});d.logger.log("Setting keys for encrypted media"),this._media.setMediaKeys(t.mediaKeys),this._hasSetMediaKeys=!0}},l._generateRequestWithPreferredKeySession=function(e,t){var r=this,n=this._mediaKeysList[0];if(!n)return d.logger.error("Fatal: Media is encrypted but not any key-system access has been obtained yet"),void this.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.KEY_SYSTEM_ERROR,details:s.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});if(n.mediaKeysSessionInitialized)d.logger.warn("Key-Session already initialized but requested again");else{var i=n.mediaKeysSession;if(!i)return d.logger.error("Fatal: Media is encrypted but no key-session existing"),void this.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.KEY_SYSTEM_ERROR,details:s.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!0});if(!t)return d.logger.warn("Fatal: initData required for generating a key session is null"),void this.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.KEY_SYSTEM_ERROR,details:s.ErrorDetails.KEY_SYSTEM_NO_INIT_DATA,fatal:!0});d.logger.log('Generating key-session request for "'+e+'" init data type'),n.mediaKeysSessionInitialized=!0,i.generateRequest(e,t).then((function(){d.logger.debug("Key-session generation succeeded")})).catch((function(e){d.logger.error("Error generating key-session request:",e),r.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.KEY_SYSTEM_ERROR,details:s.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!1})}))}},l._createLicenseXhr=function(e,t,r){var n=new XMLHttpRequest,i=this._licenseXhrSetup;try{if(i)try{i(n,e)}catch(t){n.open("POST",e,!0),i(n,e)}n.readyState||n.open("POST",e,!0)}catch(e){throw new Error("issue setting up KeySystem license XHR "+e)}return n.responseType="arraybuffer",n.onreadystatechange=this._onLicenseRequestReadyStageChange.bind(this,n,e,t,r),n},l._onLicenseRequestReadyStageChange=function(e,t,r,n){switch(e.readyState){case 4:if(200===e.status)this._requestLicenseFailureCount=0,d.logger.log("License request succeeded"),"arraybuffer"!==e.responseType&&d.logger.warn("xhr response type was not set to the expected arraybuffer for license request"),n(e.response);else{if(d.logger.error("License Request XHR failed ("+t+"). Status: "+e.status+" ("+e.statusText+")"),this._requestLicenseFailureCount++,this._requestLicenseFailureCount>3)return void this.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.KEY_SYSTEM_ERROR,details:s.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});var i=3-this._requestLicenseFailureCount+1;d.logger.warn("Retrying license request, "+i+" attempts left"),this._requestLicense(r,n)}}},l._generateLicenseRequestChallenge=function(e,t){switch(e.mediaKeySystemDomain){case Bt.WIDEVINE:return t}throw new Error("unsupported key-system: "+e.mediaKeySystemDomain)},l._requestLicense=function(e,t){d.logger.log("Requesting content license for key-system");var r=this._mediaKeysList[0];if(!r)return d.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),void this.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.KEY_SYSTEM_ERROR,details:s.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});try{var n=this.getLicenseServerUrl(r.mediaKeySystemDomain),i=this._createLicenseXhr(n,e,t);d.logger.log("Sending license request to URL: "+n);var a=this._generateLicenseRequestChallenge(r,e);i.send(a)}catch(e){d.logger.error("Failure requesting DRM license: "+e),this.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.KEY_SYSTEM_ERROR,details:s.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},l.onMediaAttached=function(e){if(this._emeEnabled){var t=e.media;this._media=t,t.addEventListener("encrypted",this._onMediaEncrypted)}},l.onMediaDetached=function(){var e=this._media,t=this._mediaKeysList;e&&(e.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(t.map((function(e){if(e.mediaKeysSession)return e.mediaKeysSession.close().catch((function(){}))}))).then((function(){return e.setMediaKeys(null)})).catch((function(){})))},l.onManifestParsed=function(e){if(this._emeEnabled){var t=e.levels.map((function(e){return e.audioCodec})),r=e.levels.map((function(e){return e.videoCodec}));this._attemptKeySystemAccess(Bt.WIDEVINE,t,r)}},i=n,(a=[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}])&&Kt(i.prototype,a),o&&Kt(i,o),n}(h);function Jt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Xt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Jt(Object(r),!0).forEach((function(t){$t(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Zt=Xt(Xt({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,initialLiveManifestSize:1,maxBufferLength:30,maxBufferSize:6e7,maxBufferHole:.5,lowBufferWatchdogPeriod:.5,highBufferWatchdogPeriod:3,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,liveDurationInfinity:!1,liveBackBufferLength:1/0,maxMaxBufferLength:600,enableWorker:!0,enableSoftwareAES:!0,manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,startLevel:void 0,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:$e,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,abrController:ze,bufferController:Ge,capLevelController:qe,fpsController:Xe,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystemOptions:{},requestMediaKeySystemAccessFunc:Gt,testBandwidth:!0},{cueHandler:n,enableCEA708Captions:!0,enableWebVTT:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}),{},{subtitleStreamController:Vt,subtitleTrackController:Ut,timelineController:jt,audioStreamController:rt,audioTrackController:Qe,emeController:qt});function Qt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function er(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qt(Object(r),!0).forEach((function(t){tr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function tr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ir(e,t,r){return t&&nr(e.prototype,t),r&&nr(e,r),e}var ar=function(e){var t,r;function n(t){var r;void 0===t&&(t={}),(r=e.call(this)||this).config=void 0,r._autoLevelCapping=void 0,r.abrController=void 0,r.capLevelController=void 0,r.levelController=void 0,r.streamController=void 0,r.networkControllers=void 0,r.audioTrackController=void 0,r.subtitleTrackController=void 0,r.emeController=void 0,r.coreComponents=void 0,r.media=null,r.url=null;var i=n.DefaultConfig;if((t.liveSyncDurationCount||t.liveMaxLatencyDurationCount)&&(t.liveSyncDuration||t.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");r.config=er(er({},i),t);var a=rr(r).config;if(void 0!==a.liveMaxLatencyDurationCount&&a.liveMaxLatencyDurationCount<=a.liveSyncDurationCount)throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be gt "liveSyncDurationCount"');if(void 0!==a.liveMaxLatencyDuration&&(void 0===a.liveSyncDuration||a.liveMaxLatencyDuration<=a.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be gt "liveSyncDuration"');Object(d.enableLogs)(a.debug),r._autoLevelCapping=-1;var o=r.abrController=new a.abrController(rr(r)),s=new a.bufferController(rr(r)),l=r.capLevelController=new a.capLevelController(rr(r)),u=new a.fpsController(rr(r)),c=new R(rr(r)),h=new C(rr(r)),f=new I(rr(r)),m=new Ne(rr(r)),p=r.levelController=new Ce(rr(r)),g=new B(rr(r)),_=[p,r.streamController=new Pe(rr(r),g)],v=a.audioStreamController;v&&_.push(new v(rr(r),g)),r.networkControllers=_;var y=[c,h,f,o,s,l,u,m,g];if(v=a.audioTrackController){var b=new v(rr(r));r.audioTrackController=b,y.push(b)}if(v=a.subtitleTrackController){var M=new v(rr(r));r.subtitleTrackController=M,_.push(M)}if(v=a.emeController){var w=new v(rr(r));r.emeController=w,y.push(w)}return(v=a.subtitleStreamController)&&_.push(new v(rr(r),g)),(v=a.timelineController)&&y.push(new v(rr(r))),r.coreComponents=y,r}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,n.isSupported=function(){return function(){var e=K();if(!e)return!1;var t=self.SourceBuffer||self.WebKitSourceBuffer,r=e&&"function"==typeof e.isTypeSupported&&e.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),n=!t||t.prototype&&"function"==typeof t.prototype.appendBuffer&&"function"==typeof t.prototype.remove;return!!r&&!!n}()},ir(n,null,[{key:"version",get:function(){return"0.14.17"}},{key:"Events",get:function(){return u.default}},{key:"ErrorTypes",get:function(){return s.ErrorTypes}},{key:"ErrorDetails",get:function(){return s.ErrorDetails}},{key:"DefaultConfig",get:function(){return n.defaultConfig?n.defaultConfig:Zt},set:function(e){n.defaultConfig=e}}]);var i=n.prototype;return i.destroy=function(){d.logger.log("destroy"),this.trigger(u.default.DESTROYING),this.detachMedia(),this.coreComponents.concat(this.networkControllers).forEach((function(e){e.destroy()})),this.url=null,this.removeAllListeners(),this._autoLevelCapping=-1},i.attachMedia=function(e){d.logger.log("attachMedia"),this.media=e,this.trigger(u.default.MEDIA_ATTACHING,{media:e})},i.detachMedia=function(){d.logger.log("detachMedia"),this.trigger(u.default.MEDIA_DETACHING),this.media=null},i.loadSource=function(e){e=o.buildAbsoluteURL(window.location.href,e,{alwaysNormalize:!0}),d.logger.log("loadSource:"+e),this.url=e,this.trigger(u.default.MANIFEST_LOADING,{url:e})},i.startLoad=function(e){void 0===e&&(e=-1),d.logger.log("startLoad("+e+")"),this.networkControllers.forEach((function(t){t.startLoad(e)}))},i.stopLoad=function(){d.logger.log("stopLoad"),this.networkControllers.forEach((function(e){e.stopLoad()}))},i.swapAudioCodec=function(){d.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()},i.recoverMediaError=function(){d.logger.log("recoverMediaError");var e=this.media;this.detachMedia(),e&&this.attachMedia(e)},i.removeLevel=function(e,t){void 0===t&&(t=0),this.levelController.removeLevel(e,t)},ir(n,[{key:"levels",get:function(){return this.levelController.levels}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(e){d.logger.log("set currentLevel:"+e),this.loadLevel=e,this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(e){d.logger.log("set nextLevel:"+e),this.levelController.manualLevel=e,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(e){d.logger.log("set loadLevel:"+e),this.levelController.manualLevel=e}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(e){this.levelController.nextLoadLevel=e}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(e){d.logger.log("set firstLevel:"+e),this.levelController.firstLevel=e}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(e){d.logger.log("set startLevel:"+e),-1!==e&&(e=Math.max(e,this.minAutoLevel)),this.levelController.startLevel=e}},{key:"capLevelToPlayerSize",set:function(e){var t=!!e;t!==this.config.capLevelToPlayerSize&&(t?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=t)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(e){d.logger.log("set autoLevelCapping:"+e),this._autoLevelCapping=e}},{key:"bandwidthEstimate",get:function(){var e=this.abrController._bwEstimator;return e?e.getEstimate():NaN}},{key:"autoLevelEnabled",get:function(){return-1===this.levelController.manualLevel}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){for(var e=this.levels,t=this.config.minAutoBitrate,r=e?e.length:0,n=0;n<r;n++)if((e[n].realBitrate?Math.max(e[n].realBitrate,e[n].bitrate):e[n].bitrate)>t)return n;return 0}},{key:"maxAutoLevel",get:function(){var e=this.levels,t=this.autoLevelCapping;return-1===t&&e&&e.length?e.length-1:t}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(e){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,e)}},{key:"audioTracks",get:function(){var e=this.audioTrackController;return e?e.audioTracks:[]}},{key:"audioTrack",get:function(){var e=this.audioTrackController;return e?e.audioTrack:-1},set:function(e){var t=this.audioTrackController;t&&(t.audioTrack=e)}},{key:"liveSyncPosition",get:function(){return this.streamController.liveSyncPosition}},{key:"subtitleTracks",get:function(){var e=this.subtitleTrackController;return e?e.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var e=this.subtitleTrackController;return e?e.subtitleTrack:-1},set:function(e){var t=this.subtitleTrackController;t&&(t.subtitleTrack=e)}},{key:"subtitleDisplay",get:function(){var e=this.subtitleTrackController;return!!e&&e.subtitleDisplay},set:function(e){var t=this.subtitleTrackController;t&&(t.subtitleDisplay=e)}}]),n}(J);ar.defaultConfig=void 0},"./src/polyfills/number.js":
240
- /*!*********************************!*\
241
- !*** ./src/polyfills/number.js ***!
242
- \*********************************/
243
- /*! exports provided: isFiniteNumber, MAX_SAFE_INTEGER */function(e,t,r){"use strict";r.r(t),r.d(t,"isFiniteNumber",(function(){return n})),r.d(t,"MAX_SAFE_INTEGER",(function(){return i}));var n=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},i=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/utils/get-self-scope.js":
244
- /*!*************************************!*\
245
- !*** ./src/utils/get-self-scope.js ***!
246
- \*************************************/
247
- /*! exports provided: getSelfScope */function(e,t,r){"use strict";function n(){return"undefined"==typeof window?self:window}r.r(t),r.d(t,"getSelfScope",(function(){return n}))},"./src/utils/logger.js":
248
- /*!*****************************!*\
249
- !*** ./src/utils/logger.js ***!
250
- \*****************************/
251
- /*! exports provided: enableLogs, logger */function(e,t,r){"use strict";r.r(t),r.d(t,"enableLogs",(function(){return d})),r.d(t,"logger",(function(){return c}));var n=r(/*! ./get-self-scope */"./src/utils/get-self-scope.js");function i(){}var a={trace:i,debug:i,log:i,warn:i,info:i,error:i},o=a;function s(e,t){return t="["+e+"] > "+t}var l=Object(n.getSelfScope)();function u(e){var t=l.console[e];return t?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];n[0]&&(n[0]=s(e,n[0])),t.apply(l.console,n)}:i}var d=function(e){if(l.console&&!0===e||"object"==typeof e){!function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];r.forEach((function(t){o[t]=e[t]?e[t].bind(e):u(t)}))}(e,"debug","log","info","warn","error");try{o.log()}catch(e){o=a}}else o=a},c=o}}).default},e.exports=n())},function(e,t,r){var n=r(80),i=r(335),a=r(423),o=r(87)("toPrimitive");e.exports=function(e,t){if(!n(e)||i(e))return e;var r,s=e[o];if(void 0!==s){if(void 0===t&&(t="default"),r=s.call(e,t),!n(r)||i(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},function(e,t,r){var n=r(323),i=r(44);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},function(e,t,r){var n=r(55),i=r(388),a=n["__core-js_shared__"]||i("__core-js_shared__",{});e.exports=a},function(e,t,r){var n=r(55);e.exports=function(e,t){try{Object.defineProperty(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},function(e,t,r){var n=r(55),i=r(80),a=n.document,o=i(a)&&i(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},function(e,t,r){var n=r(387),i=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return i.call(e)}),e.exports=n.inspectSource},function(e,t,r){var n=r(286),i=r(324),a=r(393),o=r(85);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(o(e)),r=a.f;return r?t.concat(r(e)):t}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){var n=r(89),i=r(121),a=r(85),o=r(348);e.exports=n?Object.defineProperties:function(e,t){a(e);for(var r,n=o(t),s=n.length,l=0;s>l;)i.f(e,r=n[l++],t[r]);return e}},function(e,t,r){var n=r(297),i=r(324).f,a={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return o&&"[object Window]"==a.call(e)?function(e){try{return i(e)}catch(e){return o.slice()}}(e):i(n(e))}},function(e,t,r){var n=r(44);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,r){var n=r(87),i=r(350),a=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||o[a]===e)}},function(e,t,r){var n={};n[r(87)("toStringTag")]="z",e.exports="[object z]"===String(n)},function(e,t,r){"use strict";var n=r(143),i=r(325),a=r(86);e.exports=function(e){for(var t=n(this),r=a(t.length),o=arguments.length,s=i(o>1?arguments[1]:void 0,r),l=o>2?arguments[2]:void 0,u=void 0===l?r:i(l,r);u>s;)t[s++]=e;return t}},function(e,t,r){"use strict";var n=r(15),i=r(401),a=r(301),o=r(316),s=r(305),l=r(280),u=r(281),d=r(87),c=r(300),h=r(350),f=r(437),m=f.IteratorPrototype,p=f.BUGGY_SAFARI_ITERATORS,g=d("iterator"),_=function(){return this};e.exports=function(e,t,r,d,f,v,y){i(r,t,d);var b,M,w,L=function(e){if(e===f&&D)return D;if(!p&&e in k)return k[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}},T=t+" Iterator",x=!1,k=e.prototype,S=k[g]||k["@@iterator"]||f&&k[f],D=!p&&S||L(f),A="Array"==t&&k.entries||S;if(A&&(b=a(A.call(new e)),m!==Object.prototype&&b.next&&(c||a(b)===m||(o?o(b,m):"function"!=typeof b[g]&&l(b,g,_)),s(b,T,!0,!0),c&&(h[T]=_))),"values"==f&&S&&"values"!==S.name&&(x=!0,D=function(){return S.call(this)}),c&&!y||k[g]===D||l(k,g,D),h[t]=D,f)if(M={values:L("values"),keys:v?D:L("keys"),entries:L("entries")},y)for(w in M)(p||x||!(w in k))&&u(k,w,M[w]);else n({target:t,proto:!0,forced:p||x},M);return M}},function(e,t,r){"use strict";var n=r(437).IteratorPrototype,i=r(304),a=r(313),o=r(305),s=r(350),l=function(){return this};e.exports=function(e,t,r){var u=t+" Iterator";return e.prototype=i(n,{next:a(1,r)}),o(e,u,!1,!0),s[u]=l,e}},function(e,t,r){var n=r(315).match(/AppleWebKit\/(\d+)\./);e.exports=!!n&&+n[1]},function(e,t){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(e,t,r){var n=r(86),i=r(96),a=r(405),o=r(227),s=Math.ceil,l=function(e){return function(t,r,l){var u,d,c=i(o(t)),h=c.length,f=void 0===l?" ":i(l),m=n(r);return m<=h||""==f?c:(u=m-h,(d=a.call(f,s(u/f.length))).length>u&&(d=d.slice(0,u)),e?c+d:d+c)}};e.exports={start:l(!1),end:l(!0)}},function(e,t,r){"use strict";var n=r(229),i=r(96),a=r(227);e.exports=function(e){var t=i(a(this)),r="",o=n(e);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(r+=t);return r}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t,r){var n=r(80),i=Math.floor;e.exports=function(e){return!n(e)&&isFinite(e)&&i(e)===e}},function(e,t,r){var n,i,a,o,s=r(55),l=r(44),u=r(326),d=r(428),c=r(389),h=r(453),f=r(336),m=s.setImmediate,p=s.clearImmediate,g=s.process,_=s.MessageChannel,v=s.Dispatch,y=0,b={};try{n=s.location}catch(e){}var M=function(e){if(b.hasOwnProperty(e)){var t=b[e];delete b[e],t()}},w=function(e){return function(){M(e)}},L=function(e){M(e.data)},T=function(e){s.postMessage(String(e),n.protocol+"//"+n.host)};m&&p||(m=function(e){for(var t=[],r=arguments.length,n=1;r>n;)t.push(arguments[n++]);return b[++y]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},i(y),y},p=function(e){delete b[e]},f?i=function(e){g.nextTick(w(e))}:v&&v.now?i=function(e){v.now(w(e))}:_&&!h?(o=(a=new _).port2,a.port1.onmessage=L,i=u(o.postMessage,o,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts&&n&&"file:"!==n.protocol&&!l(T)?(i=T,s.addEventListener("message",L,!1)):i="onreadystatechange"in c("script")?function(e){d.appendChild(c("script")).onreadystatechange=function(){d.removeChild(this),M(e)}}:function(e){setTimeout(w(e),0)}),e.exports={set:m,clear:p}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t,r){var n=r(44),i=r(55).RegExp;e.exports=n((function(){var e=i(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},function(e,t,r){"use strict";var n=r(15),i=r(376);n({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(e,t,r){var n=r(355);e.exports=function(e){if(n(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,r){var n=r(87)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,r){var n=r(44),i=r(372);e.exports=function(e){return n((function(){return!!i[e]()||"​…᠎"!="​…᠎"[e]()||i[e].name!==e}))}},function(e,t,r){var n=r(55),i=r(44),a=r(365),o=r(93).NATIVE_ARRAY_BUFFER_VIEWS,s=n.ArrayBuffer,l=n.Int8Array;e.exports=!o||!i((function(){l(1)}))||!i((function(){new l(-1)}))||!a((function(e){new l,new l(null),new l(1.5),new l(e)}),!0)||i((function(){return 1!==new l(new s(2),1,void 0).length}))},function(e,t,r){"use strict";var n,i="object"==typeof Reflect?Reflect:null,a=i&&"function"==typeof i.apply?i.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,a),n(r)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}_(e,t,a,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&_(e,"error",t,r)}(e,i,{once:!0})}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function d(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function c(e,t,r,n){var i,a,o,s;if(u(r),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),o=a[t]),void 0===o)o=a[t]=r,++e._eventsCount;else if("function"==typeof o?o=a[t]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(i=d(e))>0&&o.length>i&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=o.length,s=l,console&&console.warn&&console.warn(s)}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=h.bind(n);return i.listener=r,n.wrapFn=i,i}function m(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):g(i,i.length)}function p(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function g(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function _(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(a){n.once&&e.removeEventListener(t,i),r(a)}))}}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");l=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return d(this)},s.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=i[e];if(void 0===l)return!1;if("function"==typeof l)a(l,this,t);else{var u=l.length,d=g(l,u);for(r=0;r<u;++r)a(d[r],this,t)}return!0},s.prototype.addListener=function(e,t){return c(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return c(this,e,t,!0)},s.prototype.once=function(e,t){return u(t),this.on(e,f(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,f(this,e,t)),this},s.prototype.removeListener=function(e,t){var r,n,i,a,o;if(u(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,a=r.length-1;a>=0;a--)if(r[a]===t||r[a].listener===t){o=r[a].listener,i=a;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,o||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,a=Object.keys(r);for(n=0;n<a.length;++n)"removeListener"!==(i=a[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},s.prototype.listeners=function(e){return m(this,e,!0)},s.prototype.rawListeners=function(e){return m(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},s.prototype.listenerCount=p,s.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(e,t,r){(t=e.exports=r(603)).Stream=t,t.Readable=t,t.Writable=r(418),t.Duplex=r(333),t.Transform=r(606),t.PassThrough=r(866)},function(e,t,r){"use strict";(function(t,n,i){var a=r(382);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=v;var s,l=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?n:a.nextTick;v.WritableState=_;var u=Object.create(r(356));u.inherits=r(342);var d={deprecate:r(865)},c=r(604),h=r(383).Buffer,f=i.Uint8Array||function(){};var m,p=r(605);function g(){}function _(e,t){s=s||r(333),e=e||{};var n=t instanceof s;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,u=e.writableHighWaterMark,d=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(u||0===u)?u:d,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c=!1===e.decodeStrings;this.decodeStrings=!c,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(a.nextTick(i,n),a.nextTick(T,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),T(e,t))}(e,r,n,t,i);else{var o=w(r);o||r.corked||r.bufferProcessing||!r.bufferedRequest||M(e,r),n?l(b,e,r,o,i):b(e,r,o,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function v(e){if(s=s||r(333),!(m.call(v,this)||this instanceof s))return new v(e);this._writableState=new _(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),c.call(this)}function y(e,t,r,n,i,a,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function b(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),T(e,t)}function M(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),a=t.corkedRequestsFree;a.entry=r;for(var s=0,l=!0;r;)i[s]=r,r.isBuf||(l=!1),r=r.next,s+=1;i.allBuffers=l,y(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,d=r.encoding,c=r.callback;if(y(e,t,!1,t.objectMode?1:u.length,u,d,c),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function w(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function L(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),T(e,t)}))}function T(e,t){var r=w(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,a.nextTick(L,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}u.inherits(v,c),_.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(_.prototype,"buffer",{get:d.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(m=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return!!m.call(this,e)||this===v&&(e&&e._writableState instanceof _)}})):m=function(e){return e instanceof this},v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},v.prototype.write=function(e,t,r){var n,i=this._writableState,o=!1,s=!i.objectMode&&(n=e,h.isBuffer(n)||n instanceof f);return s&&!h.isBuffer(e)&&(e=function(e){return h.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=g),i.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),a.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var i=!0,o=!1;return null===r?o=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),a.nextTick(n,o),i=!1),i}(this,i,e,r))&&(i.pendingcb++,o=function(e,t,r,n,i,a){if(!r){var o=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=h.from(t,r));return t}(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var s=t.objectMode?1:n.length;t.length+=s;var l=t.length<t.highWaterMark;l||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:a,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else y(e,t,!1,s,n,i,a);return l}(this,i,s,e,t,r)),o},v.prototype.cork=function(){this._writableState.corked++},v.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||M(this,e))},v.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),v.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,T(e,t),r&&(t.finished?a.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),v.prototype.destroy=p.destroy,v.prototype._undestroy=p.undestroy,v.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(95),r(863).setImmediate,r(37))},function(e,t,r){"use strict";var n=r(383).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=d,this.end=c,t=3;break;default:return this.write=h,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function d(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function c(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function f(e){return e&&e.length?this.write(e):""}t.StringDecoder=a,a.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},a.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},a.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=o(t[n]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if((i=o(t[n]))>=0)return i>0&&(e.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if((i=o(t[n]))>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,r){var n=r(421).isArray;e.exports={copyOptions:function(e){var t,r={};for(t in e)e.hasOwnProperty(t)&&(r[t]=e[t]);return r},ensureFlagExists:function(e,t){e in t&&"boolean"==typeof t[e]||(t[e]=!1)},ensureSpacesExists:function(e){(!("spaces"in e)||"number"!=typeof e.spaces&&"string"!=typeof e.spaces)&&(e.spaces=0)},ensureAlwaysArrayExists:function(e){"alwaysArray"in e&&("boolean"==typeof e.alwaysArray||n(e.alwaysArray))||(e.alwaysArray=!1)},ensureKeyExists:function(e,t){e+"Key"in t&&"string"==typeof t[e+"Key"]||(t[e+"Key"]=t.compact?"_"+e:e)},checkFnExists:function(e,t){return e+"Fn"in t}}},function(e,t){e.exports={isArray:function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}}},function(e,t,r){var n=r(386);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,r){var n=r(80);e.exports=function(e,t){var r,i;if("string"===t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if("string"!==t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,r){var n=r(89),i=r(44),a=r(389);e.exports=!n&&!i((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},function(e,t,r){var n=r(55),i=r(390),a=n.WeakMap;e.exports="function"==typeof a&&/native code/.test(i(a))},function(e,t,r){var n=r(148),i=r(391),a=r(279),o=r(121);e.exports=function(e,t){for(var r=i(t),s=o.f,l=a.f,u=0;u<r.length;u++){var d=r[u];n(e,d)||s(e,d,l(t,d))}}},function(e,t,r){var n=r(148),i=r(297),a=r(346).indexOf,o=r(345);e.exports=function(e,t){var r,s=i(e),l=0,u=[];for(r in s)!n(o,r)&&n(s,r)&&u.push(r);for(;t.length>l;)n(s,r=t[l++])&&(~a(u,r)||u.push(r));return u}},function(e,t,r){var n=r(286);e.exports=n("document","documentElement")},function(e,t,r){var n=r(87);t.f=n},function(e,t,r){var n=r(55);e.exports=n},function(e,t,r){var n=r(80);e.exports=function(e){if(!n(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,r){var n=r(85);e.exports=function(e,t,r){var i,a;n(e);try{if(void 0===(i=e.return)){if("throw"===t)throw r;return r}i=i.call(e)}catch(e){a=!0,i=e}if("throw"===t)throw r;if(a)throw i;return n(i),r}},function(e,t,r){"use strict";var n=r(143),i=r(325),a=r(86),o=Math.min;e.exports=[].copyWithin||function(e,t){var r=n(this),s=a(r.length),l=i(e,s),u=i(t,s),d=arguments.length>2?arguments[2]:void 0,c=o((void 0===d?s:i(d,s))-u,s-l),h=1;for(u<l&&l<u+c&&(h=-1,u+=c-1,l+=c-1);c-- >0;)u in r?r[l]=r[u]:delete r[l],l+=h,u+=h;return r}},function(e,t,r){"use strict";var n=r(330),i=r(86),a=r(326),o=function(e,t,r,s,l,u,d,c){for(var h,f=l,m=0,p=!!d&&a(d,c,3);m<s;){if(m in r){if(h=p?p(r[m],m,t):r[m],u>0&&n(h))f=o(e,t,h,i(h.length),f,u-1)-1;else{if(f>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[f]=h}f++}m++}return f};e.exports=o},function(e,t,r){"use strict";var n=r(230).forEach,i=r(318)("forEach");e.exports=i?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,r){"use strict";var n=r(326),i=r(143),a=r(642),o=r(397),s=r(86),l=r(331),u=r(364),d=r(351);e.exports=function(e){var t,r,c,h,f,m,p=i(e),g="function"==typeof this?this:Array,_=arguments.length,v=_>1?arguments[1]:void 0,y=void 0!==v,b=d(p),M=0;if(y&&(v=n(v,_>2?arguments[2]:void 0,2)),null==b||g==Array&&o(b))for(r=new g(t=s(p.length));t>M;M++)m=y?v(p[M],M):p[M],l(r,M,m);else for(f=(h=u(p,b)).next,r=new g;!(c=f.call(h)).done;M++)m=y?a(h,v,[c.value,M],!0):c.value,l(r,M,m);return r.length=M,r}},function(e,t,r){"use strict";var n,i,a,o=r(44),s=r(301),l=r(280),u=r(148),d=r(87),c=r(300),h=d("iterator"),f=!1;[].keys&&("next"in(a=[].keys())?(i=s(s(a)))!==Object.prototype&&(n=i):f=!0);var m=null==n||o((function(){var e={};return n[h].call(e)!==e}));m&&(n={}),c&&!m||u(n,h)||l(n,h,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:f}},function(e,t,r){"use strict";var n=r(297),i=r(229),a=r(86),o=r(318),s=Math.min,l=[].lastIndexOf,u=!!l&&1/[1].lastIndexOf(1,-0)<0,d=o("lastIndexOf"),c=u||!d;e.exports=c?function(e){if(u)return l.apply(this,arguments)||0;var t=n(this),r=a(t.length),o=r-1;for(arguments.length>1&&(o=s(o,i(arguments[1]))),o<0&&(o=r+o);o>=0;o--)if(o in t&&t[o]===e)return o||0;return-1}:l},function(e,t){var r=Math.floor,n=function(e,t){var o=e.length,s=r(o/2);return o<8?i(e,t):a(n(e.slice(0,s),t),n(e.slice(s),t),t)},i=function(e,t){for(var r,n,i=e.length,a=1;a<i;){for(n=a,r=e[a];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==a++&&(e[n]=r)}return e},a=function(e,t,r){for(var n=e.length,i=t.length,a=0,o=0,s=[];a<n||o<i;)a<n&&o<i?s.push(r(e[a],t[o])<=0?e[a++]:t[o++]):s.push(a<n?e[a++]:t[o++]);return s};e.exports=n},function(e,t,r){var n=r(315).match(/firefox\/(\d+)/i);e.exports=!!n&&+n[1]},function(e,t,r){var n=r(315);e.exports=/MSIE|Trident/.test(n)},function(e,t,r){var n=r(229),i=r(86);e.exports=function(e){if(void 0===e)return 0;var t=n(e),r=i(t);if(t!==r)throw RangeError("Wrong length or index");return r}},function(e,t,r){"use strict";var n=r(282),i=r(80),a=[].slice,o={},s=function(e,t,r){if(!(t in o)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";o[t]=Function("C,a","return new C("+n.join(",")+")")}return o[t](e,r)};e.exports=Function.bind||function(e){var t=n(this),r=a.call(arguments,1),o=function(){var n=r.concat(a.call(arguments));return this instanceof o?s(t,n.length,n):t.apply(e,n)};return i(t.prototype)&&(o.prototype=t.prototype),o}},function(e,t,r){"use strict";var n=r(121).f,i=r(304),a=r(338),o=r(326),s=r(328),l=r(327),u=r(400),d=r(337),c=r(89),h=r(332).fastKey,f=r(228),m=f.set,p=f.getterFor;e.exports={getConstructor:function(e,t,r,u){var d=e((function(e,n){s(e,d,t),m(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),c||(e.size=0),null!=n&&l(n,e[u],{that:e,AS_ENTRIES:r})})),f=p(t),g=function(e,t,r){var n,i,a=f(e),o=_(e,t);return o?o.value=r:(a.last=o={index:i=h(t,!0),key:t,value:r,previous:n=a.last,next:void 0,removed:!1},a.first||(a.first=o),n&&(n.next=o),c?a.size++:e.size++,"F"!==i&&(a.index[i]=o)),e},_=function(e,t){var r,n=f(e),i=h(t);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key==t)return r};return a(d.prototype,{clear:function(){for(var e=f(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,c?e.size=0:this.size=0},delete:function(e){var t=f(this),r=_(this,e);if(r){var n=r.next,i=r.previous;delete t.index[r.index],r.removed=!0,i&&(i.next=n),n&&(n.previous=i),t.first==r&&(t.first=n),t.last==r&&(t.last=i),c?t.size--:this.size--}return!!r},forEach:function(e){for(var t,r=f(this),n=o(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!_(this,e)}}),a(d.prototype,r?{get:function(e){var t=_(this,e);return t&&t.value},set:function(e,t){return g(this,0===e?0:e,t)}}:{add:function(e){return g(this,e=0===e?0:e,e)}}),c&&n(d.prototype,"size",{get:function(){return f(this).size}}),d},setStrong:function(e,t,r){var n=t+" Iterator",i=p(t),a=p(n);u(e,t,(function(e,t){m(this,{type:n,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=a(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?"keys"==t?{value:r.key,done:!1}:"values"==t?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),d(t)}}},function(e,t){var r=Math.log;e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:r(1+e)}},function(e,t,r){var n=r(55),i=r(96),a=r(340).trim,o=r(372),s=n.parseFloat,l=1/s(o+"-0")!=-1/0;e.exports=l?function(e){var t=a(i(e)),r=s(t);return 0===r&&"-"==t.charAt(0)?-0:r}:s},function(e,t,r){var n=r(55),i=r(96),a=r(340).trim,o=r(372),s=n.parseInt,l=/^[+-]?0[Xx]/,u=8!==s(o+"08")||22!==s(o+"0x16");e.exports=u?function(e,t){var r=a(i(e));return s(r,t>>>0||(l.test(r)?16:10))}:s},function(e,t,r){var n=r(314);e.exports=function(e){if("number"!=typeof e&&"Number"!=n(e))throw TypeError("Incorrect invocation");return+e}},function(e,t,r){"use strict";var n=r(89),i=r(44),a=r(348),o=r(393),s=r(361),l=r(143),u=r(343),d=Object.assign,c=Object.defineProperty;e.exports=!d||i((function(){if(n&&1!==d({b:1},d(c({},"a",{enumerable:!0,get:function(){c(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol();return e[r]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=d({},e)[r]||"abcdefghijklmnopqrst"!=a(d({},t)).join("")}))?function(e,t){for(var r=l(e),i=arguments.length,d=1,c=o.f,h=s.f;i>d;)for(var f,m=u(arguments[d++]),p=c?a(m).concat(c(m)):a(m),g=p.length,_=0;g>_;)f=p[_++],n&&!h.call(m,f)||(r[f]=m[f]);return r}:d},function(e,t,r){var n=r(89),i=r(348),a=r(297),o=r(361).f,s=function(e){return function(t){for(var r,s=a(t),l=i(s),u=l.length,d=0,c=[];u>d;)r=l[d++],n&&!o.call(s,r)||c.push(e?[r,s[r]]:s[r]);return c}};e.exports={entries:s(!0),values:s(!1)}},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,r){var n=r(55);e.exports=n.Promise},function(e,t,r){var n=r(315);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},function(e,t,r){var n,i,a,o,s,l,u,d,c=r(55),h=r(279).f,f=r(408).set,m=r(453),p=r(745),g=r(746),_=r(336),v=c.MutationObserver||c.WebKitMutationObserver,y=c.document,b=c.process,M=c.Promise,w=h(c,"queueMicrotask"),L=w&&w.value;L||(n=function(){var e,t;for(_&&(e=b.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(e){throw i?o():a=void 0,e}}a=void 0,e&&e.enter()},m||_||g||!v||!y?!p&&M&&M.resolve?((u=M.resolve(void 0)).constructor=M,d=u.then,o=function(){d.call(u,n)}):o=_?function(){b.nextTick(n)}:function(){f.call(c,n)}:(s=!0,l=y.createTextNode(""),new v(n).observe(l,{characterData:!0}),o=function(){l.data=s=!s})),e.exports=L||function(e){var t={fn:e,next:void 0};a&&(a.next=t),i||(i=t,o()),a=t}},function(e,t,r){var n=r(85),i=r(80),a=r(374);e.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=a.f(e);return(0,r.resolve)(t),r.promise}},function(e,t,r){var n=r(148);e.exports=function(e){return void 0!==e&&(n(e,"value")||n(e,"writable"))}},function(e,t,r){var n=r(44),i=r(55).RegExp;e.exports=n((function(){var e=i("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},function(e,t,r){"use strict";var n=r(377).charAt,i=r(96),a=r(228),o=r(400),s=a.set,l=a.getterFor("String Iterator");o(String,"String",(function(e){s(this,{type:"String Iterator",string:i(e),index:0})}),(function(){var e,t=l(this),r=t.string,i=t.index;return i>=r.length?{value:void 0,done:!0}:(e=n(r,i),t.index+=e.length,{value:e,done:!1})}))},function(e,t,r){var n=r(315);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(n)},function(e,t,r){var n=r(143),i=Math.floor,a="".replace,o=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,r,l,u,d){var c=r+e.length,h=l.length,f=s;return void 0!==u&&(u=n(u),f=o),a.call(d,f,(function(n,a){var o;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(c);case"<":o=u[a.slice(1,-1)];break;default:var s=+a;if(0===s)return n;if(s>h){var d=i(s/10);return 0===d?n:d<=h?void 0===l[d-1]?a.charAt(1):l[d-1]+a.charAt(1):n}o=l[s-1]}return void 0===o?"":o}))}},function(e,t,r){var n=r(807);e.exports=function(e,t){var r=n(e);if(r%t)throw RangeError("Wrong offset");return r}},function(e,t,r){var n=r(143),i=r(86),a=r(364),o=r(351),s=r(397),l=r(326),u=r(93).aTypedArrayConstructor;e.exports=function(e){var t,r,d,c,h,f,m=n(e),p=arguments.length,g=p>1?arguments[1]:void 0,_=void 0!==g,v=o(m);if(null!=v&&!s(v))for(f=(h=a(m,v)).next,m=[];!(c=f.call(h)).done;)m.push(c.value);for(_&&p>2&&(g=l(g,arguments[2],2)),r=i(m.length),d=new(u(this))(r),t=0;r>t;t++)d[t]=_?g(m[t],t):m[t];return d}},function(e,t,r){"use strict";var n=r(338),i=r(332).getWeakData,a=r(85),o=r(80),s=r(328),l=r(327),u=r(230),d=r(148),c=r(228),h=c.set,f=c.getterFor,m=u.find,p=u.findIndex,g=0,_=function(e){return e.frozen||(e.frozen=new v)},v=function(){this.entries=[]},y=function(e,t){return m(e.entries,(function(e){return e[0]===t}))};v.prototype={get:function(e){var t=y(this,e);if(t)return t[1]},has:function(e){return!!y(this,e)},set:function(e,t){var r=y(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=p(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,r,u){var c=e((function(e,n){s(e,c,t),h(e,{type:t,id:g++,frozen:void 0}),null!=n&&l(n,e[u],{that:e,AS_ENTRIES:r})})),m=f(t),p=function(e,t,r){var n=m(e),o=i(a(t),!0);return!0===o?_(n).set(t,r):o[n.id]=r,e};return n(c.prototype,{delete:function(e){var t=m(this);if(!o(e))return!1;var r=i(e);return!0===r?_(t).delete(e):r&&d(r,t.id)&&delete r[t.id]},has:function(e){var t=m(this);if(!o(e))return!1;var r=i(e);return!0===r?_(t).has(e):r&&d(r,t.id)}}),n(c.prototype,r?{get:function(e){var t=m(this);if(o(e)){var r=i(e);return!0===r?_(t).get(e):r?r[t.id]:void 0}},set:function(e,t){return p(this,e,t)}}:{add:function(e){return p(this,e,!0)}}),c}}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,r){var n=r(44),i=r(87),a=r(300),o=i("iterator");e.exports=!n((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),a&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[o]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},function(e,t,r){"use strict";r(366);var n=r(15),i=r(286),a=r(465),o=r(281),s=r(338),l=r(305),u=r(401),d=r(228),c=r(328),h=r(148),f=r(326),m=r(352),p=r(85),g=r(80),_=r(96),v=r(304),y=r(313),b=r(364),M=r(351),w=r(87),L=i("fetch"),T=i("Request"),x=T&&T.prototype,k=i("Headers"),S=w("iterator"),D=d.set,A=d.getterFor("URLSearchParams"),E=d.getterFor("URLSearchParamsIterator"),Y=/\+/g,O=Array(4),P=function(e){return O[e-1]||(O[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},R=function(e){try{return decodeURIComponent(e)}catch(t){return e}},C=function(e){var t=e.replace(Y," "),r=4;try{return decodeURIComponent(t)}catch(e){for(;r;)t=t.replace(P(r--),R);return t}},I=/[!'()~]|%20/g,F={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},j=function(e){return F[e]},N=function(e){return encodeURIComponent(e).replace(I,j)},H=function(e,t){if(t)for(var r,n,i=t.split("&"),a=0;a<i.length;)(r=i[a++]).length&&(n=r.split("="),e.push({key:C(n.shift()),value:C(n.join("="))}))},B=function(e){this.entries.length=0,H(this.entries,e)},U=function(e,t){if(e<t)throw TypeError("Not enough arguments")},W=u((function(e,t){D(this,{type:"URLSearchParamsIterator",iterator:b(A(e).entries),kind:t})}),"Iterator",(function(){var e=E(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r})),z=function(){c(this,z,"URLSearchParams");var e,t,r,n,i,a,o,s,l,u=arguments.length>0?arguments[0]:void 0,d=this,f=[];if(D(d,{type:"URLSearchParams",entries:f,updateURL:function(){},updateSearchParams:B}),void 0!==u)if(g(u))if("function"==typeof(e=M(u)))for(r=(t=b(u,e)).next;!(n=r.call(t)).done;){if((o=(a=(i=b(p(n.value))).next).call(i)).done||(s=a.call(i)).done||!a.call(i).done)throw TypeError("Expected sequence with length 2");f.push({key:_(o.value),value:_(s.value)})}else for(l in u)h(u,l)&&f.push({key:l,value:_(u[l])});else H(f,"string"==typeof u?"?"===u.charAt(0)?u.slice(1):u:_(u))},V=z.prototype;if(s(V,{append:function(e,t){U(arguments.length,2);var r=A(this);r.entries.push({key:_(e),value:_(t)}),r.updateURL()},delete:function(e){U(arguments.length,1);for(var t=A(this),r=t.entries,n=_(e),i=0;i<r.length;)r[i].key===n?r.splice(i,1):i++;t.updateURL()},get:function(e){U(arguments.length,1);for(var t=A(this).entries,r=_(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){U(arguments.length,1);for(var t=A(this).entries,r=_(e),n=[],i=0;i<t.length;i++)t[i].key===r&&n.push(t[i].value);return n},has:function(e){U(arguments.length,1);for(var t=A(this).entries,r=_(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){U(arguments.length,1);for(var r,n=A(this),i=n.entries,a=!1,o=_(e),s=_(t),l=0;l<i.length;l++)(r=i[l]).key===o&&(a?i.splice(l--,1):(a=!0,r.value=s));a||i.push({key:o,value:s}),n.updateURL()},sort:function(){var e,t,r,n=A(this),i=n.entries,a=i.slice();for(i.length=0,r=0;r<a.length;r++){for(e=a[r],t=0;t<r;t++)if(i[t].key>e.key){i.splice(t,0,e);break}t===r&&i.push(e)}n.updateURL()},forEach:function(e){for(var t,r=A(this).entries,n=f(e,arguments.length>1?arguments[1]:void 0,3),i=0;i<r.length;)n((t=r[i++]).value,t.key,this)},keys:function(){return new W(this,"keys")},values:function(){return new W(this,"values")},entries:function(){return new W(this,"entries")}},{enumerable:!0}),o(V,S,V.entries),o(V,"toString",(function(){for(var e,t=A(this).entries,r=[],n=0;n<t.length;)e=t[n++],r.push(N(e.key)+"="+N(e.value));return r.join("&")}),{enumerable:!0}),l(z,"URLSearchParams"),n({global:!0,forced:!a},{URLSearchParams:z}),!a&&"function"==typeof k){var G=function(e){if(g(e)){var t,r=e.body;if("URLSearchParams"===m(r))return(t=e.headers?new k(e.headers):new k).has("content-type")||t.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),v(e,{body:y(0,String(r)),headers:y(0,t)})}return e};if("function"==typeof L&&n({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return L(e,arguments.length>1?G(arguments[1]):{})}}),"function"==typeof T){var K=function(e){return c(this,K,"Request"),new T(e,arguments.length>1?G(arguments[1]):{})};x.constructor=K,K.prototype=x,n({global:!0,forced:!0},{Request:K})}}e.exports={URLSearchParams:z,getState:A}},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
252
- e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,r){return e<12?r?"vm":"VM":r?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
253
- var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},r={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},i={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},a=function(e){return function(t,r,a,o){var s=n(t),l=i[e][n(t)];return 2===s&&(l=l[r?0:1]),l.replace(/%d/i,t)}},o=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar",{months:o,monthsShort:o,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,r){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return r[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
254
- var t=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},n=function(e){return function(n,i,a,o){var s=t(n),l=r[e][t(n)];return 2===s&&(l=l[i?0:1]),l.replace(/%d/i,n)}},i=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-dz",{months:i,monthsShort:i,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,r){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:n("s"),ss:n("s"),m:n("m"),mm:n("m"),h:n("h"),hh:n("h"),d:n("d"),dd:n("d"),M:n("M"),MM:n("M"),y:n("y"),yy:n("y")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:0,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
255
- e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
256
- var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},r=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(e){return function(t,i,a,o){var s=r(t),l=n[e][r(t)];return 2===s&&(l=l[i?0:1]),l.replace(/%d/i,t)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,r){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
257
- e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
258
- var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},r={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,r){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return r[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
259
- e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
260
- var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,r){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var r=e%10;return e+(t[r]||t[e%100-r]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
261
- function t(e,t,r){var n,i;return"m"===r?t?"хвіліна":"хвіліну":"h"===r?t?"гадзіна":"гадзіну":e+" "+(n=+e,i={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[r].split("_"),n%10==1&&n%100!=11?i[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?i[1]:i[2])}e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,r){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
262
- e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,r=e%100;return 0===e?e+"-ев":0===r?e+"-ен":r>10&&r<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
263
- e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
264
- var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},r={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return r[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,r){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
265
- var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},r={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn-bd",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return r[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t?e<4?e:e+12:"ভোর"===t||"সকাল"===t?e:"দুপুর"===t?e>=3?e:e+12:"বিকাল"===t||"সন্ধ্যা"===t?e+12:void 0},meridiem:function(e,t,r){return e<4?"রাত":e<6?"ভোর":e<12?"সকাল":e<15?"দুপুর":e<18?"বিকাল":e<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
266
- var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},r={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,monthsParseExact:!0,weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return r[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,r){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
267
- function t(e,t,r){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[r],e)}var r=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],n=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,i=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];e.defineLocale("br",{months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:i,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:i,monthsRegex:n,monthsShortRegex:n,monthsStrictRegex:/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warcʼhoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Decʼh da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(function e(t){return t>9?e(t%10):t}(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,r){return e<12?"a.m.":"g.m."}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
268
- function t(e,t,r){var n=e+" ";switch(r){case"ss":return n+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return n+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return n+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return n+=1===e?"dan":"dana";case"MM":return n+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return n+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
269
- e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var r=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(r="a"),e+r},week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
270
- var t="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),r="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),n=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],i=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function a(e){return e>1&&e<5&&1!=~~(e/10)}function o(e,t,r,n){var i=e+" ";switch(r){case"s":return t||n?"pár sekund":"pár sekundami";case"ss":return t||n?i+(a(e)?"sekundy":"sekund"):i+"sekundami";case"m":return t?"minuta":n?"minutu":"minutou";case"mm":return t||n?i+(a(e)?"minuty":"minut"):i+"minutami";case"h":return t?"hodina":n?"hodinu":"hodinou";case"hh":return t||n?i+(a(e)?"hodiny":"hodin"):i+"hodinami";case"d":return t||n?"den":"dnem";case"dd":return t||n?i+(a(e)?"dny":"dní"):i+"dny";case"M":return t||n?"měsíc":"měsícem";case"MM":return t||n?i+(a(e)?"měsíce":"měsíců"):i+"měsíci";case"y":return t||n?"rok":"rokem";case"yy":return t||n?i+(a(e)?"roky":"let"):i+"lety"}}e.defineLocale("cs",{months:t,monthsShort:r,monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
271
- e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
272
- e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
273
- e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
274
- function t(e,t,r,n){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[r][0]:i[r][1]}e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
275
- function t(e,t,r,n){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[r][0]:i[r][1]}e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
276
- function t(e,t,r,n){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[r][0]:i[r][1]}e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
277
- var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],r=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:r,weekdaysShort:r,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,r){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
278
- e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,r){return e>11?r?"μμ":"ΜΜ":r?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,t){var r,n=this._calendarEl[e],i=t&&t.hours();return r=n,("undefined"!=typeof Function&&r instanceof Function||"[object Function]"===Object.prototype.toString.call(r))&&(n=n.apply(t)),n.replace("{}",i%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
279
- e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
280
- e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
281
- e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
282
- e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
283
- e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
284
- e.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:6}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
285
- e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
286
- e.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
287
- e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,r){return e>11?r?"p.t.m.":"P.T.M.":r?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
288
- var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),r="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?r[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
289
- var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),r="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?r[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
290
- var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),r="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?r[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
291
- var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),r="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?r[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
292
- function t(e,t,r,n){var i={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?i[r][2]?i[r][2]:i[r][1]:n?i[r][0]:i[r][1]}e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
293
- e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
294
- var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},r={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,r){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return r[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
295
- var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),r=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function n(e,n,i,a){var o="";switch(i){case"s":return a?"muutaman sekunnin":"muutama sekunti";case"ss":o=a?"sekunnin":"sekuntia";break;case"m":return a?"minuutin":"minuutti";case"mm":o=a?"minuutin":"minuuttia";break;case"h":return a?"tunnin":"tunti";case"hh":o=a?"tunnin":"tuntia";break;case"d":return a?"päivän":"päivä";case"dd":o=a?"päivän":"päivää";break;case"M":return a?"kuukauden":"kuukausi";case"MM":o=a?"kuukauden":"kuukautta";break;case"y":return a?"vuoden":"vuosi";case"yy":o=a?"vuoden":"vuotta"}return o=function(e,n){return e<10?n?r[e]:t[e]:e}(e,a)+" "+o}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
296
- e.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
297
- e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
298
- var t=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,r=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:t,monthsShortRegex:t,monthsStrictRegex:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,monthsShortStrictRegex:/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
299
- e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
300
- e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
301
- var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),r="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?r[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
302
- e.defineLocale("ga",{months:["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],weekdaysShort:["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],weekdaysMin:["Do","Lu","Má","Cé","Dé","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
303
- e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
304
- e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
305
- function t(e,t,r,n){var i={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[e+" सॅकंडांनी",e+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[e+" मिणटांनी",e+" मिणटां"],h:["एका वरान","एक वर"],hh:[e+" वरांनी",e+" वरां"],d:["एका दिसान","एक दीस"],dd:[e+" दिसांनी",e+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[e+" म्हयन्यानी",e+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[e+" वर्सांनी",e+" वर्सां"]};return n?i[r][0]:i[r][1]}e.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाजतां]",LTS:"A h:mm:ss [वाजतां]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाजतां]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM YYYY, A h:mm [वाजतां]"},calendar:{sameDay:"[आयज] LT",nextDay:"[फाल्यां] LT",nextWeek:"[फुडलो] dddd[,] LT",lastDay:"[काल] LT",lastWeek:"[फाटलो] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s आदीं",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(e,t){switch(t){case"D":return e+"वेर";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(e,t){return 12===e&&(e=0),"राती"===t?e<4?e:e+12:"सकाळीं"===t?e:"दनपारां"===t?e>12?e:e+12:"सांजे"===t?e+12:void 0},meridiem:function(e,t,r){return e<4?"राती":e<12?"सकाळीं":e<16?"दनपारां":e<20?"सांजे":"राती"}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
306
- function t(e,t,r,n){var i={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return n?i[r][0]:i[r][1]}e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,r){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
307
- var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},r={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહેલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(e){return r[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,r){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
308
- e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,r){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?r?'לפנה"צ':"לפני הצהריים":e<18?r?'אחה"צ':"אחרי הצהריים":"בערב"}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
309
- var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},r={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},n=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i];e.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".split("_")},monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},monthsParse:n,longMonthsParse:n,shortMonthsParse:[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i],monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return r[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,r){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
310
- function t(e,t,r){var n=e+" ";switch(r){case"ss":return n+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return n+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return n+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return n+=1===e?"dan":"dana";case"MM":return n+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return n+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
311
- var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function r(e,t,r,n){var i=e;switch(r){case"s":return n||t?"néhány másodperc":"néhány másodperce";case"ss":return i+(n||t)?" másodperc":" másodperce";case"m":return"egy"+(n||t?" perc":" perce");case"mm":return i+(n||t?" perc":" perce");case"h":return"egy"+(n||t?" óra":" órája");case"hh":return i+(n||t?" óra":" órája");case"d":return"egy"+(n||t?" nap":" napja");case"dd":return i+(n||t?" nap":" napja");case"M":return"egy"+(n||t?" hónap":" hónapja");case"MM":return i+(n||t?" hónap":" hónapja");case"y":return"egy"+(n||t?" év":" éve");case"yy":return i+(n||t?" év":" éve")}return""}function n(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,r){return e<12?!0===r?"de":"DE":!0===r?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return n.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return n.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
312
- e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
313
- e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,r){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
314
- function t(e){return e%100==11||e%10!=1}function r(e,r,n,i){var a=e+" ";switch(n){case"s":return r||i?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?a+(r||i?"sekúndur":"sekúndum"):a+"sekúnda";case"m":return r?"mínúta":"mínútu";case"mm":return t(e)?a+(r||i?"mínútur":"mínútum"):r?a+"mínúta":a+"mínútu";case"hh":return t(e)?a+(r||i?"klukkustundir":"klukkustundum"):a+"klukkustund";case"d":return r?"dagur":i?"dag":"degi";case"dd":return t(e)?r?a+"dagar":a+(i?"daga":"dögum"):r?a+"dagur":a+(i?"dag":"degi");case"M":return r?"mánuður":i?"mánuð":"mánuði";case"MM":return t(e)?r?a+"mánuðir":a+(i?"mánuði":"mánuðum"):r?a+"mánuður":a+(i?"mánuð":"mánuði");case"y":return r||i?"ár":"ári";case"yy":return t(e)?a+(r||i?"ár":"árum"):a+(r||i?"ár":"ári")}}e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:r,ss:r,m:r,mm:r,h:"klukkustund",hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
315
- e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){switch(this.day()){case 0:return"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT";default:return"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"}},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
316
- e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
317
- e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(e,t){return"元"===t[1]?1:parseInt(t[1]||e,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,r){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()!==e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"y":return 1===e?"元年":e+"年";case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
318
- e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,r){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
319
- e.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,(function(e,t,r){return"ი"===r?t+"ში":t+r+"ში"}))},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):e},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
320
- var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
321
- var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},r={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,r){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(e){return r[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
322
- var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},r={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(e){return r[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,r){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
323
- e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,r){return e<12?"오전":"오후"}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
324
- var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},r={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},n=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];e.defineLocale("ku",{months:n,monthsShort:n,weekdays:"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split("_"),weekdaysShort:"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره‌|به‌یانی/,isPM:function(e){return/ئێواره‌/.test(e)},meridiem:function(e,t,r){return e<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return r[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
325
- var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
326
- function t(e,t,r,n){var i={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?i[r][0]:i[r][1]}function r(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return r(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return r(e)}return r(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return r(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return r(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
327
- e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,r){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
328
- var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function r(e,t,r,n){return t?i(r)[0]:n?i(r)[1]:i(r)[2]}function n(e){return e%10==0||e>10&&e<20}function i(e){return t[e].split("_")}function a(e,t,a,o){var s=e+" ";return 1===e?s+r(0,t,a[0],o):t?s+(n(e)?i(a)[1]:i(a)[0]):o?s+i(a)[1]:s+(n(e)?i(a)[1]:i(a)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,t,r,n){return t?"kelios sekundės":n?"kelių sekundžių":"kelias sekundes"},ss:a,m:r,mm:a,h:r,hh:a,d:r,dd:a,M:r,MM:a,y:r,yy:a},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
329
- var t={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function r(e,t,r){return r?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function n(e,n,i){return e+" "+r(t[i],e,n)}function i(e,n,i){return r(t[i],e,n)}e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(e,t){return t?"dažas sekundes":"dažām sekundēm"},ss:n,m:i,mm:n,h:i,hh:n,d:i,dd:n,M:i,MM:n,y:i,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
330
- var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,r,n){var i=t.words[n];return 1===n.length?r?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
331
- e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
332
- e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,r=e%100;return 0===e?e+"-ев":0===r?e+"-ен":r>10&&r<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
333
- e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,r){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
334
- function t(e,t,r,n){switch(r){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}e.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,r){return e<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
335
- var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},r={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function n(e,t,r,n){var i="";if(t)switch(r){case"s":i="काही सेकंद";break;case"ss":i="%d सेकंद";break;case"m":i="एक मिनिट";break;case"mm":i="%d मिनिटे";break;case"h":i="एक तास";break;case"hh":i="%d तास";break;case"d":i="एक दिवस";break;case"dd":i="%d दिवस";break;case"M":i="एक महिना";break;case"MM":i="%d महिने";break;case"y":i="एक वर्ष";break;case"yy":i="%d वर्षे"}else switch(r){case"s":i="काही सेकंदां";break;case"ss":i="%d सेकंदां";break;case"m":i="एका मिनिटा";break;case"mm":i="%d मिनिटां";break;case"h":i="एका तासा";break;case"hh":i="%d तासां";break;case"d":i="एका दिवसा";break;case"dd":i="%d दिवसां";break;case"M":i="एका महिन्या";break;case"MM":i="%d महिन्यां";break;case"y":i="एका वर्षा";break;case"yy":i="%d वर्षां"}return i.replace(/%d/i,e)}e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return r[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(e,t){return 12===e&&(e=0),"पहाटे"===t||"सकाळी"===t?e:"दुपारी"===t||"सायंकाळी"===t||"रात्री"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,r){return e>=0&&e<6?"पहाटे":e<12?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
336
- e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,r){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
337
- e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,r){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
338
- e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
339
- var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},r={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return r[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
340
- e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
341
- var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},r={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return r[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,r){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
342
- var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),r="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?r[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
343
- var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),r="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?r[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
344
- e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
345
- e.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var r=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(r="a"),e+r},week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
346
- var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},r={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(e){return r[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,r){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
347
- var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),r="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),n=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function i(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function a(e,t,r){var n=e+" ";switch(r){case"ss":return n+(i(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return n+(i(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return n+(i(e)?"godziny":"godzin");case"ww":return n+(i(e)?"tygodnie":"tygodni");case"MM":return n+(i(e)?"miesiące":"miesięcy");case"yy":return n+(i(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,n){return e?/D MMMM/.test(n)?r[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:a,m:a,mm:a,h:a,hh:a,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:a,M:"miesiąc",MM:a,y:"rok",yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
348
- e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
349
- e.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",invalidDate:"Data inválida"})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
350
- function t(e,t,r){var n=" ";return(e%100>=20||e>=100&&e%100==0)&&(n=" de "),e+n+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"}[r]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,w:"o săptămână",ww:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
351
- function t(e,t,r){var n,i;return"m"===r?t?"минута":"минуту":e+" "+(n=+e,i={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[r].split("_"),n%10==1&&n%100!=11?i[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?i[1]:i[2])}var r=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:t,m:t,mm:t,h:"час",hh:t,d:"день",dd:t,w:"неделя",ww:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,r){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
352
- var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],r=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:r,weekdaysShort:r,weekdaysMin:r,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,r){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
353
- e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
354
- e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,r){return e>11?r?"ප.ව.":"පස් වරු":r?"පෙ.ව.":"පෙර වරු"}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
355
- var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),r="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function n(e){return e>1&&e<5}function i(e,t,r,i){var a=e+" ";switch(r){case"s":return t||i?"pár sekúnd":"pár sekundami";case"ss":return t||i?a+(n(e)?"sekundy":"sekúnd"):a+"sekundami";case"m":return t?"minúta":i?"minútu":"minútou";case"mm":return t||i?a+(n(e)?"minúty":"minút"):a+"minútami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?a+(n(e)?"hodiny":"hodín"):a+"hodinami";case"d":return t||i?"deň":"dňom";case"dd":return t||i?a+(n(e)?"dni":"dní"):a+"dňami";case"M":return t||i?"mesiac":"mesiacom";case"MM":return t||i?a+(n(e)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return t||i?"rok":"rokom";case"yy":return t||i?a+(n(e)?"roky":"rokov"):a+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:r,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
356
- function t(e,t,r,n){var i=e+" ";switch(r){case"s":return t||n?"nekaj sekund":"nekaj sekundami";case"ss":return i+=1===e?t?"sekundo":"sekundi":2===e?t||n?"sekundi":"sekundah":e<5?t||n?"sekunde":"sekundah":"sekund";case"m":return t?"ena minuta":"eno minuto";case"mm":return i+=1===e?t?"minuta":"minuto":2===e?t||n?"minuti":"minutama":e<5?t||n?"minute":"minutami":t||n?"minut":"minutami";case"h":return t?"ena ura":"eno uro";case"hh":return i+=1===e?t?"ura":"uro":2===e?t||n?"uri":"urama":e<5?t||n?"ure":"urami":t||n?"ur":"urami";case"d":return t||n?"en dan":"enim dnem";case"dd":return i+=1===e?t||n?"dan":"dnem":2===e?t||n?"dni":"dnevoma":t||n?"dni":"dnevi";case"M":return t||n?"en mesec":"enim mesecem";case"MM":return i+=1===e?t||n?"mesec":"mesecem":2===e?t||n?"meseca":"mesecema":e<5?t||n?"mesece":"meseci":t||n?"mesecev":"meseci";case"y":return t||n?"eno leto":"enim letom";case"yy":return i+=1===e?t||n?"leto":"letom":2===e?t||n?"leti":"letoma":e<5?t||n?"leta":"leti":t||n?"let":"leti"}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
357
- e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,r){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
358
- var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,r,n){var i=t.words[n];return 1===n.length?r?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
359
- var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,r,n){var i=t.words[n];return 1===n.length?r?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
360
- e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,r){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
361
- e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?":e":1===t||2===t?":a":":e")},week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
362
- e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
363
- var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},r={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(e){return r[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,r){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
364
- e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,r){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
365
- e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
366
- var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};e.defineLocale("tg",{months:{format:"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри".split("_"),standalone:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_")},monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Фардо соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,r){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
367
- e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,r){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
368
- var t={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};e.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(e,r){switch(r){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
369
- e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
370
- var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function r(e,r,n,i){var a=function(e){var r=Math.floor(e%1e3/100),n=Math.floor(e%100/10),i=e%10,a="";return r>0&&(a+=t[r]+"vatlh"),n>0&&(a+=(""!==a?" ":"")+t[n]+"maH"),i>0&&(a+=(""!==a?" ":"")+t[i]),""===a?"pagh":a}(e);switch(n){case"ss":return a+" lup";case"mm":return a+" tup";case"hh":return a+" rep";case"dd":return a+" jaj";case"MM":return a+" jar";case"yy":return a+" DIS"}}e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:r,m:"wa’ tup",mm:r,h:"wa’ rep",hh:r,d:"wa’ jaj",dd:r,M:"wa’ jar",MM:r,y:"wa’ DIS",yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
371
- var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(e,t,r){return e<12?r?"öö":"ÖÖ":r?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(e){return"ös"===e||"ÖS"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,r){switch(r){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
372
- function t(e,t,r,n){var i={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return n||t?i[r][0]:i[r][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,r){return e>11?r?"d'o":"D'O":r?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
373
- e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
374
- e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
375
- e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,r){var n=100*e+t;return n<600?"يېرىم كېچە":n<900?"سەھەر":n<1130?"چۈشتىن بۇرۇن":n<1230?"چۈش":n<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
376
- function t(e,t,r){var n,i;return"m"===r?t?"хвилина":"хвилину":"h"===r?t?"година":"годину":e+" "+(n=+e,i={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[r].split("_"),n%10==1&&n%100!=11?i[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?i[1]:i[2])}function r(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(e,t){var r={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===e?r.nominative.slice(1,7).concat(r.nominative.slice(0,1)):e?r[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:r.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:r("[Сьогодні "),nextDay:r("[Завтра "),lastDay:r("[Вчора "),nextWeek:r("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return r("[Минулої] dddd [").call(this);case 1:case 2:case 4:return r("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:t,m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,r){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
377
- var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],r=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:r,weekdaysShort:r,weekdaysMin:r,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,r){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
378
- e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
379
- e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
380
- e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,r){return e<12?r?"sa":"SA":r?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
381
- e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
382
- e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
383
- e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,r){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
384
- e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,r){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1200?"上午":1200===n?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
385
- e.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,r){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(r(19))},function(e,t,r){!function(e){"use strict";//! moment.js locale configuration
386
- e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,r){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(r(19))},function(e,t,r){var n,i,a=r(858),o=r(420),s=r(421).isArray;function l(e){var t=Number(e);if(!isNaN(t))return t;var r=e.toLowerCase();return"true"===r||"false"!==r&&e}function u(e,t){var r;if(n.compact){if(!i[n[e+"Key"]]&&(s(n.alwaysArray)?-1!==n.alwaysArray.indexOf(n[e+"Key"]):n.alwaysArray)&&(i[n[e+"Key"]]=[]),i[n[e+"Key"]]&&!s(i[n[e+"Key"]])&&(i[n[e+"Key"]]=[i[n[e+"Key"]]]),e+"Fn"in n&&"string"==typeof t&&(t=n[e+"Fn"](t,i)),"instruction"===e&&("instructionFn"in n||"instructionNameFn"in n))for(r in t)if(t.hasOwnProperty(r))if("instructionFn"in n)t[r]=n.instructionFn(t[r],r,i);else{var a=t[r];delete t[r],t[n.instructionNameFn(r,a,i)]=a}s(i[n[e+"Key"]])?i[n[e+"Key"]].push(t):i[n[e+"Key"]]=t}else{i[n.elementsKey]||(i[n.elementsKey]=[]);var o={};if(o[n.typeKey]=e,"instruction"===e){for(r in t)if(t.hasOwnProperty(r))break;o[n.nameKey]="instructionNameFn"in n?n.instructionNameFn(r,t,i):r,n.instructionHasAttributes?(o[n.attributesKey]=t[r][n.attributesKey],"instructionFn"in n&&(o[n.attributesKey]=n.instructionFn(o[n.attributesKey],r,i))):("instructionFn"in n&&(t[r]=n.instructionFn(t[r],r,i)),o[n.instructionKey]=t[r])}else e+"Fn"in n&&(t=n[e+"Fn"](t,i)),o[n[e+"Key"]]=t;n.addParent&&(o[n.parentKey]=i),i[n.elementsKey].push(o)}}function d(e){var t;if("attributesFn"in n&&e&&(e=n.attributesFn(e,i)),(n.trim||"attributeValueFn"in n||"attributeNameFn"in n||n.nativeTypeAttributes)&&e)for(t in e)if(e.hasOwnProperty(t)&&(n.trim&&(e[t]=e[t].trim()),n.nativeTypeAttributes&&(e[t]=l(e[t])),"attributeValueFn"in n&&(e[t]=n.attributeValueFn(e[t],t,i)),"attributeNameFn"in n)){var r=e[t];delete e[t],e[n.attributeNameFn(t,e[t],i)]=r}return e}function c(e){var t={};if(e.body&&("xml"===e.name.toLowerCase()||n.instructionHasAttributes)){for(var r,a=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g;null!==(r=a.exec(e.body));)t[r[1]]=r[2]||r[3]||r[4];t=d(t)}if("xml"===e.name.toLowerCase()){if(n.ignoreDeclaration)return;i[n.declarationKey]={},Object.keys(t).length&&(i[n.declarationKey][n.attributesKey]=t),n.addParent&&(i[n.declarationKey][n.parentKey]=i)}else{if(n.ignoreInstruction)return;n.trim&&(e.body=e.body.trim());var o={};n.instructionHasAttributes&&Object.keys(t).length?(o[e.name]={},o[e.name][n.attributesKey]=t):o[e.name]=e.body,u("instruction",o)}}function h(e,t){var r;if("object"==typeof e&&(t=e.attributes,e=e.name),t=d(t),"elementNameFn"in n&&(e=n.elementNameFn(e,i)),n.compact){var a;if(r={},!n.ignoreAttributes&&t&&Object.keys(t).length)for(a in r[n.attributesKey]={},t)t.hasOwnProperty(a)&&(r[n.attributesKey][a]=t[a]);!(e in i)&&(s(n.alwaysArray)?-1!==n.alwaysArray.indexOf(e):n.alwaysArray)&&(i[e]=[]),i[e]&&!s(i[e])&&(i[e]=[i[e]]),s(i[e])?i[e].push(r):i[e]=r}else i[n.elementsKey]||(i[n.elementsKey]=[]),(r={})[n.typeKey]="element",r[n.nameKey]=e,!n.ignoreAttributes&&t&&Object.keys(t).length&&(r[n.attributesKey]=t),n.alwaysChildren&&(r[n.elementsKey]=[]),i[n.elementsKey].push(r);r[n.parentKey]=i,i=r}function f(e){n.ignoreText||(e.trim()||n.captureSpacesBetweenElements)&&(n.trim&&(e=e.trim()),n.nativeType&&(e=l(e)),n.sanitize&&(e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),u("text",e))}function m(e){n.ignoreComment||(n.trim&&(e=e.trim()),u("comment",e))}function p(e){var t=i[n.parentKey];n.addParent||delete i[n.parentKey],i=t}function g(e){n.ignoreCdata||(n.trim&&(e=e.trim()),u("cdata",e))}function _(e){n.ignoreDoctype||(e=e.replace(/^ /,""),n.trim&&(e=e.trim()),u("doctype",e))}function v(e){e.note=e}e.exports=function(e,t){var r=a.parser(!0,{}),s={};if(i=s,n=function(e){return n=o.copyOptions(e),o.ensureFlagExists("ignoreDeclaration",n),o.ensureFlagExists("ignoreInstruction",n),o.ensureFlagExists("ignoreAttributes",n),o.ensureFlagExists("ignoreText",n),o.ensureFlagExists("ignoreComment",n),o.ensureFlagExists("ignoreCdata",n),o.ensureFlagExists("ignoreDoctype",n),o.ensureFlagExists("compact",n),o.ensureFlagExists("alwaysChildren",n),o.ensureFlagExists("addParent",n),o.ensureFlagExists("trim",n),o.ensureFlagExists("nativeType",n),o.ensureFlagExists("nativeTypeAttributes",n),o.ensureFlagExists("sanitize",n),o.ensureFlagExists("instructionHasAttributes",n),o.ensureFlagExists("captureSpacesBetweenElements",n),o.ensureAlwaysArrayExists(n),o.ensureKeyExists("declaration",n),o.ensureKeyExists("instruction",n),o.ensureKeyExists("attributes",n),o.ensureKeyExists("text",n),o.ensureKeyExists("comment",n),o.ensureKeyExists("cdata",n),o.ensureKeyExists("doctype",n),o.ensureKeyExists("type",n),o.ensureKeyExists("name",n),o.ensureKeyExists("elements",n),o.ensureKeyExists("parent",n),o.checkFnExists("doctype",n),o.checkFnExists("instruction",n),o.checkFnExists("cdata",n),o.checkFnExists("comment",n),o.checkFnExists("text",n),o.checkFnExists("instructionName",n),o.checkFnExists("elementName",n),o.checkFnExists("attributeName",n),o.checkFnExists("attributeValue",n),o.checkFnExists("attributes",n),n}(t),r.opt={strictEntities:!0},r.onopentag=h,r.ontext=f,r.oncomment=m,r.onclosetag=p,r.onerror=v,r.oncdata=g,r.ondoctype=_,r.onprocessinginstruction=c,r.write(e).close(),s[n.elementsKey]){var l=s[n.elementsKey];delete s[n.elementsKey],s[n.elementsKey]=l,delete s.text}return s}},function(e,t,r){"use strict";(function(t,n){var i=r(382);e.exports=y;var a,o=r(153);y.ReadableState=v;r(416).EventEmitter;var s=function(e,t){return e.listeners(t).length},l=r(604),u=r(383).Buffer,d=t.Uint8Array||function(){};var c=Object.create(r(356));c.inherits=r(342);var h=r(860),f=void 0;f=h&&h.debuglog?h.debuglog("stream"):function(){};var m,p=r(861),g=r(605);c.inherits(y,l);var _=["error","close","destroy","pause","resume"];function v(e,t){e=e||{};var n=t instanceof(a=a||r(333));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,o=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(o||0===o)?o:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(m||(m=r(419).StringDecoder),this.decoder=new m(e.encoding),this.encoding=e.encoding)}function y(e){if(a=a||r(333),!(this instanceof y))return new y(e);this._readableState=new v(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function b(e,t,r,n,i){var a,o=e._readableState;null===t?(o.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,L(e)}(e,o)):(i||(a=function(e,t){var r;n=t,u.isBuffer(n)||n instanceof d||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(o,t)),a?e.emit("error",a):o.objectMode||t&&t.length>0?("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),n?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):M(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||0!==t.length?M(e,o,t,!1):x(e,o)):M(e,o,t,!1))):n||(o.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(o)}function M(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&L(e)),x(e,t)}Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),y.prototype.destroy=g.destroy,y.prototype._undestroy=g.undestroy,y.prototype._destroy=function(e,t){this.push(null),t(e)},y.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=u.from(e,t),t=""),r=!0),b(this,e,t,!1,r)},y.prototype.unshift=function(e){return b(this,e,null,!0,!1)},y.prototype.isPaused=function(){return!1===this._readableState.flowing},y.prototype.setEncoding=function(e){return m||(m=r(419).StringDecoder),this._readableState.decoder=new m(e),this._readableState.encoding=e,this};function w(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function L(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(f("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(T,e):T(e))}function T(e){f("emit readable"),e.emit("readable"),A(e)}function x(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(k,e,t))}function k(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(f("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function S(e){f("readable nexttick read 0"),e.read(0)}function D(e,t){t.reading||(f("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),A(e),t.flowing&&!t.reading&&e.read(0)}function A(e){var t=e._readableState;for(f("flow",t.flowing);t.flowing&&null!==e.read(););}function E(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,i=r.data;e-=i.length;for(;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),0===(e-=o)){o===a.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(o));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=u.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var a=n.data,o=e>a.length?a.length:e;if(a.copy(r,r.length-e,0,o),0===(e-=o)){o===a.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(o));break}++i}return t.length-=i,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function Y(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(O,t,e))}function O(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function P(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}y.prototype.read=function(e){f("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return f("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?Y(this):L(this),null;if(0===(e=w(e,t))&&t.ended)return 0===t.length&&Y(this),null;var n,i=t.needReadable;return f("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&f("length less than watermark",i=!0),t.ended||t.reading?f("reading or ended",i=!1):i&&(f("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=w(r,t))),null===(n=e>0?E(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&Y(this)),null!==n&&this.emit("data",n),n},y.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(e,t){var r=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,f("pipe count=%d opts=%j",a.pipesCount,t);var l=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?d:y;function u(t,n){f("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,f("cleanup"),e.removeListener("close",_),e.removeListener("finish",v),e.removeListener("drain",c),e.removeListener("error",g),e.removeListener("unpipe",u),r.removeListener("end",d),r.removeListener("end",y),r.removeListener("data",p),h=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}function d(){f("onend"),e.end()}a.endEmitted?i.nextTick(l):r.once("end",l),e.on("unpipe",u);var c=function(e){return function(){var t=e._readableState;f("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,A(e))}}(r);e.on("drain",c);var h=!1;var m=!1;function p(t){f("ondata"),m=!1,!1!==e.write(t)||m||((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==P(a.pipes,e))&&!h&&(f("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,m=!0),r.pause())}function g(t){f("onerror",t),y(),e.removeListener("error",g),0===s(e,"error")&&e.emit("error",t)}function _(){e.removeListener("finish",v),y()}function v(){f("onfinish"),e.removeListener("close",_),y()}function y(){f("unpipe"),r.unpipe(e)}return r.on("data",p),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",g),e.once("close",_),e.once("finish",v),e.emit("pipe",r),a.flowing||(f("pipe resume"),r.resume()),e},y.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)n[a].emit("unpipe",this,r);return this}var o=P(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},y.prototype.on=function(e,t){var r=l.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&L(this):i.nextTick(S,this))}return r},y.prototype.addListener=y.prototype.on,y.prototype.resume=function(){var e=this._readableState;return e.flowing||(f("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(D,e,t))}(this,e)),this},y.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this},y.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(f("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(f("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<_.length;a++)e.on(_[a],this.emit.bind(this,_[a]));return this._read=function(t){f("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(y.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),y._fromList=E}).call(this,r(37),r(95))},function(e,t,r){e.exports=r(416).EventEmitter},function(e,t,r){"use strict";var n=r(382);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,a=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return a||o?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||n.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(n.nextTick(i,r,e),r._writableState&&(r._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,r){"use strict";e.exports=o;var n=r(333),i=Object.create(r(356));function a(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function o(e){if(!(this instanceof o))return new o(e);n.call(this,e),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush((function(t,r){l(e,t,r)})):l(this,null,null)}function l(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=r(342),i.inherits(o,n),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},o.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},o.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},o.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,(function(e){t(e),r.emit("close")}))}},function(e,t,r){var n,i,a=r(420),o=r(421).isArray;function s(e,t,r){return(!r&&e.spaces?"\n":"")+Array(t+1).join(e.spaces)}function l(e,t,r){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,i,n));var a,o,l,u,d=[];for(a in e)e.hasOwnProperty(a)&&null!==e[a]&&void 0!==e[a]&&(u=t.noQuotesForNativeAttributes&&"string"!=typeof e[a]?"":'"',o=(o=""+e[a]).replace(/"/g,"&quot;"),l="attributeNameFn"in t?t.attributeNameFn(a,o,i,n):a,d.push(t.spaces&&t.indentAttributes?s(t,r+1,!1):" "),d.push(l+"="+u+("attributeValueFn"in t?t.attributeValueFn(o,a,i,n):o)+u));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&d.push(s(t,r,!1)),d.join("")}function u(e,t,r){return n=e,i="xml",t.ignoreDeclaration?"":"<?xml"+l(e[t.attributesKey],t,r)+"?>"}function d(e,t,r){if(t.ignoreInstruction)return"";var a;for(a in e)if(e.hasOwnProperty(a))break;var o="instructionNameFn"in t?t.instructionNameFn(a,e[a],i,n):a;if("object"==typeof e[a])return n=e,i=o,"<?"+o+l(e[a][t.attributesKey],t,r)+"?>";var s=e[a]?e[a]:"";return"instructionFn"in t&&(s=t.instructionFn(s,a,i,n)),"<?"+o+(s?" "+s:"")+"?>"}function c(e,t){return t.ignoreComment?"":"\x3c!--"+("commentFn"in t?t.commentFn(e,i,n):e)+"--\x3e"}function h(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,i,n):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function f(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,i,n):e)+">"}function m(e,t){return t.ignoreText?"":(e=(e=(e=""+e).replace(/&amp;/g,"&")).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in t?t.textFn(e,i,n):e)}function p(e,t,r,a){return e.reduce((function(e,o){var u=s(t,r,a&&!e);switch(o.type){case"element":return e+u+function(e,t,r){n=e,i=e.name;var a=[],o="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;a.push("<"+o),e[t.attributesKey]&&a.push(l(e[t.attributesKey],t,r));var s=e[t.elementsKey]&&e[t.elementsKey].length||e[t.attributesKey]&&"preserve"===e[t.attributesKey]["xml:space"];return s||(s="fullTagEmptyElementFn"in t?t.fullTagEmptyElementFn(e.name,e):t.fullTagEmptyElement),s?(a.push(">"),e[t.elementsKey]&&e[t.elementsKey].length&&(a.push(p(e[t.elementsKey],t,r+1)),n=e,i=e.name),a.push(t.spaces&&function(e,t){var r;if(e.elements&&e.elements.length)for(r=0;r<e.elements.length;++r)switch(e.elements[r][t.typeKey]){case"text":if(t.indentText)return!0;break;case"cdata":if(t.indentCdata)return!0;break;case"instruction":if(t.indentInstruction)return!0;break;case"doctype":case"comment":case"element":default:return!0}return!1}(e,t)?"\n"+Array(r+1).join(t.spaces):""),a.push("</"+o+">")):a.push("/>"),a.join("")}(o,t,r);case"comment":return e+u+c(o[t.commentKey],t);case"doctype":return e+u+f(o[t.doctypeKey],t);case"cdata":return e+(t.indentCdata?u:"")+h(o[t.cdataKey],t);case"text":return e+(t.indentText?u:"")+m(o[t.textKey],t);case"instruction":var g={};return g[o[t.nameKey]]=o[t.attributesKey]?o:o[t.instructionKey],e+(t.indentInstruction?u:"")+d(g,t,r)}}),"")}function g(e,t,r){var n;for(n in e)if(e.hasOwnProperty(n))switch(n){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||r)return!0;break;case t.cdataKey:if(t.indentCdata||r)return!0;break;case t.instructionKey:if(t.indentInstruction||r)return!0;break;case t.doctypeKey:case t.commentKey:default:return!0}return!1}function _(e,t,r,a,o){n=e,i=t;var u="elementNameFn"in r?r.elementNameFn(t,e):t;if(null==e||""===e)return"fullTagEmptyElementFn"in r&&r.fullTagEmptyElementFn(t,e)||r.fullTagEmptyElement?"<"+u+"></"+u+">":"<"+u+"/>";var d=[];if(t){if(d.push("<"+u),"object"!=typeof e)return d.push(">"+m(e,r)+"</"+u+">"),d.join("");e[r.attributesKey]&&d.push(l(e[r.attributesKey],r,a));var c=g(e,r,!0)||e[r.attributesKey]&&"preserve"===e[r.attributesKey]["xml:space"];if(c||(c="fullTagEmptyElementFn"in r?r.fullTagEmptyElementFn(t,e):r.fullTagEmptyElement),!c)return d.push("/>"),d.join("");d.push(">")}return d.push(v(e,r,a+1,!1)),n=e,i=t,t&&d.push((o?s(r,a,!1):"")+"</"+u+">"),d.join("")}function v(e,t,r,n){var i,a,l,p=[];for(a in e)if(e.hasOwnProperty(a))for(l=o(e[a])?e[a]:[e[a]],i=0;i<l.length;++i){switch(a){case t.declarationKey:p.push(u(l[i],t,r));break;case t.instructionKey:p.push((t.indentInstruction?s(t,r,n):"")+d(l[i],t,r));break;case t.attributesKey:case t.parentKey:break;case t.textKey:p.push((t.indentText?s(t,r,n):"")+m(l[i],t));break;case t.cdataKey:p.push((t.indentCdata?s(t,r,n):"")+h(l[i],t));break;case t.doctypeKey:p.push(s(t,r,n)+f(l[i],t));break;case t.commentKey:p.push(s(t,r,n)+c(l[i],t));break;default:p.push(s(t,r,n)+_(l[i],a,t,r,g(l[i],t)))}n=n&&!p.length}return p.join("")}e.exports=function(e,t){t=function(e){var t=a.copyOptions(e);return a.ensureFlagExists("ignoreDeclaration",t),a.ensureFlagExists("ignoreInstruction",t),a.ensureFlagExists("ignoreAttributes",t),a.ensureFlagExists("ignoreText",t),a.ensureFlagExists("ignoreComment",t),a.ensureFlagExists("ignoreCdata",t),a.ensureFlagExists("ignoreDoctype",t),a.ensureFlagExists("compact",t),a.ensureFlagExists("indentText",t),a.ensureFlagExists("indentCdata",t),a.ensureFlagExists("indentAttributes",t),a.ensureFlagExists("indentInstruction",t),a.ensureFlagExists("fullTagEmptyElement",t),a.ensureFlagExists("noQuotesForNativeAttributes",t),a.ensureSpacesExists(t),"number"==typeof t.spaces&&(t.spaces=Array(t.spaces+1).join(" ")),a.ensureKeyExists("declaration",t),a.ensureKeyExists("instruction",t),a.ensureKeyExists("attributes",t),a.ensureKeyExists("text",t),a.ensureKeyExists("comment",t),a.ensureKeyExists("cdata",t),a.ensureKeyExists("doctype",t),a.ensureKeyExists("type",t),a.ensureKeyExists("name",t),a.ensureKeyExists("elements",t),a.checkFnExists("doctype",t),a.checkFnExists("instruction",t),a.checkFnExists("cdata",t),a.checkFnExists("comment",t),a.checkFnExists("text",t),a.checkFnExists("instructionName",t),a.checkFnExists("elementName",t),a.checkFnExists("attributeName",t),a.checkFnExists("attributeValue",t),a.checkFnExists("attributes",t),a.checkFnExists("fullTagEmptyElement",t),t}(t);var r=[];return n=e,i="_root_",t.compact?r.push(v(e,t,0,!0)):(e[t.declarationKey]&&r.push(u(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&r.push(p(e[t.elementsKey],t,0,!r.length))),r.join("")}},function(e,t,r){r(613),r(615),r(616),r(617),r(618),r(619),r(620),r(621),r(622),r(623),r(624),r(625),r(626),r(627),r(628),r(629),r(630),r(631),r(632),r(633),r(634),r(635),r(636),r(637),r(638),r(639),r(640),r(641),r(643),r(644),r(645),r(366),r(646),r(647),r(648),r(649),r(650),r(651),r(652),r(653),r(654),r(655),r(656),r(657),r(658),r(659),r(660),r(662),r(663),r(664),r(665),r(666),r(667),r(668),r(669),r(671),r(672),r(674),r(675),r(676),r(677),r(678),r(679),r(680),r(681),r(682),r(683),r(684),r(685),r(686),r(687),r(688),r(689),r(690),r(692),r(693),r(694),r(695),r(696),r(697),r(698),r(699),r(700),r(701),r(702),r(703),r(704),r(706),r(707),r(708),r(709),r(710),r(711),r(712),r(713),r(714),r(715),r(716),r(717),r(718),r(719),r(720),r(721),r(722),r(723),r(724),r(725),r(726),r(727),r(728),r(729),r(730),r(731),r(732),r(733),r(734),r(735),r(736),r(737),r(738),r(739),r(741),r(742),r(743),r(744),r(749),r(750),r(751),r(752),r(753),r(754),r(755),r(756),r(757),r(758),r(759),r(760),r(761),r(762),r(763),r(764),r(765),r(766),r(767),r(411),r(768),r(769),r(770),r(771),r(772),r(773),r(774),r(775),r(776),r(777),r(458),r(778),r(779),r(780),r(781),r(782),r(783),r(784),r(785),r(786),r(787),r(788),r(789),r(790),r(791),r(792),r(793),r(794),r(795),r(796),r(797),r(798),r(799),r(800),r(801),r(802),r(803),r(804),r(805),r(806),r(808),r(809),r(810),r(811),r(812),r(813),r(814),r(815),r(816),r(817),r(818),r(819),r(820),r(823),r(824),r(825),r(826),r(827),r(828),r(829),r(830),r(831),r(832),r(833),r(834),r(835),r(836),r(837),r(838),r(839),r(840),r(841),r(842),r(843),r(844),r(845),r(846),r(847),r(848),r(849),r(850),r(851),r(852),r(854),r(466),e.exports=r(430)},function(e,t,r){var n=function(e){"use strict";var t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",o=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof c?t:c,a=Object.create(i.prototype),o=new L(n||[]);return a._invoke=function(e,t,r){var n="suspendedStart";return function(i,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw a;return x()}for(r.method=i,r.arg=a;;){var o=r.delegate;if(o){var s=b(o,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(e,t,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(e,r,o),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function c(){}function h(){}function f(){}var m={};s(m,i,(function(){return this}));var p=Object.getPrototypeOf,g=p&&p(p(T([])));g&&g!==t&&r.call(g,i)&&(m=g);var _=f.prototype=c.prototype=Object.create(m);function v(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function y(e,t){var n;this._invoke=function(i,a){function o(){return new t((function(n,o){!function n(i,a,o,s){var l=u(e[i],e,a);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==typeof c&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(c).then((function(e){d.value=e,o(d)}),(function(e){return n("throw",e,o,s)}))}s(l.arg)}(i,a,n,o)}))}return n=n?n.then(o,o):o()}}function b(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,b(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function T(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:x}}function x(){return{value:void 0,done:!0}}return h.prototype=f,s(_,"constructor",f),s(f,"constructor",h),h.displayName=s(f,o,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,s(e,o,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},v(y.prototype),s(y.prototype,a,(function(){return this})),e.AsyncIterator=y,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new y(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},v(_),s(_,o,"Generator"),s(_,i,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=T,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return o.type="throw",o.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}(e.exports);try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},function(e,t,r){var n;!function(i){var a=/^\s+/,o=/\s+$/,s=0,l=i.round,u=i.min,d=i.max,c=i.random;function h(e,t){if(t=t||{},(e=e||"")instanceof h)return e;if(!(this instanceof h))return new h(e,t);var r=function(e){var t={r:0,g:0,b:0},r=1,n=null,s=null,l=null,c=!1,h=!1;"string"==typeof e&&(e=function(e){e=e.replace(a,"").replace(o,"").toLowerCase();var t,r=!1;if(E[e])e=E[e],r=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=W.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=W.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=W.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=W.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=W.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=W.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=W.hex8.exec(e))return{r:C(t[1]),g:C(t[2]),b:C(t[3]),a:N(t[4]),format:r?"name":"hex8"};if(t=W.hex6.exec(e))return{r:C(t[1]),g:C(t[2]),b:C(t[3]),format:r?"name":"hex"};if(t=W.hex4.exec(e))return{r:C(t[1]+""+t[1]),g:C(t[2]+""+t[2]),b:C(t[3]+""+t[3]),a:N(t[4]+""+t[4]),format:r?"name":"hex8"};if(t=W.hex3.exec(e))return{r:C(t[1]+""+t[1]),g:C(t[2]+""+t[2]),b:C(t[3]+""+t[3]),format:r?"name":"hex"};return!1}(e));"object"==typeof e&&(z(e.r)&&z(e.g)&&z(e.b)?(f=e.r,m=e.g,p=e.b,t={r:255*P(f,255),g:255*P(m,255),b:255*P(p,255)},c=!0,h="%"===String(e.r).substr(-1)?"prgb":"rgb"):z(e.h)&&z(e.s)&&z(e.v)?(n=F(e.s),s=F(e.v),t=function(e,t,r){e=6*P(e,360),t=P(t,100),r=P(r,100);var n=i.floor(e),a=e-n,o=r*(1-t),s=r*(1-a*t),l=r*(1-(1-a)*t),u=n%6;return{r:255*[r,s,o,o,l,r][u],g:255*[l,r,r,s,o,o][u],b:255*[o,o,l,r,r,s][u]}}(e.h,n,s),c=!0,h="hsv"):z(e.h)&&z(e.s)&&z(e.l)&&(n=F(e.s),l=F(e.l),t=function(e,t,r){var n,i,a;function o(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=P(e,360),t=P(t,100),r=P(r,100),0===t)n=i=a=r;else{var s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;n=o(l,s,e+1/3),i=o(l,s,e),a=o(l,s,e-1/3)}return{r:255*n,g:255*i,b:255*a}}(e.h,n,l),c=!0,h="hsl"),e.hasOwnProperty("a")&&(r=e.a));var f,m,p;return r=O(r),{ok:c,format:e.format||h,r:u(255,d(t.r,0)),g:u(255,d(t.g,0)),b:u(255,d(t.b,0)),a:r}}(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=l(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=r.ok,this._tc_id=s++}function f(e,t,r){e=P(e,255),t=P(t,255),r=P(r,255);var n,i,a=d(e,t,r),o=u(e,t,r),s=(a+o)/2;if(a==o)n=i=0;else{var l=a-o;switch(i=s>.5?l/(2-a-o):l/(a+o),a){case e:n=(t-r)/l+(t<r?6:0);break;case t:n=(r-e)/l+2;break;case r:n=(e-t)/l+4}n/=6}return{h:n,s:i,l:s}}function m(e,t,r){e=P(e,255),t=P(t,255),r=P(r,255);var n,i,a=d(e,t,r),o=u(e,t,r),s=a,l=a-o;if(i=0===a?0:l/a,a==o)n=0;else{switch(a){case e:n=(t-r)/l+(t<r?6:0);break;case t:n=(r-e)/l+2;break;case r:n=(e-t)/l+4}n/=6}return{h:n,s:i,v:s}}function p(e,t,r,n){var i=[I(l(e).toString(16)),I(l(t).toString(16)),I(l(r).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function g(e,t,r,n){return[I(j(n)),I(l(e).toString(16)),I(l(t).toString(16)),I(l(r).toString(16))].join("")}function _(e,t){t=0===t?0:t||10;var r=h(e).toHsl();return r.s-=t/100,r.s=R(r.s),h(r)}function v(e,t){t=0===t?0:t||10;var r=h(e).toHsl();return r.s+=t/100,r.s=R(r.s),h(r)}function y(e){return h(e).desaturate(100)}function b(e,t){t=0===t?0:t||10;var r=h(e).toHsl();return r.l+=t/100,r.l=R(r.l),h(r)}function M(e,t){t=0===t?0:t||10;var r=h(e).toRgb();return r.r=d(0,u(255,r.r-l(-t/100*255))),r.g=d(0,u(255,r.g-l(-t/100*255))),r.b=d(0,u(255,r.b-l(-t/100*255))),h(r)}function w(e,t){t=0===t?0:t||10;var r=h(e).toHsl();return r.l-=t/100,r.l=R(r.l),h(r)}function L(e,t){var r=h(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,h(r)}function T(e){var t=h(e).toHsl();return t.h=(t.h+180)%360,h(t)}function x(e){var t=h(e).toHsl(),r=t.h;return[h(e),h({h:(r+120)%360,s:t.s,l:t.l}),h({h:(r+240)%360,s:t.s,l:t.l})]}function k(e){var t=h(e).toHsl(),r=t.h;return[h(e),h({h:(r+90)%360,s:t.s,l:t.l}),h({h:(r+180)%360,s:t.s,l:t.l}),h({h:(r+270)%360,s:t.s,l:t.l})]}function S(e){var t=h(e).toHsl(),r=t.h;return[h(e),h({h:(r+72)%360,s:t.s,l:t.l}),h({h:(r+216)%360,s:t.s,l:t.l})]}function D(e,t,r){t=t||6,r=r||30;var n=h(e).toHsl(),i=360/r,a=[h(e)];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,a.push(h(n));return a}function A(e,t){t=t||6;for(var r=h(e).toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/t;t--;)o.push(h({h:n,s:i,v:a})),a=(a+s)%1;return o}h.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n=this.toRgb();return e=n.r/255,t=n.g/255,r=n.b/255,.2126*(e<=.03928?e/12.92:i.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:i.pow((t+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:i.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=O(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=m(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=m(this._r,this._g,this._b),t=l(360*e.h),r=l(100*e.s),n=l(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=f(this._r,this._g,this._b),t=l(360*e.h),r=l(100*e.s),n=l(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return p(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,r,n,i){var a=[I(l(e).toString(16)),I(l(t).toString(16)),I(l(r).toString(16)),I(j(n))];if(i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*P(this._r,255))+"%",g:l(100*P(this._g,255))+"%",b:l(100*P(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*P(this._r,255))+"%, "+l(100*P(this._g,255))+"%, "+l(100*P(this._b,255))+"%)":"rgba("+l(100*P(this._r,255))+"%, "+l(100*P(this._g,255))+"%, "+l(100*P(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(Y[p(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+g(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var i=h(e);r="#"+g(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return h(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(b,arguments)},brighten:function(){return this._applyModification(M,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(_,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(y,arguments)},spin:function(){return this._applyModification(L,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(D,arguments)},complement:function(){return this._applyCombination(T,arguments)},monochromatic:function(){return this._applyCombination(A,arguments)},splitcomplement:function(){return this._applyCombination(S,arguments)},triad:function(){return this._applyCombination(x,arguments)},tetrad:function(){return this._applyCombination(k,arguments)}},h.fromRatio=function(e,t){if("object"==typeof e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:F(e[n]));e=r}return h(e,t)},h.equals=function(e,t){return!(!e||!t)&&h(e).toRgbString()==h(t).toRgbString()},h.random=function(){return h.fromRatio({r:c(),g:c(),b:c()})},h.mix=function(e,t,r){r=0===r?0:r||50;var n=h(e).toRgb(),i=h(t).toRgb(),a=r/100;return h({r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a})},h.readability=function(e,t){var r=h(e),n=h(t);return(i.max(r.getLuminance(),n.getLuminance())+.05)/(i.min(r.getLuminance(),n.getLuminance())+.05)},h.isReadable=function(e,t,r){var n,i,a=h.readability(e,t);switch(i=!1,(n=function(e){var t,r;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==r&&"large"!==r&&(r="small");return{level:t,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":i=a>=4.5;break;case"AAlarge":i=a>=3;break;case"AAAsmall":i=a>=7}return i},h.mostReadable=function(e,t,r){var n,i,a,o,s=null,l=0;i=(r=r||{}).includeFallbackColors,a=r.level,o=r.size;for(var u=0;u<t.length;u++)(n=h.readability(e,t[u]))>l&&(l=n,s=h(t[u]));return h.isReadable(e,s,{level:a,size:o})||!i?s:(r.includeFallbackColors=!1,h.mostReadable(e,["#fff","#000"],r))};var E=h.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Y=h.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(E);function O(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function P(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=u(t,d(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),i.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function R(e){return u(1,d(0,e))}function C(e){return parseInt(e,16)}function I(e){return 1==e.length?"0"+e:""+e}function F(e){return e<=1&&(e=100*e+"%"),e}function j(e){return i.round(255*parseFloat(e)).toString(16)}function N(e){return C(e)/255}var H,B,U,W=(B="[\\s|\\(]+("+(H="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?",U="[\\s|\\(]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?",{CSS_UNIT:new RegExp(H),rgb:new RegExp("rgb"+B),rgba:new RegExp("rgba"+U),hsl:new RegExp("hsl"+B),hsla:new RegExp("hsla"+U),hsv:new RegExp("hsv"+B),hsva:new RegExp("hsva"+U),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function z(e){return!!W.CSS_UNIT.exec(e)}e.exports?e.exports=h:void 0===(n=function(){return h}.call(t,r,t,e))||(e.exports=n)}(Math)},function(e,t,r){var n=r(602),i=r(871),a=r(607),o=r(872);e.exports={xml2js:n,xml2json:i,js2xml:a,json2xml:o}},,function(e,t,r){"use strict";var n=r(15),i=r(55),a=r(286),o=r(300),s=r(89),l=r(386),u=r(44),d=r(148),c=r(330),h=r(80),f=r(335),m=r(85),p=r(143),g=r(297),_=r(322),v=r(96),y=r(313),b=r(304),M=r(348),w=r(324),L=r(395),T=r(393),x=r(279),k=r(121),S=r(361),D=r(280),A=r(281),E=r(362),Y=r(363),O=r(345),P=r(344),R=r(87),C=r(429),I=r(287),F=r(305),j=r(228),N=r(230).forEach,H=Y("hidden"),B=R("toPrimitive"),U=j.set,W=j.getterFor("Symbol"),z=Object.prototype,V=i.Symbol,G=a("JSON","stringify"),K=x.f,q=k.f,J=L.f,X=S.f,$=E("symbols"),Z=E("op-symbols"),Q=E("string-to-symbol-registry"),ee=E("symbol-to-string-registry"),te=E("wks"),re=i.QObject,ne=!re||!re.prototype||!re.prototype.findChild,ie=s&&u((function(){return 7!=b(q({},"a",{get:function(){return q(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=K(z,t);n&&delete z[t],q(e,t,r),n&&e!==z&&q(z,t,n)}:q,ae=function(e,t){var r=$[e]=b(V.prototype);return U(r,{type:"Symbol",tag:e,description:t}),s||(r.description=t),r},oe=function(e,t,r){e===z&&oe(Z,t,r),m(e);var n=_(t);return m(r),d($,n)?(r.enumerable?(d(e,H)&&e[H][n]&&(e[H][n]=!1),r=b(r,{enumerable:y(0,!1)})):(d(e,H)||q(e,H,y(1,{})),e[H][n]=!0),ie(e,n,r)):q(e,n,r)},se=function(e,t){m(e);var r=g(t),n=M(r).concat(ce(r));return N(n,(function(t){s&&!le.call(r,t)||oe(e,t,r[t])})),e},le=function(e){var t=_(e),r=X.call(this,t);return!(this===z&&d($,t)&&!d(Z,t))&&(!(r||!d(this,t)||!d($,t)||d(this,H)&&this[H][t])||r)},ue=function(e,t){var r=g(e),n=_(t);if(r!==z||!d($,n)||d(Z,n)){var i=K(r,n);return!i||!d($,n)||d(r,H)&&r[H][n]||(i.enumerable=!0),i}},de=function(e){var t=J(g(e)),r=[];return N(t,(function(e){d($,e)||d(O,e)||r.push(e)})),r},ce=function(e){var t=e===z,r=J(t?Z:g(e)),n=[];return N(r,(function(e){!d($,e)||t&&!d(z,e)||n.push($[e])})),n};(l||(A((V=function(){if(this instanceof V)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?v(arguments[0]):void 0,t=P(e),r=function(e){this===z&&r.call(Z,e),d(this,H)&&d(this[H],t)&&(this[H][t]=!1),ie(this,t,y(1,e))};return s&&ne&&ie(z,t,{configurable:!0,set:r}),ae(t,e)}).prototype,"toString",(function(){return W(this).tag})),A(V,"withoutSetter",(function(e){return ae(P(e),e)})),S.f=le,k.f=oe,x.f=ue,w.f=L.f=de,T.f=ce,C.f=function(e){return ae(R(e),e)},s&&(q(V.prototype,"description",{configurable:!0,get:function(){return W(this).description}}),o||A(z,"propertyIsEnumerable",le,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:V}),N(M(te),(function(e){I(e)})),n({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=v(e);if(d(Q,t))return Q[t];var r=V(t);return Q[t]=r,ee[r]=t,r},keyFor:function(e){if(!f(e))throw TypeError(e+" is not a symbol");if(d(ee,e))return ee[e]},useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),n({target:"Object",stat:!0,forced:!l,sham:!s},{create:function(e,t){return void 0===t?b(e):se(b(e),t)},defineProperty:oe,defineProperties:se,getOwnPropertyDescriptor:ue}),n({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:de,getOwnPropertySymbols:ce}),n({target:"Object",stat:!0,forced:u((function(){T.f(1)}))},{getOwnPropertySymbols:function(e){return T.f(p(e))}}),G)&&n({target:"JSON",stat:!0,forced:!l||u((function(){var e=V();return"[null]"!=G([e])||"{}"!=G({a:e})||"{}"!=G(Object(e))}))},{stringify:function(e,t,r){for(var n,i=[e],a=1;arguments.length>a;)i.push(arguments[a++]);if(n=t,(h(t)||void 0!==e)&&!f(e))return c(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!f(t))return t}),i[1]=t,G.apply(null,i)}});V.prototype[B]||D(V.prototype,B,V.prototype.valueOf),F(V,"Symbol"),O[H]=!0},function(e,t,r){var n=r(80),i=r(330),a=r(87)("species");e.exports=function(e){var t;return i(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)?n(t)&&null===(t=t[a])&&(t=void 0):t=void 0),void 0===t?Array:t}},function(e,t,r){"use strict";var n=r(15),i=r(89),a=r(55),o=r(148),s=r(80),l=r(121).f,u=r(426),d=a.Symbol;if(i&&"function"==typeof d&&(!("description"in d.prototype)||void 0!==d().description)){var c={},h=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof h?new d(e):void 0===e?d():d(e);return""===e&&(c[t]=!0),t};u(h,d);var f=h.prototype=d.prototype;f.constructor=h;var m=f.toString,p="Symbol(test)"==String(d("test")),g=/^Symbol\((.*)\)[^)]+$/;l(f,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=m.call(e);if(o(c,e))return"";var r=p?t.slice(7,-1):t.replace(g,"$1");return""===r?void 0:r}}),n({global:!0,forced:!0},{Symbol:h})}},function(e,t,r){r(287)("asyncIterator")},function(e,t,r){r(287)("hasInstance")},function(e,t,r){r(287)("isConcatSpreadable")},function(e,t,r){r(287)("iterator")},function(e,t,r){r(287)("match")},function(e,t,r){r(287)("matchAll")},function(e,t,r){r(287)("replace")},function(e,t,r){r(287)("search")},function(e,t,r){r(287)("species")},function(e,t,r){r(287)("split")},function(e,t,r){r(287)("toPrimitive")},function(e,t,r){r(287)("toStringTag")},function(e,t,r){r(287)("unscopables")},function(e,t,r){"use strict";var n=r(15),i=r(301),a=r(316),o=r(304),s=r(280),l=r(313),u=r(327),d=r(96),c=function(e,t){var r=this;if(!(r instanceof c))return new c(e,t);a&&(r=a(new Error(void 0),i(r))),void 0!==t&&s(r,"message",d(t));var n=[];return u(e,n.push,{that:n}),s(r,"errors",n),r};c.prototype=o(Error.prototype,{constructor:l(5,c),message:l(5,""),name:l(5,"AggregateError")}),n({global:!0},{AggregateError:c})},function(e,t,r){"use strict";var n=r(15),i=r(143),a=r(86),o=r(229),s=r(317);n({target:"Array",proto:!0},{at:function(e){var t=i(this),r=a(t.length),n=o(e),s=n>=0?n:r+n;return s<0||s>=r?void 0:t[s]}}),s("at")},function(e,t,r){"use strict";var n=r(15),i=r(44),a=r(330),o=r(80),s=r(143),l=r(86),u=r(331),d=r(349),c=r(353),h=r(87),f=r(323),m=h("isConcatSpreadable"),p=f>=51||!i((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),g=c("concat"),_=function(e){if(!o(e))return!1;var t=e[m];return void 0!==t?!!t:a(e)};n({target:"Array",proto:!0,forced:!p||!g},{concat:function(e){var t,r,n,i,a,o=s(this),c=d(o,0),h=0;for(t=-1,n=arguments.length;t<n;t++)if(_(a=-1===t?o:arguments[t])){if(h+(i=l(a.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<i;r++,h++)r in a&&u(c,h,a[r])}else{if(h>=9007199254740991)throw TypeError("Maximum allowed index exceeded");u(c,h++,a)}return c.length=h,c}})},function(e,t,r){var n=r(15),i=r(433),a=r(317);n({target:"Array",proto:!0},{copyWithin:i}),a("copyWithin")},function(e,t,r){"use strict";var n=r(15),i=r(230).every;n({target:"Array",proto:!0,forced:!r(318)("every")},{every:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){var n=r(15),i=r(399),a=r(317);n({target:"Array",proto:!0},{fill:i}),a("fill")},function(e,t,r){"use strict";var n=r(15),i=r(230).filter;n({target:"Array",proto:!0,forced:!r(353)("filter")},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){"use strict";var n=r(15),i=r(230).find,a=r(317),o=!0;"find"in[]&&Array(1).find((function(){o=!1})),n({target:"Array",proto:!0,forced:o},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("find")},function(e,t,r){"use strict";var n=r(15),i=r(230).findIndex,a=r(317),o=!0;"findIndex"in[]&&Array(1).findIndex((function(){o=!1})),n({target:"Array",proto:!0,forced:o},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("findIndex")},function(e,t,r){"use strict";var n=r(15),i=r(434),a=r(143),o=r(86),s=r(229),l=r(349);n({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=a(this),r=o(t.length),n=l(t,0);return n.length=i(n,t,t,r,0,void 0===e?1:s(e)),n}})},function(e,t,r){"use strict";var n=r(15),i=r(434),a=r(143),o=r(86),s=r(282),l=r(349);n({target:"Array",proto:!0},{flatMap:function(e){var t,r=a(this),n=o(r.length);return s(e),(t=l(r,0)).length=i(t,r,r,n,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},function(e,t,r){"use strict";var n=r(15),i=r(435);n({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},function(e,t,r){var n=r(15),i=r(436);n({target:"Array",stat:!0,forced:!r(365)((function(e){Array.from(e)}))},{from:i})},function(e,t,r){var n=r(85),i=r(432);e.exports=function(e,t,r,a){try{return a?t(n(r)[0],r[1]):t(r)}catch(t){i(e,"throw",t)}}},function(e,t,r){"use strict";var n=r(15),i=r(346).includes,a=r(317);n({target:"Array",proto:!0},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},function(e,t,r){"use strict";var n=r(15),i=r(346).indexOf,a=r(318),o=[].indexOf,s=!!o&&1/[1].indexOf(1,-0)<0,l=a("indexOf");n({target:"Array",proto:!0,forced:s||!l},{indexOf:function(e){return s?o.apply(this,arguments)||0:i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){r(15)({target:"Array",stat:!0},{isArray:r(330)})},function(e,t,r){"use strict";var n=r(15),i=r(343),a=r(297),o=r(318),s=[].join,l=i!=Object,u=o("join",",");n({target:"Array",proto:!0,forced:l||!u},{join:function(e){return s.call(a(this),void 0===e?",":e)}})},function(e,t,r){var n=r(15),i=r(438);n({target:"Array",proto:!0,forced:i!==[].lastIndexOf},{lastIndexOf:i})},function(e,t,r){"use strict";var n=r(15),i=r(230).map;n({target:"Array",proto:!0,forced:!r(353)("map")},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){"use strict";var n=r(15),i=r(44),a=r(331);n({target:"Array",stat:!0,forced:i((function(){function e(){}return!(Array.of.call(e)instanceof e)}))},{of:function(){for(var e=0,t=arguments.length,r=new("function"==typeof this?this:Array)(t);t>e;)a(r,e,arguments[e++]);return r.length=t,r}})},function(e,t,r){"use strict";var n=r(15),i=r(367).left,a=r(318),o=r(323),s=r(336);n({target:"Array",proto:!0,forced:!a("reduce")||!s&&o>79&&o<83},{reduce:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){"use strict";var n=r(15),i=r(367).right,a=r(318),o=r(323),s=r(336);n({target:"Array",proto:!0,forced:!a("reduceRight")||!s&&o>79&&o<83},{reduceRight:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){"use strict";var n=r(15),i=r(330),a=[].reverse,o=[1,2];n({target:"Array",proto:!0,forced:String(o)===String(o.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),a.call(this)}})},function(e,t,r){"use strict";var n=r(15),i=r(80),a=r(330),o=r(325),s=r(86),l=r(297),u=r(331),d=r(87),c=r(353)("slice"),h=d("species"),f=[].slice,m=Math.max;n({target:"Array",proto:!0,forced:!c},{slice:function(e,t){var r,n,d,c=l(this),p=s(c.length),g=o(e,p),_=o(void 0===t?p:t,p);if(a(c)&&("function"!=typeof(r=c.constructor)||r!==Array&&!a(r.prototype)?i(r)&&null===(r=r[h])&&(r=void 0):r=void 0,r===Array||void 0===r))return f.call(c,g,_);for(n=new(void 0===r?Array:r)(m(_-g,0)),d=0;g<_;g++,d++)g in c&&u(n,d,c[g]);return n.length=d,n}})},function(e,t,r){"use strict";var n=r(15),i=r(230).some;n({target:"Array",proto:!0,forced:!r(318)("some")},{some:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){"use strict";var n=r(15),i=r(282),a=r(143),o=r(86),s=r(96),l=r(44),u=r(439),d=r(318),c=r(440),h=r(441),f=r(323),m=r(402),p=[],g=p.sort,_=l((function(){p.sort(void 0)})),v=l((function(){p.sort(null)})),y=d("sort"),b=!l((function(){if(f)return f<70;if(!(c&&c>3)){if(h)return!0;if(m)return m<603;var e,t,r,n,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)p.push({k:t+n,v:r})}for(p.sort((function(e,t){return t.v-e.v})),n=0;n<p.length;n++)t=p[n].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}}));n({target:"Array",proto:!0,forced:_||!v||!y||!b},{sort:function(e){void 0!==e&&i(e);var t=a(this);if(b)return void 0===e?g.call(t):g.call(t,e);var r,n,l=[],d=o(t.length);for(n=0;n<d;n++)n in t&&l.push(t[n]);for(r=(l=u(l,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:s(t)>s(r)?1:-1}}(e))).length,n=0;n<r;)t[n]=l[n++];for(;n<d;)delete t[n++];return t}})},function(e,t,r){r(337)("Array")},function(e,t,r){"use strict";var n=r(15),i=r(325),a=r(229),o=r(86),s=r(143),l=r(349),u=r(331),d=r(353)("splice"),c=Math.max,h=Math.min;n({target:"Array",proto:!0,forced:!d},{splice:function(e,t){var r,n,d,f,m,p,g=s(this),_=o(g.length),v=i(e,_),y=arguments.length;if(0===y?r=n=0:1===y?(r=0,n=_-v):(r=y-2,n=h(c(a(t),0),_-v)),_+r-n>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(d=l(g,n),f=0;f<n;f++)(m=v+f)in g&&u(d,f,g[m]);if(d.length=n,r<n){for(f=v;f<_-n;f++)p=f+r,(m=f+n)in g?g[p]=g[m]:delete g[p];for(f=_;f>_-n+r;f--)delete g[f-1]}else if(r>n)for(f=_-n;f>v;f--)p=f+r-1,(m=f+n-1)in g?g[p]=g[m]:delete g[p];for(f=0;f<r;f++)g[f+v]=arguments[f+2];return g.length=_-n+r,d}})},function(e,t,r){r(317)("flat")},function(e,t,r){r(317)("flatMap")},function(e,t,r){"use strict";var n=r(15),i=r(55),a=r(368),o=r(337),s=a.ArrayBuffer;n({global:!0,forced:i.ArrayBuffer!==s},{ArrayBuffer:s}),o("ArrayBuffer")},function(e,t){var r=Math.abs,n=Math.pow,i=Math.floor,a=Math.log,o=Math.LN2;e.exports={pack:function(e,t,s){var l,u,d,c=new Array(s),h=8*s-t-1,f=(1<<h)-1,m=f>>1,p=23===t?n(2,-24)-n(2,-77):0,g=e<0||0===e&&1/e<0?1:0,_=0;for((e=r(e))!=e||e===1/0?(u=e!=e?1:0,l=f):(l=i(a(e)/o),e*(d=n(2,-l))<1&&(l--,d*=2),(e+=l+m>=1?p/d:p*n(2,1-m))*d>=2&&(l++,d/=2),l+m>=f?(u=0,l=f):l+m>=1?(u=(e*d-1)*n(2,t),l+=m):(u=e*n(2,m-1)*n(2,t),l=0));t>=8;c[_++]=255&u,u/=256,t-=8);for(l=l<<t|u,h+=t;h>0;c[_++]=255&l,l/=256,h-=8);return c[--_]|=128*g,c},unpack:function(e,t){var r,i=e.length,a=8*i-t-1,o=(1<<a)-1,s=o>>1,l=a-7,u=i-1,d=e[u--],c=127&d;for(d>>=7;l>0;c=256*c+e[u],u--,l-=8);for(r=c&(1<<-l)-1,c>>=-l,l+=t;l>0;r=256*r+e[u],u--,l-=8);if(0===c)c=1-s;else{if(c===o)return r?NaN:d?-1/0:1/0;r+=n(2,t),c-=s}return(d?-1:1)*r*n(2,c-t)}}},function(e,t,r){var n=r(15),i=r(93);n({target:"ArrayBuffer",stat:!0,forced:!i.NATIVE_ARRAY_BUFFER_VIEWS},{isView:i.isView})},function(e,t,r){"use strict";var n=r(15),i=r(44),a=r(368),o=r(85),s=r(325),l=r(86),u=r(339),d=a.ArrayBuffer,c=a.DataView,h=d.prototype.slice;n({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:i((function(){return!new d(2).slice(1,void 0).byteLength}))},{slice:function(e,t){if(void 0!==h&&void 0===t)return h.call(o(this),e);for(var r=o(this).byteLength,n=s(e,r),i=s(void 0===t?r:t,r),a=new(u(this,d))(l(i-n)),f=new c(this),m=new c(a),p=0;n<i;)m.setUint8(p++,f.getUint8(n++));return a}})},function(e,t,r){var n=r(15),i=r(368);n({global:!0,forced:!r(403)},{DataView:i.DataView})},function(e,t,r){"use strict";var n=r(15),i=r(44)((function(){return 120!==new Date(16e11).getYear()})),a=Date.prototype.getFullYear;n({target:"Date",proto:!0,forced:i},{getYear:function(){return a.call(this)-1900}})},function(e,t,r){r(15)({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},function(e,t,r){"use strict";var n=r(15),i=r(229),a=Date.prototype.getTime,o=Date.prototype.setFullYear;n({target:"Date",proto:!0},{setYear:function(e){a.call(this);var t=i(e),r=0<=t&&t<=99?t+1900:t;return o.call(this,r)}})},function(e,t,r){r(15)({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString})},function(e,t,r){var n=r(15),i=r(670);n({target:"Date",proto:!0,forced:Date.prototype.toISOString!==i},{toISOString:i})},function(e,t,r){"use strict";var n=r(44),i=r(404).start,a=Math.abs,o=Date.prototype,s=o.getTime,l=o.toISOString;e.exports=n((function(){return"0385-07-25T07:06:39.999Z"!=l.call(new Date(-50000000000001))}))||!n((function(){l.call(new Date(NaN))}))?function(){if(!isFinite(s.call(this)))throw RangeError("Invalid time value");var e=this.getUTCFullYear(),t=this.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+i(a(e),r?6:4,0)+"-"+i(this.getUTCMonth()+1,2,0)+"-"+i(this.getUTCDate(),2,0)+"T"+i(this.getUTCHours(),2,0)+":"+i(this.getUTCMinutes(),2,0)+":"+i(this.getUTCSeconds(),2,0)+"."+i(t,3,0)+"Z"}:l},function(e,t,r){"use strict";var n=r(15),i=r(44),a=r(143),o=r(385);n({target:"Date",proto:!0,forced:i((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(e){var t=a(this),r=o(t,"number");return"number"!=typeof r||isFinite(r)?t.toISOString():null}})},function(e,t,r){var n=r(280),i=r(673),a=r(87)("toPrimitive"),o=Date.prototype;a in o||n(o,a,i)},function(e,t,r){"use strict";var n=r(85),i=r(423);e.exports=function(e){if(n(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw TypeError("Incorrect hint");return i(this,e)}},function(e,t,r){var n=r(281),i=Date.prototype,a=i.toString,o=i.getTime;"Invalid Date"!=String(new Date(NaN))&&n(i,"toString",(function(){var e=o.call(this);return e==e?a.call(this):"Invalid Date"}))},function(e,t,r){"use strict";var n=r(15),i=r(96),a=/[\w*+\-./@]/,o=function(e,t){for(var r=e.toString(16);r.length<t;)r="0"+r;return r};n({global:!0},{escape:function(e){for(var t,r,n=i(e),s="",l=n.length,u=0;u<l;)t=n.charAt(u++),a.test(t)?s+=t:s+=(r=t.charCodeAt(0))<256?"%"+o(r,2):"%u"+o(r,4).toUpperCase();return s}})},function(e,t,r){r(15)({target:"Function",proto:!0},{bind:r(443)})},function(e,t,r){"use strict";var n=r(80),i=r(121),a=r(301),o=r(87)("hasInstance"),s=Function.prototype;o in s||i.f(s,o,{value:function(e){if("function"!=typeof this||!n(e))return!1;if(!n(this.prototype))return e instanceof this;for(;e=a(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,r){var n=r(89),i=r(121).f,a=Function.prototype,o=a.toString,s=/^\s*function ([^ (]*)/;n&&!("name"in a)&&i(a,"name",{configurable:!0,get:function(){try{return o.call(this).match(s)[1]}catch(e){return""}}})},function(e,t,r){r(15)({global:!0},{globalThis:r(55)})},function(e,t,r){var n=r(15),i=r(286),a=r(44),o=i("JSON","stringify"),s=/[\uD800-\uDFFF]/g,l=/^[\uD800-\uDBFF]$/,u=/^[\uDC00-\uDFFF]$/,d=function(e,t,r){var n=r.charAt(t-1),i=r.charAt(t+1);return l.test(e)&&!u.test(i)||u.test(e)&&!l.test(n)?"\\u"+e.charCodeAt(0).toString(16):e},c=a((function(){return'"\\udf06\\ud834"'!==o("\udf06\ud834")||'"\\udead"'!==o("\udead")}));o&&n({target:"JSON",stat:!0,forced:c},{stringify:function(e,t,r){var n=o.apply(null,arguments);return"string"==typeof n?n.replace(s,d):n}})},function(e,t,r){var n=r(55);r(305)(n.JSON,"JSON",!0)},function(e,t,r){"use strict";var n=r(369),i=r(444);e.exports=n("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},function(e,t,r){var n=r(15),i=r(445),a=Math.acosh,o=Math.log,s=Math.sqrt,l=Math.LN2;n({target:"Math",stat:!0,forced:!a||710!=Math.floor(a(Number.MAX_VALUE))||a(1/0)!=1/0},{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?o(e)+l:i(e-1+s(e-1)*s(e+1))}})},function(e,t,r){var n=r(15),i=Math.asinh,a=Math.log,o=Math.sqrt;n({target:"Math",stat:!0,forced:!(i&&1/i(0)>0)},{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):a(t+o(t*t+1)):t}})},function(e,t,r){var n=r(15),i=Math.atanh,a=Math.log;n({target:"Math",stat:!0,forced:!(i&&1/i(-0)<0)},{atanh:function(e){return 0==(e=+e)?e:a((1+e)/(1-e))/2}})},function(e,t,r){var n=r(15),i=r(406),a=Math.abs,o=Math.pow;n({target:"Math",stat:!0},{cbrt:function(e){return i(e=+e)*o(a(e),1/3)}})},function(e,t,r){var n=r(15),i=Math.floor,a=Math.log,o=Math.LOG2E;n({target:"Math",stat:!0},{clz32:function(e){return(e>>>=0)?31-i(a(e+.5)*o):32}})},function(e,t,r){var n=r(15),i=r(371),a=Math.cosh,o=Math.abs,s=Math.E;n({target:"Math",stat:!0,forced:!a||a(710)===1/0},{cosh:function(e){var t=i(o(e)-1)+1;return(t+1/(t*s*s))*(s/2)}})},function(e,t,r){var n=r(15),i=r(371);n({target:"Math",stat:!0,forced:i!=Math.expm1},{expm1:i})},function(e,t,r){r(15)({target:"Math",stat:!0},{fround:r(691)})},function(e,t,r){var n=r(406),i=Math.abs,a=Math.pow,o=a(2,-52),s=a(2,-23),l=a(2,127)*(2-s),u=a(2,-126);e.exports=Math.fround||function(e){var t,r,a=i(e),d=n(e);return a<u?d*(a/u/s+1/o-1/o)*u*s:(r=(t=(1+s/o)*a)-(t-a))>l||r!=r?d*(1/0):d*r}},function(e,t,r){var n=r(15),i=Math.hypot,a=Math.abs,o=Math.sqrt;n({target:"Math",stat:!0,forced:!!i&&i(1/0,NaN)!==1/0},{hypot:function(e,t){for(var r,n,i=0,s=0,l=arguments.length,u=0;s<l;)u<(r=a(arguments[s++]))?(i=i*(n=u/r)*n+1,u=r):i+=r>0?(n=r/u)*n:r;return u===1/0?1/0:u*o(i)}})},function(e,t,r){var n=r(15),i=r(44),a=Math.imul;n({target:"Math",stat:!0,forced:i((function(){return-5!=a(4294967295,5)||2!=a.length}))},{imul:function(e,t){var r=+e,n=+t,i=65535&r,a=65535&n;return 0|i*a+((65535&r>>>16)*a+i*(65535&n>>>16)<<16>>>0)}})},function(e,t,r){var n=r(15),i=Math.log,a=Math.LOG10E;n({target:"Math",stat:!0},{log10:function(e){return i(e)*a}})},function(e,t,r){r(15)({target:"Math",stat:!0},{log1p:r(445)})},function(e,t,r){var n=r(15),i=Math.log,a=Math.LN2;n({target:"Math",stat:!0},{log2:function(e){return i(e)/a}})},function(e,t,r){r(15)({target:"Math",stat:!0},{sign:r(406)})},function(e,t,r){var n=r(15),i=r(44),a=r(371),o=Math.abs,s=Math.exp,l=Math.E;n({target:"Math",stat:!0,forced:i((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function(e){return o(e=+e)<1?(a(e)-a(-e))/2:(s(e-1)-s(-e-1))*(l/2)}})},function(e,t,r){var n=r(15),i=r(371),a=Math.exp;n({target:"Math",stat:!0},{tanh:function(e){var t=i(e=+e),r=i(-e);return t==1/0?1:r==1/0?-1:(t-r)/(a(e)+a(-e))}})},function(e,t,r){r(305)(Math,"Math",!0)},function(e,t,r){var n=r(15),i=Math.ceil,a=Math.floor;n({target:"Math",stat:!0},{trunc:function(e){return(e>0?a:i)(e)}})},function(e,t,r){"use strict";var n=r(89),i=r(55),a=r(347),o=r(281),s=r(148),l=r(314),u=r(370),d=r(335),c=r(385),h=r(44),f=r(304),m=r(324).f,p=r(279).f,g=r(121).f,_=r(340).trim,v=i.Number,y=v.prototype,b="Number"==l(f(y)),M=function(e){if(d(e))throw TypeError("Cannot convert a Symbol value to a number");var t,r,n,i,a,o,s,l,u=c(e,"number");if("string"==typeof u&&u.length>2)if(43===(t=(u=_(u)).charCodeAt(0))||45===t){if(88===(r=u.charCodeAt(2))||120===r)return NaN}else if(48===t){switch(u.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+u}for(o=(a=u.slice(2)).length,s=0;s<o;s++)if((l=a.charCodeAt(s))<48||l>i)return NaN;return parseInt(a,n)}return+u};if(a("Number",!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var w,L=function(e){var t=arguments.length<1?0:e,r=this;return r instanceof L&&(b?h((function(){y.valueOf.call(r)})):"Number"!=l(r))?u(new v(M(t)),r,L):M(t)},T=n?m(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),x=0;T.length>x;x++)s(v,w=T[x])&&!s(L,w)&&g(L,w,p(v,w));L.prototype=y,y.constructor=L,o(i,"Number",L)}},function(e,t,r){r(15)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},function(e,t,r){r(15)({target:"Number",stat:!0},{isFinite:r(705)})},function(e,t,r){var n=r(55).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&n(e)}},function(e,t,r){r(15)({target:"Number",stat:!0},{isInteger:r(407)})},function(e,t,r){r(15)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},function(e,t,r){var n=r(15),i=r(407),a=Math.abs;n({target:"Number",stat:!0},{isSafeInteger:function(e){return i(e)&&a(e)<=9007199254740991}})},function(e,t,r){r(15)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,r){r(15)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,r){var n=r(15),i=r(446);n({target:"Number",stat:!0,forced:Number.parseFloat!=i},{parseFloat:i})},function(e,t,r){var n=r(15),i=r(447);n({target:"Number",stat:!0,forced:Number.parseInt!=i},{parseInt:i})},function(e,t,r){"use strict";var n=r(15),i=r(229),a=r(448),o=r(405),s=r(44),l=1..toFixed,u=Math.floor,d=function(e,t,r){return 0===t?r:t%2==1?d(e,t-1,r*e):d(e*e,t/2,r)},c=function(e,t,r){for(var n=-1,i=r;++n<6;)i+=t*e[n],e[n]=i%1e7,i=u(i/1e7)},h=function(e,t){for(var r=6,n=0;--r>=0;)n+=e[r],e[r]=u(n/t),n=n%t*1e7},f=function(e){for(var t=6,r="";--t>=0;)if(""!==r||0===t||0!==e[t]){var n=String(e[t]);r=""===r?n:r+o.call("0",7-n.length)+n}return r};n({target:"Number",proto:!0,forced:l&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s((function(){l.call({})}))},{toFixed:function(e){var t,r,n,s,l=a(this),u=i(e),m=[0,0,0,0,0,0],p="",g="0";if(u<0||u>20)throw RangeError("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(p="-",l=-l),l>1e-21)if(r=(t=function(e){for(var t=0,r=e;r>=4096;)t+=12,r/=4096;for(;r>=2;)t+=1,r/=2;return t}(l*d(2,69,1))-69)<0?l*d(2,-t,1):l/d(2,t,1),r*=4503599627370496,(t=52-t)>0){for(c(m,0,r),n=u;n>=7;)c(m,1e7,0),n-=7;for(c(m,d(10,n,1),0),n=t-1;n>=23;)h(m,1<<23),n-=23;h(m,1<<n),c(m,1,1),h(m,2),g=f(m)}else c(m,0,r),c(m,1<<-t,0),g=f(m)+o.call("0",u);return g=u>0?p+((s=g.length)<=u?"0."+o.call("0",u-s)+g:g.slice(0,s-u)+"."+g.slice(s-u)):p+g}})},function(e,t,r){"use strict";var n=r(15),i=r(44),a=r(448),o=1..toPrecision;n({target:"Number",proto:!0,forced:i((function(){return"1"!==o.call(1,void 0)}))||!i((function(){o.call({})}))},{toPrecision:function(e){return void 0===e?o.call(a(this)):o.call(a(this),e)}})},function(e,t,r){var n=r(15),i=r(449);n({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(e,t,r){r(15)({target:"Object",stat:!0,sham:!r(89)},{create:r(304)})},function(e,t,r){"use strict";var n=r(15),i=r(89),a=r(373),o=r(143),s=r(282),l=r(121);i&&n({target:"Object",proto:!0,forced:a},{__defineGetter__:function(e,t){l.f(o(this),e,{get:s(t),enumerable:!0,configurable:!0})}})},function(e,t,r){var n=r(15),i=r(89);n({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperties:r(394)})},function(e,t,r){var n=r(15),i=r(89);n({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperty:r(121).f})},function(e,t,r){"use strict";var n=r(15),i=r(89),a=r(373),o=r(143),s=r(282),l=r(121);i&&n({target:"Object",proto:!0,forced:a},{__defineSetter__:function(e,t){l.f(o(this),e,{set:s(t),enumerable:!0,configurable:!0})}})},function(e,t,r){var n=r(15),i=r(450).entries;n({target:"Object",stat:!0},{entries:function(e){return i(e)}})},function(e,t,r){var n=r(15),i=r(354),a=r(44),o=r(80),s=r(332).onFreeze,l=Object.freeze;n({target:"Object",stat:!0,forced:a((function(){l(1)})),sham:!i},{freeze:function(e){return l&&o(e)?l(s(e)):e}})},function(e,t,r){var n=r(15),i=r(327),a=r(331);n({target:"Object",stat:!0},{fromEntries:function(e){var t={};return i(e,(function(e,r){a(t,e,r)}),{AS_ENTRIES:!0}),t}})},function(e,t,r){var n=r(15),i=r(44),a=r(297),o=r(279).f,s=r(89),l=i((function(){o(1)}));n({target:"Object",stat:!0,forced:!s||l,sham:!s},{getOwnPropertyDescriptor:function(e,t){return o(a(e),t)}})},function(e,t,r){var n=r(15),i=r(89),a=r(391),o=r(297),s=r(279),l=r(331);n({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){for(var t,r,n=o(e),i=s.f,u=a(n),d={},c=0;u.length>c;)void 0!==(r=i(n,t=u[c++]))&&l(d,t,r);return d}})},function(e,t,r){var n=r(15),i=r(44),a=r(395).f;n({target:"Object",stat:!0,forced:i((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:a})},function(e,t,r){var n=r(15),i=r(44),a=r(143),o=r(301),s=r(396);n({target:"Object",stat:!0,forced:i((function(){o(1)})),sham:!s},{getPrototypeOf:function(e){return o(a(e))}})},function(e,t,r){r(15)({target:"Object",stat:!0},{hasOwn:r(148)})},function(e,t,r){r(15)({target:"Object",stat:!0},{is:r(451)})},function(e,t,r){var n=r(15),i=r(44),a=r(80),o=Object.isExtensible;n({target:"Object",stat:!0,forced:i((function(){o(1)}))},{isExtensible:function(e){return!!a(e)&&(!o||o(e))}})},function(e,t,r){var n=r(15),i=r(44),a=r(80),o=Object.isFrozen;n({target:"Object",stat:!0,forced:i((function(){o(1)}))},{isFrozen:function(e){return!a(e)||!!o&&o(e)}})},function(e,t,r){var n=r(15),i=r(44),a=r(80),o=Object.isSealed;n({target:"Object",stat:!0,forced:i((function(){o(1)}))},{isSealed:function(e){return!a(e)||!!o&&o(e)}})},function(e,t,r){var n=r(15),i=r(143),a=r(348);n({target:"Object",stat:!0,forced:r(44)((function(){a(1)}))},{keys:function(e){return a(i(e))}})},function(e,t,r){"use strict";var n=r(15),i=r(89),a=r(373),o=r(143),s=r(322),l=r(301),u=r(279).f;i&&n({target:"Object",proto:!0,forced:a},{__lookupGetter__:function(e){var t,r=o(this),n=s(e);do{if(t=u(r,n))return t.get}while(r=l(r))}})},function(e,t,r){"use strict";var n=r(15),i=r(89),a=r(373),o=r(143),s=r(322),l=r(301),u=r(279).f;i&&n({target:"Object",proto:!0,forced:a},{__lookupSetter__:function(e){var t,r=o(this),n=s(e);do{if(t=u(r,n))return t.set}while(r=l(r))}})},function(e,t,r){var n=r(15),i=r(80),a=r(332).onFreeze,o=r(354),s=r(44),l=Object.preventExtensions;n({target:"Object",stat:!0,forced:s((function(){l(1)})),sham:!o},{preventExtensions:function(e){return l&&i(e)?l(a(e)):e}})},function(e,t,r){var n=r(15),i=r(80),a=r(332).onFreeze,o=r(354),s=r(44),l=Object.seal;n({target:"Object",stat:!0,forced:s((function(){l(1)})),sham:!o},{seal:function(e){return l&&i(e)?l(a(e)):e}})},function(e,t,r){r(15)({target:"Object",stat:!0},{setPrototypeOf:r(316)})},function(e,t,r){var n=r(398),i=r(281),a=r(740);n||i(Object.prototype,"toString",a,{unsafe:!0})},function(e,t,r){"use strict";var n=r(398),i=r(352);e.exports=n?{}.toString:function(){return"[object "+i(this)+"]"}},function(e,t,r){var n=r(15),i=r(450).values;n({target:"Object",stat:!0},{values:function(e){return i(e)}})},function(e,t,r){var n=r(15),i=r(446);n({global:!0,forced:parseFloat!=i},{parseFloat:i})},function(e,t,r){var n=r(15),i=r(447);n({global:!0,forced:parseInt!=i},{parseInt:i})},function(e,t,r){"use strict";var n,i,a,o,s=r(15),l=r(300),u=r(55),d=r(286),c=r(452),h=r(281),f=r(338),m=r(316),p=r(305),g=r(337),_=r(80),v=r(282),y=r(328),b=r(390),M=r(327),w=r(365),L=r(339),T=r(408).set,x=r(454),k=r(455),S=r(747),D=r(374),A=r(409),E=r(228),Y=r(347),O=r(87),P=r(748),R=r(336),C=r(323),I=O("species"),F="Promise",j=E.get,N=E.set,H=E.getterFor(F),B=c&&c.prototype,U=c,W=B,z=u.TypeError,V=u.document,G=u.process,K=D.f,q=K,J=!!(V&&V.createEvent&&u.dispatchEvent),X="function"==typeof PromiseRejectionEvent,$=!1,Z=Y(F,(function(){var e=b(U),t=e!==String(U);if(!t&&66===C)return!0;if(l&&!W.finally)return!0;if(C>=51&&/native code/.test(e))return!1;var r=new U((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};return(r.constructor={})[I]=n,!($=r.then((function(){}))instanceof n)||!t&&P&&!X})),Q=Z||!w((function(e){U.all(e).catch((function(){}))})),ee=function(e){var t;return!(!_(e)||"function"!=typeof(t=e.then))&&t},te=function(e,t){if(!e.notified){e.notified=!0;var r=e.reactions;x((function(){for(var n=e.value,i=1==e.state,a=0;r.length>a;){var o,s,l,u=r[a++],d=i?u.ok:u.fail,c=u.resolve,h=u.reject,f=u.domain;try{d?(i||(2===e.rejection&&ae(e),e.rejection=1),!0===d?o=n:(f&&f.enter(),o=d(n),f&&(f.exit(),l=!0)),o===u.promise?h(z("Promise-chain cycle")):(s=ee(o))?s.call(o,c,h):c(o)):h(n)}catch(e){f&&!l&&f.exit(),h(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&ne(e)}))}},re=function(e,t,r){var n,i;J?((n=V.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),u.dispatchEvent(n)):n={promise:t,reason:r},!X&&(i=u["on"+e])?i(n):"unhandledrejection"===e&&S("Unhandled promise rejection",r)},ne=function(e){T.call(u,(function(){var t,r=e.facade,n=e.value;if(ie(e)&&(t=A((function(){R?G.emit("unhandledRejection",n,r):re("unhandledrejection",r,n)})),e.rejection=R||ie(e)?2:1,t.error))throw t.value}))},ie=function(e){return 1!==e.rejection&&!e.parent},ae=function(e){T.call(u,(function(){var t=e.facade;R?G.emit("rejectionHandled",t):re("rejectionhandled",t,e.value)}))},oe=function(e,t,r){return function(n){e(t,n,r)}},se=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,te(e,!0))},le=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw z("Promise can't be resolved itself");var n=ee(t);n?x((function(){var r={done:!1};try{n.call(t,oe(le,r,e),oe(se,r,e))}catch(t){se(r,t,e)}})):(e.value=t,e.state=1,te(e,!1))}catch(t){se({done:!1},t,e)}}};if(Z&&(W=(U=function(e){y(this,U,F),v(e),n.call(this);var t=j(this);try{e(oe(le,t),oe(se,t))}catch(e){se(t,e)}}).prototype,(n=function(e){N(this,{type:F,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=f(W,{then:function(e,t){var r=H(this),n=K(L(this,U));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=R?G.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&te(r,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new n,t=j(e);this.promise=e,this.resolve=oe(le,t),this.reject=oe(se,t)},D.f=K=function(e){return e===U||e===a?new i(e):q(e)},!l&&"function"==typeof c&&B!==Object.prototype)){o=B.then,$||(h(B,"then",(function(e,t){var r=this;return new U((function(e,t){o.call(r,e,t)})).then(e,t)}),{unsafe:!0}),h(B,"catch",W.catch,{unsafe:!0}));try{delete B.constructor}catch(e){}m&&m(B,W)}s({global:!0,wrap:!0,forced:Z},{Promise:U}),p(U,F,!1,!0),g(F),a=d(F),s({target:F,stat:!0,forced:Z},{reject:function(e){var t=K(this);return t.reject.call(void 0,e),t.promise}}),s({target:F,stat:!0,forced:l||Z},{resolve:function(e){return k(l&&this===a?U:this,e)}}),s({target:F,stat:!0,forced:Q},{all:function(e){var t=this,r=K(t),n=r.resolve,i=r.reject,a=A((function(){var r=v(t.resolve),a=[],o=0,s=1;M(e,(function(e){var l=o++,u=!1;a.push(void 0),s++,r.call(t,e).then((function(e){u||(u=!0,a[l]=e,--s||n(a))}),i)})),--s||n(a)}));return a.error&&i(a.value),r.promise},race:function(e){var t=this,r=K(t),n=r.reject,i=A((function(){var i=v(t.resolve);M(e,(function(e){i.call(t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}})},function(e,t,r){var n=r(315),i=r(55);e.exports=/ipad|iphone|ipod/i.test(n)&&void 0!==i.Pebble},function(e,t,r){var n=r(315);e.exports=/web0s(?!.*chrome)/i.test(n)},function(e,t,r){var n=r(55);e.exports=function(e,t){var r=n.console;r&&r.error&&(1===arguments.length?r.error(e):r.error(e,t))}},function(e,t){e.exports="object"==typeof window},function(e,t,r){"use strict";var n=r(15),i=r(282),a=r(374),o=r(409),s=r(327);n({target:"Promise",stat:!0},{allSettled:function(e){var t=this,r=a.f(t),n=r.resolve,l=r.reject,u=o((function(){var r=i(t.resolve),a=[],o=0,l=1;s(e,(function(e){var i=o++,s=!1;a.push(void 0),l++,r.call(t,e).then((function(e){s||(s=!0,a[i]={status:"fulfilled",value:e},--l||n(a))}),(function(e){s||(s=!0,a[i]={status:"rejected",reason:e},--l||n(a))}))})),--l||n(a)}));return u.error&&l(u.value),r.promise}})},function(e,t,r){"use strict";var n=r(15),i=r(282),a=r(286),o=r(374),s=r(409),l=r(327);n({target:"Promise",stat:!0},{any:function(e){var t=this,r=o.f(t),n=r.resolve,u=r.reject,d=s((function(){var r=i(t.resolve),o=[],s=0,d=1,c=!1;l(e,(function(e){var i=s++,l=!1;o.push(void 0),d++,r.call(t,e).then((function(e){l||c||(c=!0,n(e))}),(function(e){l||c||(l=!0,o[i]=e,--d||u(new(a("AggregateError"))(o,"No one promise resolved")))}))})),--d||u(new(a("AggregateError"))(o,"No one promise resolved"))}));return d.error&&u(d.value),r.promise}})},function(e,t,r){"use strict";var n=r(15),i=r(300),a=r(452),o=r(44),s=r(286),l=r(339),u=r(455),d=r(281);if(n({target:"Promise",proto:!0,real:!0,forced:!!a&&o((function(){a.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=l(this,s("Promise")),r="function"==typeof e;return this.then(r?function(r){return u(t,e()).then((function(){return r}))}:e,r?function(r){return u(t,e()).then((function(){throw r}))}:e)}}),!i&&"function"==typeof a){var c=s("Promise").prototype.finally;a.prototype.finally!==c&&d(a.prototype,"finally",c,{unsafe:!0})}},function(e,t,r){var n=r(15),i=r(286),a=r(282),o=r(85),s=r(44),l=i("Reflect","apply"),u=Function.apply;n({target:"Reflect",stat:!0,forced:!s((function(){l((function(){}))}))},{apply:function(e,t,r){return a(e),o(r),l?l(e,t,r):u.call(e,t,r)}})},function(e,t,r){var n=r(15),i=r(286),a=r(282),o=r(85),s=r(80),l=r(304),u=r(443),d=r(44),c=i("Reflect","construct"),h=d((function(){function e(){}return!(c((function(){}),[],e)instanceof e)})),f=!d((function(){c((function(){}))})),m=h||f;n({target:"Reflect",stat:!0,forced:m,sham:m},{construct:function(e,t){a(e),o(t);var r=arguments.length<3?e:a(arguments[2]);if(f&&!h)return c(e,t,r);if(e==r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return n.push.apply(n,t),new(u.apply(e,n))}var i=r.prototype,d=l(s(i)?i:Object.prototype),m=Function.apply.call(e,d,t);return s(m)?m:d}})},function(e,t,r){var n=r(15),i=r(89),a=r(85),o=r(322),s=r(121);n({target:"Reflect",stat:!0,forced:r(44)((function(){Reflect.defineProperty(s.f({},1,{value:1}),1,{value:2})})),sham:!i},{defineProperty:function(e,t,r){a(e);var n=o(t);a(r);try{return s.f(e,n,r),!0}catch(e){return!1}}})},function(e,t,r){var n=r(15),i=r(85),a=r(279).f;n({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var r=a(i(e),t);return!(r&&!r.configurable)&&delete e[t]}})},function(e,t,r){var n=r(15),i=r(80),a=r(85),o=r(456),s=r(279),l=r(301);n({target:"Reflect",stat:!0},{get:function e(t,r){var n,u,d=arguments.length<3?t:arguments[2];return a(t)===d?t[r]:(n=s.f(t,r))?o(n)?n.value:void 0===n.get?void 0:n.get.call(d):i(u=l(t))?e(u,r,d):void 0}})},function(e,t,r){var n=r(15),i=r(89),a=r(85),o=r(279);n({target:"Reflect",stat:!0,sham:!i},{getOwnPropertyDescriptor:function(e,t){return o.f(a(e),t)}})},function(e,t,r){var n=r(15),i=r(85),a=r(301);n({target:"Reflect",stat:!0,sham:!r(396)},{getPrototypeOf:function(e){return a(i(e))}})},function(e,t,r){r(15)({target:"Reflect",stat:!0},{has:function(e,t){return t in e}})},function(e,t,r){var n=r(15),i=r(85),a=Object.isExtensible;n({target:"Reflect",stat:!0},{isExtensible:function(e){return i(e),!a||a(e)}})},function(e,t,r){r(15)({target:"Reflect",stat:!0},{ownKeys:r(391)})},function(e,t,r){var n=r(15),i=r(286),a=r(85);n({target:"Reflect",stat:!0,sham:!r(354)},{preventExtensions:function(e){a(e);try{var t=i("Object","preventExtensions");return t&&t(e),!0}catch(e){return!1}}})},function(e,t,r){var n=r(15),i=r(85),a=r(80),o=r(456),s=r(44),l=r(121),u=r(279),d=r(301),c=r(313);n({target:"Reflect",stat:!0,forced:s((function(){var e=function(){},t=l.f(new e,"a",{configurable:!0});return!1!==Reflect.set(e.prototype,"a",1,t)}))},{set:function e(t,r,n){var s,h,f,m=arguments.length<4?t:arguments[3],p=u.f(i(t),r);if(!p){if(a(h=d(t)))return e(h,r,n,m);p=c(0)}if(o(p)){if(!1===p.writable||!a(m))return!1;if(s=u.f(m,r)){if(s.get||s.set||!1===s.writable)return!1;s.value=n,l.f(m,r,s)}else l.f(m,r,c(0,n))}else{if(void 0===(f=p.set))return!1;f.call(m,n)}return!0}})},function(e,t,r){var n=r(15),i=r(85),a=r(431),o=r(316);o&&n({target:"Reflect",stat:!0},{setPrototypeOf:function(e,t){i(e),a(t);try{return o(e,t),!0}catch(e){return!1}}})},function(e,t,r){var n=r(15),i=r(55),a=r(305);n({global:!0},{Reflect:{}}),a(i.Reflect,"Reflect",!0)},function(e,t,r){var n=r(89),i=r(55),a=r(347),o=r(370),s=r(280),l=r(121).f,u=r(324).f,d=r(355),c=r(96),h=r(341),f=r(375),m=r(281),p=r(44),g=r(148),_=r(228).enforce,v=r(337),y=r(87),b=r(410),M=r(457),w=y("match"),L=i.RegExp,T=L.prototype,x=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,k=/a/g,S=/a/g,D=new L(k)!==k,A=f.UNSUPPORTED_Y,E=n&&(!D||A||b||M||p((function(){return S[w]=!1,L(k)!=k||L(S)==S||"/a/i"!=L(k,"i")})));if(a("RegExp",E)){for(var Y=function(e,t){var r,n,i,a,l,u,f=this instanceof Y,m=d(e),p=void 0===t,v=[],y=e;if(!f&&m&&p&&e.constructor===Y)return e;if((m||e instanceof Y)&&(e=e.source,p&&(t="flags"in y?y.flags:h.call(y))),e=void 0===e?"":c(e),t=void 0===t?"":c(t),y=e,b&&"dotAll"in k&&(n=!!t&&t.indexOf("s")>-1)&&(t=t.replace(/s/g,"")),r=t,A&&"sticky"in k&&(i=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,"")),M&&(e=(a=function(e){for(var t,r=e.length,n=0,i="",a=[],o={},s=!1,l=!1,u=0,d="";n<=r;n++){if("\\"===(t=e.charAt(n)))t+=e.charAt(++n);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:x.test(e.slice(n+1))&&(n+=2,l=!0),i+=t,u++;continue;case">"===t&&l:if(""===d||g(o,d))throw new SyntaxError("Invalid capture group name");o[d]=!0,a.push([d,u]),l=!1,d="";continue}l?d+=t:i+=t}return[i,a]}(e))[0],v=a[1]),l=o(L(e,t),f?this:T,Y),(n||i||v.length)&&(u=_(l),n&&(u.dotAll=!0,u.raw=Y(function(e){for(var t,r=e.length,n=0,i="",a=!1;n<=r;n++)"\\"!==(t=e.charAt(n))?a||"."!==t?("["===t?a=!0:"]"===t&&(a=!1),i+=t):i+="[\\s\\S]":i+=t+e.charAt(++n);return i}(e),r)),i&&(u.sticky=!0),v.length&&(u.groups=v)),e!==y)try{s(l,"source",""===y?"(?:)":y)}catch(e){}return l},O=function(e){e in Y||l(Y,e,{configurable:!0,get:function(){return L[e]},set:function(t){L[e]=t}})},P=u(L),R=0;P.length>R;)O(P[R++]);T.constructor=Y,Y.prototype=T,m(i,"RegExp",Y)}v("RegExp")},function(e,t,r){var n=r(89),i=r(410),a=r(121).f,o=r(228).get,s=RegExp.prototype;n&&i&&a(s,"dotAll",{configurable:!0,get:function(){if(this!==s){if(this instanceof RegExp)return!!o(this).dotAll;throw TypeError("Incompatible receiver, RegExp required")}}})},function(e,t,r){var n=r(89),i=r(121),a=r(341),o=r(44);n&&o((function(){return"sy"!==Object.getOwnPropertyDescriptor(RegExp.prototype,"flags").get.call({dotAll:!0,sticky:!0})}))&&i.f(RegExp.prototype,"flags",{configurable:!0,get:a})},function(e,t,r){var n=r(89),i=r(375).UNSUPPORTED_Y,a=r(121).f,o=r(228).get,s=RegExp.prototype;n&&i&&a(s,"sticky",{configurable:!0,get:function(){if(this!==s){if(this instanceof RegExp)return!!o(this).sticky;throw TypeError("Incompatible receiver, RegExp required")}}})},function(e,t,r){"use strict";r(411);var n,i,a=r(15),o=r(80),s=(n=!1,(i=/[ac]/).exec=function(){return n=!0,/./.exec.apply(this,arguments)},!0===i.test("abc")&&n),l=/./.test;a({target:"RegExp",proto:!0,forced:!s},{test:function(e){if("function"!=typeof this.exec)return l.call(this,e);var t=this.exec(e);if(null!==t&&!o(t))throw new Error("RegExp exec method returned something other than an Object or null");return!!t}})},function(e,t,r){"use strict";var n=r(281),i=r(85),a=r(96),o=r(44),s=r(341),l=RegExp.prototype,u=l.toString,d=o((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),c="toString"!=u.name;(d||c)&&n(RegExp.prototype,"toString",(function(){var e=i(this),t=a(e.source),r=e.flags;return"/"+t+"/"+a(void 0===r&&e instanceof RegExp&&!("flags"in l)?s.call(e):r)}),{unsafe:!0})},function(e,t,r){"use strict";var n=r(369),i=r(444);e.exports=n("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},function(e,t,r){"use strict";var n=r(15),i=r(227),a=r(229),o=r(86),s=r(96);n({target:"String",proto:!0,forced:r(44)((function(){return"\ud842"!=="𠮷".at(0)}))},{at:function(e){var t=s(i(this)),r=o(t.length),n=a(e),l=n>=0?n:r+n;return l<0||l>=r?void 0:t.charAt(l)}})},function(e,t,r){"use strict";var n=r(15),i=r(377).codeAt;n({target:"String",proto:!0},{codePointAt:function(e){return i(this,e)}})},function(e,t,r){"use strict";var n,i=r(15),a=r(279).f,o=r(86),s=r(96),l=r(412),u=r(227),d=r(413),c=r(300),h="".endsWith,f=Math.min,m=d("endsWith");i({target:"String",proto:!0,forced:!!(c||m||(n=a(String.prototype,"endsWith"),!n||n.writable))&&!m},{endsWith:function(e){var t=s(u(this));l(e);var r=arguments.length>1?arguments[1]:void 0,n=o(t.length),i=void 0===r?n:f(o(r),n),a=s(e);return h?h.call(t,a,i):t.slice(i-a.length,i)===a}})},function(e,t,r){var n=r(15),i=r(325),a=String.fromCharCode,o=String.fromCodePoint;n({target:"String",stat:!0,forced:!!o&&1!=o.length},{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,o=0;n>o;){if(t=+arguments[o++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");r.push(t<65536?a(t):a(55296+((t-=65536)>>10),t%1024+56320))}return r.join("")}})},function(e,t,r){"use strict";var n=r(15),i=r(412),a=r(227),o=r(96);n({target:"String",proto:!0,forced:!r(413)("includes")},{includes:function(e){return!!~o(a(this)).indexOf(o(i(e)),arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){"use strict";var n=r(378),i=r(85),a=r(86),o=r(96),s=r(227),l=r(379),u=r(380);n("match",(function(e,t,r){return[function(t){var r=s(this),n=null==t?void 0:t[e];return void 0!==n?n.call(t,r):new RegExp(t)[e](o(r))},function(e){var n=i(this),s=o(e),d=r(t,n,s);if(d.done)return d.value;if(!n.global)return u(n,s);var c=n.unicode;n.lastIndex=0;for(var h,f=[],m=0;null!==(h=u(n,s));){var p=o(h[0]);f[m]=p,""===p&&(n.lastIndex=l(s,a(n.lastIndex),c)),m++}return 0===m?null:f}]}))},function(e,t,r){"use strict";var n=r(15),i=r(401),a=r(227),o=r(86),s=r(96),l=r(282),u=r(85),d=r(314),c=r(355),h=r(341),f=r(280),m=r(44),p=r(87),g=r(339),_=r(379),v=r(228),y=r(300),b=p("matchAll"),M=v.set,w=v.getterFor("RegExp String Iterator"),L=RegExp.prototype,T=L.exec,x="".matchAll,k=!!x&&!m((function(){"a".matchAll(/./)})),S=i((function(e,t,r,n){M(this,{type:"RegExp String Iterator",regexp:e,string:t,global:r,unicode:n,done:!1})}),"RegExp String",(function(){var e=w(this);if(e.done)return{value:void 0,done:!0};var t=e.regexp,r=e.string,n=function(e,t){var r,n=e.exec;if("function"==typeof n){if("object"!=typeof(r=n.call(e,t)))throw TypeError("Incorrect exec result");return r}return T.call(e,t)}(t,r);return null===n?{value:void 0,done:e.done=!0}:e.global?(""===s(n[0])&&(t.lastIndex=_(r,o(t.lastIndex),e.unicode)),{value:n,done:!1}):(e.done=!0,{value:n,done:!1})})),D=function(e){var t,r,n,i,a,l,d=u(this),c=s(e);return t=g(d,RegExp),void 0===(r=d.flags)&&d instanceof RegExp&&!("flags"in L)&&(r=h.call(d)),n=void 0===r?"":s(r),i=new t(t===RegExp?d.source:d,n),a=!!~n.indexOf("g"),l=!!~n.indexOf("u"),i.lastIndex=o(d.lastIndex),new S(i,c,a,l)};n({target:"String",proto:!0,forced:k},{matchAll:function(e){var t,r,n,i=a(this);if(null!=e){if(c(e)&&!~s(a("flags"in L?e.flags:h.call(e))).indexOf("g"))throw TypeError("`.matchAll` does not allow non-global regexes");if(k)return x.apply(i,arguments);if(void 0===(r=e[b])&&y&&"RegExp"==d(e)&&(r=D),null!=r)return l(r).call(e,i)}else if(k)return x.apply(i,arguments);return t=s(i),n=new RegExp(e,"g"),y?D.call(n,t):n[b](t)}}),y||b in L||f(L,b,D)},function(e,t,r){"use strict";var n=r(15),i=r(404).end;n({target:"String",proto:!0,forced:r(459)},{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){"use strict";var n=r(15),i=r(404).start;n({target:"String",proto:!0,forced:r(459)},{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){var n=r(15),i=r(297),a=r(86),o=r(96);n({target:"String",stat:!0},{raw:function(e){for(var t=i(e.raw),r=a(t.length),n=arguments.length,s=[],l=0;r>l;)s.push(o(t[l++])),l<n&&s.push(o(arguments[l]));return s.join("")}})},function(e,t,r){r(15)({target:"String",proto:!0},{repeat:r(405)})},function(e,t,r){"use strict";var n=r(378),i=r(44),a=r(85),o=r(229),s=r(86),l=r(96),u=r(227),d=r(379),c=r(460),h=r(380),f=r(87)("replace"),m=Math.max,p=Math.min,g="$0"==="a".replace(/./,"$0"),_=!!/./[f]&&""===/./[f]("a","$0");n("replace",(function(e,t,r){var n=_?"$":"$0";return[function(e,r){var n=u(this),i=null==e?void 0:e[f];return void 0!==i?i.call(e,n,r):t.call(l(n),e,r)},function(e,i){var u=a(this),f=l(e);if("string"==typeof i&&-1===i.indexOf(n)&&-1===i.indexOf("$<")){var g=r(t,u,f,i);if(g.done)return g.value}var _="function"==typeof i;_||(i=l(i));var v=u.global;if(v){var y=u.unicode;u.lastIndex=0}for(var b=[];;){var M=h(u,f);if(null===M)break;if(b.push(M),!v)break;""===l(M[0])&&(u.lastIndex=d(f,s(u.lastIndex),y))}for(var w,L="",T=0,x=0;x<b.length;x++){M=b[x];for(var k=l(M[0]),S=m(p(o(M.index),f.length),0),D=[],A=1;A<M.length;A++)D.push(void 0===(w=M[A])?w:String(w));var E=M.groups;if(_){var Y=[k].concat(D,S,f);void 0!==E&&Y.push(E);var O=l(i.apply(void 0,Y))}else O=c(k,f,S,D,E,i);S>=T&&(L+=f.slice(T,S)+O,T=S+k.length)}return L+f.slice(T)}]}),!!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!g||_)},function(e,t,r){"use strict";var n=r(15),i=r(227),a=r(355),o=r(96),s=r(341),l=r(460),u=r(87),d=r(300),c=u("replace"),h=RegExp.prototype,f=Math.max,m=function(e,t,r){return r>e.length?-1:""===t?r:e.indexOf(t,r)};n({target:"String",proto:!0},{replaceAll:function(e,t){var r,n,u,p,g,_,v,y,b=i(this),M=0,w=0,L="";if(null!=e){if((r=a(e))&&!~o(i("flags"in h?e.flags:s.call(e))).indexOf("g"))throw TypeError("`.replaceAll` does not allow non-global regexes");if(void 0!==(n=e[c]))return n.call(e,b,t);if(d&&r)return o(b).replace(e,t)}for(u=o(b),p=o(e),(g="function"==typeof t)||(t=o(t)),_=p.length,v=f(1,_),M=m(u,p,0);-1!==M;)y=g?o(t(p,M,u)):l(p,u,M,[],void 0,t),L+=u.slice(w,M)+y,w=M+_,M=m(u,p,M+v);return w<u.length&&(L+=u.slice(w)),L}})},function(e,t,r){"use strict";var n=r(378),i=r(85),a=r(227),o=r(451),s=r(96),l=r(380);n("search",(function(e,t,r){return[function(t){var r=a(this),n=null==t?void 0:t[e];return void 0!==n?n.call(t,r):new RegExp(t)[e](s(r))},function(e){var n=i(this),a=s(e),u=r(t,n,a);if(u.done)return u.value;var d=n.lastIndex;o(d,0)||(n.lastIndex=0);var c=l(n,a);return o(n.lastIndex,d)||(n.lastIndex=d),null===c?-1:c.index}]}))},function(e,t,r){"use strict";var n=r(378),i=r(355),a=r(85),o=r(227),s=r(339),l=r(379),u=r(86),d=r(96),c=r(380),h=r(376),f=r(375),m=r(44),p=f.UNSUPPORTED_Y,g=[].push,_=Math.min;n("split",(function(e,t,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,r){var n=d(o(this)),a=void 0===r?4294967295:r>>>0;if(0===a)return[];if(void 0===e)return[n];if(!i(e))return t.call(n,e,a);for(var s,l,u,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,p=new RegExp(e.source,f+"g");(s=h.call(p,n))&&!((l=p.lastIndex)>m&&(c.push(n.slice(m,s.index)),s.length>1&&s.index<n.length&&g.apply(c,s.slice(1)),u=s[0].length,m=l,c.length>=a));)p.lastIndex===s.index&&p.lastIndex++;return m===n.length?!u&&p.test("")||c.push(""):c.push(n.slice(m)),c.length>a?c.slice(0,a):c}:"0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:t.call(this,e,r)}:t,[function(t,r){var i=o(this),a=null==t?void 0:t[e];return void 0!==a?a.call(t,i,r):n.call(d(i),t,r)},function(e,i){var o=a(this),h=d(e),f=r(n,o,h,i,n!==t);if(f.done)return f.value;var m=s(o,RegExp),g=o.unicode,v=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(p?"g":"y"),y=new m(p?"^(?:"+o.source+")":o,v),b=void 0===i?4294967295:i>>>0;if(0===b)return[];if(0===h.length)return null===c(y,h)?[h]:[];for(var M=0,w=0,L=[];w<h.length;){y.lastIndex=p?0:w;var T,x=c(y,p?h.slice(w):h);if(null===x||(T=_(u(y.lastIndex+(p?w:0)),h.length))===M)w=l(h,w,g);else{if(L.push(h.slice(M,w)),L.length===b)return L;for(var k=1;k<=x.length-1;k++)if(L.push(x[k]),L.length===b)return L;w=M=T}}return L.push(h.slice(M)),L}]}),!!m((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),p)},function(e,t,r){"use strict";var n,i=r(15),a=r(279).f,o=r(86),s=r(96),l=r(412),u=r(227),d=r(413),c=r(300),h="".startsWith,f=Math.min,m=d("startsWith");i({target:"String",proto:!0,forced:!!(c||m||(n=a(String.prototype,"startsWith"),!n||n.writable))&&!m},{startsWith:function(e){var t=s(u(this));l(e);var r=o(f(arguments.length>1?arguments[1]:void 0,t.length)),n=s(e);return h?h.call(t,n,r):t.slice(r,r+n.length)===n}})},function(e,t,r){"use strict";var n=r(15),i=r(227),a=r(229),o=r(96),s="".slice,l=Math.max,u=Math.min;n({target:"String",proto:!0},{substr:function(e,t){var r,n,d=o(i(this)),c=d.length,h=a(e);return h===1/0&&(h=0),h<0&&(h=l(c+h,0)),(r=void 0===t?c:a(t))<=0||r===1/0||h>=(n=u(h+r,c))?"":s.call(d,h,n)}})},function(e,t,r){"use strict";var n=r(15),i=r(340).trim;n({target:"String",proto:!0,forced:r(414)("trim")},{trim:function(){return i(this)}})},function(e,t,r){"use strict";var n=r(15),i=r(340).end,a=r(414)("trimEnd"),o=a?function(){return i(this)}:"".trimEnd;n({target:"String",proto:!0,forced:a},{trimEnd:o,trimRight:o})},function(e,t,r){"use strict";var n=r(15),i=r(340).start,a=r(414)("trimStart"),o=a?function(){return i(this)}:"".trimStart;n({target:"String",proto:!0,forced:a},{trimStart:o,trimLeft:o})},function(e,t,r){"use strict";var n=r(15),i=r(298);n({target:"String",proto:!0,forced:r(299)("anchor")},{anchor:function(e){return i(this,"a","name",e)}})},function(e,t,r){"use strict";var n=r(15),i=r(298);n({target:"String",proto:!0,forced:r(299)("big")},{big:function(){return i(this,"big","","")}})},function(e,t,r){"use strict";var n=r(15),i=r(298);n({target:"String",proto:!0,forced:r(299)("blink")},{blink:function(){return i(this,"blink","","")}})},function(e,t,r){"use strict";var n=r(15),i=r(298);n({target:"String",proto:!0,forced:r(299)("bold")},{bold:function(){return i(this,"b","","")}})},function(e,t,r){"use strict";var n=r(15),i=r(298);n({target:"String",proto:!0,forced:r(299)("fixed")},{fixed:function(){return i(this,"tt","","")}})},function(e,t,r){"use strict";var n=r(15),i=r(298);n({target:"String",proto:!0,forced:r(299)("fontcolor")},{fontcolor:function(e){return i(this,"font","color",e)}})},function(e,t,r){"use strict";var n=r(15),i=r(298);n({target:"String",proto:!0,forced:r(299)("fontsize")},{fontsize:function(e){return i(this,"font","size",e)}})},function(e,t,r){"use strict";var n=r(15),i=r(298);n({target:"String",proto:!0,forced:r(299)("italics")},{italics:function(){return i(this,"i","","")}})},function(e,t,r){"use strict";var n=r(15),i=r(298);n({target:"String",proto:!0,forced:r(299)("link")},{link:function(e){return i(this,"a","href",e)}})},function(e,t,r){"use strict";var n=r(15),i=r(298);n({target:"String",proto:!0,forced:r(299)("small")},{small:function(){return i(this,"small","","")}})},function(e,t,r){"use strict";var n=r(15),i=r(298);n({target:"String",proto:!0,forced:r(299)("strike")},{strike:function(){return i(this,"strike","","")}})},function(e,t,r){"use strict";var n=r(15),i=r(298);n({target:"String",proto:!0,forced:r(299)("sub")},{sub:function(){return i(this,"sub","","")}})},function(e,t,r){"use strict";var n=r(15),i=r(298);n({target:"String",proto:!0,forced:r(299)("sup")},{sup:function(){return i(this,"sup","","")}})},function(e,t,r){r(319)("Float32",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},function(e,t,r){var n=r(229);e.exports=function(e){var t=n(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},function(e,t,r){r(319)("Float64",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},function(e,t,r){r(319)("Int8",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},function(e,t,r){r(319)("Int16",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},function(e,t,r){r(319)("Int32",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},function(e,t,r){r(319)("Uint8",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},function(e,t,r){r(319)("Uint8",(function(e){return function(t,r,n){return e(this,t,r,n)}}),!0)},function(e,t,r){r(319)("Uint16",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},function(e,t,r){r(319)("Uint32",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},function(e,t,r){"use strict";var n=r(93),i=r(86),a=r(229),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("at",(function(e){var t=o(this),r=i(t.length),n=a(e),s=n>=0?n:r+n;return s<0||s>=r?void 0:t[s]}))},function(e,t,r){"use strict";var n=r(93),i=r(433),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("copyWithin",(function(e,t){return i.call(a(this),e,t,arguments.length>2?arguments[2]:void 0)}))},function(e,t,r){"use strict";var n=r(93),i=r(230).every,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("every",(function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,r){"use strict";var n=r(93),i=r(399),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("fill",(function(e){return i.apply(a(this),arguments)}))},function(e,t,r){"use strict";var n=r(93),i=r(230).filter,a=r(821),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("filter",(function(e){var t=i(o(this),e,arguments.length>1?arguments[1]:void 0);return a(this,t)}))},function(e,t,r){var n=r(822),i=r(381);e.exports=function(e,t){return n(i(e),t)}},function(e,t){e.exports=function(e,t){for(var r=0,n=t.length,i=new e(n);n>r;)i[r]=t[r++];return i}},function(e,t,r){"use strict";var n=r(93),i=r(230).find,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("find",(function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,r){"use strict";var n=r(93),i=r(230).findIndex,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("findIndex",(function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,r){"use strict";var n=r(93),i=r(230).forEach,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("forEach",(function(e){i(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,r){"use strict";var n=r(415);(0,r(93).exportTypedArrayStaticMethod)("from",r(462),n)},function(e,t,r){"use strict";var n=r(93),i=r(346).includes,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("includes",(function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,r){"use strict";var n=r(93),i=r(346).indexOf,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("indexOf",(function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,r){"use strict";var n=r(55),i=r(93),a=r(366),o=r(87)("iterator"),s=n.Uint8Array,l=a.values,u=a.keys,d=a.entries,c=i.aTypedArray,h=i.exportTypedArrayMethod,f=s&&s.prototype[o],m=!!f&&("values"==f.name||null==f.name),p=function(){return l.call(c(this))};h("entries",(function(){return d.call(c(this))})),h("keys",(function(){return u.call(c(this))})),h("values",p,!m),h(o,p,!m)},function(e,t,r){"use strict";var n=r(93),i=n.aTypedArray,a=n.exportTypedArrayMethod,o=[].join;a("join",(function(e){return o.apply(i(this),arguments)}))},function(e,t,r){"use strict";var n=r(93),i=r(438),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("lastIndexOf",(function(e){return i.apply(a(this),arguments)}))},function(e,t,r){"use strict";var n=r(93),i=r(230).map,a=r(381),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("map",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(a(e))(t)}))}))},function(e,t,r){"use strict";var n=r(93),i=r(415),a=n.aTypedArrayConstructor;(0,n.exportTypedArrayStaticMethod)("of",(function(){for(var e=0,t=arguments.length,r=new(a(this))(t);t>e;)r[e]=arguments[e++];return r}),i)},function(e,t,r){"use strict";var n=r(93),i=r(367).left,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduce",(function(e){return i(a(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},function(e,t,r){"use strict";var n=r(93),i=r(367).right,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduceRight",(function(e){return i(a(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},function(e,t,r){"use strict";var n=r(93),i=n.aTypedArray,a=n.exportTypedArrayMethod,o=Math.floor;a("reverse",(function(){for(var e,t=i(this).length,r=o(t/2),n=0;n<r;)e=this[n],this[n++]=this[--t],this[t]=e;return this}))},function(e,t,r){"use strict";var n=r(93),i=r(86),a=r(461),o=r(143),s=r(44),l=n.aTypedArray;(0,n.exportTypedArrayMethod)("set",(function(e){l(this);var t=a(arguments.length>1?arguments[1]:void 0,1),r=this.length,n=o(e),s=i(n.length),u=0;if(s+t>r)throw RangeError("Wrong length");for(;u<s;)this[t+u]=n[u++]}),s((function(){new Int8Array(1).set({})})))},function(e,t,r){"use strict";var n=r(93),i=r(381),a=r(44),o=n.aTypedArray,s=n.exportTypedArrayMethod,l=[].slice;s("slice",(function(e,t){for(var r=l.call(o(this),e,t),n=i(this),a=0,s=r.length,u=new n(s);s>a;)u[a]=r[a++];return u}),a((function(){new Int8Array(1).slice()})))},function(e,t,r){"use strict";var n=r(93),i=r(230).some,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("some",(function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,r){"use strict";var n=r(93),i=r(55),a=r(44),o=r(282),s=r(86),l=r(439),u=r(440),d=r(441),c=r(323),h=r(402),f=n.aTypedArray,m=n.exportTypedArrayMethod,p=i.Uint16Array,g=p&&p.prototype.sort,_=!!g&&!a((function(){var e=new p(2);e.sort(null),e.sort({})})),v=!!g&&!a((function(){if(c)return c<74;if(u)return u<67;if(d)return!0;if(h)return h<602;var e,t,r=new p(516),n=Array(516);for(e=0;e<516;e++)t=e%4,r[e]=515-e,n[e]=e-2*t+3;for(r.sort((function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(r[e]!==n[e])return!0}));m("sort",(function(e){if(void 0!==e&&o(e),v)return g.call(this,e);f(this);var t,r=s(this.length),n=Array(r);for(t=0;t<r;t++)n[t]=this[t];for(n=l(this,function(e){return function(t,r){return void 0!==e?+e(t,r)||0:r!=r?-1:t!=t?1:0===t&&0===r?1/t>0&&1/r<0?1:-1:t>r}}(e)),t=0;t<r;t++)this[t]=n[t];return this}),!v||_)},function(e,t,r){"use strict";var n=r(93),i=r(86),a=r(325),o=r(381),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("subarray",(function(e,t){var r=s(this),n=r.length,l=a(e,n);return new(o(r))(r.buffer,r.byteOffset+l*r.BYTES_PER_ELEMENT,i((void 0===t?n:a(t,n))-l))}))},function(e,t,r){"use strict";var n=r(55),i=r(93),a=r(44),o=n.Int8Array,s=i.aTypedArray,l=i.exportTypedArrayMethod,u=[].toLocaleString,d=[].slice,c=!!o&&a((function(){u.call(new o(1))}));l("toLocaleString",(function(){return u.apply(c?d.call(s(this)):s(this),arguments)}),a((function(){return[1,2].toLocaleString()!=new o([1,2]).toLocaleString()}))||!a((function(){o.prototype.toLocaleString.call([1,2])})))},function(e,t,r){"use strict";var n=r(93).exportTypedArrayMethod,i=r(44),a=r(55).Uint8Array,o=a&&a.prototype||{},s=[].toString,l=[].join;i((function(){s.call({})}))&&(s=function(){return l.call(this)});var u=o.toString!=s;n("toString",s,u)},function(e,t,r){"use strict";var n=r(15),i=r(96),a=String.fromCharCode,o=/^[\da-f]{2}$/i,s=/^[\da-f]{4}$/i;n({global:!0},{unescape:function(e){for(var t,r,n=i(e),l="",u=n.length,d=0;d<u;){if("%"===(t=n.charAt(d++)))if("u"===n.charAt(d)){if(r=n.slice(d+1,d+5),s.test(r)){l+=a(parseInt(r,16)),d+=5;continue}}else if(r=n.slice(d,d+2),o.test(r)){l+=a(parseInt(r,16)),d+=2;continue}l+=t}return l}})},function(e,t,r){"use strict";var n,i=r(55),a=r(338),o=r(332),s=r(369),l=r(463),u=r(80),d=r(228).enforce,c=r(425),h=!i.ActiveXObject&&"ActiveXObject"in i,f=Object.isExtensible,m=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},p=e.exports=s("WeakMap",m,l);if(c&&h){n=l.getConstructor(m,"WeakMap",!0),o.enable();var g=p.prototype,_=g.delete,v=g.has,y=g.get,b=g.set;a(g,{delete:function(e){if(u(e)&&!f(e)){var t=d(this);return t.frozen||(t.frozen=new n),_.call(this,e)||t.frozen.delete(e)}return _.call(this,e)},has:function(e){if(u(e)&&!f(e)){var t=d(this);return t.frozen||(t.frozen=new n),v.call(this,e)||t.frozen.has(e)}return v.call(this,e)},get:function(e){if(u(e)&&!f(e)){var t=d(this);return t.frozen||(t.frozen=new n),v.call(this,e)?y.call(this,e):t.frozen.get(e)}return y.call(this,e)},set:function(e,t){if(u(e)&&!f(e)){var r=d(this);r.frozen||(r.frozen=new n),v.call(this,e)?b.call(this,e,t):r.frozen.set(e,t)}else b.call(this,e,t);return this}})}},function(e,t,r){"use strict";r(369)("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(463))},function(e,t,r){var n=r(55),i=r(464),a=r(435),o=r(280);for(var s in i){var l=n[s],u=l&&l.prototype;if(u&&u.forEach!==a)try{o(u,"forEach",a)}catch(e){u.forEach=a}}},function(e,t,r){var n=r(55),i=r(464),a=r(366),o=r(280),s=r(87),l=s("iterator"),u=s("toStringTag"),d=a.values;for(var c in i){var h=n[c],f=h&&h.prototype;if(f){if(f[l]!==d)try{o(f,l,d)}catch(e){f[l]=d}if(f[u]||o(f,u,c),i[c])for(var m in a)if(f[m]!==a[m])try{o(f,m,a[m])}catch(e){f[m]=a[m]}}}},function(e,t,r){var n=r(15),i=r(55),a=r(408);n({global:!0,bind:!0,enumerable:!0,forced:!i.setImmediate||!i.clearImmediate},{setImmediate:a.set,clearImmediate:a.clear})},function(e,t,r){var n=r(15),i=r(55),a=r(454),o=r(336),s=i.process;n({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(e){var t=o&&s.domain;a(t?t.bind(e):e)}})},function(e,t,r){var n=r(15),i=r(55),a=r(315),o=[].slice,s=function(e){return function(t,r){var n=arguments.length>2,i=n?o.call(arguments,2):void 0;return e(n?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,r)}};n({global:!0,bind:!0,forced:/MSIE .\./.test(a)},{setTimeout:s(i.setTimeout),setInterval:s(i.setInterval)})},function(e,t,r){"use strict";r(458);var n,i=r(15),a=r(89),o=r(465),s=r(55),l=r(394),u=r(281),d=r(328),c=r(148),h=r(449),f=r(436),m=r(377).codeAt,p=r(853),g=r(96),_=r(305),v=r(466),y=r(228),b=s.URL,M=v.URLSearchParams,w=v.getState,L=y.set,T=y.getterFor("URL"),x=Math.floor,k=Math.pow,S=/[A-Za-z]/,D=/[\d+-.A-Za-z]/,A=/\d/,E=/^0x/i,Y=/^[0-7]+$/,O=/^\d+$/,P=/^[\dA-Fa-f]+$/,R=/[\0\t\n\r #%/:<>?@[\\\]^|]/,C=/[\0\t\n\r #/:<>?@[\\\]^|]/,I=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,F=/[\t\n\r]/g,j=function(e,t){var r,n,i;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return"Invalid host";if(!(r=H(t.slice(1,-1))))return"Invalid host";e.host=r}else if(q(e)){if(t=p(t),R.test(t))return"Invalid host";if(null===(r=N(t)))return"Invalid host";e.host=r}else{if(C.test(t))return"Invalid host";for(r="",n=f(t),i=0;i<n.length;i++)r+=G(n[i],U);e.host=r}},N=function(e){var t,r,n,i,a,o,s,l=e.split(".");if(l.length&&""==l[l.length-1]&&l.pop(),(t=l.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(i=l[n]))return e;if(a=10,i.length>1&&"0"==i.charAt(0)&&(a=E.test(i)?16:8,i=i.slice(8==a?1:2)),""===i)o=0;else{if(!(10==a?O:8==a?Y:P).test(i))return e;o=parseInt(i,a)}r.push(o)}for(n=0;n<t;n++)if(o=r[n],n==t-1){if(o>=k(256,5-t))return null}else if(o>255)return null;for(s=r.pop(),n=0;n<r.length;n++)s+=r[n]*k(256,3-n);return s},H=function(e){var t,r,n,i,a,o,s,l=[0,0,0,0,0,0,0,0],u=0,d=null,c=0,h=function(){return e.charAt(c)};if(":"==h()){if(":"!=e.charAt(1))return;c+=2,d=++u}for(;h();){if(8==u)return;if(":"!=h()){for(t=r=0;r<4&&P.test(h());)t=16*t+parseInt(h(),16),c++,r++;if("."==h()){if(0==r)return;if(c-=r,u>6)return;for(n=0;h();){if(i=null,n>0){if(!("."==h()&&n<4))return;c++}if(!A.test(h()))return;for(;A.test(h());){if(a=parseInt(h(),10),null===i)i=a;else{if(0==i)return;i=10*i+a}if(i>255)return;c++}l[u]=256*l[u]+i,2!=++n&&4!=n||u++}if(4!=n)return;break}if(":"==h()){if(c++,!h())return}else if(h())return;l[u++]=t}else{if(null!==d)return;c++,d=++u}}if(null!==d)for(o=u-d,u=7;0!=u&&o>0;)s=l[u],l[u--]=l[d+o-1],l[d+--o]=s;else if(8!=u)return;return l},B=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)t.unshift(e%256),e=x(e/256);return t.join(".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,i=0,a=0;a<8;a++)0!==e[a]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=a),++i);return i>r&&(t=n,r=i),t}(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=e[r].toString(16),r<7&&(t+=":")));return"["+t+"]"}return e},U={},W=h({},U,{" ":1,'"':1,"<":1,">":1,"`":1}),z=h({},W,{"#":1,"?":1,"{":1,"}":1}),V=h({},z,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),G=function(e,t){var r=m(e,0);return r>32&&r<127&&!c(t,e)?e:encodeURIComponent(e)},K={ftp:21,file:null,http:80,https:443,ws:80,wss:443},q=function(e){return c(K,e.scheme)},J=function(e){return""!=e.username||""!=e.password},X=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},$=function(e,t){var r;return 2==e.length&&S.test(e.charAt(0))&&(":"==(r=e.charAt(1))||!t&&"|"==r)},Z=function(e){var t;return e.length>1&&$(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},Q=function(e){var t=e.path,r=t.length;!r||"file"==e.scheme&&1==r&&$(t[0],!0)||t.pop()},ee=function(e){return"."===e||"%2e"===e.toLowerCase()},te={},re={},ne={},ie={},ae={},oe={},se={},le={},ue={},de={},ce={},he={},fe={},me={},pe={},ge={},_e={},ve={},ye={},be={},Me={},we=function(e,t,r,i){var a,o,s,l,u,d=r||te,h=0,m="",p=!1,g=!1,_=!1;for(r||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(I,"")),t=t.replace(F,""),a=f(t);h<=a.length;){switch(o=a[h],d){case te:if(!o||!S.test(o)){if(r)return"Invalid scheme";d=ne;continue}m+=o.toLowerCase(),d=re;break;case re:if(o&&(D.test(o)||"+"==o||"-"==o||"."==o))m+=o.toLowerCase();else{if(":"!=o){if(r)return"Invalid scheme";m="",d=ne,h=0;continue}if(r&&(q(e)!=c(K,m)||"file"==m&&(J(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=m,r)return void(q(e)&&K[e.scheme]==e.port&&(e.port=null));m="","file"==e.scheme?d=me:q(e)&&i&&i.scheme==e.scheme?d=ie:q(e)?d=le:"/"==a[h+1]?(d=ae,h++):(e.cannotBeABaseURL=!0,e.path.push(""),d=ye)}break;case ne:if(!i||i.cannotBeABaseURL&&"#"!=o)return"Invalid scheme";if(i.cannotBeABaseURL&&"#"==o){e.scheme=i.scheme,e.path=i.path.slice(),e.query=i.query,e.fragment="",e.cannotBeABaseURL=!0,d=Me;break}d="file"==i.scheme?me:oe;continue;case ie:if("/"!=o||"/"!=a[h+1]){d=oe;continue}d=ue,h++;break;case ae:if("/"==o){d=de;break}d=ve;continue;case oe:if(e.scheme=i.scheme,o==n)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query;else if("/"==o||"\\"==o&&q(e))d=se;else if("?"==o)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query="",d=be;else{if("#"!=o){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.path.pop(),d=ve;continue}e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query,e.fragment="",d=Me}break;case se:if(!q(e)||"/"!=o&&"\\"!=o){if("/"!=o){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,d=ve;continue}d=de}else d=ue;break;case le:if(d=ue,"/"!=o||"/"!=m.charAt(h+1))continue;h++;break;case ue:if("/"!=o&&"\\"!=o){d=de;continue}break;case de:if("@"==o){p&&(m="%40"+m),p=!0,s=f(m);for(var v=0;v<s.length;v++){var y=s[v];if(":"!=y||_){var b=G(y,V);_?e.password+=b:e.username+=b}else _=!0}m=""}else if(o==n||"/"==o||"?"==o||"#"==o||"\\"==o&&q(e)){if(p&&""==m)return"Invalid authority";h-=f(m).length+1,m="",d=ce}else m+=o;break;case ce:case he:if(r&&"file"==e.scheme){d=ge;continue}if(":"!=o||g){if(o==n||"/"==o||"?"==o||"#"==o||"\\"==o&&q(e)){if(q(e)&&""==m)return"Invalid host";if(r&&""==m&&(J(e)||null!==e.port))return;if(l=j(e,m))return l;if(m="",d=_e,r)return;continue}"["==o?g=!0:"]"==o&&(g=!1),m+=o}else{if(""==m)return"Invalid host";if(l=j(e,m))return l;if(m="",d=fe,r==he)return}break;case fe:if(!A.test(o)){if(o==n||"/"==o||"?"==o||"#"==o||"\\"==o&&q(e)||r){if(""!=m){var M=parseInt(m,10);if(M>65535)return"Invalid port";e.port=q(e)&&M===K[e.scheme]?null:M,m=""}if(r)return;d=_e;continue}return"Invalid port"}m+=o;break;case me:if(e.scheme="file","/"==o||"\\"==o)d=pe;else{if(!i||"file"!=i.scheme){d=ve;continue}if(o==n)e.host=i.host,e.path=i.path.slice(),e.query=i.query;else if("?"==o)e.host=i.host,e.path=i.path.slice(),e.query="",d=be;else{if("#"!=o){Z(a.slice(h).join(""))||(e.host=i.host,e.path=i.path.slice(),Q(e)),d=ve;continue}e.host=i.host,e.path=i.path.slice(),e.query=i.query,e.fragment="",d=Me}}break;case pe:if("/"==o||"\\"==o){d=ge;break}i&&"file"==i.scheme&&!Z(a.slice(h).join(""))&&($(i.path[0],!0)?e.path.push(i.path[0]):e.host=i.host),d=ve;continue;case ge:if(o==n||"/"==o||"\\"==o||"?"==o||"#"==o){if(!r&&$(m))d=ve;else if(""==m){if(e.host="",r)return;d=_e}else{if(l=j(e,m))return l;if("localhost"==e.host&&(e.host=""),r)return;m="",d=_e}continue}m+=o;break;case _e:if(q(e)){if(d=ve,"/"!=o&&"\\"!=o)continue}else if(r||"?"!=o)if(r||"#"!=o){if(o!=n&&(d=ve,"/"!=o))continue}else e.fragment="",d=Me;else e.query="",d=be;break;case ve:if(o==n||"/"==o||"\\"==o&&q(e)||!r&&("?"==o||"#"==o)){if(".."===(u=(u=m).toLowerCase())||"%2e."===u||".%2e"===u||"%2e%2e"===u?(Q(e),"/"==o||"\\"==o&&q(e)||e.path.push("")):ee(m)?"/"==o||"\\"==o&&q(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&$(m)&&(e.host&&(e.host=""),m=m.charAt(0)+":"),e.path.push(m)),m="","file"==e.scheme&&(o==n||"?"==o||"#"==o))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==o?(e.query="",d=be):"#"==o&&(e.fragment="",d=Me)}else m+=G(o,z);break;case ye:"?"==o?(e.query="",d=be):"#"==o?(e.fragment="",d=Me):o!=n&&(e.path[0]+=G(o,U));break;case be:r||"#"!=o?o!=n&&("'"==o&&q(e)?e.query+="%27":e.query+="#"==o?"%23":G(o,U)):(e.fragment="",d=Me);break;case Me:o!=n&&(e.fragment+=G(o,W))}h++}},Le=function(e){var t,r,n=d(this,Le,"URL"),i=arguments.length>1?arguments[1]:void 0,o=g(e),s=L(n,{type:"URL"});if(void 0!==i)if(i instanceof Le)t=T(i);else if(r=we(t={},g(i)))throw TypeError(r);if(r=we(s,o,null,t))throw TypeError(r);var l=s.searchParams=new M,u=w(l);u.updateSearchParams(s.query),u.updateURL=function(){s.query=String(l)||null},a||(n.href=xe.call(n),n.origin=ke.call(n),n.protocol=Se.call(n),n.username=De.call(n),n.password=Ae.call(n),n.host=Ee.call(n),n.hostname=Ye.call(n),n.port=Oe.call(n),n.pathname=Pe.call(n),n.search=Re.call(n),n.searchParams=Ce.call(n),n.hash=Ie.call(n))},Te=Le.prototype,xe=function(){var e=T(this),t=e.scheme,r=e.username,n=e.password,i=e.host,a=e.port,o=e.path,s=e.query,l=e.fragment,u=t+":";return null!==i?(u+="//",J(e)&&(u+=r+(n?":"+n:"")+"@"),u+=B(i),null!==a&&(u+=":"+a)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?o[0]:o.length?"/"+o.join("/"):"",null!==s&&(u+="?"+s),null!==l&&(u+="#"+l),u},ke=function(){var e=T(this),t=e.scheme,r=e.port;if("blob"==t)try{return new Le(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&q(e)?t+"://"+B(e.host)+(null!==r?":"+r:""):"null"},Se=function(){return T(this).scheme+":"},De=function(){return T(this).username},Ae=function(){return T(this).password},Ee=function(){var e=T(this),t=e.host,r=e.port;return null===t?"":null===r?B(t):B(t)+":"+r},Ye=function(){var e=T(this).host;return null===e?"":B(e)},Oe=function(){var e=T(this).port;return null===e?"":String(e)},Pe=function(){var e=T(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Re=function(){var e=T(this).query;return e?"?"+e:""},Ce=function(){return T(this).searchParams},Ie=function(){var e=T(this).fragment;return e?"#"+e:""},Fe=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(a&&l(Te,{href:Fe(xe,(function(e){var t=T(this),r=g(e),n=we(t,r);if(n)throw TypeError(n);w(t.searchParams).updateSearchParams(t.query)})),origin:Fe(ke),protocol:Fe(Se,(function(e){var t=T(this);we(t,g(e)+":",te)})),username:Fe(De,(function(e){var t=T(this),r=f(g(e));if(!X(t)){t.username="";for(var n=0;n<r.length;n++)t.username+=G(r[n],V)}})),password:Fe(Ae,(function(e){var t=T(this),r=f(g(e));if(!X(t)){t.password="";for(var n=0;n<r.length;n++)t.password+=G(r[n],V)}})),host:Fe(Ee,(function(e){var t=T(this);t.cannotBeABaseURL||we(t,g(e),ce)})),hostname:Fe(Ye,(function(e){var t=T(this);t.cannotBeABaseURL||we(t,g(e),he)})),port:Fe(Oe,(function(e){var t=T(this);X(t)||(""==(e=g(e))?t.port=null:we(t,e,fe))})),pathname:Fe(Pe,(function(e){var t=T(this);t.cannotBeABaseURL||(t.path=[],we(t,g(e),_e))})),search:Fe(Re,(function(e){var t=T(this);""==(e=g(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",we(t,e,be)),w(t.searchParams).updateSearchParams(t.query)})),searchParams:Fe(Ce),hash:Fe(Ie,(function(e){var t=T(this);""!=(e=g(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",we(t,e,Me)):t.fragment=null}))}),u(Te,"toJSON",(function(){return xe.call(this)}),{enumerable:!0}),u(Te,"toString",(function(){return xe.call(this)}),{enumerable:!0}),b){var je=b.createObjectURL,Ne=b.revokeObjectURL;je&&u(Le,"createObjectURL",(function(e){return je.apply(b,arguments)})),Ne&&u(Le,"revokeObjectURL",(function(e){return Ne.apply(b,arguments)}))}_(Le,"URL"),i({global:!0,forced:!o,sham:!a},{URL:Le})},function(e,t,r){"use strict";var n=/[^\0-\u007E]/,i=/[.\u3002\uFF0E\uFF61]/g,a="Overflow: input needs wider integers to process",o=Math.floor,s=String.fromCharCode,l=function(e){return e+22+75*(e<26)},u=function(e,t,r){var n=0;for(e=r?o(e/700):e>>1,e+=o(e/t);e>455;n+=36)e=o(e/35);return o(n+36*e/(e+38))},d=function(e){var t,r,n=[],i=(e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var a=e.charCodeAt(r++);56320==(64512&a)?t.push(((1023&i)<<10)+(1023&a)+65536):(t.push(i),r--)}else t.push(i)}return t}(e)).length,d=128,c=0,h=72;for(t=0;t<e.length;t++)(r=e[t])<128&&n.push(s(r));var f=n.length,m=f;for(f&&n.push("-");m<i;){var p=2147483647;for(t=0;t<e.length;t++)(r=e[t])>=d&&r<p&&(p=r);var g=m+1;if(p-d>o((2147483647-c)/g))throw RangeError(a);for(c+=(p-d)*g,d=p,t=0;t<e.length;t++){if((r=e[t])<d&&++c>2147483647)throw RangeError(a);if(r==d){for(var _=c,v=36;;v+=36){var y=v<=h?1:v>=h+26?26:v-h;if(_<y)break;var b=_-y,M=36-y;n.push(s(l(y+b%M))),_=o(b/M)}n.push(s(l(_))),h=u(c,g,m==f),c=0,++m}}++c,++d}return n.join("")};e.exports=function(e){var t,r,a=[],o=e.toLowerCase().replace(i,".").split(".");for(t=0;t<o.length;t++)r=o[t],a.push(n.test(r)?"xn--"+d(r):r);return a.join(".")}},function(e,t,r){"use strict";r(15)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},function(e,t,r){var n={"./af":467,"./af.js":467,"./ar":468,"./ar-dz":469,"./ar-dz.js":469,"./ar-kw":470,"./ar-kw.js":470,"./ar-ly":471,"./ar-ly.js":471,"./ar-ma":472,"./ar-ma.js":472,"./ar-sa":473,"./ar-sa.js":473,"./ar-tn":474,"./ar-tn.js":474,"./ar.js":468,"./az":475,"./az.js":475,"./be":476,"./be.js":476,"./bg":477,"./bg.js":477,"./bm":478,"./bm.js":478,"./bn":479,"./bn-bd":480,"./bn-bd.js":480,"./bn.js":479,"./bo":481,"./bo.js":481,"./br":482,"./br.js":482,"./bs":483,"./bs.js":483,"./ca":484,"./ca.js":484,"./cs":485,"./cs.js":485,"./cv":486,"./cv.js":486,"./cy":487,"./cy.js":487,"./da":488,"./da.js":488,"./de":489,"./de-at":490,"./de-at.js":490,"./de-ch":491,"./de-ch.js":491,"./de.js":489,"./dv":492,"./dv.js":492,"./el":493,"./el.js":493,"./en-au":494,"./en-au.js":494,"./en-ca":495,"./en-ca.js":495,"./en-gb":496,"./en-gb.js":496,"./en-ie":497,"./en-ie.js":497,"./en-il":498,"./en-il.js":498,"./en-in":499,"./en-in.js":499,"./en-nz":500,"./en-nz.js":500,"./en-sg":501,"./en-sg.js":501,"./eo":502,"./eo.js":502,"./es":503,"./es-do":504,"./es-do.js":504,"./es-mx":505,"./es-mx.js":505,"./es-us":506,"./es-us.js":506,"./es.js":503,"./et":507,"./et.js":507,"./eu":508,"./eu.js":508,"./fa":509,"./fa.js":509,"./fi":510,"./fi.js":510,"./fil":511,"./fil.js":511,"./fo":512,"./fo.js":512,"./fr":513,"./fr-ca":514,"./fr-ca.js":514,"./fr-ch":515,"./fr-ch.js":515,"./fr.js":513,"./fy":516,"./fy.js":516,"./ga":517,"./ga.js":517,"./gd":518,"./gd.js":518,"./gl":519,"./gl.js":519,"./gom-deva":520,"./gom-deva.js":520,"./gom-latn":521,"./gom-latn.js":521,"./gu":522,"./gu.js":522,"./he":523,"./he.js":523,"./hi":524,"./hi.js":524,"./hr":525,"./hr.js":525,"./hu":526,"./hu.js":526,"./hy-am":527,"./hy-am.js":527,"./id":528,"./id.js":528,"./is":529,"./is.js":529,"./it":530,"./it-ch":531,"./it-ch.js":531,"./it.js":530,"./ja":532,"./ja.js":532,"./jv":533,"./jv.js":533,"./ka":534,"./ka.js":534,"./kk":535,"./kk.js":535,"./km":536,"./km.js":536,"./kn":537,"./kn.js":537,"./ko":538,"./ko.js":538,"./ku":539,"./ku.js":539,"./ky":540,"./ky.js":540,"./lb":541,"./lb.js":541,"./lo":542,"./lo.js":542,"./lt":543,"./lt.js":543,"./lv":544,"./lv.js":544,"./me":545,"./me.js":545,"./mi":546,"./mi.js":546,"./mk":547,"./mk.js":547,"./ml":548,"./ml.js":548,"./mn":549,"./mn.js":549,"./mr":550,"./mr.js":550,"./ms":551,"./ms-my":552,"./ms-my.js":552,"./ms.js":551,"./mt":553,"./mt.js":553,"./my":554,"./my.js":554,"./nb":555,"./nb.js":555,"./ne":556,"./ne.js":556,"./nl":557,"./nl-be":558,"./nl-be.js":558,"./nl.js":557,"./nn":559,"./nn.js":559,"./oc-lnc":560,"./oc-lnc.js":560,"./pa-in":561,"./pa-in.js":561,"./pl":562,"./pl.js":562,"./pt":563,"./pt-br":564,"./pt-br.js":564,"./pt.js":563,"./ro":565,"./ro.js":565,"./ru":566,"./ru.js":566,"./sd":567,"./sd.js":567,"./se":568,"./se.js":568,"./si":569,"./si.js":569,"./sk":570,"./sk.js":570,"./sl":571,"./sl.js":571,"./sq":572,"./sq.js":572,"./sr":573,"./sr-cyrl":574,"./sr-cyrl.js":574,"./sr.js":573,"./ss":575,"./ss.js":575,"./sv":576,"./sv.js":576,"./sw":577,"./sw.js":577,"./ta":578,"./ta.js":578,"./te":579,"./te.js":579,"./tet":580,"./tet.js":580,"./tg":581,"./tg.js":581,"./th":582,"./th.js":582,"./tk":583,"./tk.js":583,"./tl-ph":584,"./tl-ph.js":584,"./tlh":585,"./tlh.js":585,"./tr":586,"./tr.js":586,"./tzl":587,"./tzl.js":587,"./tzm":588,"./tzm-latn":589,"./tzm-latn.js":589,"./tzm.js":588,"./ug-cn":590,"./ug-cn.js":590,"./uk":591,"./uk.js":591,"./ur":592,"./ur.js":592,"./uz":593,"./uz-latn":594,"./uz-latn.js":594,"./uz.js":593,"./vi":595,"./vi.js":595,"./x-pseudo":596,"./x-pseudo.js":596,"./yo":597,"./yo.js":597,"./zh-cn":598,"./zh-cn.js":598,"./zh-hk":599,"./zh-hk.js":599,"./zh-mo":600,"./zh-mo.js":600,"./zh-tw":601,"./zh-tw.js":601};function i(e){var t=a(e);return r(t)}function a(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}i.keys=function(){return Object.keys(n)},i.resolve=a,e.exports=i,i.id=855},function(e,t,r){
387
- /*!
388
- * chartjs-plugin-datalabels v0.7.0
389
- * https://chartjs-plugin-datalabels.netlify.com
390
- * (c) 2019 Chart.js Contributors
391
- * Released under the MIT license
392
- */
393
- e.exports=function(e){"use strict";var t=(e=e&&e.hasOwnProperty("default")?e.default:e).helpers,r=function(){if("undefined"!=typeof window){if(window.devicePixelRatio)return window.devicePixelRatio;var e=window.screen;if(e)return(e.deviceXDPI||1)/(e.logicalXDPI||1)}return 1}(),n={toTextLines:function(e){var r,n=[];for(e=[].concat(e);e.length;)"string"==typeof(r=e.pop())?n.unshift.apply(n,r.split("\n")):Array.isArray(r)?e.push.apply(e,r):t.isNullOrUndef(e)||n.unshift(""+r);return n},toFontString:function(e){return!e||t.isNullOrUndef(e.size)||t.isNullOrUndef(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family},textSize:function(e,t,r){var n,i=[].concat(t),a=i.length,o=e.font,s=0;for(e.font=r.string,n=0;n<a;++n)s=Math.max(e.measureText(i[n]).width,s);return e.font=o,{height:a*r.lineHeight,width:s}},parseFont:function(r){var i=e.defaults.global,a=t.valueOrDefault(r.size,i.defaultFontSize),o={family:t.valueOrDefault(r.family,i.defaultFontFamily),lineHeight:t.options.toLineHeight(r.lineHeight,a),size:a,style:t.valueOrDefault(r.style,i.defaultFontStyle),weight:t.valueOrDefault(r.weight,null),string:""};return o.string=n.toFontString(o),o},bound:function(e,t,r){return Math.max(e,Math.min(t,r))},arrayDiff:function(e,t){var r,n,i,a,o=e.slice(),s=[];for(r=0,i=t.length;r<i;++r)a=t[r],-1===(n=o.indexOf(a))?s.push([a,1]):o.splice(n,1);for(r=0,i=o.length;r<i;++r)s.push([o[r],-1]);return s},rasterize:function(e){return Math.round(e*r)/r}};function i(e,t){var r=t.x,n=t.y;if(null===r)return{x:0,y:-1};if(null===n)return{x:1,y:0};var i=e.x-r,a=e.y-n,o=Math.sqrt(i*i+a*a);return{x:o?i/o:0,y:o?a/o:-1}}function a(e,t,r){var n=0;return e<r.left?n|=1:e>r.right&&(n|=2),t<r.top?n|=8:t>r.bottom&&(n|=4),n}function o(e,t){var r,n,i=t.anchor,o=e;return t.clamp&&(o=function(e,t){for(var r,n,i,o=e.x0,s=e.y0,l=e.x1,u=e.y1,d=a(o,s,t),c=a(l,u,t);d|c&&!(d&c);)8&(r=d||c)?(n=o+(l-o)*(t.top-s)/(u-s),i=t.top):4&r?(n=o+(l-o)*(t.bottom-s)/(u-s),i=t.bottom):2&r?(i=s+(u-s)*(t.right-o)/(l-o),n=t.right):1&r&&(i=s+(u-s)*(t.left-o)/(l-o),n=t.left),r===d?d=a(o=n,s=i,t):c=a(l=n,u=i,t);return{x0:o,x1:l,y0:s,y1:u}}(o,t.area)),"start"===i?(r=o.x0,n=o.y0):"end"===i?(r=o.x1,n=o.y1):(r=(o.x0+o.x1)/2,n=(o.y0+o.y1)/2),function(e,t,r,n,i){switch(i){case"center":r=n=0;break;case"bottom":r=0,n=1;break;case"right":r=1,n=0;break;case"left":r=-1,n=0;break;case"top":r=0,n=-1;break;case"start":r=-r,n=-n;break;case"end":break;default:i*=Math.PI/180,r=Math.cos(i),n=Math.sin(i)}return{x:e,y:t,vx:r,vy:n}}(r,n,e.vx,e.vy,t.align)}var s=function(e,t){var r=(e.startAngle+e.endAngle)/2,n=Math.cos(r),i=Math.sin(r),a=e.innerRadius,s=e.outerRadius;return o({x0:e.x+n*a,y0:e.y+i*a,x1:e.x+n*s,y1:e.y+i*s,vx:n,vy:i},t)},l=function(e,t){var r=i(e,t.origin),n=r.x*e.radius,a=r.y*e.radius;return o({x0:e.x-n,y0:e.y-a,x1:e.x+n,y1:e.y+a,vx:r.x,vy:r.y},t)},u=function(e,t){var r=i(e,t.origin),n=e.x,a=e.y,s=0,l=0;return e.horizontal?(n=Math.min(e.x,e.base),s=Math.abs(e.base-e.x)):(a=Math.min(e.y,e.base),l=Math.abs(e.base-e.y)),o({x0:n,y0:a+l,x1:n+s,y1:a,vx:r.x,vy:r.y},t)},d=function(e,t){var r=i(e,t.origin);return o({x0:e.x,y0:e.y,x1:e.x,y1:e.y,vx:r.x,vy:r.y},t)},c=e.helpers,h=n.rasterize;function f(e){var t=e._model.horizontal,r=e._scale||t&&e._xScale||e._yScale;if(!r)return null;if(void 0!==r.xCenter&&void 0!==r.yCenter)return{x:r.xCenter,y:r.yCenter};var n=r.getBasePixel();return t?{x:n,y:null}:{x:null,y:n}}function m(e,t,r){var n=e.shadowBlur,i=r.stroked,a=h(r.x),o=h(r.y),s=h(r.w);i&&e.strokeText(t,a,o,s),r.filled&&(n&&i&&(e.shadowBlur=0),e.fillText(t,a,o,s),n&&i&&(e.shadowBlur=n))}var p=function(e,t,r,n){var i=this;i._config=e,i._index=n,i._model=null,i._rects=null,i._ctx=t,i._el=r};c.extend(p.prototype,{_modelize:function(t,r,i,a){var o,h=this._index,m=c.options.resolve,p=n.parseFont(m([i.font,{}],a,h)),g=m([i.color,e.defaults.global.defaultFontColor],a,h);return{align:m([i.align,"center"],a,h),anchor:m([i.anchor,"center"],a,h),area:a.chart.chartArea,backgroundColor:m([i.backgroundColor,null],a,h),borderColor:m([i.borderColor,null],a,h),borderRadius:m([i.borderRadius,0],a,h),borderWidth:m([i.borderWidth,0],a,h),clamp:m([i.clamp,!1],a,h),clip:m([i.clip,!1],a,h),color:g,display:t,font:p,lines:r,offset:m([i.offset,0],a,h),opacity:m([i.opacity,1],a,h),origin:f(this._el),padding:c.options.toPadding(m([i.padding,0],a,h)),positioner:(o=this._el,o instanceof e.elements.Arc?s:o instanceof e.elements.Point?l:o instanceof e.elements.Rectangle?u:d),rotation:m([i.rotation,0],a,h)*(Math.PI/180),size:n.textSize(this._ctx,r,p),textAlign:m([i.textAlign,"start"],a,h),textShadowBlur:m([i.textShadowBlur,0],a,h),textShadowColor:m([i.textShadowColor,g],a,h),textStrokeColor:m([i.textStrokeColor,g],a,h),textStrokeWidth:m([i.textStrokeWidth,0],a,h)}},update:function(e){var t,r,i,a=this,o=null,s=null,l=a._index,u=a._config,d=c.options.resolve([u.display,!0],e,l);d&&(t=e.dataset.data[l],r=c.valueOrDefault(c.callback(u.formatter,[t,e]),t),(i=c.isNullOrUndef(r)?[]:n.toTextLines(r)).length&&(s=function(e){var t=e.borderWidth||0,r=e.padding,n=e.size.height,i=e.size.width,a=-i/2,o=-n/2;return{frame:{x:a-r.left-t,y:o-r.top-t,w:i+r.width+2*t,h:n+r.height+2*t},text:{x:a,y:o,w:i,h:n}}}(o=a._modelize(d,i,u,e)))),a._model=o,a._rects=s},geometry:function(){return this._rects?this._rects.frame:{}},rotation:function(){return this._model?this._model.rotation:0},visible:function(){return this._model&&this._model.opacity},model:function(){return this._model},draw:function(e,t){var r,i=e.ctx,a=this._model,o=this._rects;this.visible()&&(i.save(),a.clip&&(r=a.area,i.beginPath(),i.rect(r.left,r.top,r.right-r.left,r.bottom-r.top),i.clip()),i.globalAlpha=n.bound(0,a.opacity,1),i.translate(h(t.x),h(t.y)),i.rotate(a.rotation),function(e,t,r){var n=r.backgroundColor,i=r.borderColor,a=r.borderWidth;(n||i&&a)&&(e.beginPath(),c.canvas.roundedRect(e,h(t.x)+a/2,h(t.y)+a/2,h(t.w)-a,h(t.h)-a,r.borderRadius),e.closePath(),n&&(e.fillStyle=n,e.fill()),i&&a&&(e.strokeStyle=i,e.lineWidth=a,e.lineJoin="miter",e.stroke()))}(i,o.frame,a),function(e,t,r,n){var i,a=n.textAlign,o=n.color,s=!!o,l=n.font,u=t.length,d=n.textStrokeColor,c=n.textStrokeWidth,h=d&&c;if(u&&(s||h))for(r=function(e,t,r){var n=r.lineHeight,i=e.w,a=e.x;return"center"===t?a+=i/2:"end"!==t&&"right"!==t||(a+=i),{h:n,w:i,x:a,y:e.y+n/2}}(r,a,l),e.font=l.string,e.textAlign=a,e.textBaseline="middle",e.shadowBlur=n.textShadowBlur,e.shadowColor=n.textShadowColor,s&&(e.fillStyle=o),h&&(e.lineJoin="round",e.lineWidth=c,e.strokeStyle=d),i=0,u=t.length;i<u;++i)m(e,t[i],{stroked:h,filled:s,w:r.w,x:r.x,y:r.y+r.h*i})}(i,a.lines,o.text,a),i.restore())}});var g=e.helpers,_=Number.MIN_SAFE_INTEGER||-9007199254740991,v=Number.MAX_SAFE_INTEGER||9007199254740991;function y(e,t,r){var n=Math.cos(r),i=Math.sin(r),a=t.x,o=t.y;return{x:a+n*(e.x-a)-i*(e.y-o),y:o+i*(e.x-a)+n*(e.y-o)}}function b(e,t){var r,n,i,a,o,s=v,l=_,u=t.origin;for(r=0;r<e.length;++r)i=(n=e[r]).x-u.x,a=n.y-u.y,o=t.vx*i+t.vy*a,s=Math.min(s,o),l=Math.max(l,o);return{min:s,max:l}}function M(e,t){var r=t.x-e.x,n=t.y-e.y,i=Math.sqrt(r*r+n*n);return{vx:(t.x-e.x)/i,vy:(t.y-e.y)/i,origin:e,ln:i}}var w=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};function L(e,t,r){var n=t.positioner(e,t),i=n.vx,a=n.vy;if(!i&&!a)return{x:n.x,y:n.y};var o=r.w,s=r.h,l=t.rotation,u=Math.abs(o/2*Math.cos(l))+Math.abs(s/2*Math.sin(l)),d=Math.abs(o/2*Math.sin(l))+Math.abs(s/2*Math.cos(l)),c=1/Math.max(Math.abs(i),Math.abs(a));return u*=i*c,d*=a*c,u+=t.offset*i,d+=t.offset*a,{x:n.x+u,y:n.y+d}}g.extend(w.prototype,{center:function(){var e=this._rect;return{x:e.x+e.w/2,y:e.y+e.h/2}},update:function(e,t,r){this._rotation=r,this._rect={x:t.x+e.x,y:t.y+e.y,w:t.w,h:t.h}},contains:function(e){var t=this._rect;return!((e=y(e,this.center(),-this._rotation)).x<t.x-1||e.y<t.y-1||e.x>t.x+t.w+2||e.y>t.y+t.h+2)},intersects:function(e){var t,r,n,i=this._points(),a=e._points(),o=[M(i[0],i[1]),M(i[0],i[3])];for(this._rotation!==e._rotation&&o.push(M(a[0],a[1]),M(a[0],a[3])),t=0;t<o.length;++t)if(r=b(i,o[t]),n=b(a,o[t]),r.max<n.min||n.max<r.min)return!1;return!0},_points:function(){var e=this._rect,t=this._rotation,r=this.center();return[y({x:e.x,y:e.y},r,t),y({x:e.x+e.w,y:e.y},r,t),y({x:e.x+e.w,y:e.y+e.h},r,t),y({x:e.x,y:e.y+e.h},r,t)]}});var T={prepare:function(e){var t,r,n,i,a,o=[];for(t=0,n=e.length;t<n;++t)for(r=0,i=e[t].length;r<i;++r)a=e[t][r],o.push(a),a.$layout={_box:new w,_hidable:!1,_visible:!0,_set:t,_idx:r};return o.sort((function(e,t){var r=e.$layout,n=t.$layout;return r._idx===n._idx?n._set-r._set:n._idx-r._idx})),this.update(o),o},update:function(e){var t,r,n,i,a,o=!1;for(t=0,r=e.length;t<r;++t)i=(n=e[t]).model(),(a=n.$layout)._hidable=i&&"auto"===i.display,a._visible=n.visible(),o|=a._hidable;o&&function(e){var t,r,n,i,a,o;for(t=0,r=e.length;t<r;++t)(i=(n=e[t]).$layout)._visible&&(a=n.geometry(),o=L(n._el._model,n.model(),a),i._box.update(o,a,n.rotation()));!function(e,t){var r,n,i,a;for(r=e.length-1;r>=0;--r)for(i=e[r].$layout,n=r-1;n>=0&&i._visible;--n)(a=e[n].$layout)._visible&&i._box.intersects(a._box)&&t(i,a)}(e,(function(e,t){var r=e._hidable,n=t._hidable;r&&n||n?t._visible=!1:r&&(e._visible=!1)}))}(e)},lookup:function(e,t){var r,n;for(r=e.length-1;r>=0;--r)if((n=e[r].$layout)&&n._visible&&n._box.contains(t))return e[r];return null},draw:function(e,t){var r,n,i,a,o,s;for(r=0,n=t.length;r<n;++r)(a=(i=t[r]).$layout)._visible&&(o=i.geometry(),s=L(i._el._view,i.model(),o),a._box.update(s,o,i.rotation()),i.draw(e,s))}},x=e.helpers,k={align:"center",anchor:"center",backgroundColor:null,borderColor:null,borderRadius:0,borderWidth:0,clamp:!1,clip:!1,color:void 0,display:!0,font:{family:void 0,lineHeight:1.2,size:void 0,style:void 0,weight:null},formatter:function(e){if(x.isNullOrUndef(e))return null;var t,r,n,i=e;if(x.isObject(e))if(x.isNullOrUndef(e.label))if(x.isNullOrUndef(e.r))for(i="",n=0,r=(t=Object.keys(e)).length;n<r;++n)i+=(0!==n?", ":"")+t[n]+": "+e[t[n]];else i=e.r;else i=e.label;return""+i},labels:void 0,listeners:{},offset:4,opacity:1,padding:{top:4,right:4,bottom:4,left:4},rotation:0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,textShadowBlur:0,textShadowColor:void 0},S=e.helpers,D="$datalabels";function A(e,t,r){if(t){var n,i=r.$context,a=r.$groups;t[a._set]&&(n=t[a._set][a._key])&&!0===S.callback(n,[i])&&(e[D]._dirty=!0,r.update(i))}}function E(e,t){var r,n,i=e[D],a=i._listeners;if(a.enter||a.leave){if("mousemove"===t.type)n=T.lookup(i._labels,t);else if("mouseout"!==t.type)return;r=i._hovered,i._hovered=n,function(e,t,r,n){var i,a;(r||n)&&(r?n?r!==n&&(a=i=!0):a=!0:i=!0,a&&A(e,t.leave,r),i&&A(e,t.enter,n))}(e,a,r,n)}}e.defaults.global.plugins.datalabels=k;var Y={id:"datalabels",beforeInit:function(e){e[D]={_actives:[]}},beforeUpdate:function(e){var t=e[D];t._listened=!1,t._listeners={},t._datasets=[],t._labels=[]},afterDatasetUpdate:function(e,t,r){var n,i,a,o,s,l,u,d,c=t.index,h=e[D],f=h._datasets[c]=[],m=e.isDatasetVisible(c),g=e.data.datasets[c],_=function(e,t){var r,n,i,a=e.datalabels,o=[];return!1===a?null:(!0===a&&(a={}),t=S.merge({},[t,a]),n=t.labels||{},i=Object.keys(n),delete t.labels,i.length?i.forEach((function(e){n[e]&&o.push(S.merge({},[t,n[e],{_key:e}]))})):o.push(t),r=o.reduce((function(e,t){return S.each(t.listeners||{},(function(r,n){e[n]=e[n]||{},e[n][t._key||"$default"]=r})),delete t.listeners,e}),{}),{labels:o,listeners:r})}(g,r),v=t.meta.data||[],y=e.ctx;for(y.save(),n=0,a=v.length;n<a;++n)if((u=v[n])[D]=[],m&&u&&!u.hidden&&!u._model.skip)for(i=0,o=_.labels.length;i<o;++i)l=(s=_.labels[i])._key,(d=new p(s,y,u,n)).$groups={_set:c,_key:l||"$default"},d.$context={active:!1,chart:e,dataIndex:n,dataset:g,datasetIndex:c},d.update(d.$context),u[D].push(d),f.push(d);y.restore(),S.merge(h._listeners,_.listeners,{merger:function(e,r,n){r[e]=r[e]||{},r[e][t.index]=n[e],h._listened=!0}})},afterUpdate:function(e,t){e[D]._labels=T.prepare(e[D]._datasets,t)},afterDatasetsDraw:function(e){T.draw(e,e[D]._labels)},beforeEvent:function(e,t){if(e[D]._listened)switch(t.type){case"mousemove":case"mouseout":E(e,t);break;case"click":!function(e,t){var r=e[D],n=r._listeners.click,i=n&&T.lookup(r._labels,t);i&&A(e,n,i)}(e,t)}},afterEvent:function(t){var r,i,a,o,s,l,u,d=t[D],c=d._actives,h=d._actives=t.lastActive||[],f=n.arrayDiff(c,h);for(r=0,i=f.length;r<i;++r)if((s=f[r])[1])for(a=0,o=(u=s[0][D]||[]).length;a<o;++a)(l=u[a]).$context.active=1===s[1],l.update(l.$context);(d._dirty||f.length)&&(T.update(d._labels),function(t){if(!t.animating){for(var r=e.animationService.animations,n=0,i=r.length;n<i;++n)if(r[n].chart===t)return;t.render({duration:1,lazy:!0})}}(t)),delete d._dirty}};return e.plugins.register(Y),Y}(r(357))},function(e,t,r){
394
- /*!
395
- * chartjs-plugin-style v0.5.0
396
- * https://nagix.github.io/chartjs-plugin-style
397
- * (c) 2019 Akihiko Kusanagi
398
- * Released under the MIT license
399
- */
400
- e.exports=function(e){"use strict";var t=(e=e&&e.hasOwnProperty("default")?e.default:e).helpers,r=t.options||{},n=t.extend(r,{resolve:r.resolve||function(e,r,n){var i,a,o;for(i=0,a=e.length;i<a;++i)if(void 0!==(o=e[i])&&(void 0!==r&&"function"==typeof o&&(o=o(r)),void 0!==n&&t.isArray(o)&&(o=o[n]),void 0!==o))return o}}),i=e.helpers,a=n.resolve;function o(e){return-1!==e.indexOf("Color")}var s={styleKeys:["shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor","bevelWidth","bevelHighlightColor","bevelShadowColor","innerGlowWidth","innerGlowColor","outerGlowWidth","outerGlowColor","backgroundOverlayColor","backgroundOverlayMode"],lineStyleKeys:["shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor","outerGlowWidth","outerGlowColor"],pointStyleKeys:["pointShadowOffsetX","pointShadowOffsetY","pointShadowBlur","pointShadowColor","pointBevelWidth","pointBevelHighlightColor","pointBevelShadowColor","pointInnerGlowWidth","pointInnerGlowColor","pointOuterGlowWidth","pointOuterGlowColor","pointBackgroundOverlayColor","pointBackgroundOverlayMode"],hoverStyleKeys:["hoverShadowOffsetX","hoverShadowOffsetY","hoverShadowBlur","hoverShadowColor","hoverBevelWidth","hoverBevelHighlightColor","hoverBevelShadowColor","hoverInnerGlowWidth","hoverInnerGlowColor","hoverOuterGlowWidth","hoverOuterGlowColor","hoverBackgroundOverlayColor","hoverBackgroundOverlayMode"],pointHoverStyleKeys:["pointHoverShadowOffsetX","pointHoverShadowOffsetY","pointHoverShadowBlur","pointHoverShadowColor","pointHoverBevelWidth","pointHoverBevelHighlightColor","pointHoverBevelShadowColor","pointHoverInnerGlowWidth","pointHoverInnerGlowColor","pointHoverOuterGlowWidth","pointHoverOuterGlowColor","pointHoverBackgroundOverlayColor","pointHoverBackgroundOverlayMode"],drawBackground:function(e,t){var r=e.borderWidth;e.borderWidth=0,t(),e.borderWidth=r},drawBorder:function(e,t){var r=e.backgroundColor;e.borderWidth&&(e.backgroundColor="rgba(0, 0, 0, 0)",t(),e.backgroundColor=r)},drawShadow:function(e,t,r,n){var i=e.ctx,a=e.currentDevicePixelRatio;i.save(),i.shadowOffsetX=(t.shadowOffsetX+1e6)*a,i.shadowOffsetY=t.shadowOffsetY*a,i.shadowBlur=t.shadowBlur*a,i.shadowColor=t.shadowColor,n&&(i.globalCompositeOperation="destination-over"),i.translate(-1e6,0),r(),i.restore()},setPath:function(e,t){e.save(),e.beginPath(),e.clip(),t(),e.restore()},drawBevel:function(e,t,r){var n,i,a=e.ctx,o=e.currentDevicePixelRatio,s=5*o/6,l=t.bevelWidth*s,u=t.borderWidth,d=t.parsedBorderWidth;l&&(n=this.opaque(t.borderColor)?d?{top:l+d.top*o,left:l+d.left*o,bottom:l+d.bottom*o,right:l+d.right*o}:{top:i=l+(u>0?u:0)*o/2,left:i,bottom:i,right:i}:{top:l,left:l,bottom:l,right:l},a.save(),this.setPath(a,r),a.clip(),a.translate(-1e6,0),this.setPath(a,r),a.rect(0,0,e.width,e.height),a.fillStyle="black",a.shadowOffsetX=1e6*o-n.right,a.shadowOffsetY=-n.bottom,a.shadowBlur=l,a.shadowColor=t.bevelShadowColor,navigator&&navigator.userAgent.match("Windows.+Firefox")||(a.globalCompositeOperation="source-atop"),a.fill("evenodd"),a.shadowOffsetX=1e6*o+n.left,a.shadowOffsetY=n.top,a.shadowColor=t.bevelHighlightColor,a.fill("evenodd"),a.restore())},drawGlow:function(e,t,r,n){var i=e.ctx,a=n?t.outerGlowWidth:t.innerGlowWidth,o=t.borderWidth,s=e.currentDevicePixelRatio;a&&(i.save(),this.setPath(i,r),n&&i.rect(0,0,e.width,e.height),i.clip("evenodd"),i.translate(-1e6,0),this.setPath(i,r),n||i.rect(0,0,e.width,e.height),i.lineWidth=o,i.strokeStyle="black",i.fillStyle="black",i.shadowOffsetX=1e6*s,i.shadowBlur=a*s,i.shadowColor=n?t.outerGlowColor:t.innerGlowColor,i.fill("evenodd"),o&&i.stroke(),i.restore())},drawInnerGlow:function(e,t,r){this.drawGlow(e,t,r)},drawOuterGlow:function(e,t,r){this.drawGlow(e,t,r,!0)},drawBackgroundOverlay:function(e,t,r){var n=e.ctx,i=t.backgroundOverlayColor;i&&(n.save(),this.setPath(n,r),n.fillStyle=i,n.globalCompositeOperation=t.backgroundOverlayMode,n.fill(),n.restore())},opaque:function(e){return i.color(e).alpha()>0},getHoverColor:function(e){return void 0!==e?i.getHoverColor(e):e},mergeStyle:function(e,t){if(void 0!==e&&void 0!==t)return this.styleKeys.forEach((function(r){e[r]=t[r]})),e},setHoverStyle:function(e,t){var r,n,i=this.styleKeys,a=this.hoverStyleKeys;if(void 0!==e&&void 0!==t){for(r=0,n=i.length;r<n;++r)e[i[r]]=t[a[r]];return e}},saveStyle:function(e){var t=e._model,r=e.$previousStyle;r&&this.mergeStyle(r,t)},resolveStyle:function(e,t,r,n){var i,s,l,u,d=e.chart,c=d.data.datasets[e.index],h=t.custom||{},f=this.styleKeys,m=this.hoverStyleKeys,p={},g={chart:d,dataIndex:r,dataset:c,datasetIndex:t._datasetIndex};for(i=0,s=f.length;i<s;++i)p[l=f[i]]=u=a([h[l],c[l],n[l]],g,r),p[l=m[i]]=a([h[l],c[l],n[l],o(l)?this.getHoverColor(u):u],g,r);return p},resolveLineStyle:function(e,t,r){var n,i,o,s=e.chart,l=s.data.datasets[e.index],u=t.custom||{},d=this.lineStyleKeys,c={},h={chart:s,dataset:l,datasetIndex:t._datasetIndex};for(n=0,i=d.length;n<i;++n)c[o=d[n]]=a([u[o],l[o],r[o]],h);return c},resolvePointStyle:function(e,t,r,n){var i,s,l,u,d=this,c=e.chart,h=c.data.datasets[e.index],f=t.custom||{},m=d.styleKeys,p=d.hoverStyleKeys,g=d.pointStyleKeys,_=d.pointHoverStyleKeys,v={},y={chart:c,dataIndex:r,dataset:h,datasetIndex:t._datasetIndex};for(i=0,s=m.length;i<s;++i)v[l=m[i]]=u=a([f[l],h[g[i]],h[l],n[l]],y,r),v[l=p[i]]=a([f[l],h[_[i]],n[l],o(l)?d.getHoverColor(u):u],y,r);return v}},l=e.helpers;function u(e,t){if(void 0===t)return e;var r=l.color(e);return r.alpha(t*r.alpha()).rgbaString()}var d=e.Tooltip,c=d.extend({initialize:function(){var e=this;d.prototype.initialize.apply(e,arguments),s.mergeStyle(e._model,e._options)},update:function(){var e=this;return d.prototype.update.apply(e,arguments),s.mergeStyle(e._model,e._options),e},drawBackground:function(e,t,r,n,i){var a=this,o=arguments,c=a._chart,h=l.extend({},t,{bevelHighlightColor:u(t.bevelHighlightColor,i),bevelShadowColor:u(t.bevelShadowColor,i),innerGlowColor:u(t.innerGlowColor,i),outerGlowColor:u(t.outerGlowColor,i)}),f=function(){d.prototype.drawBackground.apply(a,o)};s.drawShadow(c,t,f),s.opaque(t.backgroundColor)&&(s.drawBackground(t,f),s.drawBevel(c,h,f)),s.drawInnerGlow(c,h,f),s.drawOuterGlow(c,h,f),s.drawBorder(t,f)}}),h=e.elements.Rectangle,f=h.extend({draw:function(){var e=this,t=arguments,r=e._chart,n=e._view,i=function(){h.prototype.draw.apply(e,t)},a=function(){e.setPath()};s.drawShadow(r,n,i,!0),s.opaque(n.backgroundColor)&&(s.drawBackground(n,i),s.drawBackgroundOverlay(r,n,a),s.drawBevel(r,n,a)),s.drawInnerGlow(r,n,a),s.drawOuterGlow(r,n,a),s.drawBorder(n,i)},setPath:function(){var e,t,r,n,i=this._chart.ctx,a=this._view;void 0!==a.width?(e=a.x-a.width/2,r=a.width,t=Math.min(a.y,a.base),n=Math.abs(a.y-a.base)):(e=Math.min(a.x,a.base),r=Math.abs(a.x-a.base),t=a.y-a.height/2,n=a.height),i.rect(e,t,r,n)}}),m=e.helpers.extend;function p(e,t,r){return e===t?r:e===r?t:e}function g(e){var t,r,n,i,a,o,s=e.borderWidth,l=function(e){var t=e.borderSkipped,r={};return t?(e.horizontal?e.base>e.x&&(t=p(t,"left","right")):e.base<e.y&&(t=p(t,"bottom","top")),r[t]=!0,r):r}(e);return void 0!==e.width?(t=e.width/2,r=Math.abs(e.y-e.base)/2):(t=Math.abs(e.x-e.base)/2,r=e.height/2),null!==s&&"[object Object]"===Object.prototype.toString.call(s)?(n=+s.top||0,i=+s.right||0,a=+s.bottom||0,o=+s.left||0):n=i=a=o=+s||0,{top:l.top||n<0?0:n>r?r:n,right:l.right||i<0?0:i>t?t:i,bottom:l.bottom||a<0?0:a>r?r:a,left:l.left||o<0?0:o>t?t:o}}var _=e.controllers.bar,v=_.extend({dataElementType:f,updateElement:function(e,t){var r=this,n=s.resolveStyle(r,e,t,r.chart.options.elements.rectangle),i={};Object.defineProperty(e,"_model",{configurable:!0,get:function(){return i},set:function(e){m(i,e,n)}}),_.prototype.updateElement.apply(r,arguments),delete e._model,e._model=m(i,{parsedBorderWidth:g(i)}),e._styleOptions=n},setHoverStyle:function(e){var t=this;_.prototype.setHoverStyle.apply(t,arguments),s.saveStyle(e),s.setHoverStyle(e._model,e._styleOptions)},removeHoverStyle:function(e){var t=this;e.$previousStyle||s.mergeStyle(e._model,e._styleOptions),_.prototype.removeHoverStyle.apply(t,arguments)}}),y=e.helpers.canvas._isPointInArea||function(e,t){return e.x>t.left-1e-6&&e.x<t.right+1e-6&&e.y>t.top-1e-6&&e.y<t.bottom+1e-6},b=e.elements.Point,M=b.extend({draw:function(e){var t=this,r=arguments,n=t._chart,i=t._view,a=function(){b.prototype.draw.apply(t,r)};i.skip||void 0!==e&&!y(i,e)||(s.drawShadow(n,i,a,!0),s.opaque(i.backgroundColor)&&(s.drawBackground(i,a),s.drawBackgroundOverlay(n,i,a),s.drawBevel(n,i,a)),s.drawInnerGlow(n,i,a),s.drawOuterGlow(n,i,a),s.drawBorder(i,a))}}),w=e.helpers.extend,L=e.controllers.bubble,T=L.extend({dataElementType:M,updateElement:function(e,t){var r=this,n=s.resolveStyle(r,e,t,r.chart.options.elements.point),i={};Object.defineProperty(e,"_model",{configurable:!0,get:function(){return i},set:function(e){w(i,e,n)}}),L.prototype.updateElement.apply(r,arguments),delete e._model,e._model=i,e._styleOptions=n},setHoverStyle:function(e){var t=this;L.prototype.setHoverStyle.apply(t,arguments),s.saveStyle(e),s.setHoverStyle(e._model,e._styleOptions)},removeHoverStyle:function(e){var t=this;e.$previousStyle||s.mergeStyle(e._model,e._styleOptions),L.prototype.removeHoverStyle.apply(t,arguments)}}),x=e.helpers,k=e.elements.Arc,S=k.extend({draw:function(){var e=this,t=arguments,r=e._chart,n=e._view,i=function(){k.prototype.draw.apply(e,t)};s.drawShadow(r,n,i,!0),s.opaque(n.backgroundColor)&&(s.drawBackground(n,i),s.drawBackgroundOverlay(r,n,i),s.drawBevel(r,"inner"===n.borderAlign?x.extend({},n,{borderWidth:2*n.borderWidth}):n,i)),s.drawInnerGlow(r,n,i),s.drawOuterGlow(r,n,i),s.drawBorder(n,i)}}),D=e.defaults,A=e.helpers.extend,E=n.resolve;D.doughnut.legend.labels.generateLabels=D.pie.legend.labels.generateLabels=function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map((function(r,n){var i=e.getDatasetMeta(0),a=t.datasets[0],o=i.data[n]||{},l=o.custom||{},u=e.options.elements.arc,d=E([l.backgroundColor,a.backgroundColor,u.backgroundColor],void 0,n),c=E([l.borderColor,a.borderColor,u.borderColor],void 0,n),h=E([l.borderWidth,a.borderWidth,u.borderWidth],void 0,n);return A({text:r,fillStyle:d,strokeStyle:c,lineWidth:h,hidden:isNaN(a.data[n])||i.data[n].hidden,index:n},s.resolveStyle(i.controller,o,n,u))})):[]};var Y=e.controllers.doughnut,O=Y.extend({dataElementType:S,updateElement:function(e,t){var r=this,n=s.resolveStyle(r,e,t,r.chart.options.elements.arc),i={};Object.defineProperty(e,"_model",{configurable:!0,get:function(){return i},set:function(e){A(i,e,n)}}),Y.prototype.updateElement.apply(r,arguments),delete e._model,e._model=i,e._styleOptions=n},setHoverStyle:function(e){var t=this;Y.prototype.setHoverStyle.apply(t,arguments),s.saveStyle(e),s.setHoverStyle(e._model,e._styleOptions)},removeHoverStyle:function(e){var t=this;e.$previousStyle||s.mergeStyle(e._model,e._styleOptions),Y.prototype.removeHoverStyle.apply(t,arguments)}}),P=v.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID},getValueScaleId:function(){return this.getMeta().xAxisID},getIndexScaleId:function(){return this.getMeta().yAxisID}}),R=e.elements.Line,C=R.extend({draw:function(){var e=this,t=arguments,r=e._chart,n=e._view,i=function(){R.prototype.draw.apply(e,t)};s.drawShadow(r,n,i),s.drawShadow(r,{shadowOffsetX:0,shadowOffsetY:0,shadowBlur:n.outerGlowWidth,shadowColor:n.outerGlowColor},i),s.drawBorder(n,i)}}),I=e.helpers.extend,F=e.controllers.line,j=F.extend({datasetElementType:C,dataElementType:M,update:function(){var e=this,t=e.getMeta().dataset,r=s.resolveLineStyle(e,t,e.chart.options.elements.line),n={};Object.defineProperty(t,"_model",{configurable:!0,get:function(){return n},set:function(e){I(n,e,r)}}),F.prototype.update.apply(e,arguments),delete t._model,t._model=n,t._styleOptions=r},updateElement:function(e,t){var r=this,n=s.resolvePointStyle(r,e,t,r.chart.options.elements.point);F.prototype.updateElement.apply(r,arguments),I(e._model,n),e._styleOptions=n},setHoverStyle:function(e){var t=this;F.prototype.setHoverStyle.apply(t,arguments),s.saveStyle(e),s.setHoverStyle(e._model,e._styleOptions)},removeHoverStyle:function(e){var t=this;e.$previousStyle||s.mergeStyle(e._model,e._styleOptions),F.prototype.removeHoverStyle.apply(t,arguments)}}),N=e.helpers.extend,H=n.resolve;e.defaults.polarArea.legend.labels.generateLabels=function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map((function(r,n){var i=e.getDatasetMeta(0),a=t.datasets[0],o=i.data[n]||{},l=o.custom||{},u=e.options.elements.arc,d=H([l.backgroundColor,a.backgroundColor,u.backgroundColor],void 0,n),c=H([l.borderColor,a.borderColor,u.borderColor],void 0,n),h=H([l.borderWidth,a.borderWidth,u.borderWidth],void 0,n);return N({text:r,fillStyle:d,strokeStyle:c,lineWidth:h,hidden:isNaN(a.data[n])||i.data[n].hidden,index:n},s.resolveStyle(i.controller,o,n,u))})):[]};var B=e.controllers.polarArea,U=B.extend({dataElementType:S,updateElement:function(e,t){var r=this,n=s.resolveStyle(r,e,t,r.chart.options.elements.arc),i={};Object.defineProperty(e,"_model",{configurable:!0,get:function(){return i},set:function(e){N(i,e,n)}}),B.prototype.updateElement.apply(r,arguments),delete e._model,e._model=i,e._styleOptions=n},setHoverStyle:function(e){var t=this;B.prototype.setHoverStyle.apply(t,arguments),s.saveStyle(e),s.setHoverStyle(e._model,e._styleOptions)},removeHoverStyle:function(e){var t=this;e.$previousStyle||s.mergeStyle(e._model,e._styleOptions),B.prototype.removeHoverStyle.apply(t,arguments)}}),W=e.helpers.extend,z=e.controllers.radar,V=z.extend({datasetElementType:C,dataElementType:M,update:function(){var e=this,t=e.getMeta().dataset,r=s.resolveLineStyle(e,t,e.chart.options.elements.line),n={};Object.defineProperty(t,"_model",{configurable:!0,get:function(){return n},set:function(e){W(n,e,r)}}),z.prototype.update.apply(e,arguments),delete t._model,t._model=n,t._styleOptions=r},updateElement:function(e,t){var r=this,n=s.resolvePointStyle(r,e,t,r.chart.options.elements.point);z.prototype.updateElement.apply(r,arguments),W(e._model,n),e._styleOptions=n},setHoverStyle:function(e){var t=this;z.prototype.setHoverStyle.apply(t,arguments),s.saveStyle(e),s.setHoverStyle(e._model,e._styleOptions)},removeHoverStyle:function(e){var t=this;e.$previousStyle||s.mergeStyle(e._model,e._styleOptions),z.prototype.removeHoverStyle.apply(t,arguments)}}),G=e.defaults,K=e.helpers,q=e.layouts||e.layoutService,J=K.valueOrDefault||K.getValueOrDefault,X=K.valueAtIndexOrDefault||K.getValueAtIndexOrDefault,$=K.mergeIf||function(e,t){return K.configMerge.call(this,t,e)},Z=K.extend;function Q(e,t,r){var n=e.ctx;s.drawShadow(e,t,r,!0),s.opaque(n.fillStyle)&&(n.save(),n.strokeStyle="rgba(0, 0, 0, 0)",r(),s.drawBackgroundOverlay(e,t,r),s.drawBevel(e,t,r),n.restore()),s.drawInnerGlow(e,t,r),s.drawOuterGlow(e,t,r),n.fillStyle="rgba(0, 0, 0, 0)",r(),n.restore()}G.global.legend.labels.generateLabels=function(e){var t=e.data,r=e.options.legend||{},n=r.labels&&r.labels.usePointStyle;return K.isArray(t.datasets)?t.datasets.map((function(t,r){var i,a,o=e.getDatasetMeta(r),l=o.controller,u=e.options.elements;return n?(i=o.data[0]||{},a=s.resolvePointStyle(l,i,r,u.point)):o.dataset?(i=o.dataset,a=s.resolveLineStyle(l,i,u.line)):(i=o.data[0]||{},a=s.resolveStyle(l,i,r,o.bar?u.rectangle:u.point)),Z({text:t.label,fillStyle:X(t.backgroundColor,0),hidden:!e.isDatasetVisible(r),lineCap:t.borderCapStyle,lineDash:t.borderDash,lineDashOffset:t.borderDashOffset,lineJoin:t.borderJoinStyle,lineWidth:t.borderWidth,strokeStyle:t.borderColor,pointStyle:t.pointStyle,datasetIndex:r},a)}),this):[]};var ee=e.Legend.extend({draw:function(){var t,r=this,n=r.chart,i=G.global,a=K.each,o=K.canvas.drawPoint,s=r.ctx;K.each=function(e,r){a(e,(function(e){var n,a,o=Object.keys(e);for(t={},n=0,a=o.length;n<a;n++)t[o[n]]=e[o[n]];t.borderColor=J(e.strokeStyle,i.defaultColor),t.borderWidth=J(e.lineWidth,i.elements.line.borderWidth),r.apply(null,arguments)}))},K.canvas.drawPoint=function(){var e=arguments,r=function(){o.apply(null,e)};Q(n,t,r)},s.strokeRect=function(){},s.fillRect=function(e,r,i,a){Q(n,t,(function(){s.beginPath(),s.rect(e,r,i,a),s.fill(),0!==t.borderWidth&&s.stroke()}))},e.Legend.prototype.draw.apply(r,arguments),K.each=a,K.canvas.drawPoint=o,delete s.fillRect,delete s.strokeRect}});function te(e,t){var r=new ee({ctx:e.ctx,options:t,chart:e});q.configure(e,r,t),q.addBox(e,r),e.legend=r}var re={id:"legend",_element:ee,beforeInit:function(e){var t=e.options.legend;t&&te(e,t)},beforeUpdate:function(e){var t=e.options.legend,r=e.legend;t?($(t,G.global.legend),r?(q.configure(e,r,t),r.options=t):te(e,t)):r&&(q.removeBox(e,r),delete e.legend)},afterEvent:function(e,t){var r=e.legend;r&&r.handleEvent(t)}},ne=e.helpers,ie=e.layouts||e.layoutService,ae=e.plugins,oe={bar:v,bubble:T,doughnut:O,horizontalBar:P,line:j,polarArea:U,pie:O,radar:V,scatter:j};function se(){var e=this,t=[];return ne.each(e.data.datasets,(function(r,n){var i=e.getDatasetMeta(n),a=r.type||e.config.type;if(i.type&&i.type!==a&&(e.destroyDatasetMeta(n),i=e.getDatasetMeta(n)),i.type=a,i.controller)i.controller.updateIndex(n),i.controller.linkScales();else{var o=oe[i.type];if(void 0===o)throw new Error('"'+i.type+'" is not a chart type.');i.controller=new o(e,n),t.push(i.controller)}}),e),t}function le(){var e=this;e.tooltip=new c({_chart:e,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e)}var ue=ae.descriptors;ae.descriptors=function(e){var t=e._style;if(t){var r=e.$plugins||e._plugins||(e.$plugins=e._plugins={});if(r.id===this._cacheId)return r.descriptors;var n,i=this._plugins;this._plugins=i.map((function(e){return"legend"===e.id?re:e}))}return n=ue.apply(this,arguments),t&&(this._plugins=i),n};var de={id:"style",beforeInit:function(e){e._style={},e.buildOrUpdateControllers=se,e.initToolTip=le,e.legend&&(ie.removeBox(e,e.legend),delete e.legend),delete e.$plugins,delete e._plugins,ae.descriptors(e)}};return e.plugins.register(de),de}(r(357))},function(e,t,r){(function(e){!function(t){t.parser=function(e,t){return new a(e,t)},t.SAXParser=a,t.SAXStream=s,t.createStream=function(e,t){return new s(e,t)},t.MAX_BUFFER_LENGTH=65536;var n,i=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function a(e,r){if(!(this instanceof a))return new a(e,r);!function(e){for(var t=0,r=i.length;t<r;t++)e[i[t]]=""}(this),this.q=this.c="",this.bufferCheckPosition=t.MAX_BUFFER_LENGTH,this.opt=r||{},this.opt.lowercase=this.opt.lowercase||this.opt.lowercasetags,this.looseCase=this.opt.lowercase?"toLowerCase":"toUpperCase",this.tags=[],this.closed=this.closedRoot=this.sawRoot=!1,this.tag=this.error=null,this.strict=!!e,this.noscript=!(!e&&!this.opt.noscript),this.state=w.BEGIN,this.strictEntities=this.opt.strictEntities,this.ENTITIES=this.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),this.attribList=[],this.opt.xmlns&&(this.ns=Object.create(u)),this.trackPosition=!1!==this.opt.position,this.trackPosition&&(this.position=this.line=this.column=0),T(this,"onready")}t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(e){function t(){}return t.prototype=e,new t}),Object.keys||(Object.keys=function(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}),a.prototype={end:function(){A(this)},write:function(e){if(this.error)throw this.error;if(this.closed)return D(this,"Cannot write after close. Assign an onready handler.");if(null===e)return A(this);"object"==typeof e&&(e=e.toString());var r=0,n="";for(;n=j(e,r++),this.c=n,n;)switch(this.trackPosition&&(this.position++,"\n"===n?(this.line++,this.column=0):this.column++),this.state){case w.BEGIN:if(this.state=w.BEGIN_WHITESPACE,"\ufeff"===n)continue;F(this,n);continue;case w.BEGIN_WHITESPACE:F(this,n);continue;case w.TEXT:if(this.sawRoot&&!this.closedRoot){for(var a=r-1;n&&"<"!==n&&"&"!==n;)(n=j(e,r++))&&this.trackPosition&&(this.position++,"\n"===n?(this.line++,this.column=0):this.column++);this.textNode+=e.substring(a,r-1)}"<"!==n||this.sawRoot&&this.closedRoot&&!this.strict?(m(n)||this.sawRoot&&!this.closedRoot||E(this,"Text data outside of root node."),"&"===n?this.state=w.TEXT_ENTITY:this.textNode+=n):(this.state=w.OPEN_WAKA,this.startTagPosition=this.position);continue;case w.SCRIPT:"<"===n?this.state=w.SCRIPT_ENDING:this.script+=n;continue;case w.SCRIPT_ENDING:"/"===n?this.state=w.CLOSE_TAG:(this.script+="<"+n,this.state=w.SCRIPT);continue;case w.OPEN_WAKA:if("!"===n)this.state=w.SGML_DECL,this.sgmlDecl="";else if(m(n));else if(_(d,n))this.state=w.OPEN_TAG,this.tagName=n;else if("/"===n)this.state=w.CLOSE_TAG,this.tagName="";else if("?"===n)this.state=w.PROC_INST,this.procInstName=this.procInstBody="";else{if(E(this,"Unencoded <"),this.startTagPosition+1<this.position){var o=this.position-this.startTagPosition;n=new Array(o).join(" ")+n}this.textNode+="<"+n,this.state=w.TEXT}continue;case w.SGML_DECL:"[CDATA["===(this.sgmlDecl+n).toUpperCase()?(x(this,"onopencdata"),this.state=w.CDATA,this.sgmlDecl="",this.cdata=""):this.sgmlDecl+n==="--"?(this.state=w.COMMENT,this.comment="",this.sgmlDecl=""):"DOCTYPE"===(this.sgmlDecl+n).toUpperCase()?(this.state=w.DOCTYPE,(this.doctype||this.sawRoot)&&E(this,"Inappropriately located doctype declaration"),this.doctype="",this.sgmlDecl=""):">"===n?(x(this,"onsgmldeclaration",this.sgmlDecl),this.sgmlDecl="",this.state=w.TEXT):p(n)?(this.state=w.SGML_DECL_QUOTED,this.sgmlDecl+=n):this.sgmlDecl+=n;continue;case w.SGML_DECL_QUOTED:n===this.q&&(this.state=w.SGML_DECL,this.q=""),this.sgmlDecl+=n;continue;case w.DOCTYPE:">"===n?(this.state=w.TEXT,x(this,"ondoctype",this.doctype),this.doctype=!0):(this.doctype+=n,"["===n?this.state=w.DOCTYPE_DTD:p(n)&&(this.state=w.DOCTYPE_QUOTED,this.q=n));continue;case w.DOCTYPE_QUOTED:this.doctype+=n,n===this.q&&(this.q="",this.state=w.DOCTYPE);continue;case w.DOCTYPE_DTD:this.doctype+=n,"]"===n?this.state=w.DOCTYPE:p(n)&&(this.state=w.DOCTYPE_DTD_QUOTED,this.q=n);continue;case w.DOCTYPE_DTD_QUOTED:this.doctype+=n,n===this.q&&(this.state=w.DOCTYPE_DTD,this.q="");continue;case w.COMMENT:"-"===n?this.state=w.COMMENT_ENDING:this.comment+=n;continue;case w.COMMENT_ENDING:"-"===n?(this.state=w.COMMENT_ENDED,this.comment=S(this.opt,this.comment),this.comment&&x(this,"oncomment",this.comment),this.comment=""):(this.comment+="-"+n,this.state=w.COMMENT);continue;case w.COMMENT_ENDED:">"!==n?(E(this,"Malformed comment"),this.comment+="--"+n,this.state=w.COMMENT):this.state=w.TEXT;continue;case w.CDATA:"]"===n?this.state=w.CDATA_ENDING:this.cdata+=n;continue;case w.CDATA_ENDING:"]"===n?this.state=w.CDATA_ENDING_2:(this.cdata+="]"+n,this.state=w.CDATA);continue;case w.CDATA_ENDING_2:">"===n?(this.cdata&&x(this,"oncdata",this.cdata),x(this,"onclosecdata"),this.cdata="",this.state=w.TEXT):"]"===n?this.cdata+="]":(this.cdata+="]]"+n,this.state=w.CDATA);continue;case w.PROC_INST:"?"===n?this.state=w.PROC_INST_ENDING:m(n)?this.state=w.PROC_INST_BODY:this.procInstName+=n;continue;case w.PROC_INST_BODY:if(!this.procInstBody&&m(n))continue;"?"===n?this.state=w.PROC_INST_ENDING:this.procInstBody+=n;continue;case w.PROC_INST_ENDING:">"===n?(x(this,"onprocessinginstruction",{name:this.procInstName,body:this.procInstBody}),this.procInstName=this.procInstBody="",this.state=w.TEXT):(this.procInstBody+="?"+n,this.state=w.PROC_INST_BODY);continue;case w.OPEN_TAG:_(c,n)?this.tagName+=n:(Y(this),">"===n?R(this):"/"===n?this.state=w.OPEN_TAG_SLASH:(m(n)||E(this,"Invalid character in tag name"),this.state=w.ATTRIB));continue;case w.OPEN_TAG_SLASH:">"===n?(R(this,!0),C(this)):(E(this,"Forward-slash in opening tag not followed by >"),this.state=w.ATTRIB);continue;case w.ATTRIB:if(m(n))continue;">"===n?R(this):"/"===n?this.state=w.OPEN_TAG_SLASH:_(d,n)?(this.attribName=n,this.attribValue="",this.state=w.ATTRIB_NAME):E(this,"Invalid attribute name");continue;case w.ATTRIB_NAME:"="===n?this.state=w.ATTRIB_VALUE:">"===n?(E(this,"Attribute without value"),this.attribValue=this.attribName,P(this),R(this)):m(n)?this.state=w.ATTRIB_NAME_SAW_WHITE:_(c,n)?this.attribName+=n:E(this,"Invalid attribute name");continue;case w.ATTRIB_NAME_SAW_WHITE:if("="===n)this.state=w.ATTRIB_VALUE;else{if(m(n))continue;E(this,"Attribute without value"),this.tag.attributes[this.attribName]="",this.attribValue="",x(this,"onattribute",{name:this.attribName,value:""}),this.attribName="",">"===n?R(this):_(d,n)?(this.attribName=n,this.state=w.ATTRIB_NAME):(E(this,"Invalid attribute name"),this.state=w.ATTRIB)}continue;case w.ATTRIB_VALUE:if(m(n))continue;p(n)?(this.q=n,this.state=w.ATTRIB_VALUE_QUOTED):(E(this,"Unquoted attribute value"),this.state=w.ATTRIB_VALUE_UNQUOTED,this.attribValue=n);continue;case w.ATTRIB_VALUE_QUOTED:if(n!==this.q){"&"===n?this.state=w.ATTRIB_VALUE_ENTITY_Q:this.attribValue+=n;continue}P(this),this.q="",this.state=w.ATTRIB_VALUE_CLOSED;continue;case w.ATTRIB_VALUE_CLOSED:m(n)?this.state=w.ATTRIB:">"===n?R(this):"/"===n?this.state=w.OPEN_TAG_SLASH:_(d,n)?(E(this,"No whitespace between attributes"),this.attribName=n,this.attribValue="",this.state=w.ATTRIB_NAME):E(this,"Invalid attribute name");continue;case w.ATTRIB_VALUE_UNQUOTED:if(!g(n)){"&"===n?this.state=w.ATTRIB_VALUE_ENTITY_U:this.attribValue+=n;continue}P(this),">"===n?R(this):this.state=w.ATTRIB;continue;case w.CLOSE_TAG:if(this.tagName)">"===n?C(this):_(c,n)?this.tagName+=n:this.script?(this.script+="</"+this.tagName,this.tagName="",this.state=w.SCRIPT):(m(n)||E(this,"Invalid tagname in closing tag"),this.state=w.CLOSE_TAG_SAW_WHITE);else{if(m(n))continue;v(d,n)?this.script?(this.script+="</"+n,this.state=w.SCRIPT):E(this,"Invalid tagname in closing tag."):this.tagName=n}continue;case w.CLOSE_TAG_SAW_WHITE:if(m(n))continue;">"===n?C(this):E(this,"Invalid characters in closing tag");continue;case w.TEXT_ENTITY:case w.ATTRIB_VALUE_ENTITY_Q:case w.ATTRIB_VALUE_ENTITY_U:var s,l;switch(this.state){case w.TEXT_ENTITY:s=w.TEXT,l="textNode";break;case w.ATTRIB_VALUE_ENTITY_Q:s=w.ATTRIB_VALUE_QUOTED,l="attribValue";break;case w.ATTRIB_VALUE_ENTITY_U:s=w.ATTRIB_VALUE_UNQUOTED,l="attribValue"}";"===n?(this[l]+=I(this),this.entity="",this.state=s):_(this.entity.length?f:h,n)?this.entity+=n:(E(this,"Invalid character in entity name"),this[l]+="&"+this.entity+n,this.entity="",this.state=s);continue;default:throw new Error(this,"Unknown state: "+this.state)}this.position>=this.bufferCheckPosition&&function(e){for(var r=Math.max(t.MAX_BUFFER_LENGTH,10),n=0,a=0,o=i.length;a<o;a++){var s=e[i[a]].length;if(s>r)switch(i[a]){case"textNode":k(e);break;case"cdata":x(e,"oncdata",e.cdata),e.cdata="";break;case"script":x(e,"onscript",e.script),e.script="";break;default:D(e,"Max buffer length exceeded: "+i[a])}n=Math.max(n,s)}var l=t.MAX_BUFFER_LENGTH-n;e.bufferCheckPosition=l+e.position}(this);return this}
401
- /*! http://mths.be/fromcodepoint v0.1.0 by @mathias */,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var e;k(e=this),""!==e.cdata&&(x(e,"oncdata",e.cdata),e.cdata=""),""!==e.script&&(x(e,"onscript",e.script),e.script="")}};try{n=r(859).Stream}catch(e){n=function(){}}var o=t.EVENTS.filter((function(e){return"error"!==e&&"end"!==e}));function s(e,t){if(!(this instanceof s))return new s(e,t);n.apply(this),this._parser=new a(e,t),this.writable=!0,this.readable=!0;var r=this;this._parser.onend=function(){r.emit("end")},this._parser.onerror=function(e){r.emit("error",e),r._parser.error=null},this._decoder=null,o.forEach((function(e){Object.defineProperty(r,"on"+e,{get:function(){return r._parser["on"+e]},set:function(t){if(!t)return r.removeAllListeners(e),r._parser["on"+e]=t,t;r.on(e,t)},enumerable:!0,configurable:!1})}))}s.prototype=Object.create(n.prototype,{constructor:{value:s}}),s.prototype.write=function(t){if("function"==typeof e&&"function"==typeof e.isBuffer&&e.isBuffer(t)){if(!this._decoder){var n=r(419).StringDecoder;this._decoder=new n("utf8")}t=this._decoder.write(t)}return this._parser.write(t.toString()),this.emit("data",t),!0},s.prototype.end=function(e){return e&&e.length&&this.write(e),this._parser.end(),!0},s.prototype.on=function(e,t){var r=this;return r._parser["on"+e]||-1===o.indexOf(e)||(r._parser["on"+e]=function(){var t=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);t.splice(0,0,e),r.emit.apply(r,t)}),n.prototype.on.call(r,e,t)};var l="http://www.w3.org/XML/1998/namespace",u={xml:l,xmlns:"http://www.w3.org/2000/xmlns/"},d=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,c=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,h=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,f=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function m(e){return" "===e||"\n"===e||"\r"===e||"\t"===e}function p(e){return'"'===e||"'"===e}function g(e){return">"===e||m(e)}function _(e,t){return e.test(t)}function v(e,t){return!_(e,t)}var y,b,M,w=0;for(var L in t.STATE={BEGIN:w++,BEGIN_WHITESPACE:w++,TEXT:w++,TEXT_ENTITY:w++,OPEN_WAKA:w++,SGML_DECL:w++,SGML_DECL_QUOTED:w++,DOCTYPE:w++,DOCTYPE_QUOTED:w++,DOCTYPE_DTD:w++,DOCTYPE_DTD_QUOTED:w++,COMMENT_STARTING:w++,COMMENT:w++,COMMENT_ENDING:w++,COMMENT_ENDED:w++,CDATA:w++,CDATA_ENDING:w++,CDATA_ENDING_2:w++,PROC_INST:w++,PROC_INST_BODY:w++,PROC_INST_ENDING:w++,OPEN_TAG:w++,OPEN_TAG_SLASH:w++,ATTRIB:w++,ATTRIB_NAME:w++,ATTRIB_NAME_SAW_WHITE:w++,ATTRIB_VALUE:w++,ATTRIB_VALUE_QUOTED:w++,ATTRIB_VALUE_CLOSED:w++,ATTRIB_VALUE_UNQUOTED:w++,ATTRIB_VALUE_ENTITY_Q:w++,ATTRIB_VALUE_ENTITY_U:w++,CLOSE_TAG:w++,CLOSE_TAG_SAW_WHITE:w++,SCRIPT:w++,SCRIPT_ENDING:w++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach((function(e){var r=t.ENTITIES[e],n="number"==typeof r?String.fromCharCode(r):r;t.ENTITIES[e]=n})),t.STATE)t.STATE[t.STATE[L]]=L;function T(e,t,r){e[t]&&e[t](r)}function x(e,t,r){e.textNode&&k(e),T(e,t,r)}function k(e){e.textNode=S(e.opt,e.textNode),e.textNode&&T(e,"ontext",e.textNode),e.textNode=""}function S(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g," ")),t}function D(e,t){return k(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),t=new Error(t),e.error=t,T(e,"onerror",t),e}function A(e){return e.sawRoot&&!e.closedRoot&&E(e,"Unclosed root tag"),e.state!==w.BEGIN&&e.state!==w.BEGIN_WHITESPACE&&e.state!==w.TEXT&&D(e,"Unexpected end"),k(e),e.c="",e.closed=!0,T(e,"onend"),a.call(e,e.strict,e.opt),e}function E(e,t){if("object"!=typeof e||!(e instanceof a))throw new Error("bad call to strictFail");e.strict&&D(e,t)}function Y(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,r=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(r.ns=t.ns),e.attribList.length=0,x(e,"onopentagstart",r)}function O(e,t){var r=e.indexOf(":")<0?["",e]:e.split(":"),n=r[0],i=r[1];return t&&"xmlns"===e&&(n="xmlns",i=""),{prefix:n,local:i}}function P(e){if(e.strict||(e.attribName=e.attribName[e.looseCase]()),-1!==e.attribList.indexOf(e.attribName)||e.tag.attributes.hasOwnProperty(e.attribName))e.attribName=e.attribValue="";else{if(e.opt.xmlns){var t=O(e.attribName,!0),r=t.prefix,n=t.local;if("xmlns"===r)if("xml"===n&&e.attribValue!==l)E(e,"xml: prefix must be bound to "+l+"\nActual: "+e.attribValue);else if("xmlns"===n&&"http://www.w3.org/2000/xmlns/"!==e.attribValue)E(e,"xmlns: prefix must be bound to http://www.w3.org/2000/xmlns/\nActual: "+e.attribValue);else{var i=e.tag,a=e.tags[e.tags.length-1]||e;i.ns===a.ns&&(i.ns=Object.create(a.ns)),i.ns[n]=e.attribValue}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,x(e,"onattribute",{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=""}}function R(e,t){if(e.opt.xmlns){var r=e.tag,n=O(e.tagName);r.prefix=n.prefix,r.local=n.local,r.uri=r.ns[n.prefix]||"",r.prefix&&!r.uri&&(E(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName)),r.uri=n.prefix);var i=e.tags[e.tags.length-1]||e;r.ns&&i.ns!==r.ns&&Object.keys(r.ns).forEach((function(t){x(e,"onopennamespace",{prefix:t,uri:r.ns[t]})}));for(var a=0,o=e.attribList.length;a<o;a++){var s=e.attribList[a],l=s[0],u=s[1],d=O(l,!0),c=d.prefix,h=d.local,f=""===c?"":r.ns[c]||"",m={name:l,value:u,prefix:c,local:h,uri:f};c&&"xmlns"!==c&&!f&&(E(e,"Unbound namespace prefix: "+JSON.stringify(c)),m.uri=c),e.tag.attributes[l]=m,x(e,"onattribute",m)}e.attribList.length=0}e.tag.isSelfClosing=!!t,e.sawRoot=!0,e.tags.push(e.tag),x(e,"onopentag",e.tag),t||(e.noscript||"script"!==e.tagName.toLowerCase()?e.state=w.TEXT:e.state=w.SCRIPT,e.tag=null,e.tagName=""),e.attribName=e.attribValue="",e.attribList.length=0}function C(e){if(!e.tagName)return E(e,"Weird empty close tag."),e.textNode+="</>",void(e.state=w.TEXT);if(e.script){if("script"!==e.tagName)return e.script+="</"+e.tagName+">",e.tagName="",void(e.state=w.SCRIPT);x(e,"onscript",e.script),e.script=""}var t=e.tags.length,r=e.tagName;e.strict||(r=r[e.looseCase]());for(var n=r;t--;){if(e.tags[t].name===n)break;E(e,"Unexpected close tag")}if(t<0)return E(e,"Unmatched closing tag: "+e.tagName),e.textNode+="</"+e.tagName+">",void(e.state=w.TEXT);e.tagName=r;for(var i=e.tags.length;i-- >t;){var a=e.tag=e.tags.pop();e.tagName=e.tag.name,x(e,"onclosetag",e.tagName);var o={};for(var s in a.ns)o[s]=a.ns[s];var l=e.tags[e.tags.length-1]||e;e.opt.xmlns&&a.ns!==l.ns&&Object.keys(a.ns).forEach((function(t){var r=a.ns[t];x(e,"onclosenamespace",{prefix:t,uri:r})}))}0===t&&(e.closedRoot=!0),e.tagName=e.attribValue=e.attribName="",e.attribList.length=0,e.state=w.TEXT}function I(e){var t,r=e.entity,n=r.toLowerCase(),i="";return e.ENTITIES[r]?e.ENTITIES[r]:e.ENTITIES[n]?e.ENTITIES[n]:("#"===(r=n).charAt(0)&&("x"===r.charAt(1)?(r=r.slice(2),i=(t=parseInt(r,16)).toString(16)):(r=r.slice(1),i=(t=parseInt(r,10)).toString(10))),r=r.replace(/^0+/,""),isNaN(t)||i.toLowerCase()!==r?(E(e,"Invalid character entity"),"&"+e.entity+";"):String.fromCodePoint(t))}function F(e,t){"<"===t?(e.state=w.OPEN_WAKA,e.startTagPosition=e.position):m(t)||(E(e,"Non-whitespace before first tag."),e.textNode=t,e.state=w.TEXT)}function j(e,t){var r="";return t<e.length&&(r=e.charAt(t)),r}w=t.STATE,String.fromCodePoint||(y=String.fromCharCode,b=Math.floor,M=function(){var e,t,r=16384,n=[],i=-1,a=arguments.length;if(!a)return"";for(var o="";++i<a;){var s=Number(arguments[i]);if(!isFinite(s)||s<0||s>1114111||b(s)!==s)throw RangeError("Invalid code point: "+s);s<=65535?n.push(s):(e=55296+((s-=65536)>>10),t=s%1024+56320,n.push(e,t)),(i+1===a||n.length>r)&&(o+=y.apply(null,n),n.length=0)}return o},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:M,configurable:!0,writable:!0}):String.fromCodePoint=M)}(t)}).call(this,r(149).Buffer)},function(e,t,r){e.exports=i;var n=r(416).EventEmitter;function i(){n.call(this)}r(342)(i,n),i.Readable=r(417),i.Writable=r(867),i.Duplex=r(868),i.Transform=r(869),i.PassThrough=r(870),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function a(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",a),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",l));var o=!1;function s(){o||(o=!0,e.end())}function l(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(d(),0===n.listenerCount(this,"error"))throw e}function d(){r.removeListener("data",i),e.removeListener("drain",a),r.removeListener("end",s),r.removeListener("close",l),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",d),r.removeListener("close",d),e.removeListener("close",d)}return r.on("error",u),e.on("error",u),r.on("end",d),r.on("close",d),e.on("close",d),e.emit("pipe",r),e}},function(e,t){},function(e,t,r){"use strict";var n=r(383).Buffer,i=r(862);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var t,r,i,a=n.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,r=a,i=s,t.copy(r,i),s+=o.data.length,o=o.next;return a},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,r){(function(e){var n=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function a(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new a(i.call(setTimeout,n,arguments),clearTimeout)},t.setInterval=function(){return new a(i.call(setInterval,n,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(n,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},r(864),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(37))},function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var n,i,a,o,s,l=1,u={},d=!1,c=e.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(e);h=h&&h.setTimeout?h:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick((function(){m(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?e.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){m(e.data)},n=function(e){a.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(i=c.documentElement,n=function(e){var t=c.createElement("script");t.onreadystatechange=function(){m(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):n=function(e){setTimeout(m,0,e)}:(o="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&m(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),n=function(t){e.postMessage(o+t,"*")}),h.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var i={callback:e,args:t};return u[l]=i,n(l),l++},h.clearImmediate=f}function f(e){delete u[e]}function m(e){if(d)setTimeout(m,0,e);else{var t=u[e];if(t){d=!0;try{!function(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(void 0,r)}}(t)}finally{f(e),d=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,r(37),r(95))},function(e,t,r){(function(t){function r(e){try{if(!t.localStorage)return!1}catch(e){return!1}var r=t.localStorage[e];return null!=r&&"true"===String(r).toLowerCase()}e.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(this,r(37))},function(e,t,r){"use strict";e.exports=a;var n=r(606),i=Object.create(r(356));function a(e){if(!(this instanceof a))return new a(e);n.call(this,e)}i.inherits=r(342),i.inherits(a,n),a.prototype._transform=function(e,t,r){r(null,e)}},function(e,t,r){e.exports=r(418)},function(e,t,r){e.exports=r(333)},function(e,t,r){e.exports=r(417).Transform},function(e,t,r){e.exports=r(417).PassThrough},function(e,t,r){var n=r(420),i=r(602);e.exports=function(e,t){var r,a,o;return r=function(e){var t=n.copyOptions(e);return n.ensureSpacesExists(t),t}(t),a=i(e,r),o="compact"in r&&r.compact?"_parent":"parent",("addParent"in r&&r.addParent?JSON.stringify(a,(function(e,t){return e===o?"_":t}),r.spaces):JSON.stringify(a,null,r.spaces)).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}},function(e,t,r){(function(t){var n=r(607);e.exports=function(e,r){e instanceof t&&(e=e.toString());var i=null;if("string"==typeof e)try{i=JSON.parse(e)}catch(e){throw new Error("The JSON structure is invalid")}else i=e;return n(i,r)}}).call(this,r(149).Buffer)},function(e,t){var r,n;n={},function(e,t){function r(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=h}function n(){return e.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function i(t,n,i){var a=new r;return n&&(a.fill="both",a.duration="auto"),"number"!=typeof t||isNaN(t)?void 0!==t&&Object.getOwnPropertyNames(t).forEach((function(r){if("auto"!=t[r]){if(("number"==typeof a[r]||"duration"==r)&&("number"!=typeof t[r]||isNaN(t[r])))return;if("fill"==r&&-1==d.indexOf(t[r]))return;if("direction"==r&&-1==c.indexOf(t[r]))return;if("playbackRate"==r&&1!==t[r]&&e.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;a[r]=t[r]}})):a.duration=t,a}function a(e,t,r,n){return e<0||e>1||r<0||r>1?h:function(i){function a(e,t,r){return 3*e*(1-r)*(1-r)*r+3*t*(1-r)*r*r+r*r*r}if(i<=0){var o=0;return e>0?o=t/e:!t&&r>0&&(o=n/r),o*i}if(i>=1){var s=0;return r<1?s=(n-1)/(r-1):1==r&&e<1&&(s=(t-1)/(e-1)),1+s*(i-1)}for(var l=0,u=1;l<u;){var d=(l+u)/2,c=a(e,r,d);if(Math.abs(i-c)<1e-5)return a(t,n,d);c<i?l=d:u=d}return a(t,n,d)}}function o(e,t){return function(r){if(r>=1)return 1;var n=1/e;return(r+=t*n)-r%n}}function s(e){_||(_=document.createElement("div").style),_.animationTimingFunction="",_.animationTimingFunction=e;var t=_.animationTimingFunction;if(""==t&&n())throw new TypeError(e+" is not a valid value for easing");return t}function l(e){if("linear"==e)return h;var t=y.exec(e);if(t)return a.apply(this,t.slice(1).map(Number));var r=b.exec(e);if(r)return o(Number(r[1]),p);var n=M.exec(e);return n?o(Number(n[1]),{start:f,middle:m,end:p}[n[2]]):g[e]||h}function u(e,t,r){if(null==t)return w;var n=r.delay+e+r.endDelay;return t<Math.min(r.delay,n)?L:t>=Math.min(r.delay+e,n)?T:x}var d="backwards|forwards|both|none".split("|"),c="reverse|alternate|alternate-reverse".split("|"),h=function(e){return e};r.prototype={_setMember:function(t,r){this["_"+t]=r,this._effect&&(this._effect._timingInput[t]=r,this._effect._timing=e.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=e.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(e){this._setMember("delay",e)},get delay(){return this._delay},set endDelay(e){this._setMember("endDelay",e)},get endDelay(){return this._endDelay},set fill(e){this._setMember("fill",e)},get fill(){return this._fill},set iterationStart(e){if((isNaN(e)||e<0)&&n())throw new TypeError("iterationStart must be a non-negative number, received: "+e);this._setMember("iterationStart",e)},get iterationStart(){return this._iterationStart},set duration(e){if("auto"!=e&&(isNaN(e)||e<0)&&n())throw new TypeError("duration must be non-negative or auto, received: "+e);this._setMember("duration",e)},get duration(){return this._duration},set direction(e){this._setMember("direction",e)},get direction(){return this._direction},set easing(e){this._easingFunction=l(s(e)),this._setMember("easing",e)},get easing(){return this._easing},set iterations(e){if((isNaN(e)||e<0)&&n())throw new TypeError("iterations must be non-negative, received: "+e);this._setMember("iterations",e)},get iterations(){return this._iterations}};var f=1,m=.5,p=0,g={ease:a(.25,.1,.25,1),"ease-in":a(.42,0,1,1),"ease-out":a(0,0,.58,1),"ease-in-out":a(.42,0,.58,1),"step-start":o(1,f),"step-middle":o(1,m),"step-end":o(1,p)},_=null,v="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",y=new RegExp("cubic-bezier\\("+v+","+v+","+v+","+v+"\\)"),b=/steps\(\s*(\d+)\s*\)/,M=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,w=0,L=1,T=2,x=3;e.cloneTimingInput=function(e){if("number"==typeof e)return e;var t={};for(var r in e)t[r]=e[r];return t},e.makeTiming=i,e.numericTimingToObject=function(e){return"number"==typeof e&&(e=isNaN(e)?{duration:0}:{duration:e}),e},e.normalizeTimingInput=function(t,r){return i(t=e.numericTimingToObject(t),r)},e.calculateActiveDuration=function(e){return Math.abs(function(e){return 0===e.duration||0===e.iterations?0:e.duration*e.iterations}(e)/e.playbackRate)},e.calculateIterationProgress=function(e,t,r){var n=u(e,t,r),i=function(e,t,r,n,i){switch(n){case L:return"backwards"==t||"both"==t?0:null;case x:return r-i;case T:return"forwards"==t||"both"==t?e:null;case w:return null}}(e,r.fill,t,n,r.delay);if(null===i)return null;var a=function(e,t,r,n,i){var a=i;return 0===e?t!==L&&(a+=r):a+=n/e,a}(r.duration,n,r.iterations,i,r.iterationStart),o=function(e,t,r,n,i,a){var o=e===1/0?t%1:e%1;return 0!==o||r!==T||0===n||0===i&&0!==a||(o=1),o}(a,r.iterationStart,n,r.iterations,i,r.duration),s=function(e,t,r,n){return e===T&&t===1/0?1/0:1===r?Math.floor(n)-1:Math.floor(n)}(n,r.iterations,o,a),l=function(e,t,r){var n=e;if("normal"!==e&&"reverse"!==e){var i=t;"alternate-reverse"===e&&(i+=1),n="normal",i!==1/0&&i%2!=0&&(n="reverse")}return"normal"===n?r:1-r}(r.direction,s,o);return r._easingFunction(l)},e.calculatePhase=u,e.normalizeEasing=s,e.parseEasingFunction=l}(r={}),function(e,t){function r(e,t){return e in l&&l[e][t]||t}function n(e,t,n){if(!function(e){return"display"===e||0===e.lastIndexOf("animation",0)||0===e.lastIndexOf("transition",0)}(e)){var i=a[e];if(i)for(var s in o.style[e]=t,i){var l=i[s],u=o.style[l];n[l]=r(l,u)}else n[e]=r(e,t)}}function i(e){var t=[];for(var r in e)if(!(r in["easing","offset","composite"])){var n=e[r];Array.isArray(n)||(n=[n]);for(var i,a=n.length,o=0;o<a;o++)(i={}).offset="offset"in e?e.offset:1==a?1:o/(a-1),"easing"in e&&(i.easing=e.easing),"composite"in e&&(i.composite=e.composite),i[r]=n[o],t.push(i)}return t.sort((function(e,t){return e.offset-t.offset})),t}var a={background:["backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAttachment","backgroundOrigin","backgroundClip","backgroundColor"],border:["borderTopColor","borderTopStyle","borderTopWidth","borderRightColor","borderRightStyle","borderRightWidth","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeftColor","borderLeftStyle","borderLeftWidth"],borderBottom:["borderBottomWidth","borderBottomStyle","borderBottomColor"],borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderLeft:["borderLeftWidth","borderLeftStyle","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderRight:["borderRightWidth","borderRightStyle","borderRightColor"],borderTop:["borderTopWidth","borderTopStyle","borderTopColor"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],flex:["flexGrow","flexShrink","flexBasis"],font:["fontFamily","fontSize","fontStyle","fontVariant","fontWeight","lineHeight"],margin:["marginTop","marginRight","marginBottom","marginLeft"],outline:["outlineColor","outlineStyle","outlineWidth"],padding:["paddingTop","paddingRight","paddingBottom","paddingLeft"]},o=document.createElementNS("http://www.w3.org/1999/xhtml","div"),s={thin:"1px",medium:"3px",thick:"5px"},l={borderBottomWidth:s,borderLeftWidth:s,borderRightWidth:s,borderTopWidth:s,fontSize:{"xx-small":"60%","x-small":"75%",small:"89%",medium:"100%",large:"120%","x-large":"150%","xx-large":"200%"},fontWeight:{normal:"400",bold:"700"},outlineWidth:s,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};e.convertToArrayForm=i,e.normalizeKeyframes=function(t){if(null==t)return[];window.Symbol&&Symbol.iterator&&Array.prototype.from&&t[Symbol.iterator]&&(t=Array.from(t)),Array.isArray(t)||(t=i(t));for(var r=t.map((function(t){var r={};for(var i in t){var a=t[i];if("offset"==i){if(null!=a){if(a=Number(a),!isFinite(a))throw new TypeError("Keyframe offsets must be numbers.");if(a<0||a>1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==i){if("add"==a||"accumulate"==a)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=a)throw new TypeError("Invalid composite mode "+a+".")}else a="easing"==i?e.normalizeEasing(a):""+a;n(i,a,r)}return null==r.offset&&(r.offset=null),null==r.easing&&(r.easing="linear"),r})),a=!0,o=-1/0,s=0;s<r.length;s++){var l=r[s].offset;if(null!=l){if(l<o)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");o=l}else a=!1}return r=r.filter((function(e){return e.offset>=0&&e.offset<=1})),a||function(){var e=r.length;null==r[e-1].offset&&(r[e-1].offset=1),e>1&&null==r[0].offset&&(r[0].offset=0);for(var t=0,n=r[0].offset,i=1;i<e;i++){var a=r[i].offset;if(null!=a){for(var o=1;o<i-t;o++)r[t+o].offset=n+(a-n)*o/(i-t);t=i,n=a}}}(),r}}(r),function(e){var t={};e.isDeprecated=function(e,r,n,i){var a=i?"are":"is",o=new Date,s=new Date(r);return s.setMonth(s.getMonth()+3),!(o<s&&(e in t||console.warn("Web Animations: "+e+" "+a+" deprecated and will stop working on "+s.toDateString()+". "+n),t[e]=!0,1))},e.deprecated=function(t,r,n,i){var a=i?"are":"is";if(e.isDeprecated(t,r,n,i))throw new Error(t+" "+a+" no longer supported. "+n)}}(r),function(){if(document.documentElement.animate){var e=document.documentElement.animate([],0),t=!0;if(e&&(t=!1,"play|currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split("|").forEach((function(r){void 0===e[r]&&(t=!0)}))),!t)return}!function(e,t,r){t.convertEffectInput=function(r){var n=function(e){for(var t={},r=0;r<e.length;r++)for(var n in e[r])if("offset"!=n&&"easing"!=n&&"composite"!=n){var i={offset:e[r].offset,easing:e[r].easing,value:e[r][n]};t[n]=t[n]||[],t[n].push(i)}for(var a in t){var o=t[a];if(0!=o[0].offset||1!=o[o.length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"Partial keyframes are not supported"}}return t}(e.normalizeKeyframes(r)),i=function(r){var n=[];for(var i in r)for(var a=r[i],o=0;o<a.length-1;o++){var s=o,l=o+1,u=a[s].offset,d=a[l].offset,c=u,h=d;0==o&&(c=-1/0,0==d&&(l=s)),o==a.length-2&&(h=1/0,1==u&&(s=l)),n.push({applyFrom:c,applyTo:h,startOffset:a[s].offset,endOffset:a[l].offset,easingFunction:e.parseEasingFunction(a[s].easing),property:i,interpolation:t.propertyInterpolation(i,a[s].value,a[l].value)})}return n.sort((function(e,t){return e.startOffset-t.startOffset})),n}(n);return function(e,r){if(null!=r)i.filter((function(e){return r>=e.applyFrom&&r<e.applyTo})).forEach((function(n){var i=r-n.startOffset,a=n.endOffset-n.startOffset,o=0==a?0:n.easingFunction(i/a);t.apply(e,n.property,n.interpolation(o))}));else for(var a in n)"offset"!=a&&"easing"!=a&&"composite"!=a&&t.clear(e,a)}}}(r,n),function(e,t,r){function n(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}function i(e,t,r){a[r]=a[r]||[],a[r].push([e,t])}var a={};t.addPropertiesHandler=function(e,t,r){for(var a=0;a<r.length;a++)i(e,t,n(r[a]))};var o={backgroundColor:"transparent",backgroundPosition:"0% 0%",borderBottomColor:"currentColor",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",borderBottomWidth:"3px",borderLeftColor:"currentColor",borderLeftWidth:"3px",borderRightColor:"currentColor",borderRightWidth:"3px",borderSpacing:"2px",borderTopColor:"currentColor",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",borderTopWidth:"3px",bottom:"auto",clip:"rect(0px, 0px, 0px, 0px)",color:"black",fontSize:"100%",fontWeight:"400",height:"auto",left:"auto",letterSpacing:"normal",lineHeight:"120%",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",marginTop:"0px",maxHeight:"none",maxWidth:"none",minHeight:"0px",minWidth:"0px",opacity:"1.0",outlineColor:"invert",outlineOffset:"0px",outlineWidth:"3px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",right:"auto",strokeDasharray:"none",strokeDashoffset:"0px",textIndent:"0px",textShadow:"0px 0px 0px transparent",top:"auto",transform:"",verticalAlign:"0px",visibility:"visible",width:"auto",wordSpacing:"normal",zIndex:"auto"};t.propertyInterpolation=function(r,i,s){var l=r;/-/.test(r)&&!e.isDeprecated("Hyphenated property names","2016-03-22","Use camelCase instead.",!0)&&(l=n(r)),"initial"!=i&&"initial"!=s||("initial"==i&&(i=o[l]),"initial"==s&&(s=o[l]));for(var u=i==s?[]:a[l],d=0;u&&d<u.length;d++){var c=u[d][0](i),h=u[d][0](s);if(void 0!==c&&void 0!==h){var f=u[d][1](c,h);if(f){var m=t.Interpolation.apply(null,f);return function(e){return 0==e?i:1==e?s:m(e)}}}}return t.Interpolation(!1,!0,(function(e){return e?s:i}))}}(r,n),function(e,t,r){t.KeyframeEffect=function(r,n,i,a){var o,s=function(t){var r=e.calculateActiveDuration(t),n=function(n){return e.calculateIterationProgress(r,n,t)};return n._totalDuration=t.delay+r+t.endDelay,n}(e.normalizeTimingInput(i)),l=t.convertEffectInput(n),u=function(){l(r,o)};return u._update=function(e){return null!==(o=s(e))},u._clear=function(){l(r,null)},u._hasSameTarget=function(e){return r===e},u._target=r,u._totalDuration=s._totalDuration,u._id=a,u}}(r,n),function(e,t){function r(e,t,r){r.enumerable=!0,r.configurable=!0,Object.defineProperty(e,t,r)}function n(e){this._element=e,this._surrogateStyle=document.createElementNS("http://www.w3.org/1999/xhtml","div").style,this._style=e.style,this._length=0,this._isAnimatedProperty={},this._updateSvgTransformAttr=function(e,t){return!(!t.namespaceURI||-1==t.namespaceURI.indexOf("/svg"))&&(a in e||(e[a]=/Trident|MSIE|IEMobile|Edge|Android 4/i.test(e.navigator.userAgent)),e[a])}(window,e),this._savedTransformAttr=null;for(var t=0;t<this._style.length;t++){var r=this._style[t];this._surrogateStyle[r]=this._style[r]}this._updateIndices()}function i(e){if(!e._webAnimationsPatchedStyle){var t=new n(e);try{r(e,"style",{get:function(){return t}})}catch(t){e.style._set=function(t,r){e.style[t]=r},e.style._clear=function(t){e.style[t]=""}}e._webAnimationsPatchedStyle=e.style}}var a="_webAnimationsUpdateSvgTransformAttr",o={cssText:1,length:1,parentRule:1},s={getPropertyCSSValue:1,getPropertyPriority:1,getPropertyValue:1,item:1,removeProperty:1,setProperty:1},l={removeProperty:1,setProperty:1};for(var u in n.prototype={get cssText(){return this._surrogateStyle.cssText},set cssText(e){for(var t={},r=0;r<this._surrogateStyle.length;r++)t[this._surrogateStyle[r]]=!0;for(this._surrogateStyle.cssText=e,this._updateIndices(),r=0;r<this._surrogateStyle.length;r++)t[this._surrogateStyle[r]]=!0;for(var n in t)this._isAnimatedProperty[n]||this._style.setProperty(n,this._surrogateStyle.getPropertyValue(n))},get length(){return this._surrogateStyle.length},get parentRule(){return this._style.parentRule},_updateIndices:function(){for(;this._length<this._surrogateStyle.length;)Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,get:function(e){return function(){return this._surrogateStyle[e]}}(this._length)}),this._length++;for(;this._length>this._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(t,r){this._style[t]=r,this._isAnimatedProperty[t]=!0,this._updateSvgTransformAttr&&"transform"==e.unprefixedPropertyName(t)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",e.transformToSvgMatrix(r)))},_clear:function(t){this._style[t]=this._surrogateStyle[t],this._updateSvgTransformAttr&&"transform"==e.unprefixedPropertyName(t)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null),delete this._isAnimatedProperty[t]}},s)n.prototype[u]=function(e,t){return function(){var r=this._surrogateStyle[e].apply(this._surrogateStyle,arguments);return t&&(this._isAnimatedProperty[arguments[0]]||this._style[e].apply(this._style,arguments),this._updateIndices()),r}}(u,u in l);for(var d in document.documentElement.style)d in o||d in s||function(e){r(n.prototype,e,{get:function(){return this._surrogateStyle[e]},set:function(t){this._surrogateStyle[e]=t,this._updateIndices(),this._isAnimatedProperty[e]||(this._style[e]=t)}})}(d);e.apply=function(t,r,n){i(t),t.style._set(e.propertyName(r),n)},e.clear=function(t,r){t._webAnimationsPatchedStyle&&t.style._clear(e.propertyName(r))}}(n),function(e){window.Element.prototype.animate=function(t,r){var n="";return r&&r.id&&(n=r.id),e.timeline._play(e.KeyframeEffect(this,t,r,n))}}(n),function(e,t){e.Interpolation=function(e,t,r){return function(n){return r(function e(t,r,n){if("number"==typeof t&&"number"==typeof r)return t*(1-n)+r*n;if("boolean"==typeof t&&"boolean"==typeof r)return n<.5?t:r;if(t.length==r.length){for(var i=[],a=0;a<t.length;a++)i.push(e(t[a],r[a],n));return i}throw"Mismatched interpolation arguments "+t+":"+r}(e,t,n))}}}(n),function(e,t){var r=function(){function e(e,t){for(var r=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],n=0;n<4;n++)for(var i=0;i<4;i++)for(var a=0;a<4;a++)r[n][i]+=t[n][a]*e[a][i];return r}return function(t,r,n,i,a){for(var o=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],s=0;s<4;s++)o[s][3]=a[s];for(s=0;s<3;s++)for(var l=0;l<3;l++)o[3][s]+=t[l]*o[l][s];var u=i[0],d=i[1],c=i[2],h=i[3],f=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];f[0][0]=1-2*(d*d+c*c),f[0][1]=2*(u*d-c*h),f[0][2]=2*(u*c+d*h),f[1][0]=2*(u*d+c*h),f[1][1]=1-2*(u*u+c*c),f[1][2]=2*(d*c-u*h),f[2][0]=2*(u*c-d*h),f[2][1]=2*(d*c+u*h),f[2][2]=1-2*(u*u+d*d),o=e(o,f);var m=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];for(n[2]&&(m[2][1]=n[2],o=e(o,m)),n[1]&&(m[2][1]=0,m[2][0]=n[0],o=e(o,m)),n[0]&&(m[2][0]=0,m[1][0]=n[0],o=e(o,m)),s=0;s<3;s++)for(l=0;l<3;l++)o[s][l]*=r[s];return function(e){return 0==e[0][2]&&0==e[0][3]&&0==e[1][2]&&0==e[1][3]&&0==e[2][0]&&0==e[2][1]&&1==e[2][2]&&0==e[2][3]&&0==e[3][2]&&1==e[3][3]}(o)?[o[0][0],o[0][1],o[1][0],o[1][1],o[3][0],o[3][1]]:o[0].concat(o[1],o[2],o[3])}}();e.composeMatrix=r,e.quat=function(t,r,n){var i=e.dot(t,r),a=[];if(1===(i=function(e,t,r){return Math.max(Math.min(e,r),t)}(i,-1,1)))a=t;else for(var o=Math.acos(i),s=1*Math.sin(n*o)/Math.sqrt(1-i*i),l=0;l<4;l++)a.push(t[l]*(Math.cos(n*o)-i*s)+r[l]*s);return a}}(n),function(e,t,r){e.sequenceNumber=0;var n=function(e,t,r){this.target=e,this.currentTime=t,this.timelineTime=r,this.type="finish",this.bubbles=!1,this.cancelable=!1,this.currentTarget=e,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()};t.Animation=function(t){this.id="",t&&t._id&&(this.id=t._id),this._sequenceNumber=e.sequenceNumber++,this._currentTime=0,this._startTime=null,this._paused=!1,this._playbackRate=1,this._inTimeline=!0,this._finishedFlag=!0,this.onfinish=null,this._finishHandlers=[],this._effect=t,this._inEffect=this._effect._update(0),this._idle=!0,this._currentTimePending=!1},t.Animation.prototype={_ensureAlive:function(){this.playbackRate<0&&0===this.currentTime?this._inEffect=this._effect._update(-1):this._inEffect=this._effect._update(this.currentTime),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,t.timeline._animations.push(this))},_tickCurrentTime:function(e,t){e!=this._currentTime&&(this._currentTime=e,this._isFinished&&!t&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(e){e=+e,isNaN(e)||(t.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-e/this._playbackRate),this._currentTimePending=!1,this._currentTime!=e&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(e,!0),t.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(e){e=+e,isNaN(e)||this._paused||this._idle||(this._startTime=e,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),t.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(e){if(e!=this._playbackRate){var r=this.currentTime;this._playbackRate=e,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),t.applyDirtiedAnimation(this)),null!=r&&(this.currentTime=r)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),t.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,t.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),t.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(e,t){"function"==typeof t&&"finish"==e&&this._finishHandlers.push(t)},removeEventListener:function(e,t){if("finish"==e){var r=this._finishHandlers.indexOf(t);r>=0&&this._finishHandlers.splice(r,1)}},_fireEvents:function(e){if(this._isFinished){if(!this._finishedFlag){var t=new n(this,this._currentTime,e),r=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout((function(){r.forEach((function(e){e.call(t.target,t)}))}),0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(e,t){this._idle||this._paused||(null==this._startTime?t&&(this.startTime=e-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((e-this._startTime)*this.playbackRate)),t&&(this._currentTimePending=!1,this._fireEvents(e))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var e=this._effect._target;return e._activeAnimations||(e._activeAnimations=[]),e._activeAnimations},_markTarget:function(){var e=this._targetAnimations();-1===e.indexOf(this)&&e.push(this)},_unmarkTarget:function(){var e=this._targetAnimations(),t=e.indexOf(this);-1!==t&&e.splice(t,1)}}}(r,n),function(e,t,r){function n(e){var t=u;u=[],e<p.currentTime&&(e=p.currentTime),p._animations.sort(i),p._animations=s(e,!0,p._animations)[0],t.forEach((function(t){t[1](e)})),o()}function i(e,t){return e._sequenceNumber-t._sequenceNumber}function a(){this._animations=[],this.currentTime=window.performance&&performance.now?performance.now():0}function o(){f.forEach((function(e){e()})),f.length=0}function s(e,r,n){m=!0,h=!1,t.timeline.currentTime=e,c=!1;var i=[],a=[],o=[],s=[];return n.forEach((function(t){t._tick(e,r),t._inEffect?(a.push(t._effect),t._markTarget()):(i.push(t._effect),t._unmarkTarget()),t._needsTick&&(c=!0);var n=t._inEffect||t._needsTick;t._inTimeline=n,n?o.push(t):s.push(t)})),f.push.apply(f,i),f.push.apply(f,a),c&&requestAnimationFrame((function(){})),m=!1,[o,s]}var l=window.requestAnimationFrame,u=[],d=0;window.requestAnimationFrame=function(e){var t=d++;return 0==u.length&&l(n),u.push([t,e]),t},window.cancelAnimationFrame=function(e){u.forEach((function(t){t[0]==e&&(t[1]=function(){})}))},a.prototype={_play:function(r){r._timing=e.normalizeTimingInput(r.timing);var n=new t.Animation(r);return n._idle=!1,n._timeline=this,this._animations.push(n),t.restart(),t.applyDirtiedAnimation(n),n}};var c=!1,h=!1;t.restart=function(){return c||(c=!0,requestAnimationFrame((function(){})),h=!0),h},t.applyDirtiedAnimation=function(e){if(!m){e._markTarget();var r=e._targetAnimations();r.sort(i),s(t.timeline.currentTime,!1,r.slice())[1].forEach((function(e){var t=p._animations.indexOf(e);-1!==t&&p._animations.splice(t,1)})),o()}};var f=[],m=!1,p=new a;t.timeline=p}(r,n),function(e,t){function r(e,t){for(var r=0,n=0;n<e.length;n++)r+=e[n]*t[n];return r}function n(e,t){return[e[0]*t[0]+e[4]*t[1]+e[8]*t[2]+e[12]*t[3],e[1]*t[0]+e[5]*t[1]+e[9]*t[2]+e[13]*t[3],e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]*t[3],e[3]*t[0]+e[7]*t[1]+e[11]*t[2]+e[15]*t[3],e[0]*t[4]+e[4]*t[5]+e[8]*t[6]+e[12]*t[7],e[1]*t[4]+e[5]*t[5]+e[9]*t[6]+e[13]*t[7],e[2]*t[4]+e[6]*t[5]+e[10]*t[6]+e[14]*t[7],e[3]*t[4]+e[7]*t[5]+e[11]*t[6]+e[15]*t[7],e[0]*t[8]+e[4]*t[9]+e[8]*t[10]+e[12]*t[11],e[1]*t[8]+e[5]*t[9]+e[9]*t[10]+e[13]*t[11],e[2]*t[8]+e[6]*t[9]+e[10]*t[10]+e[14]*t[11],e[3]*t[8]+e[7]*t[9]+e[11]*t[10]+e[15]*t[11],e[0]*t[12]+e[4]*t[13]+e[8]*t[14]+e[12]*t[15],e[1]*t[12]+e[5]*t[13]+e[9]*t[14]+e[13]*t[15],e[2]*t[12]+e[6]*t[13]+e[10]*t[14]+e[14]*t[15],e[3]*t[12]+e[7]*t[13]+e[11]*t[14]+e[15]*t[15]]}function i(e){var t=e.rad||0;return((e.deg||0)/360+(e.grad||0)/400+(e.turn||0))*(2*Math.PI)+t}function a(e){switch(e.t){case"rotatex":var t=i(e.d[0]);return[1,0,0,0,0,Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1];case"rotatey":return t=i(e.d[0]),[Math.cos(t),0,-Math.sin(t),0,0,1,0,0,Math.sin(t),0,Math.cos(t),0,0,0,0,1];case"rotate":case"rotatez":return t=i(e.d[0]),[Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1,0,0,0,0,1];case"rotate3d":var r=e.d[0],n=e.d[1],a=e.d[2],o=(t=i(e.d[3]),r*r+n*n+a*a);if(0===o)r=1,n=0,a=0;else if(1!==o){var s=Math.sqrt(o);r/=s,n/=s,a/=s}var l=Math.sin(t/2),u=l*Math.cos(t/2),d=l*l;return[1-2*(n*n+a*a)*d,2*(r*n*d+a*u),2*(r*a*d-n*u),0,2*(r*n*d-a*u),1-2*(r*r+a*a)*d,2*(n*a*d+r*u),0,2*(r*a*d+n*u),2*(n*a*d-r*u),1-2*(r*r+n*n)*d,0,0,0,0,1];case"scale":return[e.d[0],0,0,0,0,e.d[1],0,0,0,0,1,0,0,0,0,1];case"scalex":return[e.d[0],0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaley":return[1,0,0,0,0,e.d[0],0,0,0,0,1,0,0,0,0,1];case"scalez":return[1,0,0,0,0,1,0,0,0,0,e.d[0],0,0,0,0,1];case"scale3d":return[e.d[0],0,0,0,0,e.d[1],0,0,0,0,e.d[2],0,0,0,0,1];case"skew":var c=i(e.d[0]),h=i(e.d[1]);return[1,Math.tan(h),0,0,Math.tan(c),1,0,0,0,0,1,0,0,0,0,1];case"skewx":return t=i(e.d[0]),[1,0,0,0,Math.tan(t),1,0,0,0,0,1,0,0,0,0,1];case"skewy":return t=i(e.d[0]),[1,Math.tan(t),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":return[1,0,0,0,0,1,0,0,0,0,1,0,r=e.d[0].px||0,n=e.d[1].px||0,0,1];case"translatex":return[1,0,0,0,0,1,0,0,0,0,1,0,r=e.d[0].px||0,0,0,1];case"translatey":return[1,0,0,0,0,1,0,0,0,0,1,0,0,n=e.d[0].px||0,0,1];case"translatez":return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,a=e.d[0].px||0,1];case"translate3d":return[1,0,0,0,0,1,0,0,0,0,1,0,r=e.d[0].px||0,n=e.d[1].px||0,a=e.d[2].px||0,1];case"perspective":return[1,0,0,0,0,1,0,0,0,0,1,e.d[0].px?-1/e.d[0].px:0,0,0,0,1];case"matrix":return[e.d[0],e.d[1],0,0,e.d[2],e.d[3],0,0,0,0,1,0,e.d[4],e.d[5],0,1];case"matrix3d":return e.d}}function o(e){return 0===e.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:e.map(a).reduce(n)}var s=function(){function e(e){return e[0][0]*e[1][1]*e[2][2]+e[1][0]*e[2][1]*e[0][2]+e[2][0]*e[0][1]*e[1][2]-e[0][2]*e[1][1]*e[2][0]-e[1][2]*e[2][1]*e[0][0]-e[2][2]*e[0][1]*e[1][0]}function t(e){var t=n(e);return[e[0]/t,e[1]/t,e[2]/t]}function n(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2])}function i(e,t,r,n){return[r*e[0]+n*t[0],r*e[1]+n*t[1],r*e[2]+n*t[2]]}return function(a){var o=[a.slice(0,4),a.slice(4,8),a.slice(8,12),a.slice(12,16)];if(1!==o[3][3])return null;for(var s=[],l=0;l<4;l++)s.push(o[l].slice());for(l=0;l<3;l++)s[l][3]=0;if(0===e(s))return null;var u,d=[];o[0][3]||o[1][3]||o[2][3]?(d.push(o[0][3]),d.push(o[1][3]),d.push(o[2][3]),d.push(o[3][3]),u=function(e,t){for(var r=[],n=0;n<4;n++){for(var i=0,a=0;a<4;a++)i+=e[a]*t[a][n];r.push(i)}return r}(d,function(e){return[[e[0][0],e[1][0],e[2][0],e[3][0]],[e[0][1],e[1][1],e[2][1],e[3][1]],[e[0][2],e[1][2],e[2][2],e[3][2]],[e[0][3],e[1][3],e[2][3],e[3][3]]]}(function(t){for(var r=1/e(t),n=t[0][0],i=t[0][1],a=t[0][2],o=t[1][0],s=t[1][1],l=t[1][2],u=t[2][0],d=t[2][1],c=t[2][2],h=[[(s*c-l*d)*r,(a*d-i*c)*r,(i*l-a*s)*r,0],[(l*u-o*c)*r,(n*c-a*u)*r,(a*o-n*l)*r,0],[(o*d-s*u)*r,(u*i-n*d)*r,(n*s-i*o)*r,0]],f=[],m=0;m<3;m++){for(var p=0,g=0;g<3;g++)p+=t[3][g]*h[g][m];f.push(p)}return f.push(1),h.push(f),h}(s)))):u=[0,0,0,1];var c=o[3].slice(0,3),h=[];h.push(o[0].slice(0,3));var f=[];f.push(n(h[0])),h[0]=t(h[0]);var m=[];h.push(o[1].slice(0,3)),m.push(r(h[0],h[1])),h[1]=i(h[1],h[0],1,-m[0]),f.push(n(h[1])),h[1]=t(h[1]),m[0]/=f[1],h.push(o[2].slice(0,3)),m.push(r(h[0],h[2])),h[2]=i(h[2],h[0],1,-m[1]),m.push(r(h[1],h[2])),h[2]=i(h[2],h[1],1,-m[2]),f.push(n(h[2])),h[2]=t(h[2]),m[1]/=f[2],m[2]/=f[2];var p=function(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}(h[1],h[2]);if(r(h[0],p)<0)for(l=0;l<3;l++)f[l]*=-1,h[l][0]*=-1,h[l][1]*=-1,h[l][2]*=-1;var g,_,v=h[0][0]+h[1][1]+h[2][2]+1;return v>1e-4?(g=.5/Math.sqrt(v),_=[(h[2][1]-h[1][2])*g,(h[0][2]-h[2][0])*g,(h[1][0]-h[0][1])*g,.25/g]):h[0][0]>h[1][1]&&h[0][0]>h[2][2]?_=[.25*(g=2*Math.sqrt(1+h[0][0]-h[1][1]-h[2][2])),(h[0][1]+h[1][0])/g,(h[0][2]+h[2][0])/g,(h[2][1]-h[1][2])/g]:h[1][1]>h[2][2]?(g=2*Math.sqrt(1+h[1][1]-h[0][0]-h[2][2]),_=[(h[0][1]+h[1][0])/g,.25*g,(h[1][2]+h[2][1])/g,(h[0][2]-h[2][0])/g]):(g=2*Math.sqrt(1+h[2][2]-h[0][0]-h[1][1]),_=[(h[0][2]+h[2][0])/g,(h[1][2]+h[2][1])/g,.25*g,(h[1][0]-h[0][1])/g]),[c,f,m,_,u]}}();e.dot=r,e.makeMatrixDecomposition=function(e){return[s(o(e))]},e.transformListToMatrix=o}(n),function(e){function t(e,t){var r=e.exec(t);if(r)return[r=e.ignoreCase?r[0].toLowerCase():r[0],t.substr(r.length)]}function r(e,t){var r=e(t=t.replace(/^\s*/,""));if(r)return[r[0],r[1].replace(/^\s*/,"")]}function n(e,t,r,n,i){for(var a=[],o=[],s=[],l=function(e,t){for(var r=e,n=t;r&&n;)r>n?r%=n:n%=r;return e*t/(r+n)}(n.length,i.length),u=0;u<l;u++){var d=t(n[u%n.length],i[u%i.length]);if(!d)return;a.push(d[0]),o.push(d[1]),s.push(d[2])}return[a,o,function(t){var n=t.map((function(e,t){return s[t](e)})).join(r);return e?e(n):n}]}e.consumeToken=t,e.consumeTrimmed=r,e.consumeRepeated=function(e,n,i){e=r.bind(null,e);for(var a=[];;){var o=e(i);if(!o)return[a,i];if(a.push(o[0]),!(o=t(n,i=o[1]))||""==o[1])return[a,i];i=o[1]}},e.consumeParenthesised=function(e,t){for(var r=0,n=0;n<t.length&&(!/\s|,/.test(t[n])||0!=r);n++)if("("==t[n])r++;else if(")"==t[n]&&(0==--r&&n++,r<=0))break;var i=e(t.substr(0,n));return null==i?void 0:[i,t.substr(n)]},e.ignore=function(e){return function(t){var r=e(t);return r&&(r[0]=void 0),r}},e.optional=function(e,t){return function(r){return e(r)||[t,r]}},e.consumeList=function(t,r){for(var n=[],i=0;i<t.length;i++){var a=e.consumeTrimmed(t[i],r);if(!a||""==a[0])return;void 0!==a[0]&&n.push(a[0]),r=a[1]}if(""==r)return n},e.mergeNestedRepeated=n.bind(null,null),e.mergeWrappedNestedRepeated=n,e.mergeList=function(e,t,r){for(var n=[],i=[],a=[],o=0,s=0;s<r.length;s++)if("function"==typeof r[s]){var l=r[s](e[o],t[o++]);n.push(l[0]),i.push(l[1]),a.push(l[2])}else!function(e){n.push(!1),i.push(!1),a.push((function(){return r[e]}))}(s);return[n,i,function(e){for(var t="",r=0;r<e.length;r++)t+=a[r](e[r]);return t}]}}(n),function(e){function t(t){var r={inset:!1,lengths:[],color:null},n=e.consumeRepeated((function(t){var n=e.consumeToken(/^inset/i,t);return n?(r.inset=!0,n):(n=e.consumeLengthOrPercent(t))?(r.lengths.push(n[0]),n):(n=e.consumeColor(t))?(r.color=n[0],n):void 0}),/^/,t);if(n&&n[0].length)return[r,n[1]]}var r=function(t,r,n,i){function a(e){return{inset:e,color:[0,0,0,0],lengths:[{px:0},{px:0},{px:0},{px:0}]}}for(var o=[],s=[],l=0;l<n.length||l<i.length;l++){var u=n[l]||a(i[l].inset),d=i[l]||a(n[l].inset);o.push(u),s.push(d)}return e.mergeNestedRepeated(t,r,o,s)}.bind(null,(function(t,r){for(;t.lengths.length<Math.max(t.lengths.length,r.lengths.length);)t.lengths.push({px:0});for(;r.lengths.length<Math.max(t.lengths.length,r.lengths.length);)r.lengths.push({px:0});if(t.inset==r.inset&&!!t.color==!!r.color){for(var n,i=[],a=[[],0],o=[[],0],s=0;s<t.lengths.length;s++){var l=e.mergeDimensions(t.lengths[s],r.lengths[s],2==s);a[0].push(l[0]),o[0].push(l[1]),i.push(l[2])}if(t.color&&r.color){var u=e.mergeColors(t.color,r.color);a[1]=u[0],o[1]=u[1],n=u[2]}return[a,o,function(e){for(var r=t.inset?"inset ":" ",a=0;a<i.length;a++)r+=i[a](e[0][a])+" ";return n&&(r+=n(e[1])),r}]}}),", ");e.addPropertiesHandler((function(r){var n=e.consumeRepeated(t,/^,/,r);if(n&&""==n[1])return n[0]}),r,["box-shadow","text-shadow"])}(n),function(e,t){function r(e){return e.toFixed(3).replace(/0+$/,"").replace(/\.$/,"")}function n(e,t,r){return Math.min(t,Math.max(e,r))}function i(e){if(/^\s*[-+]?(\d*\.)?\d+\s*$/.test(e))return Number(e)}function a(e,t){return function(i,a){return[i,a,function(i){return r(n(e,t,i))}]}}function o(e){var t=e.trim().split(/\s*[\s,]\s*/);if(0!==t.length){for(var r=[],n=0;n<t.length;n++){var a=i(t[n]);if(void 0===a)return;r.push(a)}return r}}e.clamp=n,e.addPropertiesHandler(o,(function(e,t){if(e.length==t.length)return[e,t,function(e){return e.map(r).join(" ")}]}),["stroke-dasharray"]),e.addPropertiesHandler(i,a(0,1/0),["border-image-width","line-height"]),e.addPropertiesHandler(i,a(0,1),["opacity","shape-image-threshold"]),e.addPropertiesHandler(i,(function(e,t){if(0!=e)return a(0,1/0)(e,t)}),["flex-grow","flex-shrink"]),e.addPropertiesHandler(i,(function(e,t){return[e,t,function(e){return Math.round(n(1,1/0,e))}]}),["orphans","widows"]),e.addPropertiesHandler(i,(function(e,t){return[e,t,Math.round]}),["z-index"]),e.parseNumber=i,e.parseNumberList=o,e.mergeNumbers=function(e,t){return[e,t,r]},e.numberToString=r}(n),function(e,t){e.addPropertiesHandler(String,(function(e,t){if("visible"==e||"visible"==t)return[0,1,function(r){return r<=0?e:r>=1?t:"visible"}]}),["visibility"])}(n),function(e,t){function r(e){e=e.trim(),a.fillStyle="#000",a.fillStyle=e;var t=a.fillStyle;if(a.fillStyle="#fff",a.fillStyle=e,t==a.fillStyle){a.fillRect(0,0,1,1);var r=a.getImageData(0,0,1,1).data;a.clearRect(0,0,1,1);var n=r[3]/255;return[r[0]*n,r[1]*n,r[2]*n,n]}}function n(t,r){return[t,r,function(t){function r(e){return Math.max(0,Math.min(255,e))}if(t[3])for(var n=0;n<3;n++)t[n]=Math.round(r(t[n]/t[3]));return t[3]=e.numberToString(e.clamp(0,1,t[3])),"rgba("+t.join(",")+")"}]}var i=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");i.width=i.height=1;var a=i.getContext("2d");e.addPropertiesHandler(r,n,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),e.consumeColor=e.consumeParenthesised.bind(null,r),e.mergeColors=n}(n),function(e,t){function r(e){function t(){var t=o.exec(e);a=t?t[0]:void 0}function r(){if("("!==a)return function(){var e=Number(a);return t(),e}();t();var e=i();return")"!==a?NaN:(t(),e)}function n(){for(var e=r();"*"===a||"/"===a;){var n=a;t();var i=r();"*"===n?e*=i:e/=i}return e}function i(){for(var e=n();"+"===a||"-"===a;){var r=a;t();var i=n();"+"===r?e+=i:e-=i}return e}var a,o=/([\+\-\w\.]+|[\(\)\*\/])/g;return t(),i()}function n(e,t){if("0"==(t=t.trim().toLowerCase())&&"px".search(e)>=0)return{px:0};if(/^[^(]*$|^calc/.test(t)){t=t.replace(/calc\(/g,"(");var n={};t=t.replace(e,(function(e){return n[e]=null,"U"+e}));for(var i="U("+e.source+")",a=t.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+i,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),o=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],s=0;s<o.length;)o[s].test(a)?(a=a.replace(o[s],"$1"),s=0):s++;if("D"==a){for(var l in n){var u=r(t.replace(new RegExp("U"+l,"g"),"").replace(new RegExp(i,"g"),"*0"));if(!isFinite(u))return;n[l]=u}return n}}}function i(e,t){return a(e,t,!0)}function a(t,r,n){var i,a=[];for(i in t)a.push(i);for(i in r)a.indexOf(i)<0&&a.push(i);return t=a.map((function(e){return t[e]||0})),r=a.map((function(e){return r[e]||0})),[t,r,function(t){var r=t.map((function(r,i){return 1==t.length&&n&&(r=Math.max(r,0)),e.numberToString(r)+a[i]})).join(" + ");return t.length>1?"calc("+r+")":r}]}var o="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",s=n.bind(null,new RegExp(o,"g")),l=n.bind(null,new RegExp(o+"|%","g")),u=n.bind(null,/deg|rad|grad|turn/g);e.parseLength=s,e.parseLengthOrPercent=l,e.consumeLengthOrPercent=e.consumeParenthesised.bind(null,l),e.parseAngle=u,e.mergeDimensions=a;var d=e.consumeParenthesised.bind(null,s),c=e.consumeRepeated.bind(void 0,d,/^/),h=e.consumeRepeated.bind(void 0,c,/^,/);e.consumeSizePairList=h;var f=e.mergeNestedRepeated.bind(void 0,i," "),m=e.mergeNestedRepeated.bind(void 0,f,",");e.mergeNonNegativeSizePair=f,e.addPropertiesHandler((function(e){var t=h(e);if(t&&""==t[1])return t[0]}),m,["background-size"]),e.addPropertiesHandler(l,i,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),e.addPropertiesHandler(l,a,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(n),function(e,t){function r(t){return e.consumeLengthOrPercent(t)||e.consumeToken(/^auto/,t)}function n(t){var n=e.consumeList([e.ignore(e.consumeToken.bind(null,/^rect/)),e.ignore(e.consumeToken.bind(null,/^\(/)),e.consumeRepeated.bind(null,r,/^,/),e.ignore(e.consumeToken.bind(null,/^\)/))],t);if(n&&4==n[0].length)return n[0]}var i=e.mergeWrappedNestedRepeated.bind(null,(function(e){return"rect("+e+")"}),(function(t,r){return"auto"==t||"auto"==r?[!0,!1,function(n){var i=n?t:r;if("auto"==i)return"auto";var a=e.mergeDimensions(i,i);return a[2](a[0])}]:e.mergeDimensions(t,r)}),", ");e.parseBox=n,e.mergeBoxes=i,e.addPropertiesHandler(n,i,["clip"])}(n),function(e,t){function r(e){return function(t){var r=0;return e.map((function(e){return e===u?t[r++]:e}))}}function n(e){return e}function i(t){if("none"==(t=t.toLowerCase().trim()))return[];for(var r,n=/\s*(\w+)\(([^)]*)\)/g,i=[],a=0;r=n.exec(t);){if(r.index!=a)return;a=r.index+r[0].length;var o=r[1],s=h[o];if(!s)return;var l=r[2].split(","),u=s[0];if(u.length<l.length)return;for(var f=[],m=0;m<u.length;m++){var p,g=l[m],_=u[m];if(void 0===(p=g?{A:function(t){return"0"==t.trim()?c:e.parseAngle(t)},N:e.parseNumber,T:e.parseLengthOrPercent,L:e.parseLength}[_.toUpperCase()](g):{a:c,n:f[0],t:d}[_]))return;f.push(p)}if(i.push({t:o,d:f}),n.lastIndex==t.length)return i}}function a(e){return e.toFixed(6).replace(".000000","")}function o(t,r){if(t.decompositionPair!==r){t.decompositionPair=r;var n=e.makeMatrixDecomposition(t)}if(r.decompositionPair!==t){r.decompositionPair=t;var i=e.makeMatrixDecomposition(r)}return null==n[0]||null==i[0]?[[!1],[!0],function(e){return e?r[0].d:t[0].d}]:(n[0].push(0),i[0].push(1),[n,i,function(t){var r=e.quat(n[0][3],i[0][3],t[5]);return e.composeMatrix(t[0],t[1],t[2],r,t[4]).map(a).join(",")}])}function s(e){return e.replace(/[xy]/,"")}function l(e){return e.replace(/(x|y|z|3d)?$/,"3d")}var u=null,d={px:0},c={deg:0},h={matrix:["NNNNNN",[u,u,0,0,u,u,0,0,0,0,1,0,u,u,0,1],n],matrix3d:["NNNNNNNNNNNNNNNN",n],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",r([u,u,1]),n],scalex:["N",r([u,1,1]),r([u,1])],scaley:["N",r([1,u,1]),r([1,u])],scalez:["N",r([1,1,u])],scale3d:["NNN",n],skew:["Aa",null,n],skewx:["A",null,r([u,c])],skewy:["A",null,r([c,u])],translate:["Tt",r([u,u,d]),n],translatex:["T",r([u,d,d]),r([u,d])],translatey:["T",r([d,u,d]),r([d,u])],translatez:["L",r([d,d,u])],translate3d:["TTL",n]};e.addPropertiesHandler(i,(function(t,r){var n=e.makeMatrixDecomposition&&!0,i=!1;if(!t.length||!r.length){t.length||(i=!0,t=r,r=[]);for(var a=0;a<t.length;a++){var u=t[a].t,d=t[a].d,c="scale"==u.substr(0,5)?1:0;r.push({t:u,d:d.map((function(e){if("number"==typeof e)return c;var t={};for(var r in e)t[r]=c;return t}))})}}var f=function(e,t){return"perspective"==e&&"perspective"==t||("matrix"==e||"matrix3d"==e)&&("matrix"==t||"matrix3d"==t)},m=[],p=[],g=[];if(t.length!=r.length){if(!n)return;m=[(L=o(t,r))[0]],p=[L[1]],g=[["matrix",[L[2]]]]}else for(a=0;a<t.length;a++){var _=t[a].t,v=r[a].t,y=t[a].d,b=r[a].d,M=h[_],w=h[v];if(f(_,v)){if(!n)return;var L=o([t[a]],[r[a]]);m.push(L[0]),p.push(L[1]),g.push(["matrix",[L[2]]])}else{if(_==v)u=_;else if(M[2]&&w[2]&&s(_)==s(v))u=s(_),y=M[2](y),b=w[2](b);else{if(!M[1]||!w[1]||l(_)!=l(v)){if(!n)return;m=[(L=o(t,r))[0]],p=[L[1]],g=[["matrix",[L[2]]]];break}u=l(_),y=M[1](y),b=w[1](b)}for(var T=[],x=[],k=[],S=0;S<y.length;S++)L=("number"==typeof y[S]?e.mergeNumbers:e.mergeDimensions)(y[S],b[S]),T[S]=L[0],x[S]=L[1],k.push(L[2]);m.push(T),p.push(x),g.push([u,k])}}if(i){var D=m;m=p,p=D}return[m,p,function(e){return e.map((function(e,t){var r=e.map((function(e,r){return g[t][1][r](e)})).join(",");return"matrix"==g[t][0]&&16==r.split(",").length&&(g[t][0]="matrix3d"),g[t][0]+"("+r+")"})).join(" ")}]}),["transform"]),e.transformToSvgMatrix=function(t){var r=e.transformListToMatrix(i(t));return"matrix("+a(r[0])+" "+a(r[1])+" "+a(r[4])+" "+a(r[5])+" "+a(r[12])+" "+a(r[13])+")"}}(n),function(e){function t(t){return t=100*Math.round(t/100),400===(t=e.clamp(100,900,t))?"normal":700===t?"bold":String(t)}e.addPropertiesHandler((function(e){var t=Number(e);if(!(isNaN(t)||t<100||t>900||t%100!=0))return t}),(function(e,r){return[e,r,t]}),["font-weight"])}(n),function(e){function t(e){var t={};for(var r in e)t[r]=-e[r];return t}function r(t){return e.consumeToken(/^(left|center|right|top|bottom)\b/i,t)||e.consumeLengthOrPercent(t)}function n(t,n){var i=e.consumeRepeated(r,/^/,n);if(i&&""==i[1]){var o=i[0];if(o[0]=o[0]||"center",o[1]=o[1]||"center",3==t&&(o[2]=o[2]||{px:0}),o.length==t){if(/top|bottom/.test(o[0])||/left|right/.test(o[1])){var s=o[0];o[0]=o[1],o[1]=s}if(/left|right|center|Object/.test(o[0])&&/top|bottom|center|Object/.test(o[1]))return o.map((function(e){return"object"==typeof e?e:a[e]}))}}}function i(n){var i=e.consumeRepeated(r,/^/,n);if(i){for(var o=i[0],s=[{"%":50},{"%":50}],l=0,u=!1,d=0;d<o.length;d++){var c=o[d];"string"==typeof c?(u=/bottom|right/.test(c),s[l={left:0,right:0,center:l,top:1,bottom:1}[c]]=a[c],"center"==c&&l++):(u&&((c=t(c))["%"]=(c["%"]||0)+100),s[l]=c,l++,u=!1)}return[s,i[1]]}}var a={left:{"%":0},center:{"%":50},right:{"%":100},top:{"%":0},bottom:{"%":100}},o=e.mergeNestedRepeated.bind(null,e.mergeDimensions," ");e.addPropertiesHandler(n.bind(null,3),o,["transform-origin"]),e.addPropertiesHandler(n.bind(null,2),o,["perspective-origin"]),e.consumePosition=i,e.mergeOffsetList=o;var s=e.mergeNestedRepeated.bind(null,o,", ");e.addPropertiesHandler((function(t){var r=e.consumeRepeated(i,/^,/,t);if(r&&""==r[1])return r[0]}),s,["background-position","object-position"])}(n),function(e){var t=e.consumeParenthesised.bind(null,e.parseLengthOrPercent),r=e.consumeRepeated.bind(void 0,t,/^/),n=e.mergeNestedRepeated.bind(void 0,e.mergeDimensions," "),i=e.mergeNestedRepeated.bind(void 0,n,",");e.addPropertiesHandler((function(n){var i=e.consumeToken(/^circle/,n);if(i&&i[0])return["circle"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),t,e.ignore(e.consumeToken.bind(void 0,/^at/)),e.consumePosition,e.ignore(e.consumeToken.bind(void 0,/^\)/))],i[1]));var a=e.consumeToken(/^ellipse/,n);if(a&&a[0])return["ellipse"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),r,e.ignore(e.consumeToken.bind(void 0,/^at/)),e.consumePosition,e.ignore(e.consumeToken.bind(void 0,/^\)/))],a[1]));var o=e.consumeToken(/^polygon/,n);return o&&o[0]?["polygon"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),e.optional(e.consumeToken.bind(void 0,/^nonzero\s*,|^evenodd\s*,/),"nonzero,"),e.consumeSizePairList,e.ignore(e.consumeToken.bind(void 0,/^\)/))],o[1])):void 0}),(function(t,r){if(t[0]===r[0])return"circle"==t[0]?e.mergeList(t.slice(1),r.slice(1),["circle(",e.mergeDimensions," at ",e.mergeOffsetList,")"]):"ellipse"==t[0]?e.mergeList(t.slice(1),r.slice(1),["ellipse(",e.mergeNonNegativeSizePair," at ",e.mergeOffsetList,")"]):"polygon"==t[0]&&t[1]==r[1]?e.mergeList(t.slice(2),r.slice(2),["polygon(",t[1],i,")"]):void 0}),["shape-outside"])}(n),function(e,t){function r(e,t){t.concat([e]).forEach((function(t){t in document.documentElement.style&&(n[e]=t),i[t]=e}))}var n={},i={};r("transform",["webkitTransform","msTransform"]),r("transformOrigin",["webkitTransformOrigin"]),r("perspective",["webkitPerspective"]),r("perspectiveOrigin",["webkitPerspectiveOrigin"]),e.propertyName=function(e){return n[e]||e},e.unprefixedPropertyName=function(e){return i[e]||e}}(n)}(),function(){if(void 0===document.createElement("div").animate([]).oncancel){if(window.performance&&performance.now)var e=function(){return performance.now()};else e=function(){return Date.now()};var t=function(e,t,r){this.target=e,this.currentTime=t,this.timelineTime=r,this.type="cancel",this.bubbles=!1,this.cancelable=!1,this.currentTarget=e,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()},r=window.Element.prototype.animate;window.Element.prototype.animate=function(n,i){var a=r.call(this,n,i);a._cancelHandlers=[],a.oncancel=null;var o=a.cancel;a.cancel=function(){o.call(this);var r=new t(this,null,e()),n=this._cancelHandlers.concat(this.oncancel?[this.oncancel]:[]);setTimeout((function(){n.forEach((function(e){e.call(r.target,r)}))}),0)};var s=a.addEventListener;a.addEventListener=function(e,t){"function"==typeof t&&"cancel"==e?this._cancelHandlers.push(t):s.call(this,e,t)};var l=a.removeEventListener;return a.removeEventListener=function(e,t){if("cancel"==e){var r=this._cancelHandlers.indexOf(t);r>=0&&this._cancelHandlers.splice(r,1)}else l.call(this,e,t)},a}}}(),function(e){var t=document.documentElement,r=null,n=!1;try{var i="0"==getComputedStyle(t).getPropertyValue("opacity")?"1":"0";(r=t.animate({opacity:[i,i]},{duration:1})).currentTime=0,n=getComputedStyle(t).getPropertyValue("opacity")==i}catch(e){}finally{r&&r.cancel()}if(!n){var a=window.Element.prototype.animate;window.Element.prototype.animate=function(t,r){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&t[Symbol.iterator]&&(t=Array.from(t)),Array.isArray(t)||null===t||(t=e.convertToArrayForm(t)),a.call(this,t,r)}}}(r)},function(e,t,r){"use strict";var n=r(17),i=r(611),a={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"select",label:"method",name:"method",property:{options:[{display:"GET",value:"GET"},{display:"POST",value:"POST"}]}},{type:"string",label:"action",name:"action"},{type:"number",label:"period",name:"period"},{type:"string",label:"name",name:"name"},{type:"string",label:"authorization",name:"authorization"},{type:"select",label:"format",name:"format",property:{options:[{display:"JSON",value:"JSON"},{display:"XML",value:"XML"},{display:"TEXT",value:"TEXT"}]}},{type:"select",label:"content-type",name:"contentType",property:{options:[{display:"JSON",value:"application/json"},{display:"FORM",value:"application/x-www-form-urlencoded"},{display:"TEXT",value:"text/plain"}]}},{type:"checkbox",label:"with-credentials",name:"withCredentials"},{type:"checkbox",label:"submit-on-load",name:"submitOnLoad"},{type:"checkbox",label:"debug",name:"debug"}],"value-property":"action"};class o extends n.HTMLOverlayContainer{dispose(){super.dispose(),this._stopRepeater()}setElementProperties(e){var{action:t="",method:r="POST",name:n="",contentType:i=""}=this.state;e.action=t,e.method=r,e.contentType=i,e.name=n}get action(){return this.state.action}set action(e){this.setState("action",e),this._startRepeater()}get period(){return 1e3*this.state.period}set period(e){this.setState("period",e),this._startRepeater()}_startRepeater(){this._stopRepeater(),this.app.isViewMode&&this.period&&(this._repeatInterval=setInterval(this._submit.bind(this),this.period))}_stopRepeater(){this._repeatInterval&&clearInterval(this._repeatInterval)}_onload(e){var t=e.target.response;try{switch(this.get("format")){case"JSON":t=JSON.parse(t);break;case"XML":t=Object(i.xml2js)(t,{compact:!0})}this.state.debug&&console.log("[FORM-RESULT]",t),this.setState("data",t)}catch(e){console.error(e)}}oncreate_element(e){if(this.app.isViewMode){e.onsubmit=t=>{t.preventDefault();var r=e.action,n=new XMLHttpRequest,i=[].filter.call(e.elements,(function(e){return"radio"!=e.type&&"checkbox"!=e.type||e.checked})).filter((function(e){return!!e.name})).filter((function(e){return!e.disabled})).map((function(e){return encodeURIComponent(e.name)+"="+encodeURIComponent(e.value)})).join("&");return n.onloadend=this._onload.bind(this),"get"==e.method?n.open(e.method,r+"?"+i):n.open(e.method,r),e.contentType&&n.setRequestHeader("Content-Type",e.contentType),this.get("authorization")&&n.setRequestHeader("Authorization",this.get("authorization")),this.get("withCredentials")&&(n.withCredentials=!0),"get"==e.method?n.send():n.send(i),!1},this.getState("submitOnLoad")&&setTimeout(this._submit.bind(this),100),this._startRepeater()}}_submit(){this.element.dispatchEvent(new Event("submit",{cancelable:!0}))}get nature(){return a}}n.Component.register("form",o);var s={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"legend",name:"legend"}]};class l extends n.HTMLOverlayContainer{setElementProperties(e){var{legend:t=""}=this.state;t?this.legendElement.textContent=t:(this._legendElement&&this.element.removeChild(this._legendElement),delete this._legendElement)}get legendElement(){if(!this._legendElement){var e=document.createElement("legend");this.element.appendChild(e),this._legendElement=e}return this._legendElement}get nature(){return s}}n.Component.register("fieldset",l);var u={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"value",name:"value"},{type:"number",label:"size",name:"size"},{type:"string",label:"name",name:"name"},{type:"checkbox",label:"submit-on-change",name:"submitOnChange"},{type:"checkbox",label:"copy-value-to-data",name:"copyValueToData"},{type:"string",label:"text-field",name:"textField"},{type:"string",label:"value-field",name:"valueField"},{type:"options",label:"options",name:"options"}],"value-property":"value"};class d extends n.HTMLOverlayElement{get nature(){return u}buildOptions(){var e,{options:t=[],textField:r,valueField:n,value:i}=this.state;t instanceof Array||(t=[]),this.element.textContent="",t.map&&t.map((t,i)=>{var a,o;return a=r?"(index)"==r?i:t&&t[r]||String.fromCharCode(160):t&&(t.text||t),o=n?"(index)"==n?i:t&&t[n]:t&&(t.value||t),void 0===e&&(e=o),o==this.value&&(e=this.value),{text:a,value:o}}).forEach(e=>{var t=document.createElement("option");t.value="string"==typeof e.value?e.value:JSON.stringify(e.value),t.text=e.text,this.element.appendChild(t)}),void 0!==e&&this.value!==e&&(this.value=JSON.stringify(e)),this.element.value!=this.value&&(this.element.value=this.value,this.element.dispatchEvent(new Event("change")))}createElement(){super.createElement(),this.buildOptions();var e=this.element;e.value=this.get("value")||"",e.onchange=t=>{this.set("value",e.value)}}setElementProperties(e){var{size:t,name:r}=this.state;e.size=t,e.name=r}onchange(e,t){if(super.onchange(e,t),"value"in e&&this.element){if(this.element.value=e.value,this.get("copyValueToData"))try{this.data=JSON.parse(e.value)}catch(t){this.data=e.value}this.get("submitOnChange")&&this.element.form&&this.element.form.dispatchEvent(new Event("submit",{cancelable:!0}))}"options"in e&&this.buildOptions()}get options(){return this.getState("options")}set options(e){this.setState("options",e)}}n.Component.register("select",d);var c={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"name",name:"name"},{type:"string",label:"value",name:"text"},{type:"string",label:"placeholder",name:"placeholder"},{type:"checkbox",label:"readonly",name:"readonly"},{type:"checkbox",label:"disabled",name:"disabled"},{type:"number",label:"max-length",name:"maxlength"}],"value-property":"text"};class h extends n.HTMLOverlayElement{get nature(){return c}get tagName(){return"textarea"}createElement(){super.createElement(),this.element.style.resize="none",this.element.onchange=e=>{this.value=this.element.value}}setElementProperties(e){var{name:t="",placeholder:r="",disabled:n,readonly:i,maxlength:a}=this.state;try{e.name=t,e.placeholder=r,e.disabled=n,e.readonly=i,e.maxlength=a,e.value=this.value}catch(e){error(e)}this.data=this.value}}n.Component.register("textarea",h);var f={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"value",name:"text"}],"value-property":"text"};class m extends n.HTMLOverlayElement{get tagName(){return"button"}get nature(){return f}setElementProperties(e){this.element.textContent=this.value}}n.Component.register("button",m);var p={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"name",name:"name"},{type:"string",label:"value",name:"text"},{type:"string",label:"placeholder",name:"placeholder"},{type:"checkbox",label:"readonly",name:"readonly"},{type:"checkbox",label:"disabled",name:"disabled"},{type:"number",label:"max-length",name:"maxlength"},{type:"checkbox",label:"submit-on-change",name:"submitOnChange"},{type:"checkbox",label:"spread-on-init",name:"spreadOnInit"},{type:"string",label:"next-input",name:"nextInput"},{type:"checkbox",label:"autofocus",name:"autofocus"},{type:"checkbox",label:"alltime-focus",name:"alltimeFocus"},{type:"number",label:"alltime-focus-pending",name:"alltimeFocusPending",placeholder:"milli-seconds"},{type:"checkbox",label:"hide-keyboard",name:"hideKeyboard"}],"value-property":"text",help:"scene/component/input"};class g extends n.HTMLOverlayElement{get nature(){return p}get tagName(){return"input"}get inputType(){return this.get("type").substr(6)}select(){this.element.select()}createElement(){super.createElement(),this.element.onchange=e=>{this.value=this.element.value};var e=this.get("alltimeFocus"),t=this.get("alltimeFocusPending"),r=this.get("hideKeyboard");this.app.isViewMode&&(this.element.addEventListener("focusout",r=>{e&&setTimeout(()=>{this.element.select()},t&&0!=t?t:1e3)}),this.element.addEventListener("focusin",e=>{r&&(this.element.setAttribute("readonly",!0),this.element.select(),setTimeout(()=>{this.element.removeAttribute("readonly")},50))}));var n=this.get("nextInput");n&&this.element.addEventListener("keypress",e=>{if(13==e.keyCode){var t=this.root.findById(n);t&&t.select&&t.select()}}),setTimeout(()=>{this.get("autofocus")&&this.element.select()},300)}setElementProperties(e){var{name:t="",placeholder:r="",disabled:i,readonly:a,maxlength:o,spreadOnInit:s,nextInput:l,autofocus:u}=this.state;try{e.type=this.inputType,e.name=t,e.placeholder=r,e.disabled=i,e.readonly=a,e.maxlength=o,e.value=this.value,u&&e.setAttribute("autofocus","")}catch(e){Object(n.error)(e)}}onchange(e,t){super.onchange(e,t);var{spreadOnInit:r,submitOnChange:n}=this.state,i=this.nature["value-property"];i&&i in e&&this.element&&(this.element.value=e.text,r||(this.data=this.value),n&&this.element.form&&this.element.form.dispatchEvent(new Event("submit",{cancelable:!0})))}}["input","input-text","input-password","input-email","input-search","input-time","input-datetime-local","input-month","input-week"].forEach(e=>n.Component.register(e,g));var _={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"value",name:"value"},{type:"number",label:"size",name:"size"},{type:"string",label:"name",name:"name"},{type:"checkbox",label:"checked",name:"checked"}],"value-property":"value"};n.Component.register("input-radio",class extends g{get nature(){return _}get tagName(){return"input"}get inputType(){return"radio"}createElement(){if(this.element=document.createElement("label"),this.element){var e=document.createElement("input");this.element.appendChild(e);var t=document.createElement("p");t.style.display="inline",t.innerHTML=this.get("text"),this.element.appendChild(t),this.setElementProperties(this.element),this.parent.isHTMLElement&&this.parent.isHTMLElement()?this.parent.element.appendChild(this.element):this.root.model_layer.overlay.appendChild(this.element),n.Component.reposition(this),this.oncreate_element&&this.oncreate_element(this.element)}}setElementProperties(e){var t=this.element.querySelector("text"),r=this.element.querySelector("input"),{text:n,checked:i,value:a}=this.state;t&&(t.textContent=n),r&&(r.checked=i,r.value=a),super.setElementProperties(r)}postrender(e){this.changeText(e)}changeText(e){this.text&&this.hasTextProperty&&this.element.querySelector("p")&&(this.element.querySelector("p").innerText=this.text)}});var v={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"value",name:"value"},{type:"number",label:"size",name:"size"},{type:"string",label:"name",name:"name"},{type:"checkbox",label:"checked",name:"checked"},{type:"checkbox",label:"submit-on-change",name:"submitOnChange"},{type:"checkbox",label:"spread-on-init",name:"spreadOnInit"}],"value-property":"value"};n.Component.register("input-checkbox",class extends g{get nature(){return v}get tagName(){return"input"}get inputType(){return"checkbox"}get hasTextProperty(){return!0}createElement(){if(this.element=document.createElement("label"),this.element){var e=document.createElement("input");this.element.appendChild(e);var t=document.createTextNode(this.get("text"));this.element.appendChild(t),this.setElementProperties(this.element),this.parent.isHTMLElement&&this.parent.isHTMLElement()?this.parent.element.appendChild(this.element):this.root.model_layer.overlay.appendChild(this.element),n.Component.reposition(this),this.oncreate_element&&this.oncreate_element(this.element)}}setElementProperties(e){var t=this.element.querySelector("text"),r=this.element.querySelector("input"),{text:n,checked:i,value:a}=this.state;t&&(t.textContent=n),r&&(r.checked=i,r.value=a),super.setElementProperties(r)}});var y={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"src",name:"src"}],"value-property":"src"};class b extends n.HTMLOverlayElement{get src(){return this.getState("src")}set src(e){this.setState("src",e)}setElementProperties(e){var{src:t=""}=this.state;e.src!=t&&(e.src=t)}get nature(){return y}}n.Component.register("iframe",b);var M={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"src",name:"src"}],"value-property":"src"};class w extends n.HTMLOverlayElement{setElementProperties(e){var{src:t=""}=this.state;e.src!=t&&(e.src=t)}get src(){return this.get("src")}set src(e){this.set("src",e)}get nature(){return M}}n.Component.register("img",w);var L=r(384),T=r.n(L);function x(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,i)}var k={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"src",name:"src"},{type:"checkbox",label:"started",name:"started"},{type:"checkbox",label:"controls",name:"controls"}],"value-property":"src"};class S extends n.HTMLOverlayElement{oncreate_element(e){var t,r=this;return(t=function*(){var{src:t,started:n}=r.state;e.addEventListener("canplay",()=>{r.started&&e.play()}),r.onchangesrc(t),r.onchangestarted(n)},function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(e){x(a,n,i,o,s,"next",e)}function s(e){x(a,n,i,o,s,"throw",e)}o(void 0)}))})()}dispose(){this.reset(),super.dispose()}reset(){this._hlsSupporter&&this._hlsSupporter.destroy(),delete this._hlsSupporter}onchange(e,t){super.onchange(e,t),"src"in e&&this.onchangesrc(e.src),"started"in e&&this.onchangestarted(e.started)}setElementProperties(e){var{controls:t}=this.state;t?e.setAttribute("controls",!0):e.removeAttribute("controls")}onchangestarted(e){var t=this.element;e?4==t.readyState&&t.play():t.pause()}onchangesrc(e){this.reset();var t=this.element;t&&(t.src=e,e.endsWith(".m3u8")&&T.a.isSupported()&&(this._hlsSupporter=new T.a,this._hlsSupporter.loadSource(e),this._hlsSupporter.attachMedia(t),this._hlsSupporter.on(T.a.Events.MANIFEST_PARSED,()=>{this.started&&t.play()})))}get src(){return this.getState("src")}set src(e){this.setState("src",e)}get started(){return this.getState("started")}set started(e){this.setState("started",e)}get nature(){return k}}n.Component.register("video",S);var D={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"src",name:"src"},{type:"string",label:"mime-type",name:"mimetype"}],"value-property":"src"};class A extends n.HTMLOverlayElement{get src(){return this.getState("src")}set src(e){this.setState("src",e)}setElementProperties(e){var{src:t="",mimetype:r=""}=this.state;e.src!=t&&(e.src=t),e.type!=r&&(e.type=r)}get nature(){return D}}n.Component.register("embed",A);var E={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"href",name:"href",property:"href"},{type:"select",label:"target",name:"target",property:{options:[{display:"self",value:"_self"},{display:"blank",value:"_blank"},{display:"parent",value:"_parent"},{display:"top",value:"_top"}]}}],"value-property":"href"};class Y extends n.HTMLOverlayContainer{get tagName(){return"a"}get href(){return this.get("href")}set href(e){this.set("href",e)}setElementProperties(e){var{href:t="",target:r}=this.state;e.href!=t&&(e.href=t),e.target=r,0==this.components.length&&(this.element.textContent=this.text||t)}get nature(){return E}}n.Component.register("link",Y);var O={mutable:!1,resizable:!0,rotatable:!0};class P extends n.HTMLOverlayContainer{setElementProperties(e){e.textContent=this.text}get tagName(){return"div"}get nature(){return O}}n.Component.register("div",P);var R={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"name",name:"name"},{type:"number",label:"value",name:"text"},{type:"number",label:"min",name:"min"},{type:"number",label:"max",name:"max"},{type:"number",label:"step",name:"step"},{type:"checkbox",label:"submit-on-change",name:"submitOnChange"},{type:"checkbox",label:"spread-on-init",name:"spreadOnInit"}],"value-property":"text"};class C extends g{get nature(){return R}setElementProperties(e){super.setElementProperties(e);var{min:t=0,max:r=100,step:n=1}=this.state;e.min=t,e.max=r,e.step=n}}n.Component.register("input-number",C),n.Component.register("input-range",C);var I={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"name",name:"name"},{type:"date",label:"value",name:"text"},{type:"date",label:"min",name:"min"},{type:"date",label:"max",name:"max"},{type:"checkbox",label:"submit-on-change",name:"submitOnChange"},{type:"checkbox",label:"spread-on-init",name:"spreadOnInit"}],"value-property":"text"};n.Component.register("input-date",class extends g{get nature(){return I}setElementProperties(e){super.setElementProperties(e);var{min:t,max:r}=this.state;e.min=t,e.max=r}});var F={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"name",name:"name"},{type:"string",label:"value",name:"text"},{type:"checkbox",label:"multiple",name:"multiple"}],"value-property":"text"};n.Component.register("input-file",class extends g{get nature(){return F}setElementProperties(e){super.setElementProperties(e),e.multiple=!!this.state.multiple}});var j=r(610),N=r.n(j),H={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"name",name:"name"},{type:"color",label:"value",name:"text",property:{withoutAlpha:!0,valueType:"hex"}},{type:"checkbox",label:"submit-on-change",name:"submitOnChange"},{type:"checkbox",label:"spread-on-init",name:"spreadOnInit"}],"value-property":"text"};n.Component.register("input-color",class extends g{get nature(){return H}setElementProperties(e){this.value=N()(this.value||"#000000").toHexString(),super.setElementProperties(e)}});var B={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"name",name:"name"},{type:"string",label:"value",name:"text"}],"value-property":"text"};class U extends g{get nature(){return B}setElementProperties(e){super.setElementProperties(e)}}n.Component.register("input-button",U),n.Component.register("input-submit",U),n.Component.register("input-reset",U);var W={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"checkbox",label:"submit-on-change",name:"submitOnChange"},{type:"checkbox",label:"copy-value-to-data",name:"copyValueToData"}],"value-property":"value"};class z extends n.HTMLOverlayContainer{get nature(){return W}containable(e){return"input-radio"==e.model.type}setElementProperties(e){e.onchange=()=>{this.changeChecked()}}onchange(e,t){if(super.onchange(e,t),"value"in e&&this.element){if(this.element.value=e.value,this.get("copyValueToData"))try{this.data=JSON.parse(e.value)}catch(t){this.data=e.value}this.get("submitOnChange")&&"FORM"==this.element.parentElement.tagName&&this.element.parentElement.dispatchEvent(new Event("submit",{cancelable:!0}))}}changeChecked(){var e=this.element.querySelectorAll("input"),t=Array.prototype.slice.call(e).filter(e=>e.name==this.element.id);if(t.length){var r=t.filter(e=>1==e.checked);this.set("value",r[0].value)}}}n.Component.register("radio-group",z);var V={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"textarea",label:"template",name:"template"},{type:"string",label:"apply-to",name:"applyTo"}]},G={type:"pattern",fitPattern:!0,image:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAMFBMVEUAAAAdHR0AAAAAAAAAAAAREREODg4AAAATExMAAAAAAAAAAAAAAAAAAAAWFhYAAABtUS6TAAAAD3RSTlMArnboZDwVtVUHmMTU9CygGbkuAAABBklEQVR42u3Vy47DMAgFUMbE78f9/7+dqpVKFNUzwKqLnD0RvjGYbrdvF8tK9JBWieTRAO6tdQYyeWS8DfIYeONEdmlCLE+GOClkV3ASyC7gpPn+ouiODAdOeJkjHMAZF2OCE1eHK0BfkLXho5yU8XVsjKWKj7E1iya/44kvpcdLJa3LOdg3zIIr2fg7qEd4umYQXpJqiPZyVbQwsMXJtoq889CwkUknMT6ai5QOfBRcb4oY1fMmiBnV1TFk+YDooST6T30UM7a4h5hoS4r/wjnEusleLeiusPFKFwhXCx0GXHUjZBmrDJNRfQ2IYthDYv/grwmrqG1AtV0ShKuF+ONQ6Hb7Hr9EkkNRgwrYbAAAAABJRU5ErkJggg=="};class K extends n.HTMLOverlayContainer{createElement(){super.createElement(),this.element.value=this.get("value")||"",this.element.onchange=e=>{this.set("value",this.element.value)}}dispose(){super.dispose(),this.targets&&this.targets.forEach(e=>e.shadowRoot.innerHTML="<slot></slot>"),delete this.targets}setElementProperties(e){e.innerHTML=this.state.template}reposition(){super.reposition();var e=this.targets||[],t=this.rootModel&&Array.prototype.slice.call(this.rootModel.overlay.querySelectorAll(this.state.applyTo));t&&t.forEach(t=>{try{!t.shadowRoot&&t.attachShadow({mode:"open"}),t.shadowRoot.innerHTML=this.state.template}catch(e){Object(n.error)(e)}var r=e.indexOf(t);r>=0&&e.splice(r,1)}),e.forEach(e=>e.shadowRoot.innerHTML="<slot></slot>"),this.targets=t}get tagName(){return"template"}get fillStyle(){return G}get nature(){return V}}n.Component.register("template",K)},function(e,t,r){"use strict";r(608),r(609);var n=r(17),i=r(98),a=r.n(i),o=r(0),s=r(357);var l={id:"data-binder",beforeUpdate:function(e){if(e.data){e.data.rawData||(e.data.rawData=[]),e.data.rawData=function(e,t){if(!e)return null;if("string"==typeof e)try{e=JSON.parse(e)}catch(e){return console.warn("invalid chart data format",e),null}if(!(e instanceof Array))return e instanceof Object?e:null;if(0===e.length)return null;e[0].hasOwnProperty("__field1")&&(e=function(e){if(!e||0===e.length)return null;var t={},r=[];for(var n in e[0])t[n]=e[0][n];for(var i=1;i<e.length;i++){var a={},o=e[i];for(var s in t){var l=t[s],u=o[s];a[l]=u}r.push(a)}return r}(e));var r=t.data.labelDataKey,n=[];for(var i in t.data.datasets)n.push(t.data.datasets[i].dataKey);var a=[],o=[],s={seriesData:a,labelData:o};for(var l in e){var u=e[l];for(var d in o.push(u[r]),n)n[d]&&(a[d]||(a[d]=[]),NaN==Number(u[n[d]])&&(u[n[d]]=NaN),a[d].push(u[n[d]]))}return s}(e.data.rawData,e)||{seriesData:[],labelData:[]};e.data.rawData.seriesData;!function(e){var t=e.data.rawData.labelData;e.config.data.labels=t||[]}(e),function(e){if(e.data.rawData){var t=e.data.rawData.seriesData;e.id;for(var r in t&&0!==t.length||(t=[null]),e.data.datasets)e.data.datasets[r].data=t[r]||[]}}(e)}}},u=r(928);function d(e,t){e.stacked=t}function c(e,t){e.display=t}function h(e){e.scaleLabel||(e.scaleLabel={}),e.scaleLabel.labelString=e.axisTitle,e.scaleLabel.display=!!e.axisTitle}function f(e,{fontSize:t,fontFamily:r}){e.ticks=e.ticks?e.ticks:{},e.ticks.fontSize=t,r&&(e.ticks.fontFamily=r),e.pointLabels=e.pointLabels||{},e.pointLabels.fontSize=t,r&&(e.pointLabels.fontFamily=r)}function m(e){e.ticks=e.ticks?e.ticks:{};var t=e.ticks.autoMin,r=e.ticks.autoMax;!0===t&&delete e.ticks.min,!0===r&&delete e.ticks.max}function p(e){e.ticks=e.ticks?e.ticks:{}}function g(e,t,r){var n=_(t);e.gridLines=e.gridLines?e.gridLines:{},e.gridLines.zeroLineColor=n.clone().setAlpha(.5).toString(),e.gridLines.color=n.clone().setAlpha(.1).toString(),e.ticks=e.ticks?e.ticks:{},e.ticks.fontColor=r||n.clone().setAlpha(.5).toString()}function _(e){var t;switch(e){case"light":t="#fff";break;case"dark":default:t="#000"}return t=new u.a(t)}function v(e,t){var r=e.type||t.type,n="".concat(r," ").concat(e.yAxisID," ").concat(e.stack||e.dataKey),i=e.color?e.color:e.backgroundColor;switch(r){case"bar":case"horizontalBar":e.borderColor=e.backgroundColor=i;break;case"line":case"radar":i=e.color?e.color:e.borderColor,e.pointBackgroundColor=e.pointBorderColor=e.borderColor=e.backgroundColor=i,e.pointBorderWidth=.5*e.borderWidth,e.pointHoverRadius=e.pointRadius,null==e.fill&&(e.fill=!1);break;default:e.borderColor=e.backgroundColor=i}e.stack=n}function y(e){e.callback=function(e,t,r){var n=Number(e);if(n=Number.isNaN(n)?e:n.toLocaleString())return n}}var b,M=function(e){if(e){var t,r,n,i=(e.data||{}).datasets||[],a=e.options||{},o=a.scales||{},s=a.legend||{},l=a.tooltips=a.tooltips||{},u=a.multiAxis,b=[!1,!1],M=Number(a.defaultFontSize),w=a.defaultFontFamily,L=a.defaultFontColor,T=a.theme;for(var x in function(e,t){switch(e){case"horizontalBar":t.scales||(t.scales={});break;case"radar":case"polarArea":t.defaultFontColor&&(t.scale.ticks.fontColor=t.defaultFontColor,t.scale.pointLabels?t.scale.pointLabels.fontColor=t.defaultFontColor:t.scale.pointLabels={fontColor:t.defaultFontColor}),t.scale.ticks.backdropColor=t.fillStyle?t.fillStyle:"#00ff0000";break;case"line":case"bar":if(t.scales||(t.scales={}),t.scales.yAxes||(t.scales.yAxes=[]),1===t.scales.yAxes.length){var r=t.scales.yAxes;r.push({position:"right",id:"right",display:t.multiAxis||!1,gridLines:{display:r[0]&&r[0].gridLines&&r[0].gridLines.display||!1},ticks:{beginAtZero:!1,callback:function(e,t,r){var n=e;return"number"==typeof n&&(n=n.toLocaleString()),n}}})}break;case"pie":case"doughnut":break;default:t.scale||(t.scale={})}}(e.type,a),i){var k=i[x];if(a.stacked&&!k.stack&&(k.stack="A"),"bar"==e.type){var S,D,A=o.xAxes&&(null===(S=o.xAxes[0])||void 0===S?void 0:S.categorySpacing),E=o.xAxes&&(null===(D=o.xAxes[0])||void 0===D?void 0:D.barSpacing);k.categoryPercentage=1-A||1,k.barPercentage=1-E||.8}else if("horizontalBar"==e.type){var Y,O,P=o.yAxes&&(null===(Y=o.yAxes[0])||void 0===Y?void 0:Y.categorySpacing),R=o.yAxes&&(null===(O=o.yAxes[0])||void 0===O?void 0:O.barSpacing);k.categoryPercentage=1-P||1,k.barPercentage=1-R||.8}v(k,e),u||"right"==k.yAxisID&&(k.yAxisID="left")}delete a.stacked;var C=i.filter(e=>"left"==e.yAxisID),I=i.filter(e=>"right"==e.yAxisID);switch(C.forEach(e=>{C.filter(t=>e.stack==t.stack).length>1&&(b[0]=!0)}),I.forEach(e=>{I.filter(t=>e.stack==t.stack).length>1&&(b[1]=!0)}),n=b[0]||b[1],e.type){case"line":case"bar":case"horizontalBar":for(var F in t=o.xAxes||[],r=o.yAxes||[],"horizontalBar"==e.type&&(t=o.yAxes||[],r=o.xAxes||[]),t){var j=t[F];d(j,n),f(j,{fontSize:M,fontFamily:w}),m(j),p(j),h(j),g(j,T,L),y(j.ticks),j.gridLines.display=a.xGridLine}for(var N in r){var H=r[N];1==N&&c(H,u),d(H,b[N]),f(H,{fontSize:M,fontFamily:w}),m(H),h(H),g(H,T,L),y(H.ticks),0==N&&(H.gridLines.display=a.yGridLine),1==N&&(H.gridLines.display=a.y2ndGridLine)}break;case"pie":case"doughnut":break;default:f(a.scale||{},{fontSize:M,fontFamily:w})}!function(e,{fontFamily:t,fontSize:r}){e.labels=e.labels?e.labels:{},e.labels.fontSize=r,t&&(e.labels.fontFamily=t)}(s,{fontSize:M,fontFamily:w}),s.labels.boxWidth=15,function(e,t,r){var n=_(t);e.labels=e.labels?e.labels:{},e.labels.fontColor=r||n.clone().setAlpha(.5).toString()}(s,T,L),function(e,{fontSize:t,fontFamily:r}){e.titleFontSize=e.bodyFontSize=e.footerFontSize=t,r&&(e.titleFontFamily=e.bodyFontFamily=e.footerFontFamily=r)}(l,{fontSize:M,fontFamily:w}),function(e){e.callbacks=e.callbacks||{},e.intersect=!1,e.mode="index",e.callbacks.label=function(e,t){var r=t.datasets[e.datasetIndex].data[e.index],n=t.datasets[e.datasetIndex].label||t.labels[e.index],i=Number(r);isNaN(i)||(r=i),r&&(r=r.toLocaleString());var a=t.datasets[e.datasetIndex].valuePrefix||"",o=t.datasets[e.datasetIndex].valueSuffix||"";return"".concat(n,": ").concat(a+r+o)}}(l)}};r(856),r(857);s.Chart.plugins.register(l);class w extends o.a{static get is(){return"things-chartjs"}static get properties(){return{width:Number,height:Number,options:Object,data:Array}}get initialized(){return this._initialized}set initialized(e){this._initialized=e}firstUpdated(){this.initChart()}render(){return Object(o.e)(b||(e=[' <canvas id="chart"></canvas> '],t||(t=e.slice(0)),b=Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))));var e,t}updated(e){(e.has("width")||e.has("height"))&&this.updateChartSize(),e.has("options")&&this.updateChartConfig(),e.has("data")&&(this.chart.data.rawData=this.data,this.chart.update(0))}initChart(){var{data:e,options:t,type:r}=this.options;t.maintainAspectRatio=!1,this.attachPluginOptions(t,r),M(this.options),this.canvas=this.renderRoot.querySelector("#chart"),this.chart=new s.Chart(this.canvas,{type:r,data:e,options:t}),this.updateChartSize(),this.initialized=!0}updateChartSize(){var e=Math.floor(this.width),t=Math.floor(this.height);this.canvas.style.width="".concat(e,"px"),this.canvas.style.height="".concat(t,"px");var r=()=>{0==this.canvas.offsetWidth||0==this.canvas.offsetHeight?requestAnimationFrame(r):this.chart.resize()};requestAnimationFrame(r)}updateChartConfig(){if(this.chart){var{data:e,options:t,type:r}=this.options;t.maintainAspectRatio=!1,this.attachPluginOptions(t,r),M(this.options),this.chart.type=r,this.chart.data=e,this.chart.options=t,this.chart.data.rawData=this.data,this.chart.update(0)}}attachPluginOptions(e={}){var t=e.plugins=e.plugins||{};this.attachDatalabelPluginOptions(t)}attachDatalabelPluginOptions(e={}){var t=e.datalabels=e.datalabels||{};t.display=function(e){return!!e.dataset.displayValue},t.anchor=function(e){return e.dataset.dataLabelAnchor||"center"},t.color=function(e){return e.dataset.defaultFontColor||"#000"},t.font=function(e){return{size:e.dataset.defaultFontSize}},t.clamp=!0,t.formatter=function(e,t){var r=t.dataset.valuePrefix||"",n=t.dataset.valueSuffix||"";return null==e?e:r+String(e).toLocaleString()+n}}}function L(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?L(Object(r),!0).forEach((function(t){x(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function x(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}customElements.define(w.is,w);var k={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"chartjs",label:"",name:"chart"}],"value-property":"data",help:"scene/component/chartjs"};class S extends n.HTMLOverlayElement{get nature(){return k}get hasTextProperty(){return!1}get tagName(){return"things-chartjs"}isShadowable(){return!1}createElement(){super.createElement();var{width:e,height:t}=this.bounds,r=this.element,n=this.data;r.width=e,r.height=t,this._setChartConfig(r),r.data=n}setElementProperties(e){this.set("lineWidth",0);var{chart:t}=this.state,{width:r,height:i}=this.bounds,a=this.data;try{e.width=r,e.height=i,t&&this._isChartChanged&&(this._setChartConfig(e),this._isChartChanged=!1),this._isDataChanged&&(e.data=a,this._isDataChanged=!1)}catch(e){Object(n.error)(e)}}_setChartConfig(e){var{chart:t,fontSize:r=12,fontFamily:n,fontColor:i,shadow:o}=this.state,{left:s=0,top:l=0,blurSize:u=0,color:d="transparent"}=o||{},c={defaultFontSize:r,defaultFontFamily:n,defaultFontColor:i},h={shadowOffsetX:s,shadowOffsetY:l,shadowBlur:u,shadowColor:d},f=a()(t);f.options=T(T({},f.options),c),f.data.datasets=f.data.datasets.map(e=>T(T({},e),h)),e.options=f}onchange(e,t){this._isChartChanged=!1,("chart"in e||"fontSize"in e||"fontFamily"in e||"fontColor"in e||"shadow"in e)&&(this._isChartChanged=!0),super.onchange(e,t)}onchangeData(e){this._isDataChanged=!0}}n.Component.register("chartjs",S)},function(e,t,r){"use strict";var n=r(17),i=[{type:"string",label:"value",name:"value",property:"value"},{type:"number",label:"start-value",name:"startValue",observe:function(e){this.parentNode.querySelector("[name=colorStops]").property.min=e},property:"startValue"},{type:"number",label:"end-value",name:"endValue",observe:function(e){this.parentNode.querySelector("[name=colorStops]").property.max=e},property:"endValue"},{type:"number",label:"step",name:"step",property:"step"},{type:"number",label:"step-text-size",name:"stepTextSize",property:"stepTextSize"},{type:"number",label:"sub-step",name:"subStep",property:"subStep"},{type:"number",label:"step-needle-size",name:"stepNeedleSize",property:"stepNeedleSize"},{type:"color",label:"step-fill-style",name:"stepFillStyle",property:"stepFillStyle"},{type:"solid-color-stops",label:"color-stops",name:"colorStops",property:{min:0,max:100}},{type:"legend",label:"",name:"toggleOption",property:{label:"Toggle Option"}},{type:"checkbox",label:"show-start-value",name:"showStartValue",property:"showStartValue"},{type:"checkbox",label:"show-end-value",name:"showEndValue",property:"showEndValue"},{type:"checkbox",label:"show-step-line",name:"showStepLine",property:"showStepLine"},{type:"checkbox",label:"show-step-text",name:"showStepText",property:"showStepText"},{type:"checkbox",label:"show-sub-step",name:"showSubStep",property:"showSubStep"},{type:"checkbox",label:"anim-from-base",name:"animFromBase"}],a={mutable:!1,resizable:!0,rotatable:!0,properties:[...i,{type:"number",label:"start-angle",name:"startAngle",property:"startAngle"},{type:"number",label:"end-angle",name:"endAngle",property:"endAngle"},{type:"color",label:"text-fill-style",name:"textFillStyle",property:"textFillStyle"},{type:"color",label:"needle-fill-style",name:"needleFillStyle",property:"needleFillStyle"},{type:"color",label:"inner-circle-fill-style",name:"innerCircleFillStyle",property:"innerCircleFillStyle"},{type:"checkbox",label:"in-text",name:"inText",property:"inText"}],help:"scene/component/gauge-circle"};function o(e,t,r,n){e.rotate(t),e.translate(0,-r),e.fillRect(0,.14*-r,n,.175*r),e.translate(0,r),e.rotate(-t)}function s(e,t,r,n){e.rotate(t),e.translate(0,-r),e.fillRect(0,.04*-r,n,.075*r),e.translate(0,r),e.rotate(-t)}function l(e,t,r,n){e.rotate(r),e.translate(0,.83*-n),e.rotate(-r),e.fillText(t,0,0),e.rotate(r),e.translate(0,.83*n),e.rotate(-r)}class u extends(Object(n.ValueHolder)(n.Donut)){_draw(e){var{lineWidth:t=20,startValue:r,endValue:n,step:i,subStep:a,startAngle:u=0,endAngle:d=180,fontColor:c="black",showStepText:h=!0,showStartValue:f=!0,showEndValue:m=!0,showStepLine:p=!0,showSubStep:g=!0,inText:_=!0,colorStops:v,fillStyle:y,textFillStyle:b="black",needleFillStyle:M="black",innerCircleFillStyle:w="gray",stepNeedleSize:L=2,stepFillStyle:T,stepTextSize:x,cx:k,cy:S,rx:D,ry:A,ratio:E,animFromBase:Y=!1}=this.model;r=Number(r),this.animOnValueChange(this.value,Y,r);var O=.0174533/Math.PI,P=D/100*E,R=A/100*E,C=(d-u)/180,I=n-r;if(u=u*O-.5,d=d*O-.5,e.translate(k,S),e.beginPath(),e.ellipse(0,0,Math.abs(D),Math.abs(A),0,(u*Math.PI).toFixed(2),(d*Math.PI).toFixed(2)),this.drawStroke(e),e.ellipse(0,0,Math.abs(P),Math.abs(R),0,(d*Math.PI).toFixed(2),(u*Math.PI).toFixed(2),!0),e.closePath(),v){var F=0,j=0;e.moveTo(0,0),v.forEach((function(t,n,i){e.beginPath();var a=Math.max(Math.min(t.position-r,I),0),o=j||Math.PI*(u+C*F/I);if(j=n===i.length-1?Math.PI*(u+C):Math.PI*(u+C*a/I),F>I||F>a)return!1;e.ellipse(0,0,Math.abs(D),Math.abs(A),0,o,j),e.ellipse(0,0,Math.abs(P),Math.abs(R),0,j,o,!0),e.fillStyle=t.color,e.fill(),F=a}))}e.scale(1,A/D),e.beginPath();var N=this.animValue;N=Math.max(Math.min(N,n),r);var H=Math.PI*(C*(N-r)/I+u-.5);if(function(e,t,r){e.rotate(r),e.beginPath(),e.moveTo(.035*t,0),e.lineTo(0,.8*t),e.lineTo(.035*-t,0),e.lineTo(.015*-t,.2*-t),e.lineTo(.015*t,.2*-t),e.rotate(-r)}(e,D,H),e.fillStyle=M,e.fill(),e.beginPath(),e.ellipse(0,0,Math.abs(D)/15,Math.abs(D)/15,0,0,2*Math.PI),e.fillStyle=w,e.fill(),e.fillStyle=T,p){var B=I/i;o(e,Math.PI*(u+.5),.8*D,L);for(var U=1;U<B;U++){var W=Math.PI*(C/B*U+u+.5);o(e,W,.8*D,L)}o(e,Math.PI*(d+.5),.8*D,L)}if(g)for(var z=I,V=1;V<=z;V++)if(V%i!=0&&V%a==0){var G=Math.PI*(C/z*V+u+.5);s(e,G,.8*D,L)}e.fillStyle=b,e.font=D*x/50+"px arial",e.textBaseline="middle",e.textAlign="center";var K=_?.8:1.35;if(f&&l(e,r,Math.PI*(u+.5),D*K),m&&l(e,n,Math.PI*(d+.5),D*K),h)for(var q=I/i,J=1;J<q;J++){var X=r+i*J,$=Math.PI*(C/q*J+u+.5);l(e,X,$,D*K)}e.scale(1,D/A),e.translate(-k,-S)}contains(e,t){var{cx:r,cy:n,rx:i,ry:a}=this.model,o=(e-r)/(2*i-.5),s=(t-n)/(2*a-.5);return o*o+s*s<.25}_post_draw(e){this.drawText(e)}get nature(){return a}}n.Component.register("gauge-circle",u);var d={mutable:!1,resizable:!0,rotatable:!0,properties:[...i,{type:"color",label:"text-fill-style",name:"textFillStyle",property:"textFillStyle"},{type:"color",label:"needle-fill-style",name:"needleFillStyle",property:"needleFillStyle"},{type:"number",label:"needle-size",name:"needleSize",property:"needleSize"}],help:"scene/component/gauge-vertical"};class c extends(Object(n.ValueHolder)(Object(n.RectPath)(n.Shape))){_draw(e){var{startValue:t,endValue:r,step:n,subStep:i,colorStops:a,needleFillStyle:o,stepFillStyle:s,textFillStyle:l,needleSize:u,stepNeedleSize:d,stepTextSize:c,showStepText:h=!0,showStartValue:f=!0,showEndValue:m=!0,showStepLine:p=!0,showSubStep:g=!0,width:_,height:v,top:y,left:b,animFromBase:M=!1}=this.model;t=Number(t),this.animOnValueChange(this.value,M,t);var w=r-t;if(e.translate(b,y),e.beginPath(),e.rect(0,0,_,v),this.drawFill(e),this.drawStroke(e),e.closePath(),a){var L=0;a.forEach((function(r,n,i){e.beginPath();var a,o=Math.max(Math.min(r.position-t,w),0),s=v*L/w;if(a=n===i.length-1||s+v*o/w?v-s:v-v*o/w,L>w||L>o)return!1;e.rect(0,v-s,_,-a),e.fillStyle=r.color,e.fill(),L=o}))}e.beginPath();var T=this.animValue;T=Math.max(Math.min(T,r),t);var x=v-(T-t)/w*v;if(u*=4,e.moveTo(1.05*_,x),e.lineTo(1.05*_+u,x+u/2),e.lineTo(1.05*_+u,x-u/2),e.fillStyle=o,e.fill(),e.closePath(),e.fillStyle=s,p){var k=w/n;e.fillRect(0,v,.06*v,d);for(var S=1;S<k;S++){var D=v/k*S;e.fillRect(0,D,.06*v,d)}e.fillRect(0,0,.06*v,d)}if(g){var A=w;e.fillRect(0,0,.027*v,d);for(var E=1;E<=A;E++)if(E%n!=0&&E%i==0){var Y=v/A*E;e.fillRect(0,Y,.027*v,d)}}var O=v*c/150;if(e.fillStyle=l,e.font=O+"px arial",e.textBaseline="middle",e.textAlign="center",f&&e.fillText(t,-O,v),m&&e.fillText(r,-O,0),h)for(var P=w/n,R=1;R<P;R++){var C=t+Number(n)*R,I=v-v/P*R;e.fillText(C,-O,I)}e.translate(-b,-y)}_post_draw(e){this.drawText(e)}get nature(){return d}}n.Component.register("gauge-vertical",c);var h={mutable:!1,resizable:!0,rotatable:!0,properties:[...i,{type:"color",label:"text-fill-style",name:"textFillStyle",property:"textFillStyle"},{type:"color",label:"needle-fill-style",name:"needleFillStyle",property:"needleFillStyle"},{type:"number",label:"needle-size",name:"needleSize",property:"needleSize"}],help:"scene/component/gauge-horizon"};class f extends(Object(n.ValueHolder)(Object(n.RectPath)(n.Shape))){_draw(e){var{startValue:t,endValue:r,step:n,subStep:i,colorStops:a,needleFillStyle:o,stepFillStyle:s,textFillStyle:l,needleSize:u,stepNeedleSize:d,stepTextSize:c,showStepText:h=!0,showStartValue:f=!0,showEndValue:m=!0,showStepLine:p=!0,showSubStep:g=!0,width:_,height:v,top:y,left:b,animFromBase:M=!1}=this.model;t=Number(t),this.animOnValueChange(this.value,M,t);var w=r-t;if(e.translate(b,y),e.beginPath(),e.rect(0,0,_,v),this.drawFill(e),this.drawStroke(e),e.closePath(),a){var L=0;a.forEach((function(r,n,i){e.beginPath();var a,o=Math.max(Math.min(r.position-t,w),0),s=_*L/w;if(a=n==i.length-1||s+_*o/w?_-s:_*o/w,L>w||L>o)return!1;e.rect(s,0,a,v),e.fillStyle=r.color,e.fill(),L=o}))}if(e.fillStyle=s,p){var T=w/n,x=.06*_;e.fillRect(0,v-x,d,x);for(var k=1;k<T;k++){var S=_/T*k;e.fillRect(S,v-x,d,x)}e.fillRect(_,v-x,d,x)}if(g){var D=w,A=.027*_;e.fillRect(0,v-A,d,A);for(var E=1;E<=D;E++)if(E%n!=0&&E%i==0){var Y=_/D*E;e.fillRect(Y,v-A,d,A)}}var O=_*c/150;if(e.fillStyle=l,e.font=O+"px arial",e.textBaseline="middle",e.textAlign="center",f&&e.fillText(t,0,v+.75*O),m&&e.fillText(r,_,v+.75*O),h)for(var P=w/n,R=1;R<P;R++){var C=t+n*R,I=_/P*R;e.fillText(C,I,v+.75*O)}e.beginPath();var F=this.animValue,j=((F=Math.max(Math.min(F,r),t))-t)/w*_;u*=4,e.moveTo(j,v+1.4*O),e.lineTo(j+u/2,v+u+1.4*O),e.lineTo(j-u/2,v+u+1.4*O),e.fillStyle=o,e.fill(),e.closePath(),e.translate(-b,-y)}_post_draw(e){this.drawText(e)}get nature(){return h}}n.Component.register("gauge-horizon",f)},function(e,t,r){"use strict";var n,i,a,o=r(17),s=r(0);function l(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}class u extends s.a{static get is(){return"things-news-ticker-horizontal"}static get styles(){return[Object(s.b)(n||(n=l(["\n :host * {\n box-sizing: border-box;\n }\n\n :host .ticker-wrap {\n position: absolute;\n bottom: 0;\n width: 100%;\n overflow: hidden;\n height: 100%;\n background-color: rgba(#000, 0.9);\n padding-left: var(--things-news-ticker-wrapper-padding-left);\n box-sizing: content-box;\n font-family: var(--things-news-ticker-font-family);\n }\n\n :host .ticker-wrap .ticker {\n display: inline-block;\n min-width: 100%;\n text-align: var(--things-news-ticker-text-align);\n height: 4rem;\n line-height: 4rem;\n white-space: nowrap;\n padding-right: var(--things-news-ticker-container-padding-right);\n box-sizing: content-box;\n }\n\n :host .ticker-wrap .ticker__item {\n display: inline-block;\n font-size: var(--things-news-ticker-font-size);\n color: var(--things-news-ticker-font-color);\n }\n\n :host body {\n padding-bottom: 5rem;\n }\n :host h1,\n :host h2,\n :host p {\n padding: 0 5%;\n }\n "])))]}static get properties(){return{width:Number,height:Number,fontFamily:String,fontColor:String,fontSize:String,textAlign:String,isReverse:Boolean,animationStartPosition:String,isTextOverflowed:Boolean,duration:Number,textData:String}}get currentAnimation(){return this._anim}set currentAnimation(e){this._anim=e}get animationTargetEl(){return this.renderRoot.querySelector(".ticker-wrap .ticker")}get textLines(){return this.textData.split("\n")}render(){return this.style.setProperty("--things-news-ticker-wrapper-padding-left",this.isTextOverflowed?"100%":0),this.style.setProperty("--things-news-ticker-container-padding-right",this.isTextOverflowed?"100%":0),Object(s.e)(i||(i=l(['\n <div class="ticker-wrap">\n <div class="ticker">\n ',"\n </div>\n </div>\n "])),this.textLines.map(e=>Object(s.e)(a||(a=l(['\n <div class="ticker__item">',"</div>\n "])),e)))}updated(e){(e.has("textData")||e.has("duration")||e.has("isReverse")||e.has("isTextOverflowed"))&&this.startAnimation()}startAnimation(){this.stopAnimation(),this.isTextOverflowed&&(this.currentAnimation=this.animationTargetEl.animate([{transform:"translate3d(0, 0, 0)",visibility:"hidden"},{transform:"translate3d(-100%, 0, 0)",visibility:"visible"}],{duration:this.duration,iterations:1/0,direction:this.isReverse?"reverse":"normal"}))}stopAnimation(){this.currentAnimation&&this.currentAnimation.cancel()}}customElements.define(u.is,u);var d,c,h;r(873);function f(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var m,p,g;class _ extends s.a{static get is(){return"things-news-ticker-vertical"}static get styles(){return[Object(s.b)(d||(d=f(["\n :host {\n display: block;\n overflow: hidden;\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n }\n ul {\n margin: 0;\n padding: 0;\n list-style: none;\n white-space: nowrap;\n }\n\n #news_ticker {\n width: 100%;\n height: 100%;\n overflow: hidden;\n position: relative;\n }\n\n li {\n display: flex;\n height: 100%;\n align-items: center;\n overflow: hidden;\n text-align: var(--things-news-ticker-text-align, left);\n }\n #news_ticker a {\n width: 100%;\n line-height: normal;\n color: var(--things-news-ticker-font-color, black);\n text-decoration: none;\n font-size: var(--things-news-ticker-font-size, 13px);\n }\n "])))]}static get properties(){return{width:Number,height:Number,fontFamily:String,fontColor:String,fontSize:String,textAlign:String,isReverse:Boolean,animationStartPosition:String,isTextOverflowed:Boolean,duration:Number,textData:String}}get currentAnimation(){return this._anim}set currentAnimation(e){this._anim=e}get animationTargetEl(){return this.renderRoot.querySelector("#news_ticker > ul")}get textLines(){return this.textData.split("\n")}render(){return Object(s.e)(c||(c=f(['\n <div id="news_ticker">\n <ul>\n ',"\n </ul>\n </div>\n "])),this.textLines.map(e=>Object(s.e)(h||(h=f(['\n <li><a href="#">',"</a></li>\n "])),e)))}updated(e){(e.has("textData")||e.has("duration")||e.has("isReverse"))&&this.startAnimation()}startAnimation(){this.stopAnimation();var e=this.createAnimationFrames();this.currentAnimation=this.animationTargetEl.animate(e,{duration:this.textLines.length*this.duration,iterations:1/0,direction:this.isReverse?"reverse":"normal"})}stopAnimation(){this.currentAnimation&&this.currentAnimation.cancel()}createAnimationFrames(){var e=this.textLines.length,t=this.textLines.map((t,r)=>({transform:"translateY(".concat(-r/e*100,"%)"),offset:1/e*r,easing:"cubic-bezier(1, 0, 0.5, 0)"}));return t.push({transform:"translateY(0)",offset:1,easing:"cubic-bezier(1, 0, 0.5, 0)"}),t}}function v(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define(_.is,_);class y extends s.a{static get is(){return"things-news-ticker"}static get properties(){return{width:Number,height:Number,textData:String,fontFamily:String,fontColor:String,fontSize:String,textAlign:String,isReverse:Boolean,animationStartPosition:String,isTextOverflowed:Boolean,direction:String,duration:Number}}render(){return this.style.setProperty("--things-news-ticker-font-family",this.fontFamily),this.style.setProperty("--things-news-ticker-font-size",this.fontSize),this.style.setProperty("--things-news-ticker-font-color",this.fontColor),this.style.setProperty("--things-news-ticker-text-align",this.textAlign),Object(s.e)(m||(m=v(["\n ","\n "])),"vertical"==this.direction?Object(s.e)(p||(p=v(["\n <things-news-ticker-vertical\n .direction=","\n .duration=","\n .fontColor=","\n .fontFamily=","\n .fontSize=","\n .textAlign=","\n .isReverse=","\n .isTextOverflowed=","\n .animationStartPosition=","\n .textData=","\n ></things-news-ticker-vertical>\n "])),this.direction,this.duration,this.fontColor,this.font,this.fontSize,this.textAlign,this.isReverse,this.isTextOverflowed,this.animationStartPosition,this.textData):Object(s.e)(g||(g=v(["\n <things-news-ticker-horizontal\n .direction=","\n .duration=","\n .fontColor=","\n .fontFamily=","\n .fontSize=","\n .textAlign=","\n .isReverse=","\n .isTextOverflowed=","\n .animationStartPosition=","\n .textData=","\n ></things-news-ticker-horizontal>\n "])),this.direction,this.duration,this.fontColor,this.font,this.fontSize,this.textAlign,this.isReverse,this.isTextOverflowed,this.animationStartPosition,this.textData))}}customElements.define(y.is,y);var b={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"select",label:"direction",name:"direction",property:{options:[{display:"horizontal",value:"horizontal"},{display:"vertical",value:"vertical"}]}},{type:"checkbox",label:"reverse",name:"reverse"},{type:"number",label:"duration",name:"duration",placeholder:"seconds"}],help:"scene/component/news-ticker"};class M extends o.HTMLOverlayElement{get nature(){return b}get hasTextProperty(){return!0}get tagName(){return"things-news-ticker"}createElement(){super.createElement(),this.setState("text","#{data}");var{width:e,height:t}=this.bounds,r=this.element;r.style.overflow="hidden",r.width=e,r.height=t}setElementProperties(e){var{width:t,height:r}=this.bounds;try{e.width=t,e.height=r,this.updateAndRender()}catch(e){error(e)}}get isTextOverflowed(){var e=document.createElement("span");e.style.font=this.font,e.style.position="fixed",e.style.left="-100%",e.style.visibility="none",e.textContent=this.textSubstitutor(),document.body.appendChild(e);var t=e.getBoundingClientRect(),r=this.element.width<t.width;return document.body.removeChild(e),e=null,r}updateAndRender(){var{direction:e="horizontal",reverse:t,animationStartPosition:r="end",textAlign:n,fontColor:i="black",fontSize:a=13,font:o,duration:s=30}=this.state,l=this.textSubstitutor().trim(),u=t,d=this.isTextOverflowed;this.element.direction=e,this.element.duration=1e3*s,this.element.fontColor=i,this.element.fontFamily=o,this.element.fontSize="".concat(a,"px"),this.element.textAlign=n,this.element.isReverse=u,this.element.isTextOverflowed=d,this.element.animationStartPosition=r,this.element.textData=l}dispose(){super.dispose()}startAnimation(){this.app.isViewMode}}o.Component.register("news-ticker",M)},function(e,t,r){"use strict";var n=r(17),i={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"action",label:"remove",name:"remove",property:{icon:"remove-circle",action:function(e){var t=e.parent;t.removeComponent(e),t.activeIndex=0,t.invalidate()}}}]};class a extends n.Container{get hasTextProperty(){return!1}get showMoveHandle(){return!1}get mutable(){return!1}get resizable(){return!1}get rotatable(){return!1}get nature(){return i}drawLocationMarkers(e){for(var t in e){var r=e[t],i=r.props||{};if(i.width=i.width||10,i.height=i.height||10,(new Date).getTime()-r.lastUpdateTime<r.updateInterval){var a=this.findById(t);if(a)for(var o in a.set(i),i)a[o]=i[o];else{var s=Object.assign({type:r.type||"rect",id:t,fillStyle:"red",left:i.center.x-.5*i.width,top:i.center.y-.5*i.height,cx:i.center.x,cy:i.center.y},i),l=n.Model.compile(s);this.addComponent(l)}}else{var u=this.findById(t);this.removeComponent(u)}this.invalidate()}}simulate(e){var t=[];for(var r in this.components)if("beacon"==this.components[r].model.type){var n=this.components[r];n.distance=Math.sqrt(Math.pow(n.center.x-e.x,2)+Math.pow(n.center.y-e.y,2)),n.gaussian=gaussian(n.model.txPower||-71,Math.pow(3.209,2)),n.txPower=n.gaussian.ppf(Math.random()),t.push(n)}t=t.slice(0),this.calculatePosition(t,e)}calculatePosition(e,t){var r=e;r.sort((function(e,t){var r=-10*Math.log10(e.distance)+e.txPower,n=-10*Math.log10(t.distance)+t.txPower;return Math.abs(r)-Math.abs(n)}));var i=this.k_combinations(r.slice(0,4),3),a=[];for(var o in i){var s=i[o],l=s[0],u=s[1],d=s[2],c=l.center.x,h=l.center.y,f=u.center.x,m=u.center.y,p=d.center.x,g=d.center.y,_=l.distance,v=u.distance,y=d.distance,b=-10*Math.log10(.01*l.distance)+l.txPower,M=-10*Math.log10(.01*u.distance)+u.txPower,w=-10*Math.log10(.01*d.distance)+d.txPower,L=c*c,T=f*f,x=h*h,k=m*m,S=(_=100*this.calculateDistance(l.txPower,b))*_,D=(v=100*this.calculateDistance(u.txPower,M))*v,A=((f-c)*(p*p+g*g-(y=100*this.calculateDistance(d.txPower,w))*y)+(c-p)*(T+k-D)+(p-f)*(L+x-S))/(2*(g*(f-c)+m*(c-p)+h*(p-f))),E=(D-S+L-T+x-k-2*(h-m)*A)/(2*(c-f));Number.isFinite(E)&&Number.isFinite(A)&&a.push({x:E,y:A})}var Y=this.averageOfPositions(a);this._simPosition&&this.removeComponent(this._simPosition),this._simPosition=n.Model.compile({type:"ellipse",cx:Y.x,cy:Y.y,rx:10,ry:10,fillStyle:"navy"}),this.addComponent(this._simPosition)}calculateDistance(e,t){if(0==t)return-1;var r=1*t/e;return r<1?Math.pow(r,10):.89976*Math.pow(r,7.7095)+.111}calculateAngle(e,t,r){var n=Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2),i=Math.pow(t.x-r.x,2)+Math.pow(t.y-r.y,2),a=Math.pow(r.x-e.x,2)+Math.pow(r.y-e.y,2);return Math.acos((n+i-a)/Math.sqrt(4*n*i))}averageOfPositions(e){var t=0,r=0;for(var n in e){var i=e[n];t+=i.x,r+=i.y}return{x:t/e.length,y:r/e.length}}k_combinations(e,t){var r,n,i,a,o;if(t>e.length||t<=0)return[];if(t==e.length)return[e];if(1==t){for(i=[],r=0;r<e.length;r++)i.push([e[r]]);return i}for(i=[],r=0;r<e.length-t+1;r++)for(a=e.slice(r,r+1),o=this.k_combinations(e.slice(r+1),t-1),n=0;n<o.length;n++)i.push(a.concat(o[n]));return i}onclick(e){}}n.Component.register("floor",a);var o={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"action",label:"floor",name:"floor",property:{icon:"add-circle",action:e=>{e.addFloor()}}}],"value-property":"activeIndex",help:"scene/component/indoor-map"};class s extends n.Container{get nature(){return o}get layout(){return n.CardLayout}get activeIndex(){return Object.assign({},this.layoutConfig).activeIndex}set activeIndex(e){var t=Object.assign({},this.layoutConfig);t.activeIndex=e,this.layoutConfig=t}get layoutConfig(){return this.get("layoutConfig")}set layoutConfig(e){this.set("layoutConfig",e)}get activeFloor(){return this.components[this.get("layoutConfig").activeIndex]}ready(){super.ready(),0==this.components.length&&this.addFloor()}postrender(e){if(super.postrender(e),!this.app.isViewMode&&this._focused){for(var t,r,n,{left:i,top:a,width:o,fillStyle:s}=this.model,l=0;l<this.components.length;l++){e.beginPath(),e.rect(i-25,a+25*l,25,25);var u=255-20*(l+1)%255;e.fillStyle=(t=u,r=u,n=1,"rgba(".concat(u,", ").concat(t,", ").concat(r,", ").concat(n,")")),e.fill(),e.closePath()}e.beginPath(),e.moveTo(i,a),e.lineTo(i-25,a),e.lineTo(i-25,a+25*this.components.length),e.lineTo(i,a+25*this.components.length),e.strokeStyle="#ccc",e.stroke(),e.closePath()}}contains(e,t){var r=super.contains(e,t);if(this.app.isViewMode)return r;var{left:n,top:i,width:a}=this.bounds;return r=r||e<Math.max(n-25,n)&&e>Math.min(n-25,n)&&t<Math.max(i+25*this.size(),i)&&t>Math.min(i+25*this.size(),i),this._focused=!!r,this.invalidate(),r}onmouseup(e){var t=this.__down_point;if(delete this.__down_point,t&&t.x==e.offsetX&&t.y==e.offsetY){var r=this.transcoordC2S(e.offsetX,e.offsetY),{left:n,top:i}=this.model,a=r.x-n,o=r.y-i;a>0||(o/=25,o=Math.floor(o),this.layoutConfig||(this.layoutConfig={}),o>=this.components.length||(this.activeIndex=o))}}onmousedown(e){this.__down_point={x:e.offsetX,y:e.offsetY}}addFloor(){var e=n.Model.compile({type:"floor",fillStyle:"gray",top:0,left:0,width:100,height:100});this.addComponent(e),this.activeIndex=this.components.length-1}drawLocationMarkers(e){this.activeFloor.drawLocationMarkers(e)}}n.Component.register("indoor-map",s);var l={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"number",label:"depth",name:"depth",property:"depth"},{type:"number",label:"shelves",name:"shelves",property:"shelves"},{type:"string",label:"location-pattern",name:"locPattern",placeholder:"{z}{s}-{u}-{sh}",property:"locPattern"},{type:"string",label:"zone",name:"zone",property:"zone"},{type:"string",label:"section",name:"section",property:"section"},{type:"string",label:"unit",name:"unit",property:"unit"},{type:"string",label:"shelf-pattern",name:"shelfPattern",placeholder:"#",property:"shelfPattern"}],help:"scene/component/rack"};class u extends(Object(n.RectPath)(n.Component)){is3dish(){return!0}draw(e){var{left:t,top:r,width:n,height:i,strokeStyle:a,lineWidth:o,fillStyle:s,alpha:l=1}=this.model;e.beginPath(),e.rect(t,r,n,i),e.strokeStyle=a,e.lineWidth=o,e.globalAlpha=.4*l,e.stroke(),e.beginPath(),e.rect(t+.15*n,r+.15*i,.7*n,.7*i),e.fillStyle=s,e.globalAlpha=.5*l,e.fill(),e.beginPath(),e.moveTo(t,r),e.lineTo(t+n,r+i),e.moveTo(t,r+i),e.lineTo(t+n,r),e.strokeStyle=a,e.lineWidth=o,e.globalAlpha=.4*l,e.stroke()}get nature(){return l}get hasTextProperty(){return!1}}n.Component.register("rack",u)},function(e,t,r){"use strict";var n=r(17),i={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"value",name:"value"},{type:"number",label:"start-angle",name:"startAngle"},{type:"number",label:"end-angle",name:"endAngle"},{type:"color",label:"blank-stroke-style",name:"blankStrokeStyle"},{type:"checkbox",label:"packman-style",name:"packmanStyle"},{type:"checkbox",label:"anim-from-base",name:"animFromBase"}],help:"scene/component/progress-circle"};class a extends(Object(n.ValueHolder)(n.Ellipse)){_draw(e){var{startAngle:t=0,endAngle:r=360,lineWidth:n=20,blankStrokeStyle:i,cx:a,cy:o,rx:s,ry:l,packmanStyle:u=!1,animFromBase:d=!1}=this.model;this.animOnValueChange(this.value,d,0);var c=.0174533/Math.PI;e.beginPath(),this.drawStroke(e);var h=(t-90)*c*Math.PI,f=(r-90)*c*Math.PI;e.strokeStyle=i,e.ellipse(a,o,Math.abs(s),Math.abs(l),0,h,f),e.lineWidth=n,e.stroke();var m=Math.min(Math.max(this.animValue/100,0),100);e.beginPath(),u?(e.ellipse(a,o,Math.abs(s),Math.abs(l),0,h,h+(f-h)*m),e.lineTo(a,o)):e.ellipse(a,o,Math.abs(s),Math.abs(l),0,h,f),this.drawFill(e),e.closePath(),e.beginPath(),e.ellipse(a,o,Math.abs(s),Math.abs(l),0,h,h+(f-h)*m),this.drawStroke(e)}_post_draw(e){this.drawText(e)}get nature(){return i}}n.Component.register("progress-circle",a);var o={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"value",name:"value",property:"value"},{type:"color",label:"background-color",name:"backgroundColor",property:"backgroundColor"},{type:"checkbox",label:"anim-from-base",name:"animFromBase"}],help:"scene/component/progress-vertical"};class s extends(Object(n.ValueHolder)(Object(n.RectPath)(n.Shape))){_draw(e){var{top:t,left:r,height:n,width:i,backgroundColor:a="transparent",animFromBase:o=!1}=this.model;this.animOnValueChange(this.value,o,0),e.beginPath(),e.rect(r,t,i,n),e.fillStyle=a,e.fill(),e.beginPath();var s=n-n*Math.max(Math.min(this.animValue,100),0)/100;s=Math.max(Math.min(s,n),0),e.rect(r,t+s,i,n-s),this.drawFill(e),e.closePath(),e.beginPath(),e.rect(r,t,i,n)}_post_draw(e){this.drawStroke(e),this.drawText(e)}get nature(){return o}}n.Component.register("progress-vertical",s);var l={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"value",name:"value",property:"value"},{type:"color",label:"background-color",name:"backgroundColor",property:"backgroundColor"},{type:"checkbox",label:"reverse",name:"reverse",property:"reverse"},{type:"checkbox",label:"anim-from-base",name:"animFromBase"}],help:"scene/component/progress-horizontal"};class u extends(Object(n.ValueHolder)(Object(n.RectPath)(n.Shape))){_draw(e){var{top:t,left:r,height:n,width:i,backgroundColor:a="transparent",reverse:o,animFromBase:s=!1}=this.model;this.animOnValueChange(this.value,s,0),e.beginPath(),e.rect(r,t,i,n),e.fillStyle=a,e.fill(),e.beginPath();var l=i-i*Math.max(Math.min(this.animValue,100),0)/100;l=Math.max(Math.min(l,i),0),o?e.rect(r,t,i-l,n):e.rect(r+l,t,i-l,n),this.drawFill(e),e.closePath(),e.beginPath(),e.rect(r,t,i,n)}_post_draw(e){this.drawStroke(e),this.drawText(e)}get nature(){return l}}n.Component.register("progress-horizontal",u)},function(e,t,r){"use strict";var n=r(17),i={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"number",label:"hour-width",name:"hourWidth",property:"hourWidth"},{type:"number",label:"minute-width",name:"minuteWidth",property:"minuteWidth"},{type:"number",label:"second-width",name:"secondWidth",property:"secondWidth"},{type:"checkbox",label:"needle-round",name:"needleRound",property:"needleRound"},{type:"checkbox",label:"show-second",name:"showSecond",property:"showSecond"},{type:"checkbox",label:"show-number",name:"showNumber",property:"showNumber"},{type:"number",label:"inner-circle-size",name:"innerCircleSize",property:"innerCircleSize"},{type:"color",label:"inner-circle-color",name:"innerCircleColor",property:"innerCircleColor"}],help:"scene/component/analog-clock"};function a(e,t,r,n,i){e.beginPath(),e.lineWidth=n,e.lineCap=i?"round":"square",e.moveTo(0,0),e.rotate(t),e.lineTo(0,-r),e.stroke(),e.rotate(-t)}class o extends n.Ellipse{is3dish(){return!1}_draw(e){var t,r,{cx:n,cy:i,rx:o,ry:s,fillStyle:l,strokeStyle:u,fontColor:d="#000",lineWidth:c,hourWidth:h,minuteWidth:f,secondWidth:m,needleRound:p=!1,showSecond:g=!0,showNumber:_=!0,innerCircleSize:v=5,innerCircleColor:y="#000"}=this.model;if(e.beginPath(),e.ellipse(n,i,Math.abs(o),Math.abs(s),0,0,2*Math.PI),e.fillStyle=l,e.strokeStyle=u,e.lineWidth=c||.1*o,this.drawFill(e),this.drawStroke(e),e.beginPath(),e.translate(n,i),e.scale(1,s/o),_)for(e.font=.15*o+"px arial",e.textBaseline="middle",e.textAlign="center",e.fillStyle=d,r=1;r<13;r++)t=r*Math.PI/6,e.rotate(t),e.translate(0,.85*-o),e.rotate(-t),e.fillText(r.toString(),0,0),e.rotate(t),e.translate(0,.85*o),e.rotate(-t);var b,M=new Date,w=M.getHours(),L=M.getMinutes(),T=M.getSeconds();a(e,w=(w%=12)*Math.PI/6+L*Math.PI/360+T*Math.PI/21600,.55*o,h||.07*o,p),a(e,L=L*Math.PI/30+T*Math.PI/1800,.8*o,f||.07*o,p),g&&a(e,T=T*Math.PI/30,.9*o,m||.02*o,p),e.beginPath(),v&&(e.ellipse(0,0,v,v,0,0,2*Math.PI),e.fillStyle=y,e.fill()),e.beginPath(),e.scale(1,o/s),e.translate(-n,-i),b=setTimeout((function(e){e.invalidate(),clearTimeout(b)}),1e3,this)}get nature(){return i}}n.Component.register("clock-analog",o);var s=r(19),l=r.n(s),u={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"string",label:"time-format",name:"timeFormat"},{type:"checkbox",label:"is-local-time",name:"localTime"},{type:"number",label:"utc",name:"utc"},{type:"select",label:"week-language",name:"weekLanguage",property:{options:[{display:"English",value:"en"},{display:"Korean",value:"ko"},{display:"Chinese",value:"zh_cn"},{display:"Japanese",value:"ja"}]}}],help:"scene/component/clock-text"};class d extends n.Text{is3dish(){return!1}get nature(){return u}render(e){super.render(e),this._raf=requestAnimationFrame(()=>{setTimeout(()=>{this._timer()},1e3)})}_timer(){this.set("data",this._getTimeStamp())}_getTimeStamp(){var e=l()(),t=this.get("utc"),r=this.get("timeFormat")||"YYYY-MM-DD HH:mm:ss",n=this.get("weekLanguage");return this.get("weekLanguage")||(n="en"),this.get("localTime")?e.local():e.utc().utcOffset(t),e.locale(n).format(r)}dispose(){super.dispose(),cancelAnimationFrame(this._raf)}}n.Component.register("clock-text",d)},function(e,t,r){"use strict";var n,i,a=r(17),o=r(0);function s(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}class l extends o.a{static get properties(){return{round:Boolean,value:Boolean}}static get styles(){return Object(o.b)(n||(n=s(['\n /* The switch - the box around the slider */\n label {\n position: relative;\n display: inline-block;\n width: 100%;\n height: 100%;\n }\n\n /* Hide default HTML checkbox */\n label input {\n opacity: 0;\n width: 0;\n height: 0;\n }\n\n /* The slider */\n span {\n position: absolute;\n cursor: pointer;\n width: var(--fullwidth);\n height: var(--fullheight);\n top: calc(0 - var(--thumbnail-size));\n left: 0;\n background-color: var(--off-color, #ccc);\n -webkit-transition: 0.4s;\n transition: 0.4s;\n }\n\n span:before {\n position: absolute;\n content: "";\n height: calc(var(--thumbnail-size) - 8px);\n width: calc(var(--thumbnail-size) - 8px);\n left: 4px;\n top: 4px;\n background-color: var(--thumbnail-color, white);\n -webkit-transition: 0.4s;\n transition: 0.4s;\n }\n\n input:checked + span {\n background-color: var(--on-color, #2196f3);\n }\n\n input:checked + span:before {\n -webkit-transform: translateX(\n calc(var(--fullwidth) - var(--thumbnail-size))\n )\n translateY(calc(var(--fullheight) - var(--thumbnail-size)));\n -ms-transform: translateX(\n calc(var(--fullwidth) - var(--thumbnail-size))\n )\n translateY(calc(var(--fullheight) - var(--thumbnail-size)));\n transform: translateX(calc(var(--fullwidth) - var(--thumbnail-size)))\n translateY(calc(var(--fullheight) - var(--thumbnail-size)));\n }\n\n /* Rounded sliders */\n span[round] {\n border-radius: calc(var(--thumbnail-size) / 2);\n }\n\n span[round]:before {\n border-radius: calc((var(--thumbnail-size) - 8px) / 2);\n }\n '])))}render(){return Object(o.e)(i||(i=s(['\n <label>\n <input type="checkbox" .checked='," />\n <span ?round=","></span>\n </label>\n "])),this.value,this.round)}firstUpdated(){this.shadowRoot.addEventListener("change",e=>{this.value=e.target.checked,this.dispatchEvent(new CustomEvent("value-change",{detail:this.value}))})}}customElements.define("simple-switch",l);var u={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"checkbox",label:"round",name:"round"},{type:"checkbox",label:"on/off",name:"data"},{type:"color",label:"on-color",name:"onColor"},{type:"color",label:"off-color",name:"offColor"},{type:"color",label:"thumbnail-color",name:"thumbnailColor"}],"value-property":"data",help:"scene/component/simple-switch"};class d extends a.HTMLOverlayElement{static get nature(){return u}oncreate_element(e){e.addEventListener("value-change",e=>{var t=e.detail;this.setState({data:t})})}dispose(){super.dispose()}setElementProperties(e){var{round:t,data:r,onColor:n,offColor:i,thumbnailColor:a}=this.state;e.round=t,e.value="true"==String(r),n&&e.style.setProperty("--on-color",n),i&&e.style.setProperty("--off-color",i),a&&e.style.setProperty("--thumbnail-color",a)}reposition(){super.reposition();var e=this.element;if(e){var{height:t,width:r}=this.bounds;e.style.setProperty("--fullwidth","".concat(r,"px")),e.style.setProperty("--fullheight","".concat(t,"px")),e.style.setProperty("--thumbnail-size","".concat(Math.min(t,r),"px"))}}get tagName(){return"simple-switch"}}a.Component.register("simple-switch",d)},function(e,t,r){"use strict";var n=r(17);class i extends(Object(n.RectPath)(n.Component)){get index(){return this.model.index}get activated(){return this.parent.activeIndex===this.index}removed(e){this.dispose()}prerender(e){super.prerender(e);var{fillStyle:t,activeFillStyle:r,activeLineColor:n,activeLineWidth:i,fontColor:a,activeFontColor:o}=this.model;this.hasOwnProperty("_fillStyle")||(this._fillStyle=t),this.hasOwnProperty("_fontColor")||(this._fontColor=a),this.activated?(this.model.fillStyle=r,this.model.fontColor=o,this.model.strokeStyle=n,this.model.lineWidth=i):(this.model.fillStyle=this._fillStyle,this.model.fontColor=this._fontColor,this.model.strokeStyle=this._strokeStyle,this.model.lineWidth=this._lineWidth)}render(e){var{left:t=0,top:r=0,width:n,height:i}=this.bounds;e.beginPath(),e.rect(t,r,n,i),this.drawFill(e),this.drawStroke(e)}postrender(e){super.postrender(e),this.model.fillStyle=this._fillStyle,this.model.fontColor=this._fontColor,this.model.strokeStyle=this._strokeStyle,this.model.lineWidth=this._lineWidth,delete this._fillStyle,delete this._fontColor,delete this._strokeStyle,delete this._lineWidth}onclick(e){this.parent.activeIndex=this.index,this.parent.invalidate()}onchange(e){e.hasOwnProperty("fillStyle")&&(this._fillStyle=e.fillStyle),e.hasOwnProperty("fontColor")&&(this._fontColor=e.fontColor),e.hasOwnProperty("strokeStyle")&&(this._fontColor=e.fontColor),e.hasOwnProperty("lineWidth")&&(this._fontColor=e.fontColor),e.hasOwnProperty("text")&&this.parent.reference.getAt(this.index).set("text",e.text),this.invalidate()}}n.Component.register("tab-button",i);var a={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"id-input",label:"tab-reference",name:"reference",property:{component:"indoor-map"}},{type:"number",label:"tab-active-index",name:"activeIndex",property:{min:0,step:1}},{type:"color",label:"active-fill-style",name:"activeFillStyle",property:"activeFillStyle"},{type:"color",label:"active-font-color",name:"activeFontColor",property:"activeFontColor"},{type:"color",label:"active-line-color",name:"activeLineColor",property:"activeLineColor"},{type:"number",label:"active-line-width",name:"activeLineWidth",property:"activeLineWidth"}]};class o extends n.Container{get layout(){var{width:e,height:t}=this.model;return e>=t?n.LinearHorizontalLayout:n.LinearVerticalLayout}get nature(){return a}get focusible(){return!1}get reference(){var{reference:e}=this.model;return e?(this._reference||(this._reference=this.root.findById(e),this._reference&&this._reference.on("change",this.onRefChanged,this)),this._reference):null}get labelHeight(){var e=this.reference.components.length,t=this.model.height;return e>0&&t/e||t}get activeIndex(){return this.get("activeIndex")}set reference(e){this.reference&&this.reference.off("change",this.onRefChanged,this),this._reference=null,this.model.reference=e}set activeIndex(e){this.set("activeIndex",e),this.reference&&(this.reference.activeIndex=e)}render(e){if(super.render(e),this.reference)this.size()!==this.reference.size()&&this.rebuildTabButtons(e);else for(var t=this.components.length-1;t>=0;t--){var r=this.components[t];this.removeComponent(r)}}postrender(e){if(super.postrender(e),this.app.isEditMode){var{left:t,top:r,width:n,fillStyle:i}=this.model;e.beginPath(),e.rect(t+n,r,25,25);var a,o,s;e.fillStyle=(a=235,o=235,s=1,"rgba(".concat(235,", ").concat(a,", ").concat(o,", ").concat(s,")")),e.fill(),e.closePath()}}contains(e,t){if(!this.app.isEditMode)return super.contains(e,t);if(super.contains(e,t))return!0;var{left:r,top:n,width:i}=this.bounds,a=r+i;return e<Math.max(a+25,a)&&e>Math.min(a+25,a)&&t<Math.max(n+25,n)&&t>Math.min(n+25,n)}dispose(){this.reference&&this.reference.off("change",this.onRefChanged,this),super.dispose()}rebuildTabButtons(){for(var{tabIndex:e=0,left:t,top:r,width:i,height:a,fillStyle:o,activeFillStyle:s,activeLineColor:l,activeLineWidth:u,strokeStyle:d,fontColor:c,activeFontColor:h,fontFamily:f,fontSize:m,lineHeight:p,italic:g,bold:_,lineWidth:v=0}=this.model,y=[],b=this.reference.components,M=(this.labelHeight,this.components.length-1);M>=0;M--)this.removeComponent(this.components[M]);for(var w=0;w<b.length;w++)if("floor"==b[w].model.type){var L=b[w].text||"";y.push(n.Model.compile({type:"tab-button",index:w,text:L||String(w+1),fillStyle:o||"transparent",activeFillStyle:s,activeLineColor:l,activeLineWidth:u,fontColor:c,activeFontColor:h||c,fontFamily:f,fontSize:m,lineHeight:p,italic:g,bold:_,strokeStyle:d,lineWidth:v,left:0,top:0,width:i,height:a}))}this.add(y),this.reflow(),this.activeIndex=this.model.activeIndex||0}setTabButtonsStyle(e){var t=this.components;for(var r in t){t[r].set(e)}}onRefChanged(e,t,r){}onchange(e,t){e.hasOwnProperty("reference")&&(this.reference=e.reference,this.invalidate()),this.setTabButtonsStyle(e)}}n.Component.register("tab",o)},function(e,t,r){"use strict";var n=r(17);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s={ondragmove:function(e,t,r){r.controls;var{left:n,top:i,width:a,height:o}=r.bounds,s=(r.transcoordP2S(e.x,e.y).x-n)/(a/2)*100;s=l(s,a,o),r.set({round:s})}};function l(e,t,r){var n=t>r?r/t*100:100;return e>=n?e=n:e<=0&&(e=0),e}class u extends n.Rect{is3dish(){return!1}_draw(e){var{round:t,top:r,left:n,width:i,height:o}=a(a({},this.model),this.bounds);if(e.beginPath(),(t=l(t,i,o))>0){var s=t/100*(i/2);e.moveTo(n+s,r),e.lineTo(n+i-s,r),e.quadraticCurveTo(n+i,r,n+i,r+s),e.lineTo(n+i,r+o),e.lineTo(n,r+o),e.lineTo(n,r+s),e.quadraticCurveTo(n,r,n+s,r)}else e.rect(n,r,i,o);this.drawFill(e),this.drawStroke(e)}get controls(){var{left:e,top:t,width:r,round:n,height:i}=a(a({},this.model),this.bounds);return[{x:e+r/2*((n=null==n?0:l(n,r,i))/100),y:t,handler:s}]}}n.Component.register("half-roundrect",u)},function(e,t,r){"use strict";var n=r(17),i={mutable:!1,resizable:!0,rotatable:!0,properties:[{type:"select",label:"format",name:"format",property:{options:["bool,character,floating,integer,letter,natural,string","paragraph,sentence,syllable,word","age,birthday,cf,cpf,first,gender,last,name,prefix,ssn,suffix","android_id,apple_token,bb_pin,wp7_anid,wp8_anid2,avatar,color","company,domain,email,fbid,google_analytics,hashtag,ip,ipv6,klout,profession,tld,twitter,url","address,altitude,areacode,city,coordinates,country,depth,geohash,latitude,longitude,phone,postal,province,state,street,zip","ampm,date,hammertime,hour,millisecond,minute,month,second,timestamp,timezone,weekday,year","cc,cc_type,currency,currency_pair,dollar,euro,exp,exp_month,exp_year","coin,d4,d6,d8,d10,d12,d20,d30,d100,guid,hash"].join(",").split(",").map(e=>({display:e,value:e}))}},{type:"number",label:"count",name:"count",placeholder:1},{type:"number",label:"period",name:"period",placeholder:"milli-seconds"}],help:"scene/component/random"};class a extends(Object(n.RectPath)(n.Shape)){static get image(){return a._image||(a._image=new Image,a._image.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAMAAACahl6sAAAAtFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABSe1G2AAAAO3RSTlMAA/sG7vXcIvjy4tLm14YJzWlkbhK6pX8aDwyqSTPJxZtEQBbAOyqRjHlNciYe6a51WrWWUjcun7JfVn5FXzIAAAjjSURBVHja7NrXdtpAGATgkUQTvdn0DjbV2In7vP975SLIlrIFLevEcKLvWseAhWbn3wWJRCKRSCQSiUQikUgkEolEIpFI/C/ajX0plSrtGztcskHP5YG7v8GlmswZ5q4cXCDnvco/XV/eJ6nUMpR4wWXprO4oV8cFaS99qqSauBTbsUuNMi7D0556fgcXoD/nUfc4d85DgTHcVXDWJHl7icHVFPJWLXO+q2J7maaBd5ynmxeXRqo4R9q8zWUKmRwFE5wdXd4WywMPgDcoFxl1hfOizVt/4yHgNXxGDHBGKo0M1QpZhGWjH7mHs9FsafO22kRUp8oQd4vzsLtNU6fYFiO6yJAxzsHxvF1DtI7EWRvfbvHKY+aQmZ9Vm+/PedwjcOyWpBx8Iy9ev/U9yHg+Py3xfbqNPGO5gtwVP7htfJdmK8WYbiF3q9hNWSxHxbRf6tWbsGCdt6IW5Fr8cIMPjwUGcuMtbNn32+OJVGbgBwLNPSNeF7Bgkbcmu3BjBqY4aJf4p9Gjg7/AWY9oqgq5qnBBp0SJTK2Cr7Yu8AQzyMzEEbFHubtWE1+pe82T3ENmIwztfSqlf2bxZWYFnqZYgahS5EEDB0NquL0BvkalylOVdZmV6uK3KY+Y9x3A3k+eri+WNPFT/uBRpTcPtp4o41/Xn7LZRb2Xpk56iqjpx/W5IApuGEfxvgM7PyhK3Xc/t+R8argNB5+chivOVC+Mx1/uYKFN0VUkV3cj6gwnCEzCV26DF3AZl3v9jJPVKBg7iPD21Mrcvj89P70vMwzZCw9/LFcTGFLf+FchQrwRjS2CNSpFM9UHD6eYC09dE4KdT0Ojz+VRUBzOqz7V8psuzAmLyBsk7qmkn4K9PKOG9fbvLGvlqZQqt2FqxKi8A4muTyOl4K88MCLTxwevkaZSbnwDM714Q8aYRuo4KDBs30XYtkSN1ylMrBg1hdQ7A0bHbhP9DyJmJeoMTUaWAaOakNrSxEqyD0EOxTjK+hSYjizym+9CrkMD6eC/8Xx0I7jOI1KtGeJ5Y1gOcl0auMXBNUN+QsIp8ZjcsZFFHpAVSGUZnxu88M5lyFbXLPT2T4hhE+dsps/4ejhYMqQAqRljGa0d6IglYgOpMuMbBM+VH2c7L8N4SvUKBJo3OYSMk2Fsc3myNwzGCLm7VRNas1y07Uk8njA1ekVt9RED4bj0bTb+sDt0IKiUGFtBkax1XbUwGFkGUMu6DGnZjfVvimBtKcueoas+lK71X4IN4yt6H+c9UXtIOT6NFR4cyD0zYhW5zluetGk3j3cstOApCoN40TEKXbeo0oDfUW7OPFjUaoFbh9RU+CLWswCcbW1EI0v1M1xwNI+nuRqkhhTk8vkcDbk7zRvcWKwiIncK5UJh70WXc+5CMw2Zy1eULdResC/VTFPCXyCqQRsrwHwwMDznbVEqV3PwqTumlaKjaPP2JkETuKPCsO8E19SKtDRVtHlr1ThDRn5c60/Xm55Pay1Vm7f1YNSV7fVUbd5S3jGKQHtzZZu30zDrgfZGX3t0JRy1LfiPvGrbvP2B4iv/kaW6zVvItQ338uytofBMC2PDPmvP/9XenSglDwMBAN4eQG25tYUiVgoIDodcgmDe/73+cQYtNW2SbTpY5s/3AM7ASHazu902II1LsptkOTOq28HOa+okkymkGubww6sjSgnn1Mw/NUkEWQdkZ/PXaLV5I4hs3jKHw3yz+QCb0OotiFk6BOkJaHQ2n7XVptm4YkvkwZEP6/LZfJlqteFDQOUOOT3CZFQJg9U8rlybdYFuCn7wBtDukV1KtjXj19VvwJflusxutfGdpK9EJ+DwTZJsPElvyHaQtQTT4PYz+XXACCqbr2twaVFmtNq4PEg0wdQBuUaW0EW/W05oqn3I1aS0O0QdkG8n9hVOSlSI7eqSJ44jl/fys/k3H2hzRquN40WyMq8vQYRH3/2Yh8yearXxhMzBGD4v2wwBKfmsGfgxfvKmDclMVB2QzyVxR+YhM8OHgZ1cD9wFQUPBs86MhdgTrt4iEdpDEBVQGWGiJjUIJJUoaU7uzwC/i30D7mWI7ROEQJOYQNqAMK0mdMl/voyUY2QNjPJQJUJsA8S1RQIx2BfZyZNsm8Zws30HmGx+kD5GMo1abTilEGJ6W0QdEGHNb0TAiWq1YegdAyJPNUQdEMM3+bnR+CLETgleud37/hgetg4YkZ+0GVKtNjTLfZ3fd7wytg4YwWbzreT5FBfbJZI3kXusxNpTJ7R3GWACciVHoOCyeXMPMdrgKzvBjm7KewEc+kC1Yg+KLMexa+OeXEkAFHw23/wZJ17WS/Fa34xcyTtk4VKx6HG9+Wy/ft/jdOMqH0R+i8+Q92eRs0ryWpBNIJpOj4i8u239vtV5fJPedIWvzTvwo0YkNT+N83EYblEDAvhsnmbn1qMvtTWIhDZn5B6vTZh6ANHwuITqAWJGAeKmj8rm+UMtryQ7cwERxmPjFchuLVrv65Vz7TIvSsxWG55vipbEJybJ6FGwML8HGR3mrHoDIodqnvlsw6RbbVJ6tvBTQ91jnpMxU/ofUE6op5z7GlD6z7mtKYCQbrVJamOeqH1Z5TTPB37+Wx83Folj7jZYDCyCUoFkd9S5Im3yTAhiy8yobhKELiSr0h0zeeHKOv/CO12hNUqIqLKAZCVEdoLQ2G9arVkFvSibry/yENkU/s5wK7VKaYZqtcmT36nkCCwM8ECa/NZsfGGErvgd4M/5azvTmM+0eKtEjZODv4m/6IVc7tp3kb2Sylv8V1QcT55O0pVmEHOwf7XaiqTC3G439eGHMbd+t9qKhblP2+xUzoGQygrmUDiNdo2ks4+DwaqW1GoroJRVdzf5boP9ivAVYvcm12JnkUS39yaTkfie0aK/8Kcn+GaDLRSe9hkI3ehvAf/KEsCNmHzoN/l6hgRdVqnCKe4LMxL4czv9znVb0nZwd+D2hC75UpjSSY5XFr2AWW+WhdxuAQoO2fmtrUkI0Z3XQr3wI5uHSvemDl1FURRFURRFURRFURRF+a/9A+ihoIIrt6BYAAAAAElFTkSuQmCC"),a._image}ready(){super.ready(),n.ScriptLoader.load(["https://chancejs.com/chance.min.js"]).then(()=>{this.app&&this.app.isViewMode&&this._initRandom()},n.error)}dispose(){super.dispose(),this._stopRepeater()}random(){var{format:e,count:t=1}=this.state;e&&t&&(this.data=chance.n(chance[e],t))}_initRandom(){this._stopRepeater(),this._startRepeater()}_startRepeater(){var{period:e}=this.state;e=Number(e);var t=!0;e&&(this.repeatTimer=setInterval(()=>{t&&this.repeatTimer&&requestAnimationFrame(()=>{t=!0,this.random()}),t=!1},e)),this.random()}_stopRepeater(){this.repeatTimer&&clearTimeout(this.repeatTimer),delete this.repeatTimer}_draw(e){var{left:t,top:r,width:n,height:i}=this.bounds;e.beginPath(),this.drawImage(e,a.image,t,r,n,i)}ondblclick(e){this.random()}get hasTextProperty(){return!1}get controls(){}get nature(){return i}}n.Component.register("random",a)},,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){e.exports=r(926)},,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";r.r(t);r(608),r(609),r(875),r(880),r(874),r(876),r(883),r(878),r(877),r(879),r(884),r(881),r(882)},,function(e,t,r){"use strict";function n(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function i(e){return Math.min(1,Math.max(0,e))}function a(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function o(e){return e<=1?100*Number(e)+"%":e}function s(e){return 1===e.length?"0"+e:String(e)}function l(e,t,r){e=n(e,255),t=n(t,255),r=n(r,255);var i=Math.max(e,t,r),a=Math.min(e,t,r),o=0,s=0,l=(i+a)/2;if(i===a)s=0,o=0;else{var u=i-a;switch(s=l>.5?u/(2-i-a):u/(i+a),i){case e:o=(t-r)/u+(t<r?6:0);break;case t:o=(r-e)/u+2;break;case r:o=(e-t)/u+4}o/=6}return{h:o,s:s,l:l}}function u(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*r*(t-e):r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function d(e,t,r){e=n(e,255),t=n(t,255),r=n(r,255);var i=Math.max(e,t,r),a=Math.min(e,t,r),o=0,s=i,l=i-a,u=0===i?0:l/i;if(i===a)o=0;else{switch(i){case e:o=(t-r)/l+(t<r?6:0);break;case t:o=(r-e)/l+2;break;case r:o=(e-t)/l+4}o/=6}return{h:o,s:u,v:s}}function c(e,t,r,n){var i=[s(Math.round(e).toString(16)),s(Math.round(t).toString(16)),s(Math.round(r).toString(16))];return n&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function h(e){return Math.round(255*parseFloat(e)).toString(16)}function f(e){return m(e)/255}function m(e){return parseInt(e,16)}r.d(t,"a",(function(){return w}));var p={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function g(e){var t,r,i,s={r:0,g:0,b:0},l=1,d=null,c=null,h=null,g=!1,_=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(p[e])e=p[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var r=b.rgb.exec(e);if(r)return{r:r[1],g:r[2],b:r[3]};if(r=b.rgba.exec(e))return{r:r[1],g:r[2],b:r[3],a:r[4]};if(r=b.hsl.exec(e))return{h:r[1],s:r[2],l:r[3]};if(r=b.hsla.exec(e))return{h:r[1],s:r[2],l:r[3],a:r[4]};if(r=b.hsv.exec(e))return{h:r[1],s:r[2],v:r[3]};if(r=b.hsva.exec(e))return{h:r[1],s:r[2],v:r[3],a:r[4]};if(r=b.hex8.exec(e))return{r:m(r[1]),g:m(r[2]),b:m(r[3]),a:f(r[4]),format:t?"name":"hex8"};if(r=b.hex6.exec(e))return{r:m(r[1]),g:m(r[2]),b:m(r[3]),format:t?"name":"hex"};if(r=b.hex4.exec(e))return{r:m(r[1]+r[1]),g:m(r[2]+r[2]),b:m(r[3]+r[3]),a:f(r[4]+r[4]),format:t?"name":"hex8"};if(r=b.hex3.exec(e))return{r:m(r[1]+r[1]),g:m(r[2]+r[2]),b:m(r[3]+r[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(M(e.r)&&M(e.g)&&M(e.b)?(t=e.r,r=e.g,i=e.b,s={r:255*n(t,255),g:255*n(r,255),b:255*n(i,255)},g=!0,_="%"===String(e.r).substr(-1)?"prgb":"rgb"):M(e.h)&&M(e.s)&&M(e.v)?(d=o(e.s),c=o(e.v),s=function(e,t,r){e=6*n(e,360),t=n(t,100),r=n(r,100);var i=Math.floor(e),a=e-i,o=r*(1-t),s=r*(1-a*t),l=r*(1-(1-a)*t),u=i%6;return{r:255*[r,s,o,o,l,r][u],g:255*[l,r,r,s,o,o][u],b:255*[o,o,l,r,r,s][u]}}(e.h,d,c),g=!0,_="hsv"):M(e.h)&&M(e.s)&&M(e.l)&&(d=o(e.s),h=o(e.l),s=function(e,t,r){var i,a,o;if(e=n(e,360),t=n(t,100),r=n(r,100),0===t)a=r,o=r,i=r;else{var s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;i=u(l,s,e+1/3),a=u(l,s,e),o=u(l,s,e-1/3)}return{r:255*i,g:255*a,b:255*o}}(e.h,d,h),g=!0,_="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(l=e.a)),l=a(l),{ok:g,format:e.format||_,r:Math.min(255,Math.max(s.r,0)),g:Math.min(255,Math.max(s.g,0)),b:Math.min(255,Math.max(s.b,0)),a:l}}var _="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",v="[\\s|\\(]+("+_+")[,|\\s]+("+_+")[,|\\s]+("+_+")\\s*\\)?",y="[\\s|\\(]+("+_+")[,|\\s]+("+_+")[,|\\s]+("+_+")[,|\\s]+("+_+")\\s*\\)?",b={CSS_UNIT:new RegExp(_),rgb:new RegExp("rgb"+v),rgba:new RegExp("rgba"+y),hsl:new RegExp("hsl"+v),hsla:new RegExp("hsla"+y),hsv:new RegExp("hsv"+v),hsva:new RegExp("hsva"+y),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function M(e){return Boolean(b.CSS_UNIT.exec(String(e)))}var w=function(){function e(t,r){var n;if(void 0===t&&(t=""),void 0===r&&(r={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var i=g(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(n=r.format)&&void 0!==n?n:i.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,r=e.g/255,n=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=a(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var e=d(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=d(this.r,this.g,this.b),t=Math.round(360*e.h),r=Math.round(100*e.s),n=Math.round(100*e.v);return 1===this.a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this.roundA+")"},e.prototype.toHsl=function(){var e=l(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=l(this.r,this.g,this.b),t=Math.round(360*e.h),r=Math.round(100*e.s),n=Math.round(100*e.l);return 1===this.a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this.roundA+")"},e.prototype.toHex=function(e){return void 0===e&&(e=!1),c(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,r,n,i){var a=[s(Math.round(e).toString(16)),s(Math.round(t).toString(16)),s(Math.round(r).toString(16)),s(h(n))];return i&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),r=Math.round(this.b);return 1===this.a?"rgb("+e+", "+t+", "+r+")":"rgba("+e+", "+t+", "+r+", "+this.roundA+")"},e.prototype.toPercentageRgb=function(){var e=function(e){return Math.round(100*n(e,255))+"%"};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*n(e,255))};return 1===this.a?"rgb("+e(this.r)+"%, "+e(this.g)+"%, "+e(this.b)+"%)":"rgba("+e(this.r)+"%, "+e(this.g)+"%, "+e(this.b)+"%, "+this.roundA+")"},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+c(this.r,this.g,this.b,!1),t=0,r=Object.entries(p);t<r.length;t++){var n=r[t],i=n[0];if(e===n[1])return i}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var r=!1,n=this.a<1&&this.a>=0;return t||!n||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=i(r.l),new e(r)},e.prototype.brighten=function(t){void 0===t&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-t/100*255))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-t/100*255))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-t/100*255))),new e(r)},e.prototype.darken=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=i(r.l),new e(r)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=i(r.s),new e(r)},e.prototype.saturate=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=i(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){void 0===r&&(r=50);var n=this.toRgb(),i=new e(t).toRgb(),a=r/100;return new e({r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a})},e.prototype.analogous=function(t,r){void 0===t&&(t=6),void 0===r&&(r=30);var n=this.toHsl(),i=360/r,a=[this];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,a.push(new e(n));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var r=this.toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/t;t--;)o.push(new e({h:n,s:i,v:a})),a=(a+s)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb();return new e({r:n.r+(r.r-n.r)*r.a,g:n.g+(r.g-n.g)*r.a,b:n.b+(r.b-n.b)*r.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,i=[this],a=360/t,o=1;o<t;o++)i.push(new e({h:(n+o*a)%360,s:r.s,l:r.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}()}]);