@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,379 +0,0 @@
1
- !function(e){function t(t){for(var n,a,s=t[0],c=t[1],l=t[3]||[],d=0,p=[];d<s.length;d++)a=s[d],Object.prototype.hasOwnProperty.call(r,a)&&r[a]&&p.push(r[a][0]),r[a]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(u&&u(t),l.forEach((function(e){if(void 0===r[e]){r[e]=null;var t=document.createElement("link");o.nc&&t.setAttribute("nonce",o.nc),t.rel="prefetch",t.as="script",t.href=i(e),document.head.appendChild(t)}}));p.length;)p.shift()()}var n={},r={4:0,9:0};function i(e){return o.p+""+({10:"modules",13:"profile",16:"vendors~modules"}[e]||e)+".js"}function o(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((function(t,i){n=r[e]=[t,i]}));t.push(n[2]=a);var s,c=document.createElement("script");c.charset="utf-8",c.timeout=120,o.nc&&c.setAttribute("nonce",o.nc),c.src=i(e);var u=new Error;s=function(t){c.onerror=c.onload=null,clearTimeout(l);var n=r[e];if(0!==n){if(n){var i=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;u.message="Loading chunk "+e+" failed.\n("+i+": "+o+")",u.name="ChunkLoadError",u.type=i,u.request=o,n[1](u)}r[e]=void 0}};var l=setTimeout((function(){s({type:"timeout",target:c})}),12e4);c.onerror=c.onload=s,document.head.appendChild(c)}return Promise.all(t)},o.m=e,o.c=n,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/",o.oe=function(e){throw console.error(e),e};var a=window.webpackJsonp=window.webpackJsonp||[],s=a.push.bind(a);a.push=t,a=a.slice();for(var c=0;c<a.length;c++)t(a[c]);var u=s,l=o(o.s=893);t([[],{},0,[16,10]])}([function(e,t,n){"use strict";n.d(t,"c",(function(){return E})),n.d(t,"f",(function(){return k})),n.d(t,"j",(function(){return S})),n.d(t,"g",(function(){return P})),n.d(t,"i",(function(){return T})),n.d(t,"d",(function(){return R})),n.d(t,"h",(function(){return L})),n.d(t,"e",(function(){return d.g})),n.d(t,"k",(function(){return B})),n.d(t,"b",(function(){return z})),n.d(t,"a",(function(){return U}));var r=n(12),i=n(6);function o(e,t){for(var{element:{content:n},parts:r}=e,i=document.createTreeWalker(n,133,null,!1),o=s(r),a=r[o],c=-1,u=0,l=[],d=null;i.nextNode();){c++;var p=i.currentNode;for(p.previousSibling===d&&(d=null),t.has(p)&&(l.push(p),null===d&&(d=p)),null!==d&&u++;void 0!==a&&a.index===c;)a.index=null!==d?-1:a.index-u,a=r[o=s(r,o)]}l.forEach(e=>e.parentNode.removeChild(e))}var a=e=>{for(var t=11===e.nodeType?0:1,n=document.createTreeWalker(e,133,null,!1);n.nextNode();)t++;return t},s=(e,t=-1)=>{for(var n=t+1;n<e.length;n++){var r=e[n];if(Object(i.d)(r))return n}return-1};var c=n(22),u=n(21),l=n(31),d=n(5),p=(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 h=e=>t=>{var n=p(t.type,e),r=u.a.get(n);void 0===r&&(r={stringsArray:new WeakMap,keyString:new Map},u.a.set(n,r));var o=r.stringsArray.get(t.strings);if(void 0!==o)return o;var a=t.strings.join(i.f);if(void 0===(o=r.keyString.get(a))){var s=t.getTemplateElement();f&&window.ShadyCSS.prepareTemplateDom(s,e),o=new i.a(t,s),r.keyString.set(a,o)}return r.stringsArray.set(t.strings,o),o},v=["html","svg"],m=new Set,g=(e,t,n)=>{m.add(e);var r=n?n.element:document.createElement("template"),i=t.querySelectorAll("style"),{length:c}=i;if(0!==c){for(var l=document.createElement("style"),d=0;d<c;d++){var f=i[d];f.parentNode.removeChild(f),l.textContent+=f.textContent}(e=>{v.forEach(t=>{var n=u.a.get(p(t,e));void 0!==n&&n.keyString.forEach(e=>{var{element:{content:t}}=e,n=new Set;Array.from(t.querySelectorAll("style")).forEach(e=>{n.add(e)}),o(e,n)})})})(e);var h=r.content;n?function(e,t,n=null){var{element:{content:r},parts:i}=e;if(null!=n)for(var o=document.createTreeWalker(r,133,null,!1),c=s(i),u=0,l=-1;o.nextNode();){for(l++,o.currentNode===n&&(u=a(t),n.parentNode.insertBefore(t,n));-1!==c&&i[c].index===l;){if(u>0){for(;-1!==c;)i[c].index+=u,c=s(i,c);return}c=s(i,c)}}else r.appendChild(t)}(n,l,h.firstChild):h.insertBefore(l,h.firstChild),window.ShadyCSS.prepareTemplateStyles(r,e);var g=h.querySelector("style");if(window.ShadyCSS.nativeShadow&&null!==g)t.insertBefore(g.cloneNode(!0),t.firstChild);else if(n){h.insertBefore(l,h.firstChild);var b=new Set;b.add(l),o(n,b)}}else window.ShadyCSS.prepareTemplateStyles(r,e)};function b(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,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}},w=(e,t)=>t!==e&&(t==t||e==e),O={attribute:!0,type:String,converter:y,reflect:!1,hasChanged:w};class x extends HTMLElement{constructor(){super(),this.initialize()}static get observedAttributes(){this.finalize();var e=[];return this._classProperties.forEach((t,n)=>{var r=this._attributeNameForProperty(n,t);void 0!==r&&(this._attributeToPropertyMap.set(r,n),e.push(r))}),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=O){if(this._ensureClassProperties(),this._classProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){var n="symbol"==typeof e?Symbol():"__".concat(e),r=this.getPropertyDescriptor(e,n,t);void 0!==r&&Object.defineProperty(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(r){var i=this[e];this[t]=r,this.requestUpdateInternal(e,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this._classProperties&&this._classProperties.get(e)||O}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,n=[...Object.getOwnPropertyNames(t),..."function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[]];for(var r of n)this.createProperty(r,t[r])}}static _attributeNameForProperty(e,t){var n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}static _valueHasChanged(e,t,n=w){return n(e,t)}static _propertyValueFromAttribute(e,t){var n=t.type,r=t.converter||y,i="function"==typeof r?r:r.fromAttribute;return i?i(e,n):e}static _propertyValueToAttribute(e,t){if(void 0!==t.reflect){var n=t.type,r=t.converter;return(r&&r.toAttribute||y.toAttribute)(e,n)}}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 n=this[t];delete this[t],this._instanceProperties||(this._instanceProperties=new Map),this._instanceProperties.set(t,n)}})}_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,n){t!==n&&this._attributeToProperty(e,n)}_propertyToAttribute(e,t,n=O){var r=this.constructor,i=r._attributeNameForProperty(e,n);if(void 0!==i){var o=r._propertyValueToAttribute(t,n);if(void 0===o)return;this._updateState=8|this._updateState,null==o?this.removeAttribute(i):this.setAttribute(i,o),this._updateState=-9&this._updateState}}_attributeToProperty(e,t){if(!(8&this._updateState)){var n=this.constructor,r=n._attributeToPropertyMap.get(e);if(void 0!==r){var i=n.getPropertyOptions(r);this._updateState=16|this._updateState,this[r]=n._propertyValueFromAttribute(t,i),this._updateState=-17&this._updateState}}}requestUpdateInternal(e,t,n){var r=!0;if(void 0!==e){var i=this.constructor;n=n||i.getPropertyOptions(e),i._valueHasChanged(this[e],t,n.hasChanged)?(this._changedProperties.has(e)||this._changedProperties.set(e,t),!0!==n.reflect||16&this._updateState||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(e,n))):r=!1}!this._hasRequestedUpdate&&r&&(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,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){b(o,r,i,a,s,"next",e)}function s(e){b(o,r,i,a,s,"throw",e)}a(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 _(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}x.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 E=e=>t=>"function"==typeof t?((e,t)=>(window.customElements.define(e,t),t))(e,t):((e,t)=>{var{kind:n,elements:r}=t;return{kind:n,elements:r,finisher(t){window.customElements.define(e,t)}}})(e,t),j=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?Object.assign(Object.assign({},t),{finisher(n){n.createProperty(t.key,e)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(n){n.createProperty(t.key,e)}};function k(e){return(t,n)=>void 0!==n?((e,t,n)=>{t.constructor.createProperty(n,e)})(e,t,n):j(e,t)}var S=e=>function(e){return k({attribute:!1,hasChanged:null==e?void 0:e.hasChanged})}(e);function P(e,t){return(n,r)=>{var i={get(){return this.renderRoot.querySelector(e)},enumerable:!0,configurable:!0};if(t){var o=void 0!==r?r:n.key,a="symbol"==typeof o?Symbol():"__".concat(o);i.get=function(){return void 0===this[a]&&(this[a]=this.renderRoot.querySelector(e)),this[a]}}return void 0!==r?A(i,n,r):C(i,n)}}function T(e){return(t,n)=>{var r={get(){var t,n=this;return(t=function*(){return yield n.updateComplete,n.renderRoot.querySelector(e)},function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(e){_(o,r,i,a,s,"next",e)}function s(e){_(o,r,i,a,s,"throw",e)}a(void 0)}))})()},enumerable:!0,configurable:!0};return void 0!==n?A(r,t,n):C(r,t)}}var A=(e,t,n)=>{Object.defineProperty(t,n,e)},C=(e,t)=>({kind:"method",placement:"prototype",key:t.key,descriptor:e});function R(e){return(t,n)=>void 0!==n?((e,t,n)=>{Object.assign(t[n],e)})(e,t,n):((e,t)=>Object.assign(Object.assign({},t),{finisher(n){Object.assign(n.prototype[t.key],e)}}))(e,t)}var I=Element.prototype,N=I.msMatchesSelector||I.webkitMatchesSelector;function L(e="",t=!1,n=""){return(r,i)=>{var o={get(){var r="slot".concat(e?"[name=".concat(e,"]"):":not([name])"),i=this.renderRoot.querySelector(r),o=i&&i.assignedNodes({flatten:t});return o&&n&&(o=o.filter(e=>e.nodeType===Node.ELEMENT_NODE&&(e.matches?e.matches(n):N.call(e,n)))),o},enumerable:!0,configurable:!0};return void 0!==i?A(o,r,i):C(o,r)}}
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 D=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,M=Symbol();class F{constructor(e,t){if(t!==M)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}get styleSheet(){return void 0===this._styleSheet&&(D?(this._styleSheet=new CSSStyleSheet,this._styleSheet.replaceSync(this.cssText)):this._styleSheet=null),this._styleSheet}toString(){return this.cssText}}var B=e=>new F(String(e),M),z=(e,...t)=>{var n=t.reduce((t,n,r)=>t+(e=>{if(e instanceof F)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."))})(n)+e[r+1],e[0]);return new F(n,M)};
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 q={};class U extends x{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,n)=>e.reduceRight((e,n)=>Array.isArray(n)?t(n,e):(e.add(n),e),n),n=t(e,new Set),r=[];n.forEach(e=>r.unshift(e)),this._styles=r}else this._styles=void 0===e?[]:[e];this._styles=this._styles.map(e=>{if(e instanceof CSSStyleSheet&&!D){var t=Array.prototype.slice.call(e.cssRules).reduce((e,t)=>e+t.cssText,"");return B(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?D?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!==q&&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 q}}U.finalized=!0,U.render=(e,t,n)=>{if(!n||"object"!=typeof n||!n.scopeName)throw new Error("The `scopeName` option is required.");var i=n.scopeName,o=c.a.has(t),a=f&&11===t.nodeType&&!!t.host,s=a&&!m.has(i),u=s?document.createDocumentFragment():t;if(Object(c.b)(e,u,Object.assign({templateFactory:h(i)},n)),s){var d=c.a.get(u);c.a.delete(u);var p=d.value instanceof l.a?d.value.template:void 0;g(i,u,p),Object(r.b)(t,t.firstChild),t.appendChild(u),c.a.set(t,d)}!o&&a&&window.ShadyCSS.styleElement(t.host)},U.shadowRootOptions={mode:"open"}},function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"g",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"j",(function(){return l})),n.d(t,"f",(function(){return d})),n.d(t,"i",(function(){return p})),n.d(t,"h",(function(){return f}));
40
- /*! *****************************************************************************
41
- Copyright (c) Microsoft Corporation.
42
-
43
- Permission to use, copy, modify, and/or distribute this software for any
44
- purpose with or without fee is hereby granted.
45
-
46
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
47
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
48
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
49
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
50
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
51
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
52
- PERFORMANCE OF THIS SOFTWARE.
53
- ***************************************************************************** */
54
- var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function c(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function u(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}Object.create;function l(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function d(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function p(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function f(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return B})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return j})),n.d(t,"d",(function(){return U})),n.d(t,"e",(function(){return Q})),n.d(t,"f",(function(){return G})),n.d(t,"g",(function(){return R})),n.d(t,"h",(function(){return I})),n.d(t,"i",(function(){return y})),n.d(t,"j",(function(){return T})),n.d(t,"k",(function(){return E})),n.d(t,"l",(function(){return C})),n.d(t,"m",(function(){return S})),n.d(t,"n",(function(){return P})),n.d(t,"o",(function(){return A})),n.d(t,"p",(function(){return d})),n.d(t,"q",(function(){return J})),n.d(t,"r",(function(){return x})),n.d(t,"s",(function(){return O})),n.d(t,"t",(function(){return h})),n.d(t,"u",(function(){return m})),n.d(t,"v",(function(){return v})),n.d(t,"w",(function(){return b})),n.d(t,"x",(function(){return K})),n.d(t,"y",(function(){return W})),n.d(t,"z",(function(){return X})),n.d(t,"A",(function(){return ee})),n.d(t,"B",(function(){return te})),n.d(t,"C",(function(){return V})),n.d(t,"D",(function(){return q})),n.d(t,"E",(function(){return f})),n.d(t,"F",(function(){return w})),n.d(t,"G",(function(){return u})),n.d(t,"H",(function(){return g})),n.d(t,"I",(function(){return $}));var r=n(20),i=n(4),o=n(1),a=n(139),s=n.n(a);n(129);function c(e,t,n,r){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var o={};n.fields.map((function(e){return c(o,e.name,e.value,r)})),e[t.value]=o}else if(function(e){return"Variable"===e.kind}(n)){var a=(r||{})[n.name.value];e[t.value]=a}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map((function(e){var n={};return c(n,t,e,r),n[t.value]}));else if(function(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return"NullValue"===e.kind}(n))throw new i.a(17);e[t.value]=null}}function u(e,t){var n=null;e.directives&&(n={},e.directives.forEach((function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach((function(r){var i=r.name,o=r.value;return c(n[e.name.value],i,o,t)}))})));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach((function(e){var n=e.name,i=e.value;return c(r,n,i,t)}))),d(e.name.value,r,n)}var l=["connection","include","skip","client","rest","export"];function d(e,t,n){if(n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i=t,o={};return r.forEach((function(e){o[e]=i[e]})),n.connection.key+"("+JSON.stringify(o)+")"}return n.connection.key}var a=e;if(t){var c=s()(t);a+="("+c+")"}return n&&Object.keys(n).forEach((function(e){-1===l.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?a+="@"+e+"("+JSON.stringify(n[e])+")":a+="@"+e)})),a}function p(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return c(n,r,i,t)})),n}return null}function f(e){return e.alias?e.alias.value:e.name.value}function h(e){return"Field"===e.kind}function v(e){return"InlineFragment"===e.kind}function m(e){return e&&"id"===e.type&&"boolean"==typeof e.generated}function g(e,t){return void 0===t&&(t=!1),Object(o.a)({type:"id",generated:t},"string"==typeof e?{id:e,typename:void 0}:e)}function b(e){return null!=e&&"object"==typeof e&&"json"===e.type}function y(e,t){if(e.directives&&e.directives.length){var n={};return e.directives.forEach((function(e){n[e.name.value]=p(e,t)})),n}return null}function w(e,t){return void 0===t&&(t={}),(n=e.directives,n?n.filter(_).map((function(e){var t=e.arguments;e.name.value,Object(i.b)(t&&1===t.length,14);var n=t[0];Object(i.b)(n.name&&"if"===n.name.value,15);var r=n.value;return Object(i.b)(r&&("Variable"===r.kind||"BooleanValue"===r.kind),16),{directive:e,ifArgument:n}})):[]).every((function(e){var n=e.directive,r=e.ifArgument,o=!1;return"Variable"===r.value.kind?(o=t[r.value.name.value],Object(i.b)(void 0!==o,13)):o=r.value.value,"skip"===n.name.value?!o:o}));var n}function O(e,t){return function(e){var t=[];return Object(r.c)(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function x(e){return e&&O(["client"],e)&&O(["export"],e)}function _(e){var t=e.name.value;return"skip"===t||"include"===t}function E(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw new i.a(11);"FragmentDefinition"===e.kind&&r.push(e)})),void 0===n&&(Object(i.b)(1===r.length,12),n=r[0].name.value),Object(o.a)(Object(o.a)({},e),{definitions:Object(o.i)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions)})}function j(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach((function(t){null!=t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function k(e){Object(i.b)(e&&"Document"===e.kind,2);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw new i.a(3);return e}));return Object(i.b)(t.length<=1,4),e}function S(e){return k(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function P(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&e.name})).map((function(e){return e.name.value}))[0]||null}function T(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function A(e){var t=S(e);return Object(i.b)(t&&"query"===t.operation,6),t}function C(e){var t;k(e);for(var n=0,r=e.definitions;n<r.length;n++){var o=r[n];if("OperationDefinition"===o.kind){var a=o.operation;if("query"===a||"mutation"===a||"subscription"===a)return o}"FragmentDefinition"!==o.kind||t||(t=o)}if(t)return t;throw new i.a(10)}function R(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function I(e){if(e&&e.variableDefinitions&&e.variableDefinitions.length){var t=e.variableDefinitions.filter((function(e){return e.defaultValue})).map((function(e){var t=e.variable,n=e.defaultValue,r={};return c(r,t.name,n),r}));return j.apply(void 0,Object(o.i)([{}],t))}return{}}function N(e,t,n){var r=0;return e.forEach((function(n,i){t.call(this,n,i,e)&&(e[r++]=n)}),n),e.length=r,e}var L={kind:"Field",name:{kind:"Name",value:"__typename"}};function D(e){return function e(t,n){return t.selectionSet.selections.every((function(t){return"FragmentSpread"===t.kind&&e(n[t.name.value],n)}))}(S(e)||function(e){Object(i.b)("Document"===e.kind,7),Object(i.b)(e.definitions.length<=1,8);var t=e.definitions[0];return Object(i.b)("FragmentDefinition"===t.kind,9),t}(e),R(T(e)))?null:e}function M(e){return function(t){return e.some((function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)}))}}function F(e,t){var n=Object.create(null),i=[],a=Object.create(null),s=[],c=D(Object(r.c)(t,{Variable:{enter:function(e,t,r){"VariableDefinition"!==r.kind&&(n[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&(e.some((function(e){return e.remove}))&&t.directives&&t.directives.some(M(e))))return t.arguments&&t.arguments.forEach((function(e){"Variable"===e.value.kind&&i.push({name:e.value.name.value})})),t.selectionSet&&function e(t){var n=[];return t.selections.forEach((function(t){(h(t)||v(t))&&t.selectionSet?e(t.selectionSet).forEach((function(e){return n.push(e)})):"FragmentSpread"===t.kind&&n.push(t)})),n}(t.selectionSet).forEach((function(e){s.push({name:e.name.value})})),null}},FragmentSpread:{enter:function(e){a[e.name.value]=!0}},Directive:{enter:function(t){if(M(e)(t))return null}}}));return c&&N(i,(function(e){return!n[e.name]})).length&&(c=function(e,t){var n=function(e){return function(t){return e.some((function(e){return t.value&&"Variable"===t.value.kind&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))}))}}(e);return D(Object(r.c)(t,{OperationDefinition:{enter:function(t){return Object(o.a)(Object(o.a)({},t),{variableDefinitions:t.variableDefinitions.filter((function(t){return!e.some((function(e){return e.name===t.variable.name.value}))}))})}},Field:{enter:function(t){if(e.some((function(e){return e.remove}))){var r=0;if(t.arguments.forEach((function(e){n(e)&&(r+=1)})),1===r)return null}}},Argument:{enter:function(e){if(n(e))return null}}}))}(i,c)),c&&N(s,(function(e){return!a[e.name]})).length&&(c=function(e,t){function n(t){if(e.some((function(e){return e.name===t.name.value})))return null}return D(Object(r.c)(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}(s,c)),c}function B(e){return Object(r.c)(k(e),{SelectionSet:{enter:function(e,t,n){if(!n||"OperationDefinition"!==n.kind){var r=e.selections;if(r)if(!r.some((function(e){return h(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var i=n;if(!(h(i)&&i.directives&&i.directives.some((function(e){return"export"===e.name.value}))))return Object(o.a)(Object(o.a)({},e),{selections:Object(o.i)(r,[L])})}}}}})}var z={test:function(e){var t="connection"===e.name.value;return t&&(!e.arguments||e.arguments.some((function(e){return"key"===e.name.value}))),t}};function q(e){return F([z],k(e))}function U(e){return"query"===C(e).operation?e:Object(r.c)(e,{OperationDefinition:{enter:function(e){return Object(o.a)(Object(o.a)({},e),{operation:"query"})}}})}function V(e){k(e);var t=F([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=Object(r.c)(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every((function(e){return h(e)&&"__typename"===e.name.value})))return null}}})),t}var Q="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),H=Object.prototype.toString;function G(e){return function e(t,n){switch(H.call(t)){case"[object Array]":if(n.has(t))return n.get(t);var r=t.slice(0);return n.set(t,r),r.forEach((function(t,i){r[i]=e(t,n)})),r;case"[object Object]":if(n.has(t))return n.get(t);var i=Object.create(Object.getPrototypeOf(t));return n.set(t,i),Object.keys(t).forEach((function(r){i[r]=e(t[r],n)})),i;default:return t}}(e,new Map)}function Y(t){return(void 0!==e?"production":"development")===t}function K(){return!0===Y("production")}function W(){return!0===Y("test")}function $(e){try{return e()}catch(e){console.error&&console.error(e)}}function J(e){return e.errors&&e.errors.length}function X(e){if((!0===Y("development")||W())&&!("function"==typeof Symbol&&"string"==typeof Symbol("")))return function e(t){return Object.freeze(t),Object.getOwnPropertyNames(t).forEach((function(n){null===t[n]||"object"!=typeof t[n]&&"function"!=typeof t[n]||Object.isFrozen(t[n])||e(t[n])})),t}(e);return e}var Z=Object.prototype.hasOwnProperty;function ee(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return te(e)}function te(e){var t=e[0]||{},n=e.length;if(n>1){var r=[];t=ie(t,r);for(var i=1;i<n;++i)t=re(t,e[i],r)}return t}function ne(e){return null!==e&&"object"==typeof e}function re(e,t,n){return ne(t)&&ne(e)?(Object.isExtensible&&!Object.isExtensible(e)&&(e=ie(e,n)),Object.keys(t).forEach((function(r){var i=t[r];if(Z.call(e,r)){var o=e[r];i!==o&&(e[r]=re(ie(o,n),i,n))}else e[r]=i})),e):t}function ie(e,t){return null!==e&&"object"==typeof e&&t.indexOf(e)<0&&(e=Array.isArray(e)?e.slice(0):Object(o.a)({__proto__:Object.getPrototypeOf(e)},e),t.push(e)),e}Object.create({})}).call(this,n(95))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"})},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var r=n(1),i=Object.setPrototypeOf,o=void 0===i?function(e,t){return e.__proto__=t,e}:i,a=function(e){function t(n){void 0===n&&(n="Invariant Violation");var r=e.call(this,"number"==typeof n?"Invariant Violation: "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name="Invariant Violation",o(r,t.prototype),r}return Object(r.d)(t,e),t}(Error);function s(e,t){if(!e)throw new a(t)}function c(e){return function(){return console[e].apply(console,arguments)}}!function(e){e.warn=c("warn"),e.error=c("error")}(s||(s={}));var u={env:{}};if("object"==typeof e)u=e;else try{Function("stub","process = stub")(u)}catch(e){}}).call(this,n(95))},function(e,t,n){"use strict";n.d(t,"f",(function(){return a.a})),n.d(t,"h",(function(){return s.b})),n.d(t,"a",(function(){return r.b})),n.d(t,"b",(function(){return r.c})),n.d(t,"c",(function(){return r.d})),n.d(t,"d",(function(){return r.e})),n.d(t,"e",(function(){return r.g})),n.d(t,"g",(function(){return c}));var r=n(10);
55
- /**
56
- * @license
57
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
58
- * This code may only be used under the BSD style license found at
59
- * http://polymer.github.io/LICENSE.txt
60
- * The complete set of authors may be found at
61
- * http://polymer.github.io/AUTHORS.txt
62
- * The complete set of contributors may be found at
63
- * http://polymer.github.io/CONTRIBUTORS.txt
64
- * Code distributed by Google as part of the polymer project is also
65
- * subject to an additional IP rights grant found at
66
- * http://polymer.github.io/PATENTS.txt
67
- */var i=new class{handleAttributeExpressions(e,t,n,i){var o=t[0];return"."===o?new r.f(e,t.slice(1),n).parts:"@"===o?[new r.d(e,t.slice(1),i.eventContext)]:"?"===o?[new r.c(e,t.slice(1),n)]:new r.a(e,t,n).parts}handleTextExpression(e){return new r.e(e)}},o=n(27),a=n(18),s=(n(12),n(11));n(22),n(21),n(31),n(6);
68
- /**
69
- * @license
70
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
71
- * This code may only be used under the BSD style license found at
72
- * http://polymer.github.io/LICENSE.txt
73
- * The complete set of authors may be found at
74
- * http://polymer.github.io/AUTHORS.txt
75
- * The complete set of contributors may be found at
76
- * http://polymer.github.io/CONTRIBUTORS.txt
77
- * Code distributed by Google as part of the polymer project is also
78
- * subject to an additional IP rights grant found at
79
- * http://polymer.github.io/PATENTS.txt
80
- */
81
- "undefined"!=typeof window&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.4.1");var c=(e,...t)=>new o.b(e,t,"html",i)},function(e,t,n){"use strict";n.d(t,"f",(function(){return r})),n.d(t,"g",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return u})),n.d(t,"c",(function(){return l})),n.d(t,"e",(function(){return d}));
82
- /**
83
- * @license
84
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
85
- * This code may only be used under the BSD style license found at
86
- * http://polymer.github.io/LICENSE.txt
87
- * The complete set of authors may be found at
88
- * http://polymer.github.io/AUTHORS.txt
89
- * The complete set of contributors may be found at
90
- * http://polymer.github.io/CONTRIBUTORS.txt
91
- * Code distributed by Google as part of the polymer project is also
92
- * subject to an additional IP rights grant found at
93
- * http://polymer.github.io/PATENTS.txt
94
- */
95
- var r="{{lit-".concat(String(Math.random()).slice(2),"}}"),i="\x3c!--".concat(r,"--\x3e"),o=new RegExp("".concat(r,"|").concat(i)),a="$lit$";class s{constructor(e,t){this.parts=[],this.element=t;for(var n=[],i=[],s=document.createTreeWalker(t.content,133,null,!1),u=0,p=-1,f=0,{strings:h,values:{length:v}}=e;f<v;){var m=s.nextNode();if(null!==m){if(p++,1===m.nodeType){if(m.hasAttributes()){for(var g=m.attributes,{length:b}=g,y=0,w=0;w<b;w++)c(g[w].name,a)&&y++;for(;y-- >0;){var O=h[f],x=d.exec(O)[2],_=x.toLowerCase()+a,E=m.getAttribute(_);m.removeAttribute(_);var j=E.split(o);this.parts.push({type:"attribute",index:p,name:x,strings:j}),f+=j.length-1}}"TEMPLATE"===m.tagName&&(i.push(m),s.currentNode=m.content)}else if(3===m.nodeType){var k=m.data;if(k.indexOf(r)>=0){for(var S=m.parentNode,P=k.split(o),T=P.length-1,A=0;A<T;A++){var C=void 0,R=P[A];if(""===R)C=l();else{var I=d.exec(R);null!==I&&c(I[2],a)&&(R=R.slice(0,I.index)+I[1]+I[2].slice(0,-a.length)+I[3]),C=document.createTextNode(R)}S.insertBefore(C,m),this.parts.push({type:"node",index:++p})}""===P[T]?(S.insertBefore(l(),m),n.push(m)):m.data=P[T],f+=T}}else if(8===m.nodeType)if(m.data===r){var N=m.parentNode;null!==m.previousSibling&&p!==u||(p++,N.insertBefore(l(),m)),u=p,this.parts.push({type:"node",index:p}),null===m.nextSibling?m.data="":(n.push(m),p--),f++}else for(var L=-1;-1!==(L=m.data.indexOf(r,L+1));)this.parts.push({type:"node",index:-1}),f++}else s.currentNode=i.pop()}for(var D of n)D.parentNode.removeChild(D)}}var c=(e,t)=>{var n=e.length-t.length;return n>=0&&e.slice(n)===t},u=e=>-1!==e.index,l=()=>document.createComment(""),d=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"})},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return u}));var r=n(0),i=n(76),o=n(113),a=n(114);
96
- /**
97
- * @license Copyright © HatioLab Inc. All rights reserved.
98
- */
99
- i.a.use(o.a).use(a.a).init({fallbackLng:"en",debug:!0,ns:["translations"],defaultNS:"translations",keySeparator:!1,interpolation:{prefix:"{",suffix:"}"},load:"languageOnly",backend:{loadPath:"/{ns}/{lng}.json"},detection:{order:["cookie"],lookupCookie:"i18next",caches:["cookie"],excludeCacheFor:["cimode"],cookieOptions:{path:"/",sameSite:"strict"}}});var s=i.a;function c(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}
100
- /**
101
- * @license Copyright © HatioLab Inc. All rights reserved.
102
- */
103
- var u=e=>t=>class extends t{connectedCallback(){var t=this,n=function(){var n,r=(n=function*(){t.languageUpdated&&t.languageUpdated(e),t.requestUpdate()},function(){var e=this,t=arguments;return new Promise((function(r,i){var o=n.apply(e,t);function a(e){c(o,r,i,a,s,"next",e)}function s(e){c(o,r,i,a,s,"throw",e)}a(void 0)}))});return function(){return r.apply(this,arguments)}}();e.on("initialized",n),e.on("languageChanged",n),e.store.on("added",n),this.__i18next_callback__=n,super.connectedCallback&&super.connectedCallback()}disconnectedCallback(){super.connectedCallback&&super.connectedCallback(),e.store.off("initialized",this.__i18next_callback__),e.store.off("languageChanged",this.__i18next_callback__),e.store.off("added",this.__i18next_callback__)}}
104
- /**
105
- * @license Copyright © HatioLab Inc. All rights reserved.
106
- */;class l extends(u(s)(r.a)){static get properties(){return{msgid:{attribute:!0}}}updated(){this.renderRoot.textContent=s.t(this.msgid)}}customElements.define("i18n-msg",l)},function(e,t,n){"use strict";(function(e){n.d(t,"e",(function(){return r})),n.d(t,"p",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"o",(function(){return c})),n.d(t,"q",(function(){return u})),n.d(t,"t",(function(){return l})),n.d(t,"i",(function(){return d})),n.d(t,"r",(function(){return p})),n.d(t,"s",(function(){return f})),n.d(t,"k",(function(){return h})),n.d(t,"m",(function(){return v})),n.d(t,"j",(function(){return m})),n.d(t,"l",(function(){return g})),n.d(t,"g",(function(){return b})),n.d(t,"f",(function(){return y})),n.d(t,"h",(function(){return w})),n.d(t,"n",(function(){return O})),n.d(t,"b",(function(){return x}));var r="1.13.1",i="object"==typeof self&&self.self===self&&self||"object"==typeof e&&e.global===e&&e||Function("return this")()||{},o=Array.prototype,a=Object.prototype,s="undefined"!=typeof Symbol?Symbol.prototype:null,c=o.push,u=o.slice,l=a.toString,d=a.hasOwnProperty,p="undefined"!=typeof ArrayBuffer,f="undefined"!=typeof DataView,h=Array.isArray,v=Object.keys,m=Object.create,g=p&&ArrayBuffer.isView,b=isNaN,y=isFinite,w=!{toString:null}.propertyIsEnumerable("toString"),O=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],x=Math.pow(2,53)-1}).call(this,n(37))},function(e,t,n){"use strict";n.d(t,"h",(function(){return u})),n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return p})),n.d(t,"e",(function(){return f})),n.d(t,"c",(function(){return h})),n.d(t,"f",(function(){return v})),n.d(t,"g",(function(){return m})),n.d(t,"d",(function(){return b}));var r=n(18),i=n(12),o=n(11),a=n(31),s=n(27),c=n(6),u=e=>null===e||!("object"==typeof e||"function"==typeof e),l=e=>Array.isArray(e)||!(!e||!e[Symbol.iterator]);class d{constructor(e,t,n){this.dirty=!0,this.element=e,this.name=t,this.strings=n,this.parts=[];for(var r=0;r<n.length-1;r++)this.parts[r]=this._createPart()}_createPart(){return new p(this)}_getValue(){var e=this.strings,t=e.length-1,n=this.parts;if(1===t&&""===e[0]&&""===e[1]){var r=n[0].value;if("symbol"==typeof r)return String(r);if("string"==typeof r||!l(r))return r}for(var i="",o=0;o<t;o++){i+=e[o];var a=n[o];if(void 0!==a){var s=a.value;if(u(s)||!l(s))i+="string"==typeof s?s:String(s);else for(var c of s)i+="string"==typeof c?c:String(c)}}return i+=e[t]}commit(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}class p{constructor(e){this.value=void 0,this.committer=e}setValue(e){e===o.a||u(e)&&e===this.value||(this.value=e,Object(r.b)(e)||(this.committer.dirty=!0))}commit(){for(;Object(r.b)(this.value);){var e=this.value;this.value=o.a,e(this)}this.value!==o.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(c.c)()),this.endNode=e.appendChild(Object(c.c)())}insertAfterNode(e){this.startNode=e,this.endNode=e.nextSibling}appendIntoPart(e){e.__insert(this.startNode=Object(c.c)()),e.__insert(this.endNode=Object(c.c)())}insertAfterPart(e){e.__insert(this.startNode=Object(c.c)()),this.endNode=e.endNode,e.endNode=this.startNode}setValue(e){this.__pendingValue=e}commit(){if(null!==this.startNode.parentNode){for(;Object(r.b)(this.__pendingValue);){var e=this.__pendingValue;this.__pendingValue=o.a,e(this)}var t=this.__pendingValue;t!==o.a&&(u(t)?t!==this.value&&this.__commitText(t):t instanceof s.b?this.__commitTemplateResult(t):t instanceof Node?this.__commitNode(t):l(t)?this.__commitIterable(t):t===o.b?(this.value=o.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,n="string"==typeof(e=null==e?"":e)?e:String(e);t===this.endNode.previousSibling&&3===t.nodeType?t.data=n:this.__commitNode(document.createTextNode(n)),this.value=e}__commitTemplateResult(e){var t=this.options.templateFactory(e);if(this.value instanceof a.a&&this.value.template===t)this.value.update(e.values);else{var n=new a.a(t,e.processor,this.options),r=n._clone();n.update(e.values),this.__commitNode(r),this.value=n}}__commitIterable(e){Array.isArray(this.value)||(this.value=[],this.clear());var t,n=this.value,r=0;for(var i of e)void 0===(t=n[r])&&(t=new f(this.options),n.push(t),0===r?t.appendIntoPart(this):t.insertAfterPart(n[r-1])),t.setValue(i),t.commit(),r++;r<n.length&&(n.length=r,this.clear(t&&t.endNode))}clear(e=this.startNode){Object(i.b)(this.startNode.parentNode,e.nextSibling,this.endNode)}}class h{constructor(e,t,n){if(this.value=void 0,this.__pendingValue=void 0,2!==n.length||""!==n[0]||""!==n[1])throw new Error("Boolean attributes can only contain a single expression");this.element=e,this.name=t,this.strings=n}setValue(e){this.__pendingValue=e}commit(){for(;Object(r.b)(this.__pendingValue);){var e=this.__pendingValue;this.__pendingValue=o.a,e(this)}if(this.__pendingValue!==o.a){var t=!!this.__pendingValue;this.value!==t&&(t?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=t),this.__pendingValue=o.a}}}class v extends d{constructor(e,t,n){super(e,t,n),this.single=2===n.length&&""===n[0]&&""===n[1]}_createPart(){return new m(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}class m extends p{}var g=!1;(()=>{try{var e={get capture(){return g=!0,!1}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){}})();class b{constructor(e,t,n){this.value=void 0,this.__pendingValue=void 0,this.element=e,this.eventName=t,this.eventContext=n,this.__boundHandleEvent=e=>this.handleEvent(e)}setValue(e){this.__pendingValue=e}commit(){for(;Object(r.b)(this.__pendingValue);){var e=this.__pendingValue;this.__pendingValue=o.a,e(this)}if(this.__pendingValue!==o.a){var t=this.__pendingValue,n=this.value,i=null==t||null!=n&&(t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive),a=null!=t&&(null==n||i);i&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),a&&(this.__options=y(t),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=t,this.__pendingValue=o.a}}handleEvent(e){"function"==typeof this.value?this.value.call(this.eventContext||this.element,e):this.value.handleEvent(e)}}var y=e=>e&&(g?{capture:e.capture,passive:e.passive,once:e.once}:e.capture)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));
107
- /**
108
- * @license
109
- * Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
110
- * This code may only be used under the BSD style license found at
111
- * http://polymer.github.io/LICENSE.txt
112
- * The complete set of authors may be found at
113
- * http://polymer.github.io/AUTHORS.txt
114
- * The complete set of contributors may be found at
115
- * http://polymer.github.io/CONTRIBUTORS.txt
116
- * Code distributed by Google as part of the polymer project is also
117
- * subject to an additional IP rights grant found at
118
- * http://polymer.github.io/PATENTS.txt
119
- */
120
- var r={},i={}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o}));
121
- /**
122
- * @license
123
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
124
- * This code may only be used under the BSD style license found at
125
- * http://polymer.github.io/LICENSE.txt
126
- * The complete set of authors may be found at
127
- * http://polymer.github.io/AUTHORS.txt
128
- * The complete set of contributors may be found at
129
- * http://polymer.github.io/CONTRIBUTORS.txt
130
- * Code distributed by Google as part of the polymer project is also
131
- * subject to an additional IP rights grant found at
132
- * http://polymer.github.io/PATENTS.txt
133
- */
134
- var r="undefined"!=typeof window&&null!=window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,i=(e,t,n=null,r=null)=>{for(;t!==n;){var i=t.nextSibling;e.insertBefore(t,r),t=i}},o=(e,t,n=null)=>{for(;t!==n;){var r=t.nextSibling;e.removeChild(t),t=r}}},function(e,t,n){"use strict";n.r(t),n.d(t,"ApolloLink",(function(){return y})),n.d(t,"concat",(function(){return b})),n.d(t,"createOperation",(function(){return p})),n.d(t,"empty",(function(){return v})),n.d(t,"execute",(function(){return w})),n.d(t,"from",(function(){return m})),n.d(t,"fromError",(function(){return d})),n.d(t,"fromPromise",(function(){return l})),n.d(t,"makePromise",(function(){return u})),n.d(t,"split",(function(){return g})),n.d(t,"toPromise",(function(){return c}));var r=n(14);n.d(t,"Observable",(function(){return r.a}));var i=n(4),o=n(1),a=n(2);n.d(t,"getOperationName",(function(){return a.n}));!function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}Object(o.d)(t,e)}(Error);function s(e){return e.request.length<=1}function c(e){var t=!1;return new Promise((function(n,r){e.subscribe({next:function(e){t||(t=!0,n(e))},error:r})}))}var u=c;function l(e){return new r.a((function(t){e.then((function(e){t.next(e),t.complete()})).catch(t.error.bind(t))}))}function d(e){return new r.a((function(t){t.error(e)}))}function p(e,t){var n=Object(o.a)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n="function"==typeof e?Object(o.a)({},n,e(n)):Object(o.a)({},n,e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return Object(o.a)({},n)}}),Object.defineProperty(t,"toKey",{enumerable:!1,value:function(){return function(e){var t=e.query,n=e.variables,r=e.operationName;return JSON.stringify([r,t,n])}(t)}}),t}function f(e,t){return t?t(e):r.a.of()}function h(e){return"function"==typeof e?new y(e):e}function v(){return new y((function(){return r.a.of()}))}function m(e){return 0===e.length?v():e.map(h).reduce((function(e,t){return e.concat(t)}))}function g(e,t,n){var i=h(t),o=h(n||new y(f));return s(i)&&s(o)?new y((function(t){return e(t)?i.request(t)||r.a.of():o.request(t)||r.a.of()})):new y((function(t,n){return e(t)?i.request(t,n)||r.a.of():o.request(t,n)||r.a.of()}))}var b=function(e,t){var n=h(e);if(s(n))return n;var i=h(t);return s(i)?new y((function(e){return n.request(e,(function(e){return i.request(e)||r.a.of()}))||r.a.of()})):new y((function(e,t){return n.request(e,(function(e){return i.request(e,t)||r.a.of()}))||r.a.of()}))},y=function(){function e(e){e&&(this.request=e)}return e.prototype.split=function(t,n,r){return this.concat(g(t,n,r||new e(f)))},e.prototype.concat=function(e){return b(this,e)},e.prototype.request=function(e,t){throw new i.a(1)},e.empty=v,e.from=m,e.split=g,e.execute=w,e}();function w(e,t){return e.request(p(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?Object(a.n)(t.query):""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];if(t.indexOf(o)<0)throw new i.a(2)}return e}(t))))||r.a.of()}},function(e,t,n){"use strict";var r=n(140),i=n.n(r).a;t.a=i},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a}));var r=n(84),i=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();Object(r.a)(i);var o=function(){function e(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();function a(e){return null!=e&&"string"==typeof e.kind}Object(r.a)(o)},function(e,t){e.exports=scene},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));
135
- /**
136
- * @license
137
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
138
- * This code may only be used under the BSD style license found at
139
- * http://polymer.github.io/LICENSE.txt
140
- * The complete set of authors may be found at
141
- * http://polymer.github.io/AUTHORS.txt
142
- * The complete set of contributors may be found at
143
- * http://polymer.github.io/CONTRIBUTORS.txt
144
- * Code distributed by Google as part of the polymer project is also
145
- * subject to an additional IP rights grant found at
146
- * http://polymer.github.io/PATENTS.txt
147
- */
148
- var r=new WeakMap,i=e=>(...t)=>{var n=e(...t);return r.set(n,!0),n},o=e=>"function"==typeof e&&r.has(e)},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"b",(function(){return u}));var r=n(67),i=n(16),o={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},a=Object.freeze({});function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,s=void 0,c=Array.isArray(e),l=[e],d=-1,p=[],f=void 0,h=void 0,v=void 0,m=[],g=[],b=e;do{var y=++d===l.length,w=y&&0!==p.length;if(y){if(h=0===g.length?void 0:m[m.length-1],f=v,v=g.pop(),w){if(c)f=f.slice();else{for(var O={},x=0,_=Object.keys(f);x<_.length;x++){var E=_[x];O[E]=f[E]}f=O}for(var j=0,k=0;k<p.length;k++){var S=p[k][0],P=p[k][1];c&&(S-=j),c&&null===P?(f.splice(S,1),j++):f[S]=P}}d=s.index,l=s.keys,p=s.edits,c=s.inArray,s=s.prev}else{if(h=v?c?d:l[d]:void 0,null==(f=v?v[h]:b))continue;v&&m.push(h)}var T,A=void 0;if(!Array.isArray(f)){if(!Object(i.c)(f))throw new Error("Invalid AST Node: ".concat(Object(r.a)(f),"."));var C=u(t,f.kind,y);if(C){if((A=C.call(t,f,h,v,m,g))===a)break;if(!1===A){if(!y){m.pop();continue}}else if(void 0!==A&&(p.push([h,A]),!y)){if(!Object(i.c)(A)){m.pop();continue}f=A}}}if(void 0===A&&w&&p.push([h,f]),y)m.pop();else s={inArray:c,index:d,keys:l,edits:p,prev:s},l=(c=Array.isArray(f))?f:null!==(T=n[f.kind])&&void 0!==T?T:[],d=-1,p=[],v&&g.push(v),v=f}while(void 0!==s);return 0!==p.length&&(b=p[p.length-1][1]),b}function c(e){var t=new Array(e.length);return{enter:function(n){for(var r=0;r<e.length;r++)if(null==t[r]){var i=u(e[r],n.kind,!1);if(i){var o=i.apply(e[r],arguments);if(!1===o)t[r]=n;else if(o===a)t[r]=a;else if(void 0!==o)return o}}},leave:function(n){for(var r=0;r<e.length;r++)if(null==t[r]){var i=u(e[r],n.kind,!0);if(i){var o=i.apply(e[r],arguments);if(o===a)t[r]=a;else if(void 0!==o&&!1!==o)return o}}else t[r]===n&&(t[r]=null)}}}function u(e,t,n){var r=e[t];if(r){if(!n&&"function"==typeof r)return r;var i=n?r.leave:r.enter;if("function"==typeof i)return i}else{var o=n?e.leave:e.enter;if(o){if("function"==typeof o)return o;var a=o[t];if("function"==typeof a)return a}}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}));var r=n(6);
149
- /**
150
- * @license
151
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
152
- * This code may only be used under the BSD style license found at
153
- * http://polymer.github.io/LICENSE.txt
154
- * The complete set of authors may be found at
155
- * http://polymer.github.io/AUTHORS.txt
156
- * The complete set of contributors may be found at
157
- * http://polymer.github.io/CONTRIBUTORS.txt
158
- * Code distributed by Google as part of the polymer project is also
159
- * subject to an additional IP rights grant found at
160
- * http://polymer.github.io/PATENTS.txt
161
- */function i(e){var t=o.get(e.type);void 0===t&&(t={stringsArray:new WeakMap,keyString:new Map},o.set(e.type,t));var n=t.stringsArray.get(e.strings);if(void 0!==n)return n;var i=e.strings.join(r.f);return void 0===(n=t.keyString.get(i))&&(n=new r.a(e,e.getTemplateElement()),t.keyString.set(i,n)),t.stringsArray.set(e.strings,n),n}var o=new Map},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var r=n(12),i=n(10),o=n(21),a=new WeakMap,s=(e,t,n)=>{var s=a.get(t);void 0===s&&(Object(r.b)(t,t.firstChild),a.set(t,s=new i.e(Object.assign({templateFactory:o.b},n))),s.appendInto(t)),s.setValue(e),s.commit()}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";n.d(t,"f",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return l})),n.d(t,"h",(function(){return d})),n.d(t,"i",(function(){return p})),n.d(t,"g",(function(){return f})),n.d(t,"j",(function(){return h}));var r=n(28),i=n(29),o="UPDATE_PAGE",a="UPDATE_CONTEXT",s="UPDATE_ACTIVE_PAGE",c="REGISTER_NAVIGATION_CALLBACK",u="UNREGISTER_NAVIGATION_CALLBACK",l="",d=(e,t)=>{t?history.replaceState(history.state,"",e):history.pushState({},"",e),window.dispatchEvent(new Event("popstate"))},p=({pathname:e,search:t})=>n=>{var{path:r}=Object(i.f)(e),o=decodeURIComponent(r).match(/\/([^\/]+)\/*([^\/]*)/)||[],a=o[1]||l,s=o[2],c=new URLSearchParams(t),u={};c.forEach((e,t)=>{u[t]=e}),n(f(a,s,u))},f=(e,t,n)=>i=>{var a=(e=>{var t=r.a.getState().app.modules;if(t)for(var n=t.length-1;n>=0;n--){var i=t[n],o=i.route&&i.route(e);if(o)return o}})(e);e===a||0!=a.indexOf("/")?i({type:o,page:a,resourceId:t,params:n}):i(p({pathname:a,params:n}))},h=e=>{var t=document.createElement("a");t.setAttribute("href",e),document.body.appendChild(t),t.click(),document.body.removeChild(t)}},function(e,t,n){var r=n(100),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c}));var r=n(12),i=n(6),o=window.trustedTypes&&trustedTypes.createPolicy("lit-html",{createHTML:e=>e}),a=" ".concat(i.f," ");class s{constructor(e,t,n,r){this.strings=e,this.values=t,this.type=n,this.processor=r}getHTML(){for(var e=this.strings.length-1,t="",n=!1,r=0;r<e;r++){var o=this.strings[r],s=o.lastIndexOf("\x3c!--");n=(s>-1||n)&&-1===o.indexOf("--\x3e",s+1);var c=i.e.exec(o);t+=null===c?o+(n?a:i.g):o.substr(0,c.index)+c[1]+c[2]+i.b+c[3]+i.f}return t+=this.strings[e]}getTemplateElement(){var e=document.createElement("template"),t=this.getHTML();return void 0!==o&&(t=o.createHTML(t)),e.innerHTML=t,e}}class c extends s{getHTML(){return"<svg>".concat(super.getHTML(),"</svg>")}getTemplateElement(){var e=super.getTemplateElement(),t=e.content,n=t.firstChild;return t.removeChild(n),Object(r.c)(t,n.firstChild),e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return N}));var r=n(62);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var s="function"==typeof Symbol&&Symbol.observable||"@@observable",c=function(){return Math.random().toString(36).substring(7).split("").join(".")},u={INIT:"@@redux/INIT"+c(),REPLACE:"@@redux/REPLACE"+c(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+c()}};function l(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function p(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"==typeof i?i(n,r,e):t(i)}}}}var f=p();f.withExtraArgument=p;var h=f,v=n(132),m=n(33),g=n(29);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O={baseUrl:location.origin,contextPath:Object(g.f)(location.pathname).contextPath,domains:[]},x=(e=O,t)=>{switch(t.type){case m.d:return y(y({},e),{},{modules:t.modules});case m.b:return y(y({},e),{},{baseUrl:t.baseUrl});case m.c:return y(y({},e),{},{contextPath:t.contextPath});case m.a:return y(y({},e),{},{domains:t.domains,domain:t.domain});default:return e}},_=n(25),E=n(130),j=n(135),k=n.n(j);function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){T(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var A,C=document.querySelector('meta[name="application-name"]');C&&(A=C.content);var R={page:"",resourceId:"",params:{},activePage:null,context:{},callbacks:[]},I=(e=R,t)=>{var n;switch(t.type){case _.f:return P(P({},e),{},{page:t.page,resourceId:t.resourceId,params:t.params});case _.e:var r=null===(n=t.context)||void 0===n?void 0:n.title,i="object"==typeof r?r.text:r;return Object(E.a)({title:A+(i?" - ".concat(k()(i)):"")}),P(P({},e),{},{context:t.context||e.activePage&&e.activePage.context||{}});case _.d:return P(P({},e),{},{activePage:t.activePage});case _.b:return P(P({},e),{},{callbacks:[...e.callbacks,t.callback]});case _.c:return P(P({},e),{},{callbacks:e.callbacks.filter(e=>e!==t.callback)});default:return e}},N=function e(t,n,r){var i;if("function"==typeof n&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(a(0));if("function"==typeof n&&void 0===r&&(r=n,n=void 0),void 0!==r){if("function"!=typeof r)throw new Error(a(1));return r(e)(t,n)}if("function"!=typeof t)throw new Error(a(2));var o=t,c=n,d=[],p=d,f=!1;function h(){p===d&&(p=d.slice())}function v(){if(f)throw new Error(a(3));return c}function m(e){if("function"!=typeof e)throw new Error(a(4));if(f)throw new Error(a(5));var t=!0;return h(),p.push(e),function(){if(t){if(f)throw new Error(a(6));t=!1,h();var n=p.indexOf(e);p.splice(n,1),d=null}}}function g(e){if(!l(e))throw new Error(a(7));if(void 0===e.type)throw new Error(a(8));if(f)throw new Error(a(9));try{f=!0,c=o(c,e)}finally{f=!1}for(var t=d=p,n=0;n<t.length;n++){(0,t[n])()}return e}function b(e){if("function"!=typeof e)throw new Error(a(10));o=e,g({type:u.REPLACE})}function y(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(a(11));function n(){e.next&&e.next(v())}return n(),{unsubscribe:t(n)}}})[s]=function(){return this},e}return g({type:u.INIT}),(i={dispatch:g,subscribe:m,getState:v,replaceReducer:b})[s]=y,i}(e=>e,(window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||d)(Object(v.a)((function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];0,"function"==typeof e[i]&&(n[i]=e[i])}var o,s=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:u.INIT}))throw new Error(a(12));if(void 0===n(void 0,{type:u.PROBE_UNKNOWN_ACTION()}))throw new Error(a(13))}))}(n)}catch(e){o=e}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var r=!1,i={},c=0;c<s.length;c++){var u=s[c],l=n[u],d=e[u],p=l(d,t);if(void 0===p){t&&t.type;throw new Error(a(14))}i[u]=p,r=r||p!==d}return(r=r||s.length!==Object.keys(e).length)?i:e}})),function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(a(15))},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},s=t.map((function(e){return e(i)}));return r=d.apply(void 0,s)(n.dispatch),o(o({},n),{},{dispatch:r})}}}(h)));N.addReducers({app:x,route:I})},function(e,t,n){"use strict";function r(){document.cancelFullScreen?document.cancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen()}function i(e,t,n){document.fullscreen||document.mozFullScreen||document.webkitIsFullScreen||document.msFullscreenElement?r():function(e,t,n){var r=e.style.width,i=e.style.height;function o(a){document.fullscreen||document.mozFullScreen||document.webkitIsFullScreen||document.msFullscreenElement?(e.style.width="100%",e.style.height="100%",t&&t()):(["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"].forEach(e=>document.removeEventListener(e,o)),e.style.width=r,e.style.height=i,n&&n())}["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"].forEach(e=>document.addEventListener(e,o)),e.requestFullScreen?e.requestFullScreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen()}(e,t,n)}n.d(t,"d",(function(){return r})),n.d(t,"o",(function(){return i})),n.d(t,"b",(function(){return a.a})),n.d(t,"c",(function(){return c.a})),n.d(t,"l",(function(){return u})),n.d(t,"j",(function(){return p})),n.d(t,"h",(function(){return f})),n.d(t,"i",(function(){return h})),n.d(t,"g",(function(){return _})),n.d(t,"a",(function(){return E})),n.d(t,"f",(function(){return j})),n.d(t,"e",(function(){return k})),n.d(t,"k",(function(){return S.a})),n.d(t,"n",(function(){return T})),n.d(t,"m",(function(){return A}));var o=n(98),a=n.n(o),s=n(54),c=n.n(s);n(134);function u(e){return new Promise(t=>setTimeout(t,e))}var l="Unknown OS";-1!=navigator.appVersion.indexOf("Win")?l="Windows":-1!=navigator.appVersion.indexOf("Macintosh")?l="Mac":-1!=navigator.appVersion.indexOf("Android")?l="Android":(-1!=navigator.appVersion.indexOf("iPad")||-1!=navigator.appVersion.indexOf("iPhone"))&&(l="iOS");var d="iOS"===l||"Android"===l;function p(){return d}function f(){return"iOS"===l}function h(){return"Mac"===l}class v{constructor(e){}}class m{constructor(e){}toJSON(){return"$".concat(this.value)}}var g=["__args","__alias","__aliasFor","__variables","__directives","__on","__typeName"];function b(e){if(e instanceof v)return e.value;if(e instanceof m)return"$".concat(e.value);if("object"!=typeof e||null===e)return JSON.stringify(e);if(Array.isArray(e))return"[".concat(e.map(e=>b(e)).join(", "),"]");var t=Object.keys(e).map(t=>"".concat(t,": ").concat(b(e[t]))).join(", ");return"{".concat(t,"}")}function y(e){var t=[];for(var n in e)t.push("".concat(n,": ").concat(b(e[n])));return t.join(", ")}function w(e){var t=[];for(var n in e)t.push("$".concat(n,": ").concat(e[n]));return t.join(", ")}function O(e){var t=Object.keys(e)[0],n=e[t];if("boolean"==typeof n)return t;if("object"==typeof n){var r=[];for(var i in n){var o=b(n[i]).replace(/"/g,"");r.push("".concat(i,": ").concat(o))}return"".concat(t,"(").concat(r.join(", "),")")}throw new Error("Unsupported type for directive: ".concat(typeof n,". Types allowed: object, boolean.\n")+"Offending object: ".concat(JSON.stringify(e)))}function x(e,t){return-1==g.indexOf(e)&&-1==t.indexOf(e)}var _={EnumType:v,VariableType:m,configFields:g,stringify:b,buildArgs:y,buildVariables:w,buildDirectives:O,jsonToGraphQLQuery:function(e,t={}){if(!e||"object"!=typeof e)throw new Error("query object not specified");if(0==Object.keys(e).length)throw new Error("query object has no data");t.ignoreFields instanceof Array||(t.ignoreFields=[]);var n=[];!function e(t,n,r,i){Object.keys(t).filter(e=>x(e,i.ignoreFields)).forEach(o=>{var a=t[o];if("object"==typeof a){if(Array.isArray(a)&&!(a=a.find(e=>e&&"object"==typeof e)))return void r.push(["".concat(o),n]);var s=Object.keys(a).filter(e=>x(e,i.ignoreFields)).length>0,c="object"==typeof a.__args,u="object"==typeof a.__directives,l="object"==typeof a.__on,d="".concat(o);if("string"==typeof a.__aliasFor&&(d="".concat(d,": ").concat(a.__aliasFor)),"object"==typeof a.__variables)d="".concat(d," (").concat(w(a.__variables),")");else if(c||u){var p,f;if(u){var h=Object.keys(a.__directives).length;if(h>1)throw new Error("Too many directives. The object/key "+"'".concat(Object.keys(a)[0],"' had ").concat(h," directives, ")+"but only 1 directive per object/key is supported at this time.");f="@".concat(O(a.__directives))}c&&(p="(".concat(y(a.__args),")"));var v=u&&c?" ":"";d="".concat(d," ").concat(f||"").concat(v).concat(p||"")}if("string"==typeof a.__alias&&(d="".concat(a.__alias,": ").concat(d)),r.push([d+(s||l?" {":""),n]),e(a,n+1,r,i),l)(a.__on instanceof Array?a.__on:[a.__on]).forEach(t=>{var o=t.__typeName;r.push(["... on ".concat(o," {"),n+1]),e(t,n+2,r,i),r.push(["}",n+1])});(s||l)&&r.push(["}",n])}else(!0===i.includeFalsyKeys||a)&&r.push(["".concat(o),n])})}(e,0,n,t);var r="";return n.forEach(([e,n])=>{t.pretty?(r&&(r+="\n"),r+=function(e){return Array(4*e+1).join(" ")}(n)+e):(r&&(r+=" "),r+=e)}),r}};
162
- /**
163
- * @license Copyright © HatioLab Inc. All rights reserved.
164
- */"ontouchstart"in window||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints;class E{static set(e,t){var n=e=>{t&&!t()||(e.preventDefault(),e.stopPropagation())},r=n=>{t&&!t()||e.classList.add("candrop")},i=n=>{t&&!t()||e.classList.remove("candrop")};["dragenter","dragover","dragleave","drop"].forEach(t=>{e.addEventListener(t,n,!1)}),["dragenter","dragover"].forEach(t=>{e.addEventListener(t,r,!1)}),["dragleave","drop"].forEach(t=>{e.addEventListener(t,i,!1)}),e.addEventListener("drop",n=>{if(!t||t()){var r=n.dataTransfer.files;e.dispatchEvent(new CustomEvent("file-drop",{detail:[...r]}))}},!1)}}function j(e){var t=new RegExp("(/(".concat("domain|business",")/([^/]+))?(/?.*)")),n=e.match(t);return{contextPath:n[1]||"",prefix:n[2]||"",domain:n[3]||"",path:n[4]}}function k({lowerCase:e=!0,upperCase:t=!0,digit:n=!0,specialCharacter:r=!0,allowRepeat:i=!1,useTightPattern:o=!0,useLoosePattern:a=!1,tightCharacterLength:s=8,looseCharacterLength:c=15}={}){var u=o?[e?"(?=.*[a-z])":"",t?"(?=.*[A-Z])":"",n?"(?=.*\\d)":"",r?"(?=.*[!@#$%^&*()])":"",i?"":"(?!.*(.)\\1(?=\\1{1,}))",".{".concat(s,",}")]:[],l=a?[".{".concat(c,",}")]:[],d=["^",...u,u.length&&l.length?"|":"",...l,"$"];return new RegExp(d.join(""))}var S=n(126);function P(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}var T=e=>{var t=!1;return()=>{var n;return t||(t=(n=function*(){try{return yield e()}finally{t=!1}},function(){var e=this,t=arguments;return new Promise((function(r,i){var o=n.apply(e,t);function a(e){P(o,r,i,a,s,"next",e)}function s(e){P(o,r,i,a,s,"throw",e)}a(void 0)}))})()),t}},A=!1;try{var C=Object.defineProperty({},"passive",{get:function(){A=!0}});window.addEventListener("testPassive",null,C),window.removeEventListener("testPassive",null,C)}catch(e){}},function(e,t,n){"use strict";n.r(t),n.d(t,"checkFetcher",(function(){return u})),n.d(t,"createSignalIfSupported",(function(){return l})),n.d(t,"fallbackHttpConfig",(function(){return a})),n.d(t,"parseAndCheckHttpResponse",(function(){return c})),n.d(t,"selectHttpOptionsAndBody",(function(){return d})),n.d(t,"selectURI",(function(){return f})),n.d(t,"serializeFetchParameter",(function(){return p})),n.d(t,"throwServerError",(function(){return s}));var r=n(1),i=n(81),o=n(4),a={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},s=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},c=function(e){return function(t){return t.text().then((function(e){try{return JSON.parse(e)}catch(r){var n=r;return n.name="ServerParseError",n.response=t,n.statusCode=t.status,n.bodyText=e,Promise.reject(n)}})).then((function(n){return t.status>=300&&s(t,n,"Response not successful: Received status code "+t.status),Array.isArray(n)||n.hasOwnProperty("data")||n.hasOwnProperty("errors")||s(t,n,"Server response was missing for query '"+(Array.isArray(e)?e.map((function(e){return e.operationName})):e.operationName)+"'."),n}))}},u=function(e){if(!e&&"undefined"==typeof fetch){throw"undefined"==typeof window&&"node-fetch",new o.a(1)}},l=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}},d=function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var a=Object(r.a)({},t.options,{headers:t.headers,credentials:t.credentials}),s=t.http;n.forEach((function(e){a=Object(r.a)({},a,e.options,{headers:Object(r.a)({},a.headers,e.headers)}),e.credentials&&(a.credentials=e.credentials),s=Object(r.a)({},s,e.http)}));var c=e.operationName,u=e.extensions,l=e.variables,d=e.query,p={operationName:c,variables:l};return s.includeExtensions&&(p.extensions=u),s.includeQuery&&(p.query=Object(i.print)(d)),{options:a,body:p}},p=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=new o.a(2);throw r.parseError=e,r}return n},f=function(e,t){var n=e.getContext().uri;return n||("function"==typeof t?t(e):t||"/graphql")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(12),i=n(6);
165
- /**
166
- * @license
167
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
168
- * This code may only be used under the BSD style license found at
169
- * http://polymer.github.io/LICENSE.txt
170
- * The complete set of authors may be found at
171
- * http://polymer.github.io/AUTHORS.txt
172
- * The complete set of contributors may be found at
173
- * http://polymer.github.io/CONTRIBUTORS.txt
174
- * Code distributed by Google as part of the polymer project is also
175
- * subject to an additional IP rights grant found at
176
- * http://polymer.github.io/PATENTS.txt
177
- */
178
- class o{constructor(e,t,n){this.__parts=[],this.template=e,this.processor=t,this.options=n}update(e){var t=0;for(var n of this.__parts)void 0!==n&&n.setValue(e[t]),t++;for(var r of this.__parts)void 0!==r&&r.commit()}_clone(){for(var e,t=r.a?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),n=[],o=this.template.parts,a=document.createTreeWalker(t,133,null,!1),s=0,c=0,u=a.nextNode();s<o.length;)if(e=o[s],Object(i.d)(e)){for(;c<e.index;)c++,"TEMPLATE"===u.nodeName&&(n.push(u),a.currentNode=u.content),null===(u=a.nextNode())&&(a.currentNode=n.pop(),u=a.nextNode());if("node"===e.type){var l=this.processor.handleTextExpression(this.options);l.insertAfterNode(u.previousSibling),this.__parts.push(l)}else this.__parts.push(...this.processor.handleAttributeExpressions(u,e.name,e.strings,this.options));s++}else this.__parts.push(void 0),s++;return r.a&&(document.adoptNode(t),customElements.upgrade(t)),t}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(5);
179
- /**
180
- * @license
181
- * Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
182
- * This code may only be used under the BSD style license found at
183
- * http://polymer.github.io/LICENSE.txt
184
- * The complete set of authors may be found at
185
- * http://polymer.github.io/AUTHORS.txt
186
- * The complete set of contributors may be found at
187
- * http://polymer.github.io/CONTRIBUTORS.txt
188
- * Code distributed by Google as part of the polymer project is also
189
- * subject to an additional IP rights grant found at
190
- * http://polymer.github.io/PATENTS.txt
191
- */class i{constructor(e){this.classes=new Set,this.changed=!1,this.element=e;var t=(e.getAttribute("class")||"").split(/\s+/);for(var n of t)this.classes.add(n)}add(e){this.classes.add(e),this.changed=!0}remove(e){this.classes.delete(e),this.changed=!0}commit(){if(this.changed){var e="";this.classes.forEach(t=>e+=t+" "),this.element.setAttribute("class",e)}}}var o=new WeakMap,a=Object(r.f)(e=>t=>{if(!(t instanceof r.a)||t instanceof r.e||"class"!==t.committer.name||t.committer.parts.length>1)throw new Error("The `classMap` directive must be used in the `class` attribute and must be the only part in the attribute.");var{committer:n}=t,{element:a}=n,s=o.get(t);void 0===s&&(a.setAttribute("class",n.strings.join(" ")),o.set(t,s=new Set));var c=a.classList||new i(a);for(var u in s.forEach(t=>{t in e||(c.remove(t),s.delete(t))}),e){var l=e[u];l!=s.has(u)&&(l?(c.add(u),s.add(u)):(c.remove(u),s.delete(u)))}"function"==typeof c.commit&&c.commit()})},function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"e",(function(){return s}));var r="UPDATE_MODULES",i="UPDATE_BASE_URL",o="UPDATE_CONTEXT_PATH",a="SET-DOMAINS",s=(e,t)=>(n,r)=>{n({type:a,domains:e,domain:t})}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return u}));var i=[],o=i.forEach,a=i.slice;function s(e){return o.call(a.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}function c(){return"function"==typeof XMLHttpRequest||"object"===("undefined"==typeof XMLHttpRequest?"undefined":r(XMLHttpRequest))}function u(e){return function(e){return!!e&&"function"==typeof e.then}(e)?e:Promise.resolve(e)}},function(e,t,n){"use strict";n.r(t),n.d(t,"PROCESS",(function(){return qt})),n.d(t,"store",(function(){return u.a})),n.d(t,"UPDATE_MODULES",(function(){return s.d})),n.d(t,"UPDATE_BASE_URL",(function(){return s.b})),n.d(t,"UPDATE_CONTEXT_PATH",(function(){return s.c})),n.d(t,"SET_DOMAINS",(function(){return s.a})),n.d(t,"updateDomains",(function(){return s.e})),n.d(t,"UPDATE_PAGE",(function(){return c.f})),n.d(t,"UPDATE_CONTEXT",(function(){return c.e})),n.d(t,"UPDATE_ACTIVE_PAGE",(function(){return c.d})),n.d(t,"REGISTER_NAVIGATION_CALLBACK",(function(){return c.b})),n.d(t,"UNREGISTER_NAVIGATION_CALLBACK",(function(){return c.c})),n.d(t,"HOMEPAGE",(function(){return c.a})),n.d(t,"navigate",(function(){return c.h})),n.d(t,"navigateWithSilence",(function(){return c.i})),n.d(t,"loadPage",(function(){return c.g})),n.d(t,"route",(function(){return c.j})),n.d(t,"PageView",(function(){return x.a})),n.d(t,"client",(function(){return rt})),n.d(t,"subscribe",(function(){return at})),n.d(t,"clientSettingStore",(function(){return ht})),n.d(t,"notificationStore",(function(){return vt})),n.d(t,"InfiniteScrollable",(function(){return Et})),n.d(t,"OopsNote",(function(){return kt})),n.d(t,"OopsSpinner",(function(){return Pt})),n.d(t,"OopsProgress",(function(){return Ct})),n.d(t,"CustomAlert",(function(){return Dt})),n.d(t,"CONTEXT_KEY",(function(){return Ft})),n.d(t,"gqlContext",(function(){return Bt})),n.d(t,"buildGqlContext",(function(){return zt}));n(232);var r,i=n(0),o=n(77),a=n(131),s=n(33),c=n(25),u=n(28);var l,d,p,f=Object(i.b)(r||(l=["\n :host {\n display: grid;\n\n grid-template-rows: var(--app-grid-template-rows, auto 1fr auto);\n grid-template-columns: var(--app-grid-template-columns, auto 1fr auto);\n grid-template-areas: var(--app-grid-template-area, 'header header header' 'nav main aside' 'nav footer aside');\n grid-gap: var(--app-grid-gap, 0em);\n\n width: 100vw;\n height: 100vh;\n }\n\n header-bar {\n grid-area: header;\n }\n\n nav-bar {\n grid-area: nav;\n }\n\n main {\n grid-area: main;\n\n overflow: hidden;\n\n display: flex;\n flex-direction: row;\n }\n\n aside-bar {\n grid-area: aside;\n }\n\n footer-bar {\n grid-area: footer;\n }\n\n main * {\n flex: 1;\n }\n\n main *:not([active]) {\n display: none;\n }\n\n [hidden] {\n display: none;\n }\n\n snack-bar {\n z-index: 1000;\n }\n\n /* Wide layout */\n @media (min-width: 460px) {\n }\n\n @media print {\n :host {\n width: 100%;\n height: 100%;\n min-height: 100vh;\n }\n }\n"],d||(d=l.slice(0)),r=Object.freeze(Object.defineProperties(l,{raw:{value:Object.freeze(d)}})))),h=n(45),v=n(29);function m(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class w extends(Object(o.a)(u.a)(i.a)){static get properties(){return{_contextPath:String,_page:String,_pages:Object,_resourceId:String,_params:Object,_callbacks:Array,_activePage:Object,_context:Object,_modules:Array}}static get styles(){return[h.c,f]}render(){var e=this._params||{},t=this._context&&this._context.fullbleed||e.fullbleed&&"Y"==e.fullbleed,n=this._context&&this._context.widebleed||e.widebleed&&"Y"==e.widebleed;return Object(i.e)(p||(p=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n <header-bar ?fullbleed=","></header-bar>\n\n <nav-bar ?fullbleed=","></nav-bar>\n\n <main></main>\n\n <aside-bar ?fullbleed=","></aside-bar>\n\n <footer-bar ?fullbleed=","></footer-bar>\n\n <snack-bar></snack-bar>\n "])),t,t||n,t||n,t)}constructor(){super()}connectedCallback(){super.connectedCallback(),Promise.all([n.e(16),n.e(10)]).then(n.bind(null,1411)).then(e=>{var t=e.modules;this.dispatchEvent(new Event("lifecycle-bootstrap-begin")),t.forEach((e,t)=>{try{e.bootstrap&&e.bootstrap()}catch(n){console.error("[".concat(t," BOOTSTRAP ERROR -").concat(e.name,"]"),n)}}),this.dispatchEvent(new Event("lifecycle-bootstrap-finish")),this._moduleInitialized=!0,u.a.dispatch({type:s.d,modules:t}),Object(a.a)((e,t)=>{var{contextPath:n}=Object(v.f)(e.pathname);this._contextPath!==n&&u.a.dispatch({type:s.c,contextPath:n}),u.a.dispatch(Object(c.i)(e)),this._callbacks&&this._callbacks.forEach(n=>{try{n.call(this,e,t)}catch(e){console.error(e)}})})}),this.setBase()}routeToPage(){if(this.shadowRoot.querySelectorAll("main > .page[active]").forEach(e=>{e.removeAttribute("active")}),this._activePage=this.shadowRoot.querySelector("main > .page[data-page=".concat(this._page,"]")),!this._activePage){var e=this._pages[this._page];if(e){var t=this.shadowRoot.querySelector("main"),n=document.createElement(e);n.setAttribute("class","page"),n.setAttribute("data-page",this._page),t.appendChild(n),this._activePage=n}}this._activePage&&(this._activePage.setAttribute("active",!0),this._activePage.setAttribute("context-path",this._contextPath),this._activePage.lifecycle=b(b({},this._activePage.lifecycle||{}),{},{active:!0,params:this._params,resourceId:this._resourceId,page:this._page})),u.a.dispatch({type:c.d,activePage:this._activePage})}updated(e){var t,n=this;return(t=function*(){e.has("_modules")&&n._readyPageList(),(e.has("_page")||e.has("_resourceId")||e.has("_params"))&&n.routeToPage(),e.has("_contextPath")&&n.setBase()},function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(e){m(o,r,i,a,s,"next",e)}function s(e){m(o,r,i,a,s,"throw",e)}a(void 0)}))})()}shouldUpdate(){return this._moduleInitialized}stateChanged(e){this._page=e.route.page,this._params=e.route.params,this._resourceId=e.route.resourceId,this._callbacks=e.route.callbacks,this._context=e.route.context,this._modules=e.app.modules,this._contextPath=e.app.contextPath}_readyPageList(){var e=[...this._modules].reverse();this._pages={},e.forEach(e=>{e.routes&&e.routes.forEach(e=>{this._pages[e.page]||(this._pages[e.page]=e.tagname)})})}setBase(){document.querySelector("base").setAttribute("href",this._contextPath?"".concat(this._contextPath,"/"):"/")}}window.customElements.define("things-app",w);var O,x=n(124),_=n(1),E=n(2),j=n(129),k=n(14),S=n(13),P=n(83),T=n(4),A=n(20);function C(e){return e<7}!function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(O||(O={}));var R=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(_.d)(t,e),t.prototype[P.default]=function(){return this},t.prototype["@@observable"]=function(){return this},t}(k.a);function I(e){return Array.isArray(e)&&e.length>0}var N,L=function(e){function t(n){var r,i,o=n.graphQLErrors,a=n.networkError,s=n.errorMessage,c=n.extraInfo,u=e.call(this,s)||this;return u.graphQLErrors=o||[],u.networkError=a||null,u.message=s||(i="",I((r=u).graphQLErrors)&&r.graphQLErrors.forEach((function(e){var t=e?e.message:"Error message not found.";i+="GraphQL error: "+t+"\n"})),r.networkError&&(i+="Network error: "+r.networkError.message+"\n"),i=i.replace(/\n$/,"")),u.extraInfo=c,u.__proto__=t.prototype,u}return Object(_.d)(t,e),t}(Error);!function(e){e[e.normal=1]="normal",e[e.refetch=2]="refetch",e[e.poll=3]="poll"}(N||(N={}));var D=function(e){function t(t){var n=t.queryManager,r=t.options,i=t.shouldSubscribe,o=void 0===i||i,a=e.call(this,(function(e){return a.onSubscribe(e)}))||this;a.observers=new Set,a.subscriptions=new Set,a.isTornDown=!1,a.options=r,a.variables=r.variables||{},a.queryId=n.generateQueryId(),a.shouldSubscribe=o;var s=Object(E.m)(r.query);return a.queryName=s&&s.name&&s.name.value,a.queryManager=n,a}return Object(_.d)(t,e),t.prototype.result=function(){var e=this;return new Promise((function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:n},i=e.subscribe(r)}))},t.prototype.currentResult=function(){var e=this.getCurrentResult();return void 0===e.data&&(e.data={}),e},t.prototype.getCurrentResult=function(){if(this.isTornDown){var e=this.lastResult;return{data:!this.lastError&&e&&e.data||void 0,error:this.lastError,loading:!1,networkStatus:O.error}}var t,n,r,i=this.queryManager.getCurrentQueryResult(this),o=i.data,a=i.partial,s=this.queryManager.queryStore.get(this.queryId),c=this.options.fetchPolicy,u="network-only"===c||"no-cache"===c;if(s){var l=s.networkStatus;if(n=s,void 0===(r=this.options.errorPolicy)&&(r="none"),n&&(n.networkError||"none"===r&&I(n.graphQLErrors)))return{data:void 0,loading:!1,networkStatus:l,error:new L({graphQLErrors:s.graphQLErrors,networkError:s.networkError})};s.variables&&(this.options.variables=Object(_.a)(Object(_.a)({},this.options.variables),s.variables),this.variables=this.options.variables),t={data:o,loading:C(l),networkStatus:l},s.graphQLErrors&&"all"===this.options.errorPolicy&&(t.errors=s.graphQLErrors)}else{var d=u||a&&"cache-only"!==c;t={data:o,loading:d,networkStatus:d?O.loading:O.ready}}return a||this.updateLastResult(Object(_.a)(Object(_.a)({},t),{stale:!1})),Object(_.a)(Object(_.a)({},t),{partial:a})},t.prototype.isDifferentFromLastResult=function(e){var t=this.lastResultSnapshot;return!(t&&e&&t.networkStatus===e.networkStatus&&t.stale===e.stale&&Object(j.a)(t.data,e.data))},t.prototype.getLastResult=function(){return this.lastResult},t.prototype.getLastError=function(){return this.lastError},t.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){var e=this.queryManager.queryStore.get(this.queryId);e&&(e.networkError=null,e.graphQLErrors=[])},t.prototype.refetch=function(e){var t=this.options.fetchPolicy;return"cache-only"===t?Promise.reject(new T.a(1)):("no-cache"!==t&&"cache-and-network"!==t&&(t="network-only"),Object(j.a)(this.variables,e)||(this.variables=Object(_.a)(Object(_.a)({},this.variables),e)),Object(j.a)(this.options.variables,this.variables)||(this.options.variables=Object(_.a)(Object(_.a)({},this.options.variables),this.variables)),this.queryManager.fetchQuery(this.queryId,Object(_.a)(Object(_.a)({},this.options),{fetchPolicy:t}),N.refetch))},t.prototype.fetchMore=function(e){var t=this;Object(T.b)(e.updateQuery,2);var n=Object(_.a)(Object(_.a)({},e.query?e:Object(_.a)(Object(_.a)(Object(_.a)({},this.options),e),{variables:Object(_.a)(Object(_.a)({},this.variables),e.variables)})),{fetchPolicy:"network-only"}),r=this.queryManager.generateQueryId();return this.queryManager.fetchQuery(r,n,N.normal,this.queryId).then((function(i){return t.updateQuery((function(t){return e.updateQuery(t,{fetchMoreResult:i.data,variables:n.variables})})),t.queryManager.stopQuery(r),i}),(function(e){throw t.queryManager.stopQuery(r),e}))},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery((function(e,t){var i=t.variables;return r(e,{subscriptionData:n,variables:i})}))},error:function(t){e.onError&&e.onError(t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){var t=this.options.fetchPolicy;this.options=Object(_.a)(Object(_.a)({},this.options),e),e.pollInterval?this.startPolling(e.pollInterval):0===e.pollInterval&&this.stopPolling();var n=e.fetchPolicy;return this.setVariables(this.options.variables,t!==n&&("cache-only"===t||"standby"===t||"network-only"===n),e.fetchResults)},t.prototype.setVariables=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=!0),this.isTornDown=!1,e=e||this.variables,!t&&Object(j.a)(e,this.variables)?this.observers.size&&n?this.result():Promise.resolve():(this.variables=this.options.variables=e,this.observers.size?this.queryManager.fetchQuery(this.queryId,this.options):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,n=t.getQueryWithPreviousResult(this.queryId),r=n.previousResult,i=n.variables,o=n.document,a=Object(E.I)((function(){return e(r,{variables:i})}));a&&(t.dataStore.markUpdateQueryResult(o,i,a),t.broadcastQueries())},t.prototype.stopPolling=function(){this.queryManager.stopPollingQuery(this.queryId),this.options.pollInterval=void 0},t.prototype.startPolling=function(e){B(this),this.options.pollInterval=e,this.queryManager.startPollingQuery(this.options,this.queryId)},t.prototype.updateLastResult=function(e){var t=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:Object(E.f)(e),t},t.prototype.onSubscribe=function(e){var t=this;try{var n=e._subscription._observer;n&&!n.error&&(n.error=M)}catch(e){}var r=!this.observers.size;return this.observers.add(e),e.next&&this.lastResult&&e.next(this.lastResult),e.error&&this.lastError&&e.error(this.lastError),r&&this.setUpQuery(),function(){t.observers.delete(e)&&!t.observers.size&&t.tearDownQuery()}},t.prototype.setUpQuery=function(){var e=this,t=this.queryManager,n=this.queryId;this.shouldSubscribe&&t.addObservableQuery(n,this),this.options.pollInterval&&(B(this),t.startPollingQuery(this.options,n));var r=function(t){e.updateLastResult(Object(_.a)(Object(_.a)({},e.lastResult),{errors:t.graphQLErrors,networkStatus:O.error,loading:!1})),F(e.observers,"error",e.lastError=t)};t.observeQuery(n,this.options,{next:function(n){if(e.lastError||e.isDifferentFromLastResult(n)){var r=e.updateLastResult(n),i=e.options,o=i.query,a=i.variables,s=i.fetchPolicy;t.transform(o).hasClientExports?t.getLocalState().addExportedVariables(o,a).then((function(i){var a=e.variables;e.variables=e.options.variables=i,!n.loading&&r&&"cache-only"!==s&&t.transform(o).serverQuery&&!Object(j.a)(a,i)?e.refetch():F(e.observers,"next",n)})):F(e.observers,"next",n)}},error:r}).catch(r)},t.prototype.tearDownQuery=function(){var e=this.queryManager;this.isTornDown=!0,e.stopPollingQuery(this.queryId),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),e.removeObservableQuery(this.queryId),e.stopQuery(this.queryId),this.observers.clear()},t}(R);function M(e){}function F(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function B(e){var t=e.options.fetchPolicy;Object(T.b)("cache-first"!==t&&"cache-only"!==t,3)}var z=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initMutation=function(e,t,n){this.store[e]={mutation:t,variables:n||{},loading:!0,error:null}},e.prototype.markMutationError=function(e,t){var n=this.store[e];n&&(n.loading=!1,n.error=t)},e.prototype.markMutationResult=function(e){var t=this.store[e];t&&(t.loading=!1,t.error=null)},e.prototype.reset=function(){this.store={}},e}(),q=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initQuery=function(e){var t=this.store[e.queryId];Object(T.b)(!t||t.document===e.document||Object(j.a)(t.document,e.document),19);var n,r=!1,i=null;e.storePreviousVariables&&t&&t.networkStatus!==O.loading&&(Object(j.a)(t.variables,e.variables)||(r=!0,i=t.variables)),n=r?O.setVariables:e.isPoll?O.poll:e.isRefetch?O.refetch:O.loading;var o=[];t&&t.graphQLErrors&&(o=t.graphQLErrors),this.store[e.queryId]={document:e.document,variables:e.variables,previousVariables:i,networkError:null,graphQLErrors:o,networkStatus:n,metadata:e.metadata},"string"==typeof e.fetchMoreForQueryId&&this.store[e.fetchMoreForQueryId]&&(this.store[e.fetchMoreForQueryId].networkStatus=O.fetchMore)},e.prototype.markQueryResult=function(e,t,n){this.store&&this.store[e]&&(this.store[e].networkError=null,this.store[e].graphQLErrors=I(t.errors)?t.errors:[],this.store[e].previousVariables=null,this.store[e].networkStatus=O.ready,"string"==typeof n&&this.store[n]&&(this.store[n].networkStatus=O.ready))},e.prototype.markQueryError=function(e,t,n){this.store&&this.store[e]&&(this.store[e].networkError=t,this.store[e].networkStatus=O.error,"string"==typeof n&&this.markQueryResultClient(n,!0))},e.prototype.markQueryResultClient=function(e,t){var n=this.store&&this.store[e];n&&(n.networkError=null,n.previousVariables=null,t&&(n.networkStatus=O.ready))},e.prototype.stopQuery=function(e){delete this.store[e]},e.prototype.reset=function(e){var t=this;Object.keys(this.store).forEach((function(n){e.indexOf(n)<0?t.stopQuery(n):t.store[n].networkStatus=O.loading}))},e}();var U=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=Object(E.A)(t.resolvers,e)})):this.resolvers=Object(E.A)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,r=e.context,i=e.variables,o=e.onlyRunForcedResolvers,a=void 0!==o&&o;return Object(_.b)(this,void 0,void 0,(function(){return Object(_.e)(this,(function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,a).then((function(e){return Object(_.a)(Object(_.a)({},n),{data:e.result})}))]:[2,n]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return Object(E.s)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return this.resolvers?Object(E.C)(e):e},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.cache;return Object(_.a)(Object(_.a)({},e),{cache:t,getCacheKey:function(e){if(t.config)return t.config.dataIdFromObject(e);Object(T.b)(!1,6)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),Object(_.b)(this,void 0,void 0,(function(){return Object(_.e)(this,(function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return Object(_.a)(Object(_.a)({},t),e.exportedVariables)}))]:[2,Object(_.a)({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return Object(A.c)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return A.a}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Object(E.d)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,r,i,o){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),Object(_.b)(this,void 0,void 0,(function(){var a,s,c,u,l,d,p,f,h;return Object(_.e)(this,(function(v){var m;return a=Object(E.l)(e),s=Object(E.j)(e),c=Object(E.g)(s),u=a.operation,l=u?(m=u).charAt(0).toUpperCase()+m.slice(1):"Query",p=(d=this).cache,f=d.client,h={fragmentMap:c,context:Object(_.a)(Object(_.a)({},n),{cache:p,client:f}),variables:r,fragmentMatcher:i,defaultOperationType:l,exportedVariables:{},onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(a.selectionSet,t,h).then((function(e){return{result:e,exportedVariables:h.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,n){return Object(_.b)(this,void 0,void 0,(function(){var r,i,o,a,s,c=this;return Object(_.e)(this,(function(u){return r=n.fragmentMap,i=n.context,o=n.variables,a=[t],s=function(e){return Object(_.b)(c,void 0,void 0,(function(){var s,c;return Object(_.e)(this,(function(u){return Object(E.F)(e,o)?Object(E.t)(e)?[2,this.resolveField(e,t,n).then((function(t){var n;void 0!==t&&a.push(((n={})[Object(E.E)(e)]=t,n))}))]:(Object(E.v)(e)?s=e:(s=r[e.name.value],Object(T.b)(s,7)),s&&s.typeCondition&&(c=s.typeCondition.name.value,n.fragmentMatcher(t,c,i))?[2,this.resolveSelectionSet(s.selectionSet,t,n).then((function(e){a.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(s)).then((function(){return Object(E.B)(a)}))]}))}))},e.prototype.resolveField=function(e,t,n){return Object(_.b)(this,void 0,void 0,(function(){var r,i,o,a,s,c,u,l,d,p=this;return Object(_.e)(this,(function(f){return r=n.variables,i=e.name.value,o=Object(E.E)(e),a=i!==o,s=t[o]||t[i],c=Promise.resolve(s),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(u=t.__typename||n.defaultOperationType,(l=this.resolvers&&this.resolvers[u])&&(d=l[a?i:o])&&(c=Promise.resolve(d(t,Object(E.b)(e,r),n.context,{field:e,fragmentMap:n.fragmentMap})))),[2,c.then((function(t){return void 0===t&&(t=s),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=t)}))})),e.selectionSet?null==t?t:Array.isArray(t)?p.resolveSubSelectedArray(e,t,n):e.selectionSet?p.resolveSelectionSet(e.selectionSet,t,n):void 0:t}))]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,n){var r=this;return Promise.all(t.map((function(t){return null===t?null:Array.isArray(t)?r.resolveSubSelectedArray(e,t,n):e.selectionSet?r.resolveSelectionSet(e.selectionSet,t,n):void 0})))},e}();function V(e){var t=new Set,n=null;return new R((function(r){return t.add(r),n=n||e.subscribe({next:function(e){t.forEach((function(t){return t.next&&t.next(e)}))},error:function(e){t.forEach((function(t){return t.error&&t.error(e)}))},complete:function(){t.forEach((function(e){return e.complete&&e.complete()}))}}),function(){t.delete(r)&&!t.size&&n&&(n.unsubscribe(),n=null)}}))}var Q=Object.prototype.hasOwnProperty,H=function(){function e(e){var t=e.link,n=e.queryDeduplication,r=void 0!==n&&n,i=e.store,o=e.onBroadcast,a=void 0===o?function(){}:o,s=e.ssrMode,c=void 0!==s&&s,u=e.clientAwareness,l=void 0===u?{}:u,d=e.localState,p=e.assumeImmutableResults;this.mutationStore=new z,this.queryStore=new q,this.clientAwareness={},this.idCounter=1,this.queries=new Map,this.fetchQueryRejectFns=new Map,this.transformCache=new(E.e?WeakMap:Map),this.inFlightLinkObservables=new Map,this.pollingInfoByQueryId=new Map,this.link=t,this.queryDeduplication=r,this.dataStore=i,this.onBroadcast=a,this.clientAwareness=l,this.localState=d||new U({cache:i.getCache()}),this.ssrMode=c,this.assumeImmutableResults=!!p}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.fetchQueryRejectFns.forEach((function(e){e(new T.a(8))}))},e.prototype.mutate=function(e){var t=e.mutation,n=e.variables,r=e.optimisticResponse,i=e.updateQueries,o=e.refetchQueries,a=void 0===o?[]:o,s=e.awaitRefetchQueries,c=void 0!==s&&s,u=e.update,l=e.errorPolicy,d=void 0===l?"none":l,p=e.fetchPolicy,f=e.context,h=void 0===f?{}:f;return Object(_.b)(this,void 0,void 0,(function(){var e,o,s,l=this;return Object(_.e)(this,(function(f){switch(f.label){case 0:return Object(T.b)(t,9),Object(T.b)(!p||"no-cache"===p,10),e=this.generateQueryId(),t=this.transform(t).document,this.setQuery(e,(function(){return{document:t}})),n=this.getVariables(t,n),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,n,h)]:[3,2];case 1:n=f.sent(),f.label=2;case 2:return o=function(){var e={};return i&&l.queries.forEach((function(t,n){var r=t.observableQuery;if(r){var o=r.queryName;o&&Q.call(i,o)&&(e[n]={updater:i[o],query:l.queryStore.get(n)})}})),e},this.mutationStore.initMutation(e,t,n),this.dataStore.markMutationInit({mutationId:e,document:t,variables:n,updateQueries:o(),update:u,optimisticResponse:r}),this.broadcastQueries(),s=this,[2,new Promise((function(i,l){var f,v;s.getObservableFromLink(t,Object(_.a)(Object(_.a)({},h),{optimisticResponse:r}),n,!1).subscribe({next:function(r){Object(E.q)(r)&&"none"===d?v=new L({graphQLErrors:r.errors}):(s.mutationStore.markMutationResult(e),"no-cache"!==p&&s.dataStore.markMutationResult({mutationId:e,result:r,document:t,variables:n,updateQueries:o(),update:u}),f=r)},error:function(t){s.mutationStore.markMutationError(e,t),s.dataStore.markMutationComplete({mutationId:e,optimisticResponse:r}),s.broadcastQueries(),s.setQuery(e,(function(){return{document:null}})),l(new L({networkError:t}))},complete:function(){if(v&&s.mutationStore.markMutationError(e,v),s.dataStore.markMutationComplete({mutationId:e,optimisticResponse:r}),s.broadcastQueries(),v)l(v);else{"function"==typeof a&&(a=a(f));var t=[];I(a)&&a.forEach((function(e){if("string"==typeof e)s.queries.forEach((function(n){var r=n.observableQuery;r&&r.queryName===e&&t.push(r.refetch())}));else{var n={query:e.query,variables:e.variables,fetchPolicy:"network-only"};e.context&&(n.context=e.context),t.push(s.query(n))}})),Promise.all(c?t:[]).then((function(){s.setQuery(e,(function(){return{document:null}})),"ignore"===d&&f&&Object(E.q)(f)&&delete f.errors,i(f)}))}}})}))]}}))}))},e.prototype.fetchQuery=function(e,t,n,r){return Object(_.b)(this,void 0,void 0,(function(){var i,o,a,s,c,u,l,d,p,f,h,v,m,g,b,y,w,O,x=this;return Object(_.e)(this,(function(j){switch(j.label){case 0:return i=t.metadata,o=void 0===i?null:i,a=t.fetchPolicy,s=void 0===a?"cache-first":a,c=t.context,u=void 0===c?{}:c,l=this.transform(t.query).document,d=this.getVariables(l,t.variables),this.transform(l).hasClientExports?[4,this.localState.addExportedVariables(l,d,u)]:[3,2];case 1:d=j.sent(),j.label=2;case 2:if(t=Object(_.a)(Object(_.a)({},t),{variables:d}),h=f="network-only"===s||"no-cache"===s,f||(v=this.dataStore.getCache().diff({query:l,variables:d,returnPartialData:!0,optimistic:!1}),m=v.complete,g=v.result,h=!m||"cache-and-network"===s,p=g),b=h&&"cache-only"!==s&&"standby"!==s,Object(E.s)(["live"],l)&&(b=!0),y=this.idCounter++,w="no-cache"!==s?this.updateQueryWatch(e,l,t):void 0,this.setQuery(e,(function(){return{document:l,lastRequestId:y,invalidated:!0,cancel:w}})),this.invalidate(r),this.queryStore.initQuery({queryId:e,document:l,storePreviousVariables:b,variables:d,isPoll:n===N.poll,isRefetch:n===N.refetch,metadata:o,fetchMoreForQueryId:r}),this.broadcastQueries(),b){if(O=this.fetchRequest({requestId:y,queryId:e,document:l,options:t,fetchMoreForQueryId:r}).catch((function(t){throw t.hasOwnProperty("graphQLErrors")?t:(y>=x.getQuery(e).lastRequestId&&(x.queryStore.markQueryError(e,t,r),x.invalidate(e),x.invalidate(r),x.broadcastQueries()),new L({networkError:t}))})),"cache-and-network"!==s)return[2,O];O.catch((function(){}))}return this.queryStore.markQueryResultClient(e,!b),this.invalidate(e),this.invalidate(r),this.transform(l).hasForcedResolvers?[2,this.localState.runResolvers({document:l,remoteResult:{data:p},context:u,variables:d,onlyRunForcedResolvers:!0}).then((function(n){return x.markQueryResult(e,n,t,r),x.broadcastQueries(),n}))]:(this.broadcastQueries(),[2,{data:p}])}}))}))},e.prototype.markQueryResult=function(e,t,n,r){var i=n.fetchPolicy,o=n.variables,a=n.errorPolicy;"no-cache"===i?this.setQuery(e,(function(){return{newData:{result:t.data,complete:!0}}})):this.dataStore.markQueryResult(t,this.getQuery(e).document,o,r,"ignore"===a||"all"===a)},e.prototype.queryListenerForObserver=function(e,t,n){var r=this;function i(e,t){if(n[e])try{n[e](t)}catch(e){}}return function(n,o){if(r.invalidate(e,!1),n){var a=r.getQuery(e),s=a.observableQuery,c=a.document,u=s?s.options.fetchPolicy:t.fetchPolicy;if("standby"!==u){var l=C(n.networkStatus),d=s&&s.getLastResult(),p=!(!d||d.networkStatus===n.networkStatus),f=t.returnPartialData||!o&&n.previousVariables||p&&t.notifyOnNetworkStatusChange||"cache-only"===u||"cache-and-network"===u;if(!l||f){var h=I(n.graphQLErrors),v=s&&s.options.errorPolicy||t.errorPolicy||"none";if("none"===v&&h||n.networkError)return i("error",new L({graphQLErrors:n.graphQLErrors,networkError:n.networkError}));try{var m=void 0,g=void 0;if(o)"no-cache"!==u&&"network-only"!==u&&r.setQuery(e,(function(){return{newData:null}})),m=o.result,g=!o.complete;else{var b=s&&s.getLastError(),y="none"!==v&&(b&&b.graphQLErrors)!==n.graphQLErrors;if(d&&d.data&&!y)m=d.data,g=!1;else{var w=r.dataStore.getCache().diff({query:c,variables:n.previousVariables||n.variables,returnPartialData:!0,optimistic:!0});m=w.result,g=!w.complete}}var O=g&&!(t.returnPartialData||"cache-only"===u),x={data:O?d&&d.data:m,loading:l,networkStatus:n.networkStatus,stale:O};"all"===v&&h&&(x.errors=n.graphQLErrors),i("next",x)}catch(e){i("error",new L({networkError:e}))}}}}}},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var n=this.dataStore.getCache(),r=n.transformDocument(e),i=Object(E.D)(n.transformForLink(r)),o=this.localState.clientQuery(r),a=this.localState.serverQuery(i),s={document:r,hasClientExports:Object(E.r)(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:o,serverQuery:a,defaultVars:Object(E.h)(Object(E.m)(r))},c=function(e){e&&!t.has(e)&&t.set(e,s)};c(e),c(r),c(o),c(a)}return t.get(e)},e.prototype.getVariables=function(e,t){return Object(_.a)(Object(_.a)({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e,t){void 0===t&&(t=!0),Object(T.b)("standby"!==e.fetchPolicy,11),e.variables=this.getVariables(e.query,e.variables),void 0===e.notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var n=Object(_.a)({},e);return new D({queryManager:this,options:n,shouldSubscribe:t})},e.prototype.query=function(e){var t=this;return Object(T.b)(e.query,12),Object(T.b)("Document"===e.query.kind,13),Object(T.b)(!e.returnPartialData,14),Object(T.b)(!e.pollInterval,15),new Promise((function(n,r){var i=t.watchQuery(e,!1);t.fetchQueryRejectFns.set("query:"+i.queryId,r),i.result().then(n,r).then((function(){return t.fetchQueryRejectFns.delete("query:"+i.queryId)}))}))},e.prototype.generateQueryId=function(){return String(this.idCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){this.stopPollingQuery(e),this.queryStore.stopQuery(e),this.invalidate(e)},e.prototype.addQueryListener=function(e,t){this.setQuery(e,(function(e){return e.listeners.add(t),{invalidated:!1}}))},e.prototype.updateQueryWatch=function(e,t,n){var r=this,i=this.getQuery(e).cancel;i&&i();return this.dataStore.getCache().watch({query:t,variables:n.variables,optimistic:!0,previousResult:function(){var t=null,n=r.getQuery(e).observableQuery;if(n){var i=n.getLastResult();i&&(t=i.data)}return t},callback:function(t){r.setQuery(e,(function(){return{invalidated:!0,newData:t}}))}})},e.prototype.addObservableQuery=function(e,t){this.setQuery(e,(function(){return{observableQuery:t}}))},e.prototype.removeObservableQuery=function(e){var t=this.getQuery(e).cancel;this.setQuery(e,(function(){return{observableQuery:null}})),t&&t()},e.prototype.clearStore=function(){this.fetchQueryRejectFns.forEach((function(e){e(new T.a(16))}));var e=[];return this.queries.forEach((function(t,n){t.observableQuery&&e.push(n)})),this.queryStore.reset(e),this.mutationStore.reset(),this.dataStore.reset()},e.prototype.resetStore=function(){var e=this;return this.clearStore().then((function(){return e.reFetchObservableQueries()}))},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.queries.forEach((function(r,i){var o=r.observableQuery;if(o){var a=o.options.fetchPolicy;o.resetLastResults(),"cache-only"===a||!e&&"standby"===a||n.push(o.refetch()),t.setQuery(i,(function(){return{newData:null}})),t.invalidate(i)}})),this.broadcastQueries(),Promise.all(n)},e.prototype.observeQuery=function(e,t,n){return this.addQueryListener(e,this.queryListenerForObserver(e,t,n)),this.fetchQuery(e,t)},e.prototype.startQuery=function(e,t,n){return this.addQueryListener(e,n),this.fetchQuery(e,t).catch((function(){})),e},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.variables;n=this.transform(n).document,i=this.getVariables(n,i);var o=function(e){return t.getObservableFromLink(n,{},e,!1).map((function(i){if(r&&"no-cache"===r||(t.dataStore.markSubscriptionResult(i,n,e),t.broadcastQueries()),Object(E.q)(i))throw new L({graphQLErrors:i.errors});return i}))};if(this.transform(n).hasClientExports){var a=this.localState.addExportedVariables(n,i).then(o);return new R((function(e){var t=null;return a.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return o(i)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchQueryRejectFns.delete("query:"+e),this.fetchQueryRejectFns.delete("fetchRequest:"+e),this.getQuery(e).subscriptions.forEach((function(e){return e.unsubscribe()})),this.queries.delete(e)},e.prototype.getCurrentQueryResult=function(e,t){void 0===t&&(t=!0);var n=e.options,r=n.variables,i=n.query,o=n.fetchPolicy,a=n.returnPartialData,s=e.getLastResult(),c=this.getQuery(e.queryId).newData;if(c&&c.complete)return{data:c.result,partial:!1};if("no-cache"===o||"network-only"===o)return{data:void 0,partial:!1};var u=this.dataStore.getCache().diff({query:i,variables:r,previousResult:s?s.data:void 0,returnPartialData:!0,optimistic:t}),l=u.result,d=u.complete;return{data:d||a?l:void 0,partial:!d}},e.prototype.getQueryWithPreviousResult=function(e){var t;if("string"==typeof e){var n=this.getQuery(e).observableQuery;Object(T.b)(n,17),t=n}else t=e;var r=t.options,i=r.variables,o=r.query;return{previousResult:this.getCurrentQueryResult(t,!1).data,variables:i,document:o}},e.prototype.broadcastQueries=function(){var e=this;this.onBroadcast(),this.queries.forEach((function(t,n){t.invalidated&&t.listeners.forEach((function(r){r&&r(e.queryStore.get(n),t.newData)}))}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,r){var i,o=this;void 0===r&&(r=this.queryDeduplication);var a=this.transform(e).serverQuery;if(a){var s=this.inFlightLinkObservables,c=this.link,u={query:a,variables:n,operationName:Object(E.n)(a)||void 0,context:this.prepareContext(Object(_.a)(Object(_.a)({},t),{forceFetch:!r}))};if(t=u.context,r){var l=s.get(a)||new Map;s.set(a,l);var d=JSON.stringify(n);if(!(i=l.get(d))){l.set(d,i=V(Object(S.execute)(c,u)));var p=function(){l.delete(d),l.size||s.delete(a),f.unsubscribe()},f=i.subscribe({next:p,error:p,complete:p})}}else i=V(Object(S.execute)(c,u))}else i=R.of({data:{}}),t=this.prepareContext(t);var h=this.transform(e).clientQuery;return h&&(i=function(e,t){return new R((function(n){var r=n.next,i=n.error,o=n.complete,a=0,s=!1,c={next:function(e){++a,new Promise((function(n){n(t(e))})).then((function(e){--a,r&&r.call(n,e),s&&c.complete()}),(function(e){--a,i&&i.call(n,e)}))},error:function(e){i&&i.call(n,e)},complete:function(){s=!0,a||o&&o.call(n)}},u=e.subscribe(c);return function(){return u.unsubscribe()}}))}(i,(function(e){return o.localState.runResolvers({document:h,remoteResult:e,context:t,variables:n})}))),i},e.prototype.fetchRequest=function(e){var t,n,r=this,i=e.requestId,o=e.queryId,a=e.document,s=e.options,c=e.fetchMoreForQueryId,u=s.variables,l=s.errorPolicy,d=void 0===l?"none":l,p=s.fetchPolicy;return new Promise((function(e,l){var f=r.getObservableFromLink(a,s.context,u),h="fetchRequest:"+o;r.fetchQueryRejectFns.set(h,l);var v=function(){r.fetchQueryRejectFns.delete(h),r.setQuery(o,(function(e){e.subscriptions.delete(m)}))},m=f.map((function(e){if(i>=r.getQuery(o).lastRequestId&&(r.markQueryResult(o,e,s,c),r.queryStore.markQueryResult(o,e,c),r.invalidate(o),r.invalidate(c),r.broadcastQueries()),"none"===d&&I(e.errors))return l(new L({graphQLErrors:e.errors}));if("all"===d&&(n=e.errors),c||"no-cache"===p)t=e.data;else{var f=r.dataStore.getCache().diff({variables:u,query:a,optimistic:!1,returnPartialData:!0}),h=f.result;(f.complete||s.returnPartialData)&&(t=h)}})).subscribe({error:function(e){v(),l(e)},complete:function(){v(),e({data:t,errors:n,loading:!1,networkStatus:O.ready,stale:!1})}});r.setQuery(o,(function(e){e.subscriptions.add(m)}))}))},e.prototype.getQuery=function(e){return this.queries.get(e)||{listeners:new Set,invalidated:!1,document:null,newData:null,lastRequestId:1,observableQuery:null,subscriptions:new Set}},e.prototype.setQuery=function(e,t){var n=this.getQuery(e),r=Object(_.a)(Object(_.a)({},n),t(n));this.queries.set(e,r)},e.prototype.invalidate=function(e,t){void 0===t&&(t=!0),e&&this.setQuery(e,(function(){return{invalidated:t}}))},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return Object(_.a)(Object(_.a)({},t),{clientAwareness:this.clientAwareness})},e.prototype.checkInFlight=function(e){var t=this.queryStore.get(e);return t&&t.networkStatus!==O.ready&&t.networkStatus!==O.error},e.prototype.startPollingQuery=function(e,t,n){var r=this,i=e.pollInterval;if(Object(T.b)(i,18),!this.ssrMode){var o=this.pollingInfoByQueryId.get(t);o||this.pollingInfoByQueryId.set(t,o={}),o.interval=i,o.options=Object(_.a)(Object(_.a)({},e),{fetchPolicy:"network-only"});var a=function(){var e=r.pollingInfoByQueryId.get(t);e&&(r.checkInFlight(t)?s():r.fetchQuery(t,e.options,N.poll).then(s,s))},s=function(){var e=r.pollingInfoByQueryId.get(t);e&&(clearTimeout(e.timeout),e.timeout=setTimeout(a,e.interval))};n&&this.addQueryListener(t,n),s()}return t},e.prototype.stopPollingQuery=function(e){this.pollingInfoByQueryId.delete(e)},e}(),G=function(){function e(e){this.cache=e}return e.prototype.getCache=function(){return this.cache},e.prototype.markQueryResult=function(e,t,n,r,i){void 0===i&&(i=!1);var o=!Object(E.q)(e);i&&Object(E.q)(e)&&e.data&&(o=!0),!r&&o&&this.cache.write({result:e.data,dataId:"ROOT_QUERY",query:t,variables:n})},e.prototype.markSubscriptionResult=function(e,t,n){Object(E.q)(e)||this.cache.write({result:e.data,dataId:"ROOT_SUBSCRIPTION",query:t,variables:n})},e.prototype.markMutationInit=function(e){var t,n=this;e.optimisticResponse&&(t="function"==typeof e.optimisticResponse?e.optimisticResponse(e.variables):e.optimisticResponse,this.cache.recordOptimisticTransaction((function(r){var i=n.cache;n.cache=r;try{n.markMutationResult({mutationId:e.mutationId,result:{data:t},document:e.document,variables:e.variables,updateQueries:e.updateQueries,update:e.update})}finally{n.cache=i}}),e.mutationId))},e.prototype.markMutationResult=function(e){var t=this;if(!Object(E.q)(e.result)){var n=[{result:e.result.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}],r=e.updateQueries;r&&Object.keys(r).forEach((function(i){var o=r[i],a=o.query,s=o.updater,c=t.cache.diff({query:a.document,variables:a.variables,returnPartialData:!0,optimistic:!1}),u=c.result;if(c.complete){var l=Object(E.I)((function(){return s(u,{mutationResult:e.result,queryName:Object(E.n)(a.document)||void 0,queryVariables:a.variables})}));l&&n.push({result:l,dataId:"ROOT_QUERY",query:a.document,variables:a.variables})}})),this.cache.performTransaction((function(t){n.forEach((function(e){return t.write(e)}));var r=e.update;r&&Object(E.I)((function(){return r(t,e.result)}))}))}},e.prototype.markMutationComplete=function(e){var t=e.mutationId;e.optimisticResponse&&this.cache.removeOptimistic(t)},e.prototype.markUpdateQueryResult=function(e,t,n){this.cache.write({result:n,dataId:"ROOT_QUERY",variables:t,query:e})},e.prototype.reset=function(){return this.cache.reset()},e}(),Y=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.cache,r=e.ssrMode,i=void 0!==r&&r,o=e.ssrForceFetchDelay,a=void 0===o?0:o,s=e.connectToDevTools,c=e.queryDeduplication,u=void 0===c||c,l=e.defaultOptions,d=e.assumeImmutableResults,p=void 0!==d&&d,f=e.resolvers,h=e.typeDefs,v=e.fragmentMatcher,m=e.name,g=e.version,b=e.link;if(!b&&f&&(b=S.ApolloLink.empty()),!b||!n)throw new T.a(4);this.link=b,this.cache=n,this.store=new G(n),this.disableNetworkFetches=i||a>0,this.queryDeduplication=u,this.defaultOptions=l||{},this.typeDefs=h,a&&setTimeout((function(){return t.disableNetworkFetches=!1}),a),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this);void 0!==s&&(s&&"undefined"!=typeof window)&&(window.__APOLLO_CLIENT__=this),this.version="2.6.10",this.localState=new U({cache:n,client:this,resolvers:f,fragmentMatcher:v}),this.queryManager=new H({link:this.link,store:this.store,queryDeduplication:u,ssrMode:i,clientAwareness:{name:m,version:g},localState:this.localState,assumeImmutableResults:p,onBroadcast:function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.queryStore.getStore(),mutations:t.queryManager.mutationStore.getStore()},dataWithOptimisticResults:t.cache.extract(!0)})}})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Object(_.a)(Object(_.a)({},this.defaultOptions.watchQuery),e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=Object(_.a)(Object(_.a)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=Object(_.a)(Object(_.a)({},this.defaultOptions.query),e)),Object(T.b)("cache-and-network"!==e.fetchPolicy,5),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=Object(_.a)(Object(_.a)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Object(_.a)(Object(_.a)({},this.defaultOptions.mutate),e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeData=function(e){var t=this.cache.writeData(e);return this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return Object(S.execute)(this.link,e)},e.prototype.initQueryManager=function(){return this.queryManager},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e}();function K(e){return{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:W(e)}]}}function W(e){if("number"==typeof e||"boolean"==typeof e||"string"==typeof e||null==e)return null;if(Array.isArray(e))return W(e[0]);var t=[];return Object.keys(e).forEach((function(n){var r={kind:"Field",name:{kind:"Name",value:n},selectionSet:W(e[n])||void 0};t.push(r)})),{kind:"SelectionSet",selections:t}}var $,J={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"__typename"},arguments:[],directives:[],selectionSet:null}]}}]},X=function(){function e(){}return e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.read({query:e.query,variables:e.variables,optimistic:t})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.read({query:Object(E.k)(e.fragment,e.fragmentName),variables:e.variables,rootId:e.id,optimistic:t})},e.prototype.writeQuery=function(e){this.write({dataId:"ROOT_QUERY",result:e.data,query:e.query,variables:e.variables})},e.prototype.writeFragment=function(e){this.write({dataId:e.id,result:e.data,variables:e.variables,query:Object(E.k)(e.fragment,e.fragmentName)})},e.prototype.writeData=function(e){var t,n,r=e.id,i=e.data;if(void 0!==r){var o=null;try{o=this.read({rootId:r,optimistic:!1,query:J})}catch(e){}var a=o&&o.__typename||"__ClientData",s=Object.assign({__typename:a},i);this.writeFragment({id:r,fragment:(t=s,n=a,{kind:"Document",definitions:[{kind:"FragmentDefinition",typeCondition:{kind:"NamedType",name:{kind:"Name",value:n||"__FakeType"}},name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:W(t)}]}),data:s})}else this.writeQuery({query:K(i),data:i})},e}();$||($={});var Z=null,ee={},te=1,ne=Array,re=ne["@wry/context:Slot"]||function(){var e=function(){function e(){this.id=["slot",te++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=Z;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===ee)break;return e!==Z&&(Z.slots[this.id]=t),!0}return Z&&(Z.slots[this.id]=ee),!1},e.prototype.getValue=function(){if(this.hasValue())return Z.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var i,o=((i={__proto__:null})[this.id]=e,i),a=Z;Z={parent:a,slots:o};try{return t.apply(r,n)}finally{Z=a}},e.bind=function(e){var t=Z;return function(){var n=Z;try{return Z=t,e.apply(this,arguments)}finally{Z=n}}},e.noContext=function(e,t,n){if(!Z)return e.apply(n,t);var r=Z;try{return Z=null,e.apply(n,t)}finally{Z=r}},e}();try{Object.defineProperty(ne,"@wry/context:Slot",{value:ne["@wry/context:Slot"]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();re.bind,re.noContext;function ie(){}var oe=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=ie),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getEntry(e);return t&&t.value},e.prototype.getEntry=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var n=t.older,r=t.newer;r&&(r.older=n),n&&(n.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t},e.prototype.set=function(e,t){var n=this.getEntry(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),ae=new re,se=[],ce=[];function ue(e,t){if(!e)throw new Error(t||"assertion failure")}function le(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var de=function(){function e(t,n){this.fn=t,this.args=n,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],++e.count}return e.prototype.recompute=function(){if(ue(!this.recomputing,"already recomputing"),function(e){var t=ae.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),fe(e)?me(t,e):ge(t,e),t}(this)||!ye(this))return fe(this)?function(e){var t=we(e);ae.withValue(e,pe,[e]),function(e){if("function"==typeof e.subscribe)try{xe(e),e.unsubscribe=e.subscribe.apply(null,e.args)}catch(t){return e.setDirty(),!1}return!0}(e)&&function(e){if(e.dirty=!1,fe(e))return;ve(e)}(e);return t.forEach(ye),le(e.value)}(this):le(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,he(this),xe(this))},e.prototype.dispose=function(){var e=this;we(this).forEach(ye),xe(this),this.parents.forEach((function(t){t.setDirty(),Oe(t,e)}))},e.count=0,e}();function pe(e){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,e.args)}catch(t){e.value[1]=t}e.recomputing=!1}function fe(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function he(e){e.parents.forEach((function(t){return me(t,e)}))}function ve(e){e.parents.forEach((function(t){return ge(t,e)}))}function me(e,t){if(ue(e.childValues.has(t)),ue(fe(t)),e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=ce.pop()||new Set;e.dirtyChildren.add(t),he(e)}function ge(e,t){ue(e.childValues.has(t)),ue(!fe(t));var n,r,i,o=e.childValues.get(t);0===o.length?e.childValues.set(t,t.value.slice(0)):(n=o,r=t.value,(i=n.length)>0&&i===r.length&&n[i-1]===r[i-1]||e.setDirty()),be(e,t),fe(e)||ve(e)}function be(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(ce.length<100&&ce.push(n),e.dirtyChildren=null))}function ye(e){return 0===e.parents.size&&"function"==typeof e.reportOrphan&&!0===e.reportOrphan()}function we(e){var t=se;return e.childValues.size>0&&(t=[],e.childValues.forEach((function(n,r){Oe(e,r),t.push(r)}))),ue(null===e.dirtyChildren),t}function Oe(e,t){t.parents.delete(e),e.childValues.delete(t),be(e,t)}function xe(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var _e=function(){function e(e){this.weakness=e}return e.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},e.prototype.lookupArray=function(e){var t=this;return e.forEach((function(e){return t=t.getChildTrie(e)})),t.data||(t.data=Object.create(null))},e.prototype.getChildTrie=function(t){var n=this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),r=n.get(t);return r||n.set(t,r=new e(this.weakness)),r},e}();var Ee=new _e("function"==typeof WeakMap);function je(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ee.lookupArray(e)}var ke=new Set;function Se(e,t){void 0===t&&(t=Object.create(null));var n=new oe(t.max||Math.pow(2,16),(function(e){return e.dispose()})),r=!!t.disposable,i=t.makeCacheKey||je;function o(){if(!r||ae.hasValue()){var o=i.apply(null,arguments);if(void 0===o)return e.apply(null,arguments);var a=Array.prototype.slice.call(arguments),s=n.get(o);s?s.args=a:(s=new de(e,a),n.set(o,s),s.subscribe=t.subscribe,r&&(s.reportOrphan=function(){return n.delete(o)}));var c=s.recompute();return n.set(o,s),ke.add(n),ae.hasValue()||(ke.forEach((function(e){return e.clean()})),ke.clear()),r?void 0:c}}return o.dirty=function(){var e=i.apply(null,arguments),t=void 0!==e&&n.get(e);t&&t.setDirty()},o}var Pe=!1;function Te(){var e=!Pe;return Object(E.y)()||(Pe=!0),e}var Ae=function(){function e(){}return e.prototype.ensureReady=function(){return Promise.resolve()},e.prototype.canBypassInit=function(){return!0},e.prototype.match=function(e,t,n){var r=n.store.get(e.id),i="ROOT_QUERY"===e.id;if(!r)return i;var o=r.__typename,a=void 0===o?i&&"Query":o;return a&&a===t||(Te(),"heuristic")},e}(),Ce=(function(){function e(e){e&&e.introspectionQueryResultData?(this.possibleTypesMap=this.parseIntrospectionResult(e.introspectionQueryResultData),this.isReady=!0):this.isReady=!1,this.match=this.match.bind(this)}e.prototype.match=function(e,t,n){Object(T.b)(this.isReady,1);var r=n.store.get(e.id),i="ROOT_QUERY"===e.id;if(!r)return i;var o=r.__typename,a=void 0===o?i&&"Query":o;if(Object(T.b)(a,2),a===t)return!0;var s=this.possibleTypesMap[t];return!!(a&&s&&s.indexOf(a)>-1)},e.prototype.parseIntrospectionResult=function(e){var t={};return e.__schema.types.forEach((function(e){"UNION"!==e.kind&&"INTERFACE"!==e.kind||(t[e.name]=e.possibleTypes.map((function(e){return e.name})))})),t}}(),Object.prototype.hasOwnProperty),Re=function(){function e(e){var t=this;void 0===e&&(e=Object.create(null)),this.data=e,this.depend=Se((function(e){return t.data[e]}),{disposable:!0,makeCacheKey:function(e){return e}})}return e.prototype.toObject=function(){return this.data},e.prototype.get=function(e){return this.depend(e),this.data[e]},e.prototype.set=function(e,t){t!==this.data[e]&&(this.data[e]=t,this.depend.dirty(e))},e.prototype.delete=function(e){Ce.call(this.data,e)&&(delete this.data[e],this.depend.dirty(e))},e.prototype.clear=function(){this.replace(null)},e.prototype.replace=function(e){var t=this;e?(Object.keys(e).forEach((function(n){t.set(n,e[n])})),Object.keys(this.data).forEach((function(n){Ce.call(e,n)||t.delete(n)}))):Object.keys(this.data).forEach((function(e){t.delete(e)}))},e}();function Ie(e){return new Re(e)}var Ne=function(){function e(e){var t=this,n=void 0===e?{}:e,r=n.cacheKeyRoot,i=void 0===r?new _e(E.e):r,o=n.freezeResults,a=void 0!==o&&o,s=this.executeStoreQuery,c=this.executeSelectionSet,u=this.executeSubSelectedArray;this.freezeResults=a,this.executeStoreQuery=Se((function(e){return s.call(t,e)}),{makeCacheKey:function(e){var t=e.query,n=e.rootValue,r=e.contextValue,o=e.variableValues,a=e.fragmentMatcher;if(r.store instanceof Re)return i.lookup(r.store,t,a,JSON.stringify(o),n.id)}}),this.executeSelectionSet=Se((function(e){return c.call(t,e)}),{makeCacheKey:function(e){var t=e.selectionSet,n=e.rootValue,r=e.execContext;if(r.contextValue.store instanceof Re)return i.lookup(r.contextValue.store,t,r.fragmentMatcher,JSON.stringify(r.variableValues),n.id)}}),this.executeSubSelectedArray=Se((function(e){return u.call(t,e)}),{makeCacheKey:function(e){var t=e.field,n=e.array,r=e.execContext;if(r.contextValue.store instanceof Re)return i.lookup(r.contextValue.store,t,n,JSON.stringify(r.variableValues))}})}return e.prototype.readQueryFromStore=function(e){return this.diffQueryAgainstStore(Object(_.a)(Object(_.a)({},e),{returnPartialData:!1})).result},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.variables,i=e.previousResult,o=e.returnPartialData,a=void 0===o||o,s=e.rootId,c=void 0===s?"ROOT_QUERY":s,u=e.fragmentMatcherFunction,l=e.config,d=Object(E.o)(n);r=Object(E.c)({},Object(E.h)(d),r);var p={store:t,dataIdFromObject:l&&l.dataIdFromObject,cacheRedirects:l&&l.cacheRedirects||{}},f=this.executeStoreQuery({query:n,rootValue:{type:"id",id:c,generated:!0,typename:"Query"},contextValue:p,variableValues:r,fragmentMatcher:u}),h=f.missing&&f.missing.length>0;return h&&!a&&f.missing.forEach((function(e){if(!e.tolerable)throw new T.a(8)})),i&&Object(j.a)(i,f.result)&&(f.result=i),{result:f.result,complete:!h}},e.prototype.executeStoreQuery=function(e){var t=e.query,n=e.rootValue,r=e.contextValue,i=e.variableValues,o=e.fragmentMatcher,a=void 0===o?De:o,s=Object(E.l)(t),c=Object(E.j)(t),u={query:t,fragmentMap:Object(E.g)(c),contextValue:r,variableValues:i,fragmentMatcher:a};return this.executeSelectionSet({selectionSet:s.selectionSet,rootValue:n,execContext:u})},e.prototype.executeSelectionSet=function(e){var t=this,n=e.selectionSet,r=e.rootValue,i=e.execContext,o=i.fragmentMap,a=i.contextValue,s=i.variableValues,c={result:null},u=[],l=a.store.get(r.id),d=l&&l.__typename||"ROOT_QUERY"===r.id&&"Query"||void 0;function p(e){var t;return e.missing&&(c.missing=c.missing||[],(t=c.missing).push.apply(t,e.missing)),e.result}return n.selections.forEach((function(e){var n;if(Object(E.F)(e,s))if(Object(E.t)(e)){var c=p(t.executeField(l,d,e,i));void 0!==c&&u.push(((n={})[Object(E.E)(e)]=c,n))}else{var f=void 0;if(Object(E.v)(e))f=e;else if(!(f=o[e.name.value]))throw new T.a(9);var h=f.typeCondition&&f.typeCondition.name.value,v=!h||i.fragmentMatcher(r,h,a);if(v){var m=t.executeSelectionSet({selectionSet:f.selectionSet,rootValue:r,execContext:i});"heuristic"===v&&m.missing&&(m=Object(_.a)(Object(_.a)({},m),{missing:m.missing.map((function(e){return Object(_.a)(Object(_.a)({},e),{tolerable:!0})}))})),u.push(p(m))}}})),c.result=Object(E.B)(u),this.freezeResults,c},e.prototype.executeField=function(e,t,n,r){var i=r.variableValues,o=r.contextValue,a=function(e,t,n,r,i,o){o.resultKey;var a=o.directives,s=n;(r||a)&&(s=Object(E.p)(s,r,a));var c=void 0;if(e&&void 0===(c=e[s])&&i.cacheRedirects&&"string"==typeof t){var u=i.cacheRedirects[t];if(u){var l=u[n];l&&(c=l(e,r,{getCacheKey:function(e){var t=i.dataIdFromObject(e);return t&&Object(E.H)({id:t,typename:e.__typename})}}))}}if(void 0===c)return{result:c,missing:[{object:e,fieldName:s,tolerable:!1}]};Object(E.w)(c)&&(c=c.json);return{result:c}}(e,t,n.name.value,Object(E.b)(n,i),o,{resultKey:Object(E.E)(n),directives:Object(E.i)(n,i)});return Array.isArray(a.result)?this.combineExecResults(a,this.executeSubSelectedArray({field:n,array:a.result,execContext:r})):n.selectionSet?null==a.result?a:this.combineExecResults(a,this.executeSelectionSet({selectionSet:n.selectionSet,rootValue:a.result,execContext:r})):(Le(n,a.result),this.freezeResults,a)},e.prototype.combineExecResults=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.forEach((function(t){t.missing&&(e=e||[]).push.apply(e,t.missing)})),{result:t.pop().result,missing:e}},e.prototype.executeSubSelectedArray=function(e){var t,n=this,r=e.field,i=e.array,o=e.execContext;function a(e){return e.missing&&(t=t||[]).push.apply(t,e.missing),e.result}return i=i.map((function(e){return null===e?null:Array.isArray(e)?a(n.executeSubSelectedArray({field:r,array:e,execContext:o})):r.selectionSet?a(n.executeSelectionSet({selectionSet:r.selectionSet,rootValue:e,execContext:o})):(Le(r,e),e)})),this.freezeResults,{result:i,missing:t}},e}();function Le(e,t){if(!e.selectionSet&&Object(E.u)(t))throw new T.a(10)}function De(){return!0}var Me=function(){function e(e){void 0===e&&(e=Object.create(null)),this.data=e}return e.prototype.toObject=function(){return this.data},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){this.data[e]=t},e.prototype.delete=function(e){this.data[e]=void 0},e.prototype.clear=function(){this.data=Object.create(null)},e.prototype.replace=function(e){this.data=e||Object.create(null)},e}();var Fe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="WriteError",t}return Object(_.d)(t,e),t}(Error);var Be=function(){function e(){}return e.prototype.writeQueryToStore=function(e){var t=e.query,n=e.result,r=e.store,i=void 0===r?Ie():r,o=e.variables,a=e.dataIdFromObject,s=e.fragmentMatcherFunction;return this.writeResultToStore({dataId:"ROOT_QUERY",result:n,document:t,store:i,variables:o,dataIdFromObject:a,fragmentMatcherFunction:s})},e.prototype.writeResultToStore=function(e){var t=e.dataId,n=e.result,r=e.document,i=e.store,o=void 0===i?Ie():i,a=e.variables,s=e.dataIdFromObject,c=e.fragmentMatcherFunction,u=Object(E.m)(r);try{return this.writeSelectionSetToStore({result:n,dataId:t,selectionSet:u.selectionSet,context:{store:o,processedData:{},variables:Object(E.c)({},Object(E.h)(u),a),dataIdFromObject:s,fragmentMap:Object(E.g)(Object(E.j)(r)),fragmentMatcherFunction:c}})}catch(e){throw function(e,t){var n=new Fe("Error writing result to store for query:\n "+JSON.stringify(t));return n.message+="\n"+e.message,n.stack=e.stack,n}(e,r)}},e.prototype.writeSelectionSetToStore=function(e){var t=this,n=e.result,r=e.dataId,i=e.selectionSet,o=e.context,a=o.variables,s=o.store,c=o.fragmentMap;return i.selections.forEach((function(e){var i;if(Object(E.F)(e,a))if(Object(E.t)(e)){var s=Object(E.E)(e),u=n[s];if(void 0!==u)t.writeFieldToStore({dataId:r,value:u,field:e,context:o});else{var l=!1,d=!1;e.directives&&e.directives.length&&(l=e.directives.some((function(e){return e.name&&"defer"===e.name.value})),d=e.directives.some((function(e){return e.name&&"client"===e.name.value}))),!l&&!d&&o.fragmentMatcherFunction}}else{var p=void 0;Object(E.v)(e)?p=e:(p=(c||{})[e.name.value],Object(T.b)(p,3));var f=!0;if(o.fragmentMatcherFunction&&p.typeCondition){var h=r||"self",v=Object(E.H)({id:h,typename:void 0}),m={store:new Me((i={},i[h]=n,i)),cacheRedirects:{}},g=o.fragmentMatcherFunction(v,p.typeCondition.name.value,m);Object(E.x)(),f=!!g}f&&t.writeSelectionSetToStore({result:n,selectionSet:p.selectionSet,dataId:r,context:o})}})),s},e.prototype.writeFieldToStore=function(e){var t,n,r,i=e.field,o=e.value,a=e.dataId,s=e.context,c=s.variables,u=s.dataIdFromObject,l=s.store,d=Object(E.G)(i,c);if(i.selectionSet&&null!==o)if(Array.isArray(o)){var p=a+"."+d;n=this.processArrayValue(o,p,i.selectionSet,s)}else{var f=a+"."+d,h=!0;if(ze(f)||(f="$"+f),u){var v=u(o);Object(T.b)(!v||!ze(v),4),(v||"number"==typeof v&&0===v)&&(f=v,h=!1)}qe(f,i,s.processedData)||this.writeSelectionSetToStore({dataId:f,result:o,selectionSet:i.selectionSet,context:s});var m=o.__typename;n=Object(E.H)({id:f,typename:m},h);var g=(r=l.get(a))&&r[d];if(g!==n&&Object(E.u)(g)){var b=void 0!==g.typename,y=void 0!==m,w=b&&y&&g.typename!==m;Object(T.b)(!h||g.generated||w,5),Object(T.b)(!b||y,6),g.generated&&(w?h||l.delete(g.id):function e(t,n,r){if(t===n)return!1;var i=r.get(t),o=r.get(n),a=!1;Object.keys(i).forEach((function(t){var n=i[t],s=o[t];Object(E.u)(n)&&ze(n.id)&&Object(E.u)(s)&&!Object(j.a)(n,s)&&e(n.id,s.id,r)&&(a=!0)})),r.delete(t);var s=Object(_.a)(Object(_.a)({},i),o);if(Object(j.a)(s,o))return a;return r.set(n,s),!0}(g.id,n.id,l))}}else n=null!=o&&"object"==typeof o?{type:"json",json:o}:o;(r=l.get(a))&&Object(j.a)(n,r[d])||l.set(a,Object(_.a)(Object(_.a)({},r),((t={})[d]=n,t)))},e.prototype.processArrayValue=function(e,t,n,r){var i=this;return e.map((function(e,o){if(null===e)return null;var a=t+"."+o;if(Array.isArray(e))return i.processArrayValue(e,a,n,r);var s=!0;if(r.dataIdFromObject){var c=r.dataIdFromObject(e);c&&(a=c,s=!1)}return qe(a,n,r.processedData)||i.writeSelectionSetToStore({dataId:a,result:e,selectionSet:n,context:r}),Object(E.H)({id:a,typename:e.__typename},s)}))},e}();function ze(e){return"$"===e[0]}function qe(e,t,n){if(!n)return!1;if(n[e]){if(n[e].indexOf(t)>=0)return!0;n[e].push(t)}else n[e]=[t];return!1}var Ue={fragmentMatcher:new Ae,dataIdFromObject:function(e){if(e.__typename){if(void 0!==e.id)return e.__typename+":"+e.id;if(void 0!==e._id)return e.__typename+":"+e._id}return null},addTypename:!0,resultCaching:!0,freezeResults:!1};var Ve=Object.prototype.hasOwnProperty,Qe=function(e){function t(t,n,r){var i=e.call(this,Object.create(null))||this;return i.optimisticId=t,i.parent=n,i.transaction=r,i}return Object(_.d)(t,e),t.prototype.toObject=function(){return Object(_.a)(Object(_.a)({},this.parent.toObject()),this.data)},t.prototype.get=function(e){return Ve.call(this.data,e)?this.data[e]:this.parent.get(e)},t}(Me),He=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;n.watches=new Set,n.typenameDocumentCache=new Map,n.cacheKeyRoot=new _e(E.e),n.silenceBroadcast=!1,n.config=Object(_.a)(Object(_.a)({},Ue),t),n.config.customResolvers&&(n.config.cacheRedirects=n.config.customResolvers),n.config.cacheResolvers&&(n.config.cacheRedirects=n.config.cacheResolvers),n.addTypename=!!n.config.addTypename,n.data=n.config.resultCaching?new Re:new Me,n.optimisticData=n.data,n.storeWriter=new Be,n.storeReader=new Ne({cacheKeyRoot:n.cacheKeyRoot,freezeResults:t.freezeResults});var r=n,i=r.maybeBroadcastWatch;return n.maybeBroadcastWatch=Se((function(e){return i.call(n,e)}),{makeCacheKey:function(e){if(!e.optimistic&&!e.previousResult)return r.data instanceof Re?r.cacheKeyRoot.lookup(e.query,JSON.stringify(e.variables)):void 0}}),n}return Object(_.d)(t,e),t.prototype.restore=function(e){return e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).toObject()},t.prototype.read=function(e){if("string"==typeof e.rootId&&void 0===this.data.get(e.rootId))return null;var t=this.config.fragmentMatcher,n=t&&t.match;return this.storeReader.readQueryFromStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,rootId:e.rootId,fragmentMatcherFunction:n,previousResult:e.previousResult,config:this.config})||null},t.prototype.write=function(e){var t=this.config.fragmentMatcher,n=t&&t.match;this.storeWriter.writeResultToStore({dataId:e.dataId,result:e.result,variables:e.variables,document:this.transformDocument(e.query),store:this.data,dataIdFromObject:this.config.dataIdFromObject,fragmentMatcherFunction:n}),this.broadcastWatches()},t.prototype.diff=function(e){var t=this.config.fragmentMatcher,n=t&&t.match;return this.storeReader.diffQueryAgainstStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,returnPartialData:e.returnPartialData,previousResult:e.previousResult,fragmentMatcherFunction:n,config:this.config})},t.prototype.watch=function(e){var t=this;return this.watches.add(e),function(){t.watches.delete(e)}},t.prototype.evict=function(e){throw new T.a(7)},t.prototype.reset=function(){return this.data.clear(),this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){for(var t=[],n=0,r=this.optimisticData;r instanceof Qe;)r.optimisticId===e?++n:t.push(r),r=r.parent;if(n>0){for(this.optimisticData=r;t.length>0;){var i=t.pop();this.performTransaction(i.transaction,i.optimisticId)}this.broadcastWatches()}},t.prototype.performTransaction=function(e,t){var n=this.data,r=this.silenceBroadcast;this.silenceBroadcast=!0,"string"==typeof t&&(this.data=this.optimisticData=new Qe(t,this.optimisticData,e));try{e(this)}finally{this.silenceBroadcast=r,this.data=n}this.broadcastWatches()},t.prototype.recordOptimisticTransaction=function(e,t){return this.performTransaction(e,t)},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=Object(E.a)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(){var e=this;this.silenceBroadcast||this.watches.forEach((function(t){return e.maybeBroadcastWatch(t)}))},t.prototype.maybeBroadcastWatch=function(e){e.callback(this.diff({query:e.query,variables:e.variables,previousResult:e.previousResult&&e.previousResult(),optimistic:e.optimistic}))},t}(X),Ge=n(133);function Ye(e){return new S.ApolloLink((function(t,n){return new k.a((function(r){var i,o,a;try{i=n(t).subscribe({next:function(i){i.errors&&(a=e({graphQLErrors:i.errors,response:i,operation:t,forward:n}))?o=a.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}):r.next(i)},error:function(i){(a=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors,forward:n}))?o=a.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}):r.error(i)},complete:function(){a||r.complete.bind(r)()}})}catch(i){e({networkError:i,operation:t,forward:n}),r.error(i)}return function(){i&&i.unsubscribe(),o&&i.unsubscribe()}}))}))}!function(e){function t(t){var n=e.call(this)||this;return n.link=Ye(t),n}Object(_.d)(t,e),t.prototype.request=function(e,t){return this.link.request(e,t)}}(S.ApolloLink);var Ke=n(141),We=(n(136),n(137));function $e(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Je(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){$e(o,r,i,a,s,"next",e)}function s(e){$e(o,r,i,a,s,"throw",e)}a(void 0)}))}}var Xe,Ze,et=new He({addTypename:!1}),tt={GRAPHQL_URI:"/graphql",credentials:"include"},nt=S.ApolloLink.split(e=>e.getContext().hasUpload,Object(Ke.createUploadLink)(tt),new Ge.a(tt)),rt=new Y({defaultOptions:{watchQuery:{fetchPolicy:"no-cache",errorPolicy:"ignore"},query:{fetchPolicy:"no-cache",errorPolicy:"all"},mutate:{errorPolicy:"all"}},cache:et,link:S.ApolloLink.from([Ye(({operation:e,graphQLErrors:t,networkError:n})=>{if(t&&document.dispatchEvent(new CustomEvent("notify",{detail:{level:"error",message:t[0].message,ex:t}})),n)switch(n.statusCode){case 401:document.dispatchEvent(new CustomEvent("auth-required"));break;case 403:document.dispatchEvent(new CustomEvent("domain-required"));break;default:var{name:r,response:i,statusCode:o,bodyText:a,message:s}=n;s="ServerParseError"==r?"[ ".concat(o||""," : ").concat(i.statusText," ] ").concat(a):"[ ".concat(o||""," : ").concat(i.statusText," ] ").concat(s),document.dispatchEvent(new CustomEvent("notify",{detail:{level:"error",message:s,ex:n}}))}}),nt])}),it=function(){var e=Je((function*(){return Xe||(Xe=new Promise((e,t)=>{var n=new We.SubscriptionClient(location.origin.replace(/^http/,"ws")+"/subscriptions",{reconnect:!0,connectionParams:{headers:{referer:location.href}}});n.onError(e=>{3===n.status&&(n.reconnect=!1),t(e)}),n.onConnected(()=>{e(n)})})),yield Xe}));return function(){return e.apply(this,arguments)}}(),ot=[],at=function(){var e=Je((function*(e,t){var n=yield it(),{unsubscribe:r}=n.request(e).subscribe(t);return ot.push(r),{unsubscribe(){ot.splice(ot.indexOf(r),1),r(),0==ot.length&&(n.unsubscribeAll(),n.close(!0),Xe=null)}}}));return function(t,n){return e.apply(this,arguments)}}();function st(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function ct(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){st(o,r,i,a,s,"next",e)}function s(e){st(o,r,i,a,s,"throw",e)}a(void 0)}))}}function ut(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class lt{static enqueue(e){return new Promise((t,n)=>{this.queue.push({promise:e,resolve:t,reject:n}),this.dequeue()})}static dequeue(){if(this.workingOnPromise)return!1;var e=this.queue.shift();if(!e)return!1;try{this.workingOnPromise=!0,e.promise.then(t=>{this.workingOnPromise=!1,e.resolve(t),this.dequeue()}).catch(t=>{this.workingOnPromise=!1,e.reject(t),this.dequeue()})}catch(t){this.workingOnPromise=!1,e.reject(t),this.dequeue()}return!0}}function dt(e){return["add","delete","clear","get","getAll","getAllKeys","count","put","openCursor","openKeyCursor"].reduce((t,n)=>(t[n]=function(){var t=ct((function*(...t){var r=(yield ft()).transaction(e,"readwrite").objectStore(e),i=r[n].apply(r,t);return yield new Promise((e,t)=>{i.onsuccess=t=>{e(t.target.result)},i.onerror=e=>{t(e)}})}));return function(){return t.apply(this,arguments)}}(),t),{limit(e=50){var t=this;return ct((function*(){for(var n=(yield t.getAllKeys()).slice(0,-e),r=0;r<n.length;r++)yield t.delete(n[r])}))()}})}function pt(){return"undefined"!=typeof window?window.indexedDB:self.indexedDB}function ft(){return Ze||lt.enqueue(new Promise((function(e,t){pt()||t("this browser does not support indexedDB");var n=pt().open("things-factory-database");n.onerror=function(e){console.log("Why didn't you allow my web app to use IndexedDB?!"),t(e)},n.onupgradeneeded=function(e){var t=e.target.result;t.createObjectStore("notifications",{keyPath:"id",autoIncrement:!0}).createIndex("notification_id_unqiue","id",{unique:!0}),t.createObjectStore("client_settings",{keyPath:"key",autoIncrement:!0}).createIndex("client_setting_key_unqiue","key",{unique:!0})},n.onsuccess=function(t){console.log("IndexedDB for notification opened successfully"),Ze=n.result,e(Ze)}})))}ut(lt,"queue",[]),ut(lt,"pendingPromise",!1);var ht=dt("client_settings"),vt=dt("notifications"),mt=n(97),gt=n.n(mt);function bt(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}var yt,wt,Ot,xt,_t,Et=e=>class extends e{constructor(){super(),this._infiniteScrollOptions={threshold:20,limit:30,totalProp:"_total",pageProp:"_page"},this.onScroll=gt()(e=>{var t=this.scrollTargetEl,{threshold:n=0,limit:r,totalProp:i,pageProp:o}=this._infiniteScrollOptions;this[o]<this[i]/r&&t.scrollHeight-t.clientHeight<=t.scrollTop+n&&this.scrollAction()},300)}get scrollTargetEl(){console.warn("scroll target element is not defined.")}scrollAction(){return(e=function*(){console.warn("scroll action not implemented.")},function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){bt(o,r,i,a,s,"next",e)}function s(e){bt(o,r,i,a,s,"throw",e)}a(void 0)}))})();var e}};n(42);function jt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}class kt extends i.a{static get styles(){return Object(i.b)(yt||(yt=jt(["\n :host {\n display: block;\n text-align: center;\n }\n mwc-icon {\n font: var(--oops-note-icon-font);\n color: var(--oops-note-icon-color);\n border: var(--oops-note-icon-border);\n border-radius: var(--oops-note-icon-border-radius);\n padding: var(--oops-note-icon-padding);\n }\n [title] {\n margin: var(--oops-note-title-margin);\n font: var(--oops-note-title-font);\n color: var(--oops-note-title-color);\n text-transform: capitalize;\n }\n [description] {\n font: var(--oops-note-description-font);\n color: var(--oops-note-description-color);\n }\n "])))}static get properties(){return{icon:String,title:String,description:String}}render(){return Object(i.e)(wt||(wt=jt(["\n <mwc-icon>","</mwc-icon>\n <div title>","</div>\n <div description>","</div>\n "])),this.icon,this.title,this.description)}}function St(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("oops-note",kt);class Pt extends i.a{static get styles(){return Object(i.b)(Ot||(Ot=St(["\n :host {\n width: 70px;\n height: 70px;\n margin: 0 auto;\n background: url(/assets/images/spinner.png) 0 0 no-repeat;\n background-size: 700%;\n animation: spinner steps(6) 2s infinite both;\n }\n\n @keyframes spinner {\n 0% {\n background-position: 0%;\n }\n 100% {\n background-position: 100%;\n }\n }\n "])))}render(){return Object(i.e)(xt||(xt=St([""])))}}function Tt(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function At(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Tt(o,r,i,a,s,"next",e)}function s(e){Tt(o,r,i,a,s,"throw",e)}a(void 0)}))}}customElements.define("oops-spinner",Pt);class Ct extends i.a{static get properties(){return{tag:String,subscription:Boolean}}render(){return Object(i.e)(_t||(_t=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([" <slot></slot> "])))}disconnectedCallback(){super.disconnectedCallback(),this.stopSubscribe()}get subscription(){return this._subscription}set subscription(e){console.warn("oops-progress#subscription is readonly property")}updated(e){var t=this;return At((function*(){e.has("tag")&&t.subscription&&(yield t.stopSubscribe())}))()}startSubscribe(){var e=this;return At((function*(){var t;e.tag&&!e._subscription&&(e._subscription=yield at({query:'\n subscription {\n data(tag: "'.concat(e.tag,'") {\n tag\n data\n }\n }')},{next:(t=At((function*({data:t}){if(t){var n,{progress:r=0,message:i=""}=(null==t||null===(n=t.data)||void 0===n?void 0:n.data)||{};e.dispatchEvent(new CustomEvent("progress",{detail:{progress:r,message:i}})),r>=100&&(yield e.stopSubscribe(),e.dispatchEvent(new CustomEvent("finish")))}})),function(e){return t.apply(this,arguments)})}))}))()}stopSubscribe(){var e=this;return At((function*(){var t;yield null===(t=e._subscription)||void 0===t?void 0:t.unsubscribe(),delete e._subscription}))()}}customElements.define("oops-progress",Ct);var Rt=n(142),It=n.n(Rt);function Nt(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Lt(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Nt(o,r,i,a,s,"next",e)}function s(e){Nt(o,r,i,a,s,"throw",e)}a(void 0)}))}}function Dt(e){return Mt.apply(this,arguments)}function Mt(){return(Mt=Lt((function*({type:e="info",icon:t,title:n,text:r,allowOutsideClick:i=!0,allowEscapeKey:o=!0,footer:a,position:s="center",toast:c,confirmButton:u={},cancelButton:l={},invertButton:d=!1,callback:p,onBeforeOpen:f,onOpen:h,onRender:v,onClose:m,onAfterClose:g,debug:b=!1}){try{if(b){var y="";if(["success","error","warning","info","question"].includes(e)||(y+="Invalid Alert Type.\n"),n&&"string"!=typeof n&&(y+="Invalid Title.\n"),r&&"string"!=typeof r&&(y+="Invalid Text.\n"),a&&"string"!=typeof r&&(y+="Invalid Footer.\n"),"string"!=typeof s&&(y+="Invalid Position.\n"),c&&"boolean"!=typeof c&&(y+="Invalid Footer.\n"),Object.keys(u).length>0&&("object"!=typeof u||!u.hasOwnProperty("text"))&&(y+="Invalid Confirm Button.\n"),Object.keys(l).length>0&&("object"!=typeof l||!l.hasOwnProperty("text"))&&(y+="Invalid Cancel Button.\n"),""!==y)throw new Error(y)}var w=yield It.a.fire({icon:t||e,title:n,text:r,allowOutsideClick:i,allowEscapeKey:o,footer:a,position:s,showConfirmButton:Object.keys(u).length>0,showCancelButton:Object.keys(l).length>0,confirmButtonText:u.hasOwnProperty("text")?u.text:"confirm",cancelButtonText:l.hasOwnProperty("text")?l.text:"cancel",confirmButtonColor:u.hasOwnProperty("color")?u.color:"#22a6a7",cancelButtonColor:l.hasOwnProperty("color")?l.color:"#cfcfcf",toast:c,reverseButtons:d,willOpen:()=>{f&&f()},didOpen:()=>{h&&h()},didRender:()=>{v&&v()},willClose:()=>{m&&m()},didClose:()=>{g&&g()}});if(!p||"function"!=typeof p)return Promise.resolve(w);p(w)}catch(e){console.log("%c(Custom-Alert)\n"+e,"color:Red")}}))).apply(this,arguments)}var Ft="__context__";function Bt(){var e=new URLSearchParams(location.search);return JSON.parse(e.get(Ft))||""}function zt(e){if(!e)throw new Error("context is not passed");return"string"!=typeof e&&(e=JSON.stringify(e)),new URLSearchParams({[Ft]:e}).toString()}var qt={"APP-VERSION":"3.6.1","NODE-ENV":"production"};window.process={env:{NODE_ENV:"production"}}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(166),i=n(171);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(285);function i(e,t,n){return new r.a("Syntax Error: ".concat(n),void 0,e,[t])}},,function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";var r,i=n(1),o=n(0);
192
- /**
193
- * @license
194
- * Copyright 2021 Google LLC
195
- * SPDX-LIcense-Identifier: Apache-2.0
196
- */
197
- var a,s,c,u=Object(o.b)(r||(a=[':host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}'],s||(s=a.slice(0)),r=Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(s)}}))));
198
- /**
199
- * @license
200
- * Copyright 2018 Google LLC
201
- * SPDX-License-Identifier: Apache-2.0
202
- */
203
- var l=class extends o.a{render(){return Object(o.e)(c||(c=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["<slot></slot>"])))}};l.styles=[u],l=Object(i.c)([Object(o.c)("mwc-icon")],l)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));
204
- /**
205
- * @license
206
- * Copyright 2016 Google Inc.
207
- *
208
- * Permission is hereby granted, free of charge, to any person obtaining a copy
209
- * of this software and associated documentation files (the "Software"), to deal
210
- * in the Software without restriction, including without limitation the rights
211
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
212
- * copies of the Software, and to permit persons to whom the Software is
213
- * furnished to do so, subject to the following conditions:
214
- *
215
- * The above copyright notice and this permission notice shall be included in
216
- * all copies or substantial portions of the Software.
217
- *
218
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
219
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
220
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
221
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
222
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
223
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
224
- * THE SOFTWARE.
225
- */
226
- var r=function(){function e(e){void 0===e&&(e={}),this.adapter=e}return Object.defineProperty(e,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.destroy=function(){},e}()},,function(e,t,n){"use strict";n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"e",(function(){return p})),n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return h}));var r,i=n(0);var o,a,s,c=Object(i.b)(r||(o=["\n :host {\n display: block;\n box-sizing: border-box;\n }\n"],a||(a=o.slice(0)),r=Object.freeze(Object.defineProperties(o,{raw:{value:Object.freeze(a)}}))));var u,l=Object(i.b)(s||(s=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n /* for scroller */\n ::-webkit-scrollbar {\n width: 5px;\n height: 5px;\n }\n ::-webkit-scrollbar-track {\n background-color: transparent;\n }\n ::-webkit-scrollbar-thumb {\n background-color: var(--scrollbar-thumb-color, rgba(0, 0, 0, 0.2));\n }\n ::-webkit-scrollbar-thumb:hover {\n background-color: var(--scrollbar-thumb-hover-color, #aa866a);\n }\n"])));var d,p=Object(i.b)(u||(u=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n /* for tooltip */\n [data-tooltip]:after {\n position: absolute;\n content: attr(data-tooltip);\n color: #fff;\n z-index: 1;\n pointer-events: none;\n display: block;\n text-transform: capitalize;\n\n padding: var(--tooltip-padding);\n background-color: var(--tooltip-background-color);\n font: var(--tooltip-font);\n box-shadow: var(--box-shadow);\n border-radius: var(--border-radius);\n\n left: var(--tooltip-left-positon-left);\n top: var(--tooltip-left-position-top);\n right: var(--tooltip-left-position-right);\n animation: var(--tooltip-left-position-animation);\n }\n @keyframes tooltip-left {\n 0% {\n opacity: 0;\n right: 150%;\n }\n 100% {\n opacity: 1;\n right: 110%;\n }\n }\n"])));var f=Object(i.b)(d||(d=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n .headroom {\n will-change: transform;\n transition: transform 200ms linear;\n }\n\n .headroom--pinned {\n transform: translateY(0%);\n }\n\n .headroom--unpinned {\n transform: translateY(-100%);\n }\n"]))),h={activate:{icon:"toggle_on",emphasis:{raised:!1,outlined:!0,dense:!1,danger:!1}},add:{icon:"post_add",emphasis:{raised:!0,outlined:!1,dense:!1,danger:!1}},additional:{icon:"library_add",emphasis:{raised:!1,outlined:!0,dense:!1,danger:!1}},approve:{icon:"assignment_turned_in",emphasis:{raised:!1,outlined:!0,dense:!1,danger:!1}},arrived:{icon:"where_to_vote",emphasis:{raised:!1,outlined:!0,dense:!1,danger:!1}},assignment:{icon:"assignment",emphasis:{raised:!1,outlined:!0,dense:!1,danger:!1}},back:{icon:"arrow_back_ios_new",emphasis:{raised:!1,outlined:!0,dense:!1,danger:!1}},cancel:{icon:"cancel",emphasis:{raised:!1,outlined:!0,dense:!1,danger:!0}},clear:{icon:"clear",emphasis:{raised:!1,outlined:!0,dense:!1,danger:!0}},connect:{icon:"mediation",emphasis:{raised:!0,outlined:!1,dense:!1,danger:!1}},copy:{icon:"content_copy",emphasis:{raised:!1,outlined:!0,dense:!1,danger:!1}},confirm:{icon:"fact_check",emphasis:{raised:!1,outlined:!0,dense:!1,danger:!1}},delete:{icon:"delete_outline",emphasis:{raised:!0,outlined:!1,dense:!1,danger:!0}},draft:{icon:"create",emphasis:{raised:!1,outlined:!0,dense:!1,danger:!1}},edit:{icon:"edit",emphasis:{raised:!1,outlined:!0,dense:!1,danger:!1}},export:{icon:"open_in_browser",emphasis:{raised:!1,outlined:!0,dense:!1,danger:!1}},generate:{icon:"add_task",emphasis:{raised:!1,outlined:!0,dense:!1,danger:!1}},import:{icon:"save_alt",emphasis:{raised:!1,outlined:!0,dense:!1,danger:!1}},init:{icon:"content_paste",emphasis:{raised:!1,outlined:!0,dense:!1,danger:!1}},inspect:{icon:"pageview",emphasis:{raised:!1,outlined:!0,dense:!1,danger:!1}},issue:{icon:"error",emphasis:{raised:!1,outlined:!0,dense:!1,danger:!0}},label:{icon:"print",emphasis:{raised:!1,outlined:!0,dense:!1,danger:!1}},load:{icon:"local_shipping",emphasis:{raised:!1,outlined:!0,dense:!1,danger:!1}},logistics:{icon:"moped",emphasis:{raised:!1,outlined:!0,dense:!1,danger:!1}},pause:{icon:"pause",emphasis:{raised:!1,outlined:!0,dense:!1,danger:!1}},play:{icon:"play_arrow",emphasis:{raised:!1,outlined:!0,dense:!1,danger:!1}},preview:{icon:"preview",emphasis:{raised:!1,outlined:!0,dense:!1,danger:!1}},print:{icon:"print",emphasis:{raised:!1,outlined:!0,dense:!1,danger:!1}},receive:{icon:"assignment_turn_in",emphasis:{raised:!1,outlined:!0,dense:!1,danger:!1}},refresh:{icon:"refresh",emphasis:{raised:!1,outlined:!0,dense:!1,danger:!1}},register:{icon:"add",emphasis:{raised:!1,outlined:!0,dense:!1,danger:!1}},reject:{icon:"not_interested",emphasis:{raised:!1,outlined:!0,dense:!1,danger:!0}},relocate:{icon:"edit_location_alt",emphasis:{raised:!1,outlined:!0,dense:!1,danger:!1}},save:{icon:"done",emphasis:{raised:!0,outlined:!1,dense:!1,danger:!1}},submit:{icon:"task_alt",emphasis:{raised:!0,outlined:!1,dense:!1,danger:!1}},sync:{icon:"sync",emphasis:{raised:!1,outlined:!0,dense:!1,danger:!1}},transfer:{icon:"swap_horiz",emphasis:{raised:!1,outlined:!0,dense:!1,danger:!1}},undo:{icon:"undo",emphasis:{raised:!1,outlined:!0,dense:!1,danger:!1}},warehouse:{icon:"add_business",emphasis:{raised:!1,outlined:!0,dense:!1,danger:!1}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),i=n(90);n.d(t,"b",(function(){return i.a}));
227
- /**
228
- * @license
229
- * Copyright 2018 Google LLC
230
- * SPDX-License-Identifier: Apache-2.0
231
- */
232
- class o extends r.a{click(){if(this.mdcRoot)return this.mdcRoot.focus(),void this.mdcRoot.click();super.click()}createFoundation(){void 0!==this.mdcFoundation&&this.mdcFoundation.destroy(),this.mdcFoundationClass&&(this.mdcFoundation=new this.mdcFoundationClass(this.createAdapter()),this.mdcFoundation.init())}firstUpdated(){this.createFoundation()}}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";var r=n(151);n.d(t,"b",(function(){return r.c})),n.d(t,"c",(function(){return r.d})),n.d(t,"d",(function(){return r.f})),n.d(t,"e",(function(){return r.g})),n.d(t,"f",(function(){return r.h})),n.d(t,"g",(function(){return r.i})),n.d(t,"i",(function(){return r.j})),n.d(t,"j",(function(){return r.k})),n.d(t,"k",(function(){return r.l})),n.d(t,"l",(function(){return r.m}));var i=n(152);n.d(t,"a",(function(){return i.a})),n.d(t,"h",(function(){return i.c}))},function(e,t,n){var r=n(50),i=n(167),o=n(168),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},function(e,t,n){var r=n(26).Symbol;e.exports=r},,function(e,t,n){"use strict";var r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.a=r},function(e,t,n){var r=n(202),i=n(69),o=n(203),a=n(204),s=n(205),c=n(49),u=n(101),l=u(r),d=u(i),p=u(o),f=u(a),h=u(s),v=c;(r&&"[object DataView]"!=v(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=v(new i)||o&&"[object Promise]"!=v(o.resolve())||a&&"[object Set]"!=v(new a)||s&&"[object WeakMap]"!=v(new s))&&(v=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case l:return"[object DataView]";case d:return"[object Map]";case p:return"[object Promise]";case f:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=v},function(e,t,n){var r=n(233);e.exports=function(e,t){return r(e,t)}},,function(e,t,n){var r=n(156),i=n(157),o=n(158),a=n(159),s=n(160);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(78);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(38)(Object,"create");e.exports=r},function(e,t,n){var r=n(180);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(102),i=n(103);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,c=t.length;++s<c;){var u=t[s],l=o?o(n[u],e[u],u,n,e):void 0;void 0===l&&(l=e[u]),a?i(n,u,l):r(n,u,l)}return n}},function(e,t,n){(function(r){var i;if("function"==typeof fetch&&(void 0!==r&&r.fetch?i=r.fetch:"undefined"!=typeof window&&window.fetch&&(i=window.fetch)),"undefined"==typeof window||void 0===window.document){var o=i||n(154);o.default&&(o=o.default),t.default=o,e.exports=t.default}}).call(this,n(37))},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));
233
- /**
234
- * @license
235
- * Copyright 2020 Google LLC
236
- * SPDX-License-Identifier: Apache-2.0
237
- */
238
- class r{constructor(e){this.startPress=t=>{e().then(e=>{e&&e.startPress(t)})},this.endPress=()=>{e().then(e=>{e&&e.endPress()})},this.startFocus=()=>{e().then(e=>{e&&e.startFocus()})},this.endFocus=()=>{e().then(e=>{e&&e.endFocus()})},this.startHover=()=>{e().then(e=>{e&&e.startHover()})},this.endHover=()=>{e().then(e=>{e&&e.endHover()})}}}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){"use strict";var r=n(308);n.d(t,"a",(function(){return r.a}));n(307)},function(e,t,n){(function(e){var r=n(26),i=n(189),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||i;e.exports=c}).call(this,n(68)(e))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(52);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return a(e,[])}function a(e,t){switch(i(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),i=function(e){var t=e[String(r.a)];if("function"==typeof t)return t;if("function"==typeof e.inspect)return e.inspect}(e);if(void 0!==i){var o=i.call(e);if(o!==e)return"string"==typeof o?o:a(o,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,i=[],o=0;o<n;++o)i.push(a(e[o],t));1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items"));return"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]";return"{ "+n.map((function(n){return n+": "+a(e[n],t)})).join(", ")+" }"}(e,n)}(e,t);default:return String(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,n){var r=n(38)(n(26),"Map");e.exports=r},function(e,t,n){var r=n(104),i=n(147),o=n(88);e.exports=function(e){return o(e)?r(e):i(e)}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(100),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s}).call(this,n(68)(e))},function(e,t,n){var r=n(104),i=n(194),o=n(88);e.exports=function(e){return o(e)?r(e,!0):i(e)}},function(e,t,n){var r=n(199),i=n(107),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},function(e,t,n){var r=n(120);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=n(62);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Object(i.a)(e,t,n[t])}))}return e}var a=n(23),s=n(24),c=n(112),u=n.n(c);function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t){if(t&&("object"===u()(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}var v={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},m=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(a.a)(this,e),this.init(t,n)}return Object(s.a)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||v,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,o({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),g=function(){function e(){Object(a.a)(this,e),this.observers={}}return Object(s.a)(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var i=[].concat(this.observers[e]);i.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var o=[].concat(this.observers["*"]);o.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function b(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function y(e){return null==e?"":""+e}function w(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function O(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return i()?{}:{obj:e,k:r(o.shift())}}function x(e,t,n){var r=O(e,t,Object);r.obj[r.k]=n}function _(e,t){var n=O(e,t),r=n.obj,i=n.k;if(r)return r[i]}function E(e,t,n){var r=_(e,n);return void 0!==r?r:_(t,n)}function j(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):j(e[r],t[r],n):e[r]=t[r]);return e}function k(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var S={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function P(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return S[e]})):e}var T="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,A=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Object(a.a)(this,t),n=d(this,p(t).call(this)),T&&g.call(l(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return h(t,e),Object(s.a)(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=[e,t];return n&&"string"!=typeof n&&(o=o.concat(n)),n&&"string"==typeof n&&(o=o.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(o=e.split(".")),_(this.data,o)}},{key:"addResource",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var a=[e,t];n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),x(this.data,a,r),i.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in n)"string"!=typeof n[i]&&"[object Array]"!==Object.prototype.toString.apply(n[i])||this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(s=e.split("."))[1]),this.addNamespaces(t);var c=_(this.data,s)||{};r?j(c,n,i):c=o({},c,n),x(this.data,s,c),a.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?o({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(g),C={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,i){var o=this;return e.forEach((function(e){o.processors[e]&&(t=o.processors[e].process(t,n,r,i))})),t}},R={},I=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(a.a)(this,t),n=d(this,p(t).call(this)),T&&g.call(l(n)),w(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,l(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=m.create("translator"),n}return h(t,e),Object(s.a)(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var o=e.match(this.interpolator.nestingRegexp);if(o&&o.length>0)return{key:e,namespaces:i};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(r)}return"string"==typeof i&&(i=[i]),{key:e,namespaces:i}}},{key:"translate",value:function(e,n,i){var a=this;if("object"!==r(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var s=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,c=this.extractFromKey(e[e.length-1],n),u=c.key,l=c.namespaces,d=l[l.length-1],p=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&"cimode"===p.toLowerCase()){if(f){var h=n.nsSeparator||this.options.nsSeparator;return d+h+u}return u}var v=this.resolve(e,n),m=v&&v.res,g=v&&v.usedKey||u,b=v&&v.exactUsedKey||u,y=Object.prototype.toString.apply(m),w=["[object Number]","[object Function]","[object RegExp]"],O=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,_="string"!=typeof m&&"boolean"!=typeof m&&"number"!=typeof m;if(x&&m&&_&&w.indexOf(y)<0&&("string"!=typeof O||"[object Array]"!==y)){if(!n.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,m,n):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(s){var E="[object Array]"===y,j=E?[]:{},k=E?b:g;for(var S in m)if(Object.prototype.hasOwnProperty.call(m,S)){var P="".concat(k).concat(s).concat(S);j[S]=this.translate(P,o({},n,{joinArrays:!1,ns:l})),j[S]===P&&(j[S]=m[S])}m=j}}else if(x&&"string"==typeof O&&"[object Array]"===y)(m=m.join(O))&&(m=this.extendTranslation(m,e,n,i));else{var T=!1,A=!1,C=void 0!==n.count&&"string"!=typeof n.count,R=t.hasDefaultValue(n),I=C?this.pluralResolver.getSuffix(p,n.count):"",N=n["defaultValue".concat(I)]||n.defaultValue;!this.isValidLookup(m)&&R&&(T=!0,m=N),this.isValidLookup(m)||(A=!0,m=u);var L=R&&N!==m&&this.options.updateMissing;if(A||T||L){if(this.logger.log(L?"updateKey":"missingKey",p,d,u,L?N:m),s){var D=this.resolve(u,o({},n,{keySeparator:!1}));D&&D.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var M=[],F=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&F&&F[0])for(var B=0;B<F.length;B++)M.push(F[B]);else"all"===this.options.saveMissingTo?M=this.languageUtils.toResolveHierarchy(n.lng||this.language):M.push(n.lng||this.language);var z=function(e,t,r){a.options.missingKeyHandler?a.options.missingKeyHandler(e,d,t,L?r:m,L,n):a.backendConnector&&a.backendConnector.saveMissing&&a.backendConnector.saveMissing(e,d,t,L?r:m,L,n),a.emit("missingKey",e,d,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&C?M.forEach((function(e){a.pluralResolver.getSuffixes(e).forEach((function(t){z([e],u+t,n["defaultValue".concat(t)]||N)}))})):z(M,u,N))}m=this.extendTranslation(m,e,n,v,i),A&&m===u&&this.options.appendNamespaceToMissingKey&&(m="".concat(d,":").concat(u)),A&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(m))}return m}},{key:"extendTranslation",value:function(e,t,n,r,i){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(o({},n,{interpolation:o({},this.options.interpolation,n.interpolation)}));var s,c=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(c){var u=e.match(this.interpolator.nestingRegexp);s=u&&u.length}var l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=o({},this.options.interpolation.defaultVariables,l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),c){var d=e.match(this.interpolator.nestingRegexp);s<(d&&d.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return i&&i[0]===r[0]&&!n.context?(a.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):a.translate.apply(a,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var p=n.postProcess||this.options.postProcess,f="string"==typeof p?[p]:p;return null!=e&&f&&f.length&&!1!==n.applyPostProcessor&&(e=C.handle(f,e,t,this.options&&this.options.postProcessPassResolved?o({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,i,o,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var c=a.extractFromKey(e,s),u=c.key;n=u;var l=c.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var d=void 0!==s.count&&"string"!=typeof s.count,p=void 0!==s.context&&"string"==typeof s.context&&""!==s.context,f=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);l.forEach((function(e){a.isValidLookup(t)||(o=e,!R["".concat(f[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(o)&&(R["".concat(f[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(f.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach((function(n){if(!a.isValidLookup(t)){i=n;var o,c,l=u,f=[l];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(f,u,n,e,s);else d&&(o=a.pluralResolver.getSuffix(n,s.count)),d&&p&&f.push(l+o),p&&f.push(l+="".concat(a.options.contextSeparator).concat(s.context)),d&&f.push(l+=o);for(;c=f.pop();)a.isValidLookup(t)||(r=c,t=a.getResource(n,e,c,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,"defaultValue".length)&&void 0!==e[t])return!0;return!1}}]),t}(g);function N(e){return e.charAt(0).toUpperCase()+e.slice(1)}var L=function(){function e(t){Object(a.a)(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=m.create("languageUtils")}return Object(s.a)(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=N(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=N(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=N(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],o=function(e){e&&(n.isSupportedCode(e)?i.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),r.forEach((function(e){i.indexOf(e)<0&&o(n.formatLanguageCode(e))})),i}}]),e}(),D=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],M={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function F(){var e={};return D.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:M[t.fc]}}))})),e}var B=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(a.a)(this,e),this.languageUtils=t,this.options=n,this.logger=m.create("pluralResolver"),this.rules=F()}return Object(s.a)(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var i=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),o=r.numbers[i];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var a=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),z=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(a.a)(this,e),this.logger=m.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return Object(s.a)(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:P,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?k(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?k(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?k(t.nestingPrefix):t.nestingPrefixEscaped||k("$t("),this.nestingSuffix=t.nestingSuffix?k(t.nestingSuffix):t.nestingSuffixEscaped||k(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var i,o,a,s=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var l=function(e){if(e.indexOf(s.formatSeparator)<0){var i=E(t,c,e);return s.alwaysFormat?s.format(i,void 0,n):i}var o=e.split(s.formatSeparator),a=o.shift().trim(),u=o.join(s.formatSeparator).trim();return s.format(E(t,c,a),u,n,r)};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,p=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?u(s.escape(e)):u(e)}}].forEach((function(t){for(a=0;i=t.regex.exec(e);){if(void 0===(o=l(i[1].trim())))if("function"==typeof d){var n=d(e,i,r);o="string"==typeof n?n:""}else{if(p){o=i[0];continue}s.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(e)),o=""}else"string"==typeof o||s.useRawValueToEscape||(o=y(o));if(e=e.replace(i[0],t.safeValue(o)),t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=o({},a);function c(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),i="{".concat(r[1]);e=r[0],i=(i=this.interpolate(i,s)).replace(/'/g,'"');try{s=JSON.parse(i),t&&(s=o({},t,s))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(i)}return delete s.defaultValue,e}for(s.applyPostProcessor=!1,delete s.defaultValue;n=this.nestingRegexp.exec(e);){var u=[],l=!1;if(n[0].includes(this.formatSeparator)&&!/{.*}/.test(n[1])){var d=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=d.shift(),u=d,l=!0}if((r=t(c.call(this,n[1].trim(),s),s))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=y(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),l&&(r=u.reduce((function(e,t){return i.format(e,t,a.lng,a)}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();var q=function(e){function t(e,n,r){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Object(a.a)(this,t),i=d(this,p(t).call(this)),T&&g.call(l(i)),i.backend=e,i.store=n,i.services=r,i.languageUtils=r.languageUtils,i.options=o,i.logger=m.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,o.backend,o),i}return h(t,e),Object(s.a)(t,[{key:"queueLoad",value:function(e,t,n,r){var i=this,o=[],a=[],s=[],c=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&i.store.hasResourceBundle(e,t)?i.state[s]=2:i.state[s]<0||(1===i.state[s]?a.indexOf(s)<0&&a.push(s):(i.state[s]=1,r=!1,a.indexOf(s)<0&&a.push(s),o.indexOf(s)<0&&o.push(s),c.indexOf(t)<0&&c.push(t)))})),r||s.push(e)})),(o.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:o,pending:a,toLoadLanguages:s,toLoadNamespaces:c}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),n&&this.store.addResourceBundle(i,o,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var r,s,c,u,l,d;r=n.loaded,s=o,u=O(r,[i],Object),l=u.obj,d=u.k,l[d]=l[d]||[],c&&(l[d]=l[d].concat(s)),c||l[d].push(s),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(s,c){s&&c&&i<5?setTimeout((function(){r.read.call(r,e,t,n,i+1,2*o,a)}),o):a(s,c)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var o=this.queueLoad(e,t,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(i," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(i),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,o({},a,{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}(g);function U(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===r(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===r(e[2])||"object"===r(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function V(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Q(){}var H=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(Object(a.a)(this,t),e=d(this,p(t).call(this)),T&&g.call(l(e)),e.options=V(n),e.services={},e.logger=m,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),d(e,l(e));setTimeout((function(){e.init(n,r)}),0)}return e}return h(t,e),Object(s.a)(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=o({},U(),this.options,V(t)),this.format=this.options.interpolation.format,n||(n=Q),!this.options.isClone){this.modules.logger?m.init(r(this.modules.logger),this.options):m.init(null,this.options);var i=new L(this.options);this.store=new A(this.options.resources,this.options);var a=this.services;a.logger=m,a.resourceStore=this.store,a.languageUtils=i,a.pluralResolver=new B(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new z(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new q(r(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(a.languageDetector=r(this.modules.languageDetector),a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=r(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new I(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&"dev"!==s[0]&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var c=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];c.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var u=["addResource","addResources","addResourceBundle","removeResourceBundle"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var l=b(),d=function(){var t=function(t,r){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),l.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),l}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Q,r=n,i="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase())return r();var o=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};if(i)a(i);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(o,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=b();return e||(e=this.languages),t||(t=this.options.ns),n||(n=Q),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&C.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=b();this.emit("languageChanging",e);var i=function(e){var i="string"==typeof e?e:n.services.languageUtils.getBestMatchFromCodes(e);i&&(n.language||(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i)),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,(function(e){!function(e,i){i?(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i),n.translator.changeLanguage(i),n.isLanguageChangingTo=void 0,n.emit("languageChanged",i),n.logger.log("languageChanged",i)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,i)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t){var n=this,i=function e(t,i){var a;if("object"!==r(i)){for(var s=arguments.length,c=new Array(s>2?s-2:0),u=2;u<s;u++)c[u-2]=arguments[u];a=n.options.overloadTranslationOptionHandler([t,i].concat(c))}else a=o({},i);return a.lng=a.lng||e.lng,a.lngs=a.lngs||e.lngs,a.ns=a.ns||e.ns,n.t(t,a)};return"string"==typeof e?i.lng=e:i.lngs=e,i.ns=t,i}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],i=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(r,e)||(!this.services.backendConnector.backend||!(!a(r,e)||i&&!a(o,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=b();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=b();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],i=e.filter((function(e){return r.indexOf(e)<0}));return i.length?(this.options.preload=r.concat(i),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Q,i=o({},this.options,n,{isClone:!0}),a=new t(i),s=["store","services","language"];return s.forEach((function(t){a[t]=e[t]})),a.services=o({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new I(a.services,a.options),a.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];a.emit.apply(a,[e].concat(n))})),a.init(i,r),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}}]),t}(g));t.a=H},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));
239
- /**
240
- @license
241
- Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
242
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
243
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
244
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
245
- Code distributed by Google as part of the polymer project is also
246
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
247
- */
248
- var r=e=>t=>class extends t{connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._storeUnsubscribe=e.subscribe(()=>this.stateChanged(e.getState())),this.stateChanged(e.getState())}disconnectedCallback(){this._storeUnsubscribe(),super.disconnectedCallback&&super.disconnectedCallback()}stateChanged(e){}}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){"use strict";function r(e){var t=e.split(/\r\n|[\n\r]/g),n=o(e);if(0!==n)for(var r=1;r<t.length;r++)t[r]=t[r].slice(n);for(var a=0;a<t.length&&i(t[a]);)++a;for(var s=t.length;s>a&&i(t[s-1]);)--s;return t.slice(a,s).join("\n")}function i(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}function o(e){for(var t,n=!0,r=!0,i=0,o=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:n=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!n&&(null===o||i<o)&&(o=i),r=!1}return null!==(t=o)&&void 0!==t?t:0}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],s=!r||o||a||n,c="";return!s||r&&i||(c+="\n"+t),c+=t?e.replace(/\n/g,"\n"+t):e,s&&(c+="\n"),'"""'+c.replace(/"""/g,'\\"""')+'"""'}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a}))},,function(e,t,n){"use strict";n.r(t),n.d(t,"print",(function(){return o}));var r=n(20),i=n(79);function o(e){return Object(r.c)(e,{leave:a})}var a={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return c(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=l("(",c(e.variableDefinitions,", "),")"),i=c(e.directives," "),o=e.selectionSet;return n||i||r||"query"!==t?c([t,c([n,r]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+l(" = ",r)+l(" ",c(i," "))},SelectionSet:function(e){return u(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,o=e.selectionSet,a=l("",t,": ")+n,s=a+l("(",c(r,", "),")");return s.length>80&&(s=a+l("(\n",d(c(r,"\n")),"\n)")),c([s,c(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+l(" ",c(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return c(["...",l("on ",t),c(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(l("(",c(r,", "),")")," ")+"on ".concat(n," ").concat(l("",c(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?Object(i.c)(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+c(e.values,", ")+"]"},ObjectValue:function(e){return"{"+c(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+l("(",c(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:s((function(e){var t=e.directives,n=e.operationTypes;return c(["schema",c(t," "),u(n)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:s((function(e){return c(["scalar",e.name,c(e.directives," ")]," ")})),ObjectTypeDefinition:s((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return c(["type",t,l("implements ",c(n," & ")),c(r," "),u(i)]," ")})),FieldDefinition:s((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(f(n)?l("(\n",d(c(n,"\n")),"\n)"):l("(",c(n,", "),")"))+": "+r+l(" ",c(i," "))})),InputValueDefinition:s((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return c([t+": "+n,l("= ",r),c(i," ")]," ")})),InterfaceTypeDefinition:s((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return c(["interface",t,l("implements ",c(n," & ")),c(r," "),u(i)]," ")})),UnionTypeDefinition:s((function(e){var t=e.name,n=e.directives,r=e.types;return c(["union",t,c(n," "),r&&0!==r.length?"= "+c(r," | "):""]," ")})),EnumTypeDefinition:s((function(e){var t=e.name,n=e.directives,r=e.values;return c(["enum",t,c(n," "),u(r)]," ")})),EnumValueDefinition:s((function(e){return c([e.name,c(e.directives," ")]," ")})),InputObjectTypeDefinition:s((function(e){var t=e.name,n=e.directives,r=e.fields;return c(["input",t,c(n," "),u(r)]," ")})),DirectiveDefinition:s((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(f(n)?l("(\n",d(c(n,"\n")),"\n)"):l("(",c(n,", "),")"))+(r?" repeatable":"")+" on "+c(i," | ")})),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return c(["extend schema",c(t," "),u(n)]," ")},ScalarTypeExtension:function(e){return c(["extend scalar",e.name,c(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return c(["extend type",t,l("implements ",c(n," & ")),c(r," "),u(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return c(["extend interface",t,l("implements ",c(n," & ")),c(r," "),u(i)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return c(["extend union",t,c(n," "),r&&0!==r.length?"= "+c(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return c(["extend enum",t,c(n," "),u(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return c(["extend input",t,c(n," "),u(r)]," ")}};function s(e){return function(t){return c([t.description,e(t)],"\n")}}function c(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function u(e){return l("{\n",d(c(e,"\n")),"\n}")}function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function d(e){return l(" ",e.replace(/\n/g,"\n "))}function p(e){return-1!==e.indexOf("\n")}function f(e){return null!=e&&e.some(p)}},function(e,t,n){var r=n(249);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){"use strict";n.r(t),function(e,r){var i,o=n(138);i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var a=Object(o.a)(i);t.default=a}.call(this,n(37),n(266)(e))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(123),i=n(52);function o(e){var t=e.prototype.toJSON;"function"==typeof t||Object(r.a)(0),e.prototype.inspect=t,i.a&&(e.prototype[i.a]=t)}},,,,function(e,t,n){var r=n(99),i=n(105);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},,function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return c}));
249
- /**
250
- * @license
251
- * Copyright 2018 Google LLC
252
- * SPDX-License-Identifier: Apache-2.0
253
- */
254
- var r=e=>e.nodeType===Node.ELEMENT_NODE;function i(e){return{addClass:t=>{e.classList.add(t)},removeClass:t=>{e.classList.remove(t)},hasClass:t=>e.classList.contains(t)}}var o=()=>{},a={get passive(){return!0,!1}};document.addEventListener("x",o,a),document.removeEventListener("x",o);var s=(e=window.document)=>{var t=e.activeElement,n=[];if(!t)return n;for(;t&&(n.push(t),t.shadowRoot);)t=t.shadowRoot.activeElement;return n},c=e=>{var t=s();if(!t.length)return!1;var n=t[t.length-1],r=new Event("check-if-focused",{bubbles:!0,composed:!0}),i=[],o=e=>{i=e.composedPath()};return document.body.addEventListener("check-if-focused",o),n.dispatchEvent(r),document.body.removeEventListener("check-if-focused",o),-1!==i.indexOf(e)}},function(e,t,n){var r=n(191),i=n(71),o=n(72),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(5),i=new WeakMap,o=Object(r.f)(e=>t=>{if(!(t instanceof r.a)||t instanceof r.e||"style"!==t.committer.name||t.committer.parts.length>1)throw new Error("The `styleMap` directive must be used in the style attribute and must be the only part in the attribute.");var{committer:n}=t,{style:o}=n.element,a=i.get(t);for(var s in void 0===a&&(o.cssText=n.strings.join(" "),i.set(t,a=new Set)),a.forEach(t=>{t in e||(a.delete(t),-1===t.indexOf("-")?o[t]=null:o.removeProperty(t))}),e)a.add(s),-1===s.indexOf("-")?o[s]=e[s]:o.setProperty(s,e[s])});
255
- /**
256
- * @license
257
- * Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
258
- * This code may only be used under the BSD style license found at
259
- * http://polymer.github.io/LICENSE.txt
260
- * The complete set of authors may be found at
261
- * http://polymer.github.io/AUTHORS.txt
262
- * The complete set of contributors may be found at
263
- * http://polymer.github.io/CONTRIBUTORS.txt
264
- * Code distributed by Google as part of the polymer project is also
265
- * subject to an additional IP rights grant found at
266
- * http://polymer.github.io/PATENTS.txt
267
- */},,function(e,t,n){"use strict";var r,i,o,a,s,c=n(1),u=n(0),l=(n(42),n(122),n(63)),d=n(32);function p(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}
268
- /**
269
- * @license
270
- * Copyright 2019 Google LLC
271
- * SPDX-License-Identifier: Apache-2.0
272
- */class f extends u.a{constructor(){super(...arguments),this.raised=!1,this.unelevated=!1,this.outlined=!1,this.dense=!1,this.disabled=!1,this.trailingIcon=!1,this.fullwidth=!1,this.icon="",this.label="",this.expandContent=!1,this.shouldRenderRipple=!1,this.rippleHandlers=new l.a(()=>(this.shouldRenderRipple=!0,this.ripple))}renderOverlay(){return Object(u.e)(r||(r=p([""])))}renderRipple(){var e=this.raised||this.unelevated;return this.shouldRenderRipple?Object(u.e)(i||(i=p(['<mwc-ripple class="ripple" .primary="','" .disabled="','"></mwc-ripple>'])),!e,this.disabled):""}focus(){var e=this.buttonElement;e&&(this.rippleHandlers.startFocus(),e.focus())}blur(){var e=this.buttonElement;e&&(this.rippleHandlers.endFocus(),e.blur())}getRenderClasses(){return Object(d.a)({"mdc-button--raised":this.raised,"mdc-button--unelevated":this.unelevated,"mdc-button--outlined":this.outlined,"mdc-button--dense":this.dense})}render(){return Object(u.e)(o||(o=p(['\n <button\n id="button"\n class="mdc-button ','"\n ?disabled="','"\n aria-label="','"\n @focus="','"\n @blur="','"\n @mousedown="','"\n @mouseenter="','"\n @mouseleave="','"\n @touchstart="','"\n @touchend="','"\n @touchcancel="','">\n ',"\n ",'\n <span class="leading-icon">\n <slot name="icon">\n ','\n </slot>\n </span>\n <span class="mdc-button__label">','</span>\n <span class="slot-container ','">\n <slot></slot>\n </span>\n <span class="trailing-icon">\n <slot name="trailingIcon">\n ',"\n </slot>\n </span>\n </button>"])),this.getRenderClasses(),this.disabled,this.label||this.icon,this.handleRippleFocus,this.handleRippleBlur,this.handleRippleActivate,this.handleRippleMouseEnter,this.handleRippleMouseLeave,this.handleRippleActivate,this.handleRippleDeactivate,this.handleRippleDeactivate,this.renderOverlay(),this.renderRipple(),this.icon&&!this.trailingIcon?this.renderIcon():"",this.label,Object(d.a)({flex:this.expandContent}),this.icon&&this.trailingIcon?this.renderIcon():"")}renderIcon(){return Object(u.e)(a||(a=p(['\n <mwc-icon class="mdc-button__icon">\n ',"\n </mwc-icon>"])),this.icon)}handleRippleActivate(e){var t=()=>{window.removeEventListener("mouseup",t),this.handleRippleDeactivate()};window.addEventListener("mouseup",t),this.rippleHandlers.startPress(e)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}}f.shadowRootOptions={mode:"open",delegatesFocus:!0},Object(c.c)([Object(u.f)({type:Boolean,reflect:!0})],f.prototype,"raised",void 0),Object(c.c)([Object(u.f)({type:Boolean,reflect:!0})],f.prototype,"unelevated",void 0),Object(c.c)([Object(u.f)({type:Boolean,reflect:!0})],f.prototype,"outlined",void 0),Object(c.c)([Object(u.f)({type:Boolean})],f.prototype,"dense",void 0),Object(c.c)([Object(u.f)({type:Boolean,reflect:!0})],f.prototype,"disabled",void 0),Object(c.c)([Object(u.f)({type:Boolean,attribute:"trailingicon"})],f.prototype,"trailingIcon",void 0),Object(c.c)([Object(u.f)({type:Boolean,reflect:!0})],f.prototype,"fullwidth",void 0),Object(c.c)([Object(u.f)({type:String})],f.prototype,"icon",void 0),Object(c.c)([Object(u.f)({type:String})],f.prototype,"label",void 0),Object(c.c)([Object(u.f)({type:Boolean})],f.prototype,"expandContent",void 0),Object(c.c)([Object(u.g)("#button")],f.prototype,"buttonElement",void 0),Object(c.c)([Object(u.i)("mwc-ripple")],f.prototype,"ripple",void 0),Object(c.c)([Object(u.j)()],f.prototype,"shouldRenderRipple",void 0),Object(c.c)([Object(u.d)({passive:!0})],f.prototype,"handleRippleActivate",null);
273
- /**
274
- * @license
275
- * Copyright 2021 Google LLC
276
- * SPDX-LIcense-Identifier: Apache-2.0
277
- */
278
- var h,v,m=Object(u.b)(s||(h=[".mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:0;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:#fff;background-color:var(--mdc-elevation-overlay-color, #fff)}.mdc-button{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-button-font-size, 0.875rem);line-height:2.25rem;line-height:var(--mdc-typography-button-line-height, 2.25rem);font-weight:500;font-weight:var(--mdc-typography-button-font-weight, 500);letter-spacing:0.0892857143em;letter-spacing:var(--mdc-typography-button-letter-spacing, 0.0892857143em);text-decoration:none;text-decoration:var(--mdc-typography-button-text-decoration, none);text-transform:uppercase;text-transform:var(--mdc-typography-button-text-transform, uppercase);position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:transparent}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;font-size:1.125rem;height:1.125rem;vertical-align:top;width:1.125rem}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--raised .mdc-button__icon,.mdc-button--unelevated .mdc-button__icon,.mdc-button--outlined .mdc-button__icon{margin-left:-4px;margin-right:8px}[dir=rtl] .mdc-button--raised .mdc-button__icon,[dir=rtl] .mdc-button--unelevated .mdc-button__icon,[dir=rtl] .mdc-button--outlined .mdc-button__icon,.mdc-button--raised .mdc-button__icon[dir=rtl],.mdc-button--unelevated .mdc-button__icon[dir=rtl],.mdc-button--outlined .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mdc-button--raised .mdc-button__label+.mdc-button__icon,.mdc-button--unelevated .mdc-button__label+.mdc-button__icon,.mdc-button--outlined .mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mdc-button--raised .mdc-button__label+.mdc-button__icon,[dir=rtl] .mdc-button--unelevated .mdc-button__label+.mdc-button__icon,[dir=rtl] .mdc-button--outlined .mdc-button__label+.mdc-button__icon,.mdc-button--raised .mdc-button__label+.mdc-button__icon[dir=rtl],.mdc-button--unelevated .mdc-button__label+.mdc-button__icon[dir=rtl],.mdc-button--outlined .mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button--raised{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2),0px 2px 2px 0px rgba(0, 0, 0, 0.14),0px 1px 5px 0px rgba(0,0,0,.12);transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--raised:hover,.mdc-button--raised:focus{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2),0px 4px 5px 0px rgba(0, 0, 0, 0.14),0px 1px 10px 0px rgba(0,0,0,.12)}.mdc-button--raised:active{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2),0px 8px 10px 1px rgba(0, 0, 0, 0.14),0px 3px 14px 2px rgba(0,0,0,.12)}.mdc-button--raised:disabled{box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.2),0px 0px 0px 0px rgba(0, 0, 0, 0.14),0px 0px 0px 0px rgba(0,0,0,.12)}.mdc-button--outlined{border-style:solid}.mdc-button{height:36px;border-radius:4px;border-radius:var(--mdc-shape-small, 4px);padding:0 8px 0 8px}.mdc-button:not(:disabled){color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}.mdc-button:disabled{color:rgba(0, 0, 0, 0.38)}.mdc-button .mdc-button__ripple{border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-button--raised,.mdc-button--unelevated{padding:0 16px 0 16px;height:36px;border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-button--raised:not(:disabled),.mdc-button--unelevated:not(:disabled){background-color:#6200ee;background-color:var(--mdc-theme-primary, #6200ee)}.mdc-button--raised:disabled,.mdc-button--unelevated:disabled{background-color:rgba(0, 0, 0, 0.12)}.mdc-button--raised:not(:disabled),.mdc-button--unelevated:not(:disabled){color:#fff;color:var(--mdc-theme-on-primary, #fff)}.mdc-button--raised:disabled,.mdc-button--unelevated:disabled{color:rgba(0, 0, 0, 0.38)}.mdc-button--raised .mdc-button__ripple,.mdc-button--unelevated .mdc-button__ripple{border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-button--outlined{height:36px;border-radius:4px;border-radius:var(--mdc-shape-small, 4px);padding:0 15px 0 15px;border-width:1px}.mdc-button--outlined:not(:disabled){color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}.mdc-button--outlined:disabled{color:rgba(0, 0, 0, 0.38)}.mdc-button--outlined .mdc-button__ripple{border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-button--outlined:not(:disabled){border-color:rgba(0, 0, 0, 0.12)}.mdc-button--outlined:disabled{border-color:rgba(0, 0, 0, 0.12)}.mdc-button--outlined.mdc-button--icon-trailing{padding:0 11px 0 15px}.mdc-button--outlined.mdc-button--icon-leading{padding:0 15px 0 11px}.mdc-button--outlined .mdc-button__ripple{top:-1px;left:-1px;border:1px solid transparent}.mdc-button--outlined .mdc-button__touch{left:-1px;width:calc(100% + 2 * 1px)}:host{display:inline-flex;outline:none;-webkit-tap-highlight-color:transparent;vertical-align:top}:host([fullwidth]){width:100%}:host([raised]),:host([unelevated]){--mdc-ripple-color:#fff;--mdc-ripple-focus-opacity:0.24;--mdc-ripple-hover-opacity:0.08;--mdc-ripple-press-opacity:0.24}.trailing-icon ::slotted(*),.trailing-icon .mdc-button__icon,.leading-icon ::slotted(*),.leading-icon .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;font-size:1.125rem;height:1.125rem;vertical-align:top;width:1.125rem}[dir=rtl] .trailing-icon ::slotted(*),[dir=rtl] .trailing-icon .mdc-button__icon,[dir=rtl] .leading-icon ::slotted(*),[dir=rtl] .leading-icon .mdc-button__icon,.trailing-icon ::slotted(*[dir=rtl]),.trailing-icon .mdc-button__icon[dir=rtl],.leading-icon ::slotted(*[dir=rtl]),.leading-icon .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.trailing-icon ::slotted(*),.trailing-icon .mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .trailing-icon ::slotted(*),[dir=rtl] .trailing-icon .mdc-button__icon,.trailing-icon ::slotted(*[dir=rtl]),.trailing-icon .mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}.slot-container{display:inline-flex;align-items:center;justify-content:center}.slot-container.flex{flex:auto}.mdc-button{flex:auto;overflow:hidden;padding-left:8px;padding-left:var(--mdc-button-horizontal-padding, 8px);padding-right:8px;padding-right:var(--mdc-button-horizontal-padding, 8px)}.mdc-button--raised{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-button-raised-box-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mdc-button--raised:focus{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-button-raised-box-shadow-focus, var(--mdc-button-raised-box-shadow-hover, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12)))}.mdc-button--raised:hover{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-button-raised-box-shadow-hover, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mdc-button--raised:active{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-button-raised-box-shadow-active, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mdc-button--raised:disabled{box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-button-raised-box-shadow-disabled, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mdc-button--raised,.mdc-button--unelevated{padding-left:16px;padding-left:var(--mdc-button-horizontal-padding, 16px);padding-right:16px;padding-right:var(--mdc-button-horizontal-padding, 16px)}.mdc-button--outlined{border-width:1px;border-width:var(--mdc-button-outline-width, 1px);padding-left:calc(16px - 1px);padding-left:calc(var(--mdc-button-horizontal-padding, 16px) - var(--mdc-button-outline-width, 1px));padding-right:calc(16px - 1px);padding-right:calc(var(--mdc-button-horizontal-padding, 16px) - var(--mdc-button-outline-width, 1px))}.mdc-button--outlined:not(:disabled){border-color:rgba(0, 0, 0, 0.12);border-color:var(--mdc-button-outline-color, rgba(0, 0, 0, 0.12))}.mdc-button--outlined .ripple{top:calc(-1 * 1px);top:calc(-1 * var(--mdc-button-outline-width, 1px));left:calc(-1 * 1px);left:calc(-1 * var(--mdc-button-outline-width, 1px));right:initial;right:initial;border-width:1px;border-width:var(--mdc-button-outline-width, 1px);border-style:solid;border-color:transparent}[dir=rtl] .mdc-button--outlined .ripple,.mdc-button--outlined .ripple[dir=rtl]{left:initial;left:initial;right:calc(-1 * 1px);right:calc(-1 * var(--mdc-button-outline-width, 1px))}.mdc-button--dense{height:28px;margin-top:0;margin-bottom:0}.mdc-button--dense .mdc-button__touch{display:none}:host([disabled]){pointer-events:none}:host([disabled]) .mdc-button{color:rgba(0, 0, 0, 0.38);color:var(--mdc-button-disabled-ink-color, rgba(0, 0, 0, 0.38))}:host([disabled]) .mdc-button--raised,:host([disabled]) .mdc-button--unelevated{background-color:rgba(0, 0, 0, 0.12);background-color:var(--mdc-button-disabled-fill-color, rgba(0, 0, 0, 0.12))}:host([disabled]) .mdc-button--outlined{border-color:rgba(0, 0, 0, 0.12);border-color:var(--mdc-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}"],v||(v=h.slice(0)),s=Object.freeze(Object.defineProperties(h,{raw:{value:Object.freeze(v)}})))),g=class extends f{};
279
- /**
280
- * @license
281
- * Copyright 2018 Google LLC
282
- * SPDX-License-Identifier: Apache-2.0
283
- */g.styles=[m],g=Object(c.c)([Object(u.c)("mwc-button")],g)},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,u=[],l=!1,d=-1;function p(){l&&c&&(l=!1,c.length?u=c.concat(u):d=-1,u.length&&f())}function f(){if(!l){var e=s(p);l=!0;for(var t=u.length;t;){for(c=u,u=[];++d<t;)c&&c[d].run();d=-1,t=u.length}c=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function v(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||l||s(f)},h.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=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,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,n){var r=n(36),i=n(273),o=n(274),a=Math.max,s=Math.min;e.exports=function(e,t,n){var c,u,l,d,p,f,h=0,v=!1,m=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=c,r=u;return c=u=void 0,h=t,d=e.apply(r,n)}function y(e){return h=e,p=setTimeout(O,t),v?b(e):d}function w(e){var n=e-f;return void 0===f||n>=t||n<0||m&&e-h>=l}function O(){var e=i();if(w(e))return x(e);p=setTimeout(O,function(e){var n=t-(e-f);return m?s(n,l-(e-h)):n}(e))}function x(e){return p=void 0,g&&c?b(e):(c=u=void 0,d)}function _(){var e=i(),n=w(e);if(c=arguments,u=this,f=e,n){if(void 0===p)return y(f);if(m)return clearTimeout(p),p=setTimeout(O,t),b(f)}return void 0===p&&(p=setTimeout(O,t)),d}return t=o(t)||0,r(n)&&(v=!!n.leading,l=(m="maxWait"in n)?a(o(n.maxWait)||0,t):l,g="trailing"in n?!!n.trailing:g),_.cancel=function(){void 0!==p&&clearTimeout(p),h=0,c=f=u=p=void 0},_.flush=function(){return void 0===p?d:x(i())},_}},function(e,t,n){var r=n(155);e.exports=function(e){return r(e,5)}},function(e,t,n){var r=n(49),i=n(36);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(37))},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(103),i=n(78),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(185);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(187),i=n(146),o=n(47),a=n(66),s=n(190),c=n(91),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),l=!n&&i(e),d=!n&&!l&&a(e),p=!n&&!l&&!d&&c(e),f=n||l||d||p,h=f?r(e.length,String):[],v=h.length;for(var m in e)!t&&!u.call(e,m)||f&&("length"==m||d&&("offset"==m||"parent"==m)||p&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,v))||h.push(m);return h}},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(n){return e(t(n))}}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(109),i=n(110),o=n(74),a=n(107),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},function(e,t,n){var r=n(106)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(109),i=n(47);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=n=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var r=n(23),i=n(24),o=[],a=o.forEach,s=o.slice;function c(e){return a.call(s.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}var u=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,l=function(e,t,n){var r=n||{};r.path=r.path||"/";var i=e+"="+encodeURIComponent(t);if(r.maxAge>0){var o=r.maxAge-0;if(isNaN(o))throw new Error("maxAge should be a Number");i+="; Max-Age="+Math.floor(o)}if(r.domain){if(!u.test(r.domain))throw new TypeError("option domain is invalid");i+="; Domain="+r.domain}if(r.path){if(!u.test(r.path))throw new TypeError("option path is invalid");i+="; Path="+r.path}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");i+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(i+="; HttpOnly"),r.secure&&(i+="; Secure"),r.sameSite)switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return i},d=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};n&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+60*n*1e3)),r&&(i.domain=r),document.cookie=l(e,encodeURIComponent(t),i)},p=function(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var i=n[r];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return null},f={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&"undefined"!=typeof document){var n=p(e.lookupCookie);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&"undefined"!=typeof document&&d(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain,t.cookieOptions)}},h={name:"querystring",lookup:function(e){var t;if("undefined"!=typeof window)for(var n=window.location.search.substring(1).split("&"),r=0;r<n.length;r++){var i=n[r].indexOf("=");if(i>0)n[r].substring(0,i)===e.lookupQuerystring&&(t=n[r].substring(i+1))}return t}},v=null,m=function(){if(null!==v)return v;try{v="undefined"!==window&&null!==window.localStorage;window.localStorage.setItem("i18next.translate.boo","foo"),window.localStorage.removeItem("i18next.translate.boo")}catch(e){v=!1}return v},g={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&m()){var n=window.localStorage.getItem(e.lookupLocalStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&m()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},b=null,y=function(){if(null!==b)return b;try{b="undefined"!==window&&null!==window.sessionStorage;window.sessionStorage.setItem("i18next.translate.boo","foo"),window.sessionStorage.removeItem("i18next.translate.boo")}catch(e){b=!1}return b},w={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&y()){var n=window.sessionStorage.getItem(e.lookupSessionStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&y()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},O={name:"navigator",lookup:function(e){var t=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var n=0;n<navigator.languages.length;n++)t.push(navigator.languages[n]);navigator.userLanguage&&t.push(navigator.userLanguage),navigator.language&&t.push(navigator.language)}return t.length>0?t:void 0}},x={name:"htmlTag",lookup:function(e){var t,n=e.htmlTag||("undefined"!=typeof document?document.documentElement:null);return n&&"function"==typeof n.getAttribute&&(t=n.getAttribute("lang")),t}},_={name:"path",lookup:function(e){var t;if("undefined"!=typeof window){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if("number"==typeof e.lookupFromPathIndex){if("string"!=typeof n[e.lookupFromPathIndex])return;t=n[e.lookupFromPathIndex].replace("/","")}else t=n[0].replace("/","")}return t}},E={name:"subdomain",lookup:function(e){var t;if("undefined"!=typeof window){var n=window.location.href.match(/(?:http[s]*\:\/\/)*(.*?)\.(?=[^\/]*\..{2,5})/gi);n instanceof Array&&(t="number"==typeof e.lookupFromSubdomainIndex?n[e.lookupFromSubdomainIndex].replace("http://","").replace("https://","").replace(".",""):n[0].replace("http://","").replace("https://","").replace(".",""))}return t}};var j=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(r.a)(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return Object(i.a)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=c(t,this.options||{},{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(f),this.addDetector(h),this.addDetector(g),this.addDetector(w),this.addDetector(O),this.addDetector(x),this.addDetector(_),this.addDetector(E)}},{key:"addDetector",value:function(e){this.detectors[e.name]=e}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var n=[];return e.forEach((function(e){if(t.detectors[e]){var r=t.detectors[e].lookup(t.options);r&&"string"==typeof r&&(r=[r]),r&&(n=n.concat(r))}})),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}},{key:"cacheUserLanguage",value:function(e,t){var n=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach((function(t){n.detectors[t]&&n.detectors[t].cacheUserLanguage(e,n.options)})))}}]),e}();j.type="languageDetector",t.a=j},function(e,t,n){"use strict";var r=n(34),i=n(115);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:function(e){return JSON.parse(e)},stringify:JSON.stringify,parsePayload:function(e,t,n){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n||"")},request:i.a,reloadInterval:"undefined"==typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},c=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};o(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}var t,n,i;return t=e,(n=[{key:"init",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=Object(r.a)(n,this.options||{},s()),this.allOptions=i,this.services&&this.options.reloadInterval&&setInterval((function(){return t.reload()}),this.options.reloadInterval)}},{key:"readMulti",value:function(e,t,n){this._readAny(e,e,t,t,n)}},{key:"read",value:function(e,t,n){this._readAny([e],e,[t],t,n)}},{key:"_readAny",value:function(e,t,n,i,o){var a=this,s=this.options.loadPath;"function"==typeof this.options.loadPath&&(s=this.options.loadPath(e,n)),(s=Object(r.c)(s)).then((function(r){var s=a.services.interpolator.interpolate(r,{lng:e.join("+"),ns:n.join("+")});a.loadUrl(s,o,t,i)}))}},{key:"loadUrl",value:function(e,t,n,r){var i=this;this.options.request(this.options,e,void 0,(function(o,a){if(a&&(a.status>=500&&a.status<600||!a.status))return t("failed loading "+e+"; status code: "+a.status,!0);if(a&&a.status>=400&&a.status<500)return t("failed loading "+e+"; status code: "+a.status,!1);if(!a&&o&&o.message&&o.message.indexOf("Failed to fetch")>-1)return t("failed loading "+e+": "+o.message,!0);if(o)return t(o,!1);var s,c;try{s="string"==typeof a.data?i.options.parse(a.data,n,r):a.data}catch(t){c="failed parsing "+e+" to json"}if(c)return t(c,!1);t(null,s)}))}},{key:"create",value:function(e,t,n,r,i){var o=this;if(this.options.addPath){"string"==typeof e&&(e=[e]);var a=this.options.parsePayload(t,n,r),s=0,c=[],u=[];e.forEach((function(n){var r=o.options.addPath;"function"==typeof o.options.addPath&&(r=o.options.addPath(n,t));var l=o.services.interpolator.interpolate(r,{lng:n,ns:t});o.options.request(o.options,l,a,(function(t,n){s+=1,c.push(t),u.push(n),s===e.length&&i&&i(c,u)}))}))}}},{key:"reload",value:function(){var e=this,t=this.services,n=t.backendConnector,r=t.languageUtils,i=t.logger,o=n.language;if(!o||"cimode"!==o.toLowerCase()){var a=[],s=function(e){r.toResolveHierarchy(e).forEach((function(e){a.indexOf(e)<0&&a.push(e)}))};s(o),this.allOptions.preload&&this.allOptions.preload.forEach((function(e){return s(e)})),a.forEach((function(t){e.allOptions.ns.forEach((function(e){n.read(t,e,"read",null,null,(function(r,o){r&&i.warn("loading namespace ".concat(e," for language ").concat(t," failed"),r),!r&&o&&i.log("loaded namespace ".concat(e," for language ").concat(t),o),n.loaded("".concat(t,"|").concat(e),r,o)}))}))}))}}}])&&a(t.prototype,n),i&&a(t,i),e}();c.type="backend",t.a=c},function(e,t,n){"use strict";(function(e){var r,i,o,a=n(34),s=n(61),c=n.n(s);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}"function"==typeof fetch&&(void 0!==e&&e.fetch?r=e.fetch:"undefined"!=typeof window&&window.fetch&&(r=window.fetch)),a.b&&(void 0!==e&&e.XMLHttpRequest?i=e.XMLHttpRequest:"undefined"!=typeof window&&window.XMLHttpRequest&&(i=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&(void 0!==e&&e.ActiveXObject?o=e.ActiveXObject:"undefined"!=typeof window&&window.ActiveXObject&&(o=window.ActiveXObject)),r||!s||i||o||(r=c.a||s),"function"!=typeof r&&(r=void 0);var l=function(e,t){if(t&&"object"===u(t)){var n="";for(var r in t)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(t[r]);if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e};t.a=function(e,t,n,s){return"function"==typeof n&&(s=n,n=void 0),s=s||function(){},r?function(e,t,n,i){e.queryStringParams&&(t=l(t,e.queryStringParams));var o=Object(a.a)({},"function"==typeof e.customHeaders?e.customHeaders():e.customHeaders);n&&(o["Content-Type"]="application/json"),r(t,Object(a.a)({method:n?"POST":"GET",body:n?e.stringify(n):void 0,headers:o},"function"==typeof e.requestOptions?e.requestOptions(n):e.requestOptions)).then((function(e){if(!e.ok)return i(e.statusText||"Error",{status:e.status});e.text().then((function(t){i(null,{status:e.status,data:t})})).catch(i)})).catch(i)}(e,t,n,s):a.b||"function"==typeof ActiveXObject?function(e,t,n,r){n&&"object"===u(n)&&(n=l("",n).slice(1)),e.queryStringParams&&(t=l(t,e.queryStringParams));try{var a;(a=i?new i:new o("MSXML2.XMLHTTP.3.0")).open(n?"POST":"GET",t,1),e.crossDomain||a.setRequestHeader("X-Requested-With","XMLHttpRequest"),a.withCredentials=!!e.withCredentials,n&&a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.overrideMimeType&&a.overrideMimeType("application/json");var s=e.customHeaders;if(s="function"==typeof s?s():s)for(var c in s)a.setRequestHeader(c,s[c]);a.onreadystatechange=function(){a.readyState>3&&r(a.status>=400?a.statusText:null,{status:a.status,data:a.responseText})},a.send(n)}catch(e){console&&console.log(e)}}(e,t,n,s):void 0}}).call(this,n(37))},function(e,t,n){"use strict";function r(e,t){for(var n,r=/\r\n|[\n\r]/g,i=1,o=t+1;(n=r.exec(e.body))&&n.index<t;)i+=1,o=t+1-(n.index+n[0].length);return{line:i,column:o}}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(56),i=n(161),o=n(162),a=n(163),s=n(164),c=n(165);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=s,u.prototype.set=c,e.exports=u},function(e,t,n){var r=n(172),i=n(179),o=n(181),a=n(182),s=n(183);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(111),i=n(74),o=n(70);e.exports=function(e){return r(e,o,i)}},function(e,t,n){var r=n(26).Uint8Array;e.exports=r},,function(e,t,n){"use strict";var r=n(1),i=n(0);function o(e,t){return(e.matches||e.webkitMatchesSelector||e.msMatchesSelector).call(e,t)}var a=n(46),s=n(43),c={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},u={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},l={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300};
284
- /**
285
- * @license
286
- * Copyright 2016 Google Inc.
287
- *
288
- * Permission is hereby granted, free of charge, to any person obtaining a copy
289
- * of this software and associated documentation files (the "Software"), to deal
290
- * in the Software without restriction, including without limitation the rights
291
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
292
- * copies of the Software, and to permit persons to whom the Software is
293
- * furnished to do so, subject to the following conditions:
294
- *
295
- * The above copyright notice and this permission notice shall be included in
296
- * all copies or substantial portions of the Software.
297
- *
298
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
299
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
300
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
301
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
302
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
303
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
304
- * THE SOFTWARE.
305
- */
306
- var d,p,f=["touchstart","pointerdown","mousedown","keydown"],h=["touchend","pointerup","mouseup","contextmenu"],v=[],m=function(e){function t(n){var i=e.call(this,Object(r.a)(Object(r.a)({},t.defaultAdapter),n))||this;return i.activationAnimationHasEnded=!1,i.activationTimer=0,i.fgDeactivationRemovalTimer=0,i.fgScale="0",i.frame={width:0,height:0},i.initialSize=0,i.layoutFrame=0,i.maxRadius=0,i.unboundedCoords={left:0,top:0},i.activationState=i.defaultActivationState(),i.activationTimerCallback=function(){i.activationAnimationHasEnded=!0,i.runDeactivationUXLogicIfReady()},i.activateHandler=function(e){i.activateImpl(e)},i.deactivateHandler=function(){i.deactivateImpl()},i.focusHandler=function(){i.handleFocus()},i.blurHandler=function(){i.handleBlur()},i.resizeHandler=function(){i.layout()},i}return Object(r.d)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return c},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return u},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return l},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){var e=this,n=this.supportsPressRipple();if(this.registerRootHandlers(n),n){var r=t.cssClasses,i=r.ROOT,o=r.UNBOUNDED;requestAnimationFrame((function(){e.adapter.addClass(i),e.adapter.isUnbounded()&&(e.adapter.addClass(o),e.layoutInternal())}))}},t.prototype.destroy=function(){var e=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(t.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(t.cssClasses.FG_DEACTIVATION));var n=t.cssClasses,r=n.ROOT,i=n.UNBOUNDED;requestAnimationFrame((function(){e.adapter.removeClass(r),e.adapter.removeClass(i),e.removeCssVars()}))}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},t.prototype.activate=function(e){this.activateImpl(e)},t.prototype.deactivate=function(){this.deactivateImpl()},t.prototype.layout=function(){var e=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame((function(){e.layoutInternal(),e.layoutFrame=0}))},t.prototype.setUnbounded=function(e){var n=t.cssClasses.UNBOUNDED;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.handleFocus=function(){var e=this;requestAnimationFrame((function(){return e.adapter.addClass(t.cssClasses.BG_FOCUSED)}))},t.prototype.handleBlur=function(){var e=this;requestAnimationFrame((function(){return e.adapter.removeClass(t.cssClasses.BG_FOCUSED)}))},t.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},t.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},t.prototype.registerRootHandlers=function(e){var t,n;if(e){try{for(var i=Object(r.j)(f),o=i.next();!o.done;o=i.next()){var a=o.value;this.adapter.registerInteractionHandler(a,this.activateHandler)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},t.prototype.registerDeactivationHandlers=function(e){var t,n;if("keydown"===e.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var i=Object(r.j)(h),o=i.next();!o.done;o=i.next()){var a=o.value;this.adapter.registerDocumentInteractionHandler(a,this.deactivateHandler)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},t.prototype.deregisterRootHandlers=function(){var e,t;try{for(var n=Object(r.j)(f),i=n.next();!i.done;i=n.next()){var o=i.value;this.adapter.deregisterInteractionHandler(o,this.activateHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},t.prototype.deregisterDeactivationHandlers=function(){var e,t;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var n=Object(r.j)(h),i=n.next();!i.done;i=n.next()){var o=i.value;this.adapter.deregisterDocumentInteractionHandler(o,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t.prototype.removeCssVars=function(){var e=this,n=t.strings;Object.keys(n).forEach((function(t){0===t.indexOf("VAR_")&&e.adapter.updateCssVariable(n[t],null)}))},t.prototype.activateImpl=function(e){var t=this;if(!this.adapter.isSurfaceDisabled()){var n=this.activationState;if(!n.isActivated){var r=this.previousActivationEvent;if(!(r&&void 0!==e&&r.type!==e.type))n.isActivated=!0,n.isProgrammatic=void 0===e,n.activationEvent=e,n.wasActivatedByPointer=!n.isProgrammatic&&(void 0!==e&&("mousedown"===e.type||"touchstart"===e.type||"pointerdown"===e.type)),void 0!==e&&v.length>0&&v.some((function(e){return t.adapter.containsEventTarget(e)}))?this.resetActivationState():(void 0!==e&&(v.push(e.target),this.registerDeactivationHandlers(e)),n.wasElementMadeActive=this.checkElementMadeActive(e),n.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame((function(){v=[],n.wasElementMadeActive||void 0===e||" "!==e.key&&32!==e.keyCode||(n.wasElementMadeActive=t.checkElementMadeActive(e),n.wasElementMadeActive&&t.animateActivation()),n.wasElementMadeActive||(t.activationState=t.defaultActivationState())})))}}},t.prototype.checkElementMadeActive=function(e){return void 0===e||"keydown"!==e.type||this.adapter.isSurfaceActive()},t.prototype.animateActivation=function(){var e=this,n=t.strings,r=n.VAR_FG_TRANSLATE_START,i=n.VAR_FG_TRANSLATE_END,o=t.cssClasses,a=o.FG_DEACTIVATION,s=o.FG_ACTIVATION,c=t.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var u="",l="";if(!this.adapter.isUnbounded()){var d=this.getFgTranslationCoordinates(),p=d.startPoint,f=d.endPoint;u=p.x+"px, "+p.y+"px",l=f.x+"px, "+f.y+"px"}this.adapter.updateCssVariable(r,u),this.adapter.updateCssVariable(i,l),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(a),this.adapter.computeBoundingRect(),this.adapter.addClass(s),this.activationTimer=setTimeout((function(){e.activationTimerCallback()}),c)},t.prototype.getFgTranslationCoordinates=function(){var e,t=this.activationState,n=t.activationEvent;return{startPoint:e={x:(e=t.wasActivatedByPointer?function(e,t,n){if(!e)return{x:0,y:0};var r,i,o=t.x,a=t.y,s=o+n.left,c=a+n.top;if("touchstart"===e.type){var u=e;r=u.changedTouches[0].pageX-s,i=u.changedTouches[0].pageY-c}else{var l=e;r=l.pageX-s,i=l.pageY-c}return{x:r,y:i}}(n,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2}).x-this.initialSize/2,y:e.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},t.prototype.runDeactivationUXLogicIfReady=function(){var e=this,n=t.cssClasses.FG_DEACTIVATION,r=this.activationState,i=r.hasDeactivationUXRun,o=r.isActivated;(i||!o)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(n),this.fgDeactivationRemovalTimer=setTimeout((function(){e.adapter.removeClass(n)}),l.FG_DEACTIVATION_MS))},t.prototype.rmBoundedActivationClasses=function(){var e=t.cssClasses.FG_ACTIVATION;this.adapter.removeClass(e),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},t.prototype.resetActivationState=function(){var e=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout((function(){return e.previousActivationEvent=void 0}),t.numbers.TAP_DELAY_MS)},t.prototype.deactivateImpl=function(){var e=this,t=this.activationState;if(t.isActivated){var n=Object(r.a)({},t);t.isProgrammatic?(requestAnimationFrame((function(){e.animateDeactivation(n)})),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame((function(){e.activationState.hasDeactivationUXRun=!0,e.animateDeactivation(n),e.resetActivationState()})))}},t.prototype.animateDeactivation=function(e){var t=e.wasActivatedByPointer,n=e.wasElementMadeActive;(t||n)&&this.runDeactivationUXLogicIfReady()},t.prototype.layoutInternal=function(){var e=this;this.frame=this.adapter.computeBoundingRect();var n=Math.max(this.frame.height,this.frame.width);this.maxRadius=this.adapter.isUnbounded()?n:Math.sqrt(Math.pow(e.frame.width,2)+Math.pow(e.frame.height,2))+t.numbers.PADDING;var r=Math.floor(n*t.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&r%2!=0?this.initialSize=r-1:this.initialSize=r,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},t.prototype.updateLayoutCssVars=function(){var e=t.strings,n=e.VAR_FG_SIZE,r=e.VAR_LEFT,i=e.VAR_TOP,o=e.VAR_FG_SCALE;this.adapter.updateCssVariable(n,this.initialSize+"px"),this.adapter.updateCssVariable(o,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(r,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(i,this.unboundedCoords.top+"px"))},t}(s.a),g=n(32),b=n(92);
307
- /**
308
- * @license
309
- * Copyright 2018 Google LLC
310
- * SPDX-License-Identifier: Apache-2.0
311
- */
312
- class y extends a.a{constructor(){super(...arguments),this.primary=!1,this.accent=!1,this.unbounded=!1,this.disabled=!1,this.activated=!1,this.selected=!1,this.internalUseStateLayerCustomProperties=!1,this.hovering=!1,this.bgFocused=!1,this.fgActivation=!1,this.fgDeactivation=!1,this.fgScale="",this.fgSize="",this.translateStart="",this.translateEnd="",this.leftPos="",this.topPos="",this.mdcFoundationClass=m}get isActive(){return o(this.parentElement||this,":active")}createAdapter(){return{browserSupportsCssVars:()=>!0,isUnbounded:()=>this.unbounded,isSurfaceActive:()=>this.isActive,isSurfaceDisabled:()=>this.disabled,addClass:e=>{switch(e){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!0;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!0;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!0}},removeClass:e=>{switch(e){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!1;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!1;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!1}},containsEventTarget:()=>!0,registerInteractionHandler:()=>{},deregisterInteractionHandler:()=>{},registerDocumentInteractionHandler:()=>{},deregisterDocumentInteractionHandler:()=>{},registerResizeHandler:()=>{},deregisterResizeHandler:()=>{},updateCssVariable:(e,t)=>{switch(e){case"--mdc-ripple-fg-scale":this.fgScale=t;break;case"--mdc-ripple-fg-size":this.fgSize=t;break;case"--mdc-ripple-fg-translate-end":this.translateEnd=t;break;case"--mdc-ripple-fg-translate-start":this.translateStart=t;break;case"--mdc-ripple-left":this.leftPos=t;break;case"--mdc-ripple-top":this.topPos=t}},computeBoundingRect:()=>(this.parentElement||this).getBoundingClientRect(),getWindowPageOffset:()=>({x:window.pageXOffset,y:window.pageYOffset})}}startPress(e){this.waitForFoundation(()=>{this.mdcFoundation.activate(e)})}endPress(){this.waitForFoundation(()=>{this.mdcFoundation.deactivate()})}startFocus(){this.waitForFoundation(()=>{this.mdcFoundation.handleFocus()})}endFocus(){this.waitForFoundation(()=>{this.mdcFoundation.handleBlur()})}startHover(){this.hovering=!0}endHover(){this.hovering=!1}waitForFoundation(e){this.mdcFoundation?e():this.updateComplete.then(e)}update(e){e.has("disabled")&&this.disabled&&this.endHover(),super.update(e)}render(){var e=this.activated&&(this.primary||!this.accent),t=this.selected&&(this.primary||!this.accent),n={"mdc-ripple-surface--accent":this.accent,"mdc-ripple-surface--primary--activated":e,"mdc-ripple-surface--accent--activated":this.accent&&this.activated,"mdc-ripple-surface--primary--selected":t,"mdc-ripple-surface--accent--selected":this.accent&&this.selected,"mdc-ripple-surface--disabled":this.disabled,"mdc-ripple-surface--hover":this.hovering,"mdc-ripple-surface--primary":this.primary,"mdc-ripple-surface--selected":this.selected,"mdc-ripple-upgraded--background-focused":this.bgFocused,"mdc-ripple-upgraded--foreground-activation":this.fgActivation,"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation,"mdc-ripple-upgraded--unbounded":this.unbounded,"mdc-ripple-surface--internal-use-state-layer-custom-properties":this.internalUseStateLayerCustomProperties};return Object(i.e)(d||(d=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\n <div class="mdc-ripple-surface mdc-ripple-upgraded ','"\n style="','"></div>'])),Object(g.a)(n),Object(b.a)({"--mdc-ripple-fg-scale":this.fgScale,"--mdc-ripple-fg-size":this.fgSize,"--mdc-ripple-fg-translate-end":this.translateEnd,"--mdc-ripple-fg-translate-start":this.translateStart,"--mdc-ripple-left":this.leftPos,"--mdc-ripple-top":this.topPos}))}}Object(r.c)([Object(i.g)(".mdc-ripple-surface")],y.prototype,"mdcRoot",void 0),Object(r.c)([Object(i.f)({type:Boolean})],y.prototype,"primary",void 0),Object(r.c)([Object(i.f)({type:Boolean})],y.prototype,"accent",void 0),Object(r.c)([Object(i.f)({type:Boolean})],y.prototype,"unbounded",void 0),Object(r.c)([Object(i.f)({type:Boolean})],y.prototype,"disabled",void 0),Object(r.c)([Object(i.f)({type:Boolean})],y.prototype,"activated",void 0),Object(r.c)([Object(i.f)({type:Boolean})],y.prototype,"selected",void 0),Object(r.c)([Object(i.f)({type:Boolean})],y.prototype,"internalUseStateLayerCustomProperties",void 0),Object(r.c)([Object(i.j)()],y.prototype,"hovering",void 0),Object(r.c)([Object(i.j)()],y.prototype,"bgFocused",void 0),Object(r.c)([Object(i.j)()],y.prototype,"fgActivation",void 0),Object(r.c)([Object(i.j)()],y.prototype,"fgDeactivation",void 0),Object(r.c)([Object(i.j)()],y.prototype,"fgScale",void 0),Object(r.c)([Object(i.j)()],y.prototype,"fgSize",void 0),Object(r.c)([Object(i.j)()],y.prototype,"translateStart",void 0),Object(r.c)([Object(i.j)()],y.prototype,"translateEnd",void 0),Object(r.c)([Object(i.j)()],y.prototype,"leftPos",void 0),Object(r.c)([Object(i.j)()],y.prototype,"topPos",void 0);
313
- /**
314
- * @license
315
- * Copyright 2021 Google LLC
316
- * SPDX-LIcense-Identifier: Apache-2.0
317
- */
318
- var w=Object(i.b)(p||(p=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['.mdc-ripple-surface{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity;position:relative;outline:none;overflow:hidden}.mdc-ripple-surface::before,.mdc-ripple-surface::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface::before,.mdc-ripple-surface::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-upgraded--unbounded::before,.mdc-ripple-upgraded--unbounded::after{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{top:var(--mdc-ripple-top, calc(50% - 50%));left:var(--mdc-ripple-left, calc(50% - 50%));width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface::before,.mdc-ripple-surface::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-ripple-surface:hover::before,.mdc-ripple-surface.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}:host{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;display:block}:host .mdc-ripple-surface{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;will-change:unset}.mdc-ripple-surface--primary::before,.mdc-ripple-surface--primary::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary:hover::before,.mdc-ripple-surface--primary.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--primary.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before,.mdc-ripple-surface--primary--activated::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--activated:hover::before,.mdc-ripple-surface--primary--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--primary--selected::before,.mdc-ripple-surface--primary--selected::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--selected:hover::before,.mdc-ripple-surface--primary--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent::before,.mdc-ripple-surface--accent::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent:hover::before,.mdc-ripple-surface--accent.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--accent.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before,.mdc-ripple-surface--accent--activated::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--activated:hover::before,.mdc-ripple-surface--accent--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--accent--selected::before,.mdc-ripple-surface--accent--selected::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--selected:hover::before,.mdc-ripple-surface--accent--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--disabled{opacity:0}.mdc-ripple-surface--internal-use-state-layer-custom-properties::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties::after{background-color:#000;background-color:var(--mdc-ripple-hover-state-layer-color, #000)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:hover::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-state-layer-opacity, 0.04)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}']))),O=class extends y{};
319
- /**
320
- * @license
321
- * Copyright 2018 Google LLC
322
- * SPDX-License-Identifier: Apache-2.0
323
- */O.styles=[w],O=Object(r.c)([Object(i.c)("mwc-ripple")],O)},function(e,t,n){"use strict";function r(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(0),i=n(28),o=n(25),a=n(54),s=n.n(a);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function p(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){d(o,r,i,a,s,"next",e)}function s(e){d(o,r,i,a,s,"throw",e)}a(void 0)}))}}class f extends r.a{shouldUpdate(e){var t="true"==String(this.active),{active:n=!1}=this._oldLifecycleInfo$||{};return(t||n)&&this.pageUpdate({active:t}),t}static get properties(){return{active:Boolean,lifecycle:Object,contextPath:{attribute:"context-path"}}}pageUpdate(e={},t=!1){var n=this;return p((function*(){var r=n._oldLifecycleInfo$||{},i=u(u(u({},r),n.lifecycle),{},{contextPath:n.contextPath},e);"initialized"in e||!i.active||r.initialized||(i.initialized=!0),t&&(i.updated=Date.now());var o=function(e,t){var n=!1,r={};return Object.getOwnPropertyNames(e).forEach((function(i){var o=t[i],a=e[i];s()(o,a)||(r[i]=a,n=!0)})),n&&r}(i,r);o&&(n._oldLifecycleInfo$=i,r.initialized&&o.contextPath?yield n.pageReset():(o.initialized&&(yield n.pageInitialized(i)),"initialized"in o?o.initialized?requestAnimationFrame(p((function*(){yield n.pageUpdated(o,i,r),i.active&&n.updateContext()}))):yield n.pageDisposed(i):(yield n.pageUpdated(o,i,r),i.active&&n.updateContext())))}))()}pageReset(){var e=this;return p((function*(){var{initialized:t}=e._oldLifecycleInfo$||{};t&&(yield e.pageDispose(),yield e.pageUpdate({},!0))}))()}pageDispose(){var e=this;return p((function*(){yield e.pageUpdate({initialized:!1})}))()}pageInitialized(e){}pageUpdated(e,t,n){}pageDisposed(e){}updateContext(e){i.a.dispatch({type:o.e,context:e?u(u({},this.context),e):this.context})}get context(){return{}}}},function(e,t,n){var r=n(235),i=n(238),o=n(239);e.exports=function(e,t,n,a,s,c){var u=1&n,l=e.length,d=t.length;if(l!=d&&!(u&&d>l))return!1;var p=c.get(e),f=c.get(t);if(p&&f)return p==t&&f==e;var h=-1,v=!0,m=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++h<l;){var g=e[h],b=t[h];if(a)var y=u?a(b,g,h,t,e,c):a(g,b,h,e,t,c);if(void 0!==y){if(y)continue;v=!1;break}if(m){if(!i(t,(function(e,t){if(!o(m,t)&&(g===e||s(g,e,n,a,c)))return m.push(t)}))){v=!1;break}}else if(g!==b&&!s(g,b,n,a,c)){v=!1;break}}return c.delete(e),c.delete(t),v}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=void 0!==r?r:t=>e.from(t,"base64").toString();function i(e){var t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(r(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));return JSON.parse(n)}}).call(this,n(149).Buffer)},function(e,t,n){var r=n(49),i=n(41);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=Object.prototype,i=r.toString,o=r.hasOwnProperty,a=new Map;function s(e,t){try{return function e(t,n){if(t===n)return!0;var r=i.call(t),a=i.call(n);if(r!==a)return!1;switch(r){case"[object Array]":if(t.length!==n.length)return!1;case"[object Object]":if(c(t,n))return!0;var s=Object.keys(t),u=Object.keys(n),l=s.length;if(l!==u.length)return!1;for(var d=0;d<l;++d)if(!o.call(n,s[d]))return!1;for(d=0;d<l;++d){var p=s[d];if(!e(t[p],n[p]))return!1}return!0;case"[object Error]":return t.name===n.name&&t.message===n.message;case"[object Number]":if(t!=t)return n!=n;case"[object Boolean]":case"[object Date]":return+t==+n;case"[object RegExp]":case"[object String]":return t==""+n;case"[object Map]":case"[object Set]":if(t.size!==n.size)return!1;if(c(t,n))return!0;for(var f=t.entries(),h="[object Map]"===r;;){var v=f.next();if(v.done)break;var m=v.value,g=m[0],b=m[1];if(!n.has(g))return!1;if(h&&!e(b,n.get(g)))return!1}return!0}return!1}(e,t)}finally{a.clear()}}function c(e,t){var n=a.get(e);if(n){if(n.has(t))return!0}else a.set(e,n=new Set);return n.add(t),!1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));
324
- /**
325
- @license
326
- Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
327
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
328
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
329
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
330
- Code distributed by Google as part of the polymer project is also
331
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
332
- */
333
- var r=({title:e,description:t,url:n,image:r,imageAlt:o})=>{e&&(document.title=e,i("property","og:title",e)),t&&(i("name","description",t),i("property","og:description",t)),r&&i("property","og:image",r),o&&i("property","og:image:alt",o),i("property","og:url",n=n||window.location.href)};function i(e,t,n){var r=document.head.querySelector("meta[".concat(e,'="').concat(t,'"]'));r||((r=document.createElement("meta")).setAttribute(e,t),document.head.appendChild(r)),r.setAttribute("content",n||"")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));
334
- /**
335
- @license
336
- Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
337
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
338
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
339
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
340
- Code distributed by Google as part of the polymer project is also
341
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
342
- */
343
- var r=e=>{document.body.addEventListener("click",t=>{if(!(t.defaultPrevented||0!==t.button||t.metaKey||t.ctrlKey||t.shiftKey)){var n=t.composedPath().filter(e=>"A"===e.tagName)[0];if(n&&!n.target&&!n.hasAttribute("download")&&"external"!==n.getAttribute("rel")){var r=n.href;if(r&&-1===r.indexOf("mailto:")){var i=window.location,o=i.origin||i.protocol+"//"+i.host;0===r.indexOf(o)&&(t.preventDefault(),r!==i.href&&(window.history.pushState({},"",r),e(i,t)))}}}}),window.addEventListener("popstate",t=>e(window.location,t)),e(window.location,null)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));
344
- /**
345
- @license
346
- Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
347
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
348
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
349
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
350
- Code distributed by Google as part of the polymer project is also
351
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
352
- */
353
- var r=e=>t=>(n,r)=>{var i={},o=t(n,r);return Object.assign({},o,{addReducers(t){var n=Object.assign({},i,t);this.replaceReducer(e(i=n))}})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return s}));var r=n(1),i=n(13),o=n(14),a=n(30),s=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,s=e.fetch,c=e.includeExtensions,u=e.useGETForQueries,l=Object(r.g)(e,["uri","fetch","includeExtensions","useGETForQueries"]);Object(a.checkFetcher)(s),s||(s=fetch);var d={http:{includeExtensions:c},options:l.fetchOptions,credentials:l.credentials,headers:l.headers};return new i.ApolloLink((function(e){var t=Object(a.selectURI)(e,n),c=e.getContext(),l={};if(c.clientAwareness){var p=c.clientAwareness,f=p.name,h=p.version;f&&(l["apollographql-client-name"]=f),h&&(l["apollographql-client-version"]=h)}var v,m=Object(r.a)({},l,c.headers),g={http:c.http,options:c.fetchOptions,credentials:c.credentials,headers:m},b=Object(a.selectHttpOptionsAndBody)(e,a.fallbackHttpConfig,d,g),y=b.options,w=b.body;if(!y.signal){var O=Object(a.createSignalIfSupported)(),x=O.controller,_=O.signal;(v=x)&&(y.signal=_)}if(u&&!e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(y.method="GET"),"GET"===y.method){var E=function(e,t){var n=[],r=function(e,t){n.push(e+"="+encodeURIComponent(t))};"query"in t&&r("query",t.query);t.operationName&&r("operationName",t.operationName);if(t.variables){var i=void 0;try{i=Object(a.serializeFetchParameter)(t.variables,"Variables map")}catch(e){return{parseError:e}}r("variables",i)}if(t.extensions){var o=void 0;try{o=Object(a.serializeFetchParameter)(t.extensions,"Extensions map")}catch(e){return{parseError:e}}r("extensions",o)}var s="",c=e,u=e.indexOf("#");-1!==u&&(s=e.substr(u),c=e.substr(0,u));var l=-1===c.indexOf("?")?"?":"&";return{newURI:c+l+n.join("&")+s}}(t,w),j=E.newURI,k=E.parseError;if(k)return Object(i.fromError)(k);t=j}else try{y.body=Object(a.serializeFetchParameter)(w,"Payload")}catch(k){return Object(i.fromError)(k)}return new o.a((function(n){return s(t,y).then((function(t){return e.setContext({response:t}),t})).then(Object(a.parseAndCheckHttpResponse)(e)).then((function(e){return n.next(e),n.complete(),e})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e))})),function(){v&&v.abort()}}))}))};var c=function(e){function t(t){return e.call(this,s(t).request)||this}return Object(r.d)(t,e),t}(i.ApolloLink)},function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===i}(e)}(e)};var i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function a(e,t,n){return e.concat(t).map((function(e){return o(e,n)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function c(e,t){try{return t in e}catch(e){return!1}}function u(e,t,n){var r={};return n.isMergeableObject(e)&&s(e).forEach((function(t){r[t]=o(e[t],n)})),s(t).forEach((function(i){(function(e,t){return c(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(c(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(i,n)(e[i],t[i],n):r[i]=o(t[i],n))})),r}function l(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||a,n.isMergeableObject=n.isMergeableObject||r,n.cloneUnlessOtherwiseSpecified=o;var i=Array.isArray(t);return i===Array.isArray(e)?i?n.arrayMerge(e,t,n):u(e,t,n):o(t,n)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})};var d=l;e.exports=d},function(e,t,n){var r=n(244),i=n(255),o=r((function(e,t,n){return e+(n?" ":"")+i(t)}));e.exports=o},function(e,t,n){!function(e){"use strict";var t=function(){function e(e){var t=e.debug,n=void 0!==t&&t;this.debug=n,this.lines=[]}return e.prototype.emit=function(t,n){if(t in console){var r=e.prefix;console[t].apply(console,[r].concat(n))}},e.prototype.tailLogs=function(){var e=this;this.lines.forEach((function(t){var n=t[0],r=t[1];return e.emit(n,r)}))},e.prototype.getLogs=function(){return this.lines},e.prototype.write=function(t,n){var r=e.buffer;this.lines=this.lines.slice(1-r).concat([[t,n]]),(this.debug||"log"!==t)&&this.emit(t,n)},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.write("log",e)},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.write("warn",e)},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.write("error",e)},e.buffer=30,e.prefix="[apollo-cache-persist]",e}(),n=function(){function e(e){var t=e.cache,n=e.serialize,r=void 0===n||n;this.cache=t,this.serialize=r}return e.prototype.extract=function(){var e=this.cache.extract();return this.serialize&&(e=JSON.stringify(e)),e},e.prototype.restore=function(e){this.serialize&&"string"==typeof e&&(e=JSON.parse(e)),null!=e&&this.cache.restore(e)},e}(),r=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=r[2&o[0]?"return":o[0]?"throw":"next"])&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[0,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=function(){function e(e){var t=e.storage,n=e.key,r=void 0===n?"apollo-cache-persist":n;this.storage=t,this.key=r}return e.prototype.read=function(){return r(this,void 0,void 0,(function(){return i(this,(function(e){return[2,this.storage.getItem(this.key)]}))}))},e.prototype.write=function(e){return r(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,this.storage.setItem(this.key,e)];case 1:return t.sent(),[2]}}))}))},e.prototype.purge=function(){return r(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,this.storage.removeItem(this.key)];case 1:return e.sent(),[2]}}))}))},e.prototype.getSize=function(){return r(this,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:return[4,this.storage.getItem(this.key)];case 1:return null==(e=t.sent())?[2,0]:[2,"string"==typeof e?e.length:null]}}))}))},e}(),a=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(a,s)}c((r=r.apply(e,t||[])).next())}))},s=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=r[2&o[0]?"return":o[0]?"throw":"next"])&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[0,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},c=function(){function e(e,t){var n=e.log,r=e.cache,i=e.storage,o=t.maxSize,a=void 0===o?1048576:o;this.log=n,this.cache=r,this.storage=i,this.paused=!1,a&&(this.maxSize=a)}return e.prototype.persist=function(){return a(this,void 0,void 0,(function(){var e,t;return s(this,(function(n){switch(n.label){case 0:return n.trys.push([0,4,,5]),e=this.cache.extract(),null!=this.maxSize&&"string"==typeof e&&e.length>this.maxSize&&!this.paused?[4,this.purge()]:[3,2];case 1:return n.sent(),this.paused=!0,[2];case 2:return this.paused&&(this.paused=!1),[4,this.storage.write(e)];case 3:return n.sent(),this.log.info("string"==typeof e?"Persisted cache of size "+e.length:"Persisted cache"),[3,5];case 4:throw t=n.sent(),this.log.error("Error persisting cache",t),t;case 5:return[2]}}))}))},e.prototype.restore=function(){return a(this,void 0,void 0,(function(){var e,t;return s(this,(function(n){switch(n.label){case 0:return n.trys.push([0,5,,6]),[4,this.storage.read()];case 1:return null==(e=n.sent())?[3,3]:[4,this.cache.restore(e)];case 2:return n.sent(),this.log.info("string"==typeof e?"Restored cache of size "+e.length:"Restored cache"),[3,4];case 3:this.log.info("No stored cache to restore"),n.label=4;case 4:return[3,6];case 5:throw t=n.sent(),this.log.error("Error restoring cache",t),t;case 6:return[2]}}))}))},e.prototype.purge=function(){return a(this,void 0,void 0,(function(){var e;return s(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.storage.purge()];case 1:return t.sent(),this.log.info("Purged cache storage"),[3,3];case 2:throw e=t.sent(),this.log.error("Error purging cache storage",e),e;case 3:return[2]}}))}))},e}(),u=function(e){var t=e.cache;return function(e){var n=t.write;return t.write=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];n.apply(t,r),e()},function(){t.write=n}}},l=function(){function e(t,n){var r=t.log,i=t.persistor,o=this;this.fire=function(){o.debounce?(null!=o.timeout&&clearTimeout(o.timeout),o.timeout=setTimeout(o.persist,o.debounce)):o.persist()},this.persist=function(){o.paused||o.persistor.persist()};var a=e.defaultDebounce,s=n.cache,c=n.debounce,l=n.trigger,d=void 0===l?"write":l;if(d)switch(this.debounce=null!=c?c:a,this.persistor=i,this.paused=!1,d){case"write":this.uninstall=u({cache:s})(this.fire);break;case"background":c&&r.warn("Debounce is not recommended with `background` trigger"),this.debounce=c,this.uninstall=function(e){var t=e.log,n=e.cache;return function(e){return t.warn("Trigger option `background` not available on web; using `write` trigger"),u({cache:n})(e)}}({cache:s,log:r})(this.fire);break;default:if("function"!=typeof d)throw Error("Unrecognized trigger option: "+d);this.uninstall=d(this.fire)}}return e.prototype.pause=function(){this.paused=!0},e.prototype.resume=function(){this.paused=!1},e.prototype.remove=function(){this.uninstall&&(this.uninstall(),this.uninstall=null,this.paused=!0)},e.defaultDebounce=1e3,e}(),d=function(){function e(e){if(!e.cache)throw new Error("In order to persist your Apollo Cache, you need to pass in a cache. Please see https://www.apollographql.com/docs/react/basics/caching.html for our default InMemoryCache.");if(!e.storage)throw new Error("In order to persist your Apollo Cache, you need to pass in an underlying storage provider. Please see https://github.com/apollographql/apollo-cache-persist#storage-providers");var r=new t(e),i=new n(e),a=new o(e),s=new c({log:r,cache:i,storage:a},e),u=new l({log:r,persistor:s},e);this.log=r,this.cache=i,this.storage=a,this.persistor=s,this.trigger=u}return e.prototype.persist=function(){return this.persistor.persist()},e.prototype.restore=function(){return this.persistor.restore()},e.prototype.purge=function(){return this.persistor.purge()},e.prototype.pause=function(){this.trigger.pause()},e.prototype.resume=function(){this.trigger.resume()},e.prototype.remove=function(){this.trigger.remove()},e.prototype.getLogs=function(e){if(void 0===e&&(e=!1),!e)return this.log.getLogs();this.log.tailLogs()},e.prototype.getSize=function(){return this.storage.getSize()},e}();e.CachePersistor=d,e.persistCache=function(e){return new d(e).restore()},Object.defineProperty(e,"__esModule",{value:!0})}(t)},function(e,t,n){"use strict";(function(e){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},a=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};Object.defineProperty(t,"__esModule",{value:!0}),t.SubscriptionClient=void 0;var s=void 0!==e?e:"undefined"!=typeof window?window:{},c=s.WebSocket||s.MozWebSocket,u=n(262),l=n(263),d=n(264),p=n(265),f=n(81),h=n(231),v=n(83),m=n(267),g=n(268),b=n(269),y=function(){function e(e,t,n,r){var i=t||{},o=i.connectionCallback,a=void 0===o?void 0:o,s=i.connectionParams,d=void 0===s?{}:s,p=i.minTimeout,f=void 0===p?g.MIN_WS_TIMEOUT:p,h=i.timeout,v=void 0===h?g.WS_TIMEOUT:h,b=i.reconnect,y=void 0!==b&&b,w=i.reconnectionAttempts,O=void 0===w?1/0:w,x=i.lazy,_=void 0!==x&&x,E=i.inactivityTimeout,j=void 0===E?0:E,k=i.wsOptionArguments,S=void 0===k?[]:k;if(this.wsImpl=n||c,!this.wsImpl)throw new Error("Unable to find native implementation, or alternative implementation for WebSocket!");this.wsProtocols=r||m.GRAPHQL_WS,this.connectionCallback=a,this.url=e,this.operations={},this.nextOperationId=0,this.minWsTimeout=f,this.wsTimeout=v,this.unsentMessagesQueue=[],this.reconnect=y,this.reconnecting=!1,this.reconnectionAttempts=O,this.lazy=!!_,this.inactivityTimeout=j,this.closedByUser=!1,this.backoff=new u({jitter:.5}),this.eventEmitter=new l.EventEmitter,this.middlewares=[],this.client=null,this.maxConnectTimeGenerator=this.createMaxConnectTimeGenerator(),this.connectionParams=this.getConnectionParams(d),this.wsOptionArguments=S,this.lazy||this.connect()}return Object.defineProperty(e.prototype,"status",{get:function(){return null===this.client?this.wsImpl.CLOSED:this.client.readyState},enumerable:!1,configurable:!0}),e.prototype.close=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),this.clearInactivityTimeout(),null!==this.client&&(this.closedByUser=t,e&&(this.clearCheckConnectionInterval(),this.clearMaxConnectTimeout(),this.clearTryReconnectTimeout(),this.unsubscribeAll(),this.sendMessage(void 0,b.default.GQL_CONNECTION_TERMINATE,null)),this.client.close(),this.client.onopen=null,this.client.onclose=null,this.client.onerror=null,this.client.onmessage=null,this.client=null,this.eventEmitter.emit("disconnected"),e||this.tryReconnect())},e.prototype.request=function(e){var t,n,r=this.getObserver.bind(this),i=this.executeOperation.bind(this),o=this.unsubscribe.bind(this);return this.clearInactivityTimeout(),(t={})[v.default]=function(){return this},t.subscribe=function(t,a,s){var c=r(t,a,s);return n=i(e,(function(e,t){null===e&&null===t?c.complete&&c.complete():e?c.error&&c.error(e[0]):c.next&&c.next(t)})),{unsubscribe:function(){n&&(o(n),n=null)}}},t},e.prototype.on=function(e,t,n){var r=this.eventEmitter.on(e,t,n);return function(){r.off(e,t,n)}},e.prototype.onConnected=function(e,t){return this.on("connected",e,t)},e.prototype.onConnecting=function(e,t){return this.on("connecting",e,t)},e.prototype.onDisconnected=function(e,t){return this.on("disconnected",e,t)},e.prototype.onReconnected=function(e,t){return this.on("reconnected",e,t)},e.prototype.onReconnecting=function(e,t){return this.on("reconnecting",e,t)},e.prototype.onError=function(e,t){return this.on("error",e,t)},e.prototype.unsubscribeAll=function(){var e=this;Object.keys(this.operations).forEach((function(t){e.unsubscribe(t)}))},e.prototype.applyMiddlewares=function(e){var t=this;return new Promise((function(n,r){var i,o,s;i=a(t.middlewares),o=t,(s=function(t){if(t)r(t);else if(i.length>0){var a=i.shift();a&&a.applyMiddleware.apply(o,[e,s])}else n(e)})()}))},e.prototype.use=function(e){var t=this;return e.map((function(e){if("function"!=typeof e.applyMiddleware)throw new Error("Middleware must implement the applyMiddleware function.");t.middlewares.push(e)})),this},e.prototype.getConnectionParams=function(e){return function(){return new Promise((function(t,n){if("function"==typeof e)try{return t(e.call(null))}catch(e){return n(e)}t(e)}))}},e.prototype.executeOperation=function(e,t){var n=this;null===this.client&&this.connect();var r=this.generateOperationId();return this.operations[r]={options:e,handler:t},this.applyMiddlewares(e).then((function(e){n.checkOperationOptions(e,t),n.operations[r]&&(n.operations[r]={options:e,handler:t},n.sendMessage(r,b.default.GQL_START,e))})).catch((function(e){n.unsubscribe(r),t(n.formatErrors(e))})),r},e.prototype.getObserver=function(e,t,n){return"function"==typeof e?{next:function(t){return e(t)},error:function(e){return t&&t(e)},complete:function(){return n&&n()}}:e},e.prototype.createMaxConnectTimeGenerator=function(){var e=this.minWsTimeout,t=this.wsTimeout;return new u({min:e,max:t,factor:1.2})},e.prototype.clearCheckConnectionInterval=function(){this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnectionIntervalId=null)},e.prototype.clearMaxConnectTimeout=function(){this.maxConnectTimeoutId&&(clearTimeout(this.maxConnectTimeoutId),this.maxConnectTimeoutId=null)},e.prototype.clearTryReconnectTimeout=function(){this.tryReconnectTimeoutId&&(clearTimeout(this.tryReconnectTimeoutId),this.tryReconnectTimeoutId=null)},e.prototype.clearInactivityTimeout=function(){this.inactivityTimeoutId&&(clearTimeout(this.inactivityTimeoutId),this.inactivityTimeoutId=null)},e.prototype.setInactivityTimeout=function(){var e=this;this.inactivityTimeout>0&&0===Object.keys(this.operations).length&&(this.inactivityTimeoutId=setTimeout((function(){0===Object.keys(e.operations).length&&e.close()}),this.inactivityTimeout))},e.prototype.checkOperationOptions=function(e,t){var n=e.query,r=e.variables,i=e.operationName;if(!n)throw new Error("Must provide a query.");if(!t)throw new Error("Must provide an handler.");if(!d.default(n)&&!h.getOperationAST(n,i)||i&&!d.default(i)||r&&!p.default(r))throw new Error("Incorrect option types. query must be a string or a document,`operationName` must be a string, and `variables` must be an object.")},e.prototype.buildMessage=function(e,t,n){return{id:e,type:t,payload:n&&n.query?r(r({},n),{query:"string"==typeof n.query?n.query:f.print(n.query)}):n}},e.prototype.formatErrors=function(e){return Array.isArray(e)?e:e&&e.errors?this.formatErrors(e.errors):e&&e.message?[e]:[{name:"FormatedError",message:"Unknown error",originalError:e}]},e.prototype.sendMessage=function(e,t,n){this.sendMessageRaw(this.buildMessage(e,t,n))},e.prototype.sendMessageRaw=function(e){switch(this.status){case this.wsImpl.OPEN:var t=JSON.stringify(e);try{JSON.parse(t)}catch(t){this.eventEmitter.emit("error",new Error("Message must be JSON-serializable. Got: "+e))}this.client.send(t);break;case this.wsImpl.CONNECTING:this.unsentMessagesQueue.push(e);break;default:this.reconnecting||this.eventEmitter.emit("error",new Error("A message was not sent because socket is not connected, is closing or is already closed. Message was: "+JSON.stringify(e)))}},e.prototype.generateOperationId=function(){return String(++this.nextOperationId)},e.prototype.tryReconnect=function(){var e=this;if(this.reconnect&&!(this.backoff.attempts>=this.reconnectionAttempts)){this.reconnecting||(Object.keys(this.operations).forEach((function(t){e.unsentMessagesQueue.push(e.buildMessage(t,b.default.GQL_START,e.operations[t].options))})),this.reconnecting=!0),this.clearTryReconnectTimeout();var t=this.backoff.duration();this.tryReconnectTimeoutId=setTimeout((function(){e.connect()}),t)}},e.prototype.flushUnsentMessagesQueue=function(){var e=this;this.unsentMessagesQueue.forEach((function(t){e.sendMessageRaw(t)})),this.unsentMessagesQueue=[]},e.prototype.checkConnection=function(){this.wasKeepAliveReceived?this.wasKeepAliveReceived=!1:this.reconnecting||this.close(!1,!0)},e.prototype.checkMaxConnectTimeout=function(){var e=this;this.clearMaxConnectTimeout(),this.maxConnectTimeoutId=setTimeout((function(){e.status!==e.wsImpl.OPEN&&(e.reconnecting=!0,e.close(!1,!0))}),this.maxConnectTimeGenerator.duration())},e.prototype.connect=function(){var e,t=this;this.client=new((e=this.wsImpl).bind.apply(e,a([void 0,this.url,this.wsProtocols],this.wsOptionArguments))),this.checkMaxConnectTimeout(),this.client.onopen=function(){return i(t,void 0,void 0,(function(){var e,t;return o(this,(function(n){switch(n.label){case 0:if(this.status!==this.wsImpl.OPEN)return[3,4];this.clearMaxConnectTimeout(),this.closedByUser=!1,this.eventEmitter.emit(this.reconnecting?"reconnecting":"connecting"),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.connectionParams()];case 2:return e=n.sent(),this.sendMessage(void 0,b.default.GQL_CONNECTION_INIT,e),this.flushUnsentMessagesQueue(),[3,4];case 3:return t=n.sent(),this.sendMessage(void 0,b.default.GQL_CONNECTION_ERROR,t),this.flushUnsentMessagesQueue(),[3,4];case 4:return[2]}}))}))},this.client.onclose=function(){t.closedByUser||t.close(!1,!1)},this.client.onerror=function(e){t.eventEmitter.emit("error",e)},this.client.onmessage=function(e){var n=e.data;t.processReceivedData(n)}},e.prototype.processReceivedData=function(e){var t,n;try{n=(t=JSON.parse(e)).id}catch(t){throw new Error("Message must be JSON-parseable. Got: "+e)}if(-1===[b.default.GQL_DATA,b.default.GQL_COMPLETE,b.default.GQL_ERROR].indexOf(t.type)||this.operations[n])switch(t.type){case b.default.GQL_CONNECTION_ERROR:this.connectionCallback&&this.connectionCallback(t.payload);break;case b.default.GQL_CONNECTION_ACK:this.eventEmitter.emit(this.reconnecting?"reconnected":"connected",t.payload),this.reconnecting=!1,this.backoff.reset(),this.maxConnectTimeGenerator.reset(),this.connectionCallback&&this.connectionCallback();break;case b.default.GQL_COMPLETE:var i=this.operations[n].handler;delete this.operations[n],i.call(this,null,null);break;case b.default.GQL_ERROR:this.operations[n].handler(this.formatErrors(t.payload),null),delete this.operations[n];break;case b.default.GQL_DATA:var o=t.payload.errors?r(r({},t.payload),{errors:this.formatErrors(t.payload.errors)}):t.payload;this.operations[n].handler(null,o);break;case b.default.GQL_CONNECTION_KEEP_ALIVE:var a=void 0===this.wasKeepAliveReceived;this.wasKeepAliveReceived=!0,a&&this.checkConnection(),this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnection()),this.checkConnectionIntervalId=setInterval(this.checkConnection.bind(this),this.wsTimeout);break;default:throw new Error("Invalid message type!")}else this.unsubscribe(n)},e.prototype.unsubscribe=function(e){this.operations[e]&&(delete this.operations[e],this.setInactivityTimeout(),this.sendMessage(e,b.default.GQL_STOP,void 0))},e}();t.SubscriptionClient=y}).call(this,n(37))},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var n,r="boolean"==typeof t.cycles&&t.cycles,i=t.cmp&&(n=t.cmp,function(e){return function(t,r){var i={key:t,value:e[t]},o={key:r,value:e[r]};return n(i,o)}}),o=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var n,a;if(Array.isArray(t)){for(a="[",n=0;n<t.length;n++)n&&(a+=","),a+=e(t[n])||"null";return a+"]"}if(null===t)return"null";if(-1!==o.indexOf(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=o.push(t)-1,c=Object.keys(t).sort(i&&i(t));for(a="",n=0;n<c.length;n++){var u=c[n],l=e(t[u]);l&&(a&&(a+=","),a+=JSON.stringify(u)+":"+l)}return o.splice(s,1),"{"+a+"}"}}(e)}},function(e,t,n){e.exports=n(270).Observable},function(e,t,n){"use strict";var r=n(271)(n(272)),i=n(13),o=i.ApolloLink,a=i.Observable,s=n(30),c=s.selectURI,u=s.selectHttpOptionsAndBody,l=s.fallbackHttpConfig,d=s.serializeFetchParameter,p=s.createSignalIfSupported,f=s.parseAndCheckHttpResponse,h=n(278),v=h.extractFiles,m=h.ReactNativeFile;t.ReactNativeFile=m,t.createUploadLink=function(e){var t=void 0===e?{}:e,n=t.uri,i=void 0===n?"/graphql":n,s=t.fetch,h=void 0===s?fetch:s,m=t.fetchOptions,g=t.credentials,b=t.headers,y={http:{includeExtensions:t.includeExtensions},options:m,credentials:g,headers:b};return new o((function(e){var t=c(e,i),n=e.getContext(),o=n.clientAwareness,s=(o=void 0===o?{}:o).name,m=o.version,g=n.headers,b={http:n.http,options:n.fetchOptions,credentials:n.credentials,headers:(0,r.default)({},s&&{"apollographql-client-name":s},{},m&&{"apollographql-client-version":m},{},g)},w=u(e,l,y,b),O=w.options,x=w.body,_=v(x),E=_.clone,j=_.files,k=d(E,"Payload");if(j.size){delete O.headers["content-type"];var S=new FormData;S.append("operations",k);var P={},T=0;j.forEach((function(e){P[++T]=e})),S.append("map",JSON.stringify(P)),T=0,j.forEach((function(e,t){S.append(++T,t,t.name)})),O.body=S}else O.body=k;return new a((function(n){var r;if(!O.signal){var i=p().controller;i&&(r=i,O.signal=r.signal)}return h(t,O).then((function(t){return e.setContext({response:t}),t})).then(f(e)).then((function(e){n.next(e),n.complete()})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e))})),function(){r&&r.abort()}}))}))}},function(e,t,n){e.exports=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function c(e,t,n){return(c=s()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&a(i,n.prototype),i}).apply(null,arguments)}function u(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e,t,n){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=o(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}var d=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},p=function(e){return Object.keys(e).map((function(t){return e[t]}))},f=function(e){return Array.prototype.slice.call(e)},h=function(t){console.warn("".concat("SweetAlert2:"," ").concat("object"===e(t)?t.join(" "):t))},v=function(e){console.error("".concat("SweetAlert2:"," ").concat(e))},m=[],g=function(e,t){var n;n='"'.concat(e,'" is deprecated and will be removed in the next major release. Please use "').concat(t,'" instead.'),-1===m.indexOf(n)&&(m.push(n),h(n))},b=function(e){return"function"==typeof e?e():e},y=function(e){return e&&"function"==typeof e.toPromise},w=function(e){return y(e)?e.toPromise():Promise.resolve(e)},O=function(e){return e&&Promise.resolve(e)===e},x=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),_=function(t){return t instanceof Element||function(t){return"object"===e(t)&&t.jquery}(t)},E=function(e){var t={};for(var n in e)t[e[n]]="swal2-"+e[n];return t},j=E(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","header","content","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),k=E(["success","warning","info","question","error"]),S=function(){return document.body.querySelector(".".concat(j.container))},P=function(e){var t=S();return t?t.querySelector(e):null},T=function(e){return P(".".concat(e))},A=function(){return T(j.popup)},C=function(){return T(j.icon)},R=function(){return T(j.title)},I=function(){return T(j.content)},N=function(){return T(j["html-container"])},L=function(){return T(j.image)},D=function(){return T(j["progress-steps"])},M=function(){return T(j["validation-message"])},F=function(){return P(".".concat(j.actions," .").concat(j.confirm))},B=function(){return P(".".concat(j.actions," .").concat(j.deny))},z=function(){return P(".".concat(j.loader))},q=function(){return P(".".concat(j.actions," .").concat(j.cancel))},U=function(){return T(j.actions)},V=function(){return T(j.header)},Q=function(){return T(j.footer)},H=function(){return T(j["timer-progress-bar"])},G=function(){return T(j.close)},Y=function(){var e=f(A().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((function(e,t){return(e=parseInt(e.getAttribute("tabindex")))>(t=parseInt(t.getAttribute("tabindex")))?1:e<t?-1:0})),t=f(A().querySelectorAll('\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n')).filter((function(e){return"-1"!==e.getAttribute("tabindex")}));return function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(e.concat(t)).filter((function(e){return pe(e)}))},K=function(){return!W()&&!document.body.classList.contains(j["no-backdrop"])},W=function(){return document.body.classList.contains(j["toast-shown"])},$={previousBodyPadding:null},J=function(e,t){if(e.textContent="",t){var n=(new DOMParser).parseFromString(t,"text/html");f(n.querySelector("head").childNodes).forEach((function(t){e.appendChild(t)})),f(n.querySelector("body").childNodes).forEach((function(t){e.appendChild(t)}))}},X=function(e,t){if(!t)return!1;for(var n=t.split(/\s+/),r=0;r<n.length;r++)if(!e.classList.contains(n[r]))return!1;return!0},Z=function(t,n,r){if(function(e,t){f(e.classList).forEach((function(n){-1===p(j).indexOf(n)&&-1===p(k).indexOf(n)&&-1===p(t.showClass).indexOf(n)&&e.classList.remove(n)}))}(t,n),n.customClass&&n.customClass[r]){if("string"!=typeof n.customClass[r]&&!n.customClass[r].forEach)return h("Invalid type of customClass.".concat(r,'! Expected string or iterable object, got "').concat(e(n.customClass[r]),'"'));ie(t,n.customClass[r])}};function ee(e,t){if(!t)return null;switch(t){case"select":case"textarea":case"file":return ae(e,j[t]);case"checkbox":return e.querySelector(".".concat(j.checkbox," input"));case"radio":return e.querySelector(".".concat(j.radio," input:checked"))||e.querySelector(".".concat(j.radio," input:first-child"));case"range":return e.querySelector(".".concat(j.range," input"));default:return ae(e,j.input)}}var te,ne=function(e){if(e.focus(),"file"!==e.type){var t=e.value;e.value="",e.value=t}},re=function(e,t,n){e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((function(t){e.forEach?e.forEach((function(e){n?e.classList.add(t):e.classList.remove(t)})):n?e.classList.add(t):e.classList.remove(t)})))},ie=function(e,t){re(e,t,!0)},oe=function(e,t){re(e,t,!1)},ae=function(e,t){for(var n=0;n<e.childNodes.length;n++)if(X(e.childNodes[n],t))return e.childNodes[n]},se=function(e,t,n){n==="".concat(parseInt(n))&&(n=parseInt(n)),n||0===parseInt(n)?e.style[t]="number"==typeof n?"".concat(n,"px"):n:e.style.removeProperty(t)},ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e.style.display=t},ue=function(e){e.style.display="none"},le=function(e,t,n,r){var i=e.querySelector(t);i&&(i.style[n]=r)},de=function(e,t,n){t?ce(e,n):ue(e)},pe=function(e){return!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))},fe=function(e){return!!(e.scrollHeight>e.clientHeight)},he=function(e){var t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("animation-duration")||"0"),r=parseFloat(t.getPropertyValue("transition-duration")||"0");return n>0||r>0},ve=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=H();pe(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout((function(){n.style.transition="width ".concat(e/1e3,"s linear"),n.style.width="0%"}),10))},me=function(){return"undefined"==typeof window||"undefined"==typeof document},ge='\n <div aria-labelledby="'.concat(j.title,'" aria-describedby="').concat(j.content,'" class="').concat(j.popup,'" tabindex="-1">\n <div class="').concat(j.header,'">\n <ul class="').concat(j["progress-steps"],'"></ul>\n <div class="').concat(j.icon,'"></div>\n <img class="').concat(j.image,'" />\n <h2 class="').concat(j.title,'" id="').concat(j.title,'"></h2>\n <button type="button" class="').concat(j.close,'"></button>\n </div>\n <div class="').concat(j.content,'">\n <div id="').concat(j.content,'" class="').concat(j["html-container"],'"></div>\n <input class="').concat(j.input,'" />\n <input type="file" class="').concat(j.file,'" />\n <div class="').concat(j.range,'">\n <input type="range" />\n <output></output>\n </div>\n <select class="').concat(j.select,'"></select>\n <div class="').concat(j.radio,'"></div>\n <label for="').concat(j.checkbox,'" class="').concat(j.checkbox,'">\n <input type="checkbox" />\n <span class="').concat(j.label,'"></span>\n </label>\n <textarea class="').concat(j.textarea,'"></textarea>\n <div class="').concat(j["validation-message"],'" id="').concat(j["validation-message"],'"></div>\n </div>\n <div class="').concat(j.actions,'">\n <div class="').concat(j.loader,'"></div>\n <button type="button" class="').concat(j.confirm,'"></button>\n <button type="button" class="').concat(j.deny,'"></button>\n <button type="button" class="').concat(j.cancel,'"></button>\n </div>\n <div class="').concat(j.footer,'"></div>\n <div class="').concat(j["timer-progress-bar-container"],'">\n <div class="').concat(j["timer-progress-bar"],'"></div>\n </div>\n </div>\n').replace(/(^|\n)\s*/g,""),be=function(e){Fn.isVisible()&&te!==e.target.value&&Fn.resetValidationMessage(),te=e.target.value},ye=function(e){var t,n=!!(t=S())&&(t.parentNode.removeChild(t),oe([document.documentElement,document.body],[j["no-backdrop"],j["toast-shown"],j["has-column"]]),!0);if(me())v("SweetAlert2 requires document to initialize");else{var r=document.createElement("div");r.className=j.container,n&&ie(r,j["no-transition"]),J(r,ge);var i,o,a,s,c,u,l,d,p,f="string"==typeof(i=e.target)?document.querySelector(i):i;f.appendChild(r),function(e){var t=A();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")}(e),function(e){"rtl"===window.getComputedStyle(e).direction&&ie(S(),j.rtl)}(f),o=I(),a=ae(o,j.input),s=ae(o,j.file),c=o.querySelector(".".concat(j.range," input")),u=o.querySelector(".".concat(j.range," output")),l=ae(o,j.select),d=o.querySelector(".".concat(j.checkbox," input")),p=ae(o,j.textarea),a.oninput=be,s.onchange=be,l.onchange=be,d.onchange=be,p.oninput=be,c.oninput=function(e){be(e),u.value=c.value},c.onchange=function(e){be(e),c.nextSibling.value=c.value}}},we=function(t,n){t instanceof HTMLElement?n.appendChild(t):"object"===e(t)?Oe(t,n):t&&J(n,t)},Oe=function(e,t){e.jquery?xe(t,e):J(t,e.toString())},xe=function(e,t){if(e.textContent="",0 in t)for(var n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},_e=function(){if(me())return!1;var e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&void 0!==e.style[n])return t[n];return!1}(),Ee=function(e,t){var n=U(),r=z(),i=F(),o=B(),a=q();t.showConfirmButton||t.showDenyButton||t.showCancelButton||ue(n),Z(n,t,"actions"),je(i,"confirm",t),je(o,"deny",t),je(a,"cancel",t),function(e,t,n,r){if(!r.buttonsStyling)return oe([e,t,n],j.styled);ie([e,t,n],j.styled),r.confirmButtonColor&&(e.style.backgroundColor=r.confirmButtonColor),r.denyButtonColor&&(t.style.backgroundColor=r.denyButtonColor),r.cancelButtonColor&&(n.style.backgroundColor=r.cancelButtonColor)}(i,o,a,t),t.reverseButtons&&(n.insertBefore(a,r),n.insertBefore(o,r),n.insertBefore(i,r)),J(r,t.loaderHtml),Z(r,t,"loader")};function je(e,t,n){de(e,n["show".concat(d(t),"Button")],"inline-block"),J(e,n["".concat(t,"ButtonText")]),e.setAttribute("aria-label",n["".concat(t,"ButtonAriaLabel")]),e.className=j[t],Z(e,n,"".concat(t,"Button")),ie(e,n["".concat(t,"ButtonClass")])}var ke=function(e,t){var n=S();if(n){!function(e,t){"string"==typeof t?e.style.background=t:t||ie([document.documentElement,document.body],j["no-backdrop"])}(n,t.backdrop),!t.backdrop&&t.allowOutsideClick&&h('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),function(e,t){t in j?ie(e,j[t]):(h('The "position" parameter is not valid, defaulting to "center"'),ie(e,j.center))}(n,t.position),function(e,t){if(t&&"string"==typeof t){var n="grow-".concat(t);n in j&&ie(e,j[n])}}(n,t.grow),Z(n,t,"container");var r=document.body.getAttribute("data-swal2-queue-step");r&&(n.setAttribute("data-queue-step",r),document.body.removeAttribute("data-swal2-queue-step"))}},Se={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},Pe=["input","file","range","select","radio","checkbox","textarea"],Te=function(e){if(!Le[e.input])return v('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(e.input,'"'));var t=Ne(e.input),n=Le[e.input](t,e);ce(n),setTimeout((function(){ne(n)}))},Ae=function(e,t){var n=ee(I(),e);if(n)for(var r in function(e){for(var t=0;t<e.attributes.length;t++){var n=e.attributes[t].name;-1===["type","value","style"].indexOf(n)&&e.removeAttribute(n)}}(n),t)"range"===e&&"placeholder"===r||n.setAttribute(r,t[r])},Ce=function(e){var t=Ne(e.input);e.customClass&&ie(t,e.customClass.input)},Re=function(e,t){e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},Ie=function(e,t,n){if(n.inputLabel){e.id=j.input;var r=document.createElement("label"),i=j["input-label"];r.setAttribute("for",e.id),r.className=i,ie(r,n.customClass.inputLabel),r.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",r)}},Ne=function(e){var t=j[e]?j[e]:j.input;return ae(I(),t)},Le={};Le.text=Le.email=Le.password=Le.number=Le.tel=Le.url=function(t,n){return"string"==typeof n.inputValue||"number"==typeof n.inputValue?t.value=n.inputValue:O(n.inputValue)||h('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(e(n.inputValue),'"')),Ie(t,t,n),Re(t,n),t.type=n.input,t},Le.file=function(e,t){return Ie(e,e,t),Re(e,t),e},Le.range=function(e,t){var n=e.querySelector("input"),r=e.querySelector("output");return n.value=t.inputValue,n.type=t.input,r.value=t.inputValue,Ie(n,e,t),e},Le.select=function(e,t){if(e.textContent="",t.inputPlaceholder){var n=document.createElement("option");J(n,t.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,e.appendChild(n)}return Ie(e,e,t),e},Le.radio=function(e){return e.textContent="",e},Le.checkbox=function(e,t){var n=ee(I(),"checkbox");n.value=1,n.id=j.checkbox,n.checked=Boolean(t.inputValue);var r=e.querySelector("span");return J(r,t.inputPlaceholder),e},Le.textarea=function(e,t){e.value=t.inputValue,Re(e,t),Ie(e,e,t);var n=function(e){return parseInt(window.getComputedStyle(e).paddingLeft)+parseInt(window.getComputedStyle(e).paddingRight)};if("MutationObserver"in window){var r=parseInt(window.getComputedStyle(A()).width);new MutationObserver((function(){var t=e.offsetWidth+n(A())+n(I());A().style.width=t>r?"".concat(t,"px"):null})).observe(e,{attributes:!0,attributeFilter:["style"]})}return e};var De=function(e,t){var n=N();Z(n,t,"htmlContainer"),t.html?(we(t.html,n),ce(n,"block")):t.text?(n.textContent=t.text,ce(n,"block")):ue(n),function(e,t){var n=I(),r=Se.innerParams.get(e),i=!r||t.input!==r.input;Pe.forEach((function(e){var r=j[e],o=ae(n,r);Ae(e,t.inputAttributes),o.className=r,i&&ue(o)})),t.input&&(i&&Te(t),Ce(t))}(e,t),Z(I(),t,"content")},Me=function(e,t){for(var n in k)t.icon!==n&&oe(e,k[n]);ie(e,k[t.icon]),ze(e,t),Fe(),Z(e,t,"icon")},Fe=function(){for(var e=A(),t=window.getComputedStyle(e).getPropertyValue("background-color"),n=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),r=0;r<n.length;r++)n[r].style.backgroundColor=t},Be=function(e,t){e.textContent="",t.iconHtml?J(e,qe(t.iconHtml)):"success"===t.icon?J(e,'\n <div class="swal2-success-circular-line-left"></div>\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n '):"error"===t.icon?J(e,'\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n '):J(e,qe({question:"?",warning:"!",info:"i"}[t.icon]))},ze=function(e,t){if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(var n=0,r=[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"];n<r.length;n++)le(e,r[n],"backgroundColor",t.iconColor);le(e,".swal2-success-ring","borderColor",t.iconColor)}},qe=function(e){return'<div class="'.concat(j["icon-content"],'">').concat(e,"</div>")},Ue=[],Ve=function(){return S()&&S().getAttribute("data-queue-step")},Qe=function(e,t){var n=D();if(!t.progressSteps||0===t.progressSteps.length)return ue(n);ce(n),n.textContent="";var r=parseInt(void 0===t.currentProgressStep?Ve():t.currentProgressStep);r>=t.progressSteps.length&&h("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach((function(e,i){var o=function(e){var t=document.createElement("li");return ie(t,j["progress-step"]),J(t,e),t}(e);if(n.appendChild(o),i===r&&ie(o,j["active-progress-step"]),i!==t.progressSteps.length-1){var a=function(e){var t=document.createElement("li");return ie(t,j["progress-step-line"]),e.progressStepsDistance&&(t.style.width=e.progressStepsDistance),t}(t);n.appendChild(a)}}))},He=function(e,t){var n=V();Z(n,t,"header"),Qe(0,t),function(e,t){var n=Se.innerParams.get(e),r=C();n&&t.icon===n.icon?(Be(r,t),Me(r,t)):t.icon||t.iconHtml?t.icon&&-1===Object.keys(k).indexOf(t.icon)?(v('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon,'"')),ue(r)):(ce(r),Be(r,t),Me(r,t),ie(r,t.showClass.icon)):ue(r)}(e,t),function(e,t){var n=L();if(!t.imageUrl)return ue(n);ce(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt),se(n,"width",t.imageWidth),se(n,"height",t.imageHeight),n.className=j.image,Z(n,t,"image")}(0,t),function(e,t){var n=R();de(n,t.title||t.titleText,"block"),t.title&&we(t.title,n),t.titleText&&(n.innerText=t.titleText),Z(n,t,"title")}(0,t),function(e,t){var n=G();J(n,t.closeButtonHtml),Z(n,t,"closeButton"),de(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel)}(0,t)},Ge=function(e,t){e.className="".concat(j.popup," ").concat(pe(e)?t.showClass.popup:""),t.toast?(ie([document.documentElement,document.body],j["toast-shown"]),ie(e,j.toast)):ie(e,j.modal),Z(e,t,"popup"),"string"==typeof t.customClass&&ie(e,t.customClass),t.icon&&ie(e,j["icon-".concat(t.icon)])},Ye=function(e,t){!function(e,t){var n=S(),r=A();t.toast?(se(n,"width",t.width),r.style.width="100%"):se(r,"width",t.width),se(r,"padding",t.padding),t.background&&(r.style.background=t.background),ue(M()),Ge(r,t)}(0,t),ke(0,t),He(e,t),De(e,t),Ee(0,t),function(e,t){var n=Q();de(n,t.footer),t.footer&&we(t.footer,n),Z(n,t,"footer")}(0,t),"function"==typeof t.didRender?t.didRender(A()):"function"==typeof t.onRender&&t.onRender(A())},Ke=function(){return F()&&F().click()},We=function(e){var t=A();t||Fn.fire(),t=A();var n=U(),r=z();!e&&pe(F())&&(e=F()),ce(n),e&&(ue(e),r.setAttribute("data-button-to-replace",e.className)),r.parentNode.insertBefore(r,e),ie([t,n],j.loading),ce(r),t.setAttribute("data-loading",!0),t.setAttribute("aria-busy",!0),t.focus()},$e={},Je=function(e){return new Promise((function(t){if(!e)return t();var n=window.scrollX,r=window.scrollY;$e.restoreFocusTimeout=setTimeout((function(){$e.previousActiveElement&&$e.previousActiveElement.focus?($e.previousActiveElement.focus(),$e.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),void 0!==n&&void 0!==r&&window.scrollTo(n,r)}))},Xe=function(){if($e.timeout)return function(){var e=H(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";var n=parseInt(window.getComputedStyle(e).width),r=parseInt(t/n*100);e.style.removeProperty("transition"),e.style.width="".concat(r,"%")}(),$e.timeout.stop()},Ze=function(){if($e.timeout){var e=$e.timeout.start();return ve(e),e}},et=!1,tt={},nt=function(e){for(var t=e.target;t&&t!==document;t=t.parentNode)for(var n in tt){var r=t.getAttribute(n);if(r)return void tt[n].fire({template:r})}},rt={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,animation:!0,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,onBeforeOpen:void 0,onOpen:void 0,willOpen:void 0,didOpen:void 0,onRender:void 0,didRender:void 0,onClose:void 0,onAfterClose:void 0,willClose:void 0,didClose:void 0,onDestroy:void 0,didDestroy:void 0,scrollbarPadding:!0},it=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","onAfterClose","onClose","onDestroy","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],ot={animation:'showClass" and "hideClass',onBeforeOpen:"willOpen",onOpen:"didOpen",onRender:"didRender",onClose:"willClose",onAfterClose:"didClose",onDestroy:"didDestroy"},at=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],st=function(e){return Object.prototype.hasOwnProperty.call(rt,e)},ct=function(e){return ot[e]},ut=function(e){st(e)||h('Unknown parameter "'.concat(e,'"'))},lt=function(e){-1!==at.indexOf(e)&&h('The parameter "'.concat(e,'" is incompatible with toasts'))},dt=function(e){ct(e)&&g(e,ct(e))},pt=function(e){for(var t in e)ut(t),e.toast&&lt(t),dt(t)},ft=Object.freeze({isValidParameter:st,isUpdatableParameter:function(e){return-1!==it.indexOf(e)},isDeprecatedParameter:ct,argsToParams:function(t){var n={};return"object"!==e(t[0])||_(t[0])?["title","html","icon"].forEach((function(r,i){var o=t[i];"string"==typeof o||_(o)?n[r]=o:void 0!==o&&v("Unexpected type of ".concat(r,'! Expected "string" or "Element", got ').concat(e(o)))})):i(n,t[0]),n},isVisible:function(){return pe(A())},clickConfirm:Ke,clickDeny:function(){return B()&&B().click()},clickCancel:function(){return q()&&q().click()},getContainer:S,getPopup:A,getTitle:R,getContent:I,getHtmlContainer:N,getImage:L,getIcon:C,getInputLabel:function(){return T(j["input-label"])},getCloseButton:G,getActions:U,getConfirmButton:F,getDenyButton:B,getCancelButton:q,getLoader:z,getHeader:V,getFooter:Q,getTimerProgressBar:H,getFocusableElements:Y,getValidationMessage:M,isLoading:function(){return A().hasAttribute("data-loading")},fire:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(e,n)},mixin:function(e){return function(n){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(f,n);var c,d,p=(c=f,d=s(),function(){var e,t=o(c);if(d){var n=o(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function f(){return t(this,f),p.apply(this,arguments)}return r(f,[{key:"_main",value:function(t,n){return l(o(f.prototype),"_main",this).call(this,t,i({},e,n))}}]),f}(this)},queue:function(e){g("Swal.queue()","async/await");var t=this;Ue=e;var n=function(e,t){Ue=[],e(t)},r=[];return new Promise((function(e){!function i(o,a){o<Ue.length?(document.body.setAttribute("data-swal2-queue-step",o),t.fire(Ue[o]).then((function(t){void 0!==t.value?(r.push(t.value),i(o+1,a)):n(e,{dismiss:t.dismiss})}))):n(e,{value:r})}(0)}))},getQueueStep:Ve,insertQueueStep:function(e,t){return t&&t<Ue.length?Ue.splice(t,0,e):Ue.push(e)},deleteQueueStep:function(e){void 0!==Ue[e]&&Ue.splice(e,1)},showLoading:We,enableLoading:We,getTimerLeft:function(){return $e.timeout&&$e.timeout.getTimerLeft()},stopTimer:Xe,resumeTimer:Ze,toggleTimer:function(){var e=$e.timeout;return e&&(e.running?Xe():Ze())},increaseTimer:function(e){if($e.timeout){var t=$e.timeout.increase(e);return ve(t,!0),t}},isTimerRunning:function(){return $e.timeout&&$e.timeout.isRunning()},bindClickHandler:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template";tt[e]=this,et||(document.body.addEventListener("click",nt),et=!0)}});function ht(){if(Se.innerParams.get(this)){var e=Se.domCache.get(this);ue(e.loader);var t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?ce(t[0],"inline-block"):pe(F())||pe(B())||pe(q())||ue(e.actions),oe([e.popup,e.actions],j.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}}var vt=function(){null===$.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&($.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat($.previousBodyPadding+function(){var e=document.createElement("div");e.className=j["scrollbar-measure"],document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t}(),"px"))},mt=function(){navigator.userAgent.match(/(CriOS|FxiOS|EdgiOS|YaBrowser|UCBrowser)/i)||A().scrollHeight>window.innerHeight-44&&(S().style.paddingBottom="".concat(44,"px"))},gt=function(){var e,t=S();t.ontouchstart=function(t){e=bt(t)},t.ontouchmove=function(t){e&&(t.preventDefault(),t.stopPropagation())}},bt=function(e){var t=e.target,n=S();return!(yt(e)||wt(e)||t!==n&&(fe(n)||"INPUT"===t.tagName||fe(I())&&I().contains(t)))},yt=function(e){return e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType},wt=function(e){return e.touches&&e.touches.length>1},Ot=function(){return!!window.MSInputMethodContext&&!!document.documentMode},xt=function(){var e=S(),t=A();e.style.removeProperty("align-items"),t.offsetTop<0&&(e.style.alignItems="flex-start")},_t={swalPromiseResolve:new WeakMap};function Et(e,t,n,r){W()?At(e,r):(Je(n).then((function(){return At(e,r)})),$e.keydownTarget.removeEventListener("keydown",$e.keydownHandler,{capture:$e.keydownListenerCapture}),$e.keydownHandlerAdded=!1),t.parentNode&&!document.body.getAttribute("data-swal2-queue-step")&&t.parentNode.removeChild(t),K()&&(null!==$.previousBodyPadding&&(document.body.style.paddingRight="".concat($.previousBodyPadding,"px"),$.previousBodyPadding=null),function(){if(X(document.body,j.iosfix)){var e=parseInt(document.body.style.top,10);oe(document.body,j.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}}(),"undefined"!=typeof window&&Ot()&&window.removeEventListener("resize",xt),f(document.body.children).forEach((function(e){e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")}))),oe([document.documentElement,document.body],[j.shown,j["height-auto"],j["no-backdrop"],j["toast-shown"]])}function jt(e){var t=A();if(t){e=kt(e);var n=Se.innerParams.get(this);if(n&&!X(t,n.hideClass.popup)){var r=_t.swalPromiseResolve.get(this);oe(t,n.showClass.popup),ie(t,n.hideClass.popup);var i=S();oe(i,n.showClass.backdrop),ie(i,n.hideClass.backdrop),St(this,t,n),r(e)}}}var kt=function(e){return void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:i({isConfirmed:!1,isDenied:!1,isDismissed:!1},e)},St=function(e,t,n){var r=S(),i=_e&&he(t),o=n.onClose,a=n.onAfterClose,s=n.willClose,c=n.didClose;Pt(t,s,o),i?Tt(e,t,r,n.returnFocus,c||a):Et(e,r,n.returnFocus,c||a)},Pt=function(e,t,n){null!==t&&"function"==typeof t?t(e):null!==n&&"function"==typeof n&&n(e)},Tt=function(e,t,n,r,i){$e.swalCloseEventFinishedCallback=Et.bind(null,e,n,r,i),t.addEventListener(_e,(function(e){e.target===t&&($e.swalCloseEventFinishedCallback(),delete $e.swalCloseEventFinishedCallback)}))},At=function(e,t){setTimeout((function(){"function"==typeof t&&t(),e._destroy()}))};function Ct(e,t,n){var r=Se.domCache.get(e);t.forEach((function(e){r[e].disabled=n}))}function Rt(e,t){if(!e)return!1;if("radio"===e.type)for(var n=e.parentNode.parentNode.querySelectorAll("input"),r=0;r<n.length;r++)n[r].disabled=t;else e.disabled=t}var It=function(){function e(n,r){t(this,e),this.callback=n,this.remaining=r,this.running=!1,this.start()}return r(e,[{key:"start",value:function(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}},{key:"stop",value:function(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date-this.started),this.remaining}},{key:"increase",value:function(e){var t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}},{key:"getTimerLeft",value:function(){return this.running&&(this.stop(),this.start()),this.remaining}},{key:"isRunning",value:function(){return this.running}}]),e}(),Nt={email:function(e,t){return/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address")},url:function(e,t){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")}};function Lt(e){!function(e){e.inputValidator||Object.keys(Nt).forEach((function(t){e.input===t&&(e.inputValidator=Nt[t])}))}(e),e.showLoaderOnConfirm&&!e.preConfirm&&h("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),e.animation=b(e.animation),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(h('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("<br />")),ye(e)}var Dt,Mt=["swal-title","swal-html","swal-footer"],Ft=function(t){var n={};return f(t.querySelectorAll("swal-param")).forEach((function(t){Ht(t,["name","value"]);var r=t.getAttribute("name"),i=t.getAttribute("value");"boolean"==typeof rt[r]&&"false"===i&&(i=!1),"object"===e(rt[r])&&(i=JSON.parse(i)),n[r]=i})),n},Bt=function(e){var t={};return f(e.querySelectorAll("swal-button")).forEach((function(e){Ht(e,["type","color","aria-label"]);var n=e.getAttribute("type");t["".concat(n,"ButtonText")]=e.innerHTML,t["show".concat(d(n),"Button")]=!0,e.hasAttribute("color")&&(t["".concat(n,"ButtonColor")]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(t["".concat(n,"ButtonAriaLabel")]=e.getAttribute("aria-label"))})),t},zt=function(e){var t={},n=e.querySelector("swal-image");return n&&(Ht(n,["src","width","height","alt"]),n.hasAttribute("src")&&(t.imageUrl=n.getAttribute("src")),n.hasAttribute("width")&&(t.imageWidth=n.getAttribute("width")),n.hasAttribute("height")&&(t.imageHeight=n.getAttribute("height")),n.hasAttribute("alt")&&(t.imageAlt=n.getAttribute("alt"))),t},qt=function(e){var t={},n=e.querySelector("swal-icon");return n&&(Ht(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},Ut=function(e){var t={},n=e.querySelector("swal-input");n&&(Ht(n,["type","label","placeholder","value"]),t.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(t.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(t.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(t.inputValue=n.getAttribute("value")));var r=e.querySelectorAll("swal-input-option");return r.length&&(t.inputOptions={},f(r).forEach((function(e){Ht(e,["value"]);var n=e.getAttribute("value"),r=e.innerHTML;t.inputOptions[n]=r}))),t},Vt=function(e,t){var n={};for(var r in t){var i=t[r],o=e.querySelector(i);o&&(Ht(o,[]),n[i.replace(/^swal-/,"")]=o.innerHTML.trim())}return n},Qt=function(e){var t=Mt.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);f(e.querySelectorAll("*")).forEach((function(n){if(n.parentNode===e){var r=n.tagName.toLowerCase();-1===t.indexOf(r)&&h("Unrecognized element <".concat(r,">"))}}))},Ht=function(e,t){f(e.attributes).forEach((function(n){-1===t.indexOf(n.name)&&h(['Unrecognized attribute "'.concat(n.name,'" on <').concat(e.tagName.toLowerCase(),">."),"".concat(t.length?"Allowed attributes are: ".concat(t.join(", ")):"To set the value, use HTML within the element.")])}))},Gt=function(e){var t=S(),n=A();"function"==typeof e.willOpen?e.willOpen(n):"function"==typeof e.onBeforeOpen&&e.onBeforeOpen(n);var r=window.getComputedStyle(document.body).overflowY;Jt(t,n,e),setTimeout((function(){Wt(t,n)}),10),K()&&($t(t,e.scrollbarPadding,r),f(document.body.children).forEach((function(e){e===S()||function(e,t){if("function"==typeof e.contains)return e.contains(t)}(e,S())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}))),W()||$e.previousActiveElement||($e.previousActiveElement=document.activeElement),Yt(n,e),oe(t,j["no-transition"])},Yt=function(e,t){"function"==typeof t.didOpen?setTimeout((function(){return t.didOpen(e)})):"function"==typeof t.onOpen&&setTimeout((function(){return t.onOpen(e)}))},Kt=function e(t){var n=A();if(t.target===n){var r=S();n.removeEventListener(_e,e),r.style.overflowY="auto"}},Wt=function(e,t){_e&&he(t)?(e.style.overflowY="hidden",t.addEventListener(_e,Kt)):e.style.overflowY="auto"},$t=function(e,t,n){!function(){if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!X(document.body,j.iosfix)){var e=document.body.scrollTop;document.body.style.top="".concat(-1*e,"px"),ie(document.body,j.iosfix),gt(),mt()}}(),"undefined"!=typeof window&&Ot()&&(xt(),window.addEventListener("resize",xt)),t&&"hidden"!==n&&vt(),setTimeout((function(){e.scrollTop=0}))},Jt=function(e,t,n){ie(e,n.showClass.backdrop),t.style.setProperty("opacity","0","important"),ce(t),setTimeout((function(){ie(t,n.showClass.popup),t.style.removeProperty("opacity")}),10),ie([document.documentElement,document.body],j.shown),n.heightAuto&&n.backdrop&&!n.toast&&ie([document.documentElement,document.body],j["height-auto"])},Xt=function(e){return e.checked?1:0},Zt=function(e){return e.checked?e.value:null},en=function(e){return e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null},tn=function(t,n){var r=I(),i=function(e){return rn[n.input](r,on(e),n)};y(n.inputOptions)||O(n.inputOptions)?(We(F()),w(n.inputOptions).then((function(e){t.hideLoading(),i(e)}))):"object"===e(n.inputOptions)?i(n.inputOptions):v("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(e(n.inputOptions)))},nn=function(e,t){var n=e.getInput();ue(n),w(t.inputValue).then((function(r){n.value="number"===t.input?parseFloat(r)||0:"".concat(r),ce(n),n.focus(),e.hideLoading()})).catch((function(t){v("Error in inputValue promise: ".concat(t)),n.value="",ce(n),n.focus(),e.hideLoading()}))},rn={select:function(e,t,n){var r=ae(e,j.select),i=function(e,t,r){var i=document.createElement("option");i.value=r,J(i,t),i.selected=an(r,n.inputValue),e.appendChild(i)};t.forEach((function(e){var t=e[0],n=e[1];if(Array.isArray(n)){var o=document.createElement("optgroup");o.label=t,o.disabled=!1,r.appendChild(o),n.forEach((function(e){return i(o,e[1],e[0])}))}else i(r,n,t)})),r.focus()},radio:function(e,t,n){var r=ae(e,j.radio);t.forEach((function(e){var t=e[0],i=e[1],o=document.createElement("input"),a=document.createElement("label");o.type="radio",o.name=j.radio,o.value=t,an(t,n.inputValue)&&(o.checked=!0);var s=document.createElement("span");J(s,i),s.className=j.label,a.appendChild(o),a.appendChild(s),r.appendChild(a)}));var i=r.querySelectorAll("input");i.length&&i[0].focus()}},on=function t(n){var r=[];return"undefined"!=typeof Map&&n instanceof Map?n.forEach((function(n,i){var o=n;"object"===e(o)&&(o=t(o)),r.push([i,o])})):Object.keys(n).forEach((function(i){var o=n[i];"object"===e(o)&&(o=t(o)),r.push([i,o])})),r},an=function(e,t){return t&&t.toString()===e.toString()},sn=function(e,t,n){var r=function(e,t){var n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return Xt(n);case"radio":return Zt(n);case"file":return en(n);default:return t.inputAutoTrim?n.value.trim():n.value}}(e,t);t.inputValidator?cn(e,t,r):e.getInput().checkValidity()?"deny"===n?un(e,t,r):dn(e,t,r):(e.enableButtons(),e.showValidationMessage(t.validationMessage))},cn=function(e,t,n){e.disableInput(),Promise.resolve().then((function(){return w(t.inputValidator(n,t.validationMessage))})).then((function(r){e.enableButtons(),e.enableInput(),r?e.showValidationMessage(r):dn(e,t,n)}))},un=function(e,t,n){t.showLoaderOnDeny&&We(B()),t.preDeny?Promise.resolve().then((function(){return w(t.preDeny(n,t.validationMessage))})).then((function(t){!1===t?e.hideLoading():e.closePopup({isDenied:!0,value:void 0===t?n:t})})):e.closePopup({isDenied:!0,value:n})},ln=function(e,t){e.closePopup({isConfirmed:!0,value:t})},dn=function(e,t,n){t.showLoaderOnConfirm&&We(),t.preConfirm?(e.resetValidationMessage(),Promise.resolve().then((function(){return w(t.preConfirm(n,t.validationMessage))})).then((function(t){pe(M())||!1===t?e.hideLoading():ln(e,void 0===t?n:t)}))):ln(e,n)},pn=function(e,t,n){var r=Y();if(r.length)return(t+=n)===r.length?t=0:-1===t&&(t=r.length-1),r[t].focus();A().focus()},fn=["ArrowRight","ArrowDown","Right","Down"],hn=["ArrowLeft","ArrowUp","Left","Up"],vn=["Escape","Esc"],mn=function(e,t,n){var r=Se.innerParams.get(e);r&&(r.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?gn(e,t,r):"Tab"===t.key?bn(t,r):-1!==[].concat(fn,hn).indexOf(t.key)?yn(t.key):-1!==vn.indexOf(t.key)&&wn(t,r,n))},gn=function(e,t,n){if(!t.isComposing&&t.target&&e.getInput()&&t.target.outerHTML===e.getInput().outerHTML){if(-1!==["textarea","file"].indexOf(n.input))return;Ke(),t.preventDefault()}},bn=function(e,t){for(var n=e.target,r=Y(),i=-1,o=0;o<r.length;o++)if(n===r[o]){i=o;break}e.shiftKey?pn(0,i,-1):pn(0,i,1),e.stopPropagation(),e.preventDefault()},yn=function(e){if(-1!==[F(),B(),q()].indexOf(document.activeElement)){var t=-1!==fn.indexOf(e)?"nextElementSibling":"previousElementSibling",n=document.activeElement[t];n&&n.focus()}},wn=function(e,t,n){b(t.allowEscapeKey)&&(e.preventDefault(),n(x.esc))},On=function(e,t,n){t.popup.onclick=function(){var t=Se.innerParams.get(e);t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton||t.timer||t.input||n(x.close)}},xn=!1,_n=function(e){e.popup.onmousedown=function(){e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(xn=!0)}}},En=function(e){e.container.onmousedown=function(){e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||e.popup.contains(t.target))&&(xn=!0)}}},jn=function(e,t,n){t.container.onclick=function(r){var i=Se.innerParams.get(e);xn?xn=!1:r.target===t.container&&b(i.allowOutsideClick)&&n(x.backdrop)}},kn=function(e,t){var n=function(e){var t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};var n=t.content||t;return Qt(n),i(Ft(n),Bt(n),zt(n),qt(n),Ut(n),Vt(n,Mt))}(e),r=i({},rt,t,n,e);return r.showClass=i({},rt.showClass,r.showClass),r.hideClass=i({},rt.hideClass,r.hideClass),!1===e.animation&&(r.showClass={popup:"swal2-noanimation",backdrop:"swal2-noanimation"},r.hideClass={}),r},Sn=function(e,t,n){return new Promise((function(r){var i=function(t){e.closePopup({isDismissed:!0,dismiss:t})};_t.swalPromiseResolve.set(e,r),t.confirmButton.onclick=function(){return function(e,t){e.disableButtons(),t.input?sn(e,t,"confirm"):dn(e,t,!0)}(e,n)},t.denyButton.onclick=function(){return function(e,t){e.disableButtons(),t.returnInputValueOnDeny?sn(e,t,"deny"):un(e,t,!1)}(e,n)},t.cancelButton.onclick=function(){return function(e,t){e.disableButtons(),t(x.cancel)}(e,i)},t.closeButton.onclick=function(){return i(x.close)},function(e,t,n){Se.innerParams.get(e).toast?On(e,t,n):(_n(t),En(t),jn(e,t,n))}(e,t,i),function(e,t,n,r){t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1),n.toast||(t.keydownHandler=function(t){return mn(e,t,r)},t.keydownTarget=n.keydownListenerCapture?window:A(),t.keydownListenerCapture=n.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)}(e,$e,n,i),function(e,t){"select"===t.input||"radio"===t.input?tn(e,t):-1!==["text","email","number","tel","textarea"].indexOf(t.input)&&(y(t.inputValue)||O(t.inputValue))&&nn(e,t)}(e,n),Gt(n),Tn($e,n,i),An(t,n),setTimeout((function(){t.container.scrollTop=0}))}))},Pn=function(e){var t={popup:A(),container:S(),content:I(),actions:U(),confirmButton:F(),denyButton:B(),cancelButton:q(),loader:z(),closeButton:G(),validationMessage:M(),progressSteps:D()};return Se.domCache.set(e,t),t},Tn=function(e,t,n){var r=H();ue(r),t.timer&&(e.timeout=new It((function(){n("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(ce(r),setTimeout((function(){e.timeout&&e.timeout.running&&ve(t.timer)}))))},An=function(e,t){if(!t.toast)return b(t.allowEnterKey)?void(Cn(e,t)||pn(0,-1,1)):Rn()},Cn=function(e,t){return t.focusDeny&&pe(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&pe(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!pe(e.confirmButton)||(e.confirmButton.focus(),0))},Rn=function(){document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()},In=function(e){"function"==typeof e.didDestroy?e.didDestroy():"function"==typeof e.onDestroy&&e.onDestroy()},Nn=function(e){delete e.params,delete $e.keydownHandler,delete $e.keydownTarget,Ln(Se),Ln(_t)},Ln=function(e){for(var t in e)e[t]=new WeakMap},Dn=Object.freeze({hideLoading:ht,disableLoading:ht,getInput:function(e){var t=Se.innerParams.get(e||this),n=Se.domCache.get(e||this);return n?ee(n.content,t.input):null},close:jt,closePopup:jt,closeModal:jt,closeToast:jt,enableButtons:function(){Ct(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){Ct(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){return Rt(this.getInput(),!1)},disableInput:function(){return Rt(this.getInput(),!0)},showValidationMessage:function(e){var t=Se.domCache.get(this),n=Se.innerParams.get(this);J(t.validationMessage,e),t.validationMessage.className=j["validation-message"],n.customClass&&n.customClass.validationMessage&&ie(t.validationMessage,n.customClass.validationMessage),ce(t.validationMessage);var r=this.getInput();r&&(r.setAttribute("aria-invalid",!0),r.setAttribute("aria-describedBy",j["validation-message"]),ne(r),ie(r,j.inputerror))},resetValidationMessage:function(){var e=Se.domCache.get(this);e.validationMessage&&ue(e.validationMessage);var t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedBy"),oe(t,j.inputerror))},getProgressSteps:function(){return Se.domCache.get(this).progressSteps},_main:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};pt(i({},t,e)),$e.currentInstance&&$e.currentInstance._destroy(),$e.currentInstance=this;var n=kn(e,t);Lt(n),Object.freeze(n),$e.timeout&&($e.timeout.stop(),delete $e.timeout),clearTimeout($e.restoreFocusTimeout);var r=Pn(this);return Ye(this,n),Se.innerParams.set(this,n),Sn(this,r,n)},update:function(e){var t=A(),n=Se.innerParams.get(this);if(!t||X(t,n.hideClass.popup))return h("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");var r={};Object.keys(e).forEach((function(t){Fn.isUpdatableParameter(t)?r[t]=e[t]:h('Invalid parameter to update: "'.concat(t,'". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js\n\nIf you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md'))}));var o=i({},n,r);Ye(this,o),Se.innerParams.set(this,o),Object.defineProperties(this,{params:{value:i({},this.params,e),writable:!1,enumerable:!0}})},_destroy:function(){var e=Se.domCache.get(this),t=Se.innerParams.get(this);t&&(e.popup&&$e.swalCloseEventFinishedCallback&&($e.swalCloseEventFinishedCallback(),delete $e.swalCloseEventFinishedCallback),$e.deferDisposalTimer&&(clearTimeout($e.deferDisposalTimer),delete $e.deferDisposalTimer),In(t),Nn(this))}}),Mn=function(){function e(){if(t(this,e),"undefined"!=typeof window){"undefined"==typeof Promise&&v("This package requires a Promise library, please include a shim to enable it in this browser (See: https://github.com/sweetalert2/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2#1-ie-support)"),Dt=this;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=Object.freeze(this.constructor.argsToParams(r));Object.defineProperties(this,{params:{value:o,writable:!1,enumerable:!0,configurable:!0}});var a=this._main(this.params);Se.promise.set(this,a)}}return r(e,[{key:"then",value:function(e){return Se.promise.get(this).then(e)}},{key:"finally",value:function(e){return Se.promise.get(this).finally(e)}}]),e}();i(Mn.prototype,Dn),i(Mn,ft),Object.keys(Dn).forEach((function(e){Mn[e]=function(){var t;if(Dt)return(t=Dt)[e].apply(t,arguments)}})),Mn.DismissReason=x,Mn.version="10.16.9";var Fn=Mn;return Fn.default=Fn,Fn}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var n=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t}catch(e){n.innerText=t}}(document,'.swal2-popup.swal2-toast{flex-direction:column;align-items:stretch;width:auto;padding:1.25em;overflow-y:hidden;background:#fff;box-shadow:0 0 .625em #d9d9d9}.swal2-popup.swal2-toast .swal2-header{flex-direction:row;padding:0}.swal2-popup.swal2-toast .swal2-title{flex-grow:1;justify-content:flex-start;margin:0 .625em;font-size:1em}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.3125em auto;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{position:static;width:.8em;height:.8em;line-height:.8}.swal2-popup.swal2-toast .swal2-content{justify-content:flex-start;margin:0 .625em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container{padding:.625em 0 0}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-icon{width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{font-size:.25em}}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{flex:1;flex-basis:auto!important;align-self:stretch;width:auto;height:2.2em;height:auto;margin:0 .3125em;margin-top:.3125em;padding:0}.swal2-popup.swal2-toast .swal2-styled{margin:.125em .3125em;padding:.3125em .625em;font-size:1em}.swal2-popup.swal2-toast .swal2-styled:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(100,150,200,.5)}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-container{display:flex;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;flex-direction:row;align-items:center;justify-content:center;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-top{align-items:flex-start}.swal2-container.swal2-top-left,.swal2-container.swal2-top-start{align-items:flex-start;justify-content:flex-start}.swal2-container.swal2-top-end,.swal2-container.swal2-top-right{align-items:flex-start;justify-content:flex-end}.swal2-container.swal2-center{align-items:center}.swal2-container.swal2-center-left,.swal2-container.swal2-center-start{align-items:center;justify-content:flex-start}.swal2-container.swal2-center-end,.swal2-container.swal2-center-right{align-items:center;justify-content:flex-end}.swal2-container.swal2-bottom{align-items:flex-end}.swal2-container.swal2-bottom-left,.swal2-container.swal2-bottom-start{align-items:flex-end;justify-content:flex-start}.swal2-container.swal2-bottom-end,.swal2-container.swal2-bottom-right{align-items:flex-end;justify-content:flex-end}.swal2-container.swal2-bottom-end>:first-child,.swal2-container.swal2-bottom-left>:first-child,.swal2-container.swal2-bottom-right>:first-child,.swal2-container.swal2-bottom-start>:first-child,.swal2-container.swal2-bottom>:first-child{margin-top:auto}.swal2-container.swal2-grow-fullscreen>.swal2-modal{display:flex!important;flex:1;align-self:stretch;justify-content:center}.swal2-container.swal2-grow-row>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-grow-column{flex:1;flex-direction:column}.swal2-container.swal2-grow-column.swal2-bottom,.swal2-container.swal2-grow-column.swal2-center,.swal2-container.swal2-grow-column.swal2-top{align-items:center}.swal2-container.swal2-grow-column.swal2-bottom-left,.swal2-container.swal2-grow-column.swal2-bottom-start,.swal2-container.swal2-grow-column.swal2-center-left,.swal2-container.swal2-grow-column.swal2-center-start,.swal2-container.swal2-grow-column.swal2-top-left,.swal2-container.swal2-grow-column.swal2-top-start{align-items:flex-start}.swal2-container.swal2-grow-column.swal2-bottom-end,.swal2-container.swal2-grow-column.swal2-bottom-right,.swal2-container.swal2-grow-column.swal2-center-end,.swal2-container.swal2-grow-column.swal2-center-right,.swal2-container.swal2-grow-column.swal2-top-end,.swal2-container.swal2-grow-column.swal2-top-right{align-items:flex-end}.swal2-container.swal2-grow-column>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-no-transition{transition:none!important}.swal2-container:not(.swal2-top):not(.swal2-top-start):not(.swal2-top-end):not(.swal2-top-left):not(.swal2-top-right):not(.swal2-center-start):not(.swal2-center-end):not(.swal2-center-left):not(.swal2-center-right):not(.swal2-bottom):not(.swal2-bottom-start):not(.swal2-bottom-end):not(.swal2-bottom-left):not(.swal2-bottom-right):not(.swal2-grow-fullscreen)>.swal2-modal{margin:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-container .swal2-modal{margin:0!important}}.swal2-popup{display:none;position:relative;box-sizing:border-box;flex-direction:column;justify-content:center;width:32em;max-width:100%;padding:1.25em;border:none;border-radius:5px;background:#fff;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-header{display:flex;flex-direction:column;align-items:center;padding:0 1.8em}.swal2-title{position:relative;max-width:100%;margin:0 0 .4em;padding:0;color:#595959;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:100%;margin:1.25em auto 0;padding:0}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-loader{display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 transparent #2778c4 transparent}.swal2-styled{margin:.3125em;padding:.625em 1.1em;box-shadow:none;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#2778c4;color:#fff;font-size:1em}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#d14529;color:#fff;font-size:1em}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#757575;color:#fff;font-size:1em}.swal2-styled:focus{outline:0;box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1.25em 0 0;padding:1em 0 0;border-top:1px solid #eee;color:#545454;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;height:.25em;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:1.25em auto}.swal2-close{position:absolute;z-index:2;top:0;right:0;align-items:center;justify-content:center;width:1.2em;height:1.2em;padding:0;overflow:hidden;transition:color .1s ease-out;border:none;border-radius:5px;background:0 0;color:#ccc;font-family:serif;font-size:2.5em;line-height:1.2;cursor:pointer}.swal2-close:hover{transform:none;background:0 0;color:#f27474}.swal2-close:focus{outline:0;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}.swal2-close::-moz-focus-inner{border:0}.swal2-content{z-index:1;justify-content:center;margin:0;padding:0 1.6em;color:#545454;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em auto}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:100%;transition:border-color .3s,box-shadow .3s;border:1px solid #d9d9d9;border-radius:.1875em;background:inherit;box-shadow:inset 0 1px 1px rgba(0,0,0,.06);color:inherit;font-size:1.125em}.swal2-file.swal2-inputerror,.swal2-input.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-file:focus,.swal2-input:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:0;box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-file::-moz-placeholder,.swal2-input::-moz-placeholder,.swal2-textarea::-moz-placeholder{color:#ccc}.swal2-file:-ms-input-placeholder,.swal2-input:-ms-input-placeholder,.swal2-textarea:-ms-input-placeholder{color:#ccc}.swal2-file::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em auto;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-input[type=number]{max-width:10em}.swal2-file{background:inherit;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:inherit;color:inherit;font-size:1.125em}.swal2-checkbox,.swal2-radio{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-checkbox label,.swal2-radio label{margin:0 .6em;font-size:1.125em}.swal2-checkbox input,.swal2-radio input{flex-shrink:0;margin:0 .4em}.swal2-input-label{display:flex;justify-content:center;margin:1em auto}.swal2-validation-message{align-items:center;justify-content:center;margin:0 -2.7em;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:1.25em auto 1.875em;border:.25em solid transparent;border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{-webkit-animation:swal2-animate-error-x-mark .5s;animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-.25em;left:-.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-animate-success-line-tip .75s;animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-animate-success-line-long .75s;animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{-webkit-animation:swal2-rotate-success-circular-line 4.25s ease-in;animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:0 0 1.25em;padding:0;background:inherit;font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{-webkit-animation:swal2-show .3s;animation:swal2-show .3s}.swal2-hide{-webkit-animation:swal2-hide .15s forwards;animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{right:auto;left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@supports (-ms-accelerator:true){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@-webkit-keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@-webkit-keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@-webkit-keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@-webkit-keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@-webkit-keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@-webkit-keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@-webkit-keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@-webkit-keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@-webkit-keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@-webkit-keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@-webkit-keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@-webkit-keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-container{top:auto;right:auto;bottom:auto;left:auto;max-width:calc(100% - .625em * 2);background-color:transparent!important}body.swal2-no-backdrop .swal2-container>.swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}body.swal2-no-backdrop .swal2-container.swal2-top{top:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-container.swal2-top-left,body.swal2-no-backdrop .swal2-container.swal2-top-start{top:0;left:0}body.swal2-no-backdrop .swal2-container.swal2-top-end,body.swal2-no-backdrop .swal2-container.swal2-top-right{top:0;right:0}body.swal2-no-backdrop .swal2-container.swal2-center{top:50%;left:50%;transform:translate(-50%,-50%)}body.swal2-no-backdrop .swal2-container.swal2-center-left,body.swal2-no-backdrop .swal2-container.swal2-center-start{top:50%;left:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-container.swal2-center-end,body.swal2-no-backdrop .swal2-container.swal2-center-right{top:50%;right:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-container.swal2-bottom{bottom:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-container.swal2-bottom-left,body.swal2-no-backdrop .swal2-container.swal2-bottom-start{bottom:0;left:0}body.swal2-no-backdrop .swal2-container.swal2-bottom-end,body.swal2-no-backdrop .swal2-container.swal2-bottom-right{right:0;bottom:0}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll!important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static!important}}body.swal2-toast-shown .swal2-container{background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}')},,function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return o}));var r="function"==typeof Symbol&&null!=Symbol.iterator?Symbol.iterator:"@@iterator",i="function"==typeof Symbol&&null!=Symbol.asyncIterator?Symbol.asyncIterator:"@@asyncIterator",o="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag"},function(e,t,n){"use strict";function r(e,t){if(!Boolean(e))throw new Error(t)}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(188),i=n(41),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},function(e,t,n){var r=n(64),i=n(192),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},,function(e,t,n){"use strict";(function(e){
354
- /*!
355
- * The buffer module from node.js, for the browser.
356
- *
357
- * @author Feross Aboukhadijeh <http://feross.org>
358
- * @license MIT
359
- */
360
- var r=n(218),i=n(219),o=n(153);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return u(this,e,t,n)}function u(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=p(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(t,n),i=(e=s(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|f(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):p(e,t);if("Buffer"===t.type&&o(t.data))return p(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(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 d(e,t){if(l(t),e=s(e,t<0?0:0|f(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t){var n=t.length<0?0:0|f(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function f(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(c.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 n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(e).length;default:if(r)return z(e).length;t=(""+t).toLowerCase(),r=!0}}function v(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,n);case"utf8":case"utf-8":return k(this,t,n);case"ascii":return S(this,t,n);case"latin1":case"binary":return P(this,t,n);case"base64":return j(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){var o,a=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;o<s;o++)if(u(e,o)===u(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===c)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(n+c>s&&(n=s-c),o=n;o>=0;o--){for(var d=!0,p=0;p<c;p++)if(u(e,o+p)!==u(t,p)){d=!1;break}if(d)return o}return-1}function y(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function w(e,t,n,r){return U(z(t,e.length-n),e,n,r)}function O(e,t,n,r){return U(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function x(e,t,n,r){return O(e,t,n,r)}function _(e,t,n,r){return U(q(t),e,n,r)}function E(e,t,n,r){return U(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function j(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function k(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,c,u=e[i],l=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(l=u);break;case 2:128==(192&(o=e[i+1]))&&(c=(31&u)<<6|63&o)>127&&(l=c);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(c=(15&u)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(c=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,d=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.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=a(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return u(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,r){return l(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return d(null,e)},c.allocUnsafeSlow=function(e){return d(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},c.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}},c.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},c.byteLength=h,c.prototype._isBuffer=!0,c.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)m(this,t,t+1);return this},c.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)m(this,t,t+3),m(this,t+1,t+2);return this},c.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)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?k(this,0,e):v.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),u=this.slice(r,i),l=e.slice(t,n),d=0;d<s;++d)if(u[d]!==l[d]){o=u[d],a=l[d];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return O(this,e,t,n);case"latin1":case"binary":return x(this,e,t,n);case"base64":return _(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function S(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function P(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function T(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=B(e[o]);return i}function A(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function C(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,n,r,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function I(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function N(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function L(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(e,t,n,r,o){return o||L(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function M(e,t,n,r,o){return o||L(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype;else{var i=t-e;n=new c(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||C(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||C(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},c.prototype.readUInt8=function(e,t){return t||C(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||C(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||C(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||C(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||C(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||C(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||C(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return t||C(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||C(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||C(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||C(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||C(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||C(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||C(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||C(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||C(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||R(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||R(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):N(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);R(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);R(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return D(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return D(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return M(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return M(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=c.isBuffer(e)?e:z(new c(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function B(e){return e<16?"0"+e.toString(16):e.toString(16)}function z(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function q(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function U(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(37))},,function(e,t,n){"use strict";n.d(t,"h",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"d",(function(){return l})),n.d(t,"g",(function(){return d})),n.d(t,"f",(function(){return p})),n.d(t,"c",(function(){return f})),n.d(t,"e",(function(){return h})),n.d(t,"m",(function(){return v})),n.d(t,"j",(function(){return g})),n.d(t,"i",(function(){return b})),n.d(t,"l",(function(){return y})),n.d(t,"k",(function(){return O}));var r=n(35);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=({name:e,viewpart:t,position:n})=>{r.store.dispatch({type:c,name:e,viewpart:o(o({},t),{},{show:(!t.hovering||!t.show)&&t.show}),position:n}),t.hovering&&t.show&&g(e)},c="APPEND_VIEWPART",u="REMOVE_VIEWPART",l="UPDATE_VIEWPART",d={HEADERBAR:"headerbar",NAVBAR:"navbar",ASIDEBAR:"asidebar",FOOTERBAR:"footerbar"},p={TOPMOST:"TOPMOST",NORMAL:"NORMAL"},f={FRONT_END:"FRONT_END",FRONT:"FRONT",CENTER:"CENTER",REAR:"REAR",REAR_END:"REAR_END"},h="UPDATE_VIEWPORT_WIDTH",v=e=>{r.store.dispatch({type:h,width:e?"WIDE":"NARROW"})},m=0,g=(e,t,n)=>{var i=history.state,o=i?i.overlay:void 0,a=o&&void 0!==o.sequence?o.sequence:m,s=m=a+1;!n&&t&&r.store.dispatch({type:l,name:e,override:t});var c=Object.assign({},i||{},{overlay:{name:e,sequence:s,escapable:!1!==(null==t?void 0:t.escapable)}});history.pushState(c,"",location.href),window.dispatchEvent(new CustomEvent("popstate",{detail:{state:c}}))},b=e=>{history.back()},y=(e,t)=>{var{name:n}=history.state&&history.state.overlay||{};n==e?b(e):g(e,t)},w=0,O=(e,t={})=>{var n="$popup-".concat(w++);s({name:n,viewpart:o(o({hovering:"center",closable:!0},t),{},{backdrop:!0,show:!1,temporary:!0,template:e}),position:d.HEADERBAR}),g(n,t,!0);var r={name:n,close:()=>{var e=(history.state||{}).overlay;e&&e.name==n&&history.back()},closed:!1,onclosed:null};return document.addEventListener("overlay-closed",(function e(t){n==t.detail&&(r.closed=!0,r.onclosed&&r.onclosed(),document.removeEventListener("overlay-closed",e))})),r}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return s}));var r,i="OPEN_SNACKBAR",o="CLOSE_SNACKBAR";function a(e){if("string"==typeof e)return a({message:e});var{message:t,level:n,option:r,ex:i}=e;document.dispatchEvent(new CustomEvent("notify",{detail:{message:t,level:n,ex:i,option:r}}))}var s=(e,{message:t,action:n,timer:a=5e3})=>s=>{s({type:i,level:e,message:t,action:n}),window.clearTimeout(r),-1!=a&&(r=window.setTimeout(()=>s({type:o}),a))}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){var n="undefined"!=typeof self?self:this,r=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,i="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),o="FormData"in e,a="ArrayBuffer"in e;if(a)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function u(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function l(e){return"string"!=typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function f(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function v(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&i&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=m(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?f(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,n,r=f(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=h(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(e,t){e=u(e),t=l(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},p.prototype.delete=function(e){delete this.map[u(e)]},p.prototype.get=function(e){return e=u(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(u(e))},p.prototype.set=function(e,t){this.map[u(e)]=l(t)},p.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},p.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),d(e)},p.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),d(e)},p.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),d(e)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(e,t){var n,r,i=(t=t||{}).body;if(e instanceof y){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),b.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function w(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function O(e){var t=new p;return e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t}function x(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},g.call(y.prototype),g.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},x.error=function(){var e=new x(null,{status:0,statusText:""});return e.type="error",e};var _=[301,302,303,307,308];x.redirect=function(e,t){if(-1===_.indexOf(t))throw new RangeError("Invalid status code");return new x(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function E(e,n){return new Promise((function(r,o){var a=new y(e,n);if(a.signal&&a.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var e={status:s.status,statusText:s.statusText,headers:O(s.getAllResponseHeaders()||"")};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL");var t="response"in s?s.response:s.responseText;r(new x(t,e))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.onabort=function(){o(new t.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&i&&(s.responseType="blob"),a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}E.polyfill=!0,e.fetch||(e.fetch=E,e.Headers=p,e.Request=y,e.Response=x),t.Headers=p,t.Request=y,t.Response=x,t.fetch=E,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},function(e,t,n){var r=n(117),i=n(184),o=n(102),a=n(186),s=n(193),c=n(196),u=n(197),l=n(198),d=n(200),p=n(119),f=n(201),h=n(53),v=n(206),m=n(207),g=n(212),b=n(47),y=n(66),w=n(214),O=n(36),x=n(216),_=n(70),E=n(73),j={};j["[object Arguments]"]=j["[object Array]"]=j["[object ArrayBuffer]"]=j["[object DataView]"]=j["[object Boolean]"]=j["[object Date]"]=j["[object Float32Array]"]=j["[object Float64Array]"]=j["[object Int8Array]"]=j["[object Int16Array]"]=j["[object Int32Array]"]=j["[object Map]"]=j["[object Number]"]=j["[object Object]"]=j["[object RegExp]"]=j["[object Set]"]=j["[object String]"]=j["[object Symbol]"]=j["[object Uint8Array]"]=j["[object Uint8ClampedArray]"]=j["[object Uint16Array]"]=j["[object Uint32Array]"]=!0,j["[object Error]"]=j["[object Function]"]=j["[object WeakMap]"]=!1,e.exports=function e(t,n,k,S,P,T){var A,C=1&n,R=2&n,I=4&n;if(k&&(A=P?k(t,S,P,T):k(t)),void 0!==A)return A;if(!O(t))return t;var N=b(t);if(N){if(A=v(t),!C)return u(t,A)}else{var L=h(t),D="[object Function]"==L||"[object GeneratorFunction]"==L;if(y(t))return c(t,C);if("[object Object]"==L||"[object Arguments]"==L||D&&!P){if(A=R||D?{}:g(t),!C)return R?d(t,s(A,t)):l(t,a(A,t))}else{if(!j[L])return P?t:{};A=m(t,L,C)}}T||(T=new r);var M=T.get(t);if(M)return M;T.set(t,A),x(t)?t.forEach((function(r){A.add(e(r,n,k,r,t,T))})):w(t)&&t.forEach((function(r,i){A.set(i,e(r,n,k,i,t,T))}));var F=N?void 0:(I?R?f:p:R?E:_)(t);return i(F||t,(function(r,i){F&&(r=t[i=r]),o(A,i,e(r,n,k,i,t,T))})),A}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(57),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(57);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(57);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(57);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},function(e,t,n){var r=n(56);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},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,n){var r=n(56),i=n(69),o=n(118);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(99),i=n(169),o=n(36),a=n(101),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,d=u.hasOwnProperty,p=RegExp("^"+l.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?p:s).test(a(e))}},function(e,t,n){var r=n(50),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r,i=n(170),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},function(e,t,n){var r=n(26)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(173),i=n(56),o=n(69);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(e,t,n){var r=n(174),i=n(175),o=n(176),a=n(177),s=n(178);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(58);e.exports=function(){this.__data__=r?r(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,n){var r=n(58),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(58),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},function(e,t,n){var r=n(58);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,n){var r=n(59);e.exports=function(e){var t=r(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,n){var r=n(59);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(59);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(59);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t,n){var r=n(38),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t,n){var r=n(60),i=n(70);e.exports=function(e,t){return e&&r(t,i(t),e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(49),i=n(41);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},function(e,t){e.exports=function(){return!1}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(49),i=n(105),o=n(41),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},function(e,t,n){var r=n(106)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(60),i=n(73);e.exports=function(e,t){return e&&r(t,i(t),e)}},function(e,t,n){var r=n(36),i=n(64),o=n(195),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){(function(e){var r=n(26),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(68)(e))},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){var r=n(60),i=n(74);e.exports=function(e,t){return r(e,i(e),t)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},function(e,t,n){var r=n(60),i=n(108);e.exports=function(e,t){return r(e,i(e),t)}},function(e,t,n){var r=n(111),i=n(108),o=n(73);e.exports=function(e){return r(e,o,i)}},function(e,t,n){var r=n(38)(n(26),"DataView");e.exports=r},function(e,t,n){var r=n(38)(n(26),"Promise");e.exports=r},function(e,t,n){var r=n(38)(n(26),"Set");e.exports=r},function(e,t,n){var r=n(38)(n(26),"WeakMap");e.exports=r},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},function(e,t,n){var r=n(75),i=n(208),o=n(209),a=n(210),s=n(211);e.exports=function(e,t,n){var c=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new c(+e);case"[object DataView]":return i(e,n);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,n);case"[object Map]":return new c;case"[object Number]":case"[object String]":return new c(e);case"[object RegExp]":return o(e);case"[object Set]":return new c;case"[object Symbol]":return a(e)}}},function(e,t,n){var r=n(75);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},function(e,t){var n=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}},function(e,t,n){var r=n(50),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},function(e,t,n){var r=n(75);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(213),i=n(110),o=n(64);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},function(e,t,n){var r=n(36),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},function(e,t,n){var r=n(215),i=n(71),o=n(72),a=o&&o.isMap,s=a?i(a):r;e.exports=s},function(e,t,n){var r=n(53),i=n(41);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},function(e,t,n){var r=n(217),i=n(71),o=n(72),a=o&&o.isSet,s=a?i(a):r;e.exports=s},function(e,t,n){var r=n(53),i=n(41);e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},function(e,t,n){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=u(e),a=r[0],s=r[1],c=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),l=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[l++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(l(e,a,a+16383>s?s:a+16383));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)r[s]=a[s],i[a.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 n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){
361
- /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
362
- t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,c=(1<<s)-1,u=c>>1,l=-7,d=n?i-1:0,p=n?-1:1,f=e[t+d];for(d+=p,o=f&(1<<-l)-1,f>>=-l,l+=s;l>0;o=256*o+e[t+d],d+=p,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+d],d+=p,l-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=u}return(f?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,c,u=8*o-i-1,l=(1<<u)-1,d=l>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,h=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?p/c:p*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(t*c-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+f]=255&s,f+=h,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+f]=255&a,f+=h,a/=256,u-=8);e[n+f-h]|=128*v}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));var r=n(1),i=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,o=Symbol(),a=new Map;
363
- /**
364
- * @license
365
- * Copyright 2019 Google LLC
366
- * SPDX-License-Identifier: BSD-3-Clause
367
- */class s{constructor(e,t){if(this._$cssResult$=!0,t!==o)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}get styleSheet(){var e=a.get(this.cssText);return i&&void 0===e&&(a.set(this.cssText,e=new CSSStyleSheet),e.replaceSync(this.cssText)),e}toString(){return this.cssText}}var c,u,l,d,p=i?e=>e:e=>e instanceof CSSStyleSheet?(e=>{var t="";for(var n of e.cssRules)t+=n.cssText;return(e=>new s("string"==typeof e?e:e+"",o))(t)})(e):e;function f(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}var h={toAttribute(e,t){switch(t){case Boolean:e=e?"":null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){var n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch(e){n=null}}return n}},v=(e,t)=>t!==e&&(t==t||e==e),m={attribute:!0,type:String,converter:h,reflect:!1,hasChanged:v};class g extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(e){var t;null!==(t=this.l)&&void 0!==t||(this.l=[]),this.l.push(e)}static get observedAttributes(){this.finalize();var e=[];return this.elementProperties.forEach((t,n)=>{var r=this._$Eh(n,t);void 0!==r&&(this._$Eu.set(r,n),e.push(r))}),e}static createProperty(e,t=m){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){var n="symbol"==typeof e?Symbol():"__"+e,r=this.getPropertyDescriptor(e,n,t);void 0!==r&&Object.defineProperty(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(r){var i=this[e];this[t]=r,this.requestUpdate(e,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||m}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;var e=Object.getPrototypeOf(this);if(e.finalize(),this.elementProperties=new Map(e.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){var t=this.properties,n=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(var r of n)this.createProperty(r,t[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){var t=[];if(Array.isArray(e)){var n=new Set(e.flat(1/0).reverse());for(var r of n)t.unshift(p(r))}else void 0!==e&&t.push(p(e));return t}static _$Eh(e,t){var n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}o(){var e;this._$Ev=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Ep(),this.requestUpdate(),null===(e=this.constructor.l)||void 0===e||e.forEach(e=>e(this))}addController(e){var t,n;(null!==(t=this._$Em)&&void 0!==t?t:this._$Em=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(n=e.hostConnected)||void 0===n||n.call(e))}removeController(e){var t;null===(t=this._$Em)||void 0===t||t.splice(this._$Em.indexOf(e)>>>0,1)}_$Ep(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Et.set(t,this[t]),delete this[t])})}createRenderRoot(){var e,t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{i?e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(t=>{var n=document.createElement("style");n.textContent=t.cssText,e.appendChild(n)})})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$Em)||void 0===e||e.forEach(e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)})}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$Em)||void 0===e||e.forEach(e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)})}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$Eg(e,t,n=m){var r,i,o=this.constructor._$Eh(e,n);if(void 0!==o&&!0===n.reflect){var a=(null!==(i=null===(r=n.converter)||void 0===r?void 0:r.toAttribute)&&void 0!==i?i:h.toAttribute)(t,n.type);this._$Ei=e,null==a?this.removeAttribute(o):this.setAttribute(o,a),this._$Ei=null}}_$AK(e,t){var n,r,i,o=this.constructor,a=o._$Eu.get(e);if(void 0!==a&&this._$Ei!==a){var s=o.getPropertyOptions(a),c=s.converter,u=null!==(i=null!==(r=null===(n=c)||void 0===n?void 0:n.fromAttribute)&&void 0!==r?r:"function"==typeof c?c:null)&&void 0!==i?i:h.fromAttribute;this._$Ei=a,this[a]=u(t,s.type),this._$Ei=null}}requestUpdate(e,t,n){var r=!0;void 0!==e&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||v)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===n.reflect&&this._$Ei!==e&&(void 0===this._$ES&&(this._$ES=new Map),this._$ES.set(e,n))):r=!1),!this.isUpdatePending&&r&&(this._$Ev=this._$EC())}_$EC(){var e,t=this;return(e=function*(){t.isUpdatePending=!0;try{yield t._$Ev}catch(e){Promise.reject(e)}var e=t.performUpdate();return null!=e&&(yield e),!t.isUpdatePending},function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){f(o,r,i,a,s,"next",e)}function s(e){f(o,r,i,a,s,"throw",e)}a(void 0)}))})()}performUpdate(){var e;if(this.isUpdatePending){this.hasUpdated,this._$Et&&(this._$Et.forEach((e,t)=>this[t]=e),this._$Et=void 0);var t=!1,n=this._$AL;try{(t=this.shouldUpdate(n))?(this.willUpdate(n),null===(e=this._$Em)||void 0===e||e.forEach(e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)}),this.update(n)):this._$E_()}catch(e){throw t=!1,this._$E_(),e}t&&this._$AE(n)}}willUpdate(e){}_$AE(e){var t;null===(t=this._$Em)||void 0===t||t.forEach(e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$E_(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ev}shouldUpdate(e){return!0}update(e){void 0!==this._$ES&&(this._$ES.forEach((e,t)=>this._$Eg(t,this[t],e)),this._$ES=void 0),this._$E_()}updated(e){}firstUpdated(e){}}g.finalized=!0,g.elementProperties=new Map,g.elementStyles=[],g.shadowRootOptions={mode:"open"},null===(u=(c=globalThis).reactiveElementPlatformSupport)||void 0===u||u.call(c,{ReactiveElement:g}),(null!==(l=(d=globalThis).reactiveElementVersions)&&void 0!==l?l:d.reactiveElementVersions=[]).push("1.0.0-rc.3");n(5);var b=n(0);
368
- /**
369
- * @license
370
- * Copyright 2017 Google LLC
371
- * SPDX-License-Identifier: BSD-3-Clause
372
- */
373
- var y,w,O=Element.prototype;O.msMatchesSelector||O.webkitMatchesSelector;function x(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var _=class extends b.a{render(){return Object(b.e)(y||(y=x(['\n <svg class="pull-to-refresh-material__icon" fill="#4285f4" width="24" height="24" viewBox="0 0 24 24">\n <path\n d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"\n />\n <path d="M0 0h24v24H0z" fill="none" />\n </svg>\n\n <svg class="pull-to-refresh-material__spinner" width="24" height="24" viewBox="25 25 50 50">\n <circle\n class="pull-to-refresh-material__path"\n cx="50"\n cy="50"\n r="20"\n fill="none"\n stroke="#4285f4"\n stroke-width="4"\n stroke-miterlimit="10"\n />\n </svg>\n '])))}pulling(e,t){var{threshold:n}=t,r=e/n;r>1?r=1:r*=r*r;var i=e/2.5;this.style.opacity=String(r),this.style.transform=i?"translate3d(-50%, ".concat(i,"px, 0) rotate(").concat(360*r,"deg)"):""}refreshing({threshold:e}){this.style.transition="transform 0.2s",this.style.transform="translate3d(-50%, ".concat(e/2.5,"px, 0)")}aborting(){return new Promise(e=>{this.style.transform?(this.style.transition="transform 0.3s, opacity 0.15s",this.style.transform="translate3d(-50%, 0, 0)",this.style.opacity="0",this.addEventListener("transitionend",()=>{this.style.transition="",e()})):e()})}restoring(){return new Promise(e=>{this.style.transition="transform 0.3s",this.style.transform+=" scale(0.01)",this.addEventListener("transitionend",()=>{this.style.transition="",e()})})}};function E(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function j(e){e=Object.assign({scrollable:document.body,threshold:150,onStateChange(e,t){}},e);var{container:t,scrollable:n,threshold:r,refresh:i,onStateChange:o,animates:a}=e;a||(a=document.createElement("pulltorefresh-control"),t.appendChild(a));var s,c=-1,u=-1;function l(e){a.classList.add("pull-to-refresh--"+e)}function d(e){a.classList.remove("pull-to-refresh--"+e)}return function({element:e,onpanstart:t,onpanmove:n,onpanend:r}){var i,o,a,s;function c(e){var t=Array.prototype.slice.call(e.changedTouches).filter(e=>e.identifier===i)[0];return!!t&&(e.deltaX=t.screenX-o,e.deltaY=t.screenY-a,!0)}function u(e){var t=e.changedTouches[0];i=t.identifier,o=t.screenX,a=t.screenY}function l(e){c(e)&&(t&&!s&&(t(e),s=!0),n(e))}function d(e){c(e)&&r(e)}return e.addEventListener("touchstart",u),n&&e.addEventListener("touchmove",l),r&&e.addEventListener("touchend",d),function(){e.removeEventListener("touchstart",u),n&&e.removeEventListener("touchmove",l),r&&e.removeEventListener("touchend",d)}}({element:t,onpanmove(t){var i=t.deltaY;(!n||[window,document,document.body,document.documentElement].includes(n)?document.documentElement.scrollTop||document.body.scrollTop:n.scrollTop)>0||i<0&&!s||s in{aborting:1,refreshing:1,restoring:1}||(t.cancelable&&t.preventDefault(),-1==c&&(u=i,l(s="pulling"),o(s,e)),(i-=u)<0&&(i=0),c=i,(i>=r&&"reached"!==s||i<r&&"pulling"!==s)&&(d(s),l(s="reached"===s?"pulling":"reached"),o(s,e)),a.pulling(i,e))},onpanend(){return(t=function*(){""!=s&&("pulling"===s?(d(s),o(s="aborting"),l(s),yield a.aborting(e),d(s),c=-1,u=-1,o(s="")):"reached"===s&&(d(s),l(s="refreshing"),o(s,e),a.refreshing(e),yield i(),d(s),l(s="restoring"),o(s),yield a.restoring(e),d(s),c=-1,u=-1,o(s="")))},function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(e){E(o,r,i,a,s,"next",e)}function s(e){E(o,r,i,a,s,"throw",e)}a(void 0)}))})();var t}})}_.styles=Object(b.b)(w||(w=x(["\n :host {\n position: absolute;\n top: -50px;\n left: 50%;\n -webkit-transform: translate3d(-50%, 0, 0);\n transform: translate3d(-50%, 0, 0);\n width: 40px;\n height: 40px;\n justify-content: center;\n align-items: center;\n background: #fff;\n border-radius: 50%;\n box-shadow: 0 1px 6px rgba(0, 0, 0, 0.117647), 0 1px 4px rgba(0, 0, 0, 0.117647);\n display: none;\n\n z-index: 10000;\n }\n\n :host(.pull-to-refresh--pulling),\n :host(.pull-to-refresh--aborting),\n :host(.pull-to-refresh--reached),\n :host(.pull-to-refresh--refreshing),\n :host(.pull-to-refresh--restoring) {\n display: flex;\n }\n\n :host(.pull-to-refresh--pulling) .pull-to-refresh-material__spinner,\n :host(.pull-to-refresh--aborting) .pull-to-refresh-material__spinner,\n :host(.pull-to-refresh--reached) .pull-to-refresh-material__spinner,\n :host(.pull-to-refresh--refreshing) .pull-to-refresh-material__icon,\n :host(.pull-to-refresh--restoring) .pull-to-refresh-material__icon {\n display: none;\n }\n\n .pull-to-refresh-material__spinner {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n -webkit-animation: pull-to-refresh-material-rotate 2s linear infinite;\n animation: pull-to-refresh-material-rotate 2s linear infinite;\n }\n\n .pull-to-refresh-material__path {\n stroke-dasharray: 1, 200;\n stroke-dashoffset: 0;\n stroke-linecap: round;\n -webkit-animation: pull-to-refresh-material-dash 1.5s ease-in-out infinite;\n animation: pull-to-refresh-material-dash 1.5s ease-in-out infinite;\n }\n\n .pull-to-refresh-material__path--colorful {\n -webkit-animation: pull-to-refresh-material-dash 1.5s ease-in-out infinite,\n pull-to-refresh-material-colorful 6s ease-in-out infinite;\n animation: pull-to-refresh-material-dash 1.5s ease-in-out infinite,\n pull-to-refresh-material-colorful 6s ease-in-out infinite;\n }\n\n @-webkit-keyframes pull-to-refresh-material-rotate {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n }\n\n @keyframes pull-to-refresh-material-rotate {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n }\n\n @-webkit-keyframes pull-to-refresh-material-dash {\n 0% {\n stroke-dasharray: 1, 200;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 89, 200;\n stroke-dashoffset: -35px;\n }\n 100% {\n stroke-dasharray: 89, 200;\n stroke-dashoffset: -124px;\n }\n }\n\n @keyframes pull-to-refresh-material-dash {\n 0% {\n stroke-dasharray: 1, 200;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 89, 200;\n stroke-dashoffset: -35px;\n }\n 100% {\n stroke-dasharray: 89, 200;\n stroke-dashoffset: -124px;\n }\n }\n\n @-webkit-keyframes pull-to-refresh-material-colorful {\n 100%,\n 0% {\n stroke: #4285f4;\n }\n 40% {\n stroke: #ea4335;\n }\n 66% {\n stroke: #fbbc05;\n }\n 80%,\n 90% {\n stroke: #34a853;\n }\n }\n\n @keyframes pull-to-refresh-material-colorful {\n 100%,\n 0% {\n stroke: #4285f4;\n }\n 40% {\n stroke: #ea4335;\n }\n 66% {\n stroke: #fbbc05;\n }\n 80%,\n 90% {\n stroke: #34a853;\n }\n }\n "]))),_=Object(r.c)([(e=>t=>"function"==typeof t?((e,t)=>(window.customElements.define(e,t),t))(e,t):((e,t)=>{var{kind:n,elements:r}=t;return{kind:n,elements:r,finisher(t){window.customElements.define(e,t)}}})(e,t))("pulltorefresh-control")],_)},function(e,t,n){var r=n(97),i=n(36);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:o,maxWait:t,trailing:a})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return u}));var r=n(144),i=n(67),o=n(145),a=n(289);function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof e||Object(o.a)(0,"Body must be a string. Received: ".concat(Object(i.a)(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||Object(o.a)(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Object(o.a)(0,"column in locationOffset is 1-indexed and must be positive.")}var t,n,a;return t=e,(n=[{key:r.c,get:function(){return"Source"}}])&&s(t.prototype,n),a&&s(t,a),e}();function u(e){return Object(a.a)(e,c)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c}));var r=n(39),i=n(16),o=n(3),a=n(79),s=function(){function e(e){var t=new i.b(o.a.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e=this.token;if(e.kind!==o.a.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=l(this,e)}while(e.kind===o.a.COMMENT);return e},e}();function c(e){return e===o.a.BANG||e===o.a.DOLLAR||e===o.a.AMP||e===o.a.PAREN_L||e===o.a.PAREN_R||e===o.a.SPREAD||e===o.a.COLON||e===o.a.EQUALS||e===o.a.AT||e===o.a.BRACKET_L||e===o.a.BRACKET_R||e===o.a.BRACE_L||e===o.a.PIPE||e===o.a.BRACE_R}function u(e){return isNaN(e)?o.a.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function l(e,t){for(var n=e.source,a=n.body,s=a.length,c=t.end;c<s;){var u=a.charCodeAt(c),l=e.line,h=1+c-e.lineStart;switch(u){case 65279:case 9:case 32:case 44:++c;continue;case 10:++c,++e.line,e.lineStart=c;continue;case 13:10===a.charCodeAt(c+1)?c+=2:++c,++e.line,e.lineStart=c;continue;case 33:return new i.b(o.a.BANG,c,c+1,l,h,t);case 35:return p(n,c,l,h,t);case 36:return new i.b(o.a.DOLLAR,c,c+1,l,h,t);case 38:return new i.b(o.a.AMP,c,c+1,l,h,t);case 40:return new i.b(o.a.PAREN_L,c,c+1,l,h,t);case 41:return new i.b(o.a.PAREN_R,c,c+1,l,h,t);case 46:if(46===a.charCodeAt(c+1)&&46===a.charCodeAt(c+2))return new i.b(o.a.SPREAD,c,c+3,l,h,t);break;case 58:return new i.b(o.a.COLON,c,c+1,l,h,t);case 61:return new i.b(o.a.EQUALS,c,c+1,l,h,t);case 64:return new i.b(o.a.AT,c,c+1,l,h,t);case 91:return new i.b(o.a.BRACKET_L,c,c+1,l,h,t);case 93:return new i.b(o.a.BRACKET_R,c,c+1,l,h,t);case 123:return new i.b(o.a.BRACE_L,c,c+1,l,h,t);case 124:return new i.b(o.a.PIPE,c,c+1,l,h,t);case 125:return new i.b(o.a.BRACE_R,c,c+1,l,h,t);case 34:return 34===a.charCodeAt(c+1)&&34===a.charCodeAt(c+2)?m(n,c,l,h,t,e):v(n,c,l,h,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return f(n,c,u,l,h,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return b(n,c,l,h,t)}throw Object(r.a)(n,c,d(u))}var g=e.line,y=1+c-e.lineStart;return new i.b(o.a.EOF,s,s,g,y,t)}function d(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(u(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(u(e),".")}function p(e,t,n,r,a){var s,c=e.body,u=t;do{s=c.charCodeAt(++u)}while(!isNaN(s)&&(s>31||9===s));return new i.b(o.a.COMMENT,t,u,n,r,a,c.slice(t+1,u))}function f(e,t,n,a,s,c){var l=e.body,d=n,p=t,f=!1;if(45===d&&(d=l.charCodeAt(++p)),48===d){if((d=l.charCodeAt(++p))>=48&&d<=57)throw Object(r.a)(e,p,"Invalid number, unexpected digit after 0: ".concat(u(d),"."))}else p=h(e,p,d),d=l.charCodeAt(p);if(46===d&&(f=!0,d=l.charCodeAt(++p),p=h(e,p,d),d=l.charCodeAt(p)),69!==d&&101!==d||(f=!0,43!==(d=l.charCodeAt(++p))&&45!==d||(d=l.charCodeAt(++p)),p=h(e,p,d),d=l.charCodeAt(p)),46===d||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(d))throw Object(r.a)(e,p,"Invalid number, expected digit but got: ".concat(u(d),"."));return new i.b(f?o.a.FLOAT:o.a.INT,t,p,a,s,c,l.slice(t,p))}function h(e,t,n){var i=e.body,o=t,a=n;if(a>=48&&a<=57){do{a=i.charCodeAt(++o)}while(a>=48&&a<=57);return o}throw Object(r.a)(e,o,"Invalid number, expected digit but got: ".concat(u(a),"."))}function v(e,t,n,a,s){for(var c,l,d,p,f=e.body,h=t+1,v=h,m=0,b="";h<f.length&&!isNaN(m=f.charCodeAt(h))&&10!==m&&13!==m;){if(34===m)return b+=f.slice(v,h),new i.b(o.a.STRING,t,h+1,n,a,s,b);if(m<32&&9!==m)throw Object(r.a)(e,h,"Invalid character within String: ".concat(u(m),"."));if(++h,92===m){switch(b+=f.slice(v,h-1),m=f.charCodeAt(h)){case 34:b+='"';break;case 47:b+="/";break;case 92:b+="\\";break;case 98:b+="\b";break;case 102:b+="\f";break;case 110:b+="\n";break;case 114:b+="\r";break;case 116:b+="\t";break;case 117:var y=(c=f.charCodeAt(h+1),l=f.charCodeAt(h+2),d=f.charCodeAt(h+3),p=f.charCodeAt(h+4),g(c)<<12|g(l)<<8|g(d)<<4|g(p));if(y<0){var w=f.slice(h+1,h+5);throw Object(r.a)(e,h,"Invalid character escape sequence: \\u".concat(w,"."))}b+=String.fromCharCode(y),h+=4;break;default:throw Object(r.a)(e,h,"Invalid character escape sequence: \\".concat(String.fromCharCode(m),"."))}v=++h}}throw Object(r.a)(e,h,"Unterminated string.")}function m(e,t,n,s,c,l){for(var d=e.body,p=t+3,f=p,h=0,v="";p<d.length&&!isNaN(h=d.charCodeAt(p));){if(34===h&&34===d.charCodeAt(p+1)&&34===d.charCodeAt(p+2))return v+=d.slice(f,p),new i.b(o.a.BLOCK_STRING,t,p+3,n,s,c,Object(a.a)(v));if(h<32&&9!==h&&10!==h&&13!==h)throw Object(r.a)(e,p,"Invalid character within String: ".concat(u(h),"."));10===h?(++p,++l.line,l.lineStart=p):13===h?(10===d.charCodeAt(p+1)?p+=2:++p,++l.line,l.lineStart=p):92===h&&34===d.charCodeAt(p+1)&&34===d.charCodeAt(p+2)&&34===d.charCodeAt(p+3)?(v+=d.slice(f,p)+'"""',f=p+=4):++p}throw Object(r.a)(e,p,"Unterminated string.")}function g(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function b(e,t,n,r,a){for(var s=e.body,c=s.length,u=t+1,l=0;u!==c&&!isNaN(l=s.charCodeAt(u))&&(95===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122);)++u;return new i.b(o.a.NAME,t,u,n,r,a,s.slice(t,u))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n(116);function i(e){return o(e.source,Object(r.a)(e.source,e.start))}function o(e,t){var n=e.locationOffset.column-1,r=s(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,c=t.line+o,u=1===t.line?n:0,l=t.column+u,d="".concat(e.name,":").concat(c,":").concat(l,"\n"),p=r.split(/\r\n|[\n\r]/g),f=p[i];if(f.length>120){for(var h=Math.floor(l/80),v=l%80,m=[],g=0;g<f.length;g+=80)m.push(f.slice(g,g+80));return d+a([["".concat(c),m[0]]].concat(m.slice(1,h+1).map((function(e){return["",e]})),[[" ",s(v-1)+"^"],["",m[h+1]]]))}return d+a([["".concat(c-1),p[i-1]],["".concat(c),f],["",s(l-1)+"^"],["".concat(c+1),p[i+1]]])}function a(e){var t=e.filter((function(e){e[0];return void 0!==e[1]})),n=Math.max.apply(Math,t.map((function(e){return e[0].length})));return t.map((function(e){var t,r=e[0],i=e[1];return s(n-(t=r).length)+t+(i?" | "+i:" |")})).join("\n")}function s(e){return Array(e+1).join(" ")}},,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"getOperationAST",(function(){return i}));var r=n(7);function i(e,t){for(var n=null,i=0,o=e.definitions;i<o.length;i++){var a,s=o[i];if(s.kind===r.a.OPERATION_DEFINITION)if(null==t){if(n)return null;n=s}else if((null===(a=s.name)||void 0===a?void 0:a.value)===t)return s}return n}},function(e,t){!function(e){var t=[];function n(n){var r=this,i="$BroadcastChannel$"+(n=String(n))+"$";t[i]=t[i]||[],t[i].push(this),this._name=n,this._id=i,this._closed=!1,this._mc=new MessageChannel,this._mc.port1.start(),this._mc.port2.start(),e.addEventListener("storage",(function(t){if(t.storageArea===e.localStorage&&null!=t.newValue&&""!==t.newValue&&t.key.substring(0,i.length)===i){var n=JSON.parse(t.newValue);r._mc.port2.postMessage(n)}}))}n.prototype={get name(){return this._name},postMessage:function(n){var r=this;if(this._closed){var i=new Error;throw i.name="InvalidStateError",i}var o=JSON.stringify(n),a=this._id+String(Date.now())+"$"+String(Math.random());e.localStorage.setItem(a,o),setTimeout((function(){e.localStorage.removeItem(a)}),500),t[this._id].forEach((function(e){e!==r&&e._mc.port2.postMessage(JSON.parse(o))}))},close:function(){if(!this._closed){this._closed=!0,this._mc.port1.close(),this._mc.port2.close();var e=t[this._id].indexOf(this);t[this._id].splice(e,1)}},get onmessage(){return this._mc.port1.onmessage},set onmessage(e){this._mc.port1.onmessage=e},addEventListener:function(){return this._mc.port1.addEventListener.apply(this._mc.port1,arguments)},removeEventListener:function(){return this._mc.port1.removeEventListener.apply(this._mc.port1,arguments)},dispatchEvent:function(){return this._mc.port1.dispatchEvent.apply(this._mc.port1,arguments)}},e.BroadcastChannel=e.BroadcastChannel||n}(self)},function(e,t,n){var r=n(234),i=n(41);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,a,e,s))}},function(e,t,n){var r=n(117),i=n(125),o=n(240),a=n(243),s=n(53),c=n(47),u=n(66),l=n(91),d="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,f,h,v){var m=c(e),g=c(t),b=m?"[object Array]":s(e),y=g?"[object Array]":s(t),w=(b="[object Arguments]"==b?d:b)==d,O=(y="[object Arguments]"==y?d:y)==d,x=b==y;if(x&&u(e)){if(!u(t))return!1;m=!0,w=!1}if(x&&!w)return v||(v=new r),m||l(e)?i(e,t,n,f,h,v):o(e,t,b,n,f,h,v);if(!(1&n)){var _=w&&p.call(e,"__wrapped__"),E=O&&p.call(t,"__wrapped__");if(_||E){var j=_?e.value():e,k=E?t.value():t;return v||(v=new r),h(j,k,n,f,v)}}return!!x&&(v||(v=new r),a(e,t,n,f,h,v))}},function(e,t,n){var r=n(118),i=n(236),o=n(237);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(50),i=n(120),o=n(78),a=n(125),s=n(241),c=n(242),u=r?r.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,d,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=s;case"[object Set]":var h=1&r;if(f||(f=c),e.size!=t.size&&!h)return!1;var v=p.get(e);if(v)return v==t;r|=2,p.set(e,t);var m=a(f(e),f(t),r,u,d,p);return p.delete(e),m;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){var r=n(119),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var c=1&n,u=r(e),l=u.length;if(l!=r(t).length&&!c)return!1;for(var d=l;d--;){var p=u[d];if(!(c?p in t:i.call(t,p)))return!1}var f=s.get(e),h=s.get(t);if(f&&h)return f==t&&h==e;var v=!0;s.set(e,t),s.set(t,e);for(var m=c;++d<l;){var g=e[p=u[d]],b=t[p];if(o)var y=c?o(b,g,p,t,e,s):o(g,b,p,e,t,s);if(!(void 0===y?g===b||a(g,b,n,o,s):y)){v=!1;break}m||(m="constructor"==p)}if(v&&!m){var w=e.constructor,O=t.constructor;w==O||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof O&&O instanceof O||(v=!1)}return s.delete(e),s.delete(t),v}},function(e,t,n){var r=n(245),i=n(246),o=n(251),a=RegExp("['’]","g");e.exports=function(e){return function(t){return r(o(i(t).replace(a,"")),e,"")}}},function(e,t){e.exports=function(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}},function(e,t,n){var r=n(247),i=n(82),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(o,r).replace(a,"")}},function(e,t,n){var r=n(248)({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"});e.exports=r},function(e,t){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},function(e,t,n){var r=n(50),i=n(250),o=n(47),a=n(127),s=r?r.prototype:void 0,c=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},function(e,t,n){var r=n(252),i=n(253),o=n(82),a=n(254);e.exports=function(e,t,n){return e=o(e),void 0===(t=n?void 0:t)?i(e)?a(e):r(e):e.match(t)||[]}},function(e,t){var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(n)||[]}},function(e,t){var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return n.test(e)}},function(e,t){var n="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",r="["+n+"]",i="\\d+",o="[\\u2700-\\u27bf]",a="[a-z\\xdf-\\xf6\\xf8-\\xff]",s="[^\\ud800-\\udfff"+n+i+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",c="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",l="[A-Z\\xc0-\\xd6\\xd8-\\xde]",d="(?:"+a+"|"+s+")",p="(?:"+l+"|"+s+")",f="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",h="[\\ufe0e\\ufe0f]?"+f+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",c,u].join("|")+")[\\ufe0e\\ufe0f]?"+f+")*"),v="(?:"+[o,c,u].join("|")+")"+h,m=RegExp([l+"?"+a+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[r,l,"$"].join("|")+")",p+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[r,l+d,"$"].join("|")+")",l+"?"+d+"+(?:['’](?:d|ll|m|re|s|t|ve))?",l+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",i,v].join("|"),"g");e.exports=function(e){return e.match(m)||[]}},function(e,t,n){var r=n(256)("toUpperCase");e.exports=r},function(e,t,n){var r=n(257),i=n(128),o=n(259),a=n(82);e.exports=function(e){return function(t){t=a(t);var n=i(t)?o(t):void 0,s=n?n[0]:t.charAt(0),c=n?r(n,1).join(""):t.slice(1);return s[e]()+c}}},function(e,t,n){var r=n(258);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},function(e,t){e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}},function(e,t,n){var r=n(260),i=n(128),o=n(261);e.exports=function(e){return i(e)?o(e):r(e)}},function(e,t){e.exports=function(e){return e.split("")}},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+r+"|"+i+")"+"?",u="[\\ufe0e\\ufe0f]?"+c+("(?:\\u200d(?:"+[o,a,s].join("|")+")[\\ufe0e\\ufe0f]?"+c+")*"),l="(?:"+[o+r+"?",r,a,s,n].join("|")+")",d=RegExp(i+"(?="+i+")|"+l+u,"g");e.exports=function(e){return e.match(d)||[]}},function(e,t){function n(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=n,n.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(e){this.ms=e},n.prototype.setMax=function(e){this.max=e},n.prototype.setJitter=function(e){this.jitter=e}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i="~";function o(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,n,r,o){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new a(n,r||e,o),c=i?i+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function c(e,t){0==--e._eventsCount?e._events=new o:delete e._events[t]}function u(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),u.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},u.prototype.listeners=function(e){var t=i?i+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,a=new Array(o);r<o;r++)a[r]=n[r].fn;return a},u.prototype.listenerCount=function(e){var t=i?i+e:e,n=this._events[t];return n?n.fn?1:n.length:0},u.prototype.emit=function(e,t,n,r,o,a){var s=i?i+e:e;if(!this._events[s])return!1;var c,u,l=this._events[s],d=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),d){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,n),!0;case 4:return l.fn.call(l.context,t,n,r),!0;case 5:return l.fn.call(l.context,t,n,r,o),!0;case 6:return l.fn.call(l.context,t,n,r,o,a),!0}for(u=1,c=new Array(d-1);u<d;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var p,f=l.length;for(u=0;u<f;u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),d){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,n);break;case 4:l[u].fn.call(l[u].context,t,n,r);break;default:if(!c)for(p=1,c=new Array(d-1);p<d;p++)c[p-1]=arguments[p];l[u].fn.apply(l[u].context,c)}}return!0},u.prototype.on=function(e,t,n){return s(this,e,t,n,!1)},u.prototype.once=function(e,t,n){return s(this,e,t,n,!0)},u.prototype.removeListener=function(e,t,n,r){var o=i?i+e:e;if(!this._events[o])return this;if(!t)return c(this,o),this;var a=this._events[o];if(a.fn)a.fn!==t||r&&!a.once||n&&a.context!==n||c(this,o);else{for(var s=0,u=[],l=a.length;s<l;s++)(a[s].fn!==t||r&&!a[s].once||n&&a[s].context!==n)&&u.push(a[s]);u.length?this._events[o]=1===u.length?u[0]:u:c(this,o)}return this},u.prototype.removeAllListeners=function(e){var t;return e?(t=i?i+e:e,this._events[t]&&c(this,t)):(this._events=new o,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},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"==typeof e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return null!==e&&"object"==typeof e}},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GRAPHQL_SUBSCRIPTIONS=t.GRAPHQL_WS=void 0;t.GRAPHQL_WS="graphql-ws";t.GRAPHQL_SUBSCRIPTIONS="graphql-subscriptions"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WS_TIMEOUT=t.MIN_WS_TIMEOUT=void 0;t.MIN_WS_TIMEOUT=1e3;t.WS_TIMEOUT=3e4},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){throw new Error("Static Class")}return e.GQL_CONNECTION_INIT="connection_init",e.GQL_CONNECTION_ACK="connection_ack",e.GQL_CONNECTION_ERROR="connection_error",e.GQL_CONNECTION_KEEP_ALIVE="ka",e.GQL_CONNECTION_TERMINATE="connection_terminate",e.GQL_START="start",e.GQL_DATA="data",e.GQL_ERROR="error",e.GQL_COMPLETE="complete",e.GQL_STOP="stop",e.SUBSCRIPTION_START="subscription_start",e.SUBSCRIPTION_DATA="subscription_data",e.SUBSCRIPTION_SUCCESS="subscription_success",e.SUBSCRIPTION_FAIL="subscription_fail",e.SUBSCRIPTION_END="subscription_end",e.INIT="init",e.INIT_SUCCESS="init_success",e.INIT_FAIL="init_fail",e.KEEP_ALIVE="keepalive",e}();t.default=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}Object.defineProperty(t,"__esModule",{value:!0}),t.Observable=void 0;var a=function(){return"function"==typeof Symbol},s=function(e){return a()&&Boolean(Symbol[e])},c=function(e){return s(e)?Symbol[e]:"@@"+e};a()&&!s("observable")&&(Symbol.observable=Symbol("observable"));var u=c("iterator"),l=c("observable"),d=c("species");function p(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function f(e){var t=e.constructor;return void 0!==t&&null===(t=t[d])&&(t=void 0),void 0!==t?t:_}function h(e){return e instanceof _}function v(e){v.log?v.log(e):setTimeout((function(){throw e}))}function m(e){Promise.resolve().then((function(){try{e()}catch(e){v(e)}}))}function g(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=p(t,"unsubscribe");n&&n.call(t)}}catch(e){v(e)}}function b(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function y(e,t,n){e._state="running";var r=e._observer;try{var i=p(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(b(e),!i)throw n;i.call(r,n);break;case"complete":b(e),i&&i.call(r)}}catch(e){v(e)}"closed"===e._state?g(e):"running"===e._state&&(e._state="ready")}function w(e,t,n){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:n}],void m((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(y(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)}))):void y(e,t,n);e._queue.push({type:t,value:n})}}var O=function(){function e(t,n){r(this,e),this._cleanup=void 0,this._observer=t,this._queue=void 0,this._state="initializing";var i=new x(this);try{this._cleanup=n.call(void 0,i)}catch(e){i.error(e)}"initializing"===this._state&&(this._state="ready")}return o(e,[{key:"unsubscribe",value:function(){"closed"!==this._state&&(b(this),g(this))}},{key:"closed",get:function(){return"closed"===this._state}}]),e}(),x=function(){function e(t){r(this,e),this._subscription=t}return o(e,[{key:"next",value:function(e){w(this._subscription,"next",e)}},{key:"error",value:function(e){w(this._subscription,"error",e)}},{key:"complete",value:function(){w(this._subscription,"complete")}},{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),_=function(){function e(t){if(r(this,e),!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}return o(e,[{key:"subscribe",value:function(e){return"object"==typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new O(e,this._subscriber)}},{key:"forEach",value:function(e){var t=this;return new Promise((function(n,r){if("function"==typeof e)var i=t.subscribe({next:function(t){try{e(t,o)}catch(e){r(e),i.unsubscribe()}},error:r,complete:n});else r(new TypeError(e+" is not a function"));function o(){i.unsubscribe(),n()}}))}},{key:"map",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(f(this))((function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))}},{key:"filter",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(f(this))((function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))}},{key:"reduce",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=f(this),r=arguments.length>1,i=!1,o=arguments[1],a=o;return new n((function(n){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||r)try{a=e(a,t)}catch(e){return n.error(e)}else a=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(a),n.complete()}})}))}},{key:"concat",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=f(this);return new i((function(t){var r,o=0;return function e(a){r=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===n.length?(r=void 0,t.complete()):e(i.from(n[o++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}}))}},{key:"flatMap",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=f(this);return new n((function(r){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return r.error(e)}var o=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){r.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))}},{key:l,value:function(){return this}}],[{key:"from",value:function(t){var n="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var r=p(t,l);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return h(i)&&i.constructor===n?i:new n((function(e){return i.subscribe(e)}))}if(s("iterator")&&(r=p(t,u)))return new n((function(e){m((function(){if(!e.closed){var n=!0,i=!1,o=void 0;try{for(var a,s=r.call(t)[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var c=a.value;if(e.next(c),e.closed)return}}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}e.complete()}}))}));if(Array.isArray(t))return new n((function(e){m((function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}}))}));throw new TypeError(t+" is not observable")}},{key:"of",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i="function"==typeof this?this:e;return new i((function(e){m((function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}}))}))}},{key:d,get:function(){return this}}]),e}();t.Observable=_,a()&&Object.defineProperty(_,Symbol("extensions"),{value:{symbol:l,hostReportError:v},configurable:!0})},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.default=e.exports,e.exports.__esModule=!0,n.apply(this,arguments)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(26);e.exports=function(){return r.Date.now()}},function(e,t,n){var r=n(275),i=n(36),o=n(127),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):a.test(e)?NaN:+e}},function(e,t,n){var r=n(276),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},,function(e,t,n){"use strict";n.r(t),n.d(t,"extractFiles",(function(){return i})),n.d(t,"ReactNativeFile",(function(){return r}));var r=function(e){var t=e.uri,n=e.name,r=e.type;this.uri=t,this.name=n,this.type=r};function i(e,t){var n;void 0===t&&(t="");var o=new Map;function a(e,t){var n=o.get(t);n?n.push.apply(n,e):o.set(t,e)}if("undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Blob&&e instanceof Blob||e instanceof r)n=null,a([t],e);else{var s=t?t+".":"";if("undefined"!=typeof FileList&&e instanceof FileList)n=Array.prototype.map.call(e,(function(e,t){return a([""+s+t],e),null}));else if(Array.isArray(e))n=e.map((function(e,t){var n=i(e,""+s+t);return n.files.forEach(a),n.clone}));else if(e&&e.constructor===Object)for(var c in n={},e){var u=i(e[c],""+s+c);u.files.forEach(a),n[c]=u.clone}else n=e}return{clone:n,files:o}}},,,,,function(e,t,n){"use strict";var r,i,o=n(8),a=n(0);function s(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function c(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}class u extends(Object(o.b)(o.a)(a.a)){static get styles(){return[Object(a.b)(r||(r=c(["\n * {\n box-sizing: border-box;\n }\n *:focus {\n outline: none;\n }\n select {\n border: var(--i18n-selector-field-border, var(--input-field-border));\n border-radius: var(--i18n-selector-field-border-radius,0);\n background-color: var(--i18n-selector-field-background-color, initial);\n margin:var(--i18n-selector-field-margin, 0);\n padding:var(--i18n-selector-field-padding, 0);\n font: var(--i18n-selector-field-font, var(--input-field-font));\n font-size: var(--i18n-selector-field-font-size, 15px);\n width: var(--i18n-selector-field-width, 100%);\n color: var(--i18n-selector-field-color, initial);\n }\n select:focus {\n border: 1px solid var(--focus-background-color);\n }\n\n ::placeholder {\n font-size: 0.8rem;\n text-transform: capitalize;\n }\n "])))]}static get properties(){return{value:String}}render(){return Object(a.e)(i||(i=c(["\n <select .value="," @change=",'>\n <option value="" ?selected=','></option>\n <option value="ms-MY" ?selected=','>Bahasa Malaysia</option>\n <option value="en-US" ?selected=','>English</option>\n <option value="ko-KR" ?selected=','>한국어</option>\n <option value="zh-CN" ?selected=',">中文</option>\n </select>\n "])),this.value,e=>this.onLocaleChanged(e.target.value),!o.a.language,"ms-MY"==o.a.language,"en-US"==o.a.language,"ko-KR"==o.a.language,"zh-CN"==o.a.language)}onLocaleChanged(e){var t,n=this;return(t=function*(){e&&(n.value=e,n.dispatchEvent(new CustomEvent("change",{composed:!0,bubbles:!0,detail:e})))},function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(e){s(o,r,i,a,c,"next",e)}function c(e){s(o,r,i,a,c,"throw",e)}a(void 0)}))})()}}customElements.define("i18n-selector",u)},function(e,t,n){"use strict";n.d(t,"b",(function(){return p}));var r=n(1),i=n(321),o=new Map,a=new Map,s=!0,c=!1;function u(e){return e.replace(/[\s,]+/g," ").trim()}function l(e){var t=new Set,n=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,i=u((c=e.loc).source.body.substring(c.start,c.end)),o=a.get(r);o&&!o.has(i)?s&&console.warn("Warning: fragment with name "+r+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||a.set(r,o=new Set),o.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e);var c})),Object(r.a)(Object(r.a)({},e),{definitions:n})}function d(e){var t=u(e);if(!o.has(t)){var n=Object(i.a)(e,{experimentalFragmentVariables:c});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");o.set(t,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"==typeof r&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(l(n)))}return o.get(t)}function p(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var r=e[0];return t.forEach((function(t,n){t&&"Document"===t.kind?r+=t.loc.source.body:r+=t,r+=e[n+1]})),d(r)}var f,h={gql:p,resetCaches:function(){o.clear(),a.clear()},disableFragmentWarnings:function(){s=!1},enableExperimentalFragmentVariables:function(){c=!0},disableExperimentalFragmentVariables:function(){c=!1}};(f=p||(p={})).gql=h.gql,f.resetCaches=h.resetCaches,f.disableFragmentWarnings=h.disableFragmentWarnings,f.enableExperimentalFragmentVariables=h.enableExperimentalFragmentVariables,f.disableExperimentalFragmentVariables=h.disableExperimentalFragmentVariables,p.default=p,t.a=p},function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return g}));var r=n(288),i=n(144),o=n(116),a=n(226);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?l(e):t}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e){var t="function"==typeof Map?new Map:void 0;return(d=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return p(e,arguments,v(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),h(r,e)})(e)}function p(e,t,n){return(p=f()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&h(i,n.prototype),i}).apply(null,arguments)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(m,e);var t,n,a,s,d,p=(t=m,n=f(),function(){var e,r=v(t);if(n){var i=v(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return u(this,e)});function m(e,t,n,i,a,s,c){var d,f,h,v,g;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m),g=p.call(this,e);var b,y=Array.isArray(t)?0!==t.length?t:void 0:t?[t]:void 0,w=n;!w&&y&&(w=null===(b=y[0].loc)||void 0===b?void 0:b.source);var O,x=i;!x&&y&&(x=y.reduce((function(e,t){return t.loc&&e.push(t.loc.start),e}),[])),x&&0===x.length&&(x=void 0),i&&n?O=i.map((function(e){return Object(o.a)(n,e)})):y&&(O=y.reduce((function(e,t){return t.loc&&e.push(Object(o.a)(t.loc.source,t.loc.start)),e}),[]));var _=c;if(null==_&&null!=s){var E=s.extensions;Object(r.a)(E)&&(_=E)}return Object.defineProperties(l(g),{name:{value:"GraphQLError"},message:{value:e,enumerable:!0,writable:!0},locations:{value:null!==(d=O)&&void 0!==d?d:void 0,enumerable:null!=O},path:{value:null!=a?a:void 0,enumerable:null!=a},nodes:{value:null!=y?y:void 0},source:{value:null!==(f=w)&&void 0!==f?f:void 0},positions:{value:null!==(h=x)&&void 0!==h?h:void 0},originalError:{value:s},extensions:{value:null!==(v=_)&&void 0!==v?v:void 0,enumerable:null!=_}}),null!=s&&s.stack?(Object.defineProperty(l(g),"stack",{value:s.stack,writable:!0,configurable:!0}),u(g)):(Error.captureStackTrace?Error.captureStackTrace(l(g),m):Object.defineProperty(l(g),"stack",{value:Error().stack,writable:!0,configurable:!0}),g)}return a=m,(s=[{key:"toString",value:function(){return g(this)}},{key:i.c,get:function(){return"Object"}}])&&c(a.prototype,s),d&&c(a,d),m}(d(Error));function g(e){var t=e.message;if(e.nodes)for(var n=0,r=e.nodes;n<r.length;n++){var i=r[n];i.loc&&(t+="\n\n"+Object(a.a)(i.loc))}else if(e.source&&e.locations)for(var o=0,s=e.locations;o<s.length;o++){var c=s[o];t+="\n\n"+Object(a.b)(e.source,c)}return t}},,,function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return"object"==r(e)&&null!==e}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";t.a=function(e,t){return e instanceof t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"})},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return a}));var r="SET-PROFILE",i="SET-AUTH",o=e=>(t,n)=>{t({type:r,user:e})},a=e=>(t,n)=>{t({type:i,auth:e})}},function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,c,"next",e)}function c(e){r(a,i,o,s,c,"throw",e)}s(void 0)}))}}n.d(t,"a",(function(){return a}));var o={"Content-Type":"application/json",Accept:"application/json"};var a=new class{constructor(){this._event_listeners={profile:[],signout:[],presignout:[],passwordchange:[],error:[]},this._authRequiredEventListener=this.onAuthRequired.bind(this),document.addEventListener("auth-required",this._authRequiredEventListener),this._activateRequiredEventListener=this.onActivateRequired.bind(this),document.addEventListener("activate-required",this._activateRequiredEventListener)}on(e,t){var n=this._event_listeners[e];n?n.push(t):console.log("unknown event",e)}off(e,t){var n=this._event_listeners[e];if(n){var r=n.indexOf(t);r>=0&&n.splice(r,1)}else console.log("unknown event",e)}dispose(){document.removeEventListener("auth-required",this._authRequiredEventListener),document.removeEventListener("activate-required",this._activateRequiredEventListener),delete this._event_listeners}onProfileFetched({credential:e,accessToken:t,domains:n,domain:r}){this.credential=e,this.domains=n,this.domain=r,t&&!this.accessToken&&(this.accessToken=t,this._event_listeners.signin.forEach(e=>e({accessToken:t,domains:n,domain:r}))),t&&(this.accessToken=t),this._event_listeners.profile.forEach(t=>t({credential:e,domains:n,domain:r}))}onPreSignout(){var e=this;return i((function*(){for(var t of e._event_listeners.presignout)yield t()}))()}onAuthError(e){this._event_listeners.error.forEach(t=>t(e))}onPasswordChanged(e){this._event_listeners.passwordchange.forEach(t=>t(e))}onAuthRequired(e){console.warn("authentication required");var t=new URL(window.location);t.pathname="/auth/signin",t.searchParams.append("redirect_to",window.location.href),window.location=t}onActivateRequired(e){console.warn("activate required");var t=new URLSearchParams;t.append("email",e.email),window.location.replace("/auth/activate?".concat(t))}route(e,t){var n=window.location,r=n.origin||n.protocol+"//"+n.host,i="".concat(r).concat(e);n.pathname!==e&&(window.history.pushState({redirected:t},"",i),window.history.pushState({},"",i),window.history.back())}updateProfile(e){return i((function*(){var t=yield fetch("/auth/update-profile",{method:"POST",credentials:"include",headers:o,body:JSON.stringify(e)}),n=yield t.text();if(t.ok)return n;throw new Error(n)}))()}changePassword(e){var t=this;return i((function*(){try{var n=yield fetch("/auth/change-pass",{method:"POST",credentials:"include",headers:o,body:JSON.stringify(e)}),r=yield n.text();n.ok?t.onPasswordChanged({message:r}):t.onAuthError({message:r})}catch(e){t.onAuthError(e)}}))()}deleteUser(e){return i((function*(){var t=yield fetch("/auth/delete-user",{method:"POST",credentials:"include",headers:o,body:JSON.stringify(e)}),n=yield t.text();if(t.ok)return n;throw new Error(n)}))()}profile(){var e=this;return i((function*(){try{var t=new URLSearchParams(location.search).get("token");t&&(headers.authorization="Bearer ".concat(t));var n=yield fetch("/auth/profile",{method:"GET",credentials:"include",headers:o});if(n.ok){if(n.redirected)return void(location.href=n.url);var r=yield n.json();return void e.onProfileFetched({credential:r.user,accessToken:r.token,domains:r.domains,domain:r.domain})}}catch(t){e.onAuthError(t)}}))()}join(){return i((function*(){var e=yield fetch("/auth/signout",{method:"POST",credentials:"include",headers:o});if(!e.ok)throw new Error(yield e.text());debug}))()}signout(){var e=this;return i((function*(){yield e.onPreSignout(),window.location="/auth/signout"}))()}}},function(e,t,n){
374
- /*!
375
- * headroom.js v0.12.0 - Give your page some headroom. Hide your header until you need it
376
- * Copyright (c) 2020 Nick Williams - http://wicky.nillia.ms/headroom.js
377
- * License: MIT
378
- */
379
- e.exports=function(){"use strict";function e(){return"undefined"!=typeof window}function t(e){return e===Object(e)?e:{down:e,up:e}}function n(e,r){r=r||{},Object.assign(this,n.options,r),this.classes=Object.assign({},n.options.classes,r.classes),this.elem=e,this.tolerance=t(this.tolerance),this.offset=t(this.offset),this.initialised=!1,this.frozen=!1}return n.prototype={constructor:n,init:function(){return n.cutsTheMustard&&!this.initialised&&(this.addClass("initial"),this.initialised=!0,setTimeout((function(e){e.scrollTracker=function(e,t,n){var r,i=function(){var e=!1;try{var t={get passive(){e=!0}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){e=!1}return e}(),o=!1,a=function(e){return(o=e)&&o.document&&function(e){return 9===e.nodeType}(o.document)?(n=(t=e).document,r=n.body,i=n.documentElement,{scrollHeight:function(){return Math.max(r.scrollHeight,i.scrollHeight,r.offsetHeight,i.offsetHeight,r.clientHeight,i.clientHeight)},height:function(){return t.innerHeight||i.clientHeight||r.clientHeight},scrollY:function(){return void 0!==t.pageYOffset?t.pageYOffset:(i||r.parentNode||r).scrollTop}}):function(e){return{scrollHeight:function(){return Math.max(e.scrollHeight,e.offsetHeight,e.clientHeight)},height:function(){return Math.max(e.offsetHeight,e.clientHeight)},scrollY:function(){return e.scrollTop}}}(e);var t,n,r,i,o}(e),s=a.scrollY(),c={};function u(){var e=Math.round(a.scrollY()),r=a.height(),i=a.scrollHeight();c.scrollY=e,c.lastScrollY=s,c.direction=e>s?"down":"up",c.distance=Math.abs(e-s),c.isOutOfBounds=e<0||e+r>i,c.top=e<=t.offset[c.direction],c.bottom=e+r>=i,c.toleranceExceeded=c.distance>t.tolerance[c.direction],n(c),s=e,o=!1}function l(){o||(o=!0,r=requestAnimationFrame(u))}var d=!!i&&{passive:!0,capture:!1};return e.addEventListener("scroll",l,d),u(),{destroy:function(){cancelAnimationFrame(r),e.removeEventListener("scroll",l,d)}}}(e.scroller,{offset:e.offset,tolerance:e.tolerance},e.update.bind(e))}),100,this)),this},destroy:function(){this.initialised=!1,Object.keys(this.classes).forEach(this.removeClass,this),this.scrollTracker.destroy()},unpin:function(){!this.hasClass("pinned")&&this.hasClass("unpinned")||(this.addClass("unpinned"),this.removeClass("pinned"),this.onUnpin&&this.onUnpin.call(this))},pin:function(){this.hasClass("unpinned")&&(this.addClass("pinned"),this.removeClass("unpinned"),this.onPin&&this.onPin.call(this))},freeze:function(){this.frozen=!0,this.addClass("frozen")},unfreeze:function(){this.frozen=!1,this.removeClass("frozen")},top:function(){this.hasClass("top")||(this.addClass("top"),this.removeClass("notTop"),this.onTop&&this.onTop.call(this))},notTop:function(){this.hasClass("notTop")||(this.addClass("notTop"),this.removeClass("top"),this.onNotTop&&this.onNotTop.call(this))},bottom:function(){this.hasClass("bottom")||(this.addClass("bottom"),this.removeClass("notBottom"),this.onBottom&&this.onBottom.call(this))},notBottom:function(){this.hasClass("notBottom")||(this.addClass("notBottom"),this.removeClass("bottom"),this.onNotBottom&&this.onNotBottom.call(this))},shouldUnpin:function(e){return"down"===e.direction&&!e.top&&e.toleranceExceeded},shouldPin:function(e){return"up"===e.direction&&e.toleranceExceeded||e.top},addClass:function(e){this.elem.classList.add.apply(this.elem.classList,this.classes[e].split(" "))},removeClass:function(e){this.elem.classList.remove.apply(this.elem.classList,this.classes[e].split(" "))},hasClass:function(e){return this.classes[e].split(" ").every((function(e){return this.classList.contains(e)}),this.elem)},update:function(e){e.isOutOfBounds||!0!==this.frozen&&(e.top?this.top():this.notTop(),e.bottom?this.bottom():this.notBottom(),this.shouldUnpin(e)?this.unpin():this.shouldPin(e)&&this.pin())}},n.options={tolerance:{up:0,down:0},offset:0,scroller:e()?window:null,classes:{frozen:"headroom--frozen",pinned:"headroom--pinned",unpinned:"headroom--unpinned",top:"headroom--top",notTop:"headroom--not-top",bottom:"headroom--bottom",notBottom:"headroom--not-bottom",initial:"headroom"}},n.cutsTheMustard=!!(e()&&function(){}.bind&&"classList"in document.documentElement&&Object.assign&&Object.keys&&requestAnimationFrame),n}()},function(e,t,n){var r=n(147),i=n(53),o=n(146),a=n(47),s=n(88),c=n(66),u=n(64),l=n(91),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||c(e)||l(e)||o(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(u(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return xn}));var r={};n.r(r),n.d(r,"VERSION",(function(){return i.e})),n.d(r,"restArguments",(function(){return o})),n.d(r,"isObject",(function(){return a})),n.d(r,"isNull",(function(){return s})),n.d(r,"isUndefined",(function(){return c})),n.d(r,"isBoolean",(function(){return u})),n.d(r,"isElement",(function(){return l})),n.d(r,"isString",(function(){return p})),n.d(r,"isNumber",(function(){return f})),n.d(r,"isDate",(function(){return h})),n.d(r,"isRegExp",(function(){return v})),n.d(r,"isError",(function(){return m})),n.d(r,"isSymbol",(function(){return g})),n.d(r,"isArrayBuffer",(function(){return b})),n.d(r,"isDataView",(function(){return k})),n.d(r,"isArray",(function(){return S})),n.d(r,"isFunction",(function(){return O})),n.d(r,"isArguments",(function(){return A})),n.d(r,"isFinite",(function(){return C})),n.d(r,"isNaN",(function(){return R})),n.d(r,"isTypedArray",(function(){return B})),n.d(r,"isEmpty",(function(){return V})),n.d(r,"isMatch",(function(){return Q})),n.d(r,"isEqual",(function(){return K})),n.d(r,"isMap",(function(){return re})),n.d(r,"isWeakMap",(function(){return ie})),n.d(r,"isSet",(function(){return oe})),n.d(r,"isWeakSet",(function(){return ae})),n.d(r,"keys",(function(){return U})),n.d(r,"allKeys",(function(){return W})),n.d(r,"values",(function(){return se})),n.d(r,"pairs",(function(){return ce})),n.d(r,"invert",(function(){return ue})),n.d(r,"functions",(function(){return le})),n.d(r,"methods",(function(){return le})),n.d(r,"extend",(function(){return pe})),n.d(r,"extendOwn",(function(){return fe})),n.d(r,"assign",(function(){return fe})),n.d(r,"defaults",(function(){return he})),n.d(r,"create",(function(){return me})),n.d(r,"clone",(function(){return ge})),n.d(r,"tap",(function(){return be})),n.d(r,"get",(function(){return xe})),n.d(r,"has",(function(){return _e})),n.d(r,"mapObject",(function(){return Ce})),n.d(r,"identity",(function(){return Ee})),n.d(r,"constant",(function(){return I})),n.d(r,"noop",(function(){return Re})),n.d(r,"toPath",(function(){return ye})),n.d(r,"property",(function(){return ke})),n.d(r,"propertyOf",(function(){return Ie})),n.d(r,"matcher",(function(){return je})),n.d(r,"matches",(function(){return je})),n.d(r,"times",(function(){return Ne})),n.d(r,"random",(function(){return Le})),n.d(r,"now",(function(){return De})),n.d(r,"escape",(function(){return Be})),n.d(r,"unescape",(function(){return ze})),n.d(r,"templateSettings",(function(){return qe})),n.d(r,"template",(function(){return Ye})),n.d(r,"result",(function(){return Ke})),n.d(r,"uniqueId",(function(){return $e})),n.d(r,"chain",(function(){return Je})),n.d(r,"iteratee",(function(){return Te})),n.d(r,"partial",(function(){return et})),n.d(r,"bind",(function(){return tt})),n.d(r,"bindAll",(function(){return it})),n.d(r,"memoize",(function(){return ot})),n.d(r,"delay",(function(){return at})),n.d(r,"defer",(function(){return st})),n.d(r,"throttle",(function(){return ct})),n.d(r,"debounce",(function(){return ut})),n.d(r,"wrap",(function(){return lt})),n.d(r,"negate",(function(){return dt})),n.d(r,"compose",(function(){return pt})),n.d(r,"after",(function(){return ft})),n.d(r,"before",(function(){return ht})),n.d(r,"once",(function(){return vt})),n.d(r,"findKey",(function(){return mt})),n.d(r,"findIndex",(function(){return bt})),n.d(r,"findLastIndex",(function(){return yt})),n.d(r,"sortedIndex",(function(){return wt})),n.d(r,"indexOf",(function(){return xt})),n.d(r,"lastIndexOf",(function(){return _t})),n.d(r,"find",(function(){return Et})),n.d(r,"detect",(function(){return Et})),n.d(r,"findWhere",(function(){return jt})),n.d(r,"each",(function(){return kt})),n.d(r,"forEach",(function(){return kt})),n.d(r,"map",(function(){return St})),n.d(r,"collect",(function(){return St})),n.d(r,"reduce",(function(){return Tt})),n.d(r,"foldl",(function(){return Tt})),n.d(r,"inject",(function(){return Tt})),n.d(r,"reduceRight",(function(){return At})),n.d(r,"foldr",(function(){return At})),n.d(r,"filter",(function(){return Ct})),n.d(r,"select",(function(){return Ct})),n.d(r,"reject",(function(){return Rt})),n.d(r,"every",(function(){return It})),n.d(r,"all",(function(){return It})),n.d(r,"some",(function(){return Nt})),n.d(r,"any",(function(){return Nt})),n.d(r,"contains",(function(){return Lt})),n.d(r,"includes",(function(){return Lt})),n.d(r,"include",(function(){return Lt})),n.d(r,"invoke",(function(){return Dt})),n.d(r,"pluck",(function(){return Mt})),n.d(r,"where",(function(){return Ft})),n.d(r,"max",(function(){return Bt})),n.d(r,"min",(function(){return zt})),n.d(r,"shuffle",(function(){return Ut})),n.d(r,"sample",(function(){return qt})),n.d(r,"sortBy",(function(){return Vt})),n.d(r,"groupBy",(function(){return Ht})),n.d(r,"indexBy",(function(){return Gt})),n.d(r,"countBy",(function(){return Yt})),n.d(r,"partition",(function(){return Kt})),n.d(r,"toArray",(function(){return $t})),n.d(r,"size",(function(){return Jt})),n.d(r,"pick",(function(){return Zt})),n.d(r,"omit",(function(){return en})),n.d(r,"first",(function(){return nn})),n.d(r,"head",(function(){return nn})),n.d(r,"take",(function(){return nn})),n.d(r,"initial",(function(){return tn})),n.d(r,"last",(function(){return on})),n.d(r,"rest",(function(){return rn})),n.d(r,"tail",(function(){return rn})),n.d(r,"drop",(function(){return rn})),n.d(r,"compact",(function(){return an})),n.d(r,"flatten",(function(){return sn})),n.d(r,"without",(function(){return un})),n.d(r,"uniq",(function(){return ln})),n.d(r,"unique",(function(){return ln})),n.d(r,"union",(function(){return dn})),n.d(r,"intersection",(function(){return pn})),n.d(r,"difference",(function(){return cn})),n.d(r,"unzip",(function(){return fn})),n.d(r,"transpose",(function(){return fn})),n.d(r,"zip",(function(){return hn})),n.d(r,"object",(function(){return vn})),n.d(r,"range",(function(){return mn})),n.d(r,"chunk",(function(){return gn})),n.d(r,"mixin",(function(){return yn})),n.d(r,"default",(function(){return wn}));var i=n(9);function o(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;i<n;i++)r[i]=arguments[i+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var o=Array(t+1);for(i=0;i<t;i++)o[i]=arguments[i];return o[t]=r,e.apply(this,o)}}function a(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function s(e){return null===e}function c(e){return void 0===e}function u(e){return!0===e||!1===e||"[object Boolean]"===i.t.call(e)}function l(e){return!(!e||1!==e.nodeType)}function d(e){var t="[object "+e+"]";return function(e){return i.t.call(e)===t}}var p=d("String"),f=d("Number"),h=d("Date"),v=d("RegExp"),m=d("Error"),g=d("Symbol"),b=d("ArrayBuffer"),y=d("Function"),w=i.p.document&&i.p.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof w&&(y=function(e){return"function"==typeof e||!1});var O=y,x=d("Object"),_=i.s&&x(new DataView(new ArrayBuffer(8))),E="undefined"!=typeof Map&&x(new Map),j=d("DataView");var k=_?function(e){return null!=e&&O(e.getInt8)&&b(e.buffer)}:j,S=i.k||d("Array");function P(e,t){return null!=e&&i.i.call(e,t)}var T=d("Arguments");!function(){T(arguments)||(T=function(e){return P(e,"callee")})}();var A=T;function C(e){return!g(e)&&Object(i.f)(e)&&!isNaN(parseFloat(e))}function R(e){return f(e)&&Object(i.g)(e)}function I(e){return function(){return e}}function N(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=i.b}}function L(e){return function(t){return null==t?void 0:t[e]}}var D=L("byteLength"),M=N(D),F=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var B=i.r?function(e){return i.l?Object(i.l)(e)&&!k(e):M(e)&&F.test(i.t.call(e))}:I(!1),z=L("length");function q(e,t){t=function(e){for(var t={},n=e.length,r=0;r<n;++r)t[e[r]]=!0;return{contains:function(e){return t[e]},push:function(n){return t[n]=!0,e.push(n)}}}(t);var n=i.n.length,r=e.constructor,o=O(r)&&r.prototype||i.c,a="constructor";for(P(e,a)&&!t.contains(a)&&t.push(a);n--;)(a=i.n[n])in e&&e[a]!==o[a]&&!t.contains(a)&&t.push(a)}function U(e){if(!a(e))return[];if(i.m)return Object(i.m)(e);var t=[];for(var n in e)P(e,n)&&t.push(n);return i.h&&q(e,t),t}function V(e){if(null==e)return!0;var t=z(e);return"number"==typeof t&&(S(e)||p(e)||A(e))?0===t:0===z(U(e))}function Q(e,t){var n=U(t),r=n.length;if(null==e)return!r;for(var i=Object(e),o=0;o<r;o++){var a=n[o];if(t[a]!==i[a]||!(a in i))return!1}return!0}function H(e){return e instanceof H?e:this instanceof H?void(this._wrapped=e):new H(e)}function G(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,D(e))}H.VERSION=i.e,H.prototype.value=function(){return this._wrapped},H.prototype.valueOf=H.prototype.toJSON=H.prototype.value,H.prototype.toString=function(){return String(this._wrapped)};function Y(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var o=typeof e;return("function"===o||"object"===o||"object"==typeof t)&&function e(t,n,r,o){t instanceof H&&(t=t._wrapped);n instanceof H&&(n=n._wrapped);var a=i.t.call(t);if(a!==i.t.call(n))return!1;if(_&&"[object Object]"==a&&k(t)){if(!k(n))return!1;a="[object DataView]"}switch(a){case"[object RegExp]":case"[object String]":return""+t==""+n;case"[object Number]":return+t!=+t?+n!=+n:0==+t?1/+t==1/n:+t==+n;case"[object Date]":case"[object Boolean]":return+t==+n;case"[object Symbol]":return i.d.valueOf.call(t)===i.d.valueOf.call(n);case"[object ArrayBuffer]":case"[object DataView]":return e(G(t),G(n),r,o)}var s="[object Array]"===a;if(!s&&B(t)){if(D(t)!==D(n))return!1;if(t.buffer===n.buffer&&t.byteOffset===n.byteOffset)return!0;s=!0}if(!s){if("object"!=typeof t||"object"!=typeof n)return!1;var c=t.constructor,u=n.constructor;if(c!==u&&!(O(c)&&c instanceof c&&O(u)&&u instanceof u)&&"constructor"in t&&"constructor"in n)return!1}o=o||[];var l=(r=r||[]).length;for(;l--;)if(r[l]===t)return o[l]===n;if(r.push(t),o.push(n),s){if((l=t.length)!==n.length)return!1;for(;l--;)if(!Y(t[l],n[l],r,o))return!1}else{var d,p=U(t);if(l=p.length,U(n).length!==l)return!1;for(;l--;)if(d=p[l],!P(n,d)||!Y(t[d],n[d],r,o))return!1}return r.pop(),o.pop(),!0}(e,t,n,r)}function K(e,t){return Y(e,t)}function W(e){if(!a(e))return[];var t=[];for(var n in e)t.push(n);return i.h&&q(e,t),t}function $(e){var t=z(e);return function(n){if(null==n)return!1;var r=W(n);if(z(r))return!1;for(var i=0;i<t;i++)if(!O(n[e[i]]))return!1;return e!==te||!O(n[J])}}var J="forEach",X=["clear","delete"],Z=["get","has","set"],ee=X.concat(J,Z),te=X.concat(Z),ne=["add"].concat(X,J,"has"),re=E?$(ee):d("Map"),ie=E?$(te):d("WeakMap"),oe=E?$(ne):d("Set"),ae=d("WeakSet");function se(e){for(var t=U(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=e[t[i]];return r}function ce(e){for(var t=U(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r}function ue(e){for(var t={},n=U(e),r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t}function le(e){var t=[];for(var n in e)O(e[n])&&t.push(n);return t.sort()}function de(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var i=1;i<r;i++)for(var o=arguments[i],a=e(o),s=a.length,c=0;c<s;c++){var u=a[c];t&&void 0!==n[u]||(n[u]=o[u])}return n}}var pe=de(W),fe=de(U),he=de(W,!0);function ve(e){if(!a(e))return{};if(i.j)return Object(i.j)(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}function me(e,t){var n=ve(e);return t&&fe(n,t),n}function ge(e){return a(e)?S(e)?e.slice():pe({},e):e}function be(e,t){return t(e),e}function ye(e){return S(e)?e:[e]}function we(e){return H.toPath(e)}function Oe(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0}function xe(e,t,n){var r=Oe(e,we(t));return c(r)?n:r}function _e(e,t){for(var n=(t=we(t)).length,r=0;r<n;r++){var i=t[r];if(!P(e,i))return!1;e=e[i]}return!!n}function Ee(e){return e}function je(e){return e=fe({},e),function(t){return Q(t,e)}}function ke(e){return e=we(e),function(t){return Oe(t,e)}}function Se(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)}}return function(){return e.apply(t,arguments)}}function Pe(e,t,n){return null==e?Ee:O(e)?Se(e,t,n):a(e)&&!S(e)?je(e):ke(e)}function Te(e,t){return Pe(e,t,1/0)}function Ae(e,t,n){return H.iteratee!==Te?H.iteratee(e,t):Pe(e,t,n)}function Ce(e,t,n){t=Ae(t,n);for(var r=U(e),i=r.length,o={},a=0;a<i;a++){var s=r[a];o[s]=t(e[s],s,e)}return o}function Re(){}function Ie(e){return null==e?Re:function(t){return xe(e,t)}}function Ne(e,t,n){var r=Array(Math.max(0,e));t=Se(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r}function Le(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}H.toPath=ye,H.iteratee=Te;var De=Date.now||function(){return(new Date).getTime()};function Me(e){var t=function(t){return e[t]},n="(?:"+U(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(i,t):e}}var Fe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},Be=Me(Fe),ze=Me(ue(Fe)),qe=H.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Ue=/(.)^/,Ve={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Qe=/\\|'|\r|\n|\u2028|\u2029/g;function He(e){return"\\"+Ve[e]}var Ge=/^\s*(\w|\$)+\s*$/;function Ye(e,t,n){!t&&n&&(t=n),t=he({},t,H.templateSettings);var r=RegExp([(t.escape||Ue).source,(t.interpolate||Ue).source,(t.evaluate||Ue).source].join("|")+"|$","g"),i=0,o="__p+='";e.replace(r,(function(t,n,r,a,s){return o+=e.slice(i,s).replace(Qe,He),i=s+t.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(o+="';\n"+a+"\n__p+='"),t})),o+="';\n";var a,s=t.variable;if(s){if(!Ge.test(s))throw new Error("variable is not a bare identifier: "+s)}else o="with(obj||{}){\n"+o+"}\n",s="obj";o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{a=new Function(s,"_",o)}catch(e){throw e.source=o,e}var c=function(e){return a.call(this,e,H)};return c.source="function("+s+"){\n"+o+"}",c}function Ke(e,t,n){var r=(t=we(t)).length;if(!r)return O(n)?n.call(e):n;for(var i=0;i<r;i++){var o=null==e?void 0:e[t[i]];void 0===o&&(o=n,i=r),e=O(o)?o.call(e):o}return e}var We=0;function $e(e){var t=++We+"";return e?e+t:t}function Je(e){var t=H(e);return t._chain=!0,t}function Xe(e,t,n,r,i){if(!(r instanceof t))return e.apply(n,i);var o=ve(e.prototype),s=e.apply(o,i);return a(s)?s:o}var Ze=o((function(e,t){var n=Ze.placeholder,r=function(){for(var i=0,o=t.length,a=Array(o),s=0;s<o;s++)a[s]=t[s]===n?arguments[i++]:t[s];for(;i<arguments.length;)a.push(arguments[i++]);return Xe(e,r,this,this,a)};return r}));Ze.placeholder=H;var et=Ze,tt=o((function(e,t,n){if(!O(e))throw new TypeError("Bind must be called on a function");var r=o((function(i){return Xe(e,r,t,this,n.concat(i))}));return r})),nt=N(z);function rt(e,t,n,r){if(r=r||[],t||0===t){if(t<=0)return r.concat(e)}else t=1/0;for(var i=r.length,o=0,a=z(e);o<a;o++){var s=e[o];if(nt(s)&&(S(s)||A(s)))if(t>1)rt(s,t-1,n,r),i=r.length;else for(var c=0,u=s.length;c<u;)r[i++]=s[c++];else n||(r[i++]=s)}return r}var it=o((function(e,t){var n=(t=rt(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=tt(e[r],e)}return e}));function ot(e,t){var n=function(r){var i=n.cache,o=""+(t?t.apply(this,arguments):r);return P(i,o)||(i[o]=e.apply(this,arguments)),i[o]};return n.cache={},n}var at=o((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})),st=et(at,H,1);function ct(e,t,n){var r,i,o,a,s=0;n||(n={});var c=function(){s=!1===n.leading?0:De(),r=null,a=e.apply(i,o),r||(i=o=null)},u=function(){var u=De();s||!1!==n.leading||(s=u);var l=t-(u-s);return i=this,o=arguments,l<=0||l>t?(r&&(clearTimeout(r),r=null),s=u,a=e.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(c,l)),a};return u.cancel=function(){clearTimeout(r),s=0,r=i=o=null},u}function ut(e,t,n){var r,i,a,s,c,u=function(){var o=De()-i;t>o?r=setTimeout(u,t-o):(r=null,n||(s=e.apply(c,a)),r||(a=c=null))},l=o((function(o){return c=this,a=o,i=De(),r||(r=setTimeout(u,t),n&&(s=e.apply(c,a))),s}));return l.cancel=function(){clearTimeout(r),r=a=c=null},l}function lt(e,t){return et(t,e)}function dt(e){return function(){return!e.apply(this,arguments)}}function pt(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}function ft(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function ht(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var vt=et(ht,2);function mt(e,t,n){t=Ae(t,n);for(var r,i=U(e),o=0,a=i.length;o<a;o++)if(t(e[r=i[o]],r,e))return r}function gt(e){return function(t,n,r){n=Ae(n,r);for(var i=z(t),o=e>0?0:i-1;o>=0&&o<i;o+=e)if(n(t[o],o,t))return o;return-1}}var bt=gt(1),yt=gt(-1);function wt(e,t,n,r){for(var i=(n=Ae(n,r,1))(t),o=0,a=z(e);o<a;){var s=Math.floor((o+a)/2);n(e[s])<i?o=s+1:a=s}return o}function Ot(e,t,n){return function(r,o,a){var s=0,c=z(r);if("number"==typeof a)e>0?s=a>=0?a:Math.max(a+c,s):c=a>=0?Math.min(a+1,c):a+c+1;else if(n&&a&&c)return r[a=n(r,o)]===o?a:-1;if(o!=o)return(a=t(i.q.call(r,s,c),R))>=0?a+s:-1;for(a=e>0?s:c-1;a>=0&&a<c;a+=e)if(r[a]===o)return a;return-1}}var xt=Ot(1,bt,wt),_t=Ot(-1,yt);function Et(e,t,n){var r=(nt(e)?bt:mt)(e,t,n);if(void 0!==r&&-1!==r)return e[r]}function jt(e,t){return Et(e,je(t))}function kt(e,t,n){var r,i;if(t=Se(t,n),nt(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var o=U(e);for(r=0,i=o.length;r<i;r++)t(e[o[r]],o[r],e)}return e}function St(e,t,n){t=Ae(t,n);for(var r=!nt(e)&&U(e),i=(r||e).length,o=Array(i),a=0;a<i;a++){var s=r?r[a]:a;o[a]=t(e[s],s,e)}return o}function Pt(e){var t=function(t,n,r,i){var o=!nt(t)&&U(t),a=(o||t).length,s=e>0?0:a-1;for(i||(r=t[o?o[s]:s],s+=e);s>=0&&s<a;s+=e){var c=o?o[s]:s;r=n(r,t[c],c,t)}return r};return function(e,n,r,i){var o=arguments.length>=3;return t(e,Se(n,i,4),r,o)}}var Tt=Pt(1),At=Pt(-1);function Ct(e,t,n){var r=[];return t=Ae(t,n),kt(e,(function(e,n,i){t(e,n,i)&&r.push(e)})),r}function Rt(e,t,n){return Ct(e,dt(Ae(t)),n)}function It(e,t,n){t=Ae(t,n);for(var r=!nt(e)&&U(e),i=(r||e).length,o=0;o<i;o++){var a=r?r[o]:o;if(!t(e[a],a,e))return!1}return!0}function Nt(e,t,n){t=Ae(t,n);for(var r=!nt(e)&&U(e),i=(r||e).length,o=0;o<i;o++){var a=r?r[o]:o;if(t(e[a],a,e))return!0}return!1}function Lt(e,t,n,r){return nt(e)||(e=se(e)),("number"!=typeof n||r)&&(n=0),xt(e,t,n)>=0}var Dt=o((function(e,t,n){var r,i;return O(t)?i=t:(t=we(t),r=t.slice(0,-1),t=t[t.length-1]),St(e,(function(e){var o=i;if(!o){if(r&&r.length&&(e=Oe(e,r)),null==e)return;o=e[t]}return null==o?o:o.apply(e,n)}))}));function Mt(e,t){return St(e,ke(t))}function Ft(e,t){return Ct(e,je(t))}function Bt(e,t,n){var r,i,o=-1/0,a=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,c=(e=nt(e)?e:se(e)).length;s<c;s++)null!=(r=e[s])&&r>o&&(o=r);else t=Ae(t,n),kt(e,(function(e,n,r){((i=t(e,n,r))>a||i===-1/0&&o===-1/0)&&(o=e,a=i)}));return o}function zt(e,t,n){var r,i,o=1/0,a=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,c=(e=nt(e)?e:se(e)).length;s<c;s++)null!=(r=e[s])&&r<o&&(o=r);else t=Ae(t,n),kt(e,(function(e,n,r){((i=t(e,n,r))<a||i===1/0&&o===1/0)&&(o=e,a=i)}));return o}function qt(e,t,n){if(null==t||n)return nt(e)||(e=se(e)),e[Le(e.length-1)];var r=nt(e)?ge(e):se(e),i=z(r);t=Math.max(Math.min(t,i),0);for(var o=i-1,a=0;a<t;a++){var s=Le(a,o),c=r[a];r[a]=r[s],r[s]=c}return r.slice(0,t)}function Ut(e){return qt(e,1/0)}function Vt(e,t,n){var r=0;return t=Ae(t,n),Mt(St(e,(function(e,n,i){return{value:e,index:r++,criteria:t(e,n,i)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index})),"value")}function Qt(e,t){return function(n,r,i){var o=t?[[],[]]:{};return r=Ae(r,i),kt(n,(function(t,i){var a=r(t,i,n);e(o,t,a)})),o}}var Ht=Qt((function(e,t,n){P(e,n)?e[n].push(t):e[n]=[t]})),Gt=Qt((function(e,t,n){e[n]=t})),Yt=Qt((function(e,t,n){P(e,n)?e[n]++:e[n]=1})),Kt=Qt((function(e,t,n){e[n?0:1].push(t)}),!0),Wt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function $t(e){return e?S(e)?i.q.call(e):p(e)?e.match(Wt):nt(e)?St(e,Ee):se(e):[]}function Jt(e){return null==e?0:nt(e)?e.length:U(e).length}function Xt(e,t,n){return t in n}var Zt=o((function(e,t){var n={},r=t[0];if(null==e)return n;O(r)?(t.length>1&&(r=Se(r,t[1])),t=W(e)):(r=Xt,t=rt(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var a=t[i],s=e[a];r(s,a,e)&&(n[a]=s)}return n})),en=o((function(e,t){var n,r=t[0];return O(r)?(r=dt(r),t.length>1&&(n=t[1])):(t=St(rt(t,!1,!1),String),r=function(e,n){return!Lt(t,n)}),Zt(e,r,n)}));function tn(e,t,n){return i.q.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function nn(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:tn(e,e.length-t)}function rn(e,t,n){return i.q.call(e,null==t||n?1:t)}function on(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:rn(e,Math.max(0,e.length-t))}function an(e){return Ct(e,Boolean)}function sn(e,t){return rt(e,t,!1)}var cn=o((function(e,t){return t=rt(t,!0,!0),Ct(e,(function(e){return!Lt(t,e)}))})),un=o((function(e,t){return cn(e,t)}));function ln(e,t,n,r){u(t)||(r=n,n=t,t=!1),null!=n&&(n=Ae(n,r));for(var i=[],o=[],a=0,s=z(e);a<s;a++){var c=e[a],l=n?n(c,a,e):c;t&&!n?(a&&o===l||i.push(c),o=l):n?Lt(o,l)||(o.push(l),i.push(c)):Lt(i,c)||i.push(c)}return i}var dn=o((function(e){return ln(rt(e,!0,!0))}));function pn(e){for(var t=[],n=arguments.length,r=0,i=z(e);r<i;r++){var o=e[r];if(!Lt(t,o)){var a;for(a=1;a<n&&Lt(arguments[a],o);a++);a===n&&t.push(o)}}return t}function fn(e){for(var t=e&&Bt(e,z).length||0,n=Array(t),r=0;r<t;r++)n[r]=Mt(e,r);return n}var hn=o(fn);function vn(e,t){for(var n={},r=0,i=z(e);r<i;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n}function mn(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),i=Array(r),o=0;o<r;o++,e+=n)i[o]=e;return i}function gn(e,t){if(null==t||t<1)return[];for(var n=[],r=0,o=e.length;r<o;)n.push(i.q.call(e,r,r+=t));return n}function bn(e,t){return e._chain?H(t).chain():t}function yn(e){return kt(le(e),(function(t){var n=H[t]=e[t];H.prototype[t]=function(){var e=[this._wrapped];return i.o.apply(e,arguments),bn(this,n.apply(H,e))}})),H}kt(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=i.a[e];H.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),bn(this,n)}})),kt(["concat","join","slice"],(function(e){var t=i.a[e];H.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),bn(this,e)}}));var wn=H,On=yn(r);On._=On;var xn=On},,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return p}));var r=n(39),i=n(7),o=n(16),a=n(3),s=n(224),c=n(290),u=n(225);function l(e,t){return new f(e,t).parseDocument()}function d(e,t){var n=new f(e,t);n.expectToken(a.a.SOF);var r=n.parseValueLiteral(!1);return n.expectToken(a.a.EOF),r}function p(e,t){var n=new f(e,t);n.expectToken(a.a.SOF);var r=n.parseTypeReference();return n.expectToken(a.a.EOF),r}var f=function(){function e(e,t){var n=Object(s.b)(e)?e:new s.a(e);this._lexer=new u.a(n),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(a.a.NAME);return{kind:i.a.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:i.a.DOCUMENT,definitions:this.many(a.a.SOF,this.parseDefinition,a.a.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(a.a.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(a.a.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(a.a.BRACE_L))return{kind:i.a.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(a.a.NAME)&&(t=this.parseName()),{kind:i.a.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(a.a.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(a.a.PAREN_L,this.parseVariableDefinition,a.a.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:i.a.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(a.a.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(a.a.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(a.a.DOLLAR),{kind:i.a.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:i.a.SELECTION_SET,selections:this.many(a.a.BRACE_L,this.parseSelection,a.a.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(a.a.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(a.a.COLON)?(e=r,t=this.parseName()):t=r,{kind:i.a.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(a.a.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(a.a.PAREN_L,t,a.a.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(a.a.COLON),{kind:i.a.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:i.a.ARGUMENT,name:this.parseName(),value:(this.expectToken(a.a.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(a.a.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(a.a.NAME)?{kind:i.a.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:i.a.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:i.a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:i.a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case a.a.BRACKET_L:return this.parseList(e);case a.a.BRACE_L:return this.parseObject(e);case a.a.INT:return this._lexer.advance(),{kind:i.a.INT,value:t.value,loc:this.loc(t)};case a.a.FLOAT:return this._lexer.advance(),{kind:i.a.FLOAT,value:t.value,loc:this.loc(t)};case a.a.STRING:case a.a.BLOCK_STRING:return this.parseStringLiteral();case a.a.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:i.a.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:i.a.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:i.a.NULL,loc:this.loc(t)};default:return{kind:i.a.ENUM,value:t.value,loc:this.loc(t)}}case a.a.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:i.a.STRING,value:e.value,block:e.kind===a.a.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:i.a.LIST,values:this.any(a.a.BRACKET_L,(function(){return t.parseValueLiteral(e)}),a.a.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:i.a.OBJECT,fields:this.any(a.a.BRACE_L,(function(){return t.parseObjectField(e)}),a.a.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(a.a.COLON),{kind:i.a.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(a.a.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(a.a.AT),{kind:i.a.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(a.a.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(a.a.BRACKET_R),e={kind:i.a.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(a.a.BANG)?{kind:i.a.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:i.a.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===a.a.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(a.a.STRING)||this.peek(a.a.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),r=this.many(a.a.BRACE_L,this.parseOperationTypeDefinition,a.a.BRACE_R);return{kind:i.a.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(a.a.COLON);var n=this.parseNamedType();return{kind:i.a.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:i.a.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseDirectives(!0),a=this.parseFieldsDefinition();return{kind:i.a.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:o,fields:a,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(a.a.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(a.a.AMP)||this.peek(a.a.NAME));return t}return this.delimitedMany(a.a.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(a.a.BRACE_L)&&this._lexer.lookahead().kind===a.a.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(a.a.BRACE_L,this.parseFieldDefinition,a.a.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(a.a.COLON);var o=this.parseTypeReference(),s=this.parseDirectives(!0);return{kind:i.a.FIELD_DEFINITION,description:t,name:n,arguments:r,type:o,directives:s,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(a.a.PAREN_L,this.parseInputValueDef,a.a.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(a.a.COLON);var r,o=this.parseTypeReference();this.expectOptionalToken(a.a.EQUALS)&&(r=this.parseValueLiteral(!0));var s=this.parseDirectives(!0);return{kind:i.a.INPUT_VALUE_DEFINITION,description:t,name:n,type:o,defaultValue:r,directives:s,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseDirectives(!0),a=this.parseFieldsDefinition();return{kind:i.a.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:o,fields:a,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),o=this.parseUnionMemberTypes();return{kind:i.a.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:o,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(a.a.EQUALS)?this.delimitedMany(a.a.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),o=this.parseEnumValuesDefinition();return{kind:i.a.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:o,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(a.a.BRACE_L,this.parseEnumValueDefinition,a.a.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:i.a.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),o=this.parseInputFieldsDefinition();return{kind:i.a.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:o,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(a.a.BRACE_L,this.parseInputValueDef,a.a.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===a.a.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(a.a.BRACE_L,this.parseOperationTypeDefinition,a.a.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:i.a.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:i.a.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),o=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===o.length)throw this.unexpected();return{kind:i.a.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:o,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),o=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===o.length)throw this.unexpected();return{kind:i.a.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:o,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:i.a.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:i.a.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:i.a.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(a.a.AT);var n=this.parseName(),r=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var s=this.parseDirectiveLocations();return{kind:i.a.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:o,locations:s,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(a.a.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==c.a[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new o.a(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw Object(r.a)(this._lexer.source,t.start,"Expected ".concat(v(e),", found ").concat(h(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==a.a.NAME||t.value!==e)throw Object(r.a)(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(h(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===a.a.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!=e?e:this._lexer.token;return Object(r.a)(this._lexer.source,t.start,"Unexpected ".concat(h(t),"."))},t.any=function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]},t.many=function(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n},e}();function h(e){var t=e.value;return v(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function v(e){return Object(u.b)(e)?'"'.concat(e,'"'):e}},,,,,,,,function(e,t,n){"use strict";n.d(t,"e",(function(){return Pn})),n.d(t,"c",(function(){return Tn})),n.d(t,"a",(function(){return dn})),n.d(t,"f",(function(){return an})),n.d(t,"d",(function(){return sn})),n.d(t,"b",(function(){return jt}));var r,i,o,a,s,c,u,l,d,p,f,h,v,m,g,b=n(0),y=n(45),w=n(29),O=n(223),x=n.n(O);function _(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}class E extends b.a{static get properties(){return{config:Object,columns:Array,data:Object,_sorters:Array}}static get styles(){return[Object(b.b)(r||(r=_(["\n :host {\n display: grid;\n grid-template-columns: var(--grid-template-columns);\n\n overflow: hidden;\n }\n\n div {\n display: flex;\n\n white-space: nowrap;\n overflow: hidden;\n background-color: var(--grid-header-background-color);\n border-top: var(--grid-header-top-border);\n border-bottom: var(--grid-header-bottom-border);\n padding: var(--grid-header-padding);\n\n text-overflow: ellipsis;\n font: var(--grid-header-font);\n color: var(--grid-header-color);\n }\n\n div[gutter] {\n padding: var(--padding-default) 0 var(--padding-narrow) 0;\n text-align: center;\n }\n\n span {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n }\n\n span[title] {\n flex: 1;\n text-overflow: ellipsis;\n line-height: 1.6;\n text-transform: capitalize;\n }\n span[title] mwc-icon {\n font-size: var(--grid-record-fontsize);\n }\n\n span[sorter] {\n padding: 0;\n border: 0;\n }\n span[sorter] mwc-icon {\n font-size: var(--grid-header-sorter-size);\n }\n\n span[splitter] {\n cursor: col-resize;\n border-right: var(--grid-header-splitter-border);\n }\n span[splitter]:hover {\n border-right: var(--grid-header-splitter-border-hover);\n }\n input[type='checkbox'],\n input[type='radio'] {\n margin: 3px 0 0 0;\n zoom: var(--grist-input-zoom);\n }\n\n @media print {\n :host {\n grid-template-columns: var(--grid-template-print-columns);\n }\n }\n "])))]}_onWheelEvent(e){var t=Math.max(-1,Math.min(1,e.deltaY||0));this.scrollLeft=Math.max(0,this.scrollLeft-40*t),w.m||e.preventDefault()}firstUpdated(){this.addEventListener("wheel",this._onWheelEvent.bind(this),!!w.m&&{passive:!0})}updated(e){e.has("config")&&(this._sorters=this.config.sorters||[])}render(){var e=this.columns||[];return Object(b.e)(i||(i=_(["\n ","\n\n <div></div>\n "])),e.map((e,t)=>e.hidden?Object(b.e)(l||(l=_([""]))):Object(b.e)(o||(o=_(["\n <div ?gutter=",">\n <span title @click=",">"," </span>\n\n ","\n ","\n </div>\n "])),"gutter"==e.type,t=>this._changeSort(e),this._renderHeader(e),e.sortable?Object(b.e)(a||(a=_(["\n <span sorter @click=","> "," </span>\n "])),t=>this._changeSort(e),this._renderSortHeader(e)):Object(b.e)(s||(s=_([""]))),!1!==e.resizable?Object(b.e)(c||(c=_([' <span splitter draggable="false" @mousedown=',">&nbsp;</span> "])),e=>this._mousedown(e,t)):Object(b.e)(u||(u=_([""]))))))}_renderHeader(e){var{renderer:t}=e.header,n=t.call(this,e);return Object(b.e)(d||(d=_([" "," "])),n)}_renderSortHeader(e){if(e.hidden)return Object(b.e)(p||(p=_([""])));var t=this._sorters||[],n=t.find(t=>"gutter"!==e.type&&e.name==t.name);if(!n)return Object(b.e)(f||(f=_([""])));if(t.length>1){var r=t.indexOf(n)+1;return n.desc?Object(b.e)(h||(h=_([" <mwc-icon>keyboard_arrow_up</mwc-icon><sub>","</sub> "])),r):Object(b.e)(v||(v=_([" <mwc-icon>keyboard_arrow_down</mwc-icon><sub>","</sub> "])),r)}return n.desc?Object(b.e)(m||(m=_([" <mwc-icon>keyboard_arrow_up</mwc-icon> "]))):Object(b.e)(g||(g=_([" <mwc-icon>keyboard_arrow_down</mwc-icon> "])))}_changeSort(e){if(e.sortable){var t=[...this._sorters||[]],n=t.findIndex(t=>t.name==e.name);if(-1!==n){var r=t[n];r.desc?t.splice(n,1):r.desc=!0}else{var i={name:e.name};t.push(i)}this._sorters=t,this.dispatchEvent(new CustomEvent("sorters-change",{bubbles:!0,composed:!0,detail:this._sorters}))}}_accumalate(e){var t;return this._lastAccVal=(null!==(t=this._lastAccVal)&&void 0!==t?t:0)+e,this._lastAccVal}_notifyWidthChange(e,t){this.throttledNotifier||(this.throttledNotifier=x()((function(e,t){e=this.dispatchEvent(new CustomEvent("column-width-change",{bubbles:!0,composed:!0,detail:{idx:e,width:t}}));this._lastAccVal=0}),100)),this.throttledNotifier(e,t)}_mousedown(e,t){e.stopPropagation(),e.preventDefault();var n=(e=>{e.stopPropagation(),e.preventDefault();var n=this.columns[t],r=Math.max(0,Number(n.width)+this._accumalate(e.movementX));0!=r&&this._notifyWidthChange(t,r)}).bind(this),r=(e=>{document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),n(e)}).bind(this);document.addEventListener("mousemove",n),document.addEventListener("mouseup",r)}}customElements.define("data-grid-header",E);var j,k,S,P=n(311);function T(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}class A extends b.a{static get properties(){return{align:{attribute:!0},record:Object,column:Object,rowIndex:Number,editing:{attribute:"editing"},value:Object,emphasized:Object}}static get styles(){return[Object(b.b)(j||(j=T(["\n :host {\n align-items: center;\n justify-content: var(--data-grid-field-justify-content, flex-start);\n position: relative;\n\n overflow: hidden;\n white-space: nowrap;\n background-color: var(--grid-record-background-color);\n padding: var(--grid-record-padding);\n border: 1px solid transparent;\n border-width: 1px 0;\n border-bottom: var(--grid-record-border-bottom);\n\n font-size: var(--grid-record-wide-fontsize);\n min-height: 19px;\n }\n :host([gutter]) {\n padding: var(--padding-default) 0;\n text-align: center;\n }\n :host([gutter]) * {\n cursor: default;\n }\n\n :host([editing]) {\n padding: 0;\n border-top: var(--grid-record-editing-border);\n border-bottom: var(--grid-record-editing-border);\n }\n\n :host([focused]) {\n --grid-record-border-bottom: var(--grid-record-focused-cell-border);\n }\n\n :host([dirty])::after {\n content: '';\n position: absolute;\n right: 0;\n top: 0;\n\n width: 0px;\n height: 0px;\n border-top: 9px solid red;\n border-left: 9px solid transparent;\n }\n\n span {\n display: block;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n\n * {\n margin: 0;\n text-align: var(--data-grid-field-text-align);\n }\n\n *[center] {\n flex: none;\n margin: 0 auto;\n }\n\n input[type='checkbox'],\n input[type='radio'] {\n margin-top: 3px;\n zoom: var(--grist-input-zoom);\n }\n "])))]}get isEditing(){return this.hasAttribute("editing")}render(){if(!this.column)return Object(b.e)(k||(k=T([""])));var{value:e,column:t,record:n,rowIndex:r}=this,{renderer:i,editor:o}=t.record;return Object(b.e)(S||(S=T(["\n ","\n "])),this.isEditing?o(e,t,n,r,this):i(e,t,n,r,this))}updated(e){var t,n,r;if(e.has("editing")&&(this.isEditing?(this._onKeydownInEditingMode=(e=>{27==e.keyCode&&(this._editCancelled=!0)}).bind(this),this._onFieldChange=(e=>{this._editCancelled&&e.stopPropagation()}).bind(this),delete this._editCancelled,this.addEventListener("field-change",this._onFieldChange),this.addEventListener("keydown",this._onKeydownInEditingMode)):(this.removeEventListener("field-change",this._onFieldChange),this.removeEventListener("keydown",this._onKeydownInEditingMode))),e.has("column")){var i,o=(null===(i=this.column.record)||void 0===i?void 0:i.align)||"left";if("left"!=o){var a="center";switch(o){case"right":a="flex-end"}this.style.setProperty("--data-grid-field-justify-content",a),this.style.setProperty("--data-grid-field-text-align",o)}}var s=(null===(t=this.column)||void 0===t||null===(n=t.record)||void 0===n||null===(r=n.classifier.call(this,this.record,this.rowIndex))||void 0===r?void 0:r.emphasized)||this.emphasized;if(s){if(this.setAttribute("emphasized-row",!0),Symbol.iterator in Object(s)){var[c,u]=s;c&&this.style.setProperty("--grid-record-emphasized-background-color",c),u&&this.style.setProperty("--grid-record-emphasized-color",u)}}else this.removeAttribute("emphasized-row")}}function C(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function R(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){C(o,r,i,a,s,"next",e)}function s(e){C(o,r,i,a,s,"throw",e)}a(void 0)}))}}customElements.define("data-grid-field",A);var I;function N(e){return L.apply(this,arguments)}function L(){return(L=R((function*(e){var t=e.keyCode,{row:n=0,column:r=0}=this.focused||{},{records:i=[]}=this.data||{},o=this.config.rows.appendable?i.length:i.length-1,a=(this.columns||[]).filter(e=>!e.hidden).length-1;if(this.editTarget)switch(t){case 27:case 13:return this.editTarget=null,void this.focus();default:return}else switch(t){case 38:n=Math.max(0,n-1);break;case 40:n=Math.min(o,n+1);break;case 13:return void this.startEditTarget(n,r);case 37:case 8:r=Math.max(0,r-1);break;case 39:case 9:r=Math.min(a,r+1);break;case 33:n=Math.max(0,n-10);break;case 34:n=Math.min(o,n+10);break;case 27:return;default:return void((t>47&&t<58||32==t||13==t||t>64&&t<91||t>95&&t<112||t>185&&t<193||t>218&&t<223)&&this.startEditTarget(n,r))}this.focused&&this.focused.row===n&&this.focused.column===r||this.dispatchEvent(new CustomEvent("focus-change",{bubbles:!0,composed:!0,detail:{row:n,column:r}})),e.preventDefault()}))).apply(this,arguments)}function D(e){e.stopPropagation();var t=e.target,{column:n,record:r,rowIndex:i,columnIndex:o}=t;if(this.focused&&i===this.focused.row&&o===this.focused.column||(this.dispatchEvent(new CustomEvent("focus-change",{bubbles:!0,composed:!0,detail:{row:i,column:o}})),this.editTarget=null),n){var{click:a}=n.handlers;a&&a(this.columns,this.data,n,r,i,t)}var{click:s}=this.config.rows.handlers;s&&s(this.columns,this.data,n,r,i,t)}function M(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function F(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){M(o,r,i,a,s,"next",e)}function s(e){M(o,r,i,a,s,"throw",e)}a(void 0)}))}}function B(e){return z.apply(this,arguments)}function z(){return(z=F((function*(e){e.stopPropagation();var t=e.target,{record:n,rowIndex:r,columnIndex:i,column:o}=t;if(o)if(isNaN(r)||isNaN(i))console.error("should not be here.");else{setTimeout(()=>{this.startEditTarget(r,i)},1);var{dblclick:a}=o.handlers;a&&a(this.columns,this.data,o,n,r,t);var{dblclick:s}=this.config.rows.handlers;s&&s(this.columns,this.data,o,n,r,t)}}))).apply(this,arguments)}var q,U,V,Q,H,G=Object(b.b)(I||(q=["\n :host {\n display: grid;\n grid-template-columns: var(--grid-template-columns);\n grid-auto-rows: var(--grid-record-height, min-content);\n\n overflow: auto;\n outline: none;\n color: var(--grid-record-color);\n }\n\n :host > [odd] {\n background-color: var(--grid-record-odd-background-color);\n }\n\n :host > [selected-row] {\n background-color: var(--grid-record-selected-background-color);\n color: var(--grid-record-selected-color);\n }\n\n :host > [emphasized-row] {\n background-color: var(--grid-record-emphasized-background-color);\n color: var(--grid-record-emphasized-color);\n }\n\n :host > [focused-row] {\n background-color: var(--grid-record-focused-background-color);\n box-shadow: var(--grid-record-focused-box-shadow);\n font-weight: bold;\n color: var(--grid-record-focused-color);\n }\n\n :host > [focused] {\n background-color: var(--grid-record-focused-cell-background-color);\n }\n\n :host > [editing] {\n background-color: var(--grid-record-editing-background-color);\n }\n\n @media print {\n :host {\n grid-template-columns: var(--grid-template-print-columns);\n }\n :host > [focused] {\n border: none;\n }\n\n :host > [selected-row] {\n background-color: transparent;\n }\n\n :host > [emphasized-row] {\n background-color: transparent;\n color: initial;\n }\n\n :host > [focused-row] {\n background-color: transparent;\n color: initial;\n }\n\n :host > [editing] {\n background-color: transparent;\n }\n }\n"],U||(U=q.slice(0)),I=Object.freeze(Object.defineProperties(q,{raw:{value:Object.freeze(U)}}))));function Y(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}class K extends b.a{constructor(...e){var t,n,r;super(...e),t=this,n="debounce",r=P.a.debounce((e,t)=>{var n=Math.ceil(t/41),r=Math.max(0,Math.floor(e/41)-3*n),i=Math.min(this.data.records.length,r+7*n);this.from=r,this.to=i},300),n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r}static get properties(){return{config:Object,columns:Array,data:Object,focused:Object,editTarget:Object,from:Number,to:Number}}static get styles(){return[G]}handleOnScroll(e){var{scrollTop:t,clientHeight:n}=e.target;this.debounce(t,n)}render(){var{row:e=0,column:t=0}=this.focused||{},{row:n,column:r}=this.editTarget||{},i=(this.columns||[]).filter(e=>!e.hidden),o=this.data||{},{records:a=[]}=o,{appendable:s,classifier:c}=this.config&&this.config.rows||{};return s&&(a=[...a,{__dirty__:"+"}]),Object(b.e)(V||(V=Y(["\n ","\n "])),a.map((a,s)=>{var u=s===e,l=a.__selected__,d=s%2,p=a.__dirtyfields__||{},{emphasized:f}=c.call(null,a,s)||{};return Object(b.e)(Q||(Q=Y(["\n ","\n <data-grid-field\n .data=","\n .rowIndex=","\n .record=","\n .emphasized=","\n ?odd=","\n ?focused-row=","\n ?selected-row=","\n ></data-grid-field>\n "])),i.map((i,c)=>Object(b.e)(H||(H=Y(["\n <data-grid-field\n .data=","\n .rowIndex=","\n .columnIndex=","\n .column=","\n .record=","\n .emphasized=","\n ?gutter=","\n ?odd=","\n ?focused-row=","\n ?selected-row=","\n ?focused=","\n ?editing=","\n .value=","\n ?dirty=","\n ></data-grid-field>\n "])),o,s,c,i,a,f,"gutter"==i.type,d,u,l,s===e&&c===t,s===n&&c===r,a[i.name],!!p[i.name])),o,s,a,f,d,u,l)}))}firstUpdated(){this.setAttribute("tabindex","-1"),this.addEventListener("focusout",e=>{this._focusedListener&&(window.removeEventListener("keydown",this._focusedListener),delete this._focusedListener)}),this.addEventListener("focusin",e=>{this._focusedListener||(this._focusedListener=N.bind(this),window.addEventListener("keydown",this._focusedListener))}),this.shadowRoot.addEventListener("click",D.bind(this)),this.shadowRoot.addEventListener("dblclick",B.bind(this)),this.addEventListener("wheel",this._onWheelEvent.bind(this),!!w.m&&{passive:!0})}_onWheelEvent(e){if(this.scrollHeight<=this.clientHeight){var t=Math.max(-1,Math.min(1,e.deltaY||0));this.scrollLeft=Math.max(0,this.scrollLeft-40*t),w.m||e.preventDefault()}}startEditTarget(e,t){var{editable:n}=(this.columns||[]).filter(e=>!e.hidden)[t].record;!n||this.editTarget&&e==this.editTarget.row&&t==this.editTarget.column||(this.editTarget={row:e,column:t})}shouldUpdate(e){return e.has("editTarget")||(this.editTarget=null),super.shouldUpdate(e)}updated(e){if(e.has("focused")){var t=this.shadowRoot.querySelector("[focused]");if(!t)return;var{top:n,left:r}=function(e,t){var{top:n,left:r,right:i,bottom:o}=t.getBoundingClientRect(),{top:a,left:s,right:c,bottom:u}=e.getBoundingClientRect(),{scrollLeft:l,scrollTop:d}=e,p=e.clientWidth-e.offsetWidth,f=e.clientHeight-e.offsetHeight;return{left:r<s?l-(s-r):i>c?l-(c-i)-p:void 0,top:n<a?d-(a-n):o>u?d-(u-o)-f:void 0}}(this,t);void 0!==n&&(this.scrollTop=n),void 0!==r&&(this.scrollLeft=r)}}focus(){if(super.focus(),!this.focused||void 0===this.focused.row){var{records:e=[]}=this.data||{},t=e.findIndex(e=>e.__selected__);this.focused={row:-1==t?0:t,column:0}}}}customElements.define("data-grid-body",K);var W,$,J;n(42);function X(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Z,ee,te,ne,re,ie,oe,ae=[20,30,50,100],se=30;class ce extends b.a{static get properties(){return{config:Object,data:Object}}static get styles(){return[Object(b.b)(W||(W=X(["\n :host {\n display: flex;\n flex-direction: row;\n overflow: hidden;\n\n padding: var(--grid-footer-padding);\n background-color: var(--grid-footer-background-color);\n font-size: var(--grid-footer-font-size);\n }\n\n :host * {\n white-space: nowrap;\n overflow: hidden;\n padding: 0 2px;\n\n text-overflow: ellipsis;\n text-align: center;\n color: var(--grid-footer-color);\n }\n\n .filler {\n flex: 1;\n }\n\n mwc-icon {\n font-size: 1.5em;\n vertical-align: middle;\n }\n\n .limit a {\n color: var(--grid-footer-limit-color);\n }\n\n .limit a[selected] {\n color: var(--grid-footer-color);\n font-weight: bold;\n text-decoration: underline;\n }\n\n a[inactive] * {\n color: var(--grid-footer-inactive-color);\n }\n "])))]}_gotoPage(e){var{limit:t=20,total:n=0}=this.data||{};e>Math.ceil(n/t)||e<=0||this.dispatchEvent(new CustomEvent("page-change",{bubbles:!0,composed:!0,detail:e}))}_changeLimit(e){this.dispatchEvent(new CustomEvent("limit-change",{bubbles:!0,composed:!0,detail:e}))}render(){var{records:e=[],page:t=1,limit:n=se,total:r=0}=this.data||{},{pages:i=ae}=this.config&&this.config.pagination||{},o=0==e.length?0:n*(t-1)+1,a=0==e.length?0:o+e.length-1,s=Math.max(1,Math.ceil(r/n));return Object(b.e)($||($=X(["\n <a ?inactive="," @click=","><mwc-icon>skip_previous</mwc-icon></a>\n <a ?inactive="," @click=","><mwc-icon>navigate_before</mwc-icon></a>\n <span>page <strong>","</strong>&nbsp;/&nbsp;","</span>\n <a ?inactive="," @click=","><mwc-icon>navigate_next</mwc-icon></a>\n <a ?inactive="," @click=",'><mwc-icon>skip_next</mwc-icon></a>\n\n <span class="filler"></span>\n\n <span class="limit">\n ',"\n records\n </span>\n <span>&nbsp;</span>\n <span>"," - ","</span>\n <span>&nbsp;/&nbsp;</span>\n <span>total "," records.</span>\n "])),t<=1,e=>this._gotoPage(1),t<=1,e=>this._gotoPage(t-1),t,s,t>=s,e=>this._gotoPage(t+1),t>=s,e=>this._gotoPage(s),i.map(e=>Object(b.e)(J||(J=X(["\n <a ?selected="," @click=",">","</a>\n "])),n==e,t=>this._changeLimit(e),e)),o,a,r||0)}}function ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(n),!0).forEach((function(t){de(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function de(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pe(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("data-grid-footer",ce);class fe extends b.a{static get properties(){return{config:Object,data:Object,focused:Object}}static get styles(){return[y.c,Object(b.b)(Z||(Z=pe(["\n :host {\n display: flex;\n flex-direction: column;\n\n overflow: hidden;\n\n border: var(--grid-container-border-color);\n border-width: var(--grid-container-border-width);\n }\n\n data-grid-body {\n flex: 1;\n }\n\n @media print {\n :host {\n zoom: 80%;\n }\n }\n "])))]}get body(){return this.shadowRoot.querySelector("data-grid-body")}get header(){return this.shadowRoot.querySelector("data-grid-header")}firstUpdated(){this.header.addEventListener("scroll",e=>{this.body.scrollLeft!==this.header.scrollLeft&&(this.body.scrollLeft=this.header.scrollLeft)}),this.body.addEventListener("scroll",e=>{this.body.scrollLeft!==this.header.scrollLeft&&(this.header.scrollLeft=this.body.scrollLeft)}),this.addEventListener("select-all-change",e=>{var t;if(null!==(t=this.data)&&void 0!==t&&t.records){var{selected:n}=e.detail,{records:r}=this.data;r.forEach(e=>e.__selected__=n),this.data=le({},this.data)}}),this.addEventListener("select-record-change",e=>{var{records:t,added:n=[],removed:r=[]}=e.detail,{records:i}=this.data||{},{selectable:o}=this.config.rows;i&&(o&&!o.multiple&&i.forEach(e=>e.__selected__=!1),t?(i.forEach(e=>e.__selected__=!1),t.forEach(e=>e.__selected__=!0)):(r.forEach(e=>e.__selected__=!1),n.forEach(e=>e.__selected__=!0)),this.header.requestUpdate(),this.body.requestUpdate())}),this.addEventListener("field-change",e=>{var{after:t,before:n,column:r,record:i,row:o}=e.detail;if(t!==n){var a=r.validation;a&&!a.call(this,t,n,i,r)||this.onRecordChanged({[r.name]:t},o,r)}}),this.addEventListener("focus-change",e=>{this.focused=e.detail,this.focus(),this.requestUpdate()}),this.addEventListener("record-reset",e=>{var{record:t,row:n}=e.detail;this.onRecordChanged(t.__origin__,n,null)})}onRecordChanged(e,t,n){var r,i,o=(null===(r=this.data)||void 0===r?void 0:r.records)||[],a=o[t],s=!1,c=!1;if(e)if(a){var u=a.__dirty__;i=le(le(le({},a),e),{},"+"==u?{__dirty__:"+"}:{__dirty__:"M"})}else i=le(le({},e),{},{__dirty__:"+"}),c=!0;else{if(!a)return void this.requestUpdate();"+"==a.__dirty__?s=!0:i=le(le({},a),{},{__dirty__:"-"})}c?o.push(i):s?o.splice(t,1):o.splice(t,1,i),this.dispatchEvent(new CustomEvent("record-change",{bubbles:!0,composed:!0,detail:{before:a,after:i,column:n,row:t}}))}updated(e){if((e.has("config")||e.has("data"))&&(this.calculateWidths(this.config&&this.config.columns),this.focused&&"row"in this.focused)){var{row:t=0,column:n=0}=this.focused,{records:r=[]}=e.get("data"),{records:i=[]}=this.data,o=r[t];if(o&&o!==i[t]){var a=i.find(e=>o===e||"id"in o&&e.id==o.id||"name"in o&&e.name==o.name);this.focused={row:a?i.indexOf(a):t,column:n}}}this.focus()}calculateWidths(e){this._widths=(e||[]).filter(e=>!e.hidden).map(e=>{switch(typeof e.width){case"number":return e.width+"px";case"string":return e.width;case"function":return e.width.call(this,e);default:return"auto"}}).concat(["auto"]).join(" "),this.style.setProperty("--grid-template-columns",this._widths),this.style.setProperty("--grid-template-print-columns",this._widths.replace(/px/gi,"fr"))}render(){var{pagination:e={},columns:t=[]}=this.config||{},n=!e.infinite,r=this.data;return Object(b.e)(ee||(ee=pe(["\n <data-grid-header\n .config=","\n .columns=","\n .data=","\n @column-width-change=","\n ></data-grid-header>\n\n <data-grid-body\n .config=","\n .columns=","\n .data=","\n .focused=","\n ></data-grid-body>\n\n ","\n "])),this.config,t,r,e=>{var{idx:n,width:r}=e.detail;t[n].width=r,this.calculateWidths(t)},this.config,t,r,this.focused,n?Object(b.e)(te||(te=pe([" <data-grid-footer .config="," .data=","></data-grid-footer> "])),this.config,r):Object(b.e)(ne||(ne=pe([""]))))}focus(){super.focus();var e=this.shadowRoot.querySelector("data-grid-body");e&&e.focus()}}function he(e){e.stopPropagation();var t=e.target,{column:n,record:r,rowIndex:i,columnIndex:o}=t;if(n&&"gutter"==n.type){var{click:a}=n.handlers;a&&a(this.columns,this.data,n,r,i,t)}else{var{click:s}=this.config.rows.handlers;s?s(this.columns,this.data,n,r,i,t):this.popupRecordView()}}function ve(e){e.stopPropagation();var t=e.target,{column:n,record:r,rowIndex:i,columnIndex:o}=t;if(n&&"gutter"==n.type);else{var{dblclick:a}=this.config.rows.handlers;a&&a(this.columns,this.data,n,r,i,t)}}function me(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("data-grid",fe);var ge,be,ye,we,Oe,xe,_e;class Ee extends b.a{static get properties(){return{align:{attribute:!0},record:Object,column:Object,rowIndex:Number,value:Object}}static get styles(){return[Object(b.b)(re||(re=me(["\n :host {\n display: flex;\n align-items: center;\n justify-content: var(--data-list-gutter-justify-content, flex-start);\n position: relative;\n\n white-space: nowrap;\n overflow: hidden;\n background-color: transparent;\n\n font-size: var(--grid-record-wide-fontsize);\n text-overflow: ellipsis;\n color:var(--grid-record-color);\n }\n\n * {\n flex: 1;\n margin: 0;\n }\n\n *[center] {\n flex: none;\n margin: 0 auto;\n }\n "])))]}get isEditing(){return this.hasAttribute("editing")}render(){if(!this.column)return Object(b.e)(ie||(ie=me([""])));var{value:e,column:t,record:n,rowIndex:r}=this,{renderer:i}=t.record;return Object(b.e)(oe||(oe=me(["\n ","\n "])),i(e,t,n,r,this))}updated(e){if(e.has("column")){var t=this.column.record&&this.column.record.align||"left";if("left"!=t){var n="center";switch(t){case"right":n="flex-end"}this.style.setProperty("--data-list-gutter-justify-content",n)}}}}function je(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("data-list-gutter",Ee);class ke extends b.a{static get properties(){return{align:{attribute:!0},record:Object,column:Object,rowIndex:Number,value:Object}}static get styles(){return[Object(b.b)(ge||(ge=je(["\n :host {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n position: relative;\n\n white-space: normal;\n overflow: hidden;\n padding: 1px 7px 1px 0;\n\n font: inherit;\n }\n\n * {\n flex: 1;\n margin: 0;\n text-align: left;\n }\n\n *[center] {\n flex: none;\n margin: 0 auto;\n }\n\n label {\n flex: none;\n width: 33%;\n font: var(--data-list-item-etc-label-font);\n }\n\n input[type='checkbox'],\n input[type='radio'] {\n zoom: var(--grist-input-zoom);\n }\n\n @media only screen and (max-width: 460px) {\n *[center] {\n margin: initial;\n }\n }\n "])))]}render(){var{value:e,column:t,record:n,rowIndex:r}=this,{label:i,record:{renderer:o}}=t;if(i){var{renderer:a}=i;return Object(b.e)(be||(be=je(["<label>","</label>",""])),a(),o(e,t,n,r,this))}return Object(b.e)(ye||(ye=je(["",""])),o(e,t,n,r,this))}}function Se(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("data-list-field",ke);var Pe,Te,Ae,Ce,Re,Ie,Ne,Le;class De extends b.a{static get styles(){return Object(b.b)(we||(we=Se(["\n :host {\n display: grid;\n grid-template-columns: 1fr 2fr;\n grid-auto-rows: min-content;\n grid-gap: var(--record-view-gap);\n background-color: var(--record-view-background-color);\n padding: var(--record-view-padding);\n\n overflow-y: auto;\n }\n\n label {\n position: relative;\n text-transform: capitalize;\n\n padding: var(--record-view-item-padding);\n border-bottom: var(--record-view-border-bottom);\n font: var(--record-view-label-font);\n color: var(--record-view-label-color);\n }\n\n label mwc-icon {\n display: none;\n }\n\n label[editable] mwc-icon {\n display: inline-block;\n font-size: var(--record-view-label-icon-size);\n opacity: 0.5;\n }\n\n data-grid-field {\n padding: 0 0 5px 0;\n border-bottom: var(--record-view-border-bottom);\n font: var(--record-view-font);\n color: var(--record-view-color);\n background-color: transparent;\n }\n\n data-grid-field[editing='true'] {\n border-top:none;\n border-bottom: var(--record-view-edit-border-bottom);\n }\n\n :first-child + data-grid-field {\n color: var(--record-view-focus-color);\n font-weight: bold;\n }\n "])))}static get properties(){return{columns:Array,record:Object,rowIndex:Number}}render(){var e=(this.columns||[]).filter(e=>!e.hidden&&"gutter"!=e.type),t=this.record||{},n=this.rowIndex;return Object(b.e)(Oe||(Oe=Se(["\n ","\n "])),e.map(e=>{var{editable:r}=e.record,i=t.__dirtyfields__||{};return Object(b.e)(xe||(xe=Se(["\n <label ?editable=",">"," <mwc-icon>edit</mwc-icon></label>\n <data-grid-field\n .rowIndex=","\n .column=","\n .record=","\n .value=","\n ?dirty=","\n ></data-grid-field>\n "])),r,this._renderLabel(e),n,e,t,t[e.name],!!i[e.name])}))}firstUpdated(){this.shadowRoot.addEventListener("click",e=>{e.stopPropagation();var t=e.target;this.editTarget&&(this.editTarget.removeAttribute("editing"),this.editTarget=null),"DATA-GRID-FIELD"===t.tagName&&t.column.record.editable&&(this.editTarget=t,t.setAttribute("editing",!0))}),this._focusedListener=function(e){switch(e.keyCode){case 27:case 13:return void(this.editTarget&&(this.editTarget.removeAttribute("editing"),this.editTarget=null));default:return}}.bind(this),window.addEventListener("keydown",this._focusedListener)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("keydown",this._focusedListener)}_renderLabel(e){var{renderer:t}=e.header,n=t.call(this,e);return Object(b.e)(_e||(_e=Se(["\n ","\n "])),n)}}function Me(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("record-view-body",De);class Fe extends b.a{static get styles(){return Object(b.b)(Pe||(Pe=Me(["\n :host {\n display: flex;\n flex-direction: column;\n }\n\n record-view-body {\n flex: 1;\n }\n\n [footer] {\n display: flex;\n text-align: right;\n background-color: var(--record-view-footer-background);\n box-shadow: var(--context-toolbar-shadow-line);\n height: var(--record-view-footer-height);\n }\n\n [footer] button {\n flex: 1;\n background-color: transparent;\n border: var(--record-view-footer-button-border);\n border-width: var(--record-view-footer-button-border-width);\n height: var(--record-view-footer-button-height);\n color: var(--record-view-footer-button-color);\n font-size: var(--record-view-footer-button-font);\n line-height: 3;\n }\n\n [footer] button * {\n vertical-align: middle;\n }\n\n [footer] button mwc-icon {\n margin-top: -3px;\n margin-right: 5px;\n font-size: var(--record-view-footer-iconbutton-size);\n }\n\n [footer] button[ok] {\n background-color: var(--record-view-footer-focus-background);\n }\n "])))}static get properties(){return{columns:Array,record:Object,rowIndex:Number}}render(){return Object(b.e)(Te||(Te=Me(["\n <record-view-body .columns="," .record="," .rowIndex=","> </record-view-body>\n <div footer>\n <button @click=","><mwc-icon>refresh</mwc-icon>Reset</button>\n <button @click=","><mwc-icon>clear</mwc-icon>Cancel</button>\n <button @click="," ok><mwc-icon>radio_button_unchecked</mwc-icon>OK</button>\n </div>\n "])),this.columns,this.record,this.rowIndex,this.onReset.bind(this),this.onCancel.bind(this),this.onOK.bind(this))}onReset(){this.dispatchEvent(new CustomEvent("reset",{detail:this.record}))}onCancel(){this.dispatchEvent(new CustomEvent("cancel",{detail:this.record}))}onOK(){this.dispatchEvent(new CustomEvent("ok",{detail:this.record}))}}function Be(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("record-view",Fe);var ze,qe,Ue,Ve,Qe;new Intl.DateTimeFormat(navigator.language,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1});class He extends b.a{static get properties(){return{config:Object,data:Object,record:Object,rowIndex:Number,selectedRow:{attribute:"selected-row"}}}static get styles(){return[Object(b.b)(Ae||(Ae=Be(["\n :host {\n display: flex;\n flex-direction: row;\n align-items: center;\n border-bottom: var(--data-list-item-border-bottom);\n position: relative;\n min-height: 42px;\n }\n\n data-list-gutter {\n flex: 0 0 14px;\n }\n\n :host([dirty])::before {\n content: '';\n position: absolute;\n left: 0;\n top: 0;\n\n width: 0px;\n height: 0px;\n border-top: var(--grid-record-dirty-border-top);\n border-right: var(--grid-record-dirty-border-left);\n }\n\n :host > * {\n margin: var(--data-list-item-margin);\n zoom: 1.4;\n }\n\n :host [dirty] {\n position: absolute;\n margin: 0;\n height: 20px;\n font: var(--grid-record-dirty-icon-font);\n text-indent: 1px;\n left: 0;\n top: 0;\n color: var(--grid-record-dirty-color);\n }\n\n [content] {\n flex: auto;\n display: block;\n zoom: 1;\n }\n\n data-list-field {\n padding-top: 3px;\n font: var(--data-list-item-etc-font);\n color: var(--data-list-item-etc-color);\n }\n\n data-list-field[name] {\n font: var(--data-list-item-name-font);\n color: var(--data-list-item-name-color);\n }\n\n data-list-field[desc] {\n font: var(--data-list-item-disc-font);\n color: var(--data-list-item-disc-color);\n }\n\n .update-info {\n font: var(--data-list-item-etc-font);\n color: var(--data-list-item-etc-color);\n }\n\n .update-info mwc-icon {\n vertical-align: middle;\n font-size: 1em;\n }\n "])))]}attributeChangedCallback(e,t,n){super.attributeChangedCallback(e,t,n)}onFieldChange(e){this.dispatchEvent(new CustomEvent("field-change",{bubbles:!0,composed:!0,detail:e.detail}))}get recordView(){this._recordView||(this._recordView=document.createElement("record-view"),this._recordView.addEventListener("field-change",e=>this.onFieldChange(e)));var e=this.config.columns;return this._recordView.columns=e,this._recordView.record=this.record,this._recordView.rowIndex=this.rowIndex,this._recordView}firstUpdated(){this.shadowRoot.addEventListener("click",he.bind(this)),this.shadowRoot.addEventListener("dblclick",ve.bind(this))}updated(e){e.has("record")&&this._recordView&&(this._recordView.record=this.record)}render(){var e,t=this.record||{},n=this.rowIndex,{columns:r,list:i}=this.config,{fields:o}=i,a=o.map(e=>r.find(t=>t.name==e)).filter(e=>e),s=(r||[]).filter(e=>"gutter"==e.type&&e.forList);if(this.hasAttribute("dirty"))switch(this.record.__dirty__){case"M":e="done";break;case"+":e="add";break;case"-":e="remove"}return Object(b.e)(Ce||(Ce=Be(["\n ","\n ","\n\n <div content>\n ","\n </div>\n "])),e?Object(b.e)(Re||(Re=Be([" <mwc-icon dirty>","</mwc-icon> "])),e):Object(b.e)(Ie||(Ie=Be([""]))),s.map(e=>Object(b.e)(Ne||(Ne=Be(["\n <data-list-gutter\n .rowIndex=","\n .column=","\n .record=","\n .value=","\n ></data-list-gutter>\n "])),n,e,t,t[e.name])),a.map((e,r)=>Object(b.e)(Le||(Le=Be(["\n <data-list-field\n .rowIndex=","\n .column=","\n .record=","\n .value=","\n ?name=","\n ?desc=","\n ></data-list-field>\n "])),n,e,t,t[e.name],0==r,1==r)))}popupRecordView(){var e=this.config.list.fields[0]||"name",t=this.record[e];if("object"==typeof t){var n=this.config.columns.find(t=>t.name==e);t=n.record.renderer(t,n,this.record,this.rowIndex,this)}document.dispatchEvent(new CustomEvent("open-popup",{detail:{template:this.recordView,options:{backdrop:!0,size:"large",title:t},callback:e=>{this.recordView.addEventListener("reset",()=>{this.dispatchEvent(new CustomEvent("record-reset",{bubbles:!0,composed:!0,detail:{record:this.record,row:this.rowIndex}}))}),this.recordView.addEventListener("cancel",()=>{this.dispatchEvent(new CustomEvent("record-reset",{bubbles:!0,composed:!0,detail:{record:this.record,row:this.rowIndex}})),e.close()}),this.recordView.addEventListener("ok",()=>{e.close()}),e.onclosed=()=>{delete this._recordView}}}}))}}function Ge(e){e.stopPropagation();var t=e.target,{record:n,rowIndex:r}=t}function Ye(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Ke(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Ye(o,r,i,a,s,"next",e)}function s(e){Ye(o,r,i,a,s,"throw",e)}a(void 0)}))}}function We(e){return $e.apply(this,arguments)}function $e(){return($e=Ke((function*(e){e.stopPropagation();var t=e.target,{record:n,rowIndex:r}=t}))).apply(this,arguments)}function Je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Je(Object(n),!0).forEach((function(t){Ze(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function et(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("record-partial",He);class tt extends b.a{static get properties(){return{config:Object,data:Object,_records:Array,isTop:Boolean}}static get styles(){return[Object(b.b)(ze||(ze=et(["\n :host {\n background-color: var(--data-list-background-color);\n overflow-y: auto;\n }\n\n :nth-child(even) {\n background-color: var(--theme-white-color);\n }\n\n [selected-row] {\n background-color: var(--data-list-selected-background-color);\n }\n\n #upward {\n --mdc-icon-size: 26px;\n position: absolute;\n top: var(--data-list-fab-position-vertical);\n right: var(--data-list-fab-position-horizontal);\n background-color: rgba(255, 255, 255, 0.7);\n border-radius: 20px;\n color: var(--data-list-fab-color);\n box-shadow: var(--data-list-fab-shadow);\n padding: 7px;\n }\n\n slot {\n width: 100%;\n }\n\n slot[name='headroom'] {\n display: flex;\n position: absolute;\n top: 0;\n }\n "])))]}firstUpdated(e){this.isTop=!0,this.addEventListener("scroll",e=>{if(this.scrollHeight<=this.offsetHeight+this.scrollTop+1){var t=Math.ceil(this._total/this._limit);this._page<t&&this.dispatchEvent(new CustomEvent("attach-page",{bubbles:!0,composed:!0}))}this.isTop=0==this.scrollTop}),this.addEventListener("select-record-change",e=>{var{records:t,added:n=[],removed:r=[]}=e.detail,{records:i}=this.data||{},{selectable:o=!1}=this.config.rows;i&&o&&(o&&!o.multiple&&i.forEach(e=>e.__selected__=!1),t?(i.forEach(e=>e.__selected__=!1),t.forEach(e=>e.__selected__=!0)):(r.forEach(e=>e.__selected__=!1),n.forEach(e=>e.__selected__=!0)),this.requestUpdate())}),this.addEventListener("field-change",e=>{var{after:t,before:n,column:r,record:i,row:o}=e.detail;if(t!==n){var a=r.validation;a&&!a.call(this,t,n,i,r)||this.onRecordChanged({[r.name]:t},o,r)}}),this.addEventListener("record-reset",e=>{var{record:t,row:n}=e.detail;this.onRecordChanged(t.__origin__,n,null)}),this.shadowRoot.addEventListener("click",Ge.bind(this)),this.shadowRoot.addEventListener("dblclick",We.bind(this))}onRecordChanged(e,t,n){var r,i,o=(null===(r=this.data)||void 0===r?void 0:r.records)||[],a=o[t],s=!1,c=!1;if(e)if(a){var u=a.__dirty__;i=Xe(Xe(Xe({},a),e),{},"+"==u?{__dirty__:"+"}:{__dirty__:"M"})}else i=Xe(Xe({},e),{},{__dirty__:"+"}),c=!0;else{if(!a)return void this.requestUpdate();"+"==a.__dirty__?s=!0:i=Xe(Xe({},a),{},{__dirty__:"-"})}c?o.push(i):s?o.splice(t,1):o.splice(t,1,i),this.dispatchEvent(new CustomEvent("record-change",{bubbles:!0,composed:!0,detail:{before:a,after:i,column:n,row:t}}))}updated(e){e.has("config")&&(this._records=[],this._page=1),e.has("data")&&(this._records=this.data.records,this._total=this.data.total,this._limit=this.data.limit,this._page=this.data.page)}render(){var e=this._records||[];return this.config&&this.config.rows.appendable&&(e=[...e,{__dirty__:"+"}]),Object(b.e)(qe||(qe=et(["\n ","\n ","\n "])),e.map((e,t)=>Object(b.e)(Ue||(Ue=et(["\n <record-partial\n .config=","\n .data=","\n .record=","\n .rowIndex=","\n ?selected-row=","\n ?dirty=","\n ></record-partial>\n "])),this.config,this.data,e,t,e.__selected__,e.__dirty__)),this.isTop?Object(b.e)(Ve||(Ve=et([""]))):Object(b.e)(Qe||(Qe=et([' <mwc-icon id="upward" @click=',">arrow_upward</mwc-icon> "])),e=>this.gotoTop(e)))}gotoTop(e){this.scrollTop=0,e.stopPropagation()}}customElements.define("data-list",tt);var nt,rt,it,ot,at,st,ct,ut,lt,dt,pt=n(309),ft=n.n(pt),ht=n(222);function vt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function mt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function gt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}class bt extends b.a{static get styles(){return Object(b.b)(at||(at=gt(["\n :host {\n display: block;\n text-align: center !important;\n }\n mwc-icon {\n width: var(--grid-record-dirty-icon-size);\n height: var(--grid-record-dirty-icon-size);\n border-radius: 50%;\n opacity: 0.8;\n }\n [add] {\n background-color: var(--status-success-color);\n }\n [remove] {\n background-color: var(--status-danger-color);\n }\n [done] {\n background-color: var(--status-info-color);\n }\n "])))}static get properties(){return{value:String}}render(){switch(this.value){case"+":return Object(b.e)(st||(st=gt([" <mwc-icon style="," center add>add</mwc-icon> "])),yt);case"-":return Object(b.e)(ct||(ct=gt([" <mwc-icon style="," center remove>remove</mwc-icon> "])),yt);case"M":return Object(b.e)(ut||(ut=gt([" <mwc-icon style="," center done>done</mwc-icon> "])),yt);default:return""}}}customElements.define("gutter-dirty-element",bt);var yt="font-size: var(--grid-record-fontsize);vertical-align: middle; color: var(--grid-record-dirty-color)";var wt={sequence:class{static instance(e={}){return Object.assign({},{type:"gutter",name:"__seq__",getterType:"sequence",width:function(e){if(this.data)var{limit:t=0,page:n=1,records:r=[]}=this.data||{},i=(n-1)*t+r.length;else i=100;return"".concat(Math.max(String(i).length,2),"ch")},resizable:!1,sortable:!1,header:"#",record:{renderer:function(e,t,n,r,i){return e},align:"right"},forGrid:!0,forList:!1},e)}},"row-selector":class{static instance(e={}){return Object.assign({},{type:"gutter",name:"__selected__",gutterType:"row-selector",width:30,resizable:!1,sortable:!1,header:{renderer:function(e){var t=((this.data||{}).records||[]).find(e=>e.__selected__);return Object(b.e)(nt||(nt=vt(['\n <input\n type="checkbox"\n .checked=',"\n @change=","\n />\n "])),t,t=>{var n=!!e.multiple&&t.target.checked;this.dispatchEvent(new CustomEvent("select-all-change",{bubbles:!0,composed:!0,detail:{selected:n}})),t.stopPropagation()})}},record:{renderer:function(e,t,n,r,i){return Object(b.e)(rt||(rt=vt(["\n <input\n type=","\n .checked=","\n @change=","\n />\n "])),t.multiple?"checkbox":"radio",!!e,e=>{var r=e.target.checked,o=t.multiple?{added:r?[n]:[],removed:r?[]:[n]}:{records:r?[n]:[]};i.dispatchEvent(new CustomEvent("select-record-change",{bubbles:!0,composed:!0,detail:o})),e.stopPropagation()})}},forGrid:!0,forList:!0},e)}},button:class{static instance(e={}){var{icon:t="edit"}=e,n="function"==typeof t?t:()=>t;return Object.assign({},{type:"gutter",gutterType:"button",width:26,resizable:!1,sortable:!1,header:{renderer:function(e){return Object(b.e)(it||(it=mt([" <mwc-icon style=",">","</mwc-icon> "])),"font-size: var(--grid-record-fontsize);margin-top:1px;",n())}},record:{renderer:function(e,t,r,i,o){return Object(b.e)(ot||(ot=mt([" <mwc-icon style=",">","</mwc-icon> "])),"font-size: var(--grid-record-fontsize);margin-top:1px;",n(r))}},forGrid:!0,forList:!0},e)}},dirty:class{static instance(e={}){return Object.assign({},{type:"gutter",name:"__dirty__",gutterType:"dirty",width:30,resizable:!1,sortable:!1,header:"",record:{renderer:function(e,t,n,r,i){return e?Object(b.e)(lt||(lt=gt([" <gutter-dirty-element value=","></gutter-dirty-element> "])),e):Object(b.e)(dt||(dt=gt([""])))}},forGrid:!0,forList:!1},e)}}};var Ot,xt=n(5);var _t,Et=(e,t,n,r,i)=>Object(xt.g)(Ot||(Ot=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\n <input\n type="checkbox"\n .checked=',"\n ?disabled=","\n @click=","\n />\n "])),!!e,!t.record.editable,o=>{i.dispatchEvent(new CustomEvent("field-change",{bubbles:!0,composed:!0,detail:{before:e,after:o.target.checked,column:t,record:n,row:r}}))});var jt=(e,t,n,r,i)=>{var o=void 0===e?"":e;return Object(xt.g)(_t||(_t=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["<span title=",">","</span>"])),o,o)},kt={datetime:{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1},time:{hour:"numeric",minute:"numeric",second:"numeric"},date:{year:"numeric",month:"numeric",day:"numeric"}};var St,Pt=(e,t,n,r,i)=>{if(!e)return"";isNaN(Number(e))||(e=Number(e));var o=t.record.options||kt[t.type],a=new Intl.DateTimeFormat(navigator.language,o);switch(t.type){case"datetime":case"date":return a.format(new Date(e));case"time":default:return e}};var Tt,At,Ct;function Rt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}class It extends b.a{static get styles(){return Object(b.b)(Tt||(Tt=Rt(["\n :host {\n display: block;\n position: relative;\n\n width: 100%;\n height: 100%;\n }\n\n #border {\n display: block;\n position: absolute;\n\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n\n border: var(--grist-input-progress-border);\n background-color: var(--grist-input-progress-background);\n }\n\n #bar {\n background-color: var(--grist-input-progress-bar-background);\n text-align: left;\n color: var(--grist-input-progress-bar-color);\n }\n "])))}static get properties(){return{value:Number,min:Number,max:Number}}render(){var{value:e,min:t,max:n}=this,r=isNaN(Number(e))?0:Math.min(100,Math.max(0,100*(Number(e)-t)/(n-t)));return Object(b.e)(At||(At=Rt(['\n <div id="border"></div>\n <div id="bar" style="width:','%">&nbsp;',"</div>\n "])),r,r)}}customElements.define("data-grist-progress-renderer",It);var Nt,Lt;function Dt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Mt,Ft;function Bt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var zt,qt,Ut,Vt,Qt,Ht,Gt,Yt,Kt,Wt,$t,Jt,Xt,Zt,en,tn,nn,rn,on={string:jt,text:jt,email:jt,tel:jt,password:(e,t,n,r,i)=>Array(String(e).length).fill("*").join(""),integer:jt,float:jt,number:jt,select:(e,t,n,r,i)=>{if(!e)return"";var o=n[t.record.rowOptionField],a=null!=o&&o.options?o.options:t.record.options;"function"==typeof a&&(a=a.call(null,e,t,n,r,i));var s=a.filter(t=>t.value==e);return s.length?s[0].display:e},boolean:Et,checkbox:Et,month:jt,week:jt,date:Pt,time:Pt,datetime:Pt,color:(e,t,n,r,i)=>(e=void 0===e?"#000":e,Object(xt.g)(St||(St=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\n <div style="display:block;background-color:','">',"</div>\n "])),e,e)),progress:(e,t,n,r,i)=>{var{min:o=0,max:a=100}=t.record.options||{};return Object(b.e)(Ct||(Ct=Rt(["\n <data-grist-progress-renderer\n .value=","\n .min=","\n .max=","\n ></data-grist-progress-renderer>\n "])),Number(e),Number(o),Number(a))},link:(e,t,n,r,i)=>{var{href:o,target:a}=t.record.options||{};return e=void 0===e?"":e,"function"==typeof o&&(o=o(e,t,n,r,i)),a?Object(xt.g)(Nt||(Nt=Dt(['\n <a style="text-decoration:none;color:inherit" href='," target=",">","</a>\n "])),o||e,a,e):Object(xt.g)(Lt||(Lt=Dt(['\n <a style="text-decoration:none;color:inherit" href=',">","</a>\n "])),o||e,e)},image:(e,t,n,r,i)=>{if(!e)return Object(xt.g)(Mt||(Mt=Bt([""])));var o;"string"==typeof e?o=e:(o=URL.createObjectURL(e),requestAnimationFrame(()=>URL.revokeObjectURL(o)));var{width:a,height:s}=t.record.options||{};return Object(xt.g)(Ft||(Ft=Bt([" <img src=",' alt="upload image" width='," height="," />"])),o,a,s)}};function an(e,t){on[e]=t}function sn(e){return"function"==typeof e?e:on[e||"text"]||jt}function cn(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function un(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var ln=Object(b.b)(zt||(zt=un(["\n :host {\n display: block;\n\n width: 100%;\n height: 100%;\n\n border: 0;\n background-color: transparent;\n }\n\n :host > * {\n display: block;\n\n width: 100%;\n height: 100%;\n\n border: 0;\n background-color: transparent;\n\n box-sizing: border-box;\n\n font-size: inherit;\n font-family: inherit;\n }\n\n :host > style {\n display: none;\n }\n\n :host > input[type='checkbox'] {\n width: initial;\n margin: auto;\n }\n input[type='checkbox'],\n input[type='radio'] {\n zoom: var(--grist-input-zoom);\n }\n *:focus {\n outline: none;\n }\n\n input[type='file'] {\n opacity: 0%;\n }\n\n @media screen and (max-width: 460px) {\n :host > * {\n border: initial;\n background-color: initial;\n }\n *:focus {\n outline: none;\n }\n }\n"])));class dn extends b.a{static get properties(){return{value:Object,column:Object,record:Object,rowIndex:Number,field:Object}}static get styles(){return ln}render(){return this.editorTemplate}get editor(){return this.shadowRoot.firstElementChild}firstUpdated(){var e,t=this;return(e=function*(){t.shadowRoot.addEventListener("change",t.onchange.bind(t)),t.shadowRoot.addEventListener("focusout",t.onfocusout.bind(t)),t.shadowRoot.addEventListener("click",t.onclick.bind(t)),t.shadowRoot.addEventListener("dblclick",t.ondblclick.bind(t));var e=t.column.record&&t.column.record.align;e&&(t.style.textAlign=e,t.style.textAlignLast=e),t.value=t._dirtyValue=t.formatForEditor(t.record[t.column.name]),t.focus(),yield t.updateComplete,t.select()},function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){cn(o,r,i,a,s,"next",e)}function s(e){cn(o,r,i,a,s,"throw",e)}a(void 0)}))})()}select(){this.editor.select&&this.editor.select()}focus(){this.editor.focus()}formatForEditor(e){return void 0===e?"":e}formatFromEditor(e){return e.target.value}onfocusout(){this._dirtyValue!==this.value&&this.dispatchEvent(new CustomEvent("field-change",{bubbles:!0,composed:!0,detail:{before:this.value,after:this._dirtyValue,column:this.column,record:this.record,row:this.row}}))}onchange(e){e.stopPropagation(),this._dirtyValue=this.formatFromEditor(e)}onclick(e){e.stopPropagation()}ondblclick(e){e.stopPropagation()}get editorTemplate(){return Object(b.e)(qt||(qt=un([""])))}}customElements.define("input-editor",dn);class pn extends dn{get editorTemplate(){return Object(b.e)(Ut||(Ut=un([' <input type="text" .value='," /> "])),this.value)}}customElements.define("text-input",pn);class fn extends dn{get editorTemplate(){return Object(b.e)(Vt||(Vt=un([' <input type="email" .value='," /> "])),this.value)}}customElements.define("email-input",fn);class hn extends dn{get editorTemplate(){return Object(b.e)(Qt||(Qt=un([' <input type="tel" .value='," /> "])),this.value)}}customElements.define("tel-input",hn);class vn extends dn{formatFromEditor(e){var t=e.target.value;switch(this.column.type){case"float":return Number.parseFloat(t);case"integer":return Number.parseInt(t);default:return Number(t)}}get editorTemplate(){var{min:e=-1/0,max:t=1/0}=this.column.record.options||{};return Object(b.e)(Ht||(Ht=un([' <input type="number" .value='," .min="," .max="," /> "])),this.value,Number(e),Number(t))}}customElements.define("number-input",vn);class mn extends dn{get editorTemplate(){return Object(b.e)(Gt||(Gt=un([' <input type="password" .value='," /> "])),this.value)}}customElements.define("password-input",mn);class gn extends dn{get editorTemplate(){return Object(b.e)(Yt||(Yt=un([' <input type="date" .value='," /> "])),this.value)}}customElements.define("date-input",gn);class bn extends dn{get editorTemplate(){return Object(b.e)(Kt||(Kt=un([' <input type="month" .value='," /> "])),this.value)}}customElements.define("month-input",bn);class yn extends dn{get editorTemplate(){return Object(b.e)(Wt||(Wt=un([' <input type="week" .value='," /> "])),this.value)}}customElements.define("week-input",yn);class wn extends dn{get editorTemplate(){return Object(b.e)($t||($t=un([' <input type="time" .value='," /> "])),this.value)}}customElements.define("time-input",wn);class On extends dn{formatForEditor(e){e||(e=Date.now());var t=6e4*new Date(e).getTimezoneOffset();return new Date(e-t).toISOString().slice(0,-1)}formatFromEditor(e){var t=e.target.value;return new Date(t).getTime()}get editorTemplate(){return Object(b.e)(Jt||(Jt=un([' <input type="datetime-local" .value='," /> "])),this.value)}}customElements.define("datetime-input",On);class xn extends dn{get editorTemplate(){return Object(b.e)(Xt||(Xt=un([' <input type="color" .value='," /> "])),this.value)}}customElements.define("color-input",xn);class _n extends dn{formatFromEditor(e){return e.target.checked}get editorTemplate(){return Object(b.e)(Zt||(Zt=un([' <input type="checkbox" .checked='," /> "])),!!this.value)}}customElements.define("checkbox-input",_n);class En extends dn{get imageInput(){var e=this.renderRoot.querySelector("input[type=file]");if(!e)throw new Error("Failed to find input");return e}get editorTemplate(){return Object(b.e)(en||(en=un(["",' <input type="file" accept="image/*" /> '])),this.value?Object(b.e)(tn||(tn=un(["<span\n >","<button\n @click=","\n >\n X\n </button></span\n >"])),this.value.name||this.value,()=>{this.imageInput.dispatchEvent(new Event("change",{bubbles:!0}))}):"")}focus(){this.value||this.imageInput.click()}onchange(e){e.stopPropagation(),this._dirtyValue=this.formatFromEditor(e),this.onfocusout()}formatFromEditor(e){return e.target.files[0]?e.target.files[0]:e.target.value}}customElements.define("image-input",En);class jn extends dn{get editorTemplate(){var e=this.record[this.column.record.rowOptionField],{options:t=[]}=e||this.column.record;return"function"==typeof t&&(t=t.call(null,this.value,this.column,this.record,this.rowIndex,this.field)),t=t.map(e=>{switch(typeof e){case"string":return{display:e,value:e};case"object":return{display:e.display,value:e.value};default:return e}}),Object(b.e)(nn||(nn=un(["\n <select>\n ","\n </select>\n "])),t.map(e=>Object(b.e)(rn||(rn=un(["\n <option ?selected="," value=",">","</option>\n "])),e.value==this.value,e.value,e.display)))}}customElements.define("select-input",jn);var kn,Sn={string:pn,text:pn,email:fn,tel:hn,password:mn,integer:vn,float:vn,number:vn,select:jn,boolean:_n,checkbox:_n,month:bn,week:yn,date:gn,time:wn,datetime:On,color:xn,progress:vn,link:pn,image:En};function Pn(e,t){Sn[e]=t}function Tn(e){return"function"==typeof e?e:function(t,n,r,i,o){var a=new(Sn[e||"text"]||pn);return a.value=t,a.record=r,a.column=n,a.row=i,a.field=o,a}}function An(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Cn={"record-view":function(e,t,n,r,i,o){document.dispatchEvent(new CustomEvent("open-popup",{detail:{template:Object(xt.g)(kn||(kn=An(["\n <record-view\n .field=","\n .columns=","\n .column=","\n .record=","\n .rowIndex=","\n @reset=","\n @cancel=","\n @ok=","\n ></record-view>\n "])),o,e,n,r,i,e=>{o.dispatchEvent(new CustomEvent("record-reset",{bubbles:!0,composed:!0,detail:r}))},e=>{o.dispatchEvent(new CustomEvent("record-reset",{bubbles:!0,composed:!0,detail:r})),popup.close()},e=>{popup.close()})},options:{backdrop:!0,size:"large",title:r.name}}))},"select-row":function(e,t,n,r,i,o){o.dispatchEvent(new CustomEvent("select-record-change",{bubbles:!0,composed:!0,detail:{added:[r]}}))},"select-row-toggle":function(e,t,n,r,i,o){o.dispatchEvent(new CustomEvent("select-record-change",{bubbles:!0,composed:!0,detail:r.__selected__?{removed:[r]}:{added:[r]}}))}};function Rn(e){return"function"==typeof e?e:Cn[e]}var In=function(){};function Nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ln(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nn(Object(n),!0).forEach((function(t){Dn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Dn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mn=e=>{var t=Ln({},e);"gutter"==e.type&&(t=(e=>{var t=wt[e.gutterName];if(t)return t.instance(e)})(e));var{name:n,header:r={},record:i={},handlers:o={},label:a}=t;if("string"==typeof r)t.header={renderer:()=>r};else{var{renderer:s}=r;t.header=Ln(Ln({},r),{},{renderer:sn(s)})}if(a)switch(typeof a){case"boolean":var c="string"==typeof r?r:n;t.label={renderer:()=>c};break;case"string":t.label={renderer:()=>a};break;default:t.label=a}else t.label=!1;var{renderer:u,editor:l,editable:d,classifier:p}=i;u||(u=sn(e.type)),d&&"function"!=typeof l&&(l=Tn(e.type)),"function"!=typeof p&&(p=In),t.record=Ln(Ln({},i),{},{classifier:p,renderer:u,editor:l});var{click:f,dblclick:h}=o;return t.handlers={click:Rn(f),dblclick:Rn(h)},t},Fn=e=>{var{appendable:t=!0,insertable:n=!1,selectable:r,groups:i=[],totals:o=[],classifier:a}=e,{click:s,dblclick:c}=e.handlers||{};return"function"!=typeof a&&(a=In),{appendable:t,insertable:n,selectable:r,groups:i,totals:o,handlers:{click:Rn(s),dblclick:Rn(c)},classifier:a}},Bn=e=>{var{fields:t=["name","description","updatedAt"]}=e;return{fields:t}};function zn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zn(Object(n),!0).forEach((function(t){Un(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Un(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vn,Qn,Hn,Gn,Yn,Kn,Wn=e=>{var{columns:t=[],rows:n={},pagination:r={},list:i={},grid:o={},recordView:a={},imex:s={}}=e;return qn(qn({},e),{},{columns:t.map(e=>Mn(e)),rows:Fn(n),pagination:r,list:Bn(i),grid:o,recordView:a,imex:s})},$n=n(54),Jn=n.n($n),Xn=n(310),Zn=n.n(Xn);function er(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?er(Object(n),!0).forEach((function(t){nr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):er(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rr(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function ir(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){rr(o,r,i,a,s,"next",e)}function s(e){rr(o,r,i,a,s,"throw",e)}a(void 0)}))}}class or{constructor(e){this.grist=e,this._fetchHandler=null,this._editHandler=null,this._pageChangeHandler=this.onPageChange.bind(this),this._limitChangeHandler=this.onLimitChange.bind(this),this._sortersChangeHandler=this.onSortersChange.bind(this),this._recordChangeHandler=this.onRecordChange.bind(this),this._attachPageHandler=this.onAttachPage.bind(this),this.grist.addEventListener("attach-page",this._attachPageHandler),this.grist.addEventListener("page-change",this._pageChangeHandler),this.grist.addEventListener("limit-change",this._limitChangeHandler),this.grist.addEventListener("sorters-change",this._sortersChangeHandler),this.grist.addEventListener("record-change",this._recordChangeHandler)}dispose(){this.grist.removeEventListener("attach-page",this._attachPageHandler),this.grist.removeEventListener("page-change",this._pageChangeHandler),this.grist.removeEventListener("limit-change",this._limitChangeHandler),this.grist.removeEventListener("sorters-change",this._sortersChangeHandler),this.grist.removeEventListener("record-change",this._recordChangeHandler)}onAttachPage(){this.attach()}onPageChange(e){var t=e.detail;this.fetch({page:t})}onLimitChange(e){var t=e.detail;this.fetch({limit:t})}onSortersChange(e){this.sorters=e.detail,this.fetch()}checkDirties(){var{records:e}=this.grist.dirtyData,{columns:t}=this.grist._config;for(var n of e||[]){var r=n.__origin__||{},i=n.__dirtyfields__=t.filter(e=>"gutter"!==e.type&&!Jn()(r[e.name],n[e.name])).reduce((e,t)=>{var i=t.name;return e[i]={before:r[i],after:n[i]},e},{});"M"==n.__dirty__&&Zn()(i)&&delete n.__dirty__}this.grist.refresh()}onRecordChange(e){this.checkDirties(),this.editHandler.call()}get fetchOptions(){return this._fetchOptions}set fetchOptions(e){this._fetchOptions=e,this.fetch()}get fetchHandler(){var e=this;return this._fetchHandlerWrap||(this._fetchHandlerWrap=function(){var t=ir((function*(...t){try{return e.grist.showSpinner(),yield(e._fetchHandler||In)(...t)}finally{e.grist.hideSpinner()}}));return function(){return t.apply(this,arguments)}}()),this._fetchHandlerWrap}set fetchHandler(e){this._fetchHandler=e,delete this._fetchHandlerWrap}get editHandler(){return this._editHandler||In}set editHandler(e){this._editHandler=e}get sorters(){return this._sorters}set sorters(e){this._sorters=e}attach(e=!1){var t=this;return ir((function*(){var{page:n=0,limit:r=20}=t;return e?(t.records=null,n=1):(t.records=t.grist._data?t.grist._data.records:null,n+=1),t._update(tr({limit:r,page:n},yield t.fetchHandler.call(null,{page:n,limit:r,sorters:t.sorters,options:t.fetchOptions})),e)}))()}fetch({page:e=this.page,limit:t=this.limit,sorters:n=this.sorters}={}){var r=this;return ir((function*(){return r.records=null,r.sorters=n,r._update(tr({limit:t,page:e},yield r.fetchHandler.call(null,{page:e,limit:t,sorters:n,options:r.fetchOptions})))}))()}_update({page:e,limit:t,total:n,records:r}){var i=this;return ir((function*(){var o=function(e,t){return Math.max(1,Math.ceil(t/e))}(t,n);if(o<e)return yield i.fetch({page:o,limit:t});if(i.page=i.page||e,i.limit=i.limit||t,r){if(i.records){if(!(i.page<e))return;i.records=[...i.records,...r]}else i.records=r;i.limit=t,i.total=n,i.page=e,i.grist.data={page:i.page,limit:i.limit,total:i.total,records:i.records}}}))()}}function ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ar(Object(n),!0).forEach((function(t){cr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ar(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ur(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function lr(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){ur(o,r,i,a,s,"next",e)}function s(e){ur(o,r,i,a,s,"throw",e)}a(void 0)}))}}function dr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var pr,fr,hr,vr,mr,gr,br,yr,wr,Or,xr,_r,Er,jr,kr,Sr,Pr,Tr,Ar={page:1,limit:20,total:1,records:[]};class Cr extends b.a{static get styles(){return[y.b,Object(b.b)(Vn||(Vn=dr(["\n :host {\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n background-color: var(--grist-background-color);\n padding: var(--grist-padding);\n min-height: 120px;\n\n overflow: hidden;\n\n /* for pulltorefresh controller */\n position: relative;\n\n --mdc-icon-size: var(--grid-record-wide-fontsize);\n }\n\n data-grid,\n data-list {\n flex: 1;\n }\n\n oops-spinner {\n display: none;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n }\n\n oops-spinner[show] {\n display: block;\n }\n\n oops-note {\n display: block;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n }\n\n slot[name='headroom'] {\n display: block;\n\n position: absolute;\n top: 0;\n left: 0;\n\n width: 100%;\n box-sizing: border-box;\n }\n "])))]}static get properties(){return{mode:String,config:Object,data:Object,selectedRecords:Array,fetchHandler:Object,fetchOptions:Object,editHandler:Object,_data:Object,_config:Object,_showSpinner:Boolean}}connectedCallback(){super.connectedCallback(),this.dataProvider=new or(this)}disconnectedCallback(){super.disconnectedCallback(),this.dataProvider.dispose()}firstUpdated(){var e=this;return lr((function*(){e.fetchHandler&&Object(ht.a)({container:e.shadowRoot,scrollable:e.grist,refresh:()=>e.fetch(!0)});var t=e.renderRoot.querySelector("slot[name=headroom]"),n=e.renderRoot.querySelector("#grist");yield e.requestUpdate();var r=parseFloat(getComputedStyle(n,null).getPropertyValue("padding-top"));n.style.paddingTop=t.clientHeight+r+"px",new ft.a(t,{scroller:n}).init()}))()}render(){var e=!(this._showSpinner||this._data&&this._data.records&&0!=this._data.records.length);return Object(b.e)(Qn||(Qn=dr(["\n ","\n ","\n <oops-spinner ?show=",'></oops-spinner>\n\n <slot name="headroom"> </slot>\n '])),e?Object(b.e)(Hn||(Hn=dr([' <oops-note icon="list" title="EMPTY LIST" description="There are no records to be shown"></oops-note> ']))):Object(b.e)(Gn||(Gn=dr([""]))),"GRID"==this.mode?Object(b.e)(Yn||(Yn=dr([' <data-grid id="grist" .config='," .data=","> </data-grid> "])),this._config,this._data):Object(b.e)(Kn||(Kn=dr([' <data-list id="grist" .config='," .data=","> </data-list> "])),this._config,this._data),this._showSpinner)}fetch(e=!0){var t=this;return lr((function*(){if(t._config){if(e&&(t.grist.scrollTop=0),t.dataProvider){var{limit:n,page:r,infinite:i}=t._config.pagination,{limit:o=n||Ar.limit,page:a=r||Ar.page}=t.dataProvider,{sorters:s}=t._config;i||"GRID"!==t.mode?yield t.dataProvider.attach(e):yield t.dataProvider.fetch({limit:o,page:a,sorters:s})}}else console.warn("grist is not configured yet.")}))()}updated(e){if(e.has("config")&&(this._config=Wn(sr({},this.config)),this.dataProvider.sorters=this._config.sorters,this.fetch()),e.has("fetchHandler")&&(this.dataProvider.fetchHandler=this.fetchHandler),e.has("editHandler")&&(this.dataProvider.editHandler=this.editHandler),e.has("fetchOptions")&&(this.dataProvider.fetchOptions=this.fetchOptions),e.has("data")&&this.reset(),e.has("selectedRecords")){var{records:t}=this.data||[],n=this.selectedRecords||[],r=this._data.records;n.forEach(e=>{var n=t.indexOf(e),i=r[n];i&&(i.__selected__=!0)}),this.refresh()}}get grist(){return this.shadowRoot.querySelector("#grist")}get dirtyData(){return this.grist.data||{}}get dirtyRecords(){var{records:e=[]}=this.dirtyData;return e.filter(e=>e.__dirty__)}exportPatchList({flagName:e="patchFlag",addedFlag:t="+",deletedFlag:n="-",modifiedFlag:r="M",idField:i="id"}){var o=this.dirtyRecords;return o&&0!=o.length?o.map(o=>{var a=o.__dirty__,s={[e]:"M"==a?r:"+"==a?t:n};for(var c in i in o&&o[i]&&(s[i]=o[i]),o.__dirtyfields__)s[c]=o[c];return s}):[]}exportRecords({ifSelectedOnly:e=!0,includeHiddenField:t=!0}={}){var n=e?this.selected:this.data.records;!e||n&&0!=n.length||(n=this.data.records);var r=this._config.columns.filter(e=>"gutter"!==e.type);t||(r=r.filter(e=>!e.hidden));var i=r.map(e=>e.name);return n.map(e=>i.reduce((t,n)=>(t[n]=e[n],t),{}))}get selected(){var{records:e=[]}=this.grist.data||{};return e.filter(e=>e.__selected__)}showSpinner(){this._showSpinner=!0}hideSpinner(){this._showSpinner=!1}focus(){super.focus(),this.grist.focus()}commit(){var{page:e,total:t,limit:n,records:r}=this.grist.data;this.data={page:e,total:t,limit:n,records:r.map(e=>{var t=sr({},e);return delete t.__seq__,delete t.__dirty__,delete t.__selected__,delete t.__changes__,delete t.__dirtyfields__,delete t.__origin__,t})}}refresh(){this._data=sr({},this._data)}reset(){var{limit:e=Ar.limit,page:t=Ar.page,total:n=Ar.total,records:r=[]}=this.data;r=r.map((n,r)=>sr(sr({},n),{},{__seq__:"GRID"==this.mode?(t-1)*e+r+1:r+1,__origin__:n})),this._data={limit:e,page:t,total:n,records:r}}}function Rr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("data-grist",Cr);class Ir extends b.a{static get properties(){return{config:Object,columns:Array,data:Object,_sorters:Array}}static get styles(){return[Object(b.b)(pr||(pr=Rr(["\n :host {\n display: grid;\n grid-template-columns: var(--report-template-columns);\n\n overflow: hidden;\n }\n\n div {\n display: flex;\n\n white-space: nowrap;\n overflow: hidden;\n background-color: var(--report-header-background-color, gray);\n border: 1px solid var(--report-header-border-color);\n border-width: 1px 1px 1px 0;\n padding: var(--report-header-padding);\n\n text-overflow: ellipsis;\n text-align: center;\n font-size: var(--report-header-fontsize, 1em);\n color: var(--report-header-color);\n }\n\n span {\n white-space: nowrap;\n overflow: hidden;\n\n text-align: center;\n }\n\n span[title] {\n flex: 1;\n text-overflow: ellipsis;\n font: var(--report-header-font);\n color: var(--report-header-color);\n text-transform: capitalize;\n }\n\n span[sorter] {\n padding: 0;\n border: 0;\n font-size: 10px;\n }\n\n span[splitter] {\n cursor: col-resize;\n }\n\n @media print {\n :host {\n grid-template-columns: var(--report-template-print-columns);\n }\n }\n "])))]}_onWheelEvent(e){var t=Math.max(-1,Math.min(1,e.deltaY||0));this.scrollLeft=Math.max(0,this.scrollLeft-40*t),w.m||e.preventDefault()}firstUpdated(){this.addEventListener("wheel",this._onWheelEvent.bind(this),!!w.m&&{passive:!0})}updated(e){e.has("config")&&(this._sorters=this.config.sorters||[])}render(){var e=this.columns||[];return Object(b.e)(fr||(fr=Rr(["\n ","\n\n <div></div>\n "])),e.map((e,t)=>e.hidden?Object(b.e)(yr||(yr=Rr([""]))):Object(b.e)(hr||(hr=Rr(["\n <div @dragstart=",">\n <span title @click=",">"," </span>\n\n ","\n ","\n </div>\n "])),e=>this._dragStart(e,t),t=>this._changeSort(e),this._renderHeader(e),e.sortable?Object(b.e)(vr||(vr=Rr(["\n <span sorter @click=","> "," </span>\n "])),t=>this._changeSort(e),this._renderSortHeader(e)):Object(b.e)(mr||(mr=Rr([""]))),!1!==e.resizable?Object(b.e)(gr||(gr=Rr([' <span splitter draggable="true">&nbsp;</span> ']))):Object(b.e)(br||(br=Rr([""]))))))}_renderHeader(e){var{renderer:t}=e.header,n=t.call(this,e);return Object(b.e)(wr||(wr=Rr([" "," "])),n)}_renderSortHeader(e){if(e.hidden)return Object(b.e)(Or||(Or=Rr([""])));var t=this._sorters||[],n=t.find(t=>"gutter"!==e.type&&e.name==t.name);if(!n)return Object(b.e)(xr||(xr=Rr([""])));if(t.length>1){var r=t.indexOf(n)+1;return n.desc?Object(b.e)(_r||(_r=Rr([" &#9660;<sub>","</sub> "])),r):Object(b.e)(Er||(Er=Rr([" &#9650;<sub>","</sub> "])),r)}return n.desc?Object(b.e)(jr||(jr=Rr([" &#9660; "]))):Object(b.e)(kr||(kr=Rr([" &#9650; "])))}_changeSort(e){if(e.sortable){var t=[...this._sorters||[]],n=t.findIndex(t=>t.name==e.name);if(-1!==n){var r=t[n];r.desc?t.splice(n,1):r.desc=!0}else{var i={name:e.name};t.push(i)}this._sorters=t,this.dispatchEvent(new CustomEvent("sorters-change",{bubbles:!0,composed:!0,detail:this._sorters}))}}_notifyWidthChange(e,t){this.throttledNotifier||(this.throttledNotifier=x()((function(e,t){e=this.dispatchEvent(new CustomEvent("column-width-change",{bubbles:!0,composed:!0,detail:{idx:e,width:t}}))}),100)),this.throttledNotifier(e,t)}_dragStart(e,t){var n=e.currentTarget,r=e.offsetX,i=(e=>{var n=this.columns[t],i=Math.max(0,Number(n.width)+e.offsetX-r);0!=i&&this._notifyWidthChange(t,i)}).bind(this),o=(e=>{n.removeEventListener("drag",i),n.removeEventListener("dragend",o),i(e)}).bind(this);n.addEventListener("drag",i),n.addEventListener("dragend",o)}}function Nr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("data-report-header",Ir);var Lr;class Dr extends b.a{static get properties(){return{align:{attribute:!0},record:Object,column:Object,rowIndex:Number,value:Object}}static get styles(){return[Object(b.b)(Sr||(Sr=Nr(["\n :host {\n display: flex;\n align-items: center;\n justify-content: var(--data-report-field-justify-content, flex-start);\n position: relative;\n\n white-space: nowrap;\n overflow: hidden;\n background-color: var(--report-record-background-color);\n padding: var(--report-record-field-padding);\n border: 1px solid transparent;\n border-bottom: var(--report-record-field-border-bottom);\n\n font-size: var(--report-record-wide-fontsize);\n text-overflow: ellipsis;\n\n min-height: 19px;\n }\n\n :host([gutter]) * {\n cursor: default;\n }\n\n * {\n flex: 1;\n margin: 0;\n text-align: var(--data-report-field-text-align);\n }\n\n *[center] {\n flex: none;\n margin: 0 auto;\n }\n "])))]}render(){if(!this.column)return Object(b.e)(Pr||(Pr=Nr([""])));var{value:e,column:t,record:n,rowIndex:r}=this,{renderer:i}=t.record;return Object(b.e)(Tr||(Tr=Nr(["\n ","\n "])),i(e,t,n,r,this))}updated(e){if(e.has("column")){var t=this.column.record&&this.column.record.align||"left";if("left"!=t){var n="center";switch(t){case"right":n="flex-end"}this.style.setProperty("--data-report-field-justify-content",n),this.style.setProperty("--data-report-field-text-align",t)}}}}customElements.define("data-report-field",Dr);var Mr=Object(b.b)(Lr||(Lr=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n :host {\n display: grid;\n grid-template-columns: var(--report-template-columns);\n grid-auto-rows: var(--report-record-height, min-content);\n\n overflow: auto;\n outline: none;\n }\n\n :host > [focused] {\n border: var(--report-record-focused-border);\n }\n\n :host > [focused-row] {\n background-color: var(--report-record-focused-background-color);\n }\n\n :host > [totalized] {\n background-color: var(--report-totalized-background-color);\n border-top: var(--report-totalized-border);\n border-bottom: var(--report-totalized-border);\n color: var(--report-totalized-color);\n\n font-weight: 700;\n }\n\n :host > [grouped] {\n background-color: var(--report-grouped-background-color);\n border-right: var(--report-grouped-border);\n border-bottom: var(--report-grouped-border);\n color: var(--report-grouped-color);\n\n font-weight: 600;\n }\n\n @media print {\n :host {\n -webkit-print-color-adjust: exact;\n grid-template-columns: var(--report-template-print-columns);\n }\n :host > [focused] {\n border-width: 0 1px 1px 0;\n border-right: var(--report-grouped-border);\n border-bottom: var(--report-grouped-border);\n }\n\n :host > [focused-row] {\n background-color: initial;\n color: #000;\n }\n :host > [grouped] {\n background-color: var(--report-grouped-background-color);\n }\n }\n"])));function Fr(e){e.stopPropagation();var t=e.target,{column:n,record:r,rowIndex:i,columnIndex:o}=t;if(n){isNaN(i)||isNaN(o)?console.error("should not be here."):this.focused&&i===this.focused.row&&o===this.focused.column?this.requestUpdate():this.focused={row:i,column:o};var{click:a}=n.handlers;a&&a(this.columns,this.data,n,r,i,t);var{click:s}=this.config.rows.handlers;s&&s(this.columns,this.data,n,r,i,t)}}function Br(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function zr(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Br(o,r,i,a,s,"next",e)}function s(e){Br(o,r,i,a,s,"throw",e)}a(void 0)}))}}function qr(e){return Ur.apply(this,arguments)}function Ur(){return(Ur=zr((function*(e){e.stopPropagation();var t=e.target,{record:n,rowIndex:r,column:i}=t;if(i){var{dblclick:o}=i.handlers;o&&o(this.columns,this.data,i,n,r,t);var{dblclick:a}=this.config.rows.handlers;a&&a(this.columns,this.data,i,n,r,t)}}))).apply(this,arguments)}function Vr(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Qr(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Vr(o,r,i,a,s,"next",e)}function s(e){Vr(o,r,i,a,s,"throw",e)}a(void 0)}))}}var Hr,Gr,Yr,Kr,Wr,$r,Jr,Xr,Zr,ei,ti,ni,ri,ii,oi,ai,si;function ci(e){return ui.apply(this,arguments)}function ui(){return(ui=Qr((function*(e){var t=e.keyCode,{row:n=0,column:r=0}=this.focused||{},{records:i=[]}=this.data||{},o=this.config.rows.appendable?i.length:i.length-1,a=(this.columns||[]).filter(e=>!e.hidden).length-1;switch(t){case 38:n=Math.max(0,n-1);break;case 40:n=Math.min(o,n+1);break;case 13:a>r?r++:o>n&&n++;break;case 37:case 8:r=Math.max(0,r-1);break;case 39:case 9:r=Math.min(a,r+1);break;case 33:n=Math.max(0,n-10);break;case 34:n=Math.min(o,n+10);break;case 27:default:return}this.focused&&this.focused.row===n&&this.focused.column===r||(this.focused={row:n,column:r}),e.preventDefault()}))).apply(this,arguments)}function li(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}class di extends b.a{static get properties(){return{config:Object,columns:Array,data:Object,focused:Object}}static get styles(){return[Mr]}render(){var{rows:e}=this.config,{groups:t}=e,n=e=>this.columns.filter(e=>!e.hidden).findIndex(t=>t.name==e),r=e=>this.columns.find(t=>t.name==e),{row:i=0,column:o=0}=this.focused||{},a=(this.columns||[]).filter(e=>!e.hidden&&-1==t.map(e=>e.column).indexOf(e.name)),s=this.data||{},{records:c=[]}=s;return Object(b.e)(Hr||(Hr=li(["\n ","\n "])),c.map((e,c)=>{var u=c===i,l=e["*"],d=l&&("*"==l.groupName?r(t[0].column):r(l.groupName));return Object(b.e)(Gr||(Gr=li(["\n ","\n ","\n "])),!l||l&&l.value?Object(b.e)(Yr||(Yr=li(["\n ","\n <data-report-field\n .data=","\n .rowIndex=","\n .record=","\n ?focused-row=","\n ?totalized=","\n ></data-report-field>\n "])),a.map(t=>{var r=n(t.name);return Object(b.e)(Kr||(Kr=li(["\n <data-report-field\n .data=","\n .rowIndex=","\n .columnIndex=","\n .column=","\n .record=","\n ?gutter=","\n ?focused-row=","\n ?focused=","\n ?totalized=","\n .value=","\n ></data-report-field>\n "])),s,c,r,t,e,"gutter"==t.type,u,u&&r===o,l,e[t.name])}),s,c,e,u,l):Object(b.e)(Wr||(Wr=li([""]))),l?Object(b.e)(Jr||(Jr=li(["\n ","\n ","\n "])),"*"==l.groupName?Object(b.e)(Xr||(Xr=li([""]))):Object(b.e)(Zr||(Zr=li(["\n <data-report-field\n .data=","\n .rowIndex=","\n .columnIndex=","\n .column=","\n .record=","\n ?focused-row=","\n ?focused=","\n ?grouped=","\n .value=",'\n .style="grid-area: '," / "," / span ",' / span 1;"\n ></data-report-field>\n '])),s,l.row-1,l.column-1,d,e,l.row-1<=i&&l.row-1+l.rowspan>i,l.row-1===i&&l.column-1===o,!0,e[l.groupName],l.row,l.column,l.rowspan),l.value?Object(b.e)(ti||(ti=li(["\n <data-report-field\n .data=","\n .rowIndex=","\n .columnIndex=","\n .column=","\n .record=","\n ?focused-row=","\n ?focused=","\n ?grouped=","\n .value=",'\n .style="grid-area: '," / "," / span 1 / span ",';"\n ></data-report-field>\n '])),s,c,l.column-1,l.titleColumn,e,u,c===i&&l.column-1===o,!0,l.value,l.row+l.rowspan,l.column,l.colspan):Object(b.e)(ei||(ei=li([""])))):Object(b.e)($r||($r=li([""]))))}))}firstUpdated(){this.setAttribute("tabindex","-1"),this.addEventListener("focusout",e=>{this._focusedListener&&(window.removeEventListener("keydown",this._focusedListener),delete this._focusedListener)}),this.addEventListener("focusin",e=>{this._focusedListener||(this._focusedListener=ci.bind(this),window.addEventListener("keydown",this._focusedListener))}),this.shadowRoot.addEventListener("click",Fr.bind(this)),this.shadowRoot.addEventListener("dblclick",qr.bind(this))}updated(e){if(e.has("focused")){var t=this.shadowRoot.querySelector("[focused]");if(!t)return;var{top:n,left:r}=function(e,t){var{top:n,left:r,right:i,bottom:o}=t.getBoundingClientRect(),{top:a,left:s,right:c,bottom:u}=e.getBoundingClientRect(),{scrollLeft:l,scrollTop:d}=e,p=e.clientWidth-e.offsetWidth,f=e.clientHeight-e.offsetHeight;return{left:r<s?l-(s-r):i>c?l-(c-i)-p:void 0,top:n<a?d-(a-n):o>u?d-(u-o)-f:void 0}}(this,t);void 0!==n&&(this.scrollTop=n),void 0!==r&&(this.scrollLeft=r)}}focus(){super.focus(),this.focused&&void 0!==this.focused.row||(this.focused={row:0,column:0})}}function pi(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("data-report-body",di);class fi extends b.a{static get properties(){return{config:Object,data:Object}}static get styles(){return[y.c,Object(b.b)(ni||(ni=pi(["\n :host {\n display: flex;\n flex-direction: column;\n\n overflow: hidden;\n\n border: 1px solid var(--report-header-border-color);\n border-radius: var(--report-component-border-radius);\n }\n\n data-report-body {\n flex: 1;\n }\n\n @media print {\n :host {\n zoom: 80%;\n }\n }\n "])))]}get body(){return this.shadowRoot.querySelector("data-report-body")}get header(){return this.shadowRoot.querySelector("data-report-header")}firstUpdated(){this.header.addEventListener("scroll",e=>{this.body.scrollLeft!==this.header.scrollLeft&&(this.body.scrollLeft=this.header.scrollLeft)}),this.body.addEventListener("scroll",e=>{this.body.scrollLeft!==this.header.scrollLeft&&(this.header.scrollLeft=this.body.scrollLeft)})}updated(e){(e.has("config")||e.has("data"))&&this.calculateWidths(this.config&&this.config.columns)}calculateWidths(e){this._widths=(e||[]).filter(e=>!e.hidden).map(e=>{switch(typeof e.width){case"number":return e.width+"px";case"string":return e.width;case"function":return e.width.call(this,e);default:return"auto"}}).concat(["auto"]).join(" "),this.style.setProperty("--report-template-columns",this._widths),this.style.setProperty("--report-template-print-columns",this._widths.replace(/px/gi,"fr"))}render(){var{columns:e=[]}=this.config||{},t=this.data;return Object(b.e)(ri||(ri=pi(["\n <data-report-header\n .config=","\n .columns=","\n .data=","\n @column-width-change=","\n ></data-report-header>\n\n <data-report-body .config="," .columns="," .data=","></data-report-body>\n "])),this.config,e,t,t=>{var{idx:n,width:r}=t.detail;e[n].width=r,this.calculateWidths(e)},this.config,e,t)}focus(){super.focus();var e=this.shadowRoot.querySelector("data-report-body");e&&e.focus()}}function hi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hi(Object(n),!0).forEach((function(t){mi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gi(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function bi(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("data-report-component",fi);var yi={page:1,limit:20,total:1,records:[]};class wi extends b.a{static get styles(){return[Object(b.b)(ii||(ii=bi(["\n :host {\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n background-color: var(--report-background-color);\n padding: var(--report-padding);\n min-height: 120px;\n\n overflow: hidden;\n\n /* for pulltorefresh controller */\n position: relative;\n }\n\n data-report-component {\n flex: 1;\n }\n\n oops-spinner {\n display: none;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n }\n\n oops-spinner[show] {\n display: block;\n }\n\n oops-note {\n display: block;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n }\n "])))]}static get properties(){return{config:Object,data:Object,fetchHandler:Object,fetchOptions:Object,_data:Object,_config:Object,_showSpinner:Boolean}}connectedCallback(){super.connectedCallback(),this.dataProvider=new or(this)}disconnectedCallback(){super.disconnectedCallback(),this.dataProvider.dispose()}firstUpdated(){this.fetchHandler&&Object(ht.a)({container:this.shadowRoot,scrollable:this.report,refresh:()=>this.fetch(!0)})}render(){var e=!(this._showSpinner||this._data&&this._data.records&&0!=this._data.records.length);return Object(b.e)(oi||(oi=bi(["\n ",'\n\n <data-report-component id="report" .config='," .data=","> </data-report-component>\n\n <oops-spinner ?show=","></oops-spinner>\n "])),e?Object(b.e)(ai||(ai=bi([' <oops-note icon="list" title="EMPTY LIST" description="There are no records to be shown"></oops-note> ']))):Object(b.e)(si||(si=bi([""]))),this._config,this._data,this._showSpinner)}fetch(e=!0){var t,n=this;return(t=function*(){n._config?(e&&(n.report.scrollTop=0),n.dataProvider&&(yield n.dataProvider.attach(e))):console.warn("report is not configured yet.")},function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(e){gi(o,r,i,a,s,"next",e)}function s(e){gi(o,r,i,a,s,"throw",e)}a(void 0)}))})()}updated(e){e.has("config")&&(this._config=Wn(vi({},this.config)),this.dataProvider.sorters=this._config.sorters,this.fetch()),e.has("fetchHandler")&&(this.dataProvider.fetchHandler=this.fetchHandler),e.has("fetchOptions")&&(this.dataProvider.fetchOptions=this.fetchOptions),e.has("data")&&this.reset()}get report(){return this.shadowRoot.querySelector("#report")}showSpinner(){this._showSpinner=!0}hideSpinner(){this._showSpinner=!1}focus(){super.focus(),this.report.focus()}refresh(){this.requestUpdate()}reset(){var{limit:e=yi.limit,page:t=yi.page,total:n=yi.total,records:r=[]}=this.data;this._data={limit:e,page:t,total:n,records:this.sortByGroups(r).map((n,r)=>vi(vi({},n),{},{__seq__:(t-1)*e+r+1}))}}sortByGroups(e){var t,{groups:n,totals:r}=this._config.rows,{columns:i}=this._config,o=e=>i.filter(e=>!e.hidden).findIndex(t=>t.name==e),a=[{column:"*",title:"grand total",align:"right"},...n];a=a.map(e=>vi(vi({},e),{},{titleColumn:Mn({record:{align:e.align||"right"}})}));var s,c=[],u=e[0]?function(){var t=e[0],i=r.reduce((e,n)=>(e[n]=t[n],e),{}),s={};return a.map((e,r)=>(s[e.column]=t[e.column],vi(vi(vi({},i),s),{},{[e.column]:t[e.column],"*":{titleColumn:e.titleColumn,value:e.title,groupName:e.column,row:1,rowspan:1,column:"*"!==e.column?o(e.column)+1:o(n[0].column)+1,colspan:"*"!==e.column?a.length-r:a.length-1}})))}():[{"*":{titleColumn:a[0].titleColumn,value:"grand total",groupName:"*",row:1,rowspan:1,column:1,colspan:0}}],l=0,d=function(e){var i=n.reduce((t,n)=>(t[n.column]=e[n.column],t),{}),s=!0,d=[],p={};if(l++,t){var f=function(n){var c=a[n],f=u[n];if(p[c.column]=e[c.column],"*"==c.column||s&&i[c.column]===t[c.column]){for(var h of r)f[h]+=e[h];return f["*"].rowspan++,"continue"}r.forEach(e=>{f[e]=Math.round(100*f[e])/100}),s=!1,d.push({idx:n,record:r.reduce((t,n)=>(t[n]=e[n],t),vi(vi({},p),{},{[c.column]:e[c.column],"*":{titleColumn:c.titleColumn,groupName:c.column,value:c.title,row:l,rowspan:1,column:o(c.column)+1,colspan:u[n]["*"].colspan}}))})};for(var h in a)f(h);d.reverse().map(({record:e,idx:t})=>(c.push(u[t]),u[t]=null,e["*"].value&&(u.forEach(e=>e&&e["*"].rowspan++),l++),{record:e,idx:t})).forEach(({record:e,idx:t})=>{e["*"].row=l,u[t]=e})}c.push(e),t=i};for(var p of e)d(p);for(;s=u.pop();)r.forEach(e=>{s[e]=Math.round(100*s[e])/100}),c.push(s),s["*"].value&&u.forEach(e=>e["*"].rowspan++);return c}}customElements.define("data-report",wi)},,,,,function(e,t,n){"use strict";var r,i,o,a,s=n(65),c=n(8),u=(n(283),n(48)),l=n(0),d=n(35);function p(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function f(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){p(o,r,i,a,s,"next",e)}function s(e){p(o,r,i,a,s,"throw",e)}a(void 0)}))}}function h(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}class v extends(Object(c.b)(c.a)(l.a)){static get styles(){return[Object(l.b)(r||(r=h(["\n * {\n box-sizing: border-box;\n }\n *:focus {\n outline: none;\n }\n input {\n border: var(--change-password-field-border);\n border-radius: var(--change-password-field-border-radius);\n margin: var(--change-password-field-margin);\n padding: var(--change-password-field-padding);\n\n font: var(--change-password-field-font);\n width: var(--change-password-field-width);\n }\n input:focus {\n border: 1px solid var(--focus-background-color);\n }\n\n ::placeholder {\n font-size: 0.8rem;\n text-transform: capitalize;\n }\n\n mwc-button {\n margin: var(--margin-narrow) 0 var(--margin-default) 0;\n }\n\n button {\n background-color: var(--secondary-color, #394e64);\n margin: 2px 2px 10px 2px;\n height: var(--button-height, 28px);\n color: var(--button-color, #fff);\n font: var(--button-font);\n border-radius: var(--button-radius, 5px);\n border: var(--button-border, 1px solid transparent);\n line-height: 1.5;\n }\n button:hover,\n button:active {\n background-color: var(--button-active-background-color, #22a6a7);\n border: var(--button-active-border);\n }\n "])))]}render(){return Object(l.e)(i||(i=h(['\n <form>\n <div class="field">\n <input type="password" name="current_pass" placeholder=',' required />\n </div>\n <div class="field">\n <input type="password" name="new_pass" placeholder=',' required />\n </div>\n <div class="field">\n <input type="password" name="confirm_pass" placeholder=',' required />\n </div>\n\n <mwc-button raised label="','" @click=',"></mwc-button>\n </form>\n "])),c.a.t("text.current password"),c.a.t("text.new password"),c.a.t("text.confirm password"),c.a.t("text.change password"),this.submit.bind(this))}get form(){return this.renderRoot.querySelector("form")}_encodeSha256(e){return f((function*(){var t=(new TextEncoder).encode(e),n=yield crypto.subtle.digest("SHA-256",t);return hexString(n)}))()}submit(){var e=this;return f((function*(){var t=new FormData(e.form),n={};for(var[r,i]of t.entries()){if(!i)return e.showToast(c.a.t("error.value is empty",{value:r}));n[r]=i}if(n.new_pass!==n.confirm_pass)return e.showToast(c.a.t("error.new_password_and_confirm_password_do_not_match"));s.a.changePassword(n),e.form.reset()}))()}showToast(e){document.dispatchEvent(new CustomEvent("notify",{detail:{message:e}}))}}function m(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function g(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("change-password",v);class b extends(Object(c.b)(c.a)(l.a)){static get styles(){return[Object(l.b)(o||(o=g(["\n :host {\n display: flex;\n flex-direction: column;\n background-color: var(--popup-content-background-color);\n padding: var(--popup-content-padding);\n }\n\n * {\n box-sizing: border-box;\n }\n *:focus {\n outline: none;\n }\n\n label {\n font: bold 14px var(--theme-font);\n color: var(--primary-color);\n }\n\n input {\n border: var(--change-password-field-border);\n border-radius: var(--change-password-field-border-radius);\n padding: var(--change-password-field-padding);\n\n font: var(--change-password-field-font);\n width: var(--change-password-field-width);\n }\n input:focus {\n border: 1px solid var(--focus-background-color);\n }\n\n div.field {\n padding-bottom: 10px;\n }\n\n ::placeholder {\n font-size: 0.8rem;\n text-transform: capitalize;\n }\n\n button {\n background-color: var(--status-danger-color, red);\n margin: 2px 2px 10px 2px;\n height: var(--button-height, 28px);\n color: var(--button-color, #fff);\n font: var(--button-font);\n border-radius: var(--button-radius, 5px);\n border: var(--button-border, 1px solid transparent);\n line-height: 1.5;\n }\n button:hover,\n button:active {\n background-color: var(--button-active-background-color, #22a6a7);\n border: var(--button-active-border);\n }\n "])))]}render(){return Object(l.e)(a||(a=g(['\n <h1><i18n-msg msgid="label.delete account"></i18n-msg></h1>\n <span><i18n-msg msgid="text.delete account warning message"></i18n-msg></span>\n <form @submit=','>\n <div class="field">\n <label for="email"><i18n-msg msgid="label.email"></i18n-msg></label>\n <input id="email" type="email" name="email" required />\n <label for="password"><i18n-msg msgid="label.password"></i18n-msg></label>\n <input id="password" type="password" name="password" required />\n </div>\n\n <button class="ui button" type="submit"><i18n-msg msgid="label.delete account"></i18n-msg></button>\n </form>\n '])),e=>this.submit(e))}submit(e){return(t=function*(){e.preventDefault();var t=e.target,n={};new FormData(t).forEach((e,t)=>{n[t]=e});try{var r=yield s.a.deleteUser(n);Object(u.h)({level:"info",message:r}),s.a.signout()}catch(e){t.reset(),Object(u.h)({level:"error",message:e.message})}},function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(e){m(o,r,i,a,s,"next",e)}function s(e){m(o,r,i,a,s,"throw",e)}a(void 0)}))})();var t}}customElements.define("delete-user-popup",b);n(329);var y,w,O,x,_,E,j,k,S=n(29),P=n(284);function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function I(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}class N extends l.a{static get properties(){return{histories:Array,limit:Number}}static get styles(){return Object(l.b)(y||(y=I(["\n :host {\n display: flex;\n flex-direction: column;\n background-color: var(--main-section-background-color);\n padding: var(--padding-wide);\n overflow: auto;\n }\n data-grist {\n flex: 1;\n }\n "])))}render(){var e;if(null===(e=this.histories)||void 0===e||!e.length)return Object(l.e)(w||(w=I([""])));var t={rows:{appendable:!1},pagination:{infinite:!0},columns:[{type:"gutter",gutterName:"sequence"},{type:"object",name:"accessDomain",header:c.a.t("field.domain"),record:{editable:!1},width:200},{type:"datetime",name:"accessedAt",header:c.a.t("field.accessed_at"),record:{editable:!1},width:200},{type:"string",name:"accessorIp",header:c.a.t("field.ip_address"),record:{editable:!1},width:200}]};return Object(l.e)(O||(O=I(["\n <data-grist\n .mode=","\n .config=",'\n .data="','"\n ></data-grist>\n '])),Object(S.j)()?"LIST":"GRID",t,{records:this.histories})}firstUpdated(){this.fetchLoginHistories()}fetchLoginHistories(){var e,t=this;return(e=function*(){try{var e,n=yield d.client.query({query:Object(P.a)(x||(x=I(["\n query myLoginHistories($limit: Float!) {\n myLoginHistories(limit: $limit) {\n accessDomain {\n name\n }\n accessorIp\n accessedAt\n }\n }\n "]))),variables:{limit:t.limit||10}});if(null!==(e=n.errors)&&void 0!==e&&e.length)return;t.histories=n.data.myLoginHistories.map(e=>A(A({},e),{},{accessedAt:e.accessedAt-60*(new Date).getTimezoneOffset()*1e3}))}catch(e){t.showToast(e.message)}},function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){R(o,r,i,a,s,"next",e)}function s(e){R(o,r,i,a,s,"throw",e)}a(void 0)}))})()}showToast(e){document.dispatchEvent(new CustomEvent("notify",{detail:{message:e}}))}}function L(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function D(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){L(o,r,i,a,s,"next",e)}function s(e){L(o,r,i,a,s,"throw",e)}a(void 0)}))}}function M(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("my-login-history",N);class F extends(Object(c.b)(c.a)(l.a)){static get properties(){return{email:String,name:String}}static get styles(){return[Object(l.b)(_||(_=M(["\n :host {\n display: block;\n background-color: var(--main-section-background-color);\n padding: 15px 0;\n }\n .wrap {\n max-width: var(--profile-wrap-max-width, 400px);\n margin: auto;\n display: grid;\n grid-template-columns: 1fr 1fr;\n }\n\n * {\n box-sizing: border-box;\n }\n\n *:focus {\n outline: none;\n }\n\n input {\n margin: var(--change-password-field-margin);\n border: var(--input-field-border);\n padding: var(--input-padding);\n border-radius: var(--border-radius);\n font: var(--input-font);\n width: var(--change-password-field-width);\n }\n input:focus {\n border: 1px solid var(--focus-background-color);\n }\n\n .user {\n background: url(/assets/images/icon-profile.png) center top no-repeat;\n margin: var(--profile-icon-margin);\n padding: 180px 20px 20px 20px;\n color: var(--secondary-color);\n font: var(--header-bar-title);\n text-align: center;\n }\n\n hr {\n width: 100%;\n border: dotted 1px rgba(0, 0, 0, 0.1);\n }\n\n .wrap * {\n grid-column: span 2;\n }\n\n label {\n font: bold 14px var(--theme-font);\n color: var(--primary-color);\n text-transform: capitalize;\n grid-column: 1;\n }\n\n .wrap *.inline {\n grid-column: unset;\n }\n\n i18n-selector {\n --i18n-selector-field-width: var(--auth-input-field-width);\n --i18n-selector-field-margin: var(--change-password-field-margin);\n --i18n-selector-field-padding: var(--padding-default);\n --i18n-selector-field-border-radius: var(--border-radius);\n margin: var(--change-password-field-margin);\n }\n\n [danger] {\n --mdc-theme-primary: var(--mdc-danger-button-primary-color);\n }\n .button-container {\n display: flex;\n gap: var(--padding-default);\n }\n .button-container > mwc-button:first-child {\n margin: auto 0px auto auto;\n }\n "])))]}firstUpdated(){s.a.on("profile",({credential:e})=>{this.setCredential(e)}),this.setCredential(s.a.credential)}setCredential(e){e?(this.name=e.name,this.email=e.email):(this.name="",this.email="")}render(){return Object(l.e)(E||(E=M(['\n <div class="wrap">\n <div class="user">','</div>\n\n <label for="name"><i18n-msg slot="title" msgid="label.name"></i18n-msg></label>\n <input id="name" @change='," .value=",' />\n\n <hr />\n\n <label for="locale"><i18n-msg slot="title" msgid="label.language"></i18n-msg></label>\n <i18n-selector id="locale" @change=','></i18n-selector>\n\n <hr />\n\n <label for="change-password">\n <i18n-msg msgid="label.password"></i18n-msg>\n </label>\n\n <change-password id="change-password"></change-password>\n\n <div class="button-container">\n <mwc-button\n id="login-history-button"\n label=',"\n raised\n @click=",'\n ></mwc-button>\n <mwc-button\n id="delete-user-button"\n label=',"\n raised\n danger\n @click=","\n ></mwc-button>\n </div>\n </div>\n "])),this.email||"",e=>this.onNameChanged(e.target.value),this.name||"",e=>this.onLocaleChanged(e.detail),c.a.t("label.login_history"),this.openLoginHistory.bind(this),c.a.t("label.delete account"),e=>this.deleteUser())}onNameChanged(e){var t=this;return D((function*(){if(e){var n=t.name,r=t.renderRoot.querySelector("#name");try{var i=yield s.a.updateProfile({name:e});Object(u.h)({level:"info",message:i})}catch(e){r.value=n,Object(u.h)({level:"error",message:e.message})}}}))()}onLocaleChanged(e){var t=this;return D((function*(){if(e){var n=c.a.language,r=t.renderRoot.querySelector("#locale");try{var i=yield s.a.updateProfile({locale:e});c.a.changeLanguage(e),Object(u.h)({level:"info",message:i})}catch(e){r.value=n,Object(u.h)({level:"error",message:e.message})}}}))()}openLoginHistory(){Object(u.j)(Object(l.e)(j||(j=M([" <my-login-history></my-login-history> "]))),{title:c.a.t("label.login_history")})}deleteUser(){Object(u.j)(Object(l.e)(k||(k=M([" <delete-user-popup></delete-user-popup> "]))),{title:c.a.t("label.delete account")})}}customElements.define("profile-component",F)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){e.exports=n(894)},function(e,t,n){"use strict";n.r(t),n.d(t,"AuthResult",(function(){return c}));n(94);var r,i,o=n(8),a=n(0);n(334);function s(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}class c extends(Object(o.b)(o.a)(a.a)){static get styles(){return[Object(a.b)(r||(r=s(["\n :host {\n display: flex;\n width: 100vw;\n height: 100vh;\n background-color: var(--auth-background);\n }\n .wrap {\n display: block;\n width: 450px;\n min-width: 350px;\n margin: 0 auto;\n text-align: center;\n }\n .auth-brand {\n color: #fff;\n }\n .auth-brand img {\n margin: 15% auto 5px auto;\n width: 100px;\n border: 3px solid var(--theme-white-color);\n border-radius: 25px;\n box-shadow: var(--box-shadow);\n }\n .name {\n display: block;\n font: var(--auth-brand-name);\n text-shadow: var(--auth-brand-name-shadow);\n }\n h1 {\n margin: 50px 0 0 0;\n padding: 0;\n font-size: 24px;\n color: var(--auth-title-color);\n }\n p {\n margin: 0;\n padding: var(--auth-description-padding);\n font: var(--auth-description-font);\n color: var(--auth-description-color);\n }\n :host *:focus {\n outline: none;\n }\n .user {\n background: url(/assets/images/icon-profile.png) center top no-repeat;\n margin: var(--profile-icon-margin);\n padding: 180px 20px 20px 20px;\n color: var(--secondary-color);\n font: var(--header-bar-title);\n text-align: center;\n }\n\n label {\n font: bold 14px var(--theme-font);\n color: var(--primary-color);\n }\n #button-area {\n border-top: 1px dashed rgba(0, 0, 0, 0.1);\n padding-top: 10px;\n }\n mwc-button {\n --mdc-theme-primary: var(--auth-button-background-color);\n --mdc-theme-on-primary: var(--primary-color);\n --mdc-button-horizontal-padding: var(--padding-default);\n --mdc-button-ink-color: var(--primary-color);\n }\n .lottie-container {\n width: 100%;\n height: 300px;\n position: absolute;\n left: 0;\n bottom: 0;\n pointer-events: none;\n }\n .lottie-container lottie-player {\n position: absolute;\n bottom: -6%;\n width: 100%;\n height: auto;\n }\n\n @media (max-width: 450px) {\n .wrap {\n width: 85%;\n min-width: 320px;\n padding-bottom: 100px;\n }\n .auth-form {\n grid-template-columns: 1fr;\n }\n .auth-brand img {\n margin: 12% auto 5px auto;\n width: 75px;\n }\n .lottie-container {\n overflow: hidden;\n height: 200px;\n pointer-events: none;\n }\n .lottie-container lottie-player {\n width: 1200px;\n left: -30%;\n }\n }\n "])))]}static get properties(){return{data:Object,message:String,resultType:String}}updated(e){e.has("data")&&(this.message=this.data.message,this.resultType=this.data.resultType||"congratulations")}render(){var{icon:e,title:t,description:n}=this.applicationMeta;return Object(a.e)(i||(i=s(['\n <div class="wrap ','">\n <div class="auth-brand">\n <img src=',' />\n <strong class="name">','</strong>\n <span class="welcome-msg">','</span>\n </div>\n\n <div id="message-area">\n <h1>','</h1>\n\n \x3c!--description message container--\x3e\n <p></p>\n </div>\n <div id="button-area">\n <mwc-button\n icon="home"\n raised\n label="','"\n @click=','\n ></mwc-button>\n </div>\n\n \x3c!--lottie animation begin--\x3e\n <div class="lottie-container">\n <lottie-player autoplay loop src="../../assets/images/background-animation.json"></lottie-player>\n </div>\n \x3c!--lottie animation end--\x3e\n </div>\n '])),this.resultType,e,t,n,this.message||"",o.a.t("button.go to home"),e=>{window.location.replace("/auth/signin")})}get applicationMeta(){if(!this._applicationMeta){var e=document.querySelector('link[rel="application-icon"]'),t=document.querySelector('meta[name="application-name"]'),n=document.querySelector('meta[name="application-description"]');this._applicationMeta={icon:e?e.href:logo,title:t?t.content:"Things Factory",description:n?n.content:"Reimagining Software"}}return this._applicationMeta}}customElements.define("auth-result",c)}]);