@formio/js 5.0.0-rc.53 → 5.0.0-rc.55

Sign up to get free protection for your applications and to get access to all the features.
Files changed (350) hide show
  1. package/dist/formio.embed.js +1 -1
  2. package/dist/formio.embed.min.js +1 -1
  3. package/dist/formio.embed.min.js.LICENSE.txt +1 -1
  4. package/dist/formio.form.js +563 -563
  5. package/dist/formio.form.min.js +1 -1
  6. package/dist/formio.form.min.js.LICENSE.txt +3 -3
  7. package/dist/formio.full.js +606 -606
  8. package/dist/formio.full.min.js +1 -1
  9. package/dist/formio.full.min.js.LICENSE.txt +3 -3
  10. package/dist/formio.js +3 -3
  11. package/dist/formio.min.js +1 -1
  12. package/dist/formio.min.js.LICENSE.txt +1 -1
  13. package/dist/formio.utils.js +16 -16
  14. package/dist/formio.utils.min.js +1 -1
  15. package/dist/formio.utils.min.js.LICENSE.txt +3 -3
  16. package/embed.d.ts +1 -0
  17. package/form.d.ts +1 -0
  18. package/lib/cjs/Element.d.ts +3 -2
  19. package/lib/cjs/Element.js +4 -3
  20. package/lib/cjs/Form.d.ts +99 -36
  21. package/lib/cjs/Form.js +23 -18
  22. package/lib/cjs/InlineEmbed.d.ts +7 -0
  23. package/lib/cjs/InlineEmbed.js +109 -0
  24. package/lib/cjs/PDF.d.ts +8 -7
  25. package/lib/cjs/PDF.js +6 -5
  26. package/lib/cjs/Webform.d.ts +0 -3
  27. package/lib/cjs/Webform.js +18 -15
  28. package/lib/cjs/WebformBuilder.d.ts +15 -14
  29. package/lib/cjs/WebformBuilder.js +11 -10
  30. package/lib/cjs/Wizard.d.ts +0 -11
  31. package/lib/cjs/Wizard.js +16 -14
  32. package/lib/cjs/WizardBuilder.d.ts +1 -1
  33. package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +2 -2
  34. package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.form.d.ts +2 -2
  35. package/lib/cjs/addons/index.d.ts +2 -2
  36. package/lib/cjs/components/Components.d.ts +6 -5
  37. package/lib/cjs/components/Components.js +2 -1
  38. package/lib/cjs/components/_classes/component/Component.form.d.ts +4 -5
  39. package/lib/cjs/components/_classes/component/Component.form.js +3 -2
  40. package/lib/cjs/components/_classes/component/Component.js +3 -2
  41. package/lib/cjs/components/_classes/component/editForm/Component.edit.addons.d.ts +2 -2
  42. package/lib/cjs/components/_classes/component/editForm/Component.edit.conditional.d.ts +1 -1
  43. package/lib/cjs/components/_classes/component/editForm/Component.edit.data.d.ts +1 -1
  44. package/lib/cjs/components/_classes/component/editForm/Component.edit.validation.d.ts +1 -1
  45. package/lib/cjs/components/_classes/component/editForm/Component.edit.validation.js +2 -2
  46. package/lib/cjs/components/_classes/component/editForm/utils.d.ts +1 -1
  47. package/lib/cjs/components/_classes/component/editForm/utils.js +2 -2
  48. package/lib/cjs/components/_classes/list/ListComponent.d.ts +2 -2
  49. package/lib/cjs/components/_classes/list/ListComponent.form.d.ts +4 -4
  50. package/lib/cjs/components/_classes/list/ListComponent.form.js +3 -3
  51. package/lib/cjs/components/_classes/nested/NestedComponent.form.d.ts +4 -5
  52. package/lib/cjs/components/_classes/nested/NestedComponent.form.js +3 -2
  53. package/lib/cjs/components/_classes/nested/NestedComponent.js +0 -2
  54. package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.d.ts +1 -1
  55. package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.js +1 -1
  56. package/lib/cjs/components/address/Address.form.d.ts +4 -5
  57. package/lib/cjs/components/address/Address.form.js +3 -2
  58. package/lib/cjs/components/button/Button.form.d.ts +4 -5
  59. package/lib/cjs/components/button/Button.form.js +3 -2
  60. package/lib/cjs/components/button/Button.js +3 -2
  61. package/lib/cjs/components/checkbox/Checkbox.form.d.ts +4 -5
  62. package/lib/cjs/components/checkbox/Checkbox.form.js +3 -2
  63. package/lib/cjs/components/checkbox/Checkbox.js +2 -9
  64. package/lib/cjs/components/checkbox/fixtures/comp5.d.ts +34 -0
  65. package/lib/cjs/components/checkbox/fixtures/comp5.js +55 -0
  66. package/lib/cjs/components/checkbox/fixtures/index.d.ts +2 -1
  67. package/lib/cjs/components/checkbox/fixtures/index.js +3 -1
  68. package/lib/cjs/components/columns/Columns.d.ts +1 -1
  69. package/lib/cjs/components/columns/Columns.form.d.ts +4 -5
  70. package/lib/cjs/components/columns/Columns.form.js +3 -2
  71. package/lib/cjs/components/columns/Columns.js +1 -1
  72. package/lib/cjs/components/container/Container.form.d.ts +4 -5
  73. package/lib/cjs/components/container/Container.form.js +3 -2
  74. package/lib/cjs/components/content/Content.form.d.ts +4 -5
  75. package/lib/cjs/components/content/Content.form.js +3 -2
  76. package/lib/cjs/components/currency/Currency.form.d.ts +4 -5
  77. package/lib/cjs/components/currency/Currency.form.js +3 -2
  78. package/lib/cjs/components/currency/Currency.js +1 -1
  79. package/lib/cjs/components/datagrid/DataGrid.d.ts +4 -4
  80. package/lib/cjs/components/datagrid/DataGrid.form.d.ts +4 -5
  81. package/lib/cjs/components/datagrid/DataGrid.form.js +3 -2
  82. package/lib/cjs/components/datagrid/DataGrid.js +4 -4
  83. package/lib/cjs/components/datamap/DataMap.form.d.ts +4 -5
  84. package/lib/cjs/components/datamap/DataMap.form.js +3 -2
  85. package/lib/cjs/components/datetime/DateTime.form.d.ts +4 -5
  86. package/lib/cjs/components/datetime/DateTime.form.js +3 -2
  87. package/lib/cjs/components/datetime/editForm/DateTime.edit.date.d.ts +1 -1
  88. package/lib/cjs/components/datetime/editForm/DateTime.edit.date.js +2 -2
  89. package/lib/cjs/components/day/Day.d.ts +18 -23
  90. package/lib/cjs/components/day/Day.form.d.ts +4 -5
  91. package/lib/cjs/components/day/Day.form.js +3 -2
  92. package/lib/cjs/components/day/Day.js +15 -14
  93. package/lib/cjs/components/editgrid/EditGrid.d.ts +4 -3
  94. package/lib/cjs/components/editgrid/EditGrid.form.d.ts +4 -5
  95. package/lib/cjs/components/editgrid/EditGrid.form.js +3 -2
  96. package/lib/cjs/components/editgrid/EditGrid.js +3 -3
  97. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.display.js +2 -5
  98. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.templates.d.ts +1 -1
  99. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.templates.js +6 -9
  100. package/lib/cjs/components/email/Email.form.d.ts +4 -5
  101. package/lib/cjs/components/email/Email.form.js +3 -2
  102. package/lib/cjs/components/fieldset/Fieldset.form.d.ts +4 -5
  103. package/lib/cjs/components/fieldset/Fieldset.form.js +3 -2
  104. package/lib/cjs/components/file/File.form.d.ts +4 -5
  105. package/lib/cjs/components/file/File.form.js +3 -2
  106. package/lib/cjs/components/form/Form.d.ts +23 -20
  107. package/lib/cjs/components/form/Form.form.d.ts +4 -5
  108. package/lib/cjs/components/form/Form.form.js +3 -2
  109. package/lib/cjs/components/form/Form.js +18 -11
  110. package/lib/cjs/components/form/editForm/Form.edit.data.d.ts +1 -1
  111. package/lib/cjs/components/form/fixtures/comp7.d.ts +36 -0
  112. package/lib/cjs/components/form/fixtures/comp7.js +37 -0
  113. package/lib/cjs/components/form/fixtures/comp8.d.ts +26 -0
  114. package/lib/cjs/components/form/fixtures/comp8.js +29 -0
  115. package/lib/cjs/components/form/fixtures/index.d.ts +3 -1
  116. package/lib/cjs/components/form/fixtures/index.js +5 -1
  117. package/lib/cjs/components/hidden/Hidden.form.d.ts +4 -5
  118. package/lib/cjs/components/hidden/Hidden.form.js +3 -2
  119. package/lib/cjs/components/hidden/Hidden.js +1 -1
  120. package/lib/cjs/components/html/HTML.form.d.ts +4 -5
  121. package/lib/cjs/components/html/HTML.form.js +3 -2
  122. package/lib/cjs/components/number/Number.d.ts +1 -1
  123. package/lib/cjs/components/number/Number.form.d.ts +4 -5
  124. package/lib/cjs/components/number/Number.form.js +3 -2
  125. package/lib/cjs/components/number/Number.js +1 -1
  126. package/lib/cjs/components/panel/Panel.form.d.ts +4 -5
  127. package/lib/cjs/components/panel/Panel.form.js +3 -2
  128. package/lib/cjs/components/panel/editForm/Panel.edit.conditional.d.ts +1 -1
  129. package/lib/cjs/components/password/Password.form.d.ts +4 -5
  130. package/lib/cjs/components/password/Password.form.js +3 -2
  131. package/lib/cjs/components/phonenumber/PhoneNumber.form.d.ts +4 -5
  132. package/lib/cjs/components/phonenumber/PhoneNumber.form.js +3 -2
  133. package/lib/cjs/components/radio/Radio.form.d.ts +4 -3
  134. package/lib/cjs/components/radio/Radio.form.js +3 -2
  135. package/lib/cjs/components/recaptcha/ReCaptcha.form.d.ts +3 -4
  136. package/lib/cjs/components/recaptcha/ReCaptcha.form.js +2 -1
  137. package/lib/cjs/components/select/Select.d.ts +2 -2
  138. package/lib/cjs/components/select/Select.form.d.ts +4 -3
  139. package/lib/cjs/components/select/Select.form.js +3 -2
  140. package/lib/cjs/components/select/Select.js +1 -1
  141. package/lib/cjs/components/selectboxes/SelectBoxes.d.ts +2 -8
  142. package/lib/cjs/components/selectboxes/SelectBoxes.form.d.ts +4 -3
  143. package/lib/cjs/components/selectboxes/SelectBoxes.form.js +3 -2
  144. package/lib/cjs/components/selectboxes/SelectBoxes.js +7 -6
  145. package/lib/cjs/components/signature/Signature.form.d.ts +4 -5
  146. package/lib/cjs/components/signature/Signature.form.js +3 -2
  147. package/lib/cjs/components/survey/Survey.form.d.ts +4 -5
  148. package/lib/cjs/components/survey/Survey.form.js +3 -2
  149. package/lib/cjs/components/table/Table.form.d.ts +4 -5
  150. package/lib/cjs/components/table/Table.form.js +3 -2
  151. package/lib/cjs/components/tabs/Tabs.d.ts +2 -2
  152. package/lib/cjs/components/tabs/Tabs.form.d.ts +4 -5
  153. package/lib/cjs/components/tabs/Tabs.form.js +3 -2
  154. package/lib/cjs/components/tabs/Tabs.js +1 -1
  155. package/lib/cjs/components/tags/Tags.form.d.ts +4 -5
  156. package/lib/cjs/components/tags/Tags.form.js +3 -2
  157. package/lib/cjs/components/textarea/TextArea.d.ts +3 -3
  158. package/lib/cjs/components/textarea/TextArea.form.d.ts +4 -5
  159. package/lib/cjs/components/textarea/TextArea.form.js +3 -2
  160. package/lib/cjs/components/textarea/TextArea.js +2 -2
  161. package/lib/cjs/components/textfield/TextField.d.ts +12 -19
  162. package/lib/cjs/components/textfield/TextField.form.d.ts +4 -5
  163. package/lib/cjs/components/textfield/TextField.form.js +3 -2
  164. package/lib/cjs/components/textfield/TextField.js +13 -12
  165. package/lib/cjs/components/time/Time.form.d.ts +4 -5
  166. package/lib/cjs/components/time/Time.form.js +3 -2
  167. package/lib/cjs/components/unknown/Unknown.form.d.ts +3 -35
  168. package/lib/cjs/components/unknown/Unknown.form.js +2 -1
  169. package/lib/cjs/components/url/Url.form.d.ts +4 -5
  170. package/lib/cjs/components/url/Url.form.js +3 -2
  171. package/lib/cjs/components/well/Well.form.d.ts +4 -5
  172. package/lib/cjs/components/well/Well.form.js +3 -2
  173. package/lib/cjs/formio.embed.d.ts +1 -2
  174. package/lib/cjs/formio.embed.js +2 -100
  175. package/lib/cjs/formio.form.js +2 -2
  176. package/lib/cjs/utils/Evaluator.d.ts +0 -1
  177. package/lib/cjs/utils/Evaluator.js +2 -5
  178. package/lib/cjs/utils/formUtils.d.ts +1 -1
  179. package/lib/cjs/utils/utils.d.ts +106 -83
  180. package/lib/cjs/utils/utils.js +96 -140
  181. package/lib/cjs/widgets/CalendarWidget.d.ts +8 -7
  182. package/lib/cjs/widgets/CalendarWidget.js +8 -7
  183. package/lib/mjs/Element.d.ts +3 -2
  184. package/lib/mjs/Element.js +4 -3
  185. package/lib/mjs/Form.d.ts +99 -36
  186. package/lib/mjs/Form.js +43 -38
  187. package/lib/mjs/InlineEmbed.d.ts +7 -0
  188. package/lib/mjs/InlineEmbed.js +105 -0
  189. package/lib/mjs/PDF.d.ts +8 -7
  190. package/lib/mjs/PDF.js +6 -5
  191. package/lib/mjs/Webform.d.ts +0 -3
  192. package/lib/mjs/Webform.js +18 -15
  193. package/lib/mjs/WebformBuilder.d.ts +15 -14
  194. package/lib/mjs/WebformBuilder.js +11 -10
  195. package/lib/mjs/Wizard.d.ts +0 -11
  196. package/lib/mjs/Wizard.js +14 -12
  197. package/lib/mjs/WizardBuilder.d.ts +1 -1
  198. package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +2 -2
  199. package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.form.d.ts +2 -2
  200. package/lib/mjs/addons/index.d.ts +2 -2
  201. package/lib/mjs/components/Components.d.ts +6 -5
  202. package/lib/mjs/components/Components.js +2 -1
  203. package/lib/mjs/components/_classes/component/Component.form.d.ts +4 -5
  204. package/lib/mjs/components/_classes/component/Component.form.js +3 -2
  205. package/lib/mjs/components/_classes/component/Component.js +3 -2
  206. package/lib/mjs/components/_classes/component/editForm/Component.edit.addons.d.ts +2 -2
  207. package/lib/mjs/components/_classes/component/editForm/Component.edit.conditional.d.ts +1 -1
  208. package/lib/mjs/components/_classes/component/editForm/Component.edit.data.d.ts +1 -1
  209. package/lib/mjs/components/_classes/component/editForm/Component.edit.validation.d.ts +1 -1
  210. package/lib/mjs/components/_classes/component/editForm/Component.edit.validation.js +1 -1
  211. package/lib/mjs/components/_classes/component/editForm/utils.d.ts +1 -1
  212. package/lib/mjs/components/_classes/component/editForm/utils.js +1 -1
  213. package/lib/mjs/components/_classes/list/ListComponent.d.ts +2 -2
  214. package/lib/mjs/components/_classes/list/ListComponent.form.d.ts +4 -4
  215. package/lib/mjs/components/_classes/list/ListComponent.form.js +3 -3
  216. package/lib/mjs/components/_classes/nested/NestedComponent.form.d.ts +4 -5
  217. package/lib/mjs/components/_classes/nested/NestedComponent.form.js +3 -2
  218. package/lib/mjs/components/_classes/nested/NestedComponent.js +0 -2
  219. package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.d.ts +1 -1
  220. package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.js +1 -1
  221. package/lib/mjs/components/address/Address.form.d.ts +4 -5
  222. package/lib/mjs/components/address/Address.form.js +3 -2
  223. package/lib/mjs/components/button/Button.form.d.ts +4 -5
  224. package/lib/mjs/components/button/Button.form.js +3 -2
  225. package/lib/mjs/components/button/Button.js +3 -2
  226. package/lib/mjs/components/checkbox/Checkbox.form.d.ts +4 -5
  227. package/lib/mjs/components/checkbox/Checkbox.form.js +3 -2
  228. package/lib/mjs/components/checkbox/Checkbox.js +2 -9
  229. package/lib/mjs/components/checkbox/fixtures/comp5.d.ts +34 -0
  230. package/lib/mjs/components/checkbox/fixtures/comp5.js +53 -0
  231. package/lib/mjs/components/checkbox/fixtures/index.d.ts +2 -1
  232. package/lib/mjs/components/checkbox/fixtures/index.js +2 -1
  233. package/lib/mjs/components/columns/Columns.d.ts +1 -1
  234. package/lib/mjs/components/columns/Columns.form.d.ts +4 -5
  235. package/lib/mjs/components/columns/Columns.form.js +3 -2
  236. package/lib/mjs/components/columns/Columns.js +1 -1
  237. package/lib/mjs/components/container/Container.form.d.ts +4 -5
  238. package/lib/mjs/components/container/Container.form.js +3 -2
  239. package/lib/mjs/components/content/Content.form.d.ts +4 -5
  240. package/lib/mjs/components/content/Content.form.js +3 -2
  241. package/lib/mjs/components/currency/Currency.form.d.ts +4 -5
  242. package/lib/mjs/components/currency/Currency.form.js +3 -2
  243. package/lib/mjs/components/currency/Currency.js +1 -1
  244. package/lib/mjs/components/datagrid/DataGrid.d.ts +4 -4
  245. package/lib/mjs/components/datagrid/DataGrid.form.d.ts +4 -5
  246. package/lib/mjs/components/datagrid/DataGrid.form.js +3 -2
  247. package/lib/mjs/components/datagrid/DataGrid.js +4 -4
  248. package/lib/mjs/components/datamap/DataMap.form.d.ts +4 -5
  249. package/lib/mjs/components/datamap/DataMap.form.js +3 -2
  250. package/lib/mjs/components/datetime/DateTime.form.d.ts +4 -5
  251. package/lib/mjs/components/datetime/DateTime.form.js +3 -2
  252. package/lib/mjs/components/datetime/editForm/DateTime.edit.date.d.ts +1 -1
  253. package/lib/mjs/components/datetime/editForm/DateTime.edit.date.js +1 -1
  254. package/lib/mjs/components/day/Day.d.ts +18 -23
  255. package/lib/mjs/components/day/Day.form.d.ts +4 -5
  256. package/lib/mjs/components/day/Day.form.js +3 -2
  257. package/lib/mjs/components/day/Day.js +15 -14
  258. package/lib/mjs/components/editgrid/EditGrid.d.ts +4 -3
  259. package/lib/mjs/components/editgrid/EditGrid.form.d.ts +4 -5
  260. package/lib/mjs/components/editgrid/EditGrid.form.js +3 -2
  261. package/lib/mjs/components/editgrid/EditGrid.js +3 -3
  262. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.display.js +1 -1
  263. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.templates.d.ts +1 -1
  264. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.templates.js +1 -1
  265. package/lib/mjs/components/email/Email.form.d.ts +4 -5
  266. package/lib/mjs/components/email/Email.form.js +3 -2
  267. package/lib/mjs/components/fieldset/Fieldset.form.d.ts +4 -5
  268. package/lib/mjs/components/fieldset/Fieldset.form.js +3 -2
  269. package/lib/mjs/components/file/File.form.d.ts +4 -5
  270. package/lib/mjs/components/file/File.form.js +3 -2
  271. package/lib/mjs/components/form/Form.d.ts +23 -20
  272. package/lib/mjs/components/form/Form.form.d.ts +4 -5
  273. package/lib/mjs/components/form/Form.form.js +3 -2
  274. package/lib/mjs/components/form/Form.js +18 -11
  275. package/lib/mjs/components/form/editForm/Form.edit.data.d.ts +1 -1
  276. package/lib/mjs/components/form/fixtures/comp7.d.ts +36 -0
  277. package/lib/mjs/components/form/fixtures/comp7.js +35 -0
  278. package/lib/mjs/components/form/fixtures/comp8.d.ts +26 -0
  279. package/lib/mjs/components/form/fixtures/comp8.js +27 -0
  280. package/lib/mjs/components/form/fixtures/index.d.ts +3 -1
  281. package/lib/mjs/components/form/fixtures/index.js +3 -1
  282. package/lib/mjs/components/hidden/Hidden.form.d.ts +4 -5
  283. package/lib/mjs/components/hidden/Hidden.form.js +3 -2
  284. package/lib/mjs/components/hidden/Hidden.js +1 -1
  285. package/lib/mjs/components/html/HTML.form.d.ts +4 -5
  286. package/lib/mjs/components/html/HTML.form.js +3 -2
  287. package/lib/mjs/components/number/Number.d.ts +1 -1
  288. package/lib/mjs/components/number/Number.form.d.ts +4 -5
  289. package/lib/mjs/components/number/Number.form.js +3 -2
  290. package/lib/mjs/components/number/Number.js +1 -1
  291. package/lib/mjs/components/panel/Panel.form.d.ts +4 -5
  292. package/lib/mjs/components/panel/Panel.form.js +3 -2
  293. package/lib/mjs/components/panel/editForm/Panel.edit.conditional.d.ts +1 -1
  294. package/lib/mjs/components/password/Password.form.d.ts +4 -5
  295. package/lib/mjs/components/password/Password.form.js +3 -2
  296. package/lib/mjs/components/phonenumber/PhoneNumber.form.d.ts +4 -5
  297. package/lib/mjs/components/phonenumber/PhoneNumber.form.js +3 -2
  298. package/lib/mjs/components/radio/Radio.form.d.ts +4 -3
  299. package/lib/mjs/components/radio/Radio.form.js +3 -2
  300. package/lib/mjs/components/recaptcha/ReCaptcha.form.d.ts +3 -4
  301. package/lib/mjs/components/recaptcha/ReCaptcha.form.js +2 -1
  302. package/lib/mjs/components/select/Select.d.ts +2 -2
  303. package/lib/mjs/components/select/Select.form.d.ts +4 -3
  304. package/lib/mjs/components/select/Select.form.js +3 -2
  305. package/lib/mjs/components/select/Select.js +1 -1
  306. package/lib/mjs/components/selectboxes/SelectBoxes.d.ts +2 -8
  307. package/lib/mjs/components/selectboxes/SelectBoxes.form.d.ts +4 -3
  308. package/lib/mjs/components/selectboxes/SelectBoxes.form.js +3 -2
  309. package/lib/mjs/components/selectboxes/SelectBoxes.js +7 -6
  310. package/lib/mjs/components/signature/Signature.form.d.ts +4 -5
  311. package/lib/mjs/components/signature/Signature.form.js +3 -2
  312. package/lib/mjs/components/survey/Survey.form.d.ts +4 -5
  313. package/lib/mjs/components/survey/Survey.form.js +3 -2
  314. package/lib/mjs/components/table/Table.form.d.ts +4 -5
  315. package/lib/mjs/components/table/Table.form.js +3 -2
  316. package/lib/mjs/components/tabs/Tabs.d.ts +2 -2
  317. package/lib/mjs/components/tabs/Tabs.form.d.ts +4 -5
  318. package/lib/mjs/components/tabs/Tabs.form.js +3 -2
  319. package/lib/mjs/components/tabs/Tabs.js +1 -1
  320. package/lib/mjs/components/tags/Tags.form.d.ts +4 -5
  321. package/lib/mjs/components/tags/Tags.form.js +3 -2
  322. package/lib/mjs/components/textarea/TextArea.d.ts +3 -3
  323. package/lib/mjs/components/textarea/TextArea.form.d.ts +4 -5
  324. package/lib/mjs/components/textarea/TextArea.form.js +3 -2
  325. package/lib/mjs/components/textarea/TextArea.js +2 -2
  326. package/lib/mjs/components/textfield/TextField.d.ts +12 -19
  327. package/lib/mjs/components/textfield/TextField.form.d.ts +4 -5
  328. package/lib/mjs/components/textfield/TextField.form.js +3 -2
  329. package/lib/mjs/components/textfield/TextField.js +13 -12
  330. package/lib/mjs/components/time/Time.form.d.ts +4 -5
  331. package/lib/mjs/components/time/Time.form.js +3 -2
  332. package/lib/mjs/components/unknown/Unknown.form.d.ts +3 -35
  333. package/lib/mjs/components/unknown/Unknown.form.js +2 -1
  334. package/lib/mjs/components/url/Url.form.d.ts +4 -5
  335. package/lib/mjs/components/url/Url.form.js +3 -2
  336. package/lib/mjs/components/well/Well.form.d.ts +4 -5
  337. package/lib/mjs/components/well/Well.form.js +3 -2
  338. package/lib/mjs/formio.embed.d.ts +1 -2
  339. package/lib/mjs/formio.embed.js +2 -99
  340. package/lib/mjs/formio.form.js +1 -1
  341. package/lib/mjs/utils/Evaluator.d.ts +0 -1
  342. package/lib/mjs/utils/Evaluator.js +1 -4
  343. package/lib/mjs/utils/formUtils.d.ts +1 -1
  344. package/lib/mjs/utils/utils.d.ts +106 -83
  345. package/lib/mjs/utils/utils.js +96 -140
  346. package/lib/mjs/widgets/CalendarWidget.d.ts +8 -7
  347. package/lib/mjs/widgets/CalendarWidget.js +8 -7
  348. package/package.json +12 -11
  349. package/sdk.d.ts +1 -0
  350. package/utils.d.ts +1 -0
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see formio.min.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Formio=t():e.Formio=t()}(self,(function(){return function(){var e={23370:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(2543);class o{static identity(e){return e}static deregisterPlugin(e){const t=o.plugins.length;return o.plugins=o.plugins.filter((t=>t!==e&&t.__name!==e||((t.deregister||n.noop).call(e,o.Formio),!1))),t!==o.plugins.length}static registerPlugin(e,t){o.plugins.push(e),o.plugins.sort(((e,t)=>(t.priority||0)-(e.priority||0))),e.__name=t,(e.init||n.noop).call(e,o.Formio)}static getPlugin(e){for(const t of o.plugins)if(t.__name===e)return t;return null}static pluginWait(e,...t){return Promise.all(o.plugins.map((r=>(r[e]||n.noop).call(r,...t))))}static pluginGet(e,...t){const r=i=>{const s=o.plugins[i];return s?Promise.resolve((s[e]||n.noop).call(s,...t)).then((e=>(0,n.isNil)(e)?r(i+1):e)):Promise.resolve(null)};return r(0)}static pluginAlter(e,t,...r){return o.plugins.reduce(((t,n)=>(n[e]||o.identity)(t,...r)),t)}}o.plugins=[],t.default=o},94394:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Formio=void 0;var n=r(15993);Object.defineProperty(t,"Formio",{enumerable:!0,get:function(){return n.Formio}})},70678:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Evaluator=t.BaseEvaluator=void 0;const n=r(2543);class o{static evaluator(e,...t){return i.noeval?(console.warn("No evaluations allowed for this renderer."),n.noop):"function"==typeof e?e:("object"==typeof t[0]&&(t=(0,n.keys)(t[0])),new Function(...t,e))}static interpolateString(e,t,r={}){return e?"string"!=typeof e?e.toString():e.replace(/({{\s*(.*?)\s*}})/g,((e,o,s)=>{if(-1===s.indexOf("(")||i.noeval||r.noeval){let e=s;-1!==s.indexOf("?")&&(e=s.replace(/\?\./g,"."));const o=e.split("||").map((e=>e.trim()));let i="",a="";for(let e=0;e<o.length&&(a=o[e],i=(0,n.get)(t,a),!i);e++);return r.data&&(0,n.set)(r.data,a,i),i}return s.replace(/([^\(]+)\(([^\)]+)\s*\);?/,((e,o,s)=>{o=(0,n.trim)(o);const a=(0,n.get)(t,o);return a?(s&&(s=s.split(",").map((e=>0===(e=(0,n.trim)(e)).indexOf('"')||0===e.indexOf("'")?e.substring(1,e.length-1):(0,n.get)(t,e)))),i.evaluate(a,s,"",!1,t,r)):""}))})):""}static interpolate(e,t,r={}){if("function"==typeof e&&!i.noeval&&!r.noeval)try{return e(t)}catch(e){return console.warn("Error interpolating template",e,t),e.message}return i.interpolateString(String(e),t,r)}static evaluate(e,t={},r="",s=!1,a={},u={}){let c=null;u=(0,n.isObject)(u)?u:{noeval:u};const l=t.component?t.component:{key:"unknown"};!t.form&&t.instance&&(t.form=(0,n.get)(t.instance,"root._form",{}));const f=l.key;if("string"==typeof e){r&&(e=`var ${r};${e};return ${r}`),s&&(e=o.interpolate(e,t,u));try{e=i.noeval||u.noeval?n.noop:i.evaluator(e,t,a),t=(0,n.values)(t)}catch(t){console.warn(`An error occured within the custom function for ${f}`,t),c=null,e=!1}}if("function"==typeof e)try{c=i.execute(e,t,a,u)}catch(e){c=null,console.warn(`An error occured within custom function for ${f}`,e)}else e&&console.warn(`Unknown function type for ${f}`);return c}static execute(e,t,r={},o={}){if(o=(0,n.isObject)(o)?o:{noeval:o},!i.noeval&&!o.noeval)return Array.isArray(t)?e.apply(r,t):e.call(r,t);console.warn("No evaluations allowed for this renderer.")}}t.BaseEvaluator=o,o.templateSettings={interpolate:/{{([\s\S]+?)}}/g,evaluate:/\{%([\s\S]+?)%\}/g,escape:/\{\{\{([\s\S]+?)\}\}\}/g},o.noeval=!1;class i extends o{static registerEvaluator(e){Object.keys(e).forEach((t=>{i[t]=e[t]}))}}t.Evaluator=i},60554:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fastCloneDeep=void 0,t.fastCloneDeep=function(e){try{return JSON.parse(JSON.stringify(e))}catch(e){return console.log(`Clone Failed: ${e.message}`),null}}},61785:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{u(n.next(e))}catch(e){i(e)}}function a(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.isComponentDataEmpty=t.getEmptyValue=t.findComponent=t.applyFormChanges=t.generateFormChange=t.getStrings=t.getValue=t.escapeRegExCharacters=t.formatAsCurrency=t.parseFloatExt=t.hasCondition=t.removeComponent=t.searchComponents=t.getComponent=t.matchComponent=t.isLayoutComponent=t.getComponentActualValue=t.getComponentData=t.eachComponentAsync=t.eachComponent=t.componentInfo=t.getContextualRowData=t.getContextualRowPath=t.getComponentKey=t.eachComponentData=t.eachComponentDataAsync=t.componentChildPath=t.componentPath=t.isComponentNestedDataType=t.isComponentModelType=t.getComponentPath=t.getComponentAbsolutePath=t.getModelType=t.MODEL_TYPES=t.uniqueName=t.guid=t.flattenComponents=void 0;const o=r(2543),i=r(54949),s=r(70678);function a(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function u(e){return l(e)?c(e,"dataObject")?"dataObject":c(e,"array")?"array":"object":!1===e.input||c(e,"layout")?"inherit":p(e)?"value":"inherit"}function c(e,r){return e.modelType===r||t.MODEL_TYPES[r].includes(e.type)}function l(e){return e.tree||c(e,"array")||c(e,"dataObject")||c(e,"object")||c(e,"map")}function f(e,t){t=e.parentPath||t;const r=p(e);return r?t?`${t}.${r}`:r:t||""}function p(e){return"checkbox"===e.type&&"radio"===e.inputType&&e.name?e.name:e.key}function d(e,t){return t.replace(new RegExp(`.?${p(e)}$`),"")}function h(e,t,r){const n=d(e,t);return n?(0,o.get)(r,n,null):r}function v(e){const t=e.columns&&Array.isArray(e.columns),r=e.rows&&Array.isArray(e.rows),n=e.components&&Array.isArray(e.components);return{hasColumns:t,hasRows:r,hasComps:n,iterable:t||r||n||c(e,"content")}}function y(e,r,n,o,i){e&&(o=o||"",e.forEach((s=>{if(!s)return;const a=v(s);let u=!1;i&&(Object.defineProperty(s,"parent",{enumerable:!1,writable:!0,value:JSON.parse(JSON.stringify(i))}),Object.defineProperty(s.parent,"parent",{enumerable:!1,writable:!0,value:i.parent}),Object.defineProperty(s.parent,"path",{enumerable:!1,writable:!0,value:i.path}),delete s.parent.components,delete s.parent.componentMap,delete s.parent.columns,delete s.parent.rows),Object.defineProperty(s,"path",{enumerable:!1,writable:!0,value:f(s,o)}),(n||s.tree||!a.iterable)&&(u=r(s,s.path,e,i)),u||(a.hasColumns?s.columns.forEach((e=>y(e.components,r,n,o,i?s:null))):a.hasRows?s.rows.forEach((e=>{Array.isArray(e)&&e.forEach((e=>y(e.components,r,n,o,i?s:null)))})):a.hasComps&&y(s.components,r,n,(0,t.componentChildPath)(s,o),i?s:null))})))}function m(e,r){return n(this,arguments,void 0,(function*(e,r,n=!1,o="",i){var s,a;if(e)for(let u=0;u<e.length;u++){if(!e[u])continue;let c=e[u];const l=v(c);if(i&&(Object.defineProperty(c,"parent",{enumerable:!1,writable:!0,value:JSON.parse(JSON.stringify(i))}),Object.defineProperty(c.parent,"parent",{enumerable:!1,writable:!0,value:i.parent}),Object.defineProperty(c.parent,"path",{enumerable:!1,writable:!0,value:i.path}),delete c.parent.components,delete c.parent.componentMap,delete c.parent.columns,delete c.parent.rows),Object.defineProperty(c,"path",{enumerable:!1,writable:!0,value:f(c,o)}),!n&&!c.tree&&l.iterable||!(yield r(c,c.path,e,i)))if(l.hasColumns)for(let e=0;e<c.columns.length;e++)yield m(null===(s=c.columns[e])||void 0===s?void 0:s.components,r,n,o,i?c:null);else if(l.hasRows)for(let e=0;e<c.rows.length;e++){let t=c.rows[e];if(Array.isArray(t))for(let e=0;e<t.length;e++)yield m(null===(a=t[e])||void 0===a?void 0:a.components,r,n,o,i?c:null)}else l.hasComps&&(yield m(c.components,r,n,(0,t.componentChildPath)(c,o),i?c:null))}}))}function g(e,t){if((0,o.isString)(t))return e.key===t||e.path===t;{let r=!1;return(0,o.forOwn)(t,((t,n)=>{if(r=(0,o.get)(e,n)===t,!r)return!1})),r}}function b(e,t){var r=t.pop();0!==t.length&&(e=(0,o.get)(e,t)),e.splice(r,1)}function _(e){return parseFloat((0,o.isString)(e)?e.replace(/[^\de.+-]/gi,""):e)}function w(e,t,r,n){if(e){if(r=r||[],!t)return n(e);e.forEach((function(o,i){var s=r.slice();s.push(i),o&&(o.hasOwnProperty("columns")&&Array.isArray(o.columns)&&(s.push("columns"),o.columns.forEach((function(e,r){var o=s.slice();o.push(r),o.push("components"),w(e.components,t,o,n)}))),o.hasOwnProperty("rows")&&Array.isArray(o.rows)&&(s.push("rows"),o.rows.forEach((function(e,r){var o=s.slice();o.push(r),e.forEach((function(e,r){var i=o.slice();i.push(r),i.push("components"),w(e.components,t,i,n)}))}))),o.hasOwnProperty("components")&&Array.isArray(o.components)&&(s.push("components"),w(o.components,t,s,n)),o.key===t&&n(o,s,e))}))}}function O(e){switch(e.type){case"textarea":case"textfield":case"time":case"datetime":case"day":return"";case"datagrid":case"editgrid":return[];default:return null}}t.flattenComponents=function(e,t){const r={};return y(e,((e,t)=>{r[t]=e}),t),r},t.guid=a,t.uniqueName=function(e,t,r){(t=t||"{{fileName}}-{{guid}}").includes("{{guid}}")||(t=`${t}-{{guid}}`);const n=e.split(".");let i=n.slice(0,n.length-1).join(".");const u=n.length>1?`.${(0,o.last)(n)}`:"";return i=i.substr(0,100),r=Object.assign(r||{},{fileName:i,guid:a()}),`${s.Evaluator.interpolate(t,r)}${u}`.replace(/[^0-9a-zA-Z.\-_ ]/g,"-")},t.MODEL_TYPES={array:["datagrid","editgrid","datatable","dynamicWizard"],dataObject:["form"],object:["container","address"],map:["datamap"],content:["htmlelement","content"],layout:["table","tabs","well","columns","fieldset","panel","tabs"]},t.getModelType=u,t.getComponentAbsolutePath=function(e){let t=[e.path];for(;e.parent;)c(e=e.parent,"dataObject")&&(t[t.length-1]=`data.${t[t.length-1]}`,t.push(e.path));return t.reverse().join(".")},t.getComponentPath=function(e,t){const r=p(e);return r?t?t.match(new RegExp(`${r}$`))?t:"inherit"===u(e)?`${t}.${r}`:t:r:t},t.isComponentModelType=c,t.isComponentNestedDataType=l,t.componentPath=f,t.componentChildPath=(e,t,r)=>(t=e.parentPath||t,r=r||f(e,t),e.components&&Array.isArray(e.components)?c(e,"dataObject")?`${r}.data`:c(e,"array")?`${r}[0]`:l(e)||void 0===t?r:t:r),t.eachComponentDataAsync=(e,r,i,...s)=>n(void 0,[e,r,i,...s],void 0,(function*(e,r,i,s="",a,u,f=!1){if(e&&r)return yield m(e,((e,u,p,d)=>n(void 0,void 0,void 0,(function*(){const n=h(e,u,r);if(!0===(yield i(e,r,n,u,p,a,d)))return!0;if(l(e)){const l=(0,o.get)(r,u,r);if(Array.isArray(l)){for(let n=0;n<l.length;n++)yield(0,t.eachComponentDataAsync)(e.components,r,i,`${u}[${n}]`,n,e,f);return!0}if((0,o.isEmpty)(n)&&!f)return!0;if(c(e,"dataObject")){if((0,o.has)(r,e.path)){const n=(0,t.componentChildPath)(e,s,u),c=(0,o.get)(r,n,null);yield(0,t.eachComponentDataAsync)(e.components,c,i,"",a,e,f),(0,o.set)(r,n,c)}}else yield(0,t.eachComponentDataAsync)(e.components,r,i,(0,t.componentChildPath)(e,s,u),a,e,f);return!0}return!1}))),!0,s,u)})),t.eachComponentData=(e,r,n,i="",s,a,u=!1)=>{if(e&&r)return y(e,((e,a,f,p)=>{const d=h(e,a,r);if(!0===n(e,r,d,a,f,s,p))return!0;if(l(e)){const l=(0,o.get)(r,a,r);if(Array.isArray(l)){for(let o=0;o<l.length;o++)(0,t.eachComponentData)(e.components,r,n,`${a}[${o}]`,o,e,u);return!0}if((0,o.isEmpty)(d)&&!u)return!0;if(c(e,"dataObject")){if((0,o.has)(r,e.path)){const c=(0,t.componentChildPath)(e,i,a),l=(0,o.get)(r,c,{});(0,t.eachComponentData)(e.components,l,n,"",s,e,u),(0,o.set)(r,c,l)}}else(0,t.eachComponentData)(e.components,r,n,(0,t.componentChildPath)(e,i,a),s,e,u);return!0}return!1}),!0,i,a)},t.getComponentKey=p,t.getContextualRowPath=d,t.getContextualRowData=h,t.componentInfo=v,t.eachComponent=y,t.eachComponentAsync=m,t.getComponentData=function(e,r,n){const o={component:null,data:null};return(0,t.eachComponentData)(e,r,((e,t,r,i)=>{if(i===n)return o.component=e,o.data=r,!0})),o},t.getComponentActualValue=function(e,t,r,n){var i,s;if(null===(i=e.parent)||void 0===i?void 0:i.path){const r=null===(s=e.parent)||void 0===s?void 0:s.path.replace(/\[[0-9]+\]/g,"");t=t.replace(r,""),t=(0,o.trim)(t,". ")}let a=null;return n&&(a=(0,o.get)(n,t)),r&&(0,o.isNil)(a)&&(a=(0,o.get)(r,t)),((0,o.isNil)(a)||(0,o.isObject)(a)&&(0,o.isEmpty)(a))&&(a=""),a},t.isLayoutComponent=function(e){return Boolean(e.columns&&Array.isArray(e.columns)||e.rows&&Array.isArray(e.rows)||e.components&&Array.isArray(e.components))},t.matchComponent=g,t.getComponent=function(e,t,r){let n;return y(e,((e,r)=>{if(r===t||e.path===t)return n=e,!0}),r),n},t.searchComponents=function(e,t){const r=[];return y(e,(e=>{g(e,t)&&r.push(e)}),!0),r},t.removeComponent=b,t.hasCondition=function(e){return Boolean(e.customConditional||e.conditional&&(e.conditional.when||e.conditional.json||e.conditional.conjunction))},t.parseFloatExt=_,t.formatAsCurrency=function(e){const t=_(e);if(isNaN(t))return"";const r=(0,o.round)(t,2).toString().split(".");return r[0]=(0,o.chunk)(Array.from(r[0]).reverse(),3).reverse().map((e=>e.reverse().join(""))).join(","),r[1]=(0,o.pad)(r[1],2,"0"),r.join(".")},t.escapeRegExCharacters=function(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")},t.getValue=function(e,t){const r=e=>{if((0,o.isPlainObject)(e)){if((0,o.has)(e,t))return(0,o.get)(e,t);let n=null;return(0,o.forOwn)(e,(e=>{const t=r(e);if(!(0,o.isNil)(t))return n=t,!1})),n}return null};return r(e.data)},t.getStrings=function(e){const t=["label","title","legend","tooltip","description","placeholder","prefix","suffix","errorLabel","content","html"],r=[];return y(e.components,(e=>{if(t.forEach((t=>{e.hasOwnProperty(t)&&e[t]&&r.push({key:e.key,type:e.type,property:t,string:e[t]})})),(!e.dataSrc||"values"===e.dataSrc)&&e.hasOwnProperty("values")&&Array.isArray(e.values)&&e.values.length&&e.values.forEach(((t,n)=>{r.push({key:e.key,property:`value[${n}].label`,string:e.values[n].label})})),"day"===e.type&&(["day","month","year","Day","Month","Year","january","february","march","april","may","june","july","august","september","october","november","december"].forEach((t=>{r.push({key:e.key,property:"day",string:t})})),e.fields.day.placeholder&&r.push({key:e.key,property:"fields.day.placeholder",string:e.fields.day.placeholder}),e.fields.month.placeholder&&r.push({key:e.key,property:"fields.month.placeholder",string:e.fields.month.placeholder}),e.fields.year.placeholder&&r.push({key:e.key,property:"fields.year.placeholder",string:e.fields.year.placeholder})),"editgrid"===e.type){const t=e.addAnother||"Add Another";e.addAnother&&r.push({key:e.key,property:"addAnother",string:t})}"select"===e.type&&["loading...","Type to search"].forEach((t=>{r.push({key:e.key,property:"select",string:t})}))}),!0),r},t.generateFormChange=function(e,t){let r;switch(e){case"add":r={op:"add",key:t.component.key,container:t.parent.key,path:t.path,index:t.index,component:t.component};break;case"edit":r={op:"edit",key:t.originalComponent.key,patches:(0,i.compare)(t.originalComponent,t.component)},r.patches.length||(r=null);break;case"remove":r={op:"remove",key:t.component.key}}return r},t.applyFormChanges=function(e,t){const r=[];return t.forEach((function(t){var n=!1;switch(t.op){case"add":var s=t.component;w(e.components,t.container,null,(function(r){t.container||(r=e),w(e.components,t.key,null,(function(t,r){s=t,b(e.components,r)})),n=!0,(0,o.get)(r,t.path).splice(t.index,0,s)}));break;case"remove":w(e.components,t.key,null,(function(t,r){n=!0,(0,o.get)(e.components,r).key!==t.key&&r.pop(),b(e.components,r)}));break;case"edit":w(e.components,t.key,null,(function(s,a){n=!0;try{const r=(0,o.get)(e.components,a),n=(0,i.applyPatch)(s,t.patches).newDocument;r.key!==n.key&&a.pop(),(0,o.set)(e.components,a,n)}catch(e){r.push(t)}}))}n||r.push(t)})),{form:e,failed:r}},t.findComponent=w,t.getEmptyValue=O;const j=e=>{const t="<p>&nbsp;</p>",r="<p><br></p>",n="<p><br>&nbsp;</p>",o=new RegExp(`^${t}|${t}$|^${r}|${r}$|^${n}|${n}$`,"g");return"string"==typeof e?e.replace(o,"").trim():e};function A(e,t){const r=!(!(0,o.isArray)(t)||1!==t.length)&&(0,o.isEqual)(t[0],O(e));return null==t||""===t||(0,o.isArray)(t)&&0===t.length||r}t.isComponentDataEmpty=function e(r,n,i){var s;const a=(0,o.get)(n,i);if((e=>"checkbox"===e.type)(r))return A(r,a)||!1===a;if((e=>"datagrid"===e.type)(r)||(e=>"editgrid"===e.type)(r)||(e=>"datatable"===e.type)(r)||(e=>null!=e.components)(r)){if(null===(s=r.components)||void 0===s?void 0:s.length){let o=!0;return(0,t.eachComponentData)([r],n,((t,n,i,s,a,u)=>{r.key!==t.key&&(e(t,n,s)||(o=!1))})),A(r,a)||o}return A(r,a)}if((e=>"datetime"===e.type)(r))return A(r,a)||"Invalid date"===a.toString();if((e=>"selectboxes"===e.type)(r)){let e=!0;for(const t in a)if(a[t]){e=!1;break}return A(r,a)||e}if((e=>"textarea"===e.type)(r)){const e=!r.wysiwyg&&!r.editor;return A(r,e?"string"==typeof a?a.trim():a:function(e){return e?e=Array.isArray(e)?e.map((e=>j(e))):j(e):e}(a))}return(e=>"textfield"===e.type)(r)?r.allowMultipleMasks&&r.inputMasks&&r.inputMasks.length?A(r,a)||(r.multiple?0===a.length:!a.maskName||!a.value):A(r,null==a?void 0:a.toString().trim()):A(r,a)}},17112:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jwtDecode=void 0,t.jwtDecode=function(e,t={}){if("string"!=typeof e)throw new Error("Invalid token specified: must be a string");const r=!0===t.header?0:1,n=e.split(".")[r];if("string"!=typeof n)throw new Error("Invalid token specified: missing part #"+(r+1));let o;try{o=function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,(function(e,t){let r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(t)}catch(e){return atob(t)}}(n)}catch(e){throw new Error("Invalid token specified: invalid base64 for part #"+(r+1)+" ("+e.message+")")}try{return JSON.parse(o)}catch(e){throw new Error("Invalid token specified: invalid json for part #"+(r+1)+" ("+e.message+")")}}},24715:function(e,t,r){var n,o;n=function(){"use strict";function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function n(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=o(e);if(t){var i=o(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return s(e)}(this,r)}}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=o(e)););return e}(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},u.apply(this,arguments)}var c=function(){function t(){e(this,t),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return n(t,[{key:"addEventListener",value:function(e,t,r){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:t,options:r})}},{key:"removeEventListener",value:function(e,t){if(e in this.listeners)for(var r=this.listeners[e],n=0,o=r.length;n<o;n++)if(r[n].callback===t)return void r.splice(n,1)}},{key:"dispatchEvent",value:function(e){if(e.type in this.listeners){for(var t=this.listeners[e.type].slice(),r=0,n=t.length;r<n;r++){var o=t[r];try{o.callback.call(this,e)}catch(e){Promise.resolve().then((function(){throw e}))}o.options&&o.options.once&&this.removeEventListener(e.type,o.callback)}return!e.defaultPrevented}}}]),t}(),l=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(l,t);var r=a(l);function l(){var t;return e(this,l),(t=r.call(this)).listeners||c.call(s(t)),Object.defineProperty(s(t),"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(s(t),"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(s(t),"reason",{value:void 0,writable:!0,configurable:!0}),t}return n(l,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(e){"abort"===e.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,e)),u(o(l.prototype),"dispatchEvent",this).call(this,e)}}]),l}(c),f=function(){function t(){e(this,t),Object.defineProperty(this,"signal",{value:new l,writable:!0,configurable:!0})}return n(t,[{key:"abort",value:function(e){var t;try{t=new Event("abort")}catch(e){"undefined"!=typeof document?document.createEvent?(t=document.createEvent("Event")).initEvent("abort",!1,!1):(t=document.createEventObject()).type="abort":t={type:"abort",bubbles:!1,cancelable:!1}}var r=e;if(void 0===r)if("undefined"==typeof document)(r=new Error("This operation was aborted")).name="AbortError";else try{r=new DOMException("signal is aborted without reason")}catch(e){(r=new Error("This operation was aborted")).name="AbortError"}this.signal.reason=r,this.signal.dispatchEvent(t)}},{key:"toString",value:function(){return"[object AbortController]"}}]),t}();function p(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):"function"==typeof e.Request&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}"undefined"!=typeof Symbol&&Symbol.toStringTag&&(f.prototype[Symbol.toStringTag]="AbortController",l.prototype[Symbol.toStringTag]="AbortSignal"),function(e){if(p(e))if(e.fetch){var t=function(e){"function"==typeof e&&(e={fetch:e});var t=e,r=t.fetch,n=t.Request,o=void 0===n?r.Request:n,i=t.AbortController,s=t.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL,a=void 0!==s&&s;if(!p({fetch:r,Request:o,AbortController:i,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:a}))return{fetch:r,Request:u};var u=o;(u&&!u.prototype.hasOwnProperty("signal")||a)&&((u=function(e,t){var r;t&&t.signal&&(r=t.signal,delete t.signal);var n=new o(e,t);return r&&Object.defineProperty(n,"signal",{writable:!1,enumerable:!1,configurable:!0,value:r}),n}).prototype=o.prototype);var c=r;return{fetch:function(e,t){var r=u&&u.prototype.isPrototypeOf(e)?e.signal:t?t.signal:void 0;if(r){var n;try{n=new DOMException("Aborted","AbortError")}catch(e){(n=new Error("Aborted")).name="AbortError"}if(r.aborted)return Promise.reject(n);var o=new Promise((function(e,t){r.addEventListener("abort",(function(){return t(n)}),{once:!0})}));return t&&t.signal&&delete t.signal,Promise.race([o,c(e,t)])}return c(e,t)},Request:u}}(e),r=t.fetch,n=t.Request;e.fetch=r,e.Request=n,Object.defineProperty(e,"AbortController",{writable:!0,enumerable:!1,configurable:!0,value:f}),Object.defineProperty(e,"AbortSignal",{writable:!0,enumerable:!1,configurable:!0,value:l})}else console.warn("fetch() is not available, cannot install abortcontroller-polyfill")}("undefined"!=typeof self?self:r.g)},void 0===(o=n.call(t,r,t,e))||(e.exports=o)},81018:function(e,t){t.defaults={},t.set=function(e,r,n){var o=n||{},i=t.defaults,s=o.expires||i.expires,a=o.domain||i.domain,u=void 0!==o.path?o.path:void 0!==i.path?i.path:"/",c=void 0!==o.secure?o.secure:i.secure,l=void 0!==o.httponly?o.httponly:i.httponly,f=void 0!==o.samesite?o.samesite:i.samesite,p=s?new Date("number"==typeof s?(new Date).getTime()+864e5*s:s):0;document.cookie=e.replace(/[^+#$&^`|]/g,encodeURIComponent).replace("(","%28").replace(")","%29")+"="+r.replace(/[^+#$&/:<-\[\]-}]/g,encodeURIComponent)+(p&&p.getTime()>=0?";expires="+p.toUTCString():"")+(a?";domain="+a:"")+(u?";path="+u:"")+(c?";secure":"")+(l?";httponly":"")+(f?";samesite="+f:"")},t.get=function(e){for(var t=document.cookie.split(";");t.length;){var r=t.pop(),n=r.indexOf("=");if(n=n<0?r.length:n,decodeURIComponent(r.slice(0,n).replace(/^\s+/,""))===e)return decodeURIComponent(r.slice(n+1))}return null},t.erase=function(e,r){t.set(e,"",{expires:-1,domain:r&&r.domain,path:r&&r.path,secure:0,httponly:0})},t.all=function(){for(var e={},t=document.cookie.split(";");t.length;){var r=t.pop(),n=r.indexOf("=");n=n<0?r.length:n,e[decodeURIComponent(r.slice(0,n).replace(/^\s+/,""))]=decodeURIComponent(r.slice(n+1))}return e}},30228:function(e){"use strict";var t=Object.prototype.hasOwnProperty,r="~";function n(){}function o(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function i(e,t,n,i,s){if("function"!=typeof n)throw new TypeError("The listener must be a function");var a=new o(n,i||e,s),u=r?r+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],a]:e._events[u].push(a):(e._events[u]=a,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function a(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),a.prototype.eventNames=function(){var e,n,o=[];if(0===this._eventsCount)return o;for(n in e=this._events)t.call(e,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},a.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,s=new Array(i);o<i;o++)s[o]=n[o].fn;return s},a.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},a.prototype.emit=function(e,t,n,o,i,s){var a=r?r+e:e;if(!this._events[a])return!1;var u,c,l=this._events[a],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){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,o),!0;case 5:return l.fn.call(l.context,t,n,o,i),!0;case 6:return l.fn.call(l.context,t,n,o,i,s),!0}for(c=1,u=new Array(f-1);c<f;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var p,d=l.length;for(c=0;c<d;c++)switch(l[c].once&&this.removeListener(e,l[c].fn,void 0,!0),f){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,t);break;case 3:l[c].fn.call(l[c].context,t,n);break;case 4:l[c].fn.call(l[c].context,t,n,o);break;default:if(!u)for(p=1,u=new Array(f-1);p<f;p++)u[p-1]=arguments[p];l[c].fn.apply(l[c].context,u)}}return!0},a.prototype.on=function(e,t,r){return i(this,e,t,r,!1)},a.prototype.once=function(e,t,r){return i(this,e,t,r,!0)},a.prototype.removeListener=function(e,t,n,o){var i=r?r+e:e;if(!this._events[i])return this;if(!t)return s(this,i),this;var a=this._events[i];if(a.fn)a.fn!==t||o&&!a.once||n&&a.context!==n||s(this,i);else{for(var u=0,c=[],l=a.length;u<l;u++)(a[u].fn!==t||o&&!a[u].once||n&&a[u].context!==n)&&c.push(a[u]);c.length?this._events[i]=1===c.length?c[0]:c:s(this,i)}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new n,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=r,a.EventEmitter=a,e.exports=a},42681:function(e,t,r){var n;!function(o){"use strict";function i(e){var r=e&&e.Promise||o.Promise,n=e&&e.XMLHttpRequest||o.XMLHttpRequest;return function(){var e=Object.create(o,{fetch:{value:void 0,writable:!0}});return function(t){var o=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==o&&o,i="URLSearchParams"in o,s="Symbol"in o&&"iterator"in Symbol,a="FileReader"in o&&"Blob"in o&&function(){try{return new Blob,!0}catch(e){return!1}}(),u="FormData"in o,c="ArrayBuffer"in o;if(c)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],f=ArrayBuffer.isView||function(e){return e&&l.indexOf(Object.prototype.toString.call(e))>-1};function p(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function d(e){return"string"!=typeof e&&(e=String(e)),e}function h(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return s&&(t[Symbol.iterator]=function(){return t}),t}function v(e){this.map={},e instanceof v?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 y(e){if(e.bodyUsed)return r.reject(new TypeError("Already read"));e.bodyUsed=!0}function m(e){return new r((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function g(e){var t=new FileReader,r=m(t);return t.readAsArrayBuffer(e),r}function b(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:a&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:u&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:i&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():c&&a&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=b(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c&&(ArrayBuffer.prototype.isPrototypeOf(e)||f(e))?this._bodyArrayBuffer=b(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):i&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a&&(this.blob=function(){var e=y(this);if(e)return e;if(this._bodyBlob)return r.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return r.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return r.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?y(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?r.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):r.resolve(this._bodyArrayBuffer)):this.blob().then(g)}),this.text=function(){var e,t,n,o=y(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=m(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return r.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return r.resolve(this._bodyText)},u&&(this.formData=function(){return this.text().then(j)}),this.json=function(){return this.text().then(JSON.parse)},this}v.prototype.append=function(e,t){e=p(e),t=d(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},v.prototype.delete=function(e){delete this.map[p(e)]},v.prototype.get=function(e){return e=p(e),this.has(e)?this.map[e]:null},v.prototype.has=function(e){return this.map.hasOwnProperty(p(e))},v.prototype.set=function(e,t){this.map[p(e)]=d(t)},v.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},v.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),h(e)},v.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),h(e)},v.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),h(e)},s&&(v.prototype[Symbol.iterator]=v.prototype.entries);var w=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function O(e,t){if(!(this instanceof O))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,o=(t=t||{}).body;if(e instanceof O){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new v(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=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 v(t.headers)),this.method=(r=t.method||this.method||"GET",n=r.toUpperCase(),w.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function j(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}})),t}function A(e,t){if(!(this instanceof A))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');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:"",this.headers=new v(t.headers),this.url=t.url||"",this._initBody(e)}O.prototype.clone=function(){return new O(this,{body:this._bodyInit})},_.call(O.prototype),_.call(A.prototype),A.prototype.clone=function(){return new A(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new v(this.headers),url:this.url})},A.error=function(){var e=new A(null,{status:0,statusText:""});return e.type="error",e};var P=[301,302,303,307,308];A.redirect=function(e,t){if(-1===P.indexOf(t))throw new RangeError("Invalid status code");return new A(null,{status:t,headers:{location:e}})},t.DOMException=o.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function x(e,i){return new r((function(r,s){var u=new O(e,i);if(u.signal&&u.signal.aborted)return s(new t.DOMException("Aborted","AbortError"));var l=new n;function f(){l.abort()}l.onload=function(){var e,t,n={status:l.status,statusText:l.statusText,headers:(e=l.getAllResponseHeaders()||"",t=new v,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();t.append(n,o)}})),t)};n.url="responseURL"in l?l.responseURL:n.headers.get("X-Request-URL");var o="response"in l?l.response:l.responseText;setTimeout((function(){r(new A(o,n))}),0)},l.onerror=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},l.ontimeout=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},l.onabort=function(){setTimeout((function(){s(new t.DOMException("Aborted","AbortError"))}),0)},l.open(u.method,function(e){try{return""===e&&o.location.href?o.location.href:e}catch(t){return e}}(u.url),!0),"include"===u.credentials?l.withCredentials=!0:"omit"===u.credentials&&(l.withCredentials=!1),"responseType"in l&&(a?l.responseType="blob":c&&u.headers.get("Content-Type")&&-1!==u.headers.get("Content-Type").indexOf("application/octet-stream")&&(l.responseType="arraybuffer")),!i||"object"!=typeof i.headers||i.headers instanceof v?u.headers.forEach((function(e,t){l.setRequestHeader(t,e)})):Object.getOwnPropertyNames(i.headers).forEach((function(e){l.setRequestHeader(e,d(i.headers[e]))})),u.signal&&(u.signal.addEventListener("abort",f),l.onreadystatechange=function(){4===l.readyState&&u.signal.removeEventListener("abort",f)}),l.send(void 0===u._bodyInit?null:u._bodyInit)}))}x.polyfill=!0,o.fetch||(o.fetch=x,o.Headers=v,o.Request=O,o.Response=A),t.Headers=v,t.Request=O,t.Response=A,t.fetch=x,Object.defineProperty(t,"__esModule",{value:!0})}(t),{fetch:e.fetch,Headers:e.Headers,Request:e.Request,Response:e.Response,DOMException:e.DOMException}}()}void 0===(n=function(){return i}.call(t,r,t,e))||(e.exports=n)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==r.g?r.g:this)},51873:function(e,t,r){var n=r(9325).Symbol;e.exports=n},34932:function(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}},61074:function(e){e.exports=function(e){return e.split("")}},2523:function(e){e.exports=function(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},72552:function(e,t,r){var n=r(51873),o=r(659),i=r(59350),s=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?o(e):i(e)}},96131:function(e,t,r){var n=r(2523),o=r(85463),i=r(76959);e.exports=function(e,t,r){return t==t?i(e,t,r):n(e,o,r)}},85463:function(e){e.exports=function(e){return e!=e}},25160:function(e){e.exports=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=e[n+t];return i}},77556:function(e,t,r){var n=r(51873),o=r(34932),i=r(56449),s=r(44394),a=n?n.prototype:void 0,u=a?a.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(s(t))return u?u.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},54128:function(e,t,r){var n=r(31800),o=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(o,""):e}},28754:function(e,t,r){var n=r(25160);e.exports=function(e,t,r){var o=e.length;return r=void 0===r?o:r,!t&&r>=o?e:n(e,t,r)}},23875:function(e,t,r){var n=r(96131);e.exports=function(e,t){for(var r=e.length;r--&&n(t,e[r],0)>-1;);return r}},28380:function(e,t,r){var n=r(96131);e.exports=function(e,t){for(var r=-1,o=e.length;++r<o&&n(t,e[r],0)>-1;);return r}},34840:function(e,t,r){var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},659:function(e,t,r){var n=r(51873),o=Object.prototype,i=o.hasOwnProperty,s=o.toString,a=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(e){}var o=s.call(e);return n&&(t?e[a]=r:delete e[a]),o}},49698:function(e){var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},59350:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9325:function(e,t,r){var n=r(34840),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},76959:function(e){e.exports=function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}},63912:function(e,t,r){var n=r(61074),o=r(49698),i=r(42054);e.exports=function(e){return o(e)?i(e):n(e)}},31800:function(e){var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},42054:function(e){var t="\\ud800-\\udfff",r="["+t+"]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+t+"]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+n+"|"+o+")?",c="[\\ufe0e\\ufe0f]?",l=c+u+"(?:\\u200d(?:"+[i,s,a].join("|")+")"+c+u+")*",f="(?:"+[i+n+"?",n,s,a,r].join("|")+")",p=RegExp(o+"(?="+o+")|"+f+l,"g");e.exports=function(e){return e.match(p)||[]}},56449:function(e){var t=Array.isArray;e.exports=t},40346:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},44394:function(e,t,r){var n=r(72552),o=r(40346);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},2543:function(e,t,r){var n;e=r.nmd(e),function(){var o,i="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",u=32,c=128,l=1/0,f=9007199254740991,p=NaN,d=4294967295,h=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],v="[object Arguments]",y="[object Array]",m="[object Boolean]",g="[object Date]",b="[object Error]",_="[object Function]",w="[object GeneratorFunction]",O="[object Map]",j="[object Number]",A="[object Object]",P="[object Promise]",x="[object RegExp]",k="[object Set]",U="[object String]",E="[object Symbol]",R="[object WeakMap]",C="[object ArrayBuffer]",T="[object DataView]",S="[object Float32Array]",I="[object Float64Array]",F="[object Int8Array]",$="[object Int16Array]",D="[object Int32Array]",L="[object Uint8Array]",N="[object Uint8ClampedArray]",M="[object Uint16Array]",q="[object Uint32Array]",B=/\b__p \+= '';/g,z=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,V=/[&<>"']/g,G=RegExp(H.source),J=RegExp(V.source),Y=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,re=RegExp(te.source),ne=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,me=/^(?:0|[1-9]\d*)$/,ge=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,we="\\ud800-\\udfff",Oe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",je="\\u2700-\\u27bf",Ae="a-z\\xdf-\\xf6\\xf8-\\xff",Pe="A-Z\\xc0-\\xd6\\xd8-\\xde",xe="\\ufe0e\\ufe0f",ke="\\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",Ue="["+we+"]",Ee="["+ke+"]",Re="["+Oe+"]",Ce="\\d+",Te="["+je+"]",Se="["+Ae+"]",Ie="[^"+we+ke+Ce+je+Ae+Pe+"]",Fe="\\ud83c[\\udffb-\\udfff]",$e="[^"+we+"]",De="(?:\\ud83c[\\udde6-\\uddff]){2}",Le="[\\ud800-\\udbff][\\udc00-\\udfff]",Ne="["+Pe+"]",Me="\\u200d",qe="(?:"+Se+"|"+Ie+")",Be="(?:"+Ne+"|"+Ie+")",ze="(?:['’](?:d|ll|m|re|s|t|ve))?",We="(?:['’](?:D|LL|M|RE|S|T|VE))?",He="(?:"+Re+"|"+Fe+")?",Ve="["+xe+"]?",Ge=Ve+He+"(?:"+Me+"(?:"+[$e,De,Le].join("|")+")"+Ve+He+")*",Je="(?:"+[Te,De,Le].join("|")+")"+Ge,Ye="(?:"+[$e+Re+"?",Re,De,Le,Ue].join("|")+")",Xe=RegExp("['’]","g"),Ke=RegExp(Re,"g"),Ze=RegExp(Fe+"(?="+Fe+")|"+Ye+Ge,"g"),Qe=RegExp([Ne+"?"+Se+"+"+ze+"(?="+[Ee,Ne,"$"].join("|")+")",Be+"+"+We+"(?="+[Ee,Ne+qe,"$"].join("|")+")",Ne+"?"+qe+"+"+ze,Ne+"+"+We,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ce,Je].join("|"),"g"),et=RegExp("["+Me+we+Oe+xe+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],nt=-1,ot={};ot[S]=ot[I]=ot[F]=ot[$]=ot[D]=ot[L]=ot[N]=ot[M]=ot[q]=!0,ot[v]=ot[y]=ot[C]=ot[m]=ot[T]=ot[g]=ot[b]=ot[_]=ot[O]=ot[j]=ot[A]=ot[x]=ot[k]=ot[U]=ot[R]=!1;var it={};it[v]=it[y]=it[C]=it[T]=it[m]=it[g]=it[S]=it[I]=it[F]=it[$]=it[D]=it[O]=it[j]=it[A]=it[x]=it[k]=it[U]=it[E]=it[L]=it[N]=it[M]=it[q]=!0,it[b]=it[_]=it[R]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},at=parseFloat,ut=parseInt,ct="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,lt="object"==typeof self&&self&&self.Object===Object&&self,ft=ct||lt||Function("return this")(),pt=t&&!t.nodeType&&t,dt=pt&&e&&!e.nodeType&&e,ht=dt&&dt.exports===pt,vt=ht&&ct.process,yt=function(){try{return dt&&dt.require&&dt.require("util").types||vt&&vt.binding&&vt.binding("util")}catch(e){}}(),mt=yt&&yt.isArrayBuffer,gt=yt&&yt.isDate,bt=yt&&yt.isMap,_t=yt&&yt.isRegExp,wt=yt&&yt.isSet,Ot=yt&&yt.isTypedArray;function jt(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function At(e,t,r,n){for(var o=-1,i=null==e?0:e.length;++o<i;){var s=e[o];t(n,s,r(s),e)}return n}function Pt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function xt(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function kt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function Ut(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var s=e[r];t(s,r,e)&&(i[o++]=s)}return i}function Et(e,t){return!(null==e||!e.length)&&Nt(e,t,0)>-1}function Rt(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}function Ct(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}function Tt(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}function St(e,t,r,n){var o=-1,i=null==e?0:e.length;for(n&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}function It(e,t,r,n){var o=null==e?0:e.length;for(n&&o&&(r=e[--o]);o--;)r=t(r,e[o],o,e);return r}function Ft(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var $t=zt("length");function Dt(e,t,r){var n;return r(e,(function(e,r,o){if(t(e,r,o))return n=r,!1})),n}function Lt(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Nt(e,t,r){return t==t?function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}(e,t,r):Lt(e,qt,r)}function Mt(e,t,r,n){for(var o=r-1,i=e.length;++o<i;)if(n(e[o],t))return o;return-1}function qt(e){return e!=e}function Bt(e,t){var r=null==e?0:e.length;return r?Vt(e,t)/r:p}function zt(e){return function(t){return null==t?o:t[e]}}function Wt(e){return function(t){return null==e?o:e[t]}}function Ht(e,t,r,n,o){return o(e,(function(e,o,i){r=n?(n=!1,e):t(r,e,o,i)})),r}function Vt(e,t){for(var r,n=-1,i=e.length;++n<i;){var s=t(e[n]);s!==o&&(r=r===o?s:r+s)}return r}function Gt(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Jt(e){return e?e.slice(0,fr(e)+1).replace(ne,""):e}function Yt(e){return function(t){return e(t)}}function Xt(e,t){return Ct(t,(function(t){return e[t]}))}function Kt(e,t){return e.has(t)}function Zt(e,t){for(var r=-1,n=e.length;++r<n&&Nt(t,e[r],0)>-1;);return r}function Qt(e,t){for(var r=e.length;r--&&Nt(t,e[r],0)>-1;);return r}var er=Wt({À:"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"}),tr=Wt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function rr(e){return"\\"+st[e]}function nr(e){return et.test(e)}function or(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function ir(e,t){return function(r){return e(t(r))}}function sr(e,t){for(var r=-1,n=e.length,o=0,i=[];++r<n;){var s=e[r];s!==t&&s!==a||(e[r]=a,i[o++]=r)}return i}function ar(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}function ur(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=[e,e]})),r}function cr(e){return nr(e)?function(e){for(var t=Ze.lastIndex=0;Ze.test(e);)++t;return t}(e):$t(e)}function lr(e){return nr(e)?function(e){return e.match(Ze)||[]}(e):function(e){return e.split("")}(e)}function fr(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var pr=Wt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),dr=function e(t){var r,n=(t=null==t?ft:dr.defaults(ft.Object(),t,dr.pick(ft,rt))).Array,oe=t.Date,we=t.Error,Oe=t.Function,je=t.Math,Ae=t.Object,Pe=t.RegExp,xe=t.String,ke=t.TypeError,Ue=n.prototype,Ee=Oe.prototype,Re=Ae.prototype,Ce=t["__core-js_shared__"],Te=Ee.toString,Se=Re.hasOwnProperty,Ie=0,Fe=(r=/[^.]+$/.exec(Ce&&Ce.keys&&Ce.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",$e=Re.toString,De=Te.call(Ae),Le=ft._,Ne=Pe("^"+Te.call(Se).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Me=ht?t.Buffer:o,qe=t.Symbol,Be=t.Uint8Array,ze=Me?Me.allocUnsafe:o,We=ir(Ae.getPrototypeOf,Ae),He=Ae.create,Ve=Re.propertyIsEnumerable,Ge=Ue.splice,Je=qe?qe.isConcatSpreadable:o,Ye=qe?qe.iterator:o,Ze=qe?qe.toStringTag:o,et=function(){try{var e=ci(Ae,"defineProperty");return e({},"",{}),e}catch(e){}}(),st=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,ct=oe&&oe.now!==ft.Date.now&&oe.now,lt=t.setTimeout!==ft.setTimeout&&t.setTimeout,pt=je.ceil,dt=je.floor,vt=Ae.getOwnPropertySymbols,yt=Me?Me.isBuffer:o,$t=t.isFinite,Wt=Ue.join,hr=ir(Ae.keys,Ae),vr=je.max,yr=je.min,mr=oe.now,gr=t.parseInt,br=je.random,_r=Ue.reverse,wr=ci(t,"DataView"),Or=ci(t,"Map"),jr=ci(t,"Promise"),Ar=ci(t,"Set"),Pr=ci(t,"WeakMap"),xr=ci(Ae,"create"),kr=Pr&&new Pr,Ur={},Er=Di(wr),Rr=Di(Or),Cr=Di(jr),Tr=Di(Ar),Sr=Di(Pr),Ir=qe?qe.prototype:o,Fr=Ir?Ir.valueOf:o,$r=Ir?Ir.toString:o;function Dr(e){if(ea(e)&&!zs(e)&&!(e instanceof qr)){if(e instanceof Mr)return e;if(Se.call(e,"__wrapped__"))return Li(e)}return new Mr(e)}var Lr=function(){function e(){}return function(t){if(!Qs(t))return{};if(He)return He(t);e.prototype=t;var r=new e;return e.prototype=o,r}}();function Nr(){}function Mr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function qr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Br(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function zr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Wr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Hr(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Wr;++t<r;)this.add(e[t])}function Vr(e){var t=this.__data__=new zr(e);this.size=t.size}function Gr(e,t){var r=zs(e),n=!r&&Bs(e),o=!r&&!n&&Gs(e),i=!r&&!n&&!o&&ua(e),s=r||n||o||i,a=s?Gt(e.length,xe):[],u=a.length;for(var c in e)!t&&!Se.call(e,c)||s&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||yi(c,u))||a.push(c);return a}function Jr(e){var t=e.length;return t?e[Hn(0,t-1)]:o}function Yr(e,t){return Ti(ko(e),on(t,0,e.length))}function Xr(e){return Ti(ko(e))}function Kr(e,t,r){(r!==o&&!Ns(e[t],r)||r===o&&!(t in e))&&rn(e,t,r)}function Zr(e,t,r){var n=e[t];Se.call(e,t)&&Ns(n,r)&&(r!==o||t in e)||rn(e,t,r)}function Qr(e,t){for(var r=e.length;r--;)if(Ns(e[r][0],t))return r;return-1}function en(e,t,r,n){return ln(e,(function(e,o,i){t(n,e,r(e),i)})),n}function tn(e,t){return e&&Uo(t,Ra(t),e)}function rn(e,t,r){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function nn(e,t){for(var r=-1,i=t.length,s=n(i),a=null==e;++r<i;)s[r]=a?o:Pa(e,t[r]);return s}function on(e,t,r){return e==e&&(r!==o&&(e=e<=r?e:r),t!==o&&(e=e>=t?e:t)),e}function sn(e,t,r,n,i,s){var a,u=1&t,c=2&t,l=4&t;if(r&&(a=i?r(e,n,i,s):r(e)),a!==o)return a;if(!Qs(e))return e;var f=zs(e);if(f){if(a=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&Se.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!u)return ko(e,a)}else{var p=pi(e),d=p==_||p==w;if(Gs(e))return wo(e,u);if(p==A||p==v||d&&!i){if(a=c||d?{}:hi(e),!u)return c?function(e,t){return Uo(e,fi(e),t)}(e,function(e,t){return e&&Uo(t,Ca(t),e)}(a,e)):function(e,t){return Uo(e,li(e),t)}(e,tn(a,e))}else{if(!it[p])return i?e:{};a=function(e,t,r){var n,o=e.constructor;switch(t){case C:return Oo(e);case m:case g:return new o(+e);case T:return function(e,t){var r=t?Oo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case S:case I:case F:case $:case D:case L:case N:case M:case q:return jo(e,r);case O:return new o;case j:case U:return new o(e);case x:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case k:return new o;case E:return n=e,Fr?Ae(Fr.call(n)):{}}}(e,p,u)}}s||(s=new Vr);var h=s.get(e);if(h)return h;s.set(e,a),ia(e)?e.forEach((function(n){a.add(sn(n,t,r,n,e,s))})):ta(e)&&e.forEach((function(n,o){a.set(o,sn(n,t,r,o,e,s))}));var y=f?o:(l?c?ri:ti:c?Ca:Ra)(e);return Pt(y||e,(function(n,o){y&&(n=e[o=n]),Zr(a,o,sn(n,t,r,o,e,s))})),a}function an(e,t,r){var n=r.length;if(null==e)return!n;for(e=Ae(e);n--;){var i=r[n],s=t[i],a=e[i];if(a===o&&!(i in e)||!s(a))return!1}return!0}function un(e,t,r){if("function"!=typeof e)throw new ke(i);return Ui((function(){e.apply(o,r)}),t)}function cn(e,t,r,n){var o=-1,i=Et,s=!0,a=e.length,u=[],c=t.length;if(!a)return u;r&&(t=Ct(t,Yt(r))),n?(i=Rt,s=!1):t.length>=200&&(i=Kt,s=!1,t=new Hr(t));e:for(;++o<a;){var l=e[o],f=null==r?l:r(l);if(l=n||0!==l?l:0,s&&f==f){for(var p=c;p--;)if(t[p]===f)continue e;u.push(l)}else i(t,f,n)||u.push(l)}return u}Dr.templateSettings={escape:Y,evaluate:X,interpolate:K,variable:"",imports:{_:Dr}},Dr.prototype=Nr.prototype,Dr.prototype.constructor=Dr,Mr.prototype=Lr(Nr.prototype),Mr.prototype.constructor=Mr,qr.prototype=Lr(Nr.prototype),qr.prototype.constructor=qr,Br.prototype.clear=function(){this.__data__=xr?xr(null):{},this.size=0},Br.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Br.prototype.get=function(e){var t=this.__data__;if(xr){var r=t[e];return r===s?o:r}return Se.call(t,e)?t[e]:o},Br.prototype.has=function(e){var t=this.__data__;return xr?t[e]!==o:Se.call(t,e)},Br.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=xr&&t===o?s:t,this},zr.prototype.clear=function(){this.__data__=[],this.size=0},zr.prototype.delete=function(e){var t=this.__data__,r=Qr(t,e);return!(r<0||(r==t.length-1?t.pop():Ge.call(t,r,1),--this.size,0))},zr.prototype.get=function(e){var t=this.__data__,r=Qr(t,e);return r<0?o:t[r][1]},zr.prototype.has=function(e){return Qr(this.__data__,e)>-1},zr.prototype.set=function(e,t){var r=this.__data__,n=Qr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Wr.prototype.clear=function(){this.size=0,this.__data__={hash:new Br,map:new(Or||zr),string:new Br}},Wr.prototype.delete=function(e){var t=ai(this,e).delete(e);return this.size-=t?1:0,t},Wr.prototype.get=function(e){return ai(this,e).get(e)},Wr.prototype.has=function(e){return ai(this,e).has(e)},Wr.prototype.set=function(e,t){var r=ai(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Hr.prototype.add=Hr.prototype.push=function(e){return this.__data__.set(e,s),this},Hr.prototype.has=function(e){return this.__data__.has(e)},Vr.prototype.clear=function(){this.__data__=new zr,this.size=0},Vr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Vr.prototype.get=function(e){return this.__data__.get(e)},Vr.prototype.has=function(e){return this.__data__.has(e)},Vr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof zr){var n=r.__data__;if(!Or||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Wr(n)}return r.set(e,t),this.size=r.size,this};var ln=Co(gn),fn=Co(bn,!0);function pn(e,t){var r=!0;return ln(e,(function(e,n,o){return r=!!t(e,n,o)})),r}function dn(e,t,r){for(var n=-1,i=e.length;++n<i;){var s=e[n],a=t(s);if(null!=a&&(u===o?a==a&&!aa(a):r(a,u)))var u=a,c=s}return c}function hn(e,t){var r=[];return ln(e,(function(e,n,o){t(e,n,o)&&r.push(e)})),r}function vn(e,t,r,n,o){var i=-1,s=e.length;for(r||(r=vi),o||(o=[]);++i<s;){var a=e[i];t>0&&r(a)?t>1?vn(a,t-1,r,n,o):Tt(o,a):n||(o[o.length]=a)}return o}var yn=To(),mn=To(!0);function gn(e,t){return e&&yn(e,t,Ra)}function bn(e,t){return e&&mn(e,t,Ra)}function _n(e,t){return Ut(t,(function(t){return Xs(e[t])}))}function wn(e,t){for(var r=0,n=(t=mo(t,e)).length;null!=e&&r<n;)e=e[$i(t[r++])];return r&&r==n?e:o}function On(e,t,r){var n=t(e);return zs(e)?n:Tt(n,r(e))}function jn(e){return null==e?e===o?"[object Undefined]":"[object Null]":Ze&&Ze in Ae(e)?function(e){var t=Se.call(e,Ze),r=e[Ze];try{e[Ze]=o;var n=!0}catch(e){}var i=$e.call(e);return n&&(t?e[Ze]=r:delete e[Ze]),i}(e):function(e){return $e.call(e)}(e)}function An(e,t){return e>t}function Pn(e,t){return null!=e&&Se.call(e,t)}function xn(e,t){return null!=e&&t in Ae(e)}function kn(e,t,r){for(var i=r?Rt:Et,s=e[0].length,a=e.length,u=a,c=n(a),l=1/0,f=[];u--;){var p=e[u];u&&t&&(p=Ct(p,Yt(t))),l=yr(p.length,l),c[u]=!r&&(t||s>=120&&p.length>=120)?new Hr(u&&p):o}p=e[0];var d=-1,h=c[0];e:for(;++d<s&&f.length<l;){var v=p[d],y=t?t(v):v;if(v=r||0!==v?v:0,!(h?Kt(h,y):i(f,y,r))){for(u=a;--u;){var m=c[u];if(!(m?Kt(m,y):i(e[u],y,r)))continue e}h&&h.push(y),f.push(v)}}return f}function Un(e,t,r){var n=null==(e=Pi(e,t=mo(t,e)))?e:e[$i(Yi(t))];return null==n?o:jt(n,e,r)}function En(e){return ea(e)&&jn(e)==v}function Rn(e,t,r,n,i){return e===t||(null==e||null==t||!ea(e)&&!ea(t)?e!=e&&t!=t:function(e,t,r,n,i,s){var a=zs(e),u=zs(t),c=a?y:pi(e),l=u?y:pi(t),f=(c=c==v?A:c)==A,p=(l=l==v?A:l)==A,d=c==l;if(d&&Gs(e)){if(!Gs(t))return!1;a=!0,f=!1}if(d&&!f)return s||(s=new Vr),a||ua(e)?Qo(e,t,r,n,i,s):function(e,t,r,n,o,i,s){switch(r){case T:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case C:return!(e.byteLength!=t.byteLength||!i(new Be(e),new Be(t)));case m:case g:case j:return Ns(+e,+t);case b:return e.name==t.name&&e.message==t.message;case x:case U:return e==t+"";case O:var a=or;case k:var u=1&n;if(a||(a=ar),e.size!=t.size&&!u)return!1;var c=s.get(e);if(c)return c==t;n|=2,s.set(e,t);var l=Qo(a(e),a(t),n,o,i,s);return s.delete(e),l;case E:if(Fr)return Fr.call(e)==Fr.call(t)}return!1}(e,t,c,r,n,i,s);if(!(1&r)){var h=f&&Se.call(e,"__wrapped__"),_=p&&Se.call(t,"__wrapped__");if(h||_){var w=h?e.value():e,P=_?t.value():t;return s||(s=new Vr),i(w,P,r,n,s)}}return!!d&&(s||(s=new Vr),function(e,t,r,n,i,s){var a=1&r,u=ti(e),c=u.length;if(c!=ti(t).length&&!a)return!1;for(var l=c;l--;){var f=u[l];if(!(a?f in t:Se.call(t,f)))return!1}var p=s.get(e),d=s.get(t);if(p&&d)return p==t&&d==e;var h=!0;s.set(e,t),s.set(t,e);for(var v=a;++l<c;){var y=e[f=u[l]],m=t[f];if(n)var g=a?n(m,y,f,t,e,s):n(y,m,f,e,t,s);if(!(g===o?y===m||i(y,m,r,n,s):g)){h=!1;break}v||(v="constructor"==f)}if(h&&!v){var b=e.constructor,_=t.constructor;b==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof _&&_ instanceof _||(h=!1)}return s.delete(e),s.delete(t),h}(e,t,r,n,i,s))}(e,t,r,n,Rn,i))}function Cn(e,t,r,n){var i=r.length,s=i,a=!n;if(null==e)return!s;for(e=Ae(e);i--;){var u=r[i];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<s;){var c=(u=r[i])[0],l=e[c],f=u[1];if(a&&u[2]){if(l===o&&!(c in e))return!1}else{var p=new Vr;if(n)var d=n(l,f,c,e,t,p);if(!(d===o?Rn(f,l,3,n,p):d))return!1}}return!0}function Tn(e){return!(!Qs(e)||(t=e,Fe&&Fe in t))&&(Xs(e)?Ne:ve).test(Di(e));var t}function Sn(e){return"function"==typeof e?e:null==e?ru:"object"==typeof e?zs(e)?Ln(e[0],e[1]):Dn(e):fu(e)}function In(e){if(!wi(e))return hr(e);var t=[];for(var r in Ae(e))Se.call(e,r)&&"constructor"!=r&&t.push(r);return t}function Fn(e,t){return e<t}function $n(e,t){var r=-1,o=Hs(e)?n(e.length):[];return ln(e,(function(e,n,i){o[++r]=t(e,n,i)})),o}function Dn(e){var t=ui(e);return 1==t.length&&t[0][2]?ji(t[0][0],t[0][1]):function(r){return r===e||Cn(r,e,t)}}function Ln(e,t){return gi(e)&&Oi(t)?ji($i(e),t):function(r){var n=Pa(r,e);return n===o&&n===t?xa(r,e):Rn(t,n,3)}}function Nn(e,t,r,n,i){e!==t&&yn(t,(function(s,a){if(i||(i=new Vr),Qs(s))!function(e,t,r,n,i,s,a){var u=xi(e,r),c=xi(t,r),l=a.get(c);if(l)Kr(e,r,l);else{var f=s?s(u,c,r+"",e,t,a):o,p=f===o;if(p){var d=zs(c),h=!d&&Gs(c),v=!d&&!h&&ua(c);f=c,d||h||v?zs(u)?f=u:Vs(u)?f=ko(u):h?(p=!1,f=wo(c,!0)):v?(p=!1,f=jo(c,!0)):f=[]:na(c)||Bs(c)?(f=u,Bs(u)?f=ya(u):Qs(u)&&!Xs(u)||(f=hi(c))):p=!1}p&&(a.set(c,f),i(f,c,n,s,a),a.delete(c)),Kr(e,r,f)}}(e,t,a,r,Nn,n,i);else{var u=n?n(xi(e,a),s,a+"",e,t,i):o;u===o&&(u=s),Kr(e,a,u)}}),Ca)}function Mn(e,t){var r=e.length;if(r)return yi(t+=t<0?r:0,r)?e[t]:o}function qn(e,t,r){t=t.length?Ct(t,(function(e){return zs(e)?function(t){return wn(t,1===e.length?e[0]:e)}:e})):[ru];var n=-1;t=Ct(t,Yt(si()));var o=$n(e,(function(e,r,o){var i=Ct(t,(function(t){return t(e)}));return{criteria:i,index:++n,value:e}}));return function(e,t){var n=e.length;for(e.sort((function(e,t){return function(e,t,r){for(var n=-1,o=e.criteria,i=t.criteria,s=o.length,a=r.length;++n<s;){var u=Ao(o[n],i[n]);if(u)return n>=a?u:u*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)}));n--;)e[n]=e[n].value;return e}(o)}function Bn(e,t,r){for(var n=-1,o=t.length,i={};++n<o;){var s=t[n],a=wn(e,s);r(a,s)&&Xn(i,mo(s,e),a)}return i}function zn(e,t,r,n){var o=n?Mt:Nt,i=-1,s=t.length,a=e;for(e===t&&(t=ko(t)),r&&(a=Ct(e,Yt(r)));++i<s;)for(var u=0,c=t[i],l=r?r(c):c;(u=o(a,l,u,n))>-1;)a!==e&&Ge.call(a,u,1),Ge.call(e,u,1);return e}function Wn(e,t){for(var r=e?t.length:0,n=r-1;r--;){var o=t[r];if(r==n||o!==i){var i=o;yi(o)?Ge.call(e,o,1):uo(e,o)}}return e}function Hn(e,t){return e+dt(br()*(t-e+1))}function Vn(e,t){var r="";if(!e||t<1||t>f)return r;do{t%2&&(r+=e),(t=dt(t/2))&&(e+=e)}while(t);return r}function Gn(e,t){return Ei(Ai(e,t,ru),e+"")}function Jn(e){return Jr(Na(e))}function Yn(e,t){var r=Na(e);return Ti(r,on(t,0,r.length))}function Xn(e,t,r,n){if(!Qs(e))return e;for(var i=-1,s=(t=mo(t,e)).length,a=s-1,u=e;null!=u&&++i<s;){var c=$i(t[i]),l=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=a){var f=u[c];(l=n?n(f,c,u):o)===o&&(l=Qs(f)?f:yi(t[i+1])?[]:{})}Zr(u,c,l),u=u[c]}return e}var Kn=kr?function(e,t){return kr.set(e,t),e}:ru,Zn=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:Qa(t),writable:!0})}:ru;function Qn(e){return Ti(Na(e))}function eo(e,t,r){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var s=n(i);++o<i;)s[o]=e[o+t];return s}function to(e,t){var r;return ln(e,(function(e,n,o){return!(r=t(e,n,o))})),!!r}function ro(e,t,r){var n=0,o=null==e?n:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;n<o;){var i=n+o>>>1,s=e[i];null!==s&&!aa(s)&&(r?s<=t:s<t)?n=i+1:o=i}return o}return no(e,t,ru,r)}function no(e,t,r,n){var i=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=r(t))!=t,u=null===t,c=aa(t),l=t===o;i<s;){var f=dt((i+s)/2),p=r(e[f]),d=p!==o,h=null===p,v=p==p,y=aa(p);if(a)var m=n||v;else m=l?v&&(n||d):u?v&&d&&(n||!h):c?v&&d&&!h&&(n||!y):!h&&!y&&(n?p<=t:p<t);m?i=f+1:s=f}return yr(s,4294967294)}function oo(e,t){for(var r=-1,n=e.length,o=0,i=[];++r<n;){var s=e[r],a=t?t(s):s;if(!r||!Ns(a,u)){var u=a;i[o++]=0===s?0:s}}return i}function io(e){return"number"==typeof e?e:aa(e)?p:+e}function so(e){if("string"==typeof e)return e;if(zs(e))return Ct(e,so)+"";if(aa(e))return $r?$r.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ao(e,t,r){var n=-1,o=Et,i=e.length,s=!0,a=[],u=a;if(r)s=!1,o=Rt;else if(i>=200){var c=t?null:Go(e);if(c)return ar(c);s=!1,o=Kt,u=new Hr}else u=t?[]:a;e:for(;++n<i;){var l=e[n],f=t?t(l):l;if(l=r||0!==l?l:0,s&&f==f){for(var p=u.length;p--;)if(u[p]===f)continue e;t&&u.push(f),a.push(l)}else o(u,f,r)||(u!==a&&u.push(f),a.push(l))}return a}function uo(e,t){return null==(e=Pi(e,t=mo(t,e)))||delete e[$i(Yi(t))]}function co(e,t,r,n){return Xn(e,t,r(wn(e,t)),n)}function lo(e,t,r,n){for(var o=e.length,i=n?o:-1;(n?i--:++i<o)&&t(e[i],i,e););return r?eo(e,n?0:i,n?i+1:o):eo(e,n?i+1:0,n?o:i)}function fo(e,t){var r=e;return r instanceof qr&&(r=r.value()),St(t,(function(e,t){return t.func.apply(t.thisArg,Tt([e],t.args))}),r)}function po(e,t,r){var o=e.length;if(o<2)return o?ao(e[0]):[];for(var i=-1,s=n(o);++i<o;)for(var a=e[i],u=-1;++u<o;)u!=i&&(s[i]=cn(s[i]||a,e[u],t,r));return ao(vn(s,1),t,r)}function ho(e,t,r){for(var n=-1,i=e.length,s=t.length,a={};++n<i;){var u=n<s?t[n]:o;r(a,e[n],u)}return a}function vo(e){return Vs(e)?e:[]}function yo(e){return"function"==typeof e?e:ru}function mo(e,t){return zs(e)?e:gi(e,t)?[e]:Fi(ma(e))}var go=Gn;function bo(e,t,r){var n=e.length;return r=r===o?n:r,!t&&r>=n?e:eo(e,t,r)}var _o=st||function(e){return ft.clearTimeout(e)};function wo(e,t){if(t)return e.slice();var r=e.length,n=ze?ze(r):new e.constructor(r);return e.copy(n),n}function Oo(e){var t=new e.constructor(e.byteLength);return new Be(t).set(new Be(e)),t}function jo(e,t){var r=t?Oo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Ao(e,t){if(e!==t){var r=e!==o,n=null===e,i=e==e,s=aa(e),a=t!==o,u=null===t,c=t==t,l=aa(t);if(!u&&!l&&!s&&e>t||s&&a&&c&&!u&&!l||n&&a&&c||!r&&c||!i)return 1;if(!n&&!s&&!l&&e<t||l&&r&&i&&!n&&!s||u&&r&&i||!a&&i||!c)return-1}return 0}function Po(e,t,r,o){for(var i=-1,s=e.length,a=r.length,u=-1,c=t.length,l=vr(s-a,0),f=n(c+l),p=!o;++u<c;)f[u]=t[u];for(;++i<a;)(p||i<s)&&(f[r[i]]=e[i]);for(;l--;)f[u++]=e[i++];return f}function xo(e,t,r,o){for(var i=-1,s=e.length,a=-1,u=r.length,c=-1,l=t.length,f=vr(s-u,0),p=n(f+l),d=!o;++i<f;)p[i]=e[i];for(var h=i;++c<l;)p[h+c]=t[c];for(;++a<u;)(d||i<s)&&(p[h+r[a]]=e[i++]);return p}function ko(e,t){var r=-1,o=e.length;for(t||(t=n(o));++r<o;)t[r]=e[r];return t}function Uo(e,t,r,n){var i=!r;r||(r={});for(var s=-1,a=t.length;++s<a;){var u=t[s],c=n?n(r[u],e[u],u,r,e):o;c===o&&(c=e[u]),i?rn(r,u,c):Zr(r,u,c)}return r}function Eo(e,t){return function(r,n){var o=zs(r)?At:en,i=t?t():{};return o(r,e,si(n,2),i)}}function Ro(e){return Gn((function(t,r){var n=-1,i=r.length,s=i>1?r[i-1]:o,a=i>2?r[2]:o;for(s=e.length>3&&"function"==typeof s?(i--,s):o,a&&mi(r[0],r[1],a)&&(s=i<3?o:s,i=1),t=Ae(t);++n<i;){var u=r[n];u&&e(t,u,n,s)}return t}))}function Co(e,t){return function(r,n){if(null==r)return r;if(!Hs(r))return e(r,n);for(var o=r.length,i=t?o:-1,s=Ae(r);(t?i--:++i<o)&&!1!==n(s[i],i,s););return r}}function To(e){return function(t,r,n){for(var o=-1,i=Ae(t),s=n(t),a=s.length;a--;){var u=s[e?a:++o];if(!1===r(i[u],u,i))break}return t}}function So(e){return function(t){var r=nr(t=ma(t))?lr(t):o,n=r?r[0]:t.charAt(0),i=r?bo(r,1).join(""):t.slice(1);return n[e]()+i}}function Io(e){return function(t){return St(Xa(Ba(t).replace(Xe,"")),e,"")}}function Fo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Lr(e.prototype),n=e.apply(r,t);return Qs(n)?n:r}}function $o(e){return function(t,r,n){var i=Ae(t);if(!Hs(t)){var s=si(r,3);t=Ra(t),r=function(e){return s(i[e],e,i)}}var a=e(t,r,n);return a>-1?i[s?t[a]:a]:o}}function Do(e){return ei((function(t){var r=t.length,n=r,s=Mr.prototype.thru;for(e&&t.reverse();n--;){var a=t[n];if("function"!=typeof a)throw new ke(i);if(s&&!u&&"wrapper"==oi(a))var u=new Mr([],!0)}for(n=u?n:r;++n<r;){var c=oi(a=t[n]),l="wrapper"==c?ni(a):o;u=l&&bi(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[oi(l[0])].apply(u,l[3]):1==a.length&&bi(a)?u[c]():u.thru(a)}return function(){var e=arguments,n=e[0];if(u&&1==e.length&&zs(n))return u.plant(n).value();for(var o=0,i=r?t[o].apply(this,e):n;++o<r;)i=t[o].call(this,i);return i}}))}function Lo(e,t,r,i,s,a,u,l,f,p){var d=t&c,h=1&t,v=2&t,y=24&t,m=512&t,g=v?o:Fo(e);return function c(){for(var b=arguments.length,_=n(b),w=b;w--;)_[w]=arguments[w];if(y)var O=ii(c),j=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(_,O);if(i&&(_=Po(_,i,s,y)),a&&(_=xo(_,a,u,y)),b-=j,y&&b<p){var A=sr(_,O);return Ho(e,t,Lo,c.placeholder,r,_,A,l,f,p-b)}var P=h?r:this,x=v?P[e]:e;return b=_.length,l?_=function(e,t){for(var r=e.length,n=yr(t.length,r),i=ko(e);n--;){var s=t[n];e[n]=yi(s,r)?i[s]:o}return e}(_,l):m&&b>1&&_.reverse(),d&&f<b&&(_.length=f),this&&this!==ft&&this instanceof c&&(x=g||Fo(x)),x.apply(P,_)}}function No(e,t){return function(r,n){return function(e,t,r,n){return gn(e,(function(e,o,i){t(n,r(e),o,i)})),n}(r,e,t(n),{})}}function Mo(e,t){return function(r,n){var i;if(r===o&&n===o)return t;if(r!==o&&(i=r),n!==o){if(i===o)return n;"string"==typeof r||"string"==typeof n?(r=so(r),n=so(n)):(r=io(r),n=io(n)),i=e(r,n)}return i}}function qo(e){return ei((function(t){return t=Ct(t,Yt(si())),Gn((function(r){var n=this;return e(t,(function(e){return jt(e,n,r)}))}))}))}function Bo(e,t){var r=(t=t===o?" ":so(t)).length;if(r<2)return r?Vn(t,e):t;var n=Vn(t,pt(e/cr(t)));return nr(t)?bo(lr(n),0,e).join(""):n.slice(0,e)}function zo(e){return function(t,r,i){return i&&"number"!=typeof i&&mi(t,r,i)&&(r=i=o),t=pa(t),r===o?(r=t,t=0):r=pa(r),function(e,t,r,o){for(var i=-1,s=vr(pt((t-e)/(r||1)),0),a=n(s);s--;)a[o?s:++i]=e,e+=r;return a}(t,r,i=i===o?t<r?1:-1:pa(i),e)}}function Wo(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=va(t),r=va(r)),e(t,r)}}function Ho(e,t,r,n,i,s,a,c,l,f){var p=8&t;t|=p?u:64,4&(t&=~(p?64:u))||(t&=-4);var d=[e,t,i,p?s:o,p?a:o,p?o:s,p?o:a,c,l,f],h=r.apply(o,d);return bi(e)&&ki(h,d),h.placeholder=n,Ri(h,e,t)}function Vo(e){var t=je[e];return function(e,r){if(e=va(e),(r=null==r?0:yr(da(r),292))&&$t(e)){var n=(ma(e)+"e").split("e");return+((n=(ma(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var Go=Ar&&1/ar(new Ar([,-0]))[1]==l?function(e){return new Ar(e)}:au;function Jo(e){return function(t){var r=pi(t);return r==O?or(t):r==k?ur(t):function(e,t){return Ct(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Yo(e,t,r,s,l,f,p,d){var h=2&t;if(!h&&"function"!=typeof e)throw new ke(i);var v=s?s.length:0;if(v||(t&=-97,s=l=o),p=p===o?p:vr(da(p),0),d=d===o?d:da(d),v-=l?l.length:0,64&t){var y=s,m=l;s=l=o}var g=h?o:ni(e),b=[e,t,r,s,l,y,m,f,p,d];if(g&&function(e,t){var r=e[1],n=t[1],o=r|n,i=o<131,s=n==c&&8==r||n==c&&256==r&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(!i&&!s)return e;1&n&&(e[2]=t[2],o|=1&r?0:4);var u=t[3];if(u){var l=e[3];e[3]=l?Po(l,u,t[4]):u,e[4]=l?sr(e[3],a):t[4]}(u=t[5])&&(l=e[5],e[5]=l?xo(l,u,t[6]):u,e[6]=l?sr(e[5],a):t[6]),(u=t[7])&&(e[7]=u),n&c&&(e[8]=null==e[8]?t[8]:yr(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(b,g),e=b[0],t=b[1],r=b[2],s=b[3],l=b[4],!(d=b[9]=b[9]===o?h?0:e.length:vr(b[9]-v,0))&&24&t&&(t&=-25),t&&1!=t)_=8==t||16==t?function(e,t,r){var i=Fo(e);return function s(){for(var a=arguments.length,u=n(a),c=a,l=ii(s);c--;)u[c]=arguments[c];var f=a<3&&u[0]!==l&&u[a-1]!==l?[]:sr(u,l);return(a-=f.length)<r?Ho(e,t,Lo,s.placeholder,o,u,f,o,o,r-a):jt(this&&this!==ft&&this instanceof s?i:e,this,u)}}(e,t,d):t!=u&&33!=t||l.length?Lo.apply(o,b):function(e,t,r,o){var i=1&t,s=Fo(e);return function t(){for(var a=-1,u=arguments.length,c=-1,l=o.length,f=n(l+u),p=this&&this!==ft&&this instanceof t?s:e;++c<l;)f[c]=o[c];for(;u--;)f[c++]=arguments[++a];return jt(p,i?r:this,f)}}(e,t,r,s);else var _=function(e,t,r){var n=1&t,o=Fo(e);return function t(){return(this&&this!==ft&&this instanceof t?o:e).apply(n?r:this,arguments)}}(e,t,r);return Ri((g?Kn:ki)(_,b),e,t)}function Xo(e,t,r,n){return e===o||Ns(e,Re[r])&&!Se.call(n,r)?t:e}function Ko(e,t,r,n,i,s){return Qs(e)&&Qs(t)&&(s.set(t,e),Nn(e,t,o,Ko,s),s.delete(t)),e}function Zo(e){return na(e)?o:e}function Qo(e,t,r,n,i,s){var a=1&r,u=e.length,c=t.length;if(u!=c&&!(a&&c>u))return!1;var l=s.get(e),f=s.get(t);if(l&&f)return l==t&&f==e;var p=-1,d=!0,h=2&r?new Hr:o;for(s.set(e,t),s.set(t,e);++p<u;){var v=e[p],y=t[p];if(n)var m=a?n(y,v,p,t,e,s):n(v,y,p,e,t,s);if(m!==o){if(m)continue;d=!1;break}if(h){if(!Ft(t,(function(e,t){if(!Kt(h,t)&&(v===e||i(v,e,r,n,s)))return h.push(t)}))){d=!1;break}}else if(v!==y&&!i(v,y,r,n,s)){d=!1;break}}return s.delete(e),s.delete(t),d}function ei(e){return Ei(Ai(e,o,Wi),e+"")}function ti(e){return On(e,Ra,li)}function ri(e){return On(e,Ca,fi)}var ni=kr?function(e){return kr.get(e)}:au;function oi(e){for(var t=e.name+"",r=Ur[t],n=Se.call(Ur,t)?r.length:0;n--;){var o=r[n],i=o.func;if(null==i||i==e)return o.name}return t}function ii(e){return(Se.call(Dr,"placeholder")?Dr:e).placeholder}function si(){var e=Dr.iteratee||nu;return e=e===nu?Sn:e,arguments.length?e(arguments[0],arguments[1]):e}function ai(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function ui(e){for(var t=Ra(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,Oi(o)]}return t}function ci(e,t){var r=function(e,t){return null==e?o:e[t]}(e,t);return Tn(r)?r:o}var li=vt?function(e){return null==e?[]:(e=Ae(e),Ut(vt(e),(function(t){return Ve.call(e,t)})))}:hu,fi=vt?function(e){for(var t=[];e;)Tt(t,li(e)),e=We(e);return t}:hu,pi=jn;function di(e,t,r){for(var n=-1,o=(t=mo(t,e)).length,i=!1;++n<o;){var s=$i(t[n]);if(!(i=null!=e&&r(e,s)))break;e=e[s]}return i||++n!=o?i:!!(o=null==e?0:e.length)&&Zs(o)&&yi(s,o)&&(zs(e)||Bs(e))}function hi(e){return"function"!=typeof e.constructor||wi(e)?{}:Lr(We(e))}function vi(e){return zs(e)||Bs(e)||!!(Je&&e&&e[Je])}function yi(e,t){var r=typeof e;return!!(t=null==t?f:t)&&("number"==r||"symbol"!=r&&me.test(e))&&e>-1&&e%1==0&&e<t}function mi(e,t,r){if(!Qs(r))return!1;var n=typeof t;return!!("number"==n?Hs(r)&&yi(t,r.length):"string"==n&&t in r)&&Ns(r[t],e)}function gi(e,t){if(zs(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!aa(e))||Q.test(e)||!Z.test(e)||null!=t&&e in Ae(t)}function bi(e){var t=oi(e),r=Dr[t];if("function"!=typeof r||!(t in qr.prototype))return!1;if(e===r)return!0;var n=ni(r);return!!n&&e===n[0]}(wr&&pi(new wr(new ArrayBuffer(1)))!=T||Or&&pi(new Or)!=O||jr&&pi(jr.resolve())!=P||Ar&&pi(new Ar)!=k||Pr&&pi(new Pr)!=R)&&(pi=function(e){var t=jn(e),r=t==A?e.constructor:o,n=r?Di(r):"";if(n)switch(n){case Er:return T;case Rr:return O;case Cr:return P;case Tr:return k;case Sr:return R}return t});var _i=Ce?Xs:vu;function wi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Re)}function Oi(e){return e==e&&!Qs(e)}function ji(e,t){return function(r){return null!=r&&r[e]===t&&(t!==o||e in Ae(r))}}function Ai(e,t,r){return t=vr(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,s=vr(o.length-t,0),a=n(s);++i<s;)a[i]=o[t+i];i=-1;for(var u=n(t+1);++i<t;)u[i]=o[i];return u[t]=r(a),jt(e,this,u)}}function Pi(e,t){return t.length<2?e:wn(e,eo(t,0,-1))}function xi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ki=Ci(Kn),Ui=lt||function(e,t){return ft.setTimeout(e,t)},Ei=Ci(Zn);function Ri(e,t,r){var n=t+"";return Ei(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return Pt(h,(function(r){var n="_."+r[0];t&r[1]&&!Et(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ae):[]}(n),r)))}function Ci(e){var t=0,r=0;return function(){var n=mr(),i=16-(n-r);if(r=n,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ti(e,t){var r=-1,n=e.length,i=n-1;for(t=t===o?n:t;++r<t;){var s=Hn(r,i),a=e[s];e[s]=e[r],e[r]=a}return e.length=t,e}var Si,Ii,Fi=(Si=Ss((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,r,n,o){t.push(n?o.replace(le,"$1"):r||e)})),t}),(function(e){return 500===Ii.size&&Ii.clear(),e})),Ii=Si.cache,Si);function $i(e){if("string"==typeof e||aa(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Di(e){if(null!=e){try{return Te.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Li(e){if(e instanceof qr)return e.clone();var t=new Mr(e.__wrapped__,e.__chain__);return t.__actions__=ko(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ni=Gn((function(e,t){return Vs(e)?cn(e,vn(t,1,Vs,!0)):[]})),Mi=Gn((function(e,t){var r=Yi(t);return Vs(r)&&(r=o),Vs(e)?cn(e,vn(t,1,Vs,!0),si(r,2)):[]})),qi=Gn((function(e,t){var r=Yi(t);return Vs(r)&&(r=o),Vs(e)?cn(e,vn(t,1,Vs,!0),o,r):[]}));function Bi(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:da(r);return o<0&&(o=vr(n+o,0)),Lt(e,si(t,3),o)}function zi(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=n-1;return r!==o&&(i=da(r),i=r<0?vr(n+i,0):yr(i,n-1)),Lt(e,si(t,3),i,!0)}function Wi(e){return null!=e&&e.length?vn(e,1):[]}function Hi(e){return e&&e.length?e[0]:o}var Vi=Gn((function(e){var t=Ct(e,vo);return t.length&&t[0]===e[0]?kn(t):[]})),Gi=Gn((function(e){var t=Yi(e),r=Ct(e,vo);return t===Yi(r)?t=o:r.pop(),r.length&&r[0]===e[0]?kn(r,si(t,2)):[]})),Ji=Gn((function(e){var t=Yi(e),r=Ct(e,vo);return(t="function"==typeof t?t:o)&&r.pop(),r.length&&r[0]===e[0]?kn(r,o,t):[]}));function Yi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Xi=Gn(Ki);function Ki(e,t){return e&&e.length&&t&&t.length?zn(e,t):e}var Zi=ei((function(e,t){var r=null==e?0:e.length,n=nn(e,t);return Wn(e,Ct(t,(function(e){return yi(e,r)?+e:e})).sort(Ao)),n}));function Qi(e){return null==e?e:_r.call(e)}var es=Gn((function(e){return ao(vn(e,1,Vs,!0))})),ts=Gn((function(e){var t=Yi(e);return Vs(t)&&(t=o),ao(vn(e,1,Vs,!0),si(t,2))})),rs=Gn((function(e){var t=Yi(e);return t="function"==typeof t?t:o,ao(vn(e,1,Vs,!0),o,t)}));function ns(e){if(!e||!e.length)return[];var t=0;return e=Ut(e,(function(e){if(Vs(e))return t=vr(e.length,t),!0})),Gt(t,(function(t){return Ct(e,zt(t))}))}function os(e,t){if(!e||!e.length)return[];var r=ns(e);return null==t?r:Ct(r,(function(e){return jt(t,o,e)}))}var is=Gn((function(e,t){return Vs(e)?cn(e,t):[]})),ss=Gn((function(e){return po(Ut(e,Vs))})),as=Gn((function(e){var t=Yi(e);return Vs(t)&&(t=o),po(Ut(e,Vs),si(t,2))})),us=Gn((function(e){var t=Yi(e);return t="function"==typeof t?t:o,po(Ut(e,Vs),o,t)})),cs=Gn(ns),ls=Gn((function(e){var t=e.length,r=t>1?e[t-1]:o;return r="function"==typeof r?(e.pop(),r):o,os(e,r)}));function fs(e){var t=Dr(e);return t.__chain__=!0,t}function ps(e,t){return t(e)}var ds=ei((function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,i=function(t){return nn(t,e)};return!(t>1||this.__actions__.length)&&n instanceof qr&&yi(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:ps,args:[i],thisArg:o}),new Mr(n,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)})),hs=Eo((function(e,t,r){Se.call(e,r)?++e[r]:rn(e,r,1)})),vs=$o(Bi),ys=$o(zi);function ms(e,t){return(zs(e)?Pt:ln)(e,si(t,3))}function gs(e,t){return(zs(e)?xt:fn)(e,si(t,3))}var bs=Eo((function(e,t,r){Se.call(e,r)?e[r].push(t):rn(e,r,[t])})),_s=Gn((function(e,t,r){var o=-1,i="function"==typeof t,s=Hs(e)?n(e.length):[];return ln(e,(function(e){s[++o]=i?jt(t,e,r):Un(e,t,r)})),s})),ws=Eo((function(e,t,r){rn(e,r,t)}));function Os(e,t){return(zs(e)?Ct:$n)(e,si(t,3))}var js=Eo((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]})),As=Gn((function(e,t){if(null==e)return[];var r=t.length;return r>1&&mi(e,t[0],t[1])?t=[]:r>2&&mi(t[0],t[1],t[2])&&(t=[t[0]]),qn(e,vn(t,1),[])})),Ps=ct||function(){return ft.Date.now()};function xs(e,t,r){return t=r?o:t,t=e&&null==t?e.length:t,Yo(e,c,o,o,o,o,t)}function ks(e,t){var r;if("function"!=typeof t)throw new ke(i);return e=da(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=o),r}}var Us=Gn((function(e,t,r){var n=1;if(r.length){var o=sr(r,ii(Us));n|=u}return Yo(e,n,t,r,o)})),Es=Gn((function(e,t,r){var n=3;if(r.length){var o=sr(r,ii(Es));n|=u}return Yo(t,n,e,r,o)}));function Rs(e,t,r){var n,s,a,u,c,l,f=0,p=!1,d=!1,h=!0;if("function"!=typeof e)throw new ke(i);function v(t){var r=n,i=s;return n=s=o,f=t,u=e.apply(i,r)}function y(e){var r=e-l;return l===o||r>=t||r<0||d&&e-f>=a}function m(){var e=Ps();if(y(e))return g(e);c=Ui(m,function(e){var r=t-(e-l);return d?yr(r,a-(e-f)):r}(e))}function g(e){return c=o,h&&n?v(e):(n=s=o,u)}function b(){var e=Ps(),r=y(e);if(n=arguments,s=this,l=e,r){if(c===o)return function(e){return f=e,c=Ui(m,t),p?v(e):u}(l);if(d)return _o(c),c=Ui(m,t),v(l)}return c===o&&(c=Ui(m,t)),u}return t=va(t)||0,Qs(r)&&(p=!!r.leading,a=(d="maxWait"in r)?vr(va(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h),b.cancel=function(){c!==o&&_o(c),f=0,n=l=s=c=o},b.flush=function(){return c===o?u:g(Ps())},b}var Cs=Gn((function(e,t){return un(e,1,t)})),Ts=Gn((function(e,t,r){return un(e,va(t)||0,r)}));function Ss(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ke(i);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var s=e.apply(this,n);return r.cache=i.set(o,s)||i,s};return r.cache=new(Ss.Cache||Wr),r}function Is(e){if("function"!=typeof e)throw new ke(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ss.Cache=Wr;var Fs=go((function(e,t){var r=(t=1==t.length&&zs(t[0])?Ct(t[0],Yt(si())):Ct(vn(t,1),Yt(si()))).length;return Gn((function(n){for(var o=-1,i=yr(n.length,r);++o<i;)n[o]=t[o].call(this,n[o]);return jt(e,this,n)}))})),$s=Gn((function(e,t){var r=sr(t,ii($s));return Yo(e,u,o,t,r)})),Ds=Gn((function(e,t){var r=sr(t,ii(Ds));return Yo(e,64,o,t,r)})),Ls=ei((function(e,t){return Yo(e,256,o,o,o,t)}));function Ns(e,t){return e===t||e!=e&&t!=t}var Ms=Wo(An),qs=Wo((function(e,t){return e>=t})),Bs=En(function(){return arguments}())?En:function(e){return ea(e)&&Se.call(e,"callee")&&!Ve.call(e,"callee")},zs=n.isArray,Ws=mt?Yt(mt):function(e){return ea(e)&&jn(e)==C};function Hs(e){return null!=e&&Zs(e.length)&&!Xs(e)}function Vs(e){return ea(e)&&Hs(e)}var Gs=yt||vu,Js=gt?Yt(gt):function(e){return ea(e)&&jn(e)==g};function Ys(e){if(!ea(e))return!1;var t=jn(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!na(e)}function Xs(e){if(!Qs(e))return!1;var t=jn(e);return t==_||t==w||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ks(e){return"number"==typeof e&&e==da(e)}function Zs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function Qs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ea(e){return null!=e&&"object"==typeof e}var ta=bt?Yt(bt):function(e){return ea(e)&&pi(e)==O};function ra(e){return"number"==typeof e||ea(e)&&jn(e)==j}function na(e){if(!ea(e)||jn(e)!=A)return!1;var t=We(e);if(null===t)return!0;var r=Se.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Te.call(r)==De}var oa=_t?Yt(_t):function(e){return ea(e)&&jn(e)==x},ia=wt?Yt(wt):function(e){return ea(e)&&pi(e)==k};function sa(e){return"string"==typeof e||!zs(e)&&ea(e)&&jn(e)==U}function aa(e){return"symbol"==typeof e||ea(e)&&jn(e)==E}var ua=Ot?Yt(Ot):function(e){return ea(e)&&Zs(e.length)&&!!ot[jn(e)]},ca=Wo(Fn),la=Wo((function(e,t){return e<=t}));function fa(e){if(!e)return[];if(Hs(e))return sa(e)?lr(e):ko(e);if(Ye&&e[Ye])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Ye]());var t=pi(e);return(t==O?or:t==k?ar:Na)(e)}function pa(e){return e?(e=va(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function da(e){var t=pa(e),r=t%1;return t==t?r?t-r:t:0}function ha(e){return e?on(da(e),0,d):0}function va(e){if("number"==typeof e)return e;if(aa(e))return p;if(Qs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Qs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var r=he.test(e);return r||ye.test(e)?ut(e.slice(2),r?2:8):de.test(e)?p:+e}function ya(e){return Uo(e,Ca(e))}function ma(e){return null==e?"":so(e)}var ga=Ro((function(e,t){if(wi(t)||Hs(t))Uo(t,Ra(t),e);else for(var r in t)Se.call(t,r)&&Zr(e,r,t[r])})),ba=Ro((function(e,t){Uo(t,Ca(t),e)})),_a=Ro((function(e,t,r,n){Uo(t,Ca(t),e,n)})),wa=Ro((function(e,t,r,n){Uo(t,Ra(t),e,n)})),Oa=ei(nn),ja=Gn((function(e,t){e=Ae(e);var r=-1,n=t.length,i=n>2?t[2]:o;for(i&&mi(t[0],t[1],i)&&(n=1);++r<n;)for(var s=t[r],a=Ca(s),u=-1,c=a.length;++u<c;){var l=a[u],f=e[l];(f===o||Ns(f,Re[l])&&!Se.call(e,l))&&(e[l]=s[l])}return e})),Aa=Gn((function(e){return e.push(o,Ko),jt(Sa,o,e)}));function Pa(e,t,r){var n=null==e?o:wn(e,t);return n===o?r:n}function xa(e,t){return null!=e&&di(e,t,xn)}var ka=No((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=$e.call(t)),e[t]=r}),Qa(ru)),Ua=No((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=$e.call(t)),Se.call(e,t)?e[t].push(r):e[t]=[r]}),si),Ea=Gn(Un);function Ra(e){return Hs(e)?Gr(e):In(e)}function Ca(e){return Hs(e)?Gr(e,!0):function(e){if(!Qs(e))return function(e){var t=[];if(null!=e)for(var r in Ae(e))t.push(r);return t}(e);var t=wi(e),r=[];for(var n in e)("constructor"!=n||!t&&Se.call(e,n))&&r.push(n);return r}(e)}var Ta=Ro((function(e,t,r){Nn(e,t,r)})),Sa=Ro((function(e,t,r,n){Nn(e,t,r,n)})),Ia=ei((function(e,t){var r={};if(null==e)return r;var n=!1;t=Ct(t,(function(t){return t=mo(t,e),n||(n=t.length>1),t})),Uo(e,ri(e),r),n&&(r=sn(r,7,Zo));for(var o=t.length;o--;)uo(r,t[o]);return r})),Fa=ei((function(e,t){return null==e?{}:function(e,t){return Bn(e,t,(function(t,r){return xa(e,r)}))}(e,t)}));function $a(e,t){if(null==e)return{};var r=Ct(ri(e),(function(e){return[e]}));return t=si(t),Bn(e,r,(function(e,r){return t(e,r[0])}))}var Da=Jo(Ra),La=Jo(Ca);function Na(e){return null==e?[]:Xt(e,Ra(e))}var Ma=Io((function(e,t,r){return t=t.toLowerCase(),e+(r?qa(t):t)}));function qa(e){return Ya(ma(e).toLowerCase())}function Ba(e){return(e=ma(e))&&e.replace(ge,er).replace(Ke,"")}var za=Io((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),Wa=Io((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Ha=So("toLowerCase"),Va=Io((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()})),Ga=Io((function(e,t,r){return e+(r?" ":"")+Ya(t)})),Ja=Io((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Ya=So("toUpperCase");function Xa(e,t,r){return e=ma(e),(t=r?o:t)===o?function(e){return tt.test(e)}(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Ka=Gn((function(e,t){try{return jt(e,o,t)}catch(e){return Ys(e)?e:new we(e)}})),Za=ei((function(e,t){return Pt(t,(function(t){t=$i(t),rn(e,t,Us(e[t],e))})),e}));function Qa(e){return function(){return e}}var eu=Do(),tu=Do(!0);function ru(e){return e}function nu(e){return Sn("function"==typeof e?e:sn(e,1))}var ou=Gn((function(e,t){return function(r){return Un(r,e,t)}})),iu=Gn((function(e,t){return function(r){return Un(e,r,t)}}));function su(e,t,r){var n=Ra(t),o=_n(t,n);null!=r||Qs(t)&&(o.length||!n.length)||(r=t,t=e,e=this,o=_n(t,Ra(t)));var i=!(Qs(r)&&"chain"in r&&!r.chain),s=Xs(e);return Pt(o,(function(r){var n=t[r];e[r]=n,s&&(e.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=e(this.__wrapped__);return(r.__actions__=ko(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,Tt([this.value()],arguments))})})),e}function au(){}var uu=qo(Ct),cu=qo(kt),lu=qo(Ft);function fu(e){return gi(e)?zt($i(e)):function(e){return function(t){return wn(t,e)}}(e)}var pu=zo(),du=zo(!0);function hu(){return[]}function vu(){return!1}var yu,mu=Mo((function(e,t){return e+t}),0),gu=Vo("ceil"),bu=Mo((function(e,t){return e/t}),1),_u=Vo("floor"),wu=Mo((function(e,t){return e*t}),1),Ou=Vo("round"),ju=Mo((function(e,t){return e-t}),0);return Dr.after=function(e,t){if("function"!=typeof t)throw new ke(i);return e=da(e),function(){if(--e<1)return t.apply(this,arguments)}},Dr.ary=xs,Dr.assign=ga,Dr.assignIn=ba,Dr.assignInWith=_a,Dr.assignWith=wa,Dr.at=Oa,Dr.before=ks,Dr.bind=Us,Dr.bindAll=Za,Dr.bindKey=Es,Dr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return zs(e)?e:[e]},Dr.chain=fs,Dr.chunk=function(e,t,r){t=(r?mi(e,t,r):t===o)?1:vr(da(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var s=0,a=0,u=n(pt(i/t));s<i;)u[a++]=eo(e,s,s+=t);return u},Dr.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,o=[];++t<r;){var i=e[t];i&&(o[n++]=i)}return o},Dr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Tt(zs(r)?ko(r):[r],vn(t,1))},Dr.cond=function(e){var t=null==e?0:e.length,r=si();return e=t?Ct(e,(function(e){if("function"!=typeof e[1])throw new ke(i);return[r(e[0]),e[1]]})):[],Gn((function(r){for(var n=-1;++n<t;){var o=e[n];if(jt(o[0],this,r))return jt(o[1],this,r)}}))},Dr.conforms=function(e){return function(e){var t=Ra(e);return function(r){return an(r,e,t)}}(sn(e,1))},Dr.constant=Qa,Dr.countBy=hs,Dr.create=function(e,t){var r=Lr(e);return null==t?r:tn(r,t)},Dr.curry=function e(t,r,n){var i=Yo(t,8,o,o,o,o,o,r=n?o:r);return i.placeholder=e.placeholder,i},Dr.curryRight=function e(t,r,n){var i=Yo(t,16,o,o,o,o,o,r=n?o:r);return i.placeholder=e.placeholder,i},Dr.debounce=Rs,Dr.defaults=ja,Dr.defaultsDeep=Aa,Dr.defer=Cs,Dr.delay=Ts,Dr.difference=Ni,Dr.differenceBy=Mi,Dr.differenceWith=qi,Dr.drop=function(e,t,r){var n=null==e?0:e.length;return n?eo(e,(t=r||t===o?1:da(t))<0?0:t,n):[]},Dr.dropRight=function(e,t,r){var n=null==e?0:e.length;return n?eo(e,0,(t=n-(t=r||t===o?1:da(t)))<0?0:t):[]},Dr.dropRightWhile=function(e,t){return e&&e.length?lo(e,si(t,3),!0,!0):[]},Dr.dropWhile=function(e,t){return e&&e.length?lo(e,si(t,3),!0):[]},Dr.fill=function(e,t,r,n){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&mi(e,t,r)&&(r=0,n=i),function(e,t,r,n){var i=e.length;for((r=da(r))<0&&(r=-r>i?0:i+r),(n=n===o||n>i?i:da(n))<0&&(n+=i),n=r>n?0:ha(n);r<n;)e[r++]=t;return e}(e,t,r,n)):[]},Dr.filter=function(e,t){return(zs(e)?Ut:hn)(e,si(t,3))},Dr.flatMap=function(e,t){return vn(Os(e,t),1)},Dr.flatMapDeep=function(e,t){return vn(Os(e,t),l)},Dr.flatMapDepth=function(e,t,r){return r=r===o?1:da(r),vn(Os(e,t),r)},Dr.flatten=Wi,Dr.flattenDeep=function(e){return null!=e&&e.length?vn(e,l):[]},Dr.flattenDepth=function(e,t){return null!=e&&e.length?vn(e,t=t===o?1:da(t)):[]},Dr.flip=function(e){return Yo(e,512)},Dr.flow=eu,Dr.flowRight=tu,Dr.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var o=e[t];n[o[0]]=o[1]}return n},Dr.functions=function(e){return null==e?[]:_n(e,Ra(e))},Dr.functionsIn=function(e){return null==e?[]:_n(e,Ca(e))},Dr.groupBy=bs,Dr.initial=function(e){return null!=e&&e.length?eo(e,0,-1):[]},Dr.intersection=Vi,Dr.intersectionBy=Gi,Dr.intersectionWith=Ji,Dr.invert=ka,Dr.invertBy=Ua,Dr.invokeMap=_s,Dr.iteratee=nu,Dr.keyBy=ws,Dr.keys=Ra,Dr.keysIn=Ca,Dr.map=Os,Dr.mapKeys=function(e,t){var r={};return t=si(t,3),gn(e,(function(e,n,o){rn(r,t(e,n,o),e)})),r},Dr.mapValues=function(e,t){var r={};return t=si(t,3),gn(e,(function(e,n,o){rn(r,n,t(e,n,o))})),r},Dr.matches=function(e){return Dn(sn(e,1))},Dr.matchesProperty=function(e,t){return Ln(e,sn(t,1))},Dr.memoize=Ss,Dr.merge=Ta,Dr.mergeWith=Sa,Dr.method=ou,Dr.methodOf=iu,Dr.mixin=su,Dr.negate=Is,Dr.nthArg=function(e){return e=da(e),Gn((function(t){return Mn(t,e)}))},Dr.omit=Ia,Dr.omitBy=function(e,t){return $a(e,Is(si(t)))},Dr.once=function(e){return ks(2,e)},Dr.orderBy=function(e,t,r,n){return null==e?[]:(zs(t)||(t=null==t?[]:[t]),zs(r=n?o:r)||(r=null==r?[]:[r]),qn(e,t,r))},Dr.over=uu,Dr.overArgs=Fs,Dr.overEvery=cu,Dr.overSome=lu,Dr.partial=$s,Dr.partialRight=Ds,Dr.partition=js,Dr.pick=Fa,Dr.pickBy=$a,Dr.property=fu,Dr.propertyOf=function(e){return function(t){return null==e?o:wn(e,t)}},Dr.pull=Xi,Dr.pullAll=Ki,Dr.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?zn(e,t,si(r,2)):e},Dr.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?zn(e,t,o,r):e},Dr.pullAt=Zi,Dr.range=pu,Dr.rangeRight=du,Dr.rearg=Ls,Dr.reject=function(e,t){return(zs(e)?Ut:hn)(e,Is(si(t,3)))},Dr.remove=function(e,t){var r=[];if(!e||!e.length)return r;var n=-1,o=[],i=e.length;for(t=si(t,3);++n<i;){var s=e[n];t(s,n,e)&&(r.push(s),o.push(n))}return Wn(e,o),r},Dr.rest=function(e,t){if("function"!=typeof e)throw new ke(i);return Gn(e,t=t===o?t:da(t))},Dr.reverse=Qi,Dr.sampleSize=function(e,t,r){return t=(r?mi(e,t,r):t===o)?1:da(t),(zs(e)?Yr:Yn)(e,t)},Dr.set=function(e,t,r){return null==e?e:Xn(e,t,r)},Dr.setWith=function(e,t,r,n){return n="function"==typeof n?n:o,null==e?e:Xn(e,t,r,n)},Dr.shuffle=function(e){return(zs(e)?Xr:Qn)(e)},Dr.slice=function(e,t,r){var n=null==e?0:e.length;return n?(r&&"number"!=typeof r&&mi(e,t,r)?(t=0,r=n):(t=null==t?0:da(t),r=r===o?n:da(r)),eo(e,t,r)):[]},Dr.sortBy=As,Dr.sortedUniq=function(e){return e&&e.length?oo(e):[]},Dr.sortedUniqBy=function(e,t){return e&&e.length?oo(e,si(t,2)):[]},Dr.split=function(e,t,r){return r&&"number"!=typeof r&&mi(e,t,r)&&(t=r=o),(r=r===o?d:r>>>0)?(e=ma(e))&&("string"==typeof t||null!=t&&!oa(t))&&!(t=so(t))&&nr(e)?bo(lr(e),0,r):e.split(t,r):[]},Dr.spread=function(e,t){if("function"!=typeof e)throw new ke(i);return t=null==t?0:vr(da(t),0),Gn((function(r){var n=r[t],o=bo(r,0,t);return n&&Tt(o,n),jt(e,this,o)}))},Dr.tail=function(e){var t=null==e?0:e.length;return t?eo(e,1,t):[]},Dr.take=function(e,t,r){return e&&e.length?eo(e,0,(t=r||t===o?1:da(t))<0?0:t):[]},Dr.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?eo(e,(t=n-(t=r||t===o?1:da(t)))<0?0:t,n):[]},Dr.takeRightWhile=function(e,t){return e&&e.length?lo(e,si(t,3),!1,!0):[]},Dr.takeWhile=function(e,t){return e&&e.length?lo(e,si(t,3)):[]},Dr.tap=function(e,t){return t(e),e},Dr.throttle=function(e,t,r){var n=!0,o=!0;if("function"!=typeof e)throw new ke(i);return Qs(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Rs(e,t,{leading:n,maxWait:t,trailing:o})},Dr.thru=ps,Dr.toArray=fa,Dr.toPairs=Da,Dr.toPairsIn=La,Dr.toPath=function(e){return zs(e)?Ct(e,$i):aa(e)?[e]:ko(Fi(ma(e)))},Dr.toPlainObject=ya,Dr.transform=function(e,t,r){var n=zs(e),o=n||Gs(e)||ua(e);if(t=si(t,4),null==r){var i=e&&e.constructor;r=o?n?new i:[]:Qs(e)&&Xs(i)?Lr(We(e)):{}}return(o?Pt:gn)(e,(function(e,n,o){return t(r,e,n,o)})),r},Dr.unary=function(e){return xs(e,1)},Dr.union=es,Dr.unionBy=ts,Dr.unionWith=rs,Dr.uniq=function(e){return e&&e.length?ao(e):[]},Dr.uniqBy=function(e,t){return e&&e.length?ao(e,si(t,2)):[]},Dr.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?ao(e,o,t):[]},Dr.unset=function(e,t){return null==e||uo(e,t)},Dr.unzip=ns,Dr.unzipWith=os,Dr.update=function(e,t,r){return null==e?e:co(e,t,yo(r))},Dr.updateWith=function(e,t,r,n){return n="function"==typeof n?n:o,null==e?e:co(e,t,yo(r),n)},Dr.values=Na,Dr.valuesIn=function(e){return null==e?[]:Xt(e,Ca(e))},Dr.without=is,Dr.words=Xa,Dr.wrap=function(e,t){return $s(yo(t),e)},Dr.xor=ss,Dr.xorBy=as,Dr.xorWith=us,Dr.zip=cs,Dr.zipObject=function(e,t){return ho(e||[],t||[],Zr)},Dr.zipObjectDeep=function(e,t){return ho(e||[],t||[],Xn)},Dr.zipWith=ls,Dr.entries=Da,Dr.entriesIn=La,Dr.extend=ba,Dr.extendWith=_a,su(Dr,Dr),Dr.add=mu,Dr.attempt=Ka,Dr.camelCase=Ma,Dr.capitalize=qa,Dr.ceil=gu,Dr.clamp=function(e,t,r){return r===o&&(r=t,t=o),r!==o&&(r=(r=va(r))==r?r:0),t!==o&&(t=(t=va(t))==t?t:0),on(va(e),t,r)},Dr.clone=function(e){return sn(e,4)},Dr.cloneDeep=function(e){return sn(e,5)},Dr.cloneDeepWith=function(e,t){return sn(e,5,t="function"==typeof t?t:o)},Dr.cloneWith=function(e,t){return sn(e,4,t="function"==typeof t?t:o)},Dr.conformsTo=function(e,t){return null==t||an(e,t,Ra(t))},Dr.deburr=Ba,Dr.defaultTo=function(e,t){return null==e||e!=e?t:e},Dr.divide=bu,Dr.endsWith=function(e,t,r){e=ma(e),t=so(t);var n=e.length,i=r=r===o?n:on(da(r),0,n);return(r-=t.length)>=0&&e.slice(r,i)==t},Dr.eq=Ns,Dr.escape=function(e){return(e=ma(e))&&J.test(e)?e.replace(V,tr):e},Dr.escapeRegExp=function(e){return(e=ma(e))&&re.test(e)?e.replace(te,"\\$&"):e},Dr.every=function(e,t,r){var n=zs(e)?kt:pn;return r&&mi(e,t,r)&&(t=o),n(e,si(t,3))},Dr.find=vs,Dr.findIndex=Bi,Dr.findKey=function(e,t){return Dt(e,si(t,3),gn)},Dr.findLast=ys,Dr.findLastIndex=zi,Dr.findLastKey=function(e,t){return Dt(e,si(t,3),bn)},Dr.floor=_u,Dr.forEach=ms,Dr.forEachRight=gs,Dr.forIn=function(e,t){return null==e?e:yn(e,si(t,3),Ca)},Dr.forInRight=function(e,t){return null==e?e:mn(e,si(t,3),Ca)},Dr.forOwn=function(e,t){return e&&gn(e,si(t,3))},Dr.forOwnRight=function(e,t){return e&&bn(e,si(t,3))},Dr.get=Pa,Dr.gt=Ms,Dr.gte=qs,Dr.has=function(e,t){return null!=e&&di(e,t,Pn)},Dr.hasIn=xa,Dr.head=Hi,Dr.identity=ru,Dr.includes=function(e,t,r,n){e=Hs(e)?e:Na(e),r=r&&!n?da(r):0;var o=e.length;return r<0&&(r=vr(o+r,0)),sa(e)?r<=o&&e.indexOf(t,r)>-1:!!o&&Nt(e,t,r)>-1},Dr.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:da(r);return o<0&&(o=vr(n+o,0)),Nt(e,t,o)},Dr.inRange=function(e,t,r){return t=pa(t),r===o?(r=t,t=0):r=pa(r),function(e,t,r){return e>=yr(t,r)&&e<vr(t,r)}(e=va(e),t,r)},Dr.invoke=Ea,Dr.isArguments=Bs,Dr.isArray=zs,Dr.isArrayBuffer=Ws,Dr.isArrayLike=Hs,Dr.isArrayLikeObject=Vs,Dr.isBoolean=function(e){return!0===e||!1===e||ea(e)&&jn(e)==m},Dr.isBuffer=Gs,Dr.isDate=Js,Dr.isElement=function(e){return ea(e)&&1===e.nodeType&&!na(e)},Dr.isEmpty=function(e){if(null==e)return!0;if(Hs(e)&&(zs(e)||"string"==typeof e||"function"==typeof e.splice||Gs(e)||ua(e)||Bs(e)))return!e.length;var t=pi(e);if(t==O||t==k)return!e.size;if(wi(e))return!In(e).length;for(var r in e)if(Se.call(e,r))return!1;return!0},Dr.isEqual=function(e,t){return Rn(e,t)},Dr.isEqualWith=function(e,t,r){var n=(r="function"==typeof r?r:o)?r(e,t):o;return n===o?Rn(e,t,o,r):!!n},Dr.isError=Ys,Dr.isFinite=function(e){return"number"==typeof e&&$t(e)},Dr.isFunction=Xs,Dr.isInteger=Ks,Dr.isLength=Zs,Dr.isMap=ta,Dr.isMatch=function(e,t){return e===t||Cn(e,t,ui(t))},Dr.isMatchWith=function(e,t,r){return r="function"==typeof r?r:o,Cn(e,t,ui(t),r)},Dr.isNaN=function(e){return ra(e)&&e!=+e},Dr.isNative=function(e){if(_i(e))throw new we("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Tn(e)},Dr.isNil=function(e){return null==e},Dr.isNull=function(e){return null===e},Dr.isNumber=ra,Dr.isObject=Qs,Dr.isObjectLike=ea,Dr.isPlainObject=na,Dr.isRegExp=oa,Dr.isSafeInteger=function(e){return Ks(e)&&e>=-9007199254740991&&e<=f},Dr.isSet=ia,Dr.isString=sa,Dr.isSymbol=aa,Dr.isTypedArray=ua,Dr.isUndefined=function(e){return e===o},Dr.isWeakMap=function(e){return ea(e)&&pi(e)==R},Dr.isWeakSet=function(e){return ea(e)&&"[object WeakSet]"==jn(e)},Dr.join=function(e,t){return null==e?"":Wt.call(e,t)},Dr.kebabCase=za,Dr.last=Yi,Dr.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=n;return r!==o&&(i=(i=da(r))<0?vr(n+i,0):yr(i,n-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,i):Lt(e,qt,i,!0)},Dr.lowerCase=Wa,Dr.lowerFirst=Ha,Dr.lt=ca,Dr.lte=la,Dr.max=function(e){return e&&e.length?dn(e,ru,An):o},Dr.maxBy=function(e,t){return e&&e.length?dn(e,si(t,2),An):o},Dr.mean=function(e){return Bt(e,ru)},Dr.meanBy=function(e,t){return Bt(e,si(t,2))},Dr.min=function(e){return e&&e.length?dn(e,ru,Fn):o},Dr.minBy=function(e,t){return e&&e.length?dn(e,si(t,2),Fn):o},Dr.stubArray=hu,Dr.stubFalse=vu,Dr.stubObject=function(){return{}},Dr.stubString=function(){return""},Dr.stubTrue=function(){return!0},Dr.multiply=wu,Dr.nth=function(e,t){return e&&e.length?Mn(e,da(t)):o},Dr.noConflict=function(){return ft._===this&&(ft._=Le),this},Dr.noop=au,Dr.now=Ps,Dr.pad=function(e,t,r){e=ma(e);var n=(t=da(t))?cr(e):0;if(!t||n>=t)return e;var o=(t-n)/2;return Bo(dt(o),r)+e+Bo(pt(o),r)},Dr.padEnd=function(e,t,r){e=ma(e);var n=(t=da(t))?cr(e):0;return t&&n<t?e+Bo(t-n,r):e},Dr.padStart=function(e,t,r){e=ma(e);var n=(t=da(t))?cr(e):0;return t&&n<t?Bo(t-n,r)+e:e},Dr.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),gr(ma(e).replace(ne,""),t||0)},Dr.random=function(e,t,r){if(r&&"boolean"!=typeof r&&mi(e,t,r)&&(t=r=o),r===o&&("boolean"==typeof t?(r=t,t=o):"boolean"==typeof e&&(r=e,e=o)),e===o&&t===o?(e=0,t=1):(e=pa(e),t===o?(t=e,e=0):t=pa(t)),e>t){var n=e;e=t,t=n}if(r||e%1||t%1){var i=br();return yr(e+i*(t-e+at("1e-"+((i+"").length-1))),t)}return Hn(e,t)},Dr.reduce=function(e,t,r){var n=zs(e)?St:Ht,o=arguments.length<3;return n(e,si(t,4),r,o,ln)},Dr.reduceRight=function(e,t,r){var n=zs(e)?It:Ht,o=arguments.length<3;return n(e,si(t,4),r,o,fn)},Dr.repeat=function(e,t,r){return t=(r?mi(e,t,r):t===o)?1:da(t),Vn(ma(e),t)},Dr.replace=function(){var e=arguments,t=ma(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Dr.result=function(e,t,r){var n=-1,i=(t=mo(t,e)).length;for(i||(i=1,e=o);++n<i;){var s=null==e?o:e[$i(t[n])];s===o&&(n=i,s=r),e=Xs(s)?s.call(e):s}return e},Dr.round=Ou,Dr.runInContext=e,Dr.sample=function(e){return(zs(e)?Jr:Jn)(e)},Dr.size=function(e){if(null==e)return 0;if(Hs(e))return sa(e)?cr(e):e.length;var t=pi(e);return t==O||t==k?e.size:In(e).length},Dr.snakeCase=Va,Dr.some=function(e,t,r){var n=zs(e)?Ft:to;return r&&mi(e,t,r)&&(t=o),n(e,si(t,3))},Dr.sortedIndex=function(e,t){return ro(e,t)},Dr.sortedIndexBy=function(e,t,r){return no(e,t,si(r,2))},Dr.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=ro(e,t);if(n<r&&Ns(e[n],t))return n}return-1},Dr.sortedLastIndex=function(e,t){return ro(e,t,!0)},Dr.sortedLastIndexBy=function(e,t,r){return no(e,t,si(r,2),!0)},Dr.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var r=ro(e,t,!0)-1;if(Ns(e[r],t))return r}return-1},Dr.startCase=Ga,Dr.startsWith=function(e,t,r){return e=ma(e),r=null==r?0:on(da(r),0,e.length),t=so(t),e.slice(r,r+t.length)==t},Dr.subtract=ju,Dr.sum=function(e){return e&&e.length?Vt(e,ru):0},Dr.sumBy=function(e,t){return e&&e.length?Vt(e,si(t,2)):0},Dr.template=function(e,t,r){var n=Dr.templateSettings;r&&mi(e,t,r)&&(t=o),e=ma(e),t=_a({},t,n,Xo);var i,s,a=_a({},t.imports,n.imports,Xo),u=Ra(a),c=Xt(a,u),l=0,f=t.interpolate||be,p="__p += '",d=Pe((t.escape||be).source+"|"+f.source+"|"+(f===K?fe:be).source+"|"+(t.evaluate||be).source+"|$","g"),h="//# sourceURL="+(Se.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++nt+"]")+"\n";e.replace(d,(function(t,r,n,o,a,u){return n||(n=o),p+=e.slice(l,u).replace(_e,rr),r&&(i=!0,p+="' +\n__e("+r+") +\n'"),a&&(s=!0,p+="';\n"+a+";\n__p += '"),n&&(p+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),l=u+t.length,t})),p+="';\n";var v=Se.call(t,"variable")&&t.variable;if(v){if(ce.test(v))throw new we("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(s?p.replace(B,""):p).replace(z,"$1").replace(W,"$1;"),p="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var y=Ka((function(){return Oe(u,h+"return "+p).apply(o,c)}));if(y.source=p,Ys(y))throw y;return y},Dr.times=function(e,t){if((e=da(e))<1||e>f)return[];var r=d,n=yr(e,d);t=si(t),e-=d;for(var o=Gt(n,t);++r<e;)t(r);return o},Dr.toFinite=pa,Dr.toInteger=da,Dr.toLength=ha,Dr.toLower=function(e){return ma(e).toLowerCase()},Dr.toNumber=va,Dr.toSafeInteger=function(e){return e?on(da(e),-9007199254740991,f):0===e?e:0},Dr.toString=ma,Dr.toUpper=function(e){return ma(e).toUpperCase()},Dr.trim=function(e,t,r){if((e=ma(e))&&(r||t===o))return Jt(e);if(!e||!(t=so(t)))return e;var n=lr(e),i=lr(t);return bo(n,Zt(n,i),Qt(n,i)+1).join("")},Dr.trimEnd=function(e,t,r){if((e=ma(e))&&(r||t===o))return e.slice(0,fr(e)+1);if(!e||!(t=so(t)))return e;var n=lr(e);return bo(n,0,Qt(n,lr(t))+1).join("")},Dr.trimStart=function(e,t,r){if((e=ma(e))&&(r||t===o))return e.replace(ne,"");if(!e||!(t=so(t)))return e;var n=lr(e);return bo(n,Zt(n,lr(t))).join("")},Dr.truncate=function(e,t){var r=30,n="...";if(Qs(t)){var i="separator"in t?t.separator:i;r="length"in t?da(t.length):r,n="omission"in t?so(t.omission):n}var s=(e=ma(e)).length;if(nr(e)){var a=lr(e);s=a.length}if(r>=s)return e;var u=r-cr(n);if(u<1)return n;var c=a?bo(a,0,u).join(""):e.slice(0,u);if(i===o)return c+n;if(a&&(u+=c.length-u),oa(i)){if(e.slice(u).search(i)){var l,f=c;for(i.global||(i=Pe(i.source,ma(pe.exec(i))+"g")),i.lastIndex=0;l=i.exec(f);)var p=l.index;c=c.slice(0,p===o?u:p)}}else if(e.indexOf(so(i),u)!=u){var d=c.lastIndexOf(i);d>-1&&(c=c.slice(0,d))}return c+n},Dr.unescape=function(e){return(e=ma(e))&&G.test(e)?e.replace(H,pr):e},Dr.uniqueId=function(e){var t=++Ie;return ma(e)+t},Dr.upperCase=Ja,Dr.upperFirst=Ya,Dr.each=ms,Dr.eachRight=gs,Dr.first=Hi,su(Dr,(yu={},gn(Dr,(function(e,t){Se.call(Dr.prototype,t)||(yu[t]=e)})),yu),{chain:!1}),Dr.VERSION="4.17.21",Pt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Dr[e].placeholder=Dr})),Pt(["drop","take"],(function(e,t){qr.prototype[e]=function(r){r=r===o?1:vr(da(r),0);var n=this.__filtered__&&!t?new qr(this):this.clone();return n.__filtered__?n.__takeCount__=yr(r,n.__takeCount__):n.__views__.push({size:yr(r,d),type:e+(n.__dir__<0?"Right":"")}),n},qr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Pt(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;qr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:si(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),Pt(["head","last"],(function(e,t){var r="take"+(t?"Right":"");qr.prototype[e]=function(){return this[r](1).value()[0]}})),Pt(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");qr.prototype[e]=function(){return this.__filtered__?new qr(this):this[r](1)}})),qr.prototype.compact=function(){return this.filter(ru)},qr.prototype.find=function(e){return this.filter(e).head()},qr.prototype.findLast=function(e){return this.reverse().find(e)},qr.prototype.invokeMap=Gn((function(e,t){return"function"==typeof e?new qr(this):this.map((function(r){return Un(r,e,t)}))})),qr.prototype.reject=function(e){return this.filter(Is(si(e)))},qr.prototype.slice=function(e,t){e=da(e);var r=this;return r.__filtered__&&(e>0||t<0)?new qr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==o&&(r=(t=da(t))<0?r.dropRight(-t):r.take(t-e)),r)},qr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},qr.prototype.toArray=function(){return this.take(d)},gn(qr.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),i=Dr[n?"take"+("last"==t?"Right":""):t],s=n||/^find/.test(t);i&&(Dr.prototype[t]=function(){var t=this.__wrapped__,a=n?[1]:arguments,u=t instanceof qr,c=a[0],l=u||zs(t),f=function(e){var t=i.apply(Dr,Tt([e],a));return n&&p?t[0]:t};l&&r&&"function"==typeof c&&1!=c.length&&(u=l=!1);var p=this.__chain__,d=!!this.__actions__.length,h=s&&!p,v=u&&!d;if(!s&&l){t=v?t:new qr(this);var y=e.apply(t,a);return y.__actions__.push({func:ps,args:[f],thisArg:o}),new Mr(y,p)}return h&&v?e.apply(this,a):(y=this.thru(f),h?n?y.value()[0]:y.value():y)})})),Pt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ue[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Dr.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var o=this.value();return t.apply(zs(o)?o:[],e)}return this[r]((function(r){return t.apply(zs(r)?r:[],e)}))}})),gn(qr.prototype,(function(e,t){var r=Dr[t];if(r){var n=r.name+"";Se.call(Ur,n)||(Ur[n]=[]),Ur[n].push({name:t,func:r})}})),Ur[Lo(o,2).name]=[{name:"wrapper",func:o}],qr.prototype.clone=function(){var e=new qr(this.__wrapped__);return e.__actions__=ko(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ko(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ko(this.__views__),e},qr.prototype.reverse=function(){if(this.__filtered__){var e=new qr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},qr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=zs(e),n=t<0,o=r?e.length:0,i=function(e,t,r){for(var n=-1,o=r.length;++n<o;){var i=r[n],s=i.size;switch(i.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=yr(t,e+s);break;case"takeRight":e=vr(e,t-s)}}return{start:e,end:t}}(0,o,this.__views__),s=i.start,a=i.end,u=a-s,c=n?a:s-1,l=this.__iteratees__,f=l.length,p=0,d=yr(u,this.__takeCount__);if(!r||!n&&o==u&&d==u)return fo(e,this.__actions__);var h=[];e:for(;u--&&p<d;){for(var v=-1,y=e[c+=t];++v<f;){var m=l[v],g=m.iteratee,b=m.type,_=g(y);if(2==b)y=_;else if(!_){if(1==b)continue e;break e}}h[p++]=y}return h},Dr.prototype.at=ds,Dr.prototype.chain=function(){return fs(this)},Dr.prototype.commit=function(){return new Mr(this.value(),this.__chain__)},Dr.prototype.next=function(){this.__values__===o&&(this.__values__=fa(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Dr.prototype.plant=function(e){for(var t,r=this;r instanceof Nr;){var n=Li(r);n.__index__=0,n.__values__=o,t?i.__wrapped__=n:t=n;var i=n;r=r.__wrapped__}return i.__wrapped__=e,t},Dr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof qr){var t=e;return this.__actions__.length&&(t=new qr(this)),(t=t.reverse()).__actions__.push({func:ps,args:[Qi],thisArg:o}),new Mr(t,this.__chain__)}return this.thru(Qi)},Dr.prototype.toJSON=Dr.prototype.valueOf=Dr.prototype.value=function(){return fo(this.__wrapped__,this.__actions__)},Dr.prototype.first=Dr.prototype.head,Ye&&(Dr.prototype[Ye]=function(){return this}),Dr}();ft._=dr,(n=function(){return dr}.call(t,r,t,e))===o||(e.exports=n)}.call(this)},13222:function(e,t,r){var n=r(77556);e.exports=function(e){return null==e?"":n(e)}},44826:function(e,t,r){var n=r(77556),o=r(54128),i=r(28754),s=r(23875),a=r(28380),u=r(63912),c=r(13222);e.exports=function(e,t,r){if((e=c(e))&&(r||void 0===t))return o(e);if(!e||!(t=n(t)))return e;var l=u(e),f=u(t),p=a(l,f),d=s(l,f)+1;return i(l,p,d).join("")}},15993:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Formio=t.FormioPathType=void 0;const o=n(r(42681)),i=r(60554),s=r(2543),a=r(61785),u=r(17112),c=n(r(30228)),l=n(r(81018)),{fetch:f,Headers:p}=(0,o.default)(),d=n(r(23370));var h;!function(e){e.Subdirectories="Subdirectories",e.Subdomains="Subdomains"}(h||(t.FormioPathType=h={}));class v{constructor(e,t={}){if(this.path=e,this.options=t,this.base="",this.projectsUrl="",this.projectUrl="",this.projectId="",this.roleUrl="",this.rolesUrl="",this.roleId="",this.formUrl="",this.formsUrl="",this.formId="",this.submissionsUrl="",this.submissionUrl="",this.submissionId="",this.actionsUrl="",this.actionId="",this.actionUrl="",this.vsUrl="",this.vId="",this.vUrl="",this.query="",this.noProject=!1,!(this instanceof v))return new v(e);if(t.useSessionToken&&v.useSessionToken(t),t.hasOwnProperty("base")&&t.base)this.base=t.base;else if(v.baseUrl)this.base=v.baseUrl;else if(window&&window.location){const e=window.location.href.match(/http[s]?:\/\/api./);this.base=e?e[0]:window.location.origin}if(!e)return this.projectUrl=v.projectUrl||`${this.base}/project`,this.projectsUrl=`${this.base}/project`,this.projectId="",void(this.query="");t.hasOwnProperty("project")&&t.project&&(this.projectUrl=t.project);const r=this.projectUrl||v.projectUrl,n=/(^|\/)(project)($|\/[^/]+)/,o=-1!==e.search(n);r&&this.base===r&&!o&&(this.noProject=!0,this.projectUrl=this.base),0!==e.indexOf("http")&&0!==e.indexOf("//")&&(e=this.base+e);const i=this.getUrlParts(e);let s="",a=[];if(i){s=i[1]+i[2];const t=(e=i.length>3?i[3]:"").split("?");t.length>1&&(e=t[0],this.query=`?${t[1]}`)}const u=(t,r)=>{this[`${t}sUrl`]=`${r}/${t}`;const n=new RegExp(`/${t}/([^/]+)`);return e&&-1!==e.search(n)&&(a=e.match(n),this[`${t}Url`]=a?r+a[0]:"",this[`${t}Id`]=a.length>1?a[1]:"",r+=a[0]),r},c=(e,t,r)=>{for(const n in e)if(e.hasOwnProperty(n)){const o=e[n];if(Array.isArray(o))c(o,t,!0);else{const e=u(o,t);t=r?t:e}}};if(!this.projectUrl||this.projectUrl===this.base)if(this.projectUrl||o||"Subdirectories"!==v.pathType)this.projectUrl=s;else{const e=`^${s.replace(/\//g,"\\/")}.[^/]+`,t=r.match(new RegExp(e));this.projectUrl=t?t[0]:s}let l=!1;if(v.pathType&&(l="Subdomains"!==v.pathType),!this.noProject){if(o)c(["project"],s),e=e.replace(n,"");else if(s===this.base){if(i&&i.length>3&&e.split("/").length>1){const t=e.match(/.json/),r=e.split("/");if(t)this.projectUrl=s;else{r.shift();const t=r.shift();t&&(this.projectId=t,e=`/${r.join("/")}`,this.projectUrl=`${s}/${this.projectId}`)}}}else i&&i.length>2&&(i[2].split(".").length>2||s.includes("localhost"))&&!l&&(this.projectUrl=s,this.projectId=i[2].split(".")[0]);this.projectsUrl=this.projectsUrl||`${this.base}/project`}if(c(["role"],this.projectUrl),/(^|\/)(form)($|\/)/.test(e))c(["form",["submission","action","v"]],this.projectUrl);else{const t=new RegExp("/(submission|action|v)($|/.*)"),r=e.match(t);r&&r.length>1&&(this.pathType=r[1]),e=(e=e.replace(t,"")).replace(/\/$/,""),this.formsUrl=`${this.projectUrl}/form`,this.formUrl=e?this.projectUrl+e:"",this.formId=e.replace(/^\/+|\/+$/g,"");const n=["submission","action","v"];for(const t in n)if(n.hasOwnProperty(t)){const o=n[t];this[`${o}sUrl`]=`${this.projectUrl+e}/${o}`,this.pathType===o&&r&&r.length>2&&r[2]&&(this[`${o}Id`]=r[2].replace(/^\/+|\/+$/g,""),this[`${o}Url`]=this.projectUrl+e+r[0])}}v.projectUrlSet||(v.projectUrl=this.projectUrl)}delete(e,t){const r=`${e}Url`;return this[`${e}Id`]?(v.cache={},this.makeRequest(e,this[r],"delete",null,t)):Promise.reject("Nothing to delete")}index(e,t,r){const n=`${e}Url`;return(t=t||"")&&(0,s.isObject)(t)&&(t=`?${v.serialize(t.params)}`),this.makeRequest(e,this[n]+t,"get",null,r)}save(e,t,r){const n=`${e}Id`,o=`${e}Url`,i=this[n]||t._id?"put":"post";let s=this[n]?this[o]:this[`${e}sUrl`];return this[n]||!t._id||"put"!==i||s.includes(t._id)||(s+=`/${t._id}`),v.cache={},this.makeRequest(e,s+this.query,i,t,r)}load(e,t,r){const n=`${e}Id`,o=`${e}Url`;if(t&&(0,s.isObject)(t)&&(t=v.serialize(t.params)),t=t?this.query?`${this.query}&${t}`:`?${t}`:this.query,!this[n])return Promise.reject(`Missing ${n}`);let i=this[o]+t;return"form"!==e||isNaN(parseInt(this.vId))||(i+=-1===i.indexOf("?")?"?":"&",i+=`formRevision=${this.vId}`),this.makeRequest(e,i,"get",null,r)}makeRequest(e,t,r,n,o){return v.makeRequest(this,e,t,r,n,o)}loadProject(e,t){return this.load("project",e,t)}saveProject(e,t){return this.save("project",e,t)}deleteProject(e){return this.delete("project",e)}static loadProjects(e,t){return e=e||"",(0,s.isObject)(e)&&(e=`?${v.serialize(e.params)}`),v.makeStaticRequest(`${v.baseUrl}/project${e}`,"GET",null,t)}loadRole(e){return this.load("role",null,e)}saveRole(e,t){return this.save("role",e,t)}deleteRole(e){return this.delete("role",e)}loadRoles(e){return this.index("roles",null,e)}loadForm(e,t){return this.load("form",e,t).then((r=>!r.revisions||isNaN(parseInt(this.vId))||"current"===r.revisions&&this.submissionId||r._vid==this.vId||r.revisionId===this.vId?r:(e&&(0,s.isObject)(e)&&(e=v.serialize(e.params)),e=e?this.query?`${this.query}&${e}`:`?${e}`:this.query,this.makeRequest("form",this.vUrl+e,"get",null,t).then((e=>(r._vid=e._vid,r.components=e.components,r.settings=e.settings,r.revisionId=e.revisionId,Object.assign({},r)))).catch((()=>Object.assign({},r))))))}saveForm(e,t){return this.save("form",e,t)}deleteForm(e){return this.delete("form",e)}loadForms(e,t){return this.index("forms",e,t)}loadSubmission(e,t){return this.load("submission",e,t).then((e=>(this.vId=e._frid||e._fvid,this.vUrl=`${this.formUrl}/v/${this.vId}`,e)))}saveSubmission(e,t){return isNaN(parseInt(this.vId))||e._fvid||(e._fvid=this.vId),this.save("submission",e,t)}deleteSubmission(e){return this.delete("submission",e)}loadSubmissions(e,t){return this.index("submissions",e,t)}loadAction(e,t){return this.load("action",e,t)}saveAction(e,t){return this.save("action",e,t)}deleteAction(e){return this.delete("action",e)}loadActions(e,t){return this.index("actions",e,t)}availableActions(){return this.makeRequest("availableActions",`${this.formUrl}/actions`)}actionInfo(e){return this.makeRequest("actionInfo",`${this.formUrl}/actions/${e}`)}isObjectId(e){return new RegExp("^[0-9a-fA-F]{24}$").test(e)}getProjectId(){return this.projectId?this.isObjectId(this.projectId)?Promise.resolve(this.projectId):this.loadProject().then((e=>e._id)):Promise.resolve("")}getFormId(){return this.formId?this.isObjectId(this.formId)?Promise.resolve(this.formId):this.loadForm().then((e=>e._id)):Promise.resolve("")}currentUser(e){return v.currentUser(this,e)}accessInfo(){return v.accessInfo(this)}oauthLogoutURI(e,t){return v.oauthLogoutURI(e,Object.assign({formio:this},this.options,t))}getToken(e){return v.getToken(Object.assign({formio:this},this.options,e))}setToken(e,t){return v.setToken(e,Object.assign({formio:this},this.options,t))}getTempToken(e,t,r){if(!v.getToken(r))return Promise.reject("You must be authenticated to generate a temporary auth token.");const n=v.authUrl||this.projectUrl;return this.makeRequest("tempToken",`${n}/token`,"GET",null,{ignoreCache:!0,header:new p({"x-expire":e,"x-allow":t})})}getDownloadUrl(e){if(!this.submissionId)return Promise.resolve("");if(!e)return this.loadForm().then((e=>e?this.getDownloadUrl(e):""));let t=`/project/${e.project}`;t+=`/form/${e._id}`,t+=`/submission/${this.submissionId}`;const r=e.submissionRevisions&&e.settings.changeLog?"/download/changelog":"/download";t+=r;let n=this.base+t;return new Promise(((e,r)=>{this.getTempToken(3600,`GET:${t}`).then((t=>{n+=`?token=${t.key}`,e(n)}),(()=>{e(n)})).catch(r)}))}userPermissions(e,t,r){return Promise.all([void 0!==t?Promise.resolve(t):this.loadForm(),void 0!==e?Promise.resolve(e):this.currentUser(),void 0===r&&this.submissionId?this.loadSubmission():Promise.resolve(r),this.accessInfo()]).then((e=>{const t=e.shift(),r=e.shift()||{_id:!1,roles:[]},n=e.shift(),o=e.shift(),i={create:"create",read:"read",update:"edit",delete:"delete"},u={user:r,form:t,access:o,create:!1,read:!1,edit:!1,delete:!1};for(const e in o.roles)if(o.roles.hasOwnProperty(e)){const t=o.roles[e];if(t.default&&!1===r._id)r.roles.push(t._id);else if(t.admin&&-1!==r.roles.indexOf(t._id))return u.create=!0,u.read=!0,u.delete=!0,u.edit=!0,u}if(t&&t.submissionAccess)for(let e=0;e<t.submissionAccess.length;e++){const o=t.submissionAccess[e],[a,c]=o.type.split("_");["create","read","update","delete"].includes(a)&&(0,s.intersection)(o.roles,r.roles).length&&(u[i[a]]="all"===c||!n||r._id===n.owner)}return n&&(0,a.eachComponent)(t.components,((e,t)=>{if(e&&e.defaultPermission){const o=(0,s.get)(n.data,t);(Array.isArray(o)?o:[o]).forEach((t=>{t&&t._id&&r.roles.indexOf(t._id)>-1&&("read"===e.defaultPermission&&(u[i.read]=!0),"create"===e.defaultPermission&&(u[i.create]=!0,u[i.read]=!0),"write"===e.defaultPermission&&(u[i.create]=!0,u[i.read]=!0,u[i.update]=!0),"admin"===e.defaultPermission&&(u[i.create]=!0,u[i.read]=!0,u[i.update]=!0,u[i.delete]=!0))}))}})),u}))}canSubmit(){return this.userPermissions().then((e=>!e.create&&v.getUser()?this.userPermissions(null).then((e=>!!e.create&&(v.setUser(null),!0))):e.create))}getUrlParts(e){return v.getUrlParts(e,this)}static getUrlParts(e,t){const r=t&&t.base?t.base:v.baseUrl;let n="^(http[s]?:\\/\\/)";return r&&0===e.indexOf(r)?n+=`(${r.replace(/^http[s]?:\/\//,"")})`:n+="([^/]+)",n+="($|\\/.*)",e.match(new RegExp(n))}static serialize(e,t){const r=[];for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.push(`${encodeURIComponent(o)}=${encodeURIComponent((n=e[o],t?t(n):n))}`);var n;return r.join("&")}static getRequestArgs(e,t,r,n,o,i){n=(n||"GET").toUpperCase(),i&&(0,s.isObject)(i)||(i={});const a={url:r,method:n,data:o||null,opts:i};return t&&(a.type=t),e&&(a.formio=e),a}static makeStaticRequest(e,t,r,n){const o=v.getRequestArgs(null,"",e,t,r,n),i=d.default.pluginWait("preRequest",o).then((()=>d.default.pluginGet("staticRequest",o).then((e=>(0,s.isNil)(e)?v.request(o.url,o.method,o.data,o.opts.header,o.opts):e))));return d.default.pluginAlter("wrapStaticRequestPromise",i,o)}static makeRequest(e,t,r,n,o,i){if(!e)return v.makeStaticRequest(r,n,o,i);const a=v.getRequestArgs(e,t,r,n,o,i);a.opts=a.opts||{},a.opts.formio=e,a.opts.headers||(a.opts.headers={}),a.opts.headers=(0,s.defaults)(a.opts.headers,{Accept:"application/json","Content-type":"application/json"});const u=d.default.pluginWait("preRequest",a).then((()=>d.default.pluginGet("request",a).then((e=>(0,s.isNil)(e)?v.request(a.url,a.method,a.data,a.opts.header,a.opts):e))));return d.default.pluginAlter("wrapRequestPromise",u,a)}static request(e,t,r,n,o){if(!e)return Promise.reject("No url provided");t=(t||"GET").toUpperCase(),(0,s.isBoolean)(o)&&(o={ignoreCache:o}),o&&(0,s.isObject)(o)||(o={});const i=btoa(encodeURI(e));if(!o.ignoreCache&&"GET"===t&&v.cache.hasOwnProperty(i))return Promise.resolve(v.cloneResponse(v.cache[i]));"/"===e[0]&&(e=v.baseUrl+e);const a=n||new p(o.headers||{Accept:"application/json","Content-type":"application/json"}),u=v.getToken(o);u&&!o.noToken&&a.set("x-jwt-token",u);const c={};a.forEach((function(e,t){c[t]=e}));let l={method:t,headers:c,mode:"cors"};r&&(l.body=JSON.stringify(r)),l=d.default.pluginAlter("requestOptions",l,e),(l.namespace||v.namespace)&&(o.namespace=l.namespace||v.namespace);const f=l.headers["x-jwt-token"],h=d.default.pluginAlter("wrapFetchRequestPromise",v.fetch(e,l),{url:e,method:t,data:r,opts:o}).then((n=>{if(!(n=d.default.pluginAlter("requestResponse",n,v,r)).ok){if(440===n.status)v.setToken(null,o),v.events.emit("formio.sessionExpired",n.body);else if(401===n.status)v.events.emit("formio.unauthorized",n.body);else if(416===n.status)v.events.emit("formio.rangeIsNotSatisfiable",n.body);else if(504===n.status)return Promise.reject(new Error("Network request failed"));return(n.headers.get("content-type").includes("application/json")?n.json():n.text()).then((e=>Promise.reject(e)))}const i=n.headers.get("x-jwt-token");let a=!1;return"GET"!==t||f||!i||o.external||e.includes("token=")||e.includes("x-jwt-token=")||(console.warn("Token was introduced in request."),a=!0),n.status>=200&&n.status<300&&i&&""!==i&&!a&&v.setToken(i,Object.assign(Object.assign({},o),{fromCurrent:o.fromCurrent||!!f})),204===n.status?{}:(n.headers.get("content-type").includes("application/json")?n.json():n.text()).then((e=>{let t=n.headers.get("content-range");if(t&&(0,s.isObject)(e)){if(t=t.split("/"),"*"!==t[0]){const r=t[0].split("-");e.skip=Number(r[0]),e.limit=r[1]-r[0]+1}e.serverCount="*"===t[1]?t[1]:Number(t[1])}if(!o.getHeaders)return e;const r={};return n.headers.forEach(((e,t)=>{r[t]=e})),{result:e,headers:r}}))})).then((e=>o.getHeaders?e:("GET"===t&&(v.cache[i]=e),v.cloneResponse(e)))).catch((r=>("Bad Token"===r&&!1!==o.noToken&&(v.setToken(null,o),v.events.emit("formio.badToken",r)),r.message&&((r=new Error(`Could not connect to API server (${r.message}): ${e}`)).networkError=!0),"GET"===t&&delete v.cache[i],Promise.reject(r))));return h}static get token(){return v.tokens.formioToken||""}static set token(e){v.tokens.formioToken=e||""}static useSessionToken(e){if("undefined"==typeof localStorage)return;let t=e;"object"==typeof e&&(e=e.namespace);const r=`${t||v.namespace||"formio"}Token`,n=localStorage.getItem(r);n&&(localStorage.removeItem(r),sessionStorage.setItem(r,n));const o=`${t||v.namespace||"formio"}User`,i=localStorage.getItem(o);i&&(localStorage.removeItem(o),sessionStorage.setItem(o,i)),localStorage.setItem("useSessionToken","true")}static setToken(e="",t={}){e=e||"";const r=`${(t="string"==typeof t?{namespace:t}:t||{}).namespace||v.namespace||"formio"}Token`;v.tokens||(v.tokens={});const n=localStorage.getItem("useSessionToken")?sessionStorage:localStorage;if(!e){t.fromUser||(t.fromToken=!0,v.setUser(null,t));try{n.removeItem(r)}catch(e){l.default.erase(r,{path:"/"})}return v.tokens[r]=e,Promise.resolve(null)}if(v.tokens[r]!==e){v.tokens[r]=e;try{n.setItem(r,e)}catch(t){l.default.set(r,e,{path:"/"})}}return v.currentUser(t.formio,t)}static getToken(e){const t=`${(e="string"==typeof e?{namespace:e}:e||{}).namespace||v.namespace||"formio"}Token`,r=e.decode?`${t}Decoded`:t;if(v.tokens||(v.tokens={}),v.tokens[r])return v.tokens[r];try{const n=localStorage.getItem("useSessionToken")?sessionStorage.getItem(t):localStorage.getItem(t);return v.tokens[t]=n||"",e.decode?(v.tokens[r]=v.tokens[t]?(0,u.jwtDecode)(v.tokens[t]):{},v.tokens[r]):v.tokens[t]}catch(e){return v.tokens[t]=l.default.get(t),""}}static setUser(e,t={}){const r=`${t.namespace||v.namespace||"formio"}User`,n=localStorage.getItem("useSessionToken")?sessionStorage:localStorage;if(!e){t.fromToken||(t.fromUser=!0,v.setToken(null,t)),v.events.emit("formio.user",null);try{return n.removeItem(r)}catch(e){return l.default.erase(r,{path:"/"})}}try{n.setItem(r,JSON.stringify(e))}catch(t){l.default.set(r,JSON.stringify(e),{path:"/"})}v.events.emit("formio.user",e)}static getUser(e){const t=`${(e=e||{}).namespace||v.namespace||"formio"}User`;try{return JSON.parse((localStorage.getItem("useSessionToken")?sessionStorage:localStorage).getItem(t)||"")}catch(e){return JSON.parse(l.default.get(t))}}static setBaseUrl(e){v.baseUrl=e,v.projectUrlSet||(v.projectUrl=e)}static getBaseUrl(){return v.baseUrl}static setApiUrl(e){return v.setBaseUrl(e)}static getApiUrl(){return v.getBaseUrl()}static setAppUrl(e){console.warn("Formio.setAppUrl() is deprecated. Use Formio.setProjectUrl instead."),v.projectUrl=e,v.projectUrlSet=!0}static setProjectUrl(e){v.projectUrl=e,v.projectUrlSet=!0}static setAuthUrl(e){v.authUrl=e}static getAppUrl(){return console.warn("Formio.getAppUrl() is deprecated. Use Formio.getProjectUrl instead."),v.projectUrl}static getProjectUrl(){return v.projectUrl}static clearCache(){v.cache={}}static accessInfo(e){const t=e?e.projectUrl:v.projectUrl;return v.makeRequest(e,"accessInfo",`${t}/access`)}static projectRoles(e){const t=e?e.projectUrl:v.projectUrl;return v.makeRequest(e,"projectRoles",`${t}/role`)}static currentUser(e,t={}){let r=v.authUrl;if(r||(r=e?e.projectUrl:v.projectUrl||v.baseUrl),r+="/current",!t.ignoreCache||t.fromCurrent){const e=v.getUser(t);if(e)return d.default.pluginAlter("wrapStaticRequestPromise",Promise.resolve(e),{url:r,method:"GET",options:t})}const n=v.getToken(t);return t&&t.external||n?(t.fromCurrent=!0,v.makeRequest(e,"currentUser",r,"GET",null,t).then((e=>(v.setUser(e,t),e)))):d.default.pluginAlter("wrapStaticRequestPromise",Promise.resolve(null),{url:r,method:"GET",options:t})}static logout(e,t={}){t.formio=e;const r=v.authUrl?v.authUrl:e?e.projectUrl:v.baseUrl,n=()=>{v.setToken(null,t),v.setUser(null,t),v.clearCache(),localStorage.removeItem("useSessionToken")};return v.makeRequest(e,"logout",`${r}/logout`).then((function(e){return n(),e.shouldRedirect&&e.url&&(window.location.href=e.url),e})).catch((function(e){throw n(),e}))}static pageQuery(){const e={paths:[]},t=location.hash.substr(1).replace(/\?/g,"&").split("&");let r=[];return location.search.substr(1).split("&").forEach((function(t){r=t.split("="),r.length>1&&(e[r[0]]=r[1]&&decodeURIComponent(r[1]))})),t.forEach((function(t){r=t.split("="),r.length>1?e[r[0]]=r[1]&&decodeURIComponent(r[1]):0===t.indexOf("/")&&(e.paths=t.substr(1).split("/"))})),e}static oAuthCurrentUser(e,t){return v.currentUser(e,{external:!0,headers:{Authorization:`Bearer ${t}`}})}static oauthLogoutURI(e,t){const r=`${(t="string"==typeof t?{namespace:t}:t||{}).namespace||v.namespace||"formio"}LogoutAuthUrl`;return v.tokens[r],localStorage.setItem(r,e),v.tokens[r]}static samlInit(e={}){const t=v.pageQuery();if(t.saml){v.setUser(null);const e=v.setToken(t.saml);let r=window.location.toString();return r=r.substring(0,r.indexOf("?")),window.location.hash&&(r+=window.location.hash),window.history.replaceState({},document.title,r),e}e.relay||(e.relay=window.location.href);const r=v.authUrl||v.projectUrl;return window.location.href=`${r}/saml/sso?relay=${encodeURI(e.relay)}`,!1}static oktaInit(e={}){if(void 0!==typeof OktaAuth&&(e.OktaAuth=OktaAuth),void 0===typeof e.OktaAuth){const e="Cannot find OktaAuth. Please include the Okta JavaScript SDK within your application. See https://developer.okta.com/code/javascript/okta_auth_sdk for an example.";return console.warn(e),Promise.reject(e)}return new Promise(((t,r)=>{const n=e.OktaAuth;delete e.OktaAuth;const o=new n(e);o.tokenManager.get("accessToken").then((n=>{n?t(v.oAuthCurrentUser(e.formio,n.accessToken)):location.hash?o.token.parseFromUrl().then((r=>{o.tokenManager.add("accessToken",r),t(v.oAuthCurrentUser(e.formio,r.accessToken))})).catch((e=>{console.warn(e),r(e)})):(o.token.getWithRedirect({responseType:"token",scopes:e.scopes}),t(!1))})).catch((e=>{r(e)}))}))}static ssoInit(e,t={}){switch(e){case"saml":return v.samlInit(t);case"okta":return v.oktaInit(t);default:return console.warn("Unknown SSO type"),Promise.reject("Unknown SSO type")}}static requireLibrary(e,t,r,n=!1,o){if(!v.libraries.hasOwnProperty(e)){v.libraries[e]={},v.libraries[e].ready=new Promise(((t,r)=>{v.libraries[e].resolve=t,v.libraries[e].reject=r}));const i=`${e}Callback`;n||window[i]||(window[i]=()=>v.libraries[e].resolve());const a=(0,s.get)(window,t);if(a)v.libraries[e].resolve(a);else if((r=Array.isArray(r)?r:[r]).forEach((t=>{let r={},n="";switch("string"==typeof t&&(t={type:"script",src:t}),t.type){case"script":n="script",r={src:t.src,type:"text/javascript",defer:!0,async:!0,referrerpolicy:"origin"};break;case"styles":n="link",r={href:t.src,rel:"stylesheet"}}const i=document.createElement(n);if(i.setAttribute)for(const e in r)i.setAttribute(e,r[e]);o&&i.addEventListener("load",(()=>{v.libraries[e].loaded=!0,o(v.libraries[e].ready)}));const{head:s}=document;s&&s.appendChild(i)})),n){const r=setInterval((()=>{const n=(0,s.get)(window,t);n&&(clearInterval(r),v.libraries[e].resolve(n))}),200)}}const i=v.libraries[e];return o&&i.loaded?o(i.ready):i.ready}static libraryReady(e){return v.libraries.hasOwnProperty(e)&&v.libraries[e].ready?v.libraries[e].ready:Promise.reject(`${e} library was not required.`)}static cloneResponse(e){const t=(0,i.fastCloneDeep)(e);return Array.isArray(e)&&(t.skip=e.skip,t.limit=e.limit,t.serverCount=e.serverCount),t}static setPathType(e){"string"==typeof e&&(v.pathType=e)}static getPathType(){return v.pathType}}t.Formio=v,v.baseUrl="https://api.form.io",v.projectUrl="",v.authUrl="",v.projectUrlSet=!1,v.cache={},v.namespace="",v.events=new c.default,v.libraries={},v.fetch=f,v.Headers=p,v.tokens={},v.version="---VERSION---",v.options={},v.plugins=d.default.plugins,v.deregisterPlugin=d.default.deregisterPlugin,v.registerPlugin=d.default.registerPlugin,v.getPlugin=d.default.getPlugin,v.pluginWait=d.default.pluginWait,v.pluginGet=d.default.pluginGet,v.pluginAlter=d.default.pluginAlter,d.default.Formio=v},22831:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return u.default}});var n=p(r(13518)),o=p(r(14948)),i=p(r(45073)),s=p(r(77186)),a=p(r(14808)),u=p(r(7775)),c=p(r(37037)),l=p(r(49910)),f=p(r(96792));function p(e){return e&&e.__esModule?e:{default:e}}},22311:function(e,t){"use strict";function r(e){return 14+(e+64>>>9<<4)+1}function n(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function o(e,t,r,o,i,s){return n((a=n(n(t,e),n(o,s)))<<(u=i)|a>>>32-u,r);var a,u}function i(e,t,r,n,i,s,a){return o(t&r|~t&n,e,t,i,s,a)}function s(e,t,r,n,i,s,a){return o(t&n|r&~n,e,t,i,s,a)}function a(e,t,r,n,i,s,a){return o(t^r^n,e,t,i,s,a)}function u(e,t,r,n,i,s,a){return o(r^(t|~n),e,t,i,s,a)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return function(e){const t=[],r=32*e.length,n="0123456789abcdef";for(let o=0;o<r;o+=8){const r=e[o>>5]>>>o%32&255,i=parseInt(n.charAt(r>>>4&15)+n.charAt(15&r),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[r(t)-1]=t;let o=1732584193,c=-271733879,l=-1732584194,f=271733878;for(let t=0;t<e.length;t+=16){const r=o,p=c,d=l,h=f;o=i(o,c,l,f,e[t],7,-680876936),f=i(f,o,c,l,e[t+1],12,-389564586),l=i(l,f,o,c,e[t+2],17,606105819),c=i(c,l,f,o,e[t+3],22,-1044525330),o=i(o,c,l,f,e[t+4],7,-176418897),f=i(f,o,c,l,e[t+5],12,1200080426),l=i(l,f,o,c,e[t+6],17,-1473231341),c=i(c,l,f,o,e[t+7],22,-45705983),o=i(o,c,l,f,e[t+8],7,1770035416),f=i(f,o,c,l,e[t+9],12,-1958414417),l=i(l,f,o,c,e[t+10],17,-42063),c=i(c,l,f,o,e[t+11],22,-1990404162),o=i(o,c,l,f,e[t+12],7,1804603682),f=i(f,o,c,l,e[t+13],12,-40341101),l=i(l,f,o,c,e[t+14],17,-1502002290),c=i(c,l,f,o,e[t+15],22,1236535329),o=s(o,c,l,f,e[t+1],5,-165796510),f=s(f,o,c,l,e[t+6],9,-1069501632),l=s(l,f,o,c,e[t+11],14,643717713),c=s(c,l,f,o,e[t],20,-373897302),o=s(o,c,l,f,e[t+5],5,-701558691),f=s(f,o,c,l,e[t+10],9,38016083),l=s(l,f,o,c,e[t+15],14,-660478335),c=s(c,l,f,o,e[t+4],20,-405537848),o=s(o,c,l,f,e[t+9],5,568446438),f=s(f,o,c,l,e[t+14],9,-1019803690),l=s(l,f,o,c,e[t+3],14,-187363961),c=s(c,l,f,o,e[t+8],20,1163531501),o=s(o,c,l,f,e[t+13],5,-1444681467),f=s(f,o,c,l,e[t+2],9,-51403784),l=s(l,f,o,c,e[t+7],14,1735328473),c=s(c,l,f,o,e[t+12],20,-1926607734),o=a(o,c,l,f,e[t+5],4,-378558),f=a(f,o,c,l,e[t+8],11,-2022574463),l=a(l,f,o,c,e[t+11],16,1839030562),c=a(c,l,f,o,e[t+14],23,-35309556),o=a(o,c,l,f,e[t+1],4,-1530992060),f=a(f,o,c,l,e[t+4],11,1272893353),l=a(l,f,o,c,e[t+7],16,-155497632),c=a(c,l,f,o,e[t+10],23,-1094730640),o=a(o,c,l,f,e[t+13],4,681279174),f=a(f,o,c,l,e[t],11,-358537222),l=a(l,f,o,c,e[t+3],16,-722521979),c=a(c,l,f,o,e[t+6],23,76029189),o=a(o,c,l,f,e[t+9],4,-640364487),f=a(f,o,c,l,e[t+12],11,-421815835),l=a(l,f,o,c,e[t+15],16,530742520),c=a(c,l,f,o,e[t+2],23,-995338651),o=u(o,c,l,f,e[t],6,-198630844),f=u(f,o,c,l,e[t+7],10,1126891415),l=u(l,f,o,c,e[t+14],15,-1416354905),c=u(c,l,f,o,e[t+5],21,-57434055),o=u(o,c,l,f,e[t+12],6,1700485571),f=u(f,o,c,l,e[t+3],10,-1894986606),l=u(l,f,o,c,e[t+10],15,-1051523),c=u(c,l,f,o,e[t+1],21,-2054922799),o=u(o,c,l,f,e[t+8],6,1873313359),f=u(f,o,c,l,e[t+15],10,-30611744),l=u(l,f,o,c,e[t+6],15,-1560198380),c=u(c,l,f,o,e[t+13],21,1309151649),o=u(o,c,l,f,e[t+4],6,-145523070),f=u(f,o,c,l,e[t+11],10,-1120210379),l=u(l,f,o,c,e[t+2],15,718787259),c=u(c,l,f,o,e[t+9],21,-343485551),o=n(o,r),c=n(c,p),l=n(l,d),f=n(f,h)}return[o,c,l,f]}(function(e){if(0===e.length)return[];const t=8*e.length,n=new Uint32Array(r(t));for(let r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))}},46140:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};t.default=r},14808:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},96792:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(37037))&&n.__esModule?n:{default:n};t.default=function(e){if(!(0,o.default)(e))throw TypeError("Invalid UUID");let t;const r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r}},27656:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},2858:function(e,t){"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!r&&(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(n)};const n=new Uint8Array(16)},9042:function(e,t){"use strict";function r(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function n(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){const t=[1518500249,1859775393,2400959708,3395469782],o=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const i=e.length/4+2,s=Math.ceil(i/16),a=new Array(s);for(let t=0;t<s;++t){const r=new Uint32Array(16);for(let n=0;n<16;++n)r[n]=e[64*t+4*n]<<24|e[64*t+4*n+1]<<16|e[64*t+4*n+2]<<8|e[64*t+4*n+3];a[t]=r}a[s-1][14]=8*(e.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<s;++e){const i=new Uint32Array(80);for(let t=0;t<16;++t)i[t]=a[e][t];for(let e=16;e<80;++e)i[e]=n(i[e-3]^i[e-8]^i[e-14]^i[e-16],1);let s=o[0],u=o[1],c=o[2],l=o[3],f=o[4];for(let e=0;e<80;++e){const o=Math.floor(e/20),a=n(s,5)+r(o,u,c,l)+f+t[o]+i[e]>>>0;f=l,l=c,c=n(u,30)>>>0,u=s,s=a}o[0]=o[0]+s>>>0,o[1]=o[1]+u>>>0,o[2]=o[2]+c>>>0,o[3]=o[3]+l>>>0,o[4]=o[4]+f>>>0}return[o[0]>>24&255,o[0]>>16&255,o[0]>>8&255,255&o[0],o[1]>>24&255,o[1]>>16&255,o[1]>>8&255,255&o[1],o[2]>>24&255,o[2]>>16&255,o[2]>>8&255,255&o[2],o[3]>>24&255,o[3]>>16&255,o[3]>>8&255,255&o[3],o[4]>>24&255,o[4]>>16&255,o[4]>>8&255,255&o[4]]}},49910:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=s;var n,o=(n=r(37037))&&n.__esModule?n:{default:n};const i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).slice(1));function s(e,t=0){return i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]}t.default=function(e,t=0){const r=s(e,t);if(!(0,o.default)(r))throw TypeError("Stringified UUID is invalid");return r}},13518:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(2858))&&n.__esModule?n:{default:n},i=r(49910);let s,a,u=0,c=0;t.default=function(e,t,r){let n=t&&r||0;const l=t||new Array(16);let f=(e=e||{}).node||s,p=void 0!==e.clockseq?e.clockseq:a;if(null==f||null==p){const t=e.random||(e.rng||o.default)();null==f&&(f=s=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==p&&(p=a=16383&(t[6]<<8|t[7]))}let d=void 0!==e.msecs?e.msecs:Date.now(),h=void 0!==e.nsecs?e.nsecs:c+1;const v=d-u+(h-c)/1e4;if(v<0&&void 0===e.clockseq&&(p=p+1&16383),(v<0||d>u)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=d,c=h,a=p,d+=122192928e5;const y=(1e4*(268435455&d)+h)%4294967296;l[n++]=y>>>24&255,l[n++]=y>>>16&255,l[n++]=y>>>8&255,l[n++]=255&y;const m=d/4294967296*1e4&268435455;l[n++]=m>>>8&255,l[n++]=255&m,l[n++]=m>>>24&15|16,l[n++]=m>>>16&255,l[n++]=p>>>8|128,l[n++]=255&p;for(let e=0;e<6;++e)l[n+e]=f[e];return t||(0,i.unsafeStringify)(l)}},14948:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(r(59025)),o=i(r(22311));function i(e){return e&&e.__esModule?e:{default:e}}var s=(0,n.default)("v3",48,o.default);t.default=s},59025:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,r){function n(e,n,s,a){var u;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof n&&(n=(0,i.default)(n)),16!==(null===(u=n)||void 0===u?void 0:u.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+e.length);if(c.set(n),c.set(e,n.length),c=r(c),c[6]=15&c[6]|t,c[8]=63&c[8]|128,s){a=a||0;for(let e=0;e<16;++e)s[a+e]=c[e];return s}return(0,o.unsafeStringify)(c)}try{n.name=e}catch(e){}return n.DNS=s,n.URL=a,n};var n,o=r(49910),i=(n=r(96792))&&n.__esModule?n:{default:n};const s="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=s;const a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=a},45073:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s(r(46140)),o=s(r(2858)),i=r(49910);function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,r){if(n.default.randomUUID&&!t&&!e)return n.default.randomUUID();const s=(e=e||{}).random||(e.rng||o.default)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=s[e];return t}return(0,i.unsafeStringify)(s)}},77186:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(r(59025)),o=i(r(9042));function i(e){return e&&e.__esModule?e:{default:e}}var s=(0,n.default)("v5",80,o.default);t.default=s},37037:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(27656))&&n.__esModule?n:{default:n};t.default=function(e){return"string"==typeof e&&o.default.test(e)}},7775:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(37037))&&n.__esModule?n:{default:n};t.default=function(e){if(!(0,o.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}},56036:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(e,t={}){this.baseUrl=e||r.defaultCDN,this.overrides=t,this.libs={js:"",ace:"1.4.12",bootstrap:"5.3.2",bootstrap4:"4.6.2",bootstrap5:"5.3.2","bootstrap-icons":"1.11.1",ckeditor:"19.0.0",flatpickr:"4.6.8","flatpickr-formio":"4.6.13-formio.3","font-awesome":"4.7.0",grid:"latest","moment-timezone":"latest",quill:"2.0.0-dev.3","shortcut-buttons-flatpickr":"0.4.0",uswds:"2.4.8",core:""},this.updateUrls()}getVersion(e){return this.libs[e]}setVersion(e,t){this.libs[e]=t,this.updateUrls()}setBaseUrl(e){this.baseUrl=e,this.updateUrls()}setOverrideUrl(e,t){this.overrides[e]=t,this.updateUrls()}removeOverride(e){delete this.overrides[e],this.updateUrls()}removeOverrides(){this.overrides={},this.updateUrls()}buildUrl(e,t,r){let n=e;return t&&(n+=`/${t}`),r&&"latest"!==r&&(n+=`/${r}`),n}updateUrls(){for(const e in this.libs)if(e in this.overrides)if("string"==typeof this.overrides[e])this[e]=this.buildUrl(this.overrides[e],e,this.libs[e]);else{const t=this.overrides[e];this[e]=this.buildUrl(t.cdn,t.lib||"",t.version||"")}else this[e]=this.buildUrl(this.baseUrl,e,this.libs[e])}}r.defaultCDN="https://cdn.form.io",t.default=r},27368:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(r(2543)),i=n(r(53825)),s=n(r(19045)),a=n(r(5896));class u{static addProvider(e,t,r){u.providers[e]=u.providers[e]||{},u.providers[e][t]=r}static addProviders(e,t){u.providers[e]=o.default.merge(u.providers[e],t)}static getProvider(e,t){if(u.providers[e]&&u.providers[e][t])return u.providers[e][t]}static getProviders(e){if(u.providers[e])return u.providers[e]}}u.providers={address:i.default,auth:s.default,storage:a.default},t.default=u},10308:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AddressProvider=void 0;const o=n(r(2543)),i=r(34040);t.AddressProvider=class{static get name(){return"address"}static get displayName(){return"Address"}constructor(e={}){this.beforeMergeOptions(e),this.options=o.default.merge({},this.defaultOptions,e)}beforeMergeOptions(){}get defaultOptions(){return{}}get queryProperty(){return"query"}get responseProperty(){return null}get displayValueProperty(){return null}serialize(e){return o.default.toPairs(e).map((([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`)).join("&")}getRequestOptions(e={}){return o.default.merge({},this.options,e)}getRequestUrl(e={}){throw new Error("Method AddressProvider#getRequestUrl(options) is abstract.")}makeRequest(e={}){return i.Formio.makeStaticRequest(this.getRequestUrl(e),"GET",null,{noToken:!0})}search(e,t={}){const r=this.getRequestOptions(t);return(r.params=r.params||{})[this.queryProperty]=e,this.makeRequest(r).then((e=>this.responseProperty?o.default.get(e,this.responseProperty,[]):e))}getDisplayValue(e){return this.displayValueProperty?o.default.get(e,this.displayValueProperty,""):String(e)}}},90637:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AzureAddressProvider=void 0;const n=r(10308);class o extends n.AddressProvider{static get name(){return"azure"}static get displayName(){return"Azure Maps"}get defaultOptions(){return{params:{"api-version":"1.0",typeahead:"true"}}}get responseProperty(){return"results"}get displayValueProperty(){return"address.freeformAddress"}getRequestUrl(e={}){const{params:t}=e;return`https://atlas.microsoft.com/search/address/json?${this.serialize(t)}`}}t.AzureAddressProvider=o},84689:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomAddressProvider=void 0;const n=r(10308);class o extends n.AddressProvider{static get name(){return"custom"}static get displayName(){return"Custom"}get queryProperty(){return this.options.queryProperty||super.queryProperty}get responseProperty(){return this.options.responseProperty||super.responseProperty}get displayValueProperty(){return this.options.displayValueProperty||super.displayValueProperty}getRequestUrl(e={}){const{params:t,url:r}=e;return`${r}?${this.serialize(t)}`}}t.CustomAddressProvider=o},25873:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAddressProvider=void 0;const o=r(34040),i=n(r(2543)),s=r(10308);class a extends s.AddressProvider{static get name(){return"google"}static get displayName(){return"Google Maps"}constructor(e={}){var t;super(e),this.setAutocompleteOptions();let r="https://maps.googleapis.com/maps/api/js?v=quarterly&libraries=places&callback=googleMapsCallback";(null===(t=e.params)||void 0===t?void 0:t.key)&&(r+=`&key=${e.params.key}`),o.Formio.requireLibrary(this.getLibraryName(),"google.maps.places",r)}get displayValueProperty(){return"formattedPlace"}get alternativeDisplayValueProperty(){return"formatted_address"}set autocompleteOptions(e){this._autocompleteOptions=e}get autocompleteOptions(){return this._autocompleteOptions}setAutocompleteOptions(){let e=i.default.get(this.options,"params.autocompleteOptions",{});i.default.isObject(e)||(e={}),this.addRequiredProviderOptions(e),this.autocompleteOptions=e}beforeMergeOptions(e){this.convertRegionToAutocompleteOption(e)}getLibraryName(){return"googleMaps"}convertRegionToAutocompleteOption(e){const t=e;let r=i.default.get(t,"params.region","");if(r&&!i.default.has(e,"params.autocompleteOptions")){r=r.toUpperCase().trim();const e={UK:"GB"};e[r]&&(r=e[r]),i.default.set(t,"params.autocompleteOptions.componentRestrictions.country",[r])}}getRequiredAddressProperties(){return["address_components","formatted_address","geometry","place_id","plus_code","types"]}addRequiredProviderOptions(e){const t=this.getRequiredAddressProperties();i.default.isArray(e.fields)&&e.fields.length>0&&e.fields.forEach((e=>{t.some((t=>e===t))||t.push(e)})),e.fields=t}filterPlace(e){e=e||{};const t={};return this.autocompleteOptions&&this.autocompleteOptions.fields.forEach((r=>{e[r]&&(t[r]=e[r])})),t}attachAutocomplete(e,t,r){o.Formio.libraryReady(this.getLibraryName()).then((()=>{const n=new google.maps.places.Autocomplete(e,this.autocompleteOptions);n.addListener("place_changed",(()=>{const o=this.filterPlace(n.getPlace());o.formattedPlace=i.default.get(n,"gm_accessors_.place.se.formattedPrediction",o[this.alternativeDisplayValueProperty]),r(o,e,t)}))}))}search(){return Promise.resolve()}makeRequest(){return Promise.resolve()}getDisplayValue(e){const t=i.default.has(e,this.displayValueProperty)?this.displayValueProperty:this.alternativeDisplayValueProperty;return i.default.get(e,t,"")}}t.GoogleAddressProvider=a},90094:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NominatimAddressProvider=void 0;const n=r(10308);class o extends n.AddressProvider{static get name(){return"nominatim"}static get displayName(){return"OpenStreetMap Nominatim"}get defaultOptions(){return{params:{addressdetails:"1",format:"json"}}}get queryProperty(){return"q"}get displayValueProperty(){return"display_name"}getRequestUrl(e={}){const{params:t}=e;return`https://nominatim.openstreetmap.org/search?${this.serialize(t)}`}}t.NominatimAddressProvider=o},53825:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(90637),o=r(84689),i=r(25873),s=r(90094);t.default={[n.AzureAddressProvider.name]:n.AzureAddressProvider,[o.CustomAddressProvider.name]:o.CustomAddressProvider,[i.GoogleAddressProvider.name]:i.GoogleAddressProvider,[s.NominatimAddressProvider.name]:s.NominatimAddressProvider}},19045:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={}},59962:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(r(27368));t.default=o.default},52223:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(r(30430));function i(e){return{uploadFile:(t,r,n,i,s,a,u,c,l,f)=>o.default.upload(e,"azure",((e,r)=>(e.openAndSetHeaders("PUT",r.url),e.setRequestHeader("Content-Type",t.type),e.setRequestHeader("x-ms-blob-type","BlockBlob"),t)),t,r,n,i,c,l,f).then((e=>({storage:"azure",name:o.default.path([n,r]),size:t.size,type:t.type,groupPermissions:c,groupId:l,key:e.key}))),downloadFile:t=>e.makeRequest("file",`${e.formUrl}/storage/azure?name=${o.default.trim(t.name)}`,"GET"),deleteFile:function(t){var r=`${e.formUrl}/storage/azure?name=${o.default.trim(t.name)}&key=${o.default.trim(t.key)}`;return e.makeRequest("",r,"delete")}}}i.title="Azure File Services",t.default=i},95789:function(e,t){"use strict";function r(){return{title:"Base64",name:"base64",uploadFile(e,t){const r=new FileReader;return new Promise(((n,o)=>{r.onload=r=>{const o=r.target.result;n({storage:"base64",name:t,url:o,size:e.size,type:e.type})},r.onerror=()=>o(this),r.readAsDataURL(e)}))},downloadFile:e=>Promise.resolve(e)}}Object.defineProperty(t,"__esModule",{value:!0}),r.title="Base64",t.default=r},68405:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(30430);function o(e){return{uploadFile:(t,r,o,i,s,a,u,c,l,f)=>new Promise(((s,a)=>{const u=new XMLHttpRequest;"function"==typeof i&&(u.upload.onprogress=i),"function"==typeof f&&f((()=>u.abort()));const p=new FormData;p.append("name",r),p.append("dir",o),p.append("file",t),u.onerror=e=>{e.networkError=!0,a(e)},u.onload=()=>{if(u.status>=200&&u.status<300){const e=JSON.parse(u.response);e.storage="googledrive",e.size=t.size,e.type=t.type,e.groupId=l,e.groupPermissions=c,s(e)}else a(u.response||"Unable to upload file")},u.onabort=a,u.open("POST",`${e.formUrl}/storage/gdrive`),(0,n.setXhrHeaders)(e,u);const d=e.getToken();d&&u.setRequestHeader("x-jwt-token",d),u.send(p)})),downloadFile(t){const r=e.getToken();return t.url=`${e.formUrl}/storage/gdrive?fileId=${t.id}&fileName=${t.originalName}${r?`&x-jwt-token=${r}`:""}`,Promise.resolve(t)},deleteFile:function(t){var r="".concat(e.formUrl,`/storage/gdrive?id=${t.id}&name=${t.originalName}`);return e.makeRequest("",r,"delete")}}}o.title="Google Drive",t.default=o},5896:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(r(95789)),i=n(r(7152)),s=n(r(52223)),a=n(r(13225)),u=n(r(46775)),c=n(r(68405));t.default={base64:o.default,s3:i.default,url:a.default,azure:s.default,indexeddb:u.default,googledrive:c.default}},46775:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(22831);function o(){return{title:"indexedDB",name:"indexeddb",uploadFile(e,t,r,o,i,s){if("indexedDB"in window)return new Promise((e=>{const t=indexedDB.open(s.indexeddb);t.onsuccess=function(t){const r=t.target.result;e(r)},t.onupgradeneeded=function(e){e.target.result.createObjectStore(s.indexeddbTable)}})).then((t=>{const r=new FileReader;return new Promise(((o,a)=>{r.onload=()=>{const r=new Blob([e],{type:e.type}),a=(0,n.v4)(r),u={id:a,data:r,name:e.name,size:e.size,type:e.type,url:i},c=t.transaction([s.indexeddbTable],"readwrite");c.objectStore(s.indexeddbTable).put(u,a).onerror=function(e){console.log("error storing data"),console.error(e)},c.oncomplete=function(){o({storage:"indexeddb",name:e.name,size:e.size,type:e.type,url:i,id:a})}},r.onerror=()=>a(this),r.readAsDataURL(e)}))}));console.log("This browser doesn't support IndexedDB")},downloadFile(e,t){return new Promise((e=>{indexedDB.open(t.indexeddb).onsuccess=function(t){const r=t.target.result;e(r)}})).then((r=>new Promise(((n,o)=>{const i=r.transaction([t.indexeddbTable],"readonly"),s=i.objectStore(t.indexeddbTable).get(e.id);s.onsuccess=()=>{i.oncomplete=()=>{const t=s.result,r=new File([s.result.data],e.name,{type:s.result.type}),i=new FileReader;i.onload=r=>{t.url=r.target.result,t.storage=e.storage,n(t)},i.onerror=()=>o(this),i.readAsDataURL(r)}},s.onerror=()=>o(this)}))))},deleteFile(e,t){return new Promise((e=>{indexedDB.open(t.indexeddb).onsuccess=function(t){const r=t.target.result;e(r)}})).then((r=>new Promise(((n,o)=>{const i=r.transaction([t.indexeddbTable],"readwrite"),s=i.objectStore(t.indexeddbTable).delete(e.id);s.onsuccess=()=>{i.oncomplete=()=>{const e=s.result;n(e)}},s.onerror=()=>o(this)}))))}}}o.title="IndexedDB",t.default=o},7152:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t},s=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{u(n.next(e))}catch(e){i(e)}}function a(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((n=n.apply(e,t||[])).next())}))},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const u=a(r(30430)),c=r(55474);function l(e){return{uploadFile(t,n,o,a,l,f,p,d,h,v,y){return s(this,void 0,void 0,(function*(){const l=yield u.default.upload(e,"s3",((e,a,l)=>s(this,void 0,void 0,(function*(){if(a.data.fileName=n,a.data.key=u.default.path([a.data.key,o,n]),!a.signed){const r=new FormData;for(const e in a.data)r.append(e,a.data[e]);return r.append("file",t),e.openAndSetHeaders("POST",a.url),r}if(!y||!Array.isArray(a.signed))return e.openAndSetHeaders("PUT",a.signed),e.setRequestHeader("Content-Type",t.type),a.data.headers&&Object.keys(a.data.headers).forEach((t=>{e.setRequestHeader(t,a.data.headers[t])})),t;{yield s(void 0,void 0,void 0,(function*(){"undefined"==typeof AbortController&&(yield Promise.resolve().then((()=>i(r(24715)))))}));const e=new AbortController,n=e.signal;"function"==typeof l&&l((()=>e.abort()));try{const e=yield this.uploadParts(t,a.signed,a.data.headers,a.partSizeActual,y,n);return void(yield(0,c.withRetries)(this.completeMultipartUpload,[a,e,y],3))}catch(t){throw e.abort(),this.abortMultipartUpload(a),t}}}))),t,n,o,a,d,h,v,y);return{storage:"s3",name:n,bucket:l.bucket,key:l.data.key,url:u.default.path([l.url,l.data.key]),acl:l.data.acl,size:t.size,type:t.type}}))},completeMultipartUpload(t,r,n){return s(this,void 0,void 0,(function*(){const{changeMessage:o}=n;o("Completing AWS S3 multipart upload...");const i=e.getToken(),s=yield fetch(`${e.formUrl}/storage/s3/multipart/complete`,{method:"POST",headers:Object.assign({"Content-Type":"application/json"},i?{"x-jwt-token":i}:{}),body:JSON.stringify({parts:r,uploadId:t.uploadId,key:t.key})}),a=yield s.text();if(!s.ok)throw new Error(a);if(a.match(/Error/))throw new Error(a)}))},abortMultipartUpload(t){const{uploadId:r,key:n}=t,o=e.getToken();fetch(`${e.formUrl}/storage/s3/multipart/abort`,{method:"POST",headers:Object.assign({"Content-Type":"application/json"},o?{"x-jwt-token":o}:{}),body:JSON.stringify({uploadId:r,key:n})}).catch((e=>console.error("Error while aborting multipart upload:",e)))},uploadParts(e,t,r,n,o,i){const{changeMessage:s,progressCallback:a}=o;s("Chunking and uploading parts to AWS S3...");const u=[];for(let o=0;o<t.length;o++){const s=o*n,c=(o+1)*n,l=o<t.length?e.slice(s,c):e.slice(s),f=fetch(t[o],{method:"PUT",headers:r,body:l,signal:i}).then((e=>{if(e.ok){a(t.length);const r=e.headers.get("etag");if(!r)throw new Error("ETag header not found; it must be exposed in S3 bucket CORS settings");return{ETag:r,PartNumber:o+1}}throw new Error(`Part no ${o} failed with status ${e.status}`)}));u.push(f)}return Promise.all(u)},downloadFile:t=>"public-read"!==t.acl?e.makeRequest("file",`${e.formUrl}/storage/s3?bucket=${u.default.trim(t.bucket)}&key=${u.default.trim(t.key)}`,"GET"):Promise.resolve(t),deleteFile(t){const r=`${e.formUrl}/storage/s3?bucket=${u.default.trim(t.bucket)}&key=${u.default.trim(t.key)}`;return e.makeRequest("",r,"delete")}}}l.title="S3",t.default=l},13225:function(e,t){"use strict";function r(e){function t(e,t){const r="string"==typeof e?JSON.parse(e):e;for(const e in r)if("headers"===e){const e=r.headers;for(const r in e)t.setRequestHeader(r,e[r])}else t[e]=r[e]}const r=(r,n,o,i,s,a,u)=>new Promise(((c,l)=>{const f=new XMLHttpRequest,p="string"==typeof i,d=new FormData;if("function"==typeof a&&(f.upload.onprogress=a),"function"==typeof u&&u((()=>f.abort())),!p)for(const e in i)d.append(e,i[e]);f.onload=()=>{if(f.status>=200&&f.status<300){let e={};try{e="string"==typeof f.response?JSON.parse(f.response):{},e=e&&e.data?e.data:e}catch(t){e={}}let t=e.hasOwnProperty("url")?e.url:`${f.responseURL}/${n}`;t&&"/"===t[0]&&(t=`${r}${t}`),c({url:t,data:e})}else l(f.response||"Unable to upload file")},f.onerror=()=>l(f),f.onabort=()=>l(f);let h=r+(r.indexOf("?")>-1?"&":"?");for(const e in o)h+=`${e}=${o[e]}&`;"&"===h[h.length-1]&&(h=h.substr(0,h.length-1)),f.open("POST",h),p&&f.setRequestHeader("Content-Type","application/json");const v=e.getToken();v&&f.setRequestHeader("x-jwt-token",v),s&&t(s,f),f.send(p?i:d)}));return{title:"Url",name:"url",uploadFile(t,n,o,i,s,a,u,c,l,f){const p=function(c){return r(s,n,{baseUrl:encodeURIComponent(e.projectUrl),project:c?c.project:"",form:c?c._id:""},{[u]:t,name:n,dir:o},a,i,f).then((r=>(r.data=r.data||{},r.data.baseUrl=e.projectUrl,r.data.project=c?c.project:"",r.data.form=c?c._id:"",{storage:"url",name:n,url:r.url,size:t.size,type:t.type,data:r.data})))};return t.private&&e.formId?e.loadForm().then((e=>p(e))):p()},deleteFile:(e,r)=>new Promise(((n,o)=>{const i=new XMLHttpRequest;i.open("DELETE",e.url,!0),i.onload=()=>{i.status>=200&&i.status<300?n("File deleted"):o(i.response||"Unable to delete file")},r&&t(r,i),i.send(null)})),downloadFile:t=>t.private?(e.submissionId&&t.data&&(t.data.submission=e.submissionId),r(t.url,t.name,{},JSON.stringify(t)).then((e=>e.data))):Promise.resolve(t)}}Object.defineProperty(t,"__esModule",{value:!0}),r.title="Url",t.default=r},55474:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{u(n.next(e))}catch(e){i(e)}}function a(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.withRetries=void 0,t.withRetries=function e(t,n,o=3,i=null){return r(this,void 0,void 0,(function*(){if(!o)throw new Error(i);return t(...n).catch((()=>e(t,n,o-1,i)))}))}},30430:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{u(n.next(e))}catch(e){i(e)}}function a(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((n=n.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setXhrHeaders=void 0;const i=o(r(44826));t.setXhrHeaders=(e,t)=>{const{headers:r}=e.options;if(r){const e={"Content-Disposition":!0,Authorization:!0};for(const n in r)e[n]&&t.setRequestHeader(n,r[n])}};const s={trim:e=>(0,i.default)(e,"/"),path:e=>e.filter((e=>!!e)).map(s.trim).join("/"),upload(e,t,r,o,i,a,u,c,l,f,p){return n(this,void 0,void 0,(function*(){const n=e.getToken();let d;try{d=yield fetch(`${e.formUrl}/storage/${t}`,{method:"POST",headers:Object.assign({Accept:"application/json","Content-Type":"application/json; charset=UTF-8"},n?{"x-jwt-token":n}:{}),body:JSON.stringify({name:s.path([a,i]),size:o.size,type:o.type,groupPermissions:c,groupId:l,multipart:p})})}catch(e){throw e.networkError=!0,e}if(!d.ok){if(504===d.status){const e=new Error("Network request failed");throw e.networkError=!0,e}const e=yield d.text();throw new Error(e||"Unable to sign file.")}const h=yield d.json();return yield s.makeXhrRequest(e,r,h,u,f)}))},makeXhrRequest:(e,r,n,o,i)=>new Promise(((s,a)=>{const u=new XMLHttpRequest;u.openAndSetHeaders=(...r)=>{u.open(...r),(0,t.setXhrHeaders)(e,u)},Promise.resolve(r(u,n,i)).then((e=>{if(!e)return s(n);u.onerror=e=>{e.networkError=!0,a(e)},u.onabort=e=>{e.networkError=!0,a(e)},u.onabort=a,"function"==typeof o&&(u.upload.onprogress=o),"function"==typeof i&&i((()=>u.abort())),u.onload=()=>{if(u.status>=200&&u.status<300)s(n);else if(504===u.status){const e=new Error("Network request failed");e.networkError=!0,a(e)}else a(u.response||"Unable to upload file")},u.send(e)})).catch(a)}))};t.default=s},95413:function(e,t,r){"use strict";var n,o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{u(n.next(e))}catch(e){i(e)}}function a(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((n=n.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FormBuilder=t.Form=t.Formio=void 0;const s=i(r(56036));class a{static setLicense(e,t=!1){n.license=e,!t&&n.FormioClass&&n.FormioClass.setLicense(e)}static setBaseUrl(e,t=!1){n.baseUrl=e,!t&&n.FormioClass&&n.FormioClass.setBaseUrl(e)}static setApiUrl(e,t=!1){n.baseUrl=e,!t&&n.FormioClass&&n.FormioClass.setApiUrl(e)}static setProjectUrl(e,t=!1){n.projectUrl=e,!t&&n.FormioClass&&n.FormioClass.setProjectUrl(e)}static setAppUrl(e,t=!1){n.projectUrl=e,!t&&n.FormioClass&&n.FormioClass.setAppUrl(e)}static setPathType(e,t=!1){n.pathType=e,!t&&n.FormioClass&&n.FormioClass.setPathType(e)}static debug(...e){n.config.debug&&console.log(...e)}static clearCache(){n.FormioClass&&n.FormioClass.clearCache()}static global(e,t=""){const r=window[e];return t&&r&&!r[t]?null:(n.debug(`Getting global ${e}`,r),r)}static use(e){n.FormioClass&&n.FormioClass.isRenderer?n.FormioClass.use(e):n.modules.push(e)}static createElement(e,t,r){const o=document.createElement(e);return Object.keys(t).forEach((e=>{o.setAttribute(e,t[e])})),(r||[]).forEach((e=>{o.appendChild(n.createElement(e.tag,e.attrs,e.children))})),o}static addScript(e,t,r,i=""){return o(this,void 0,void 0,(function*(){if(!t)return Promise.resolve();if("string"!=typeof t&&t.length)return Promise.all(t.map((t=>n.addScript(e,t))));if(r&&n.global(r,i))return n.debug(`${r} already loaded.`),Promise.resolve(n.global(r));n.debug("Adding Script",t);try{e.appendChild(n.createElement("script",{src:t}))}catch(e){return n.debug(e),Promise.resolve()}return r?new Promise((e=>{n.debug(`Waiting to load ${r}`);const t=setInterval((()=>{n.global(r,i)&&(clearInterval(t),n.debug(`${r} loaded.`),e(n.global(r)))}),100)})):Promise.resolve()}))}static addStyles(e,t){return o(this,void 0,void 0,(function*(){t&&("string"!=typeof t&&t.length?t.forEach((t=>n.addStyles(e,t))):(n.debug("Adding Styles",t),e.appendChild(n.createElement("link",{rel:"stylesheet",href:t}))))}))}static submitDone(e,t){return o(this,void 0,void 0,(function*(){n.debug("Submision Complete",t);const r=(n.config.success||"").toString();r&&"false"!==r.toLowerCase()&&e.element&&(e.element.innerHTML=`<div class="alert-success" role="alert">${r}</div>`);let o=n.config.redirect;if(!o&&e._form&&e._form.settings&&(e._form.settings.returnUrl||e._form.settings.redirect)&&(n.debug("Return url found in form configuration"),o=e._form.settings.returnUrl||e._form.settings.redirect),o){const r=e.formio?e.formio.formUrl:"",i=!!o.match(/\?/),s=0===o.indexOf(location.origin);o+=i?"&":"?",o+=`sub=${t._id}`,!s&&r&&(o+=`&form=${encodeURIComponent(r)}`),n.debug("Return URL",o),window.location.href=o,s&&window.location.reload()}}))}static formioScript(e,t){return t=t||n.config.includeBuilder,n.fullAdded||t?(n.fullAdded=!0,e.replace("formio.form","formio.full")):e}static addLibrary(e,t,r){return o(this,void 0,void 0,(function*(){if(t){if(t.dependencies)for(let r=0;r<t.dependencies.length;r++)yield n.addLibrary(e,n.cdn.libs[t.dependencies[r]]);if(t.css&&(yield n.addStyles(e,t.css)),t.js){const o=yield n.addScript(e,t.js,!!t.use&&r);if(t.use){n.debug(`Using ${r}`);const e=t.options||{};!e.license&&n.license&&(e.license=n.license),n.use("function"==typeof t.use?t.use(o):o,e)}}}}))}static addLoader(e){return o(this,void 0,void 0,(function*(){e.appendChild(n.createElement("div",{class:"formio-loader"},[{tag:"div",attrs:{class:"loader-wrapper"},children:[{tag:"div",attrs:{class:"loader text-center"}}]}]))}))}static init(e,t={},r=!1){return o(this,void 0,void 0,(function*(){n.cdn=new s.default(n.config.cdn,n.config.cdnUrls||{}),n.config.libs=n.config.libs||{uswds:{dependencies:["fontawesome"],js:`${n.cdn.uswds}/uswds.min.js`,css:`${n.cdn.uswds}/uswds.min.css`,use:!0},fontawesome:{css:`${n.cdn["font-awesome"]}/css/font-awesome.min.css`},bootstrap4:{dependencies:["fontawesome"],css:`${n.cdn.bootstrap4}/css/bootstrap.min.css`},bootstrap:{dependencies:["bootstrap-icons"],css:`${n.cdn.bootstrap}/css/bootstrap.min.css`},"bootstrap-icons":{css:`${n.cdn["bootstrap-icons"]}/css/bootstrap-icons.css`}};const o=n.config.id||`formio-${Math.random().toString(36).substring(7)}`;let i=n.createElement("div",{id:`${o}-wrapper`});e.parentNode.insertBefore(i,e);const a=n.config.includeLibs&&"function"==typeof i.attachShadow;a&&(i=i.attachShadow({mode:"open"}),t.shadowRoot=i),e.parentNode.removeChild(e),i.appendChild(e);const u=a?i:document.body;yield n.addStyles(u,n.config.embedCSS||`${n.cdn.js}/formio.embed.css`),n.addLoader(i);const c=n.config.full?"formio.full":"formio.form",l=n.config.debug?c:`${c}.min`;if(n.FormioClass=yield n.addScript(u,n.formioScript(n.config.script||`${n.cdn.js}/${l}.js`,r),"Formio",r?"isBuilder":"isRenderer"),n.FormioClass.cdn=n.cdn,n.FormioClass.setBaseUrl(t.baseUrl||n.baseUrl||n.config.base),n.FormioClass.setProjectUrl(t.projectUrl||n.projectUrl||n.config.project),n.FormioClass.language=n.language,n.setLicense(n.license||n.config.license||!1),n.modules.forEach((e=>{n.FormioClass.use(e)})),n.icons&&(n.FormioClass.icons=n.icons),n.pathType&&n.FormioClass.setPathType(n.pathType),n.config.template&&n.config.includeLibs&&(yield n.addLibrary(u,n.config.libs[n.config.template],n.config.template)),n.config.premium&&(n.config.modules.premium=n.config.premium),n.config.modules)for(const e in n.config.modules){const t=n.config.modules[e];t.use=t.use||!0,yield n.addLibrary(u,t,e)}return yield n.addStyles(u,n.formioScript(n.config.style||`${n.cdn.js}/${l}.css`,r)),n.config.before&&(yield n.config.before(n.FormioClass,e,n.config)),n.FormioClass.license=!0,n._formioReady(n.FormioClass),i}))}static afterCreate(e,t,r){return o(this,void 0,void 0,(function*(){const o=t.querySelector(".formio-loader");return o&&t.removeChild(o),n.FormioClass.events.emit(r,e),n.config.after&&(n.debug("Calling ready callback"),n.config.after(e,n.config)),e}))}static createForm(e,t,r={}){return o(this,void 0,void 0,(function*(){if(n.FormioClass)return n.FormioClass.createForm(e,t,Object.assign(Object.assign({},r),{noLoader:!0}));const o=yield n.init(e,r);return n.FormioClass.createForm(e,t,Object.assign(Object.assign({},r),{noLoader:!0})).then((e=>(n.config.submission&&(n.debug("Setting submission",n.config.submission),e.submission=n.config.submission),n.afterCreate(e,o,"formEmbedded"),e)))}))}static builder(e,t,r={}){var i;return o(this,void 0,void 0,(function*(){if(null===(i=n.FormioClass)||void 0===i?void 0:i.builder)return n.FormioClass.builder(e,t,r);const o=yield n.init(e,r,!0);return n.FormioClass.builder(e,t,r).then((e=>(n.afterCreate(e,o,"builderEmbedded"),e)))}))}}t.Formio=a,n=a,a.FormioClass=null,a.config={},a.modules=[],a.icons="",a.license="",a.formioReady=new Promise(((e,t)=>{n._formioReady=e,n._formioReadyReject=t})),a.version="5.0.0-rc.53",a.Report={create:(e,t,r={})=>o(void 0,void 0,void 0,(function*(){var o;if(null===(o=n.FormioClass)||void 0===o?void 0:o.Report)return n.FormioClass.Report.create(e,t,r);const i=yield n.init(e,r,!0);return n.FormioClass.Report.create(e,t,r).then((e=>(n.afterCreate(e,i,"reportEmbedded"),e)))}))},s.default.defaultCDN=a.version.includes("rc")?"https://cdn.test-form.io":"https://cdn.form.io";class u{constructor(e,t,r){this.form=t,this.element=e,this.options=r||{},this.init(),this.instance={proxy:!0,ready:this.ready,destroy:()=>{}}}init(){this.instance&&!this.instance.proxy&&this.instance.destroy(),this.element.innerHTML="",this.ready=this.create().then((e=>(this.instance=e,this.form=e.form,e)))}create(){return a.createForm(this.element,this.form,this.options)}setForm(e){this.form=e,this.instance&&this.instance.setForm(e)}setDisplay(e){return this.instance.proxy||(this.form.display=e,this.instance.destroy(),this.ready=this.create().then((e=>{this.instance=e,this.setForm(this.form)}))),this.ready}}t.Form=u;class c extends u{create(){return a.builder(this.element,this.form,this.options)}}t.FormBuilder=c,a.Form=u,a.FormBuilder=c},34040:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Formio=void 0;const o=r(94394);Object.defineProperty(t,"Formio",{enumerable:!0,get:function(){return o.Formio}});const i=r(95413),s=n(r(56036)),a=n(r(59962));o.Formio.cdn=new s.default,o.Formio.Providers=a.default,o.Formio.version="5.0.0-rc.53",s.default.defaultCDN=o.Formio.version.includes("rc")?"https://cdn.test-form.io":"https://cdn.form.io";const u=e=>null==e;o.Formio.prototype.uploadFile=function(e,t,r,n,i,s,c,l,f,p,d,h,v){const y={provider:e,method:"upload",file:t,fileName:r,dir:n};l=l||"file";const m=o.Formio.pluginWait("preRequest",y).then((()=>o.Formio.pluginGet("fileRequest",y).then((o=>{if(e&&u(o)){const o=a.default.getProvider("storage",e);if(o){const e=new o(this);return d&&d(),e.uploadFile(t,r,n,i,s,c,l,f,p,h,v)}throw"Storage provider not found"}return o||{url:""}}))));return o.Formio.pluginAlter("wrapFileRequestPromise",m,y)},o.Formio.prototype.downloadFile=function(e,t){const r={method:"download",file:e},n=o.Formio.pluginWait("preRequest",r).then((()=>o.Formio.pluginGet("fileRequest",r).then((r=>{if(e.storage&&u(r)){const r=a.default.getProvider("storage",e.storage);if(r)return new r(this).downloadFile(e,t);throw"Storage provider not found"}return r||{url:""}}))));return o.Formio.pluginAlter("wrapFileRequestPromise",n,r)},o.Formio.prototype.deleteFile=function(e,t){const r={method:"delete",file:e},n=o.Formio.pluginWait("preRequest",r).then((()=>o.Formio.pluginGet("fileRequest",r).then((r=>{if(e.storage&&u(r)){const r=a.default.getProvider("storage",e.storage);if(r)return new r(this).deleteFile(e,t);throw"Storage provider not found"}return r||{url:""}}))));return o.Formio.pluginAlter("wrapFileRequestPromise",n,r)},["setBaseUrl","setApiUrl","setAppUrl","setProjectUrl","setPathType","setLicense"].forEach((e=>{const t=o.Formio[e];o.Formio[e]=function(r){const n=i.Formio[e](r,!0);return t?t.call(this,r):n}})),o.Formio.Promise=Promise,o.Formio.formioReady=i.Formio.formioReady,o.Formio.config=i.Formio.config,o.Formio.builder=i.Formio.builder,o.Formio.Report=i.Formio.Report,o.Formio.Form=i.Formio.Form,o.Formio.FormBuilder=i.Formio.FormBuilder,o.Formio.use=i.Formio.use,o.Formio.createForm=i.Formio.createForm,o.Formio.submitDone=i.Formio.submitDone,o.Formio.addLibrary=i.Formio.addLibrary,o.Formio.addLoader=i.Formio.addLoader},54949:function(e,t,r){"use strict";r.r(t),r.d(t,{JsonPatchError:function(){return y},_areEquals:function(){return k},applyOperation:function(){return O},applyPatch:function(){return j},applyReducer:function(){return A},compare:function(){return F},deepClone:function(){return l},default:function(){return $},escapePathComponent:function(){return p},generate:function(){return S},getValueByPointer:function(){return w},observe:function(){return T},unescapePathComponent:function(){return d},unobserve:function(){return C},validate:function(){return x},validator:function(){return P}});var n={};r.r(n),r.d(n,{JsonPatchError:function(){return m},_areEquals:function(){return k},applyOperation:function(){return O},applyPatch:function(){return j},applyReducer:function(){return A},deepClone:function(){return g},getValueByPointer:function(){return w},validate:function(){return x},validator:function(){return P}});var o={};r.r(o),r.d(o,{compare:function(){return F},generate:function(){return S},observe:function(){return T},unobserve:function(){return C}});var i,s=(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},i(e,t)},function(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=Object.prototype.hasOwnProperty;function u(e,t){return a.call(e,t)}function c(e){if(Array.isArray(e)){for(var t=new Array(e.length),r=0;r<t.length;r++)t[r]=""+r;return t}if(Object.keys)return Object.keys(e);var n=[];for(var o in e)u(e,o)&&n.push(o);return n}function l(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function f(e){for(var t,r=0,n=e.length;r<n;){if(!((t=e.charCodeAt(r))>=48&&t<=57))return!1;r++}return!0}function p(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function d(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function h(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,r=e.length;t<r;t++)if(h(e[t]))return!0}else if("object"==typeof e)for(var n=c(e),o=n.length,i=0;i<o;i++)if(h(e[n[i]]))return!0;return!1}function v(e,t){var r=[e];for(var n in t){var o="object"==typeof t[n]?JSON.stringify(t[n],null,2):t[n];void 0!==o&&r.push(n+": "+o)}return r.join("\n")}var y=function(e){function t(t,r,n,o,i){var s=this.constructor,a=e.call(this,v(t,{name:r,index:n,operation:o,tree:i}))||this;return a.name=r,a.index=n,a.operation=o,a.tree=i,Object.setPrototypeOf(a,s.prototype),a.message=v(t,{name:r,index:n,operation:o,tree:i}),a}return s(t,e),t}(Error),m=y,g=l,b={add:function(e,t,r){return e[t]=this.value,{newDocument:r}},remove:function(e,t,r){var n=e[t];return delete e[t],{newDocument:r,removed:n}},replace:function(e,t,r){var n=e[t];return e[t]=this.value,{newDocument:r,removed:n}},move:function(e,t,r){var n=w(r,this.path);n&&(n=l(n));var o=O(r,{op:"remove",path:this.from}).removed;return O(r,{op:"add",path:this.path,value:o}),{newDocument:r,removed:n}},copy:function(e,t,r){var n=w(r,this.from);return O(r,{op:"add",path:this.path,value:l(n)}),{newDocument:r}},test:function(e,t,r){return{newDocument:r,test:k(e[t],this.value)}},_get:function(e,t,r){return this.value=e[t],{newDocument:r}}},_={add:function(e,t,r){return f(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:r,index:t}},remove:function(e,t,r){return{newDocument:r,removed:e.splice(t,1)[0]}},replace:function(e,t,r){var n=e[t];return e[t]=this.value,{newDocument:r,removed:n}},move:b.move,copy:b.copy,test:b.test,_get:b._get};function w(e,t){if(""==t)return e;var r={op:"_get",path:t};return O(e,r),r.value}function O(e,t,r,n,o,i){if(void 0===r&&(r=!1),void 0===n&&(n=!0),void 0===o&&(o=!0),void 0===i&&(i=0),r&&("function"==typeof r?r(t,0,e,t.path):P(t,0)),""===t.path){var s={newDocument:e};if("add"===t.op)return s.newDocument=t.value,s;if("replace"===t.op)return s.newDocument=t.value,s.removed=e,s;if("move"===t.op||"copy"===t.op)return s.newDocument=w(e,t.from),"move"===t.op&&(s.removed=e),s;if("test"===t.op){if(s.test=k(e,t.value),!1===s.test)throw new m("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return s.newDocument=e,s}if("remove"===t.op)return s.removed=e,s.newDocument=null,s;if("_get"===t.op)return t.value=e,s;if(r)throw new m("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return s}n||(e=l(e));var a=(t.path||"").split("/"),u=e,c=1,p=a.length,h=void 0,v=void 0,y=void 0;for(y="function"==typeof r?r:P;;){if((v=a[c])&&-1!=v.indexOf("~")&&(v=d(v)),o&&("__proto__"==v||"prototype"==v&&c>0&&"constructor"==a[c-1]))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&void 0===h&&(void 0===u[v]?h=a.slice(0,c).join("/"):c==p-1&&(h=t.path),void 0!==h&&y(t,0,e,h)),c++,Array.isArray(u)){if("-"===v)v=u.length;else{if(r&&!f(v))throw new m("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",i,t,e);f(v)&&(v=~~v)}if(c>=p){if(r&&"add"===t.op&&v>u.length)throw new m("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",i,t,e);if(!1===(s=_[t.op].call(t,u,v,e)).test)throw new m("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return s}}else if(c>=p){if(!1===(s=b[t.op].call(t,u,v,e)).test)throw new m("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return s}if(u=u[v],r&&c<p&&(!u||"object"!=typeof u))throw new m("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}function j(e,t,r,n,o){if(void 0===n&&(n=!0),void 0===o&&(o=!0),r&&!Array.isArray(t))throw new m("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");n||(e=l(e));for(var i=new Array(t.length),s=0,a=t.length;s<a;s++)i[s]=O(e,t[s],r,!0,o,s),e=i[s].newDocument;return i.newDocument=e,i}function A(e,t,r){var n=O(e,t);if(!1===n.test)throw new m("Test operation failed","TEST_OPERATION_FAILED",r,t,e);return n.newDocument}function P(e,t,r,n){if("object"!=typeof e||null===e||Array.isArray(e))throw new m("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,r);if(!b[e.op])throw new m("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,r);if("string"!=typeof e.path)throw new m("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,r);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new m('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,r);if(("move"===e.op||"copy"===e.op)&&"string"!=typeof e.from)throw new m("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,r);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&void 0===e.value)throw new m("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,r);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&h(e.value))throw new m("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,r);if(r)if("add"==e.op){var o=e.path.split("/").length,i=n.split("/").length;if(o!==i+1&&o!==i)throw new m("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,r)}else if("replace"===e.op||"remove"===e.op||"_get"===e.op){if(e.path!==n)throw new m("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,r)}else if("move"===e.op||"copy"===e.op){var s=x([{op:"_get",path:e.from,value:void 0}],r);if(s&&"OPERATION_PATH_UNRESOLVABLE"===s.name)throw new m("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}function x(e,t,r){try{if(!Array.isArray(e))throw new m("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)j(l(t),l(e),r||!0);else{r=r||P;for(var n=0;n<e.length;n++)r(e[n],n,t,void 0)}}catch(e){if(e instanceof m)return e;throw e}}function k(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var r,n,o,i=Array.isArray(e),s=Array.isArray(t);if(i&&s){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!k(e[r],t[r]))return!1;return!0}if(i!=s)return!1;var a=Object.keys(e);if((n=a.length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!t.hasOwnProperty(a[r]))return!1;for(r=n;0!=r--;)if(!k(e[o=a[r]],t[o]))return!1;return!0}return e!=e&&t!=t}var U=new WeakMap,E=function(e){this.observers=new Map,this.obj=e},R=function(e,t){this.callback=e,this.observer=t};function C(e,t){t.unobserve()}function T(e,t){var r,n=function(e){return U.get(e)}(e);if(n){var o=function(e,t){return e.observers.get(t)}(n,t);r=o&&o.observer}else n=new E(e),U.set(e,n);if(r)return r;if(r={},n.value=l(e),t){r.callback=t,r.next=null;var i=function(){S(r)},s=function(){clearTimeout(r.next),r.next=setTimeout(i)};"undefined"!=typeof window&&(window.addEventListener("mouseup",s),window.addEventListener("keyup",s),window.addEventListener("mousedown",s),window.addEventListener("keydown",s),window.addEventListener("change",s))}return r.patches=[],r.object=e,r.unobserve=function(){S(r),clearTimeout(r.next),function(e,t){e.observers.delete(t.callback)}(n,r),"undefined"!=typeof window&&(window.removeEventListener("mouseup",s),window.removeEventListener("keyup",s),window.removeEventListener("mousedown",s),window.removeEventListener("keydown",s),window.removeEventListener("change",s))},n.observers.set(t,new R(t,r)),r}function S(e,t){void 0===t&&(t=!1);var r=U.get(e.object);I(r.value,e.object,e.patches,"",t),e.patches.length&&j(r.value,e.patches);var n=e.patches;return n.length>0&&(e.patches=[],e.callback&&e.callback(n)),n}function I(e,t,r,n,o){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var i=c(t),s=c(e),a=!1,f=s.length-1;f>=0;f--){var d=e[v=s[f]];if(!u(t,v)||void 0===t[v]&&void 0!==d&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(o&&r.push({op:"test",path:n+"/"+p(v),value:l(d)}),r.push({op:"remove",path:n+"/"+p(v)}),a=!0):(o&&r.push({op:"test",path:n,value:e}),r.push({op:"replace",path:n,value:t}));else{var h=t[v];"object"==typeof d&&null!=d&&"object"==typeof h&&null!=h&&Array.isArray(d)===Array.isArray(h)?I(d,h,r,n+"/"+p(v),o):d!==h&&(o&&r.push({op:"test",path:n+"/"+p(v),value:l(d)}),r.push({op:"replace",path:n+"/"+p(v),value:l(h)}))}}if(a||i.length!=s.length)for(f=0;f<i.length;f++){var v;u(e,v=i[f])||void 0===t[v]||r.push({op:"add",path:n+"/"+p(v),value:l(t[v])})}}}function F(e,t,r){void 0===r&&(r=!1);var n=[];return I(e,t,n,"",r),n}const $=Object.assign({},n,o,{JsonPatchError:y,deepClone:l,escapePathComponent:p,unescapePathComponent:d})}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var n=r(34040);return n.Formio}()}));
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Formio=t():e.Formio=t()}(self,(function(){return function(){var e={23370:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(2543);class o{static identity(e){return e}static deregisterPlugin(e){const t=o.plugins.length;return o.plugins=o.plugins.filter((t=>t!==e&&t.__name!==e||((t.deregister||n.noop).call(e,o.Formio),!1))),t!==o.plugins.length}static registerPlugin(e,t){o.plugins.push(e),o.plugins.sort(((e,t)=>(t.priority||0)-(e.priority||0))),e.__name=t,(e.init||n.noop).call(e,o.Formio)}static getPlugin(e){for(const t of o.plugins)if(t.__name===e)return t;return null}static pluginWait(e,...t){return Promise.all(o.plugins.map((r=>(r[e]||n.noop).call(r,...t))))}static pluginGet(e,...t){const r=i=>{const a=o.plugins[i];return a?Promise.resolve((a[e]||n.noop).call(a,...t)).then((e=>(0,n.isNil)(e)?r(i+1):e)):Promise.resolve(null)};return r(0)}static pluginAlter(e,t,...r){return o.plugins.reduce(((t,n)=>(n[e]||o.identity)(t,...r)),t)}}o.plugins=[],t.default=o},94394:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Formio=void 0;var n=r(15993);Object.defineProperty(t,"Formio",{enumerable:!0,get:function(){return n.Formio}})},70678:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Evaluator=t.BaseEvaluator=void 0;const n=r(2543);class o{static evaluator(e,...t){return i.noeval?(console.warn("No evaluations allowed for this renderer."),n.noop):"function"==typeof e?e:("object"==typeof t[0]&&(t=(0,n.keys)(t[0])),new Function(...t,e))}static interpolateString(e,t,r={}){return e?"string"!=typeof e?e.toString():e.replace(/({{\s*(.*?)\s*}})/g,((e,o,a)=>{if(-1===a.indexOf("(")||i.noeval||r.noeval){let e=a;-1!==a.indexOf("?")&&(e=a.replace(/\?\./g,"."));const o=e.split("||").map((e=>e.trim()));let i="",s="";for(let e=0;e<o.length&&(s=o[e],i=(0,n.get)(t,s),!i);e++);return r.data&&(0,n.set)(r.data,s,i),i}return a.replace(/([^\(]+)\(([^\)]+)\s*\);?/,((e,o,a)=>{o=(0,n.trim)(o);const s=(0,n.get)(t,o);return s?(a&&(a=a.split(",").map((e=>0===(e=(0,n.trim)(e)).indexOf('"')||0===e.indexOf("'")?e.substring(1,e.length-1):(0,n.get)(t,e)))),i.evaluate(s,a,"",!1,t,r)):""}))})):""}static interpolate(e,t,r={}){if("function"==typeof e&&!i.noeval&&!r.noeval)try{return e(t)}catch(e){return console.warn("Error interpolating template",e,t),e.message}return i.interpolateString(String(e),t,r)}static evaluate(e,t={},r="",a=!1,s={},u={}){let c=null;u=(0,n.isObject)(u)?u:{noeval:u};const l=t.component?t.component:{key:"unknown"};!t.form&&t.instance&&(t.form=(0,n.get)(t.instance,"root._form",{}));const f=l.key;if("string"==typeof e){r&&(e=`var ${r};${e};return ${r}`),a&&(e=o.interpolate(e,t,u));try{e=i.noeval||u.noeval?n.noop:i.evaluator(e,t,s),t=(0,n.values)(t)}catch(t){console.warn(`An error occured within the custom function for ${f}`,t),c=null,e=!1}}if("function"==typeof e)try{c=i.execute(e,t,s,u)}catch(e){c=null,console.warn(`An error occured within custom function for ${f}`,e)}else e&&console.warn(`Unknown function type for ${f}`);return c}static execute(e,t,r={},o={}){if(o=(0,n.isObject)(o)?o:{noeval:o},!i.noeval&&!o.noeval)return Array.isArray(t)?e.apply(r,t):e.call(r,t);console.warn("No evaluations allowed for this renderer.")}}t.BaseEvaluator=o,o.templateSettings={interpolate:/{{([\s\S]+?)}}/g,evaluate:/\{%([\s\S]+?)%\}/g,escape:/\{\{\{([\s\S]+?)\}\}\}/g},o.noeval=!1;class i extends o{static registerEvaluator(e){Object.keys(e).forEach((t=>{i[t]=e[t]}))}}t.Evaluator=i},60554:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fastCloneDeep=void 0,t.fastCloneDeep=function(e){try{return JSON.parse(JSON.stringify(e))}catch(e){return console.log(`Clone Failed: ${e.message}`),null}}},61785:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.isComponentDataEmpty=t.getEmptyValue=t.findComponent=t.applyFormChanges=t.generateFormChange=t.getStrings=t.getValue=t.escapeRegExCharacters=t.formatAsCurrency=t.parseFloatExt=t.hasCondition=t.removeComponent=t.findComponents=t.searchComponents=t.getComponent=t.matchComponent=t.isLayoutComponent=t.getComponentActualValue=t.getComponentData=t.eachComponentAsync=t.eachComponent=t.componentInfo=t.getContextualRowData=t.getContextualRowPath=t.getComponentKey=t.eachComponentData=t.eachComponentDataAsync=t.componentFormPath=t.componentDataPath=t.componentPath=t.isComponentNestedDataType=t.isComponentModelType=t.getComponentPath=t.getComponentAbsolutePath=t.getModelType=t.MODEL_TYPES=t.uniqueName=t.guid=t.flattenComponents=void 0;const o=r(2543),i=r(54949),a=r(70678);function s(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function u(e){return l(e)?c(e,"dataObject")?"dataObject":c(e,"array")?"array":"object":!1===e.input||c(e,"layout")?"inherit":p(e)?"value":"inherit"}function c(e,r){return e.modelType===r||t.MODEL_TYPES[r].includes(e.type)}function l(e){return e.tree||c(e,"array")||c(e,"dataObject")||c(e,"object")||c(e,"map")}function f(e,t){t=e.parentPath||t;const r=p(e);return r?t?`${t}.${r}`:r:t||""}function p(e){return"checkbox"===e.type&&"radio"===e.inputType&&e.name?e.name:e.key}function d(e,t){return t.replace(new RegExp(`.?${p(e)}$`),"")}function h(e,t,r){const n=d(e,t);return n?(0,o.get)(r,n,null):r}function v(e){const t=e.columns&&Array.isArray(e.columns),r=e.rows&&Array.isArray(e.rows),n=e.components&&Array.isArray(e.components),o=c(e,"content"),i=c(e,"layout"),a=!e.hasOwnProperty("input")||!!e.input;return{hasColumns:t,hasRows:r,hasComps:n,layout:t||r||n&&!a||i||o,iterable:t||r||n||o}}function y(e,r,n,o,i){e&&(o=o||"",e.forEach((a=>{if(!a)return;const s=v(a);let u=!1;i&&(Object.defineProperty(a,"parent",{enumerable:!1,writable:!0,value:JSON.parse(JSON.stringify(i))}),Object.defineProperty(a.parent,"parent",{enumerable:!1,writable:!0,value:i.parent}),Object.defineProperty(a.parent,"path",{enumerable:!1,writable:!0,value:i.path}),delete a.parent.components,delete a.parent.componentMap,delete a.parent.columns,delete a.parent.rows),Object.defineProperty(a,"path",{enumerable:!1,writable:!0,value:f(a,o)}),(n||a.tree||!s.layout)&&(u=r(a,a.path,e,i)),u||(s.hasColumns?a.columns.forEach((e=>y(e.components,r,n,o,i?a:null))):s.hasRows?a.rows.forEach((e=>{Array.isArray(e)&&e.forEach((e=>y(e.components,r,n,o,i?a:null)))})):s.hasComps&&y(a.components,r,n,(0,t.componentFormPath)(a,o,a.path),i?a:null))})))}function m(e,r){return n(this,arguments,void 0,(function*(e,r,n=!1,o="",i){var a,s;if(e)for(let u=0;u<e.length;u++){if(!e[u])continue;let c=e[u];const l=v(c);if(i&&(Object.defineProperty(c,"parent",{enumerable:!1,writable:!0,value:JSON.parse(JSON.stringify(i))}),Object.defineProperty(c.parent,"parent",{enumerable:!1,writable:!0,value:i.parent}),Object.defineProperty(c.parent,"path",{enumerable:!1,writable:!0,value:i.path}),delete c.parent.components,delete c.parent.componentMap,delete c.parent.columns,delete c.parent.rows),Object.defineProperty(c,"path",{enumerable:!1,writable:!0,value:f(c,o)}),!n&&!c.tree&&l.layout||!(yield r(c,c.path,e,i)))if(l.hasColumns)for(let e=0;e<c.columns.length;e++)yield m(null===(a=c.columns[e])||void 0===a?void 0:a.components,r,n,o,i?c:null);else if(l.hasRows)for(let e=0;e<c.rows.length;e++){let t=c.rows[e];if(Array.isArray(t))for(let e=0;e<t.length;e++)yield m(null===(s=t[e])||void 0===s?void 0:s.components,r,n,o,i?c:null)}else l.hasComps&&(yield m(c.components,r,n,(0,t.componentFormPath)(c,o,c.path),i?c:null))}}))}function g(e,t){if((0,o.isString)(t))return e.key===t||e.path===t;{let r=!1;return(0,o.forOwn)(t,((t,n)=>{if(r=(0,o.get)(e,n)===t,!r)return!1})),r}}function b(e,t){const r=[];return y(e,(e=>{g(e,t)&&r.push(e)}),!0),r}function _(e,t){var r=t.pop();0!==t.length&&(e=(0,o.get)(e,t)),e.splice(r,1)}function w(e){return parseFloat((0,o.isString)(e)?e.replace(/[^\de.+-]/gi,""):e)}function O(e,t,r,n){if(e){if(r=r||[],!t)return n(e);e.forEach((function(o,i){var a=r.slice();a.push(i),o&&(o.hasOwnProperty("columns")&&Array.isArray(o.columns)&&(a.push("columns"),o.columns.forEach((function(e,r){var o=a.slice();o.push(r),o.push("components"),O(e.components,t,o,n)}))),o.hasOwnProperty("rows")&&Array.isArray(o.rows)&&(a.push("rows"),o.rows.forEach((function(e,r){var o=a.slice();o.push(r),e.forEach((function(e,r){var i=o.slice();i.push(r),i.push("components"),O(e.components,t,i,n)}))}))),o.hasOwnProperty("components")&&Array.isArray(o.components)&&(a.push("components"),O(o.components,t,a,n)),o.key===t&&n(o,a,e))}))}}function j(e){switch(e.type){case"textarea":case"textfield":case"time":case"datetime":case"day":return"";case"datagrid":case"editgrid":return[];default:return null}}t.flattenComponents=function(e,t=!1){const r={};return y(e,((e,t)=>{r[t]=e}),t),r},t.guid=s,t.uniqueName=function(e,t,r){(t=t||"{{fileName}}-{{guid}}").includes("{{guid}}")||(t=`${t}-{{guid}}`);const n=e.split(".");let i=n.slice(0,n.length-1).join(".");const u=n.length>1?`.${(0,o.last)(n)}`:"";return i=i.substr(0,100),r=Object.assign(r||{},{fileName:i,guid:s()}),`${a.Evaluator.interpolate(t,r)}${u}`.replace(/[^0-9a-zA-Z.\-_ ]/g,"-")},t.MODEL_TYPES={array:["datagrid","editgrid","datatable","dynamicWizard","tagpad"],dataObject:["form"],object:["container","address"],map:["datamap"],content:["htmlelement","content"],layout:["table","tabs","well","columns","fieldset","panel","tabs"]},t.getModelType=u,t.getComponentAbsolutePath=function(e){let t=[e.path];for(;e.parent;)c(e=e.parent,"dataObject")&&(t[t.length-1]=`data.${t[t.length-1]}`,t.push(e.path));return t.reverse().join(".")},t.getComponentPath=function(e,t){const r=p(e);return r?t?t.match(new RegExp(`${r}$`))?t:"inherit"===u(e)?`${t}.${r}`:t:r:t},t.isComponentModelType=c,t.isComponentNestedDataType=l,t.componentPath=f,t.componentDataPath=(e,t,r)=>(t=e.parentPath||t,r=r||f(e,t),e.components&&Array.isArray(e.components)?c(e,"dataObject")?`${r}.data`:c(e,"array")?`${r}[0]`:l(e)?r:t:r),t.componentFormPath=(e,t,r)=>(t=e.parentPath||t,r=r||f(e,t),c(e,"dataObject")?`${r}.data`:l(e)?r:t),t.eachComponentDataAsync=(e,r,i,...a)=>n(void 0,[e,r,i,...a],void 0,(function*(e,r,i,a="",s,u,f=!1){if(e&&r)return yield m(e,((e,u,p,d)=>n(void 0,void 0,void 0,(function*(){const n=h(e,u,r);if(!0===(yield i(e,r,n,u,p,s,d)))return!0;if(l(e)){const l=(0,o.get)(r,u,r);if(Array.isArray(l)){for(let n=0;n<l.length;n++)yield(0,t.eachComponentDataAsync)(e.components,r,i,`${u}[${n}]`,n,e,f);return!0}if((0,o.isEmpty)(n)&&!f)return!0;if(c(e,"dataObject")){if((0,o.has)(r,e.path)){const n=(0,t.componentDataPath)(e,a,u),c=(0,o.get)(r,n,null);yield(0,t.eachComponentDataAsync)(e.components,c,i,"",s,e,f),(0,o.set)(r,n,c)}}else yield(0,t.eachComponentDataAsync)(e.components,r,i,(0,t.componentDataPath)(e,a,u),s,e,f);return!0}return!1}))),!0,a,u)})),t.eachComponentData=(e,r,n,i="",a,s,u=!1)=>{if(e&&r)return y(e,((e,s,f,p)=>{const d=h(e,s,r);if(!0===n(e,r,d,s,f,a,p))return!0;if(l(e)){const l=(0,o.get)(r,s,r);if(Array.isArray(l)){for(let o=0;o<l.length;o++)(0,t.eachComponentData)(e.components,r,n,`${s}[${o}]`,o,e,u);return!0}if((0,o.isEmpty)(d)&&!u)return!0;if(c(e,"dataObject")){if((0,o.has)(r,e.path)){const c=(0,t.componentDataPath)(e,i,s),l=(0,o.get)(r,c,{});(0,t.eachComponentData)(e.components,l,n,"",a,e,u),(0,o.set)(r,c,l)}}else(0,t.eachComponentData)(e.components,r,n,(0,t.componentDataPath)(e,i,s),a,e,u);return!0}return!1}),!0,i,s)},t.getComponentKey=p,t.getContextualRowPath=d,t.getContextualRowData=h,t.componentInfo=v,t.eachComponent=y,t.eachComponentAsync=m,t.getComponentData=function(e,r,n){const o={component:null,data:null};return(0,t.eachComponentData)(e,r,((e,t,r,i)=>{if(i===n)return o.component=e,o.data=r,!0})),o},t.getComponentActualValue=function(e,t,r,n){var i,a;if(null===(i=e.parent)||void 0===i?void 0:i.path){const r=null===(a=e.parent)||void 0===a?void 0:a.path.replace(/\[[0-9]+\]/g,"");t=t.replace(r,""),t=(0,o.trim)(t,". ")}let s=null;return n&&(s=(0,o.get)(n,t)),r&&(0,o.isNil)(s)&&(s=(0,o.get)(r,t)),((0,o.isNil)(s)||(0,o.isObject)(s)&&(0,o.isEmpty)(s))&&(s=""),s},t.isLayoutComponent=function(e){return Boolean(e.columns&&Array.isArray(e.columns)||e.rows&&Array.isArray(e.rows)||e.components&&Array.isArray(e.components))},t.matchComponent=g,t.getComponent=function(e,t,r=!1){let n;return y(e,((e,r)=>{if(r===t||e.path===t)return n=e,!0}),r),n},t.searchComponents=b,t.findComponents=function(e,t){return console.warn("formio.js/utils findComponents is deprecated. Use searchComponents instead."),b(e,t)},t.removeComponent=_,t.hasCondition=function(e){return Boolean(e.customConditional||e.conditional&&(e.conditional.when||e.conditional.json||e.conditional.conjunction))},t.parseFloatExt=w,t.formatAsCurrency=function(e){const t=w(e);if(isNaN(t))return"";const r=(0,o.round)(t,2).toString().split(".");return r[0]=(0,o.chunk)(Array.from(r[0]).reverse(),3).reverse().map((e=>e.reverse().join(""))).join(","),r[1]=(0,o.pad)(r[1],2,"0"),r.join(".")},t.escapeRegExCharacters=function(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")},t.getValue=function(e,t){const r=e=>{if((0,o.isPlainObject)(e)){if((0,o.has)(e,t))return(0,o.get)(e,t);let n=null;return(0,o.forOwn)(e,(e=>{const t=r(e);if(!(0,o.isNil)(t))return n=t,!1})),n}return null};return r(e.data)},t.getStrings=function(e){const t=["label","title","legend","tooltip","description","placeholder","prefix","suffix","errorLabel","content","html"],r=[];return y(e.components,(e=>{if(t.forEach((t=>{e.hasOwnProperty(t)&&e[t]&&r.push({key:e.key,type:e.type,property:t,string:e[t]})})),(!e.dataSrc||"values"===e.dataSrc)&&e.hasOwnProperty("values")&&Array.isArray(e.values)&&e.values.length&&e.values.forEach(((t,n)=>{r.push({key:e.key,property:`value[${n}].label`,string:e.values[n].label})})),"day"===e.type&&(["day","month","year","Day","Month","Year","january","february","march","april","may","june","july","august","september","october","november","december"].forEach((t=>{r.push({key:e.key,property:"day",string:t})})),e.fields.day.placeholder&&r.push({key:e.key,property:"fields.day.placeholder",string:e.fields.day.placeholder}),e.fields.month.placeholder&&r.push({key:e.key,property:"fields.month.placeholder",string:e.fields.month.placeholder}),e.fields.year.placeholder&&r.push({key:e.key,property:"fields.year.placeholder",string:e.fields.year.placeholder})),"editgrid"===e.type){const t=e.addAnother||"Add Another";e.addAnother&&r.push({key:e.key,property:"addAnother",string:t})}"select"===e.type&&["loading...","Type to search"].forEach((t=>{r.push({key:e.key,property:"select",string:t})}))}),!0),r},t.generateFormChange=function(e,t){let r;switch(e){case"add":r={op:"add",key:t.component.key,container:t.parent.key,path:t.path,index:t.index,component:t.component};break;case"edit":r={op:"edit",key:t.originalComponent.key,patches:(0,i.compare)(t.originalComponent,t.component)},r.patches.length||(r=null);break;case"remove":r={op:"remove",key:t.component.key}}return r},t.applyFormChanges=function(e,t){const r=[];return t.forEach((function(t){var n=!1;switch(t.op){case"add":var a=t.component;O(e.components,t.container,null,(function(r){t.container||(r=e),O(e.components,t.key,null,(function(t,r){a=t,_(e.components,r)})),n=!0,(0,o.get)(r,t.path).splice(t.index,0,a)}));break;case"remove":O(e.components,t.key,null,(function(t,r){n=!0,(0,o.get)(e.components,r).key!==t.key&&r.pop(),_(e.components,r)}));break;case"edit":O(e.components,t.key,null,(function(a,s){n=!0;try{const r=(0,o.get)(e.components,s),n=(0,i.applyPatch)(a,t.patches).newDocument;r.key!==n.key&&s.pop(),(0,o.set)(e.components,s,n)}catch(e){r.push(t)}}))}n||r.push(t)})),{form:e,failed:r}},t.findComponent=O,t.getEmptyValue=j;const A=e=>{const t="<p>&nbsp;</p>",r="<p><br></p>",n="<p><br>&nbsp;</p>",o=new RegExp(`^${t}|${t}$|^${r}|${r}$|^${n}|${n}$`,"g");return"string"==typeof e?e.replace(o,"").trim():e};function P(e,t){const r=!(!(0,o.isArray)(t)||1!==t.length)&&(0,o.isEqual)(t[0],j(e));return null==t||""===t||(0,o.isArray)(t)&&0===t.length||r}t.isComponentDataEmpty=function e(r,n,i){var a;const s=(0,o.get)(n,i);if((e=>"checkbox"===e.type)(r))return P(r,s)||!1===s;if((e=>"datagrid"===e.type)(r)||(e=>"editgrid"===e.type)(r)||(e=>"datatable"===e.type)(r)||(e=>null!=e.components)(r)){if(null===(a=r.components)||void 0===a?void 0:a.length){let o=!0;return(0,t.eachComponentData)([r],n,((t,n,i,a,s,u)=>{r.key!==t.key&&(e(t,n,a)||(o=!1))})),P(r,s)||o}return P(r,s)}if((e=>"datetime"===e.type)(r))return P(r,s)||"Invalid date"===s.toString();if((e=>"selectboxes"===e.type)(r)){let e=!0;for(const t in s)if(s[t]){e=!1;break}return P(r,s)||e}if((e=>"textarea"===e.type)(r)){const e=!r.wysiwyg&&!r.editor;return P(r,e?"string"==typeof s?s.trim():s:function(e){return e?e=Array.isArray(e)?e.map((e=>A(e))):A(e):e}(s))}return(e=>"textfield"===e.type)(r)?r.allowMultipleMasks&&r.inputMasks&&r.inputMasks.length?P(r,s)||(r.multiple?0===s.length:!s.maskName||!s.value):P(r,null==s?void 0:s.toString().trim()):P(r,s)}},17112:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jwtDecode=void 0,t.jwtDecode=function(e,t={}){if("string"!=typeof e)throw new Error("Invalid token specified: must be a string");const r=!0===t.header?0:1,n=e.split(".")[r];if("string"!=typeof n)throw new Error("Invalid token specified: missing part #"+(r+1));let o;try{o=function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,(function(e,t){let r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(t)}catch(e){return atob(t)}}(n)}catch(e){throw new Error("Invalid token specified: invalid base64 for part #"+(r+1)+" ("+e.message+")")}try{return JSON.parse(o)}catch(e){throw new Error("Invalid token specified: invalid json for part #"+(r+1)+" ("+e.message+")")}}},24715:function(e,t,r){var n,o;n=function(){"use strict";function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function n(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=o(e);if(t){var i=o(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return a(e)}(this,r)}}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=o(e)););return e}(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},u.apply(this,arguments)}var c=function(){function t(){e(this,t),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return n(t,[{key:"addEventListener",value:function(e,t,r){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:t,options:r})}},{key:"removeEventListener",value:function(e,t){if(e in this.listeners)for(var r=this.listeners[e],n=0,o=r.length;n<o;n++)if(r[n].callback===t)return void r.splice(n,1)}},{key:"dispatchEvent",value:function(e){if(e.type in this.listeners){for(var t=this.listeners[e.type].slice(),r=0,n=t.length;r<n;r++){var o=t[r];try{o.callback.call(this,e)}catch(e){Promise.resolve().then((function(){throw e}))}o.options&&o.options.once&&this.removeEventListener(e.type,o.callback)}return!e.defaultPrevented}}}]),t}(),l=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(l,t);var r=s(l);function l(){var t;return e(this,l),(t=r.call(this)).listeners||c.call(a(t)),Object.defineProperty(a(t),"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(a(t),"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(a(t),"reason",{value:void 0,writable:!0,configurable:!0}),t}return n(l,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(e){"abort"===e.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,e)),u(o(l.prototype),"dispatchEvent",this).call(this,e)}}]),l}(c),f=function(){function t(){e(this,t),Object.defineProperty(this,"signal",{value:new l,writable:!0,configurable:!0})}return n(t,[{key:"abort",value:function(e){var t;try{t=new Event("abort")}catch(e){"undefined"!=typeof document?document.createEvent?(t=document.createEvent("Event")).initEvent("abort",!1,!1):(t=document.createEventObject()).type="abort":t={type:"abort",bubbles:!1,cancelable:!1}}var r=e;if(void 0===r)if("undefined"==typeof document)(r=new Error("This operation was aborted")).name="AbortError";else try{r=new DOMException("signal is aborted without reason")}catch(e){(r=new Error("This operation was aborted")).name="AbortError"}this.signal.reason=r,this.signal.dispatchEvent(t)}},{key:"toString",value:function(){return"[object AbortController]"}}]),t}();function p(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):"function"==typeof e.Request&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}"undefined"!=typeof Symbol&&Symbol.toStringTag&&(f.prototype[Symbol.toStringTag]="AbortController",l.prototype[Symbol.toStringTag]="AbortSignal"),function(e){if(p(e))if(e.fetch){var t=function(e){"function"==typeof e&&(e={fetch:e});var t=e,r=t.fetch,n=t.Request,o=void 0===n?r.Request:n,i=t.AbortController,a=t.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL,s=void 0!==a&&a;if(!p({fetch:r,Request:o,AbortController:i,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:s}))return{fetch:r,Request:u};var u=o;(u&&!u.prototype.hasOwnProperty("signal")||s)&&((u=function(e,t){var r;t&&t.signal&&(r=t.signal,delete t.signal);var n=new o(e,t);return r&&Object.defineProperty(n,"signal",{writable:!1,enumerable:!1,configurable:!0,value:r}),n}).prototype=o.prototype);var c=r;return{fetch:function(e,t){var r=u&&u.prototype.isPrototypeOf(e)?e.signal:t?t.signal:void 0;if(r){var n;try{n=new DOMException("Aborted","AbortError")}catch(e){(n=new Error("Aborted")).name="AbortError"}if(r.aborted)return Promise.reject(n);var o=new Promise((function(e,t){r.addEventListener("abort",(function(){return t(n)}),{once:!0})}));return t&&t.signal&&delete t.signal,Promise.race([o,c(e,t)])}return c(e,t)},Request:u}}(e),r=t.fetch,n=t.Request;e.fetch=r,e.Request=n,Object.defineProperty(e,"AbortController",{writable:!0,enumerable:!1,configurable:!0,value:f}),Object.defineProperty(e,"AbortSignal",{writable:!0,enumerable:!1,configurable:!0,value:l})}else console.warn("fetch() is not available, cannot install abortcontroller-polyfill")}("undefined"!=typeof self?self:r.g)},void 0===(o=n.call(t,r,t,e))||(e.exports=o)},81018:function(e,t){t.defaults={},t.set=function(e,r,n){var o=n||{},i=t.defaults,a=o.expires||i.expires,s=o.domain||i.domain,u=void 0!==o.path?o.path:void 0!==i.path?i.path:"/",c=void 0!==o.secure?o.secure:i.secure,l=void 0!==o.httponly?o.httponly:i.httponly,f=void 0!==o.samesite?o.samesite:i.samesite,p=a?new Date("number"==typeof a?(new Date).getTime()+864e5*a:a):0;document.cookie=e.replace(/[^+#$&^`|]/g,encodeURIComponent).replace("(","%28").replace(")","%29")+"="+r.replace(/[^+#$&/:<-\[\]-}]/g,encodeURIComponent)+(p&&p.getTime()>=0?";expires="+p.toUTCString():"")+(s?";domain="+s:"")+(u?";path="+u:"")+(c?";secure":"")+(l?";httponly":"")+(f?";samesite="+f:"")},t.get=function(e){for(var t=document.cookie.split(";");t.length;){var r=t.pop(),n=r.indexOf("=");if(n=n<0?r.length:n,decodeURIComponent(r.slice(0,n).replace(/^\s+/,""))===e)return decodeURIComponent(r.slice(n+1))}return null},t.erase=function(e,r){t.set(e,"",{expires:-1,domain:r&&r.domain,path:r&&r.path,secure:0,httponly:0})},t.all=function(){for(var e={},t=document.cookie.split(";");t.length;){var r=t.pop(),n=r.indexOf("=");n=n<0?r.length:n,e[decodeURIComponent(r.slice(0,n).replace(/^\s+/,""))]=decodeURIComponent(r.slice(n+1))}return e}},30228:function(e){"use strict";var t=Object.prototype.hasOwnProperty,r="~";function n(){}function o(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function i(e,t,n,i,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new o(n,i||e,a),u=r?r+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),s.prototype.eventNames=function(){var e,n,o=[];if(0===this._eventsCount)return o;for(n in e=this._events)t.call(e,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o<i;o++)a[o]=n[o].fn;return a},s.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,o,i,a){var s=r?r+e:e;if(!this._events[s])return!1;var u,c,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){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,o),!0;case 5:return l.fn.call(l.context,t,n,o,i),!0;case 6:return l.fn.call(l.context,t,n,o,i,a),!0}for(c=1,u=new Array(f-1);c<f;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var p,d=l.length;for(c=0;c<d;c++)switch(l[c].once&&this.removeListener(e,l[c].fn,void 0,!0),f){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,t);break;case 3:l[c].fn.call(l[c].context,t,n);break;case 4:l[c].fn.call(l[c].context,t,n,o);break;default:if(!u)for(p=1,u=new Array(f-1);p<f;p++)u[p-1]=arguments[p];l[c].fn.apply(l[c].context,u)}}return!0},s.prototype.on=function(e,t,r){return i(this,e,t,r,!1)},s.prototype.once=function(e,t,r){return i(this,e,t,r,!0)},s.prototype.removeListener=function(e,t,n,o){var i=r?r+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||n&&s.context!==n||a(this,i);else{for(var u=0,c=[],l=s.length;u<l;u++)(s[u].fn!==t||o&&!s[u].once||n&&s[u].context!==n)&&c.push(s[u]);c.length?this._events[i]=1===c.length?c[0]:c:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&a(this,t)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s},42681:function(e,t,r){var n;!function(o){"use strict";function i(e){var r=e&&e.Promise||o.Promise,n=e&&e.XMLHttpRequest||o.XMLHttpRequest;return function(){var e=Object.create(o,{fetch:{value:void 0,writable:!0}});return function(t){var o=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==o&&o,i="URLSearchParams"in o,a="Symbol"in o&&"iterator"in Symbol,s="FileReader"in o&&"Blob"in o&&function(){try{return new Blob,!0}catch(e){return!1}}(),u="FormData"in o,c="ArrayBuffer"in o;if(c)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],f=ArrayBuffer.isView||function(e){return e&&l.indexOf(Object.prototype.toString.call(e))>-1};function p(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function d(e){return"string"!=typeof e&&(e=String(e)),e}function h(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return a&&(t[Symbol.iterator]=function(){return t}),t}function v(e){this.map={},e instanceof v?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 y(e){if(e.bodyUsed)return r.reject(new TypeError("Already read"));e.bodyUsed=!0}function m(e){return new r((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function g(e){var t=new FileReader,r=m(t);return t.readAsArrayBuffer(e),r}function b(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:s&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:u&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:i&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():c&&s&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=b(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c&&(ArrayBuffer.prototype.isPrototypeOf(e)||f(e))?this._bodyArrayBuffer=b(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):i&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s&&(this.blob=function(){var e=y(this);if(e)return e;if(this._bodyBlob)return r.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return r.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return r.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?y(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?r.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):r.resolve(this._bodyArrayBuffer)):this.blob().then(g)}),this.text=function(){var e,t,n,o=y(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=m(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return r.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return r.resolve(this._bodyText)},u&&(this.formData=function(){return this.text().then(j)}),this.json=function(){return this.text().then(JSON.parse)},this}v.prototype.append=function(e,t){e=p(e),t=d(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},v.prototype.delete=function(e){delete this.map[p(e)]},v.prototype.get=function(e){return e=p(e),this.has(e)?this.map[e]:null},v.prototype.has=function(e){return this.map.hasOwnProperty(p(e))},v.prototype.set=function(e,t){this.map[p(e)]=d(t)},v.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},v.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),h(e)},v.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),h(e)},v.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),h(e)},a&&(v.prototype[Symbol.iterator]=v.prototype.entries);var w=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function O(e,t){if(!(this instanceof O))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,o=(t=t||{}).body;if(e instanceof O){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new v(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=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 v(t.headers)),this.method=(r=t.method||this.method||"GET",n=r.toUpperCase(),w.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function j(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}})),t}function A(e,t){if(!(this instanceof A))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');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:"",this.headers=new v(t.headers),this.url=t.url||"",this._initBody(e)}O.prototype.clone=function(){return new O(this,{body:this._bodyInit})},_.call(O.prototype),_.call(A.prototype),A.prototype.clone=function(){return new A(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new v(this.headers),url:this.url})},A.error=function(){var e=new A(null,{status:0,statusText:""});return e.type="error",e};var P=[301,302,303,307,308];A.redirect=function(e,t){if(-1===P.indexOf(t))throw new RangeError("Invalid status code");return new A(null,{status:t,headers:{location:e}})},t.DOMException=o.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function x(e,i){return new r((function(r,a){var u=new O(e,i);if(u.signal&&u.signal.aborted)return a(new t.DOMException("Aborted","AbortError"));var l=new n;function f(){l.abort()}l.onload=function(){var e,t,n={status:l.status,statusText:l.statusText,headers:(e=l.getAllResponseHeaders()||"",t=new v,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();t.append(n,o)}})),t)};n.url="responseURL"in l?l.responseURL:n.headers.get("X-Request-URL");var o="response"in l?l.response:l.responseText;setTimeout((function(){r(new A(o,n))}),0)},l.onerror=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},l.ontimeout=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},l.onabort=function(){setTimeout((function(){a(new t.DOMException("Aborted","AbortError"))}),0)},l.open(u.method,function(e){try{return""===e&&o.location.href?o.location.href:e}catch(t){return e}}(u.url),!0),"include"===u.credentials?l.withCredentials=!0:"omit"===u.credentials&&(l.withCredentials=!1),"responseType"in l&&(s?l.responseType="blob":c&&u.headers.get("Content-Type")&&-1!==u.headers.get("Content-Type").indexOf("application/octet-stream")&&(l.responseType="arraybuffer")),!i||"object"!=typeof i.headers||i.headers instanceof v?u.headers.forEach((function(e,t){l.setRequestHeader(t,e)})):Object.getOwnPropertyNames(i.headers).forEach((function(e){l.setRequestHeader(e,d(i.headers[e]))})),u.signal&&(u.signal.addEventListener("abort",f),l.onreadystatechange=function(){4===l.readyState&&u.signal.removeEventListener("abort",f)}),l.send(void 0===u._bodyInit?null:u._bodyInit)}))}x.polyfill=!0,o.fetch||(o.fetch=x,o.Headers=v,o.Request=O,o.Response=A),t.Headers=v,t.Request=O,t.Response=A,t.fetch=x,Object.defineProperty(t,"__esModule",{value:!0})}(t),{fetch:e.fetch,Headers:e.Headers,Request:e.Request,Response:e.Response,DOMException:e.DOMException}}()}void 0===(n=function(){return i}.call(t,r,t,e))||(e.exports=n)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==r.g?r.g:this)},51873:function(e,t,r){var n=r(9325).Symbol;e.exports=n},34932:function(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}},61074:function(e){e.exports=function(e){return e.split("")}},2523:function(e){e.exports=function(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},72552:function(e,t,r){var n=r(51873),o=r(659),i=r(59350),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},96131:function(e,t,r){var n=r(2523),o=r(85463),i=r(76959);e.exports=function(e,t,r){return t==t?i(e,t,r):n(e,o,r)}},85463:function(e){e.exports=function(e){return e!=e}},25160:function(e){e.exports=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=e[n+t];return i}},77556:function(e,t,r){var n=r(51873),o=r(34932),i=r(56449),a=r(44394),s=n?n.prototype:void 0,u=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return u?u.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},54128:function(e,t,r){var n=r(31800),o=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(o,""):e}},28754:function(e,t,r){var n=r(25160);e.exports=function(e,t,r){var o=e.length;return r=void 0===r?o:r,!t&&r>=o?e:n(e,t,r)}},23875:function(e,t,r){var n=r(96131);e.exports=function(e,t){for(var r=e.length;r--&&n(t,e[r],0)>-1;);return r}},28380:function(e,t,r){var n=r(96131);e.exports=function(e,t){for(var r=-1,o=e.length;++r<o&&n(t,e[r],0)>-1;);return r}},34840:function(e,t,r){var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},659:function(e,t,r){var n=r(51873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[s]=r:delete e[s]),o}},49698:function(e){var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},59350:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9325:function(e,t,r){var n=r(34840),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},76959:function(e){e.exports=function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}},63912:function(e,t,r){var n=r(61074),o=r(49698),i=r(42054);e.exports=function(e){return o(e)?i(e):n(e)}},31800:function(e){var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},42054:function(e){var t="\\ud800-\\udfff",r="["+t+"]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+n+"|"+o+")?",c="[\\ufe0e\\ufe0f]?",l=c+u+"(?:\\u200d(?:"+[i,a,s].join("|")+")"+c+u+")*",f="(?:"+[i+n+"?",n,a,s,r].join("|")+")",p=RegExp(o+"(?="+o+")|"+f+l,"g");e.exports=function(e){return e.match(p)||[]}},56449:function(e){var t=Array.isArray;e.exports=t},40346:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},44394:function(e,t,r){var n=r(72552),o=r(40346);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},2543:function(e,t,r){var n;e=r.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",u=32,c=128,l=1/0,f=9007199254740991,p=NaN,d=4294967295,h=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],v="[object Arguments]",y="[object Array]",m="[object Boolean]",g="[object Date]",b="[object Error]",_="[object Function]",w="[object GeneratorFunction]",O="[object Map]",j="[object Number]",A="[object Object]",P="[object Promise]",x="[object RegExp]",k="[object Set]",U="[object String]",E="[object Symbol]",R="[object WeakMap]",C="[object ArrayBuffer]",T="[object DataView]",S="[object Float32Array]",I="[object Float64Array]",F="[object Int8Array]",$="[object Int16Array]",D="[object Int32Array]",L="[object Uint8Array]",N="[object Uint8ClampedArray]",M="[object Uint16Array]",q="[object Uint32Array]",B=/\b__p \+= '';/g,z=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,V=/[&<>"']/g,G=RegExp(H.source),J=RegExp(V.source),Y=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,re=RegExp(te.source),ne=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,me=/^(?:0|[1-9]\d*)$/,ge=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,we="\\ud800-\\udfff",Oe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",je="\\u2700-\\u27bf",Ae="a-z\\xdf-\\xf6\\xf8-\\xff",Pe="A-Z\\xc0-\\xd6\\xd8-\\xde",xe="\\ufe0e\\ufe0f",ke="\\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",Ue="["+we+"]",Ee="["+ke+"]",Re="["+Oe+"]",Ce="\\d+",Te="["+je+"]",Se="["+Ae+"]",Ie="[^"+we+ke+Ce+je+Ae+Pe+"]",Fe="\\ud83c[\\udffb-\\udfff]",$e="[^"+we+"]",De="(?:\\ud83c[\\udde6-\\uddff]){2}",Le="[\\ud800-\\udbff][\\udc00-\\udfff]",Ne="["+Pe+"]",Me="\\u200d",qe="(?:"+Se+"|"+Ie+")",Be="(?:"+Ne+"|"+Ie+")",ze="(?:['’](?:d|ll|m|re|s|t|ve))?",We="(?:['’](?:D|LL|M|RE|S|T|VE))?",He="(?:"+Re+"|"+Fe+")?",Ve="["+xe+"]?",Ge=Ve+He+"(?:"+Me+"(?:"+[$e,De,Le].join("|")+")"+Ve+He+")*",Je="(?:"+[Te,De,Le].join("|")+")"+Ge,Ye="(?:"+[$e+Re+"?",Re,De,Le,Ue].join("|")+")",Xe=RegExp("['’]","g"),Ke=RegExp(Re,"g"),Ze=RegExp(Fe+"(?="+Fe+")|"+Ye+Ge,"g"),Qe=RegExp([Ne+"?"+Se+"+"+ze+"(?="+[Ee,Ne,"$"].join("|")+")",Be+"+"+We+"(?="+[Ee,Ne+qe,"$"].join("|")+")",Ne+"?"+qe+"+"+ze,Ne+"+"+We,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ce,Je].join("|"),"g"),et=RegExp("["+Me+we+Oe+xe+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],nt=-1,ot={};ot[S]=ot[I]=ot[F]=ot[$]=ot[D]=ot[L]=ot[N]=ot[M]=ot[q]=!0,ot[v]=ot[y]=ot[C]=ot[m]=ot[T]=ot[g]=ot[b]=ot[_]=ot[O]=ot[j]=ot[A]=ot[x]=ot[k]=ot[U]=ot[R]=!1;var it={};it[v]=it[y]=it[C]=it[T]=it[m]=it[g]=it[S]=it[I]=it[F]=it[$]=it[D]=it[O]=it[j]=it[A]=it[x]=it[k]=it[U]=it[E]=it[L]=it[N]=it[M]=it[q]=!0,it[b]=it[_]=it[R]=!1;var at={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,ut=parseInt,ct="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,lt="object"==typeof self&&self&&self.Object===Object&&self,ft=ct||lt||Function("return this")(),pt=t&&!t.nodeType&&t,dt=pt&&e&&!e.nodeType&&e,ht=dt&&dt.exports===pt,vt=ht&&ct.process,yt=function(){try{return dt&&dt.require&&dt.require("util").types||vt&&vt.binding&&vt.binding("util")}catch(e){}}(),mt=yt&&yt.isArrayBuffer,gt=yt&&yt.isDate,bt=yt&&yt.isMap,_t=yt&&yt.isRegExp,wt=yt&&yt.isSet,Ot=yt&&yt.isTypedArray;function jt(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function At(e,t,r,n){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(n,a,r(a),e)}return n}function Pt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function xt(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function kt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function Ut(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}function Et(e,t){return!(null==e||!e.length)&&Nt(e,t,0)>-1}function Rt(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}function Ct(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}function Tt(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}function St(e,t,r,n){var o=-1,i=null==e?0:e.length;for(n&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}function It(e,t,r,n){var o=null==e?0:e.length;for(n&&o&&(r=e[--o]);o--;)r=t(r,e[o],o,e);return r}function Ft(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var $t=zt("length");function Dt(e,t,r){var n;return r(e,(function(e,r,o){if(t(e,r,o))return n=r,!1})),n}function Lt(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Nt(e,t,r){return t==t?function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}(e,t,r):Lt(e,qt,r)}function Mt(e,t,r,n){for(var o=r-1,i=e.length;++o<i;)if(n(e[o],t))return o;return-1}function qt(e){return e!=e}function Bt(e,t){var r=null==e?0:e.length;return r?Vt(e,t)/r:p}function zt(e){return function(t){return null==t?o:t[e]}}function Wt(e){return function(t){return null==e?o:e[t]}}function Ht(e,t,r,n,o){return o(e,(function(e,o,i){r=n?(n=!1,e):t(r,e,o,i)})),r}function Vt(e,t){for(var r,n=-1,i=e.length;++n<i;){var a=t(e[n]);a!==o&&(r=r===o?a:r+a)}return r}function Gt(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Jt(e){return e?e.slice(0,fr(e)+1).replace(ne,""):e}function Yt(e){return function(t){return e(t)}}function Xt(e,t){return Ct(t,(function(t){return e[t]}))}function Kt(e,t){return e.has(t)}function Zt(e,t){for(var r=-1,n=e.length;++r<n&&Nt(t,e[r],0)>-1;);return r}function Qt(e,t){for(var r=e.length;r--&&Nt(t,e[r],0)>-1;);return r}var er=Wt({À:"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"}),tr=Wt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function rr(e){return"\\"+at[e]}function nr(e){return et.test(e)}function or(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function ir(e,t){return function(r){return e(t(r))}}function ar(e,t){for(var r=-1,n=e.length,o=0,i=[];++r<n;){var a=e[r];a!==t&&a!==s||(e[r]=s,i[o++]=r)}return i}function sr(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}function ur(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=[e,e]})),r}function cr(e){return nr(e)?function(e){for(var t=Ze.lastIndex=0;Ze.test(e);)++t;return t}(e):$t(e)}function lr(e){return nr(e)?function(e){return e.match(Ze)||[]}(e):function(e){return e.split("")}(e)}function fr(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var pr=Wt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),dr=function e(t){var r,n=(t=null==t?ft:dr.defaults(ft.Object(),t,dr.pick(ft,rt))).Array,oe=t.Date,we=t.Error,Oe=t.Function,je=t.Math,Ae=t.Object,Pe=t.RegExp,xe=t.String,ke=t.TypeError,Ue=n.prototype,Ee=Oe.prototype,Re=Ae.prototype,Ce=t["__core-js_shared__"],Te=Ee.toString,Se=Re.hasOwnProperty,Ie=0,Fe=(r=/[^.]+$/.exec(Ce&&Ce.keys&&Ce.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",$e=Re.toString,De=Te.call(Ae),Le=ft._,Ne=Pe("^"+Te.call(Se).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Me=ht?t.Buffer:o,qe=t.Symbol,Be=t.Uint8Array,ze=Me?Me.allocUnsafe:o,We=ir(Ae.getPrototypeOf,Ae),He=Ae.create,Ve=Re.propertyIsEnumerable,Ge=Ue.splice,Je=qe?qe.isConcatSpreadable:o,Ye=qe?qe.iterator:o,Ze=qe?qe.toStringTag:o,et=function(){try{var e=ci(Ae,"defineProperty");return e({},"",{}),e}catch(e){}}(),at=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,ct=oe&&oe.now!==ft.Date.now&&oe.now,lt=t.setTimeout!==ft.setTimeout&&t.setTimeout,pt=je.ceil,dt=je.floor,vt=Ae.getOwnPropertySymbols,yt=Me?Me.isBuffer:o,$t=t.isFinite,Wt=Ue.join,hr=ir(Ae.keys,Ae),vr=je.max,yr=je.min,mr=oe.now,gr=t.parseInt,br=je.random,_r=Ue.reverse,wr=ci(t,"DataView"),Or=ci(t,"Map"),jr=ci(t,"Promise"),Ar=ci(t,"Set"),Pr=ci(t,"WeakMap"),xr=ci(Ae,"create"),kr=Pr&&new Pr,Ur={},Er=Di(wr),Rr=Di(Or),Cr=Di(jr),Tr=Di(Ar),Sr=Di(Pr),Ir=qe?qe.prototype:o,Fr=Ir?Ir.valueOf:o,$r=Ir?Ir.toString:o;function Dr(e){if(es(e)&&!za(e)&&!(e instanceof qr)){if(e instanceof Mr)return e;if(Se.call(e,"__wrapped__"))return Li(e)}return new Mr(e)}var Lr=function(){function e(){}return function(t){if(!Qa(t))return{};if(He)return He(t);e.prototype=t;var r=new e;return e.prototype=o,r}}();function Nr(){}function Mr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function qr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Br(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function zr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Wr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Hr(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Wr;++t<r;)this.add(e[t])}function Vr(e){var t=this.__data__=new zr(e);this.size=t.size}function Gr(e,t){var r=za(e),n=!r&&Ba(e),o=!r&&!n&&Ga(e),i=!r&&!n&&!o&&us(e),a=r||n||o||i,s=a?Gt(e.length,xe):[],u=s.length;for(var c in e)!t&&!Se.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||yi(c,u))||s.push(c);return s}function Jr(e){var t=e.length;return t?e[Hn(0,t-1)]:o}function Yr(e,t){return Ti(ko(e),on(t,0,e.length))}function Xr(e){return Ti(ko(e))}function Kr(e,t,r){(r!==o&&!Na(e[t],r)||r===o&&!(t in e))&&rn(e,t,r)}function Zr(e,t,r){var n=e[t];Se.call(e,t)&&Na(n,r)&&(r!==o||t in e)||rn(e,t,r)}function Qr(e,t){for(var r=e.length;r--;)if(Na(e[r][0],t))return r;return-1}function en(e,t,r,n){return ln(e,(function(e,o,i){t(n,e,r(e),i)})),n}function tn(e,t){return e&&Uo(t,Rs(t),e)}function rn(e,t,r){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function nn(e,t){for(var r=-1,i=t.length,a=n(i),s=null==e;++r<i;)a[r]=s?o:Ps(e,t[r]);return a}function on(e,t,r){return e==e&&(r!==o&&(e=e<=r?e:r),t!==o&&(e=e>=t?e:t)),e}function an(e,t,r,n,i,a){var s,u=1&t,c=2&t,l=4&t;if(r&&(s=i?r(e,n,i,a):r(e)),s!==o)return s;if(!Qa(e))return e;var f=za(e);if(f){if(s=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&Se.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!u)return ko(e,s)}else{var p=pi(e),d=p==_||p==w;if(Ga(e))return wo(e,u);if(p==A||p==v||d&&!i){if(s=c||d?{}:hi(e),!u)return c?function(e,t){return Uo(e,fi(e),t)}(e,function(e,t){return e&&Uo(t,Cs(t),e)}(s,e)):function(e,t){return Uo(e,li(e),t)}(e,tn(s,e))}else{if(!it[p])return i?e:{};s=function(e,t,r){var n,o=e.constructor;switch(t){case C:return Oo(e);case m:case g:return new o(+e);case T:return function(e,t){var r=t?Oo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case S:case I:case F:case $:case D:case L:case N:case M:case q:return jo(e,r);case O:return new o;case j:case U:return new o(e);case x:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case k:return new o;case E:return n=e,Fr?Ae(Fr.call(n)):{}}}(e,p,u)}}a||(a=new Vr);var h=a.get(e);if(h)return h;a.set(e,s),is(e)?e.forEach((function(n){s.add(an(n,t,r,n,e,a))})):ts(e)&&e.forEach((function(n,o){s.set(o,an(n,t,r,o,e,a))}));var y=f?o:(l?c?ri:ti:c?Cs:Rs)(e);return Pt(y||e,(function(n,o){y&&(n=e[o=n]),Zr(s,o,an(n,t,r,o,e,a))})),s}function sn(e,t,r){var n=r.length;if(null==e)return!n;for(e=Ae(e);n--;){var i=r[n],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function un(e,t,r){if("function"!=typeof e)throw new ke(i);return Ui((function(){e.apply(o,r)}),t)}function cn(e,t,r,n){var o=-1,i=Et,a=!0,s=e.length,u=[],c=t.length;if(!s)return u;r&&(t=Ct(t,Yt(r))),n?(i=Rt,a=!1):t.length>=200&&(i=Kt,a=!1,t=new Hr(t));e:for(;++o<s;){var l=e[o],f=null==r?l:r(l);if(l=n||0!==l?l:0,a&&f==f){for(var p=c;p--;)if(t[p]===f)continue e;u.push(l)}else i(t,f,n)||u.push(l)}return u}Dr.templateSettings={escape:Y,evaluate:X,interpolate:K,variable:"",imports:{_:Dr}},Dr.prototype=Nr.prototype,Dr.prototype.constructor=Dr,Mr.prototype=Lr(Nr.prototype),Mr.prototype.constructor=Mr,qr.prototype=Lr(Nr.prototype),qr.prototype.constructor=qr,Br.prototype.clear=function(){this.__data__=xr?xr(null):{},this.size=0},Br.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Br.prototype.get=function(e){var t=this.__data__;if(xr){var r=t[e];return r===a?o:r}return Se.call(t,e)?t[e]:o},Br.prototype.has=function(e){var t=this.__data__;return xr?t[e]!==o:Se.call(t,e)},Br.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=xr&&t===o?a:t,this},zr.prototype.clear=function(){this.__data__=[],this.size=0},zr.prototype.delete=function(e){var t=this.__data__,r=Qr(t,e);return!(r<0||(r==t.length-1?t.pop():Ge.call(t,r,1),--this.size,0))},zr.prototype.get=function(e){var t=this.__data__,r=Qr(t,e);return r<0?o:t[r][1]},zr.prototype.has=function(e){return Qr(this.__data__,e)>-1},zr.prototype.set=function(e,t){var r=this.__data__,n=Qr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Wr.prototype.clear=function(){this.size=0,this.__data__={hash:new Br,map:new(Or||zr),string:new Br}},Wr.prototype.delete=function(e){var t=si(this,e).delete(e);return this.size-=t?1:0,t},Wr.prototype.get=function(e){return si(this,e).get(e)},Wr.prototype.has=function(e){return si(this,e).has(e)},Wr.prototype.set=function(e,t){var r=si(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Hr.prototype.add=Hr.prototype.push=function(e){return this.__data__.set(e,a),this},Hr.prototype.has=function(e){return this.__data__.has(e)},Vr.prototype.clear=function(){this.__data__=new zr,this.size=0},Vr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Vr.prototype.get=function(e){return this.__data__.get(e)},Vr.prototype.has=function(e){return this.__data__.has(e)},Vr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof zr){var n=r.__data__;if(!Or||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Wr(n)}return r.set(e,t),this.size=r.size,this};var ln=Co(gn),fn=Co(bn,!0);function pn(e,t){var r=!0;return ln(e,(function(e,n,o){return r=!!t(e,n,o)})),r}function dn(e,t,r){for(var n=-1,i=e.length;++n<i;){var a=e[n],s=t(a);if(null!=s&&(u===o?s==s&&!ss(s):r(s,u)))var u=s,c=a}return c}function hn(e,t){var r=[];return ln(e,(function(e,n,o){t(e,n,o)&&r.push(e)})),r}function vn(e,t,r,n,o){var i=-1,a=e.length;for(r||(r=vi),o||(o=[]);++i<a;){var s=e[i];t>0&&r(s)?t>1?vn(s,t-1,r,n,o):Tt(o,s):n||(o[o.length]=s)}return o}var yn=To(),mn=To(!0);function gn(e,t){return e&&yn(e,t,Rs)}function bn(e,t){return e&&mn(e,t,Rs)}function _n(e,t){return Ut(t,(function(t){return Xa(e[t])}))}function wn(e,t){for(var r=0,n=(t=mo(t,e)).length;null!=e&&r<n;)e=e[$i(t[r++])];return r&&r==n?e:o}function On(e,t,r){var n=t(e);return za(e)?n:Tt(n,r(e))}function jn(e){return null==e?e===o?"[object Undefined]":"[object Null]":Ze&&Ze in Ae(e)?function(e){var t=Se.call(e,Ze),r=e[Ze];try{e[Ze]=o;var n=!0}catch(e){}var i=$e.call(e);return n&&(t?e[Ze]=r:delete e[Ze]),i}(e):function(e){return $e.call(e)}(e)}function An(e,t){return e>t}function Pn(e,t){return null!=e&&Se.call(e,t)}function xn(e,t){return null!=e&&t in Ae(e)}function kn(e,t,r){for(var i=r?Rt:Et,a=e[0].length,s=e.length,u=s,c=n(s),l=1/0,f=[];u--;){var p=e[u];u&&t&&(p=Ct(p,Yt(t))),l=yr(p.length,l),c[u]=!r&&(t||a>=120&&p.length>=120)?new Hr(u&&p):o}p=e[0];var d=-1,h=c[0];e:for(;++d<a&&f.length<l;){var v=p[d],y=t?t(v):v;if(v=r||0!==v?v:0,!(h?Kt(h,y):i(f,y,r))){for(u=s;--u;){var m=c[u];if(!(m?Kt(m,y):i(e[u],y,r)))continue e}h&&h.push(y),f.push(v)}}return f}function Un(e,t,r){var n=null==(e=Pi(e,t=mo(t,e)))?e:e[$i(Yi(t))];return null==n?o:jt(n,e,r)}function En(e){return es(e)&&jn(e)==v}function Rn(e,t,r,n,i){return e===t||(null==e||null==t||!es(e)&&!es(t)?e!=e&&t!=t:function(e,t,r,n,i,a){var s=za(e),u=za(t),c=s?y:pi(e),l=u?y:pi(t),f=(c=c==v?A:c)==A,p=(l=l==v?A:l)==A,d=c==l;if(d&&Ga(e)){if(!Ga(t))return!1;s=!0,f=!1}if(d&&!f)return a||(a=new Vr),s||us(e)?Qo(e,t,r,n,i,a):function(e,t,r,n,o,i,a){switch(r){case T:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case C:return!(e.byteLength!=t.byteLength||!i(new Be(e),new Be(t)));case m:case g:case j:return Na(+e,+t);case b:return e.name==t.name&&e.message==t.message;case x:case U:return e==t+"";case O:var s=or;case k:var u=1&n;if(s||(s=sr),e.size!=t.size&&!u)return!1;var c=a.get(e);if(c)return c==t;n|=2,a.set(e,t);var l=Qo(s(e),s(t),n,o,i,a);return a.delete(e),l;case E:if(Fr)return Fr.call(e)==Fr.call(t)}return!1}(e,t,c,r,n,i,a);if(!(1&r)){var h=f&&Se.call(e,"__wrapped__"),_=p&&Se.call(t,"__wrapped__");if(h||_){var w=h?e.value():e,P=_?t.value():t;return a||(a=new Vr),i(w,P,r,n,a)}}return!!d&&(a||(a=new Vr),function(e,t,r,n,i,a){var s=1&r,u=ti(e),c=u.length;if(c!=ti(t).length&&!s)return!1;for(var l=c;l--;){var f=u[l];if(!(s?f in t:Se.call(t,f)))return!1}var p=a.get(e),d=a.get(t);if(p&&d)return p==t&&d==e;var h=!0;a.set(e,t),a.set(t,e);for(var v=s;++l<c;){var y=e[f=u[l]],m=t[f];if(n)var g=s?n(m,y,f,t,e,a):n(y,m,f,e,t,a);if(!(g===o?y===m||i(y,m,r,n,a):g)){h=!1;break}v||(v="constructor"==f)}if(h&&!v){var b=e.constructor,_=t.constructor;b==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof _&&_ instanceof _||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,r,n,i,a))}(e,t,r,n,Rn,i))}function Cn(e,t,r,n){var i=r.length,a=i,s=!n;if(null==e)return!a;for(e=Ae(e);i--;){var u=r[i];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<a;){var c=(u=r[i])[0],l=e[c],f=u[1];if(s&&u[2]){if(l===o&&!(c in e))return!1}else{var p=new Vr;if(n)var d=n(l,f,c,e,t,p);if(!(d===o?Rn(f,l,3,n,p):d))return!1}}return!0}function Tn(e){return!(!Qa(e)||(t=e,Fe&&Fe in t))&&(Xa(e)?Ne:ve).test(Di(e));var t}function Sn(e){return"function"==typeof e?e:null==e?ru:"object"==typeof e?za(e)?Ln(e[0],e[1]):Dn(e):fu(e)}function In(e){if(!wi(e))return hr(e);var t=[];for(var r in Ae(e))Se.call(e,r)&&"constructor"!=r&&t.push(r);return t}function Fn(e,t){return e<t}function $n(e,t){var r=-1,o=Ha(e)?n(e.length):[];return ln(e,(function(e,n,i){o[++r]=t(e,n,i)})),o}function Dn(e){var t=ui(e);return 1==t.length&&t[0][2]?ji(t[0][0],t[0][1]):function(r){return r===e||Cn(r,e,t)}}function Ln(e,t){return gi(e)&&Oi(t)?ji($i(e),t):function(r){var n=Ps(r,e);return n===o&&n===t?xs(r,e):Rn(t,n,3)}}function Nn(e,t,r,n,i){e!==t&&yn(t,(function(a,s){if(i||(i=new Vr),Qa(a))!function(e,t,r,n,i,a,s){var u=xi(e,r),c=xi(t,r),l=s.get(c);if(l)Kr(e,r,l);else{var f=a?a(u,c,r+"",e,t,s):o,p=f===o;if(p){var d=za(c),h=!d&&Ga(c),v=!d&&!h&&us(c);f=c,d||h||v?za(u)?f=u:Va(u)?f=ko(u):h?(p=!1,f=wo(c,!0)):v?(p=!1,f=jo(c,!0)):f=[]:ns(c)||Ba(c)?(f=u,Ba(u)?f=ys(u):Qa(u)&&!Xa(u)||(f=hi(c))):p=!1}p&&(s.set(c,f),i(f,c,n,a,s),s.delete(c)),Kr(e,r,f)}}(e,t,s,r,Nn,n,i);else{var u=n?n(xi(e,s),a,s+"",e,t,i):o;u===o&&(u=a),Kr(e,s,u)}}),Cs)}function Mn(e,t){var r=e.length;if(r)return yi(t+=t<0?r:0,r)?e[t]:o}function qn(e,t,r){t=t.length?Ct(t,(function(e){return za(e)?function(t){return wn(t,1===e.length?e[0]:e)}:e})):[ru];var n=-1;t=Ct(t,Yt(ai()));var o=$n(e,(function(e,r,o){var i=Ct(t,(function(t){return t(e)}));return{criteria:i,index:++n,value:e}}));return function(e,t){var n=e.length;for(e.sort((function(e,t){return function(e,t,r){for(var n=-1,o=e.criteria,i=t.criteria,a=o.length,s=r.length;++n<a;){var u=Ao(o[n],i[n]);if(u)return n>=s?u:u*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)}));n--;)e[n]=e[n].value;return e}(o)}function Bn(e,t,r){for(var n=-1,o=t.length,i={};++n<o;){var a=t[n],s=wn(e,a);r(s,a)&&Xn(i,mo(a,e),s)}return i}function zn(e,t,r,n){var o=n?Mt:Nt,i=-1,a=t.length,s=e;for(e===t&&(t=ko(t)),r&&(s=Ct(e,Yt(r)));++i<a;)for(var u=0,c=t[i],l=r?r(c):c;(u=o(s,l,u,n))>-1;)s!==e&&Ge.call(s,u,1),Ge.call(e,u,1);return e}function Wn(e,t){for(var r=e?t.length:0,n=r-1;r--;){var o=t[r];if(r==n||o!==i){var i=o;yi(o)?Ge.call(e,o,1):uo(e,o)}}return e}function Hn(e,t){return e+dt(br()*(t-e+1))}function Vn(e,t){var r="";if(!e||t<1||t>f)return r;do{t%2&&(r+=e),(t=dt(t/2))&&(e+=e)}while(t);return r}function Gn(e,t){return Ei(Ai(e,t,ru),e+"")}function Jn(e){return Jr(Ns(e))}function Yn(e,t){var r=Ns(e);return Ti(r,on(t,0,r.length))}function Xn(e,t,r,n){if(!Qa(e))return e;for(var i=-1,a=(t=mo(t,e)).length,s=a-1,u=e;null!=u&&++i<a;){var c=$i(t[i]),l=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=s){var f=u[c];(l=n?n(f,c,u):o)===o&&(l=Qa(f)?f:yi(t[i+1])?[]:{})}Zr(u,c,l),u=u[c]}return e}var Kn=kr?function(e,t){return kr.set(e,t),e}:ru,Zn=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:Qs(t),writable:!0})}:ru;function Qn(e){return Ti(Ns(e))}function eo(e,t,r){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=n(i);++o<i;)a[o]=e[o+t];return a}function to(e,t){var r;return ln(e,(function(e,n,o){return!(r=t(e,n,o))})),!!r}function ro(e,t,r){var n=0,o=null==e?n:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;n<o;){var i=n+o>>>1,a=e[i];null!==a&&!ss(a)&&(r?a<=t:a<t)?n=i+1:o=i}return o}return no(e,t,ru,r)}function no(e,t,r,n){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=r(t))!=t,u=null===t,c=ss(t),l=t===o;i<a;){var f=dt((i+a)/2),p=r(e[f]),d=p!==o,h=null===p,v=p==p,y=ss(p);if(s)var m=n||v;else m=l?v&&(n||d):u?v&&d&&(n||!h):c?v&&d&&!h&&(n||!y):!h&&!y&&(n?p<=t:p<t);m?i=f+1:a=f}return yr(a,4294967294)}function oo(e,t){for(var r=-1,n=e.length,o=0,i=[];++r<n;){var a=e[r],s=t?t(a):a;if(!r||!Na(s,u)){var u=s;i[o++]=0===a?0:a}}return i}function io(e){return"number"==typeof e?e:ss(e)?p:+e}function ao(e){if("string"==typeof e)return e;if(za(e))return Ct(e,ao)+"";if(ss(e))return $r?$r.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function so(e,t,r){var n=-1,o=Et,i=e.length,a=!0,s=[],u=s;if(r)a=!1,o=Rt;else if(i>=200){var c=t?null:Go(e);if(c)return sr(c);a=!1,o=Kt,u=new Hr}else u=t?[]:s;e:for(;++n<i;){var l=e[n],f=t?t(l):l;if(l=r||0!==l?l:0,a&&f==f){for(var p=u.length;p--;)if(u[p]===f)continue e;t&&u.push(f),s.push(l)}else o(u,f,r)||(u!==s&&u.push(f),s.push(l))}return s}function uo(e,t){return null==(e=Pi(e,t=mo(t,e)))||delete e[$i(Yi(t))]}function co(e,t,r,n){return Xn(e,t,r(wn(e,t)),n)}function lo(e,t,r,n){for(var o=e.length,i=n?o:-1;(n?i--:++i<o)&&t(e[i],i,e););return r?eo(e,n?0:i,n?i+1:o):eo(e,n?i+1:0,n?o:i)}function fo(e,t){var r=e;return r instanceof qr&&(r=r.value()),St(t,(function(e,t){return t.func.apply(t.thisArg,Tt([e],t.args))}),r)}function po(e,t,r){var o=e.length;if(o<2)return o?so(e[0]):[];for(var i=-1,a=n(o);++i<o;)for(var s=e[i],u=-1;++u<o;)u!=i&&(a[i]=cn(a[i]||s,e[u],t,r));return so(vn(a,1),t,r)}function ho(e,t,r){for(var n=-1,i=e.length,a=t.length,s={};++n<i;){var u=n<a?t[n]:o;r(s,e[n],u)}return s}function vo(e){return Va(e)?e:[]}function yo(e){return"function"==typeof e?e:ru}function mo(e,t){return za(e)?e:gi(e,t)?[e]:Fi(ms(e))}var go=Gn;function bo(e,t,r){var n=e.length;return r=r===o?n:r,!t&&r>=n?e:eo(e,t,r)}var _o=at||function(e){return ft.clearTimeout(e)};function wo(e,t){if(t)return e.slice();var r=e.length,n=ze?ze(r):new e.constructor(r);return e.copy(n),n}function Oo(e){var t=new e.constructor(e.byteLength);return new Be(t).set(new Be(e)),t}function jo(e,t){var r=t?Oo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Ao(e,t){if(e!==t){var r=e!==o,n=null===e,i=e==e,a=ss(e),s=t!==o,u=null===t,c=t==t,l=ss(t);if(!u&&!l&&!a&&e>t||a&&s&&c&&!u&&!l||n&&s&&c||!r&&c||!i)return 1;if(!n&&!a&&!l&&e<t||l&&r&&i&&!n&&!a||u&&r&&i||!s&&i||!c)return-1}return 0}function Po(e,t,r,o){for(var i=-1,a=e.length,s=r.length,u=-1,c=t.length,l=vr(a-s,0),f=n(c+l),p=!o;++u<c;)f[u]=t[u];for(;++i<s;)(p||i<a)&&(f[r[i]]=e[i]);for(;l--;)f[u++]=e[i++];return f}function xo(e,t,r,o){for(var i=-1,a=e.length,s=-1,u=r.length,c=-1,l=t.length,f=vr(a-u,0),p=n(f+l),d=!o;++i<f;)p[i]=e[i];for(var h=i;++c<l;)p[h+c]=t[c];for(;++s<u;)(d||i<a)&&(p[h+r[s]]=e[i++]);return p}function ko(e,t){var r=-1,o=e.length;for(t||(t=n(o));++r<o;)t[r]=e[r];return t}function Uo(e,t,r,n){var i=!r;r||(r={});for(var a=-1,s=t.length;++a<s;){var u=t[a],c=n?n(r[u],e[u],u,r,e):o;c===o&&(c=e[u]),i?rn(r,u,c):Zr(r,u,c)}return r}function Eo(e,t){return function(r,n){var o=za(r)?At:en,i=t?t():{};return o(r,e,ai(n,2),i)}}function Ro(e){return Gn((function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:o,s=i>2?r[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&mi(r[0],r[1],s)&&(a=i<3?o:a,i=1),t=Ae(t);++n<i;){var u=r[n];u&&e(t,u,n,a)}return t}))}function Co(e,t){return function(r,n){if(null==r)return r;if(!Ha(r))return e(r,n);for(var o=r.length,i=t?o:-1,a=Ae(r);(t?i--:++i<o)&&!1!==n(a[i],i,a););return r}}function To(e){return function(t,r,n){for(var o=-1,i=Ae(t),a=n(t),s=a.length;s--;){var u=a[e?s:++o];if(!1===r(i[u],u,i))break}return t}}function So(e){return function(t){var r=nr(t=ms(t))?lr(t):o,n=r?r[0]:t.charAt(0),i=r?bo(r,1).join(""):t.slice(1);return n[e]()+i}}function Io(e){return function(t){return St(Xs(Bs(t).replace(Xe,"")),e,"")}}function Fo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Lr(e.prototype),n=e.apply(r,t);return Qa(n)?n:r}}function $o(e){return function(t,r,n){var i=Ae(t);if(!Ha(t)){var a=ai(r,3);t=Rs(t),r=function(e){return a(i[e],e,i)}}var s=e(t,r,n);return s>-1?i[a?t[s]:s]:o}}function Do(e){return ei((function(t){var r=t.length,n=r,a=Mr.prototype.thru;for(e&&t.reverse();n--;){var s=t[n];if("function"!=typeof s)throw new ke(i);if(a&&!u&&"wrapper"==oi(s))var u=new Mr([],!0)}for(n=u?n:r;++n<r;){var c=oi(s=t[n]),l="wrapper"==c?ni(s):o;u=l&&bi(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[oi(l[0])].apply(u,l[3]):1==s.length&&bi(s)?u[c]():u.thru(s)}return function(){var e=arguments,n=e[0];if(u&&1==e.length&&za(n))return u.plant(n).value();for(var o=0,i=r?t[o].apply(this,e):n;++o<r;)i=t[o].call(this,i);return i}}))}function Lo(e,t,r,i,a,s,u,l,f,p){var d=t&c,h=1&t,v=2&t,y=24&t,m=512&t,g=v?o:Fo(e);return function c(){for(var b=arguments.length,_=n(b),w=b;w--;)_[w]=arguments[w];if(y)var O=ii(c),j=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(_,O);if(i&&(_=Po(_,i,a,y)),s&&(_=xo(_,s,u,y)),b-=j,y&&b<p){var A=ar(_,O);return Ho(e,t,Lo,c.placeholder,r,_,A,l,f,p-b)}var P=h?r:this,x=v?P[e]:e;return b=_.length,l?_=function(e,t){for(var r=e.length,n=yr(t.length,r),i=ko(e);n--;){var a=t[n];e[n]=yi(a,r)?i[a]:o}return e}(_,l):m&&b>1&&_.reverse(),d&&f<b&&(_.length=f),this&&this!==ft&&this instanceof c&&(x=g||Fo(x)),x.apply(P,_)}}function No(e,t){return function(r,n){return function(e,t,r,n){return gn(e,(function(e,o,i){t(n,r(e),o,i)})),n}(r,e,t(n),{})}}function Mo(e,t){return function(r,n){var i;if(r===o&&n===o)return t;if(r!==o&&(i=r),n!==o){if(i===o)return n;"string"==typeof r||"string"==typeof n?(r=ao(r),n=ao(n)):(r=io(r),n=io(n)),i=e(r,n)}return i}}function qo(e){return ei((function(t){return t=Ct(t,Yt(ai())),Gn((function(r){var n=this;return e(t,(function(e){return jt(e,n,r)}))}))}))}function Bo(e,t){var r=(t=t===o?" ":ao(t)).length;if(r<2)return r?Vn(t,e):t;var n=Vn(t,pt(e/cr(t)));return nr(t)?bo(lr(n),0,e).join(""):n.slice(0,e)}function zo(e){return function(t,r,i){return i&&"number"!=typeof i&&mi(t,r,i)&&(r=i=o),t=ps(t),r===o?(r=t,t=0):r=ps(r),function(e,t,r,o){for(var i=-1,a=vr(pt((t-e)/(r||1)),0),s=n(a);a--;)s[o?a:++i]=e,e+=r;return s}(t,r,i=i===o?t<r?1:-1:ps(i),e)}}function Wo(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=vs(t),r=vs(r)),e(t,r)}}function Ho(e,t,r,n,i,a,s,c,l,f){var p=8&t;t|=p?u:64,4&(t&=~(p?64:u))||(t&=-4);var d=[e,t,i,p?a:o,p?s:o,p?o:a,p?o:s,c,l,f],h=r.apply(o,d);return bi(e)&&ki(h,d),h.placeholder=n,Ri(h,e,t)}function Vo(e){var t=je[e];return function(e,r){if(e=vs(e),(r=null==r?0:yr(ds(r),292))&&$t(e)){var n=(ms(e)+"e").split("e");return+((n=(ms(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var Go=Ar&&1/sr(new Ar([,-0]))[1]==l?function(e){return new Ar(e)}:su;function Jo(e){return function(t){var r=pi(t);return r==O?or(t):r==k?ur(t):function(e,t){return Ct(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Yo(e,t,r,a,l,f,p,d){var h=2&t;if(!h&&"function"!=typeof e)throw new ke(i);var v=a?a.length:0;if(v||(t&=-97,a=l=o),p=p===o?p:vr(ds(p),0),d=d===o?d:ds(d),v-=l?l.length:0,64&t){var y=a,m=l;a=l=o}var g=h?o:ni(e),b=[e,t,r,a,l,y,m,f,p,d];if(g&&function(e,t){var r=e[1],n=t[1],o=r|n,i=o<131,a=n==c&&8==r||n==c&&256==r&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(!i&&!a)return e;1&n&&(e[2]=t[2],o|=1&r?0:4);var u=t[3];if(u){var l=e[3];e[3]=l?Po(l,u,t[4]):u,e[4]=l?ar(e[3],s):t[4]}(u=t[5])&&(l=e[5],e[5]=l?xo(l,u,t[6]):u,e[6]=l?ar(e[5],s):t[6]),(u=t[7])&&(e[7]=u),n&c&&(e[8]=null==e[8]?t[8]:yr(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(b,g),e=b[0],t=b[1],r=b[2],a=b[3],l=b[4],!(d=b[9]=b[9]===o?h?0:e.length:vr(b[9]-v,0))&&24&t&&(t&=-25),t&&1!=t)_=8==t||16==t?function(e,t,r){var i=Fo(e);return function a(){for(var s=arguments.length,u=n(s),c=s,l=ii(a);c--;)u[c]=arguments[c];var f=s<3&&u[0]!==l&&u[s-1]!==l?[]:ar(u,l);return(s-=f.length)<r?Ho(e,t,Lo,a.placeholder,o,u,f,o,o,r-s):jt(this&&this!==ft&&this instanceof a?i:e,this,u)}}(e,t,d):t!=u&&33!=t||l.length?Lo.apply(o,b):function(e,t,r,o){var i=1&t,a=Fo(e);return function t(){for(var s=-1,u=arguments.length,c=-1,l=o.length,f=n(l+u),p=this&&this!==ft&&this instanceof t?a:e;++c<l;)f[c]=o[c];for(;u--;)f[c++]=arguments[++s];return jt(p,i?r:this,f)}}(e,t,r,a);else var _=function(e,t,r){var n=1&t,o=Fo(e);return function t(){return(this&&this!==ft&&this instanceof t?o:e).apply(n?r:this,arguments)}}(e,t,r);return Ri((g?Kn:ki)(_,b),e,t)}function Xo(e,t,r,n){return e===o||Na(e,Re[r])&&!Se.call(n,r)?t:e}function Ko(e,t,r,n,i,a){return Qa(e)&&Qa(t)&&(a.set(t,e),Nn(e,t,o,Ko,a),a.delete(t)),e}function Zo(e){return ns(e)?o:e}function Qo(e,t,r,n,i,a){var s=1&r,u=e.length,c=t.length;if(u!=c&&!(s&&c>u))return!1;var l=a.get(e),f=a.get(t);if(l&&f)return l==t&&f==e;var p=-1,d=!0,h=2&r?new Hr:o;for(a.set(e,t),a.set(t,e);++p<u;){var v=e[p],y=t[p];if(n)var m=s?n(y,v,p,t,e,a):n(v,y,p,e,t,a);if(m!==o){if(m)continue;d=!1;break}if(h){if(!Ft(t,(function(e,t){if(!Kt(h,t)&&(v===e||i(v,e,r,n,a)))return h.push(t)}))){d=!1;break}}else if(v!==y&&!i(v,y,r,n,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function ei(e){return Ei(Ai(e,o,Wi),e+"")}function ti(e){return On(e,Rs,li)}function ri(e){return On(e,Cs,fi)}var ni=kr?function(e){return kr.get(e)}:su;function oi(e){for(var t=e.name+"",r=Ur[t],n=Se.call(Ur,t)?r.length:0;n--;){var o=r[n],i=o.func;if(null==i||i==e)return o.name}return t}function ii(e){return(Se.call(Dr,"placeholder")?Dr:e).placeholder}function ai(){var e=Dr.iteratee||nu;return e=e===nu?Sn:e,arguments.length?e(arguments[0],arguments[1]):e}function si(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function ui(e){for(var t=Rs(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,Oi(o)]}return t}function ci(e,t){var r=function(e,t){return null==e?o:e[t]}(e,t);return Tn(r)?r:o}var li=vt?function(e){return null==e?[]:(e=Ae(e),Ut(vt(e),(function(t){return Ve.call(e,t)})))}:hu,fi=vt?function(e){for(var t=[];e;)Tt(t,li(e)),e=We(e);return t}:hu,pi=jn;function di(e,t,r){for(var n=-1,o=(t=mo(t,e)).length,i=!1;++n<o;){var a=$i(t[n]);if(!(i=null!=e&&r(e,a)))break;e=e[a]}return i||++n!=o?i:!!(o=null==e?0:e.length)&&Za(o)&&yi(a,o)&&(za(e)||Ba(e))}function hi(e){return"function"!=typeof e.constructor||wi(e)?{}:Lr(We(e))}function vi(e){return za(e)||Ba(e)||!!(Je&&e&&e[Je])}function yi(e,t){var r=typeof e;return!!(t=null==t?f:t)&&("number"==r||"symbol"!=r&&me.test(e))&&e>-1&&e%1==0&&e<t}function mi(e,t,r){if(!Qa(r))return!1;var n=typeof t;return!!("number"==n?Ha(r)&&yi(t,r.length):"string"==n&&t in r)&&Na(r[t],e)}function gi(e,t){if(za(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!ss(e))||Q.test(e)||!Z.test(e)||null!=t&&e in Ae(t)}function bi(e){var t=oi(e),r=Dr[t];if("function"!=typeof r||!(t in qr.prototype))return!1;if(e===r)return!0;var n=ni(r);return!!n&&e===n[0]}(wr&&pi(new wr(new ArrayBuffer(1)))!=T||Or&&pi(new Or)!=O||jr&&pi(jr.resolve())!=P||Ar&&pi(new Ar)!=k||Pr&&pi(new Pr)!=R)&&(pi=function(e){var t=jn(e),r=t==A?e.constructor:o,n=r?Di(r):"";if(n)switch(n){case Er:return T;case Rr:return O;case Cr:return P;case Tr:return k;case Sr:return R}return t});var _i=Ce?Xa:vu;function wi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Re)}function Oi(e){return e==e&&!Qa(e)}function ji(e,t){return function(r){return null!=r&&r[e]===t&&(t!==o||e in Ae(r))}}function Ai(e,t,r){return t=vr(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=vr(o.length-t,0),s=n(a);++i<a;)s[i]=o[t+i];i=-1;for(var u=n(t+1);++i<t;)u[i]=o[i];return u[t]=r(s),jt(e,this,u)}}function Pi(e,t){return t.length<2?e:wn(e,eo(t,0,-1))}function xi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ki=Ci(Kn),Ui=lt||function(e,t){return ft.setTimeout(e,t)},Ei=Ci(Zn);function Ri(e,t,r){var n=t+"";return Ei(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return Pt(h,(function(r){var n="_."+r[0];t&r[1]&&!Et(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(n),r)))}function Ci(e){var t=0,r=0;return function(){var n=mr(),i=16-(n-r);if(r=n,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ti(e,t){var r=-1,n=e.length,i=n-1;for(t=t===o?n:t;++r<t;){var a=Hn(r,i),s=e[a];e[a]=e[r],e[r]=s}return e.length=t,e}var Si,Ii,Fi=(Si=Sa((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,r,n,o){t.push(n?o.replace(le,"$1"):r||e)})),t}),(function(e){return 500===Ii.size&&Ii.clear(),e})),Ii=Si.cache,Si);function $i(e){if("string"==typeof e||ss(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Di(e){if(null!=e){try{return Te.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Li(e){if(e instanceof qr)return e.clone();var t=new Mr(e.__wrapped__,e.__chain__);return t.__actions__=ko(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ni=Gn((function(e,t){return Va(e)?cn(e,vn(t,1,Va,!0)):[]})),Mi=Gn((function(e,t){var r=Yi(t);return Va(r)&&(r=o),Va(e)?cn(e,vn(t,1,Va,!0),ai(r,2)):[]})),qi=Gn((function(e,t){var r=Yi(t);return Va(r)&&(r=o),Va(e)?cn(e,vn(t,1,Va,!0),o,r):[]}));function Bi(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:ds(r);return o<0&&(o=vr(n+o,0)),Lt(e,ai(t,3),o)}function zi(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=n-1;return r!==o&&(i=ds(r),i=r<0?vr(n+i,0):yr(i,n-1)),Lt(e,ai(t,3),i,!0)}function Wi(e){return null!=e&&e.length?vn(e,1):[]}function Hi(e){return e&&e.length?e[0]:o}var Vi=Gn((function(e){var t=Ct(e,vo);return t.length&&t[0]===e[0]?kn(t):[]})),Gi=Gn((function(e){var t=Yi(e),r=Ct(e,vo);return t===Yi(r)?t=o:r.pop(),r.length&&r[0]===e[0]?kn(r,ai(t,2)):[]})),Ji=Gn((function(e){var t=Yi(e),r=Ct(e,vo);return(t="function"==typeof t?t:o)&&r.pop(),r.length&&r[0]===e[0]?kn(r,o,t):[]}));function Yi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Xi=Gn(Ki);function Ki(e,t){return e&&e.length&&t&&t.length?zn(e,t):e}var Zi=ei((function(e,t){var r=null==e?0:e.length,n=nn(e,t);return Wn(e,Ct(t,(function(e){return yi(e,r)?+e:e})).sort(Ao)),n}));function Qi(e){return null==e?e:_r.call(e)}var ea=Gn((function(e){return so(vn(e,1,Va,!0))})),ta=Gn((function(e){var t=Yi(e);return Va(t)&&(t=o),so(vn(e,1,Va,!0),ai(t,2))})),ra=Gn((function(e){var t=Yi(e);return t="function"==typeof t?t:o,so(vn(e,1,Va,!0),o,t)}));function na(e){if(!e||!e.length)return[];var t=0;return e=Ut(e,(function(e){if(Va(e))return t=vr(e.length,t),!0})),Gt(t,(function(t){return Ct(e,zt(t))}))}function oa(e,t){if(!e||!e.length)return[];var r=na(e);return null==t?r:Ct(r,(function(e){return jt(t,o,e)}))}var ia=Gn((function(e,t){return Va(e)?cn(e,t):[]})),aa=Gn((function(e){return po(Ut(e,Va))})),sa=Gn((function(e){var t=Yi(e);return Va(t)&&(t=o),po(Ut(e,Va),ai(t,2))})),ua=Gn((function(e){var t=Yi(e);return t="function"==typeof t?t:o,po(Ut(e,Va),o,t)})),ca=Gn(na),la=Gn((function(e){var t=e.length,r=t>1?e[t-1]:o;return r="function"==typeof r?(e.pop(),r):o,oa(e,r)}));function fa(e){var t=Dr(e);return t.__chain__=!0,t}function pa(e,t){return t(e)}var da=ei((function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,i=function(t){return nn(t,e)};return!(t>1||this.__actions__.length)&&n instanceof qr&&yi(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:pa,args:[i],thisArg:o}),new Mr(n,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)})),ha=Eo((function(e,t,r){Se.call(e,r)?++e[r]:rn(e,r,1)})),va=$o(Bi),ya=$o(zi);function ma(e,t){return(za(e)?Pt:ln)(e,ai(t,3))}function ga(e,t){return(za(e)?xt:fn)(e,ai(t,3))}var ba=Eo((function(e,t,r){Se.call(e,r)?e[r].push(t):rn(e,r,[t])})),_a=Gn((function(e,t,r){var o=-1,i="function"==typeof t,a=Ha(e)?n(e.length):[];return ln(e,(function(e){a[++o]=i?jt(t,e,r):Un(e,t,r)})),a})),wa=Eo((function(e,t,r){rn(e,r,t)}));function Oa(e,t){return(za(e)?Ct:$n)(e,ai(t,3))}var ja=Eo((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]})),Aa=Gn((function(e,t){if(null==e)return[];var r=t.length;return r>1&&mi(e,t[0],t[1])?t=[]:r>2&&mi(t[0],t[1],t[2])&&(t=[t[0]]),qn(e,vn(t,1),[])})),Pa=ct||function(){return ft.Date.now()};function xa(e,t,r){return t=r?o:t,t=e&&null==t?e.length:t,Yo(e,c,o,o,o,o,t)}function ka(e,t){var r;if("function"!=typeof t)throw new ke(i);return e=ds(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=o),r}}var Ua=Gn((function(e,t,r){var n=1;if(r.length){var o=ar(r,ii(Ua));n|=u}return Yo(e,n,t,r,o)})),Ea=Gn((function(e,t,r){var n=3;if(r.length){var o=ar(r,ii(Ea));n|=u}return Yo(t,n,e,r,o)}));function Ra(e,t,r){var n,a,s,u,c,l,f=0,p=!1,d=!1,h=!0;if("function"!=typeof e)throw new ke(i);function v(t){var r=n,i=a;return n=a=o,f=t,u=e.apply(i,r)}function y(e){var r=e-l;return l===o||r>=t||r<0||d&&e-f>=s}function m(){var e=Pa();if(y(e))return g(e);c=Ui(m,function(e){var r=t-(e-l);return d?yr(r,s-(e-f)):r}(e))}function g(e){return c=o,h&&n?v(e):(n=a=o,u)}function b(){var e=Pa(),r=y(e);if(n=arguments,a=this,l=e,r){if(c===o)return function(e){return f=e,c=Ui(m,t),p?v(e):u}(l);if(d)return _o(c),c=Ui(m,t),v(l)}return c===o&&(c=Ui(m,t)),u}return t=vs(t)||0,Qa(r)&&(p=!!r.leading,s=(d="maxWait"in r)?vr(vs(r.maxWait)||0,t):s,h="trailing"in r?!!r.trailing:h),b.cancel=function(){c!==o&&_o(c),f=0,n=l=a=c=o},b.flush=function(){return c===o?u:g(Pa())},b}var Ca=Gn((function(e,t){return un(e,1,t)})),Ta=Gn((function(e,t,r){return un(e,vs(t)||0,r)}));function Sa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ke(i);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(Sa.Cache||Wr),r}function Ia(e){if("function"!=typeof e)throw new ke(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Sa.Cache=Wr;var Fa=go((function(e,t){var r=(t=1==t.length&&za(t[0])?Ct(t[0],Yt(ai())):Ct(vn(t,1),Yt(ai()))).length;return Gn((function(n){for(var o=-1,i=yr(n.length,r);++o<i;)n[o]=t[o].call(this,n[o]);return jt(e,this,n)}))})),$a=Gn((function(e,t){var r=ar(t,ii($a));return Yo(e,u,o,t,r)})),Da=Gn((function(e,t){var r=ar(t,ii(Da));return Yo(e,64,o,t,r)})),La=ei((function(e,t){return Yo(e,256,o,o,o,t)}));function Na(e,t){return e===t||e!=e&&t!=t}var Ma=Wo(An),qa=Wo((function(e,t){return e>=t})),Ba=En(function(){return arguments}())?En:function(e){return es(e)&&Se.call(e,"callee")&&!Ve.call(e,"callee")},za=n.isArray,Wa=mt?Yt(mt):function(e){return es(e)&&jn(e)==C};function Ha(e){return null!=e&&Za(e.length)&&!Xa(e)}function Va(e){return es(e)&&Ha(e)}var Ga=yt||vu,Ja=gt?Yt(gt):function(e){return es(e)&&jn(e)==g};function Ya(e){if(!es(e))return!1;var t=jn(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ns(e)}function Xa(e){if(!Qa(e))return!1;var t=jn(e);return t==_||t==w||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ka(e){return"number"==typeof e&&e==ds(e)}function Za(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function Qa(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function es(e){return null!=e&&"object"==typeof e}var ts=bt?Yt(bt):function(e){return es(e)&&pi(e)==O};function rs(e){return"number"==typeof e||es(e)&&jn(e)==j}function ns(e){if(!es(e)||jn(e)!=A)return!1;var t=We(e);if(null===t)return!0;var r=Se.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Te.call(r)==De}var os=_t?Yt(_t):function(e){return es(e)&&jn(e)==x},is=wt?Yt(wt):function(e){return es(e)&&pi(e)==k};function as(e){return"string"==typeof e||!za(e)&&es(e)&&jn(e)==U}function ss(e){return"symbol"==typeof e||es(e)&&jn(e)==E}var us=Ot?Yt(Ot):function(e){return es(e)&&Za(e.length)&&!!ot[jn(e)]},cs=Wo(Fn),ls=Wo((function(e,t){return e<=t}));function fs(e){if(!e)return[];if(Ha(e))return as(e)?lr(e):ko(e);if(Ye&&e[Ye])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Ye]());var t=pi(e);return(t==O?or:t==k?sr:Ns)(e)}function ps(e){return e?(e=vs(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ds(e){var t=ps(e),r=t%1;return t==t?r?t-r:t:0}function hs(e){return e?on(ds(e),0,d):0}function vs(e){if("number"==typeof e)return e;if(ss(e))return p;if(Qa(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Qa(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var r=he.test(e);return r||ye.test(e)?ut(e.slice(2),r?2:8):de.test(e)?p:+e}function ys(e){return Uo(e,Cs(e))}function ms(e){return null==e?"":ao(e)}var gs=Ro((function(e,t){if(wi(t)||Ha(t))Uo(t,Rs(t),e);else for(var r in t)Se.call(t,r)&&Zr(e,r,t[r])})),bs=Ro((function(e,t){Uo(t,Cs(t),e)})),_s=Ro((function(e,t,r,n){Uo(t,Cs(t),e,n)})),ws=Ro((function(e,t,r,n){Uo(t,Rs(t),e,n)})),Os=ei(nn),js=Gn((function(e,t){e=Ae(e);var r=-1,n=t.length,i=n>2?t[2]:o;for(i&&mi(t[0],t[1],i)&&(n=1);++r<n;)for(var a=t[r],s=Cs(a),u=-1,c=s.length;++u<c;){var l=s[u],f=e[l];(f===o||Na(f,Re[l])&&!Se.call(e,l))&&(e[l]=a[l])}return e})),As=Gn((function(e){return e.push(o,Ko),jt(Ss,o,e)}));function Ps(e,t,r){var n=null==e?o:wn(e,t);return n===o?r:n}function xs(e,t){return null!=e&&di(e,t,xn)}var ks=No((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=$e.call(t)),e[t]=r}),Qs(ru)),Us=No((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=$e.call(t)),Se.call(e,t)?e[t].push(r):e[t]=[r]}),ai),Es=Gn(Un);function Rs(e){return Ha(e)?Gr(e):In(e)}function Cs(e){return Ha(e)?Gr(e,!0):function(e){if(!Qa(e))return function(e){var t=[];if(null!=e)for(var r in Ae(e))t.push(r);return t}(e);var t=wi(e),r=[];for(var n in e)("constructor"!=n||!t&&Se.call(e,n))&&r.push(n);return r}(e)}var Ts=Ro((function(e,t,r){Nn(e,t,r)})),Ss=Ro((function(e,t,r,n){Nn(e,t,r,n)})),Is=ei((function(e,t){var r={};if(null==e)return r;var n=!1;t=Ct(t,(function(t){return t=mo(t,e),n||(n=t.length>1),t})),Uo(e,ri(e),r),n&&(r=an(r,7,Zo));for(var o=t.length;o--;)uo(r,t[o]);return r})),Fs=ei((function(e,t){return null==e?{}:function(e,t){return Bn(e,t,(function(t,r){return xs(e,r)}))}(e,t)}));function $s(e,t){if(null==e)return{};var r=Ct(ri(e),(function(e){return[e]}));return t=ai(t),Bn(e,r,(function(e,r){return t(e,r[0])}))}var Ds=Jo(Rs),Ls=Jo(Cs);function Ns(e){return null==e?[]:Xt(e,Rs(e))}var Ms=Io((function(e,t,r){return t=t.toLowerCase(),e+(r?qs(t):t)}));function qs(e){return Ys(ms(e).toLowerCase())}function Bs(e){return(e=ms(e))&&e.replace(ge,er).replace(Ke,"")}var zs=Io((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),Ws=Io((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Hs=So("toLowerCase"),Vs=Io((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()})),Gs=Io((function(e,t,r){return e+(r?" ":"")+Ys(t)})),Js=Io((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Ys=So("toUpperCase");function Xs(e,t,r){return e=ms(e),(t=r?o:t)===o?function(e){return tt.test(e)}(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Ks=Gn((function(e,t){try{return jt(e,o,t)}catch(e){return Ya(e)?e:new we(e)}})),Zs=ei((function(e,t){return Pt(t,(function(t){t=$i(t),rn(e,t,Ua(e[t],e))})),e}));function Qs(e){return function(){return e}}var eu=Do(),tu=Do(!0);function ru(e){return e}function nu(e){return Sn("function"==typeof e?e:an(e,1))}var ou=Gn((function(e,t){return function(r){return Un(r,e,t)}})),iu=Gn((function(e,t){return function(r){return Un(e,r,t)}}));function au(e,t,r){var n=Rs(t),o=_n(t,n);null!=r||Qa(t)&&(o.length||!n.length)||(r=t,t=e,e=this,o=_n(t,Rs(t)));var i=!(Qa(r)&&"chain"in r&&!r.chain),a=Xa(e);return Pt(o,(function(r){var n=t[r];e[r]=n,a&&(e.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=e(this.__wrapped__);return(r.__actions__=ko(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,Tt([this.value()],arguments))})})),e}function su(){}var uu=qo(Ct),cu=qo(kt),lu=qo(Ft);function fu(e){return gi(e)?zt($i(e)):function(e){return function(t){return wn(t,e)}}(e)}var pu=zo(),du=zo(!0);function hu(){return[]}function vu(){return!1}var yu,mu=Mo((function(e,t){return e+t}),0),gu=Vo("ceil"),bu=Mo((function(e,t){return e/t}),1),_u=Vo("floor"),wu=Mo((function(e,t){return e*t}),1),Ou=Vo("round"),ju=Mo((function(e,t){return e-t}),0);return Dr.after=function(e,t){if("function"!=typeof t)throw new ke(i);return e=ds(e),function(){if(--e<1)return t.apply(this,arguments)}},Dr.ary=xa,Dr.assign=gs,Dr.assignIn=bs,Dr.assignInWith=_s,Dr.assignWith=ws,Dr.at=Os,Dr.before=ka,Dr.bind=Ua,Dr.bindAll=Zs,Dr.bindKey=Ea,Dr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return za(e)?e:[e]},Dr.chain=fa,Dr.chunk=function(e,t,r){t=(r?mi(e,t,r):t===o)?1:vr(ds(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,u=n(pt(i/t));a<i;)u[s++]=eo(e,a,a+=t);return u},Dr.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,o=[];++t<r;){var i=e[t];i&&(o[n++]=i)}return o},Dr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Tt(za(r)?ko(r):[r],vn(t,1))},Dr.cond=function(e){var t=null==e?0:e.length,r=ai();return e=t?Ct(e,(function(e){if("function"!=typeof e[1])throw new ke(i);return[r(e[0]),e[1]]})):[],Gn((function(r){for(var n=-1;++n<t;){var o=e[n];if(jt(o[0],this,r))return jt(o[1],this,r)}}))},Dr.conforms=function(e){return function(e){var t=Rs(e);return function(r){return sn(r,e,t)}}(an(e,1))},Dr.constant=Qs,Dr.countBy=ha,Dr.create=function(e,t){var r=Lr(e);return null==t?r:tn(r,t)},Dr.curry=function e(t,r,n){var i=Yo(t,8,o,o,o,o,o,r=n?o:r);return i.placeholder=e.placeholder,i},Dr.curryRight=function e(t,r,n){var i=Yo(t,16,o,o,o,o,o,r=n?o:r);return i.placeholder=e.placeholder,i},Dr.debounce=Ra,Dr.defaults=js,Dr.defaultsDeep=As,Dr.defer=Ca,Dr.delay=Ta,Dr.difference=Ni,Dr.differenceBy=Mi,Dr.differenceWith=qi,Dr.drop=function(e,t,r){var n=null==e?0:e.length;return n?eo(e,(t=r||t===o?1:ds(t))<0?0:t,n):[]},Dr.dropRight=function(e,t,r){var n=null==e?0:e.length;return n?eo(e,0,(t=n-(t=r||t===o?1:ds(t)))<0?0:t):[]},Dr.dropRightWhile=function(e,t){return e&&e.length?lo(e,ai(t,3),!0,!0):[]},Dr.dropWhile=function(e,t){return e&&e.length?lo(e,ai(t,3),!0):[]},Dr.fill=function(e,t,r,n){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&mi(e,t,r)&&(r=0,n=i),function(e,t,r,n){var i=e.length;for((r=ds(r))<0&&(r=-r>i?0:i+r),(n=n===o||n>i?i:ds(n))<0&&(n+=i),n=r>n?0:hs(n);r<n;)e[r++]=t;return e}(e,t,r,n)):[]},Dr.filter=function(e,t){return(za(e)?Ut:hn)(e,ai(t,3))},Dr.flatMap=function(e,t){return vn(Oa(e,t),1)},Dr.flatMapDeep=function(e,t){return vn(Oa(e,t),l)},Dr.flatMapDepth=function(e,t,r){return r=r===o?1:ds(r),vn(Oa(e,t),r)},Dr.flatten=Wi,Dr.flattenDeep=function(e){return null!=e&&e.length?vn(e,l):[]},Dr.flattenDepth=function(e,t){return null!=e&&e.length?vn(e,t=t===o?1:ds(t)):[]},Dr.flip=function(e){return Yo(e,512)},Dr.flow=eu,Dr.flowRight=tu,Dr.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var o=e[t];n[o[0]]=o[1]}return n},Dr.functions=function(e){return null==e?[]:_n(e,Rs(e))},Dr.functionsIn=function(e){return null==e?[]:_n(e,Cs(e))},Dr.groupBy=ba,Dr.initial=function(e){return null!=e&&e.length?eo(e,0,-1):[]},Dr.intersection=Vi,Dr.intersectionBy=Gi,Dr.intersectionWith=Ji,Dr.invert=ks,Dr.invertBy=Us,Dr.invokeMap=_a,Dr.iteratee=nu,Dr.keyBy=wa,Dr.keys=Rs,Dr.keysIn=Cs,Dr.map=Oa,Dr.mapKeys=function(e,t){var r={};return t=ai(t,3),gn(e,(function(e,n,o){rn(r,t(e,n,o),e)})),r},Dr.mapValues=function(e,t){var r={};return t=ai(t,3),gn(e,(function(e,n,o){rn(r,n,t(e,n,o))})),r},Dr.matches=function(e){return Dn(an(e,1))},Dr.matchesProperty=function(e,t){return Ln(e,an(t,1))},Dr.memoize=Sa,Dr.merge=Ts,Dr.mergeWith=Ss,Dr.method=ou,Dr.methodOf=iu,Dr.mixin=au,Dr.negate=Ia,Dr.nthArg=function(e){return e=ds(e),Gn((function(t){return Mn(t,e)}))},Dr.omit=Is,Dr.omitBy=function(e,t){return $s(e,Ia(ai(t)))},Dr.once=function(e){return ka(2,e)},Dr.orderBy=function(e,t,r,n){return null==e?[]:(za(t)||(t=null==t?[]:[t]),za(r=n?o:r)||(r=null==r?[]:[r]),qn(e,t,r))},Dr.over=uu,Dr.overArgs=Fa,Dr.overEvery=cu,Dr.overSome=lu,Dr.partial=$a,Dr.partialRight=Da,Dr.partition=ja,Dr.pick=Fs,Dr.pickBy=$s,Dr.property=fu,Dr.propertyOf=function(e){return function(t){return null==e?o:wn(e,t)}},Dr.pull=Xi,Dr.pullAll=Ki,Dr.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?zn(e,t,ai(r,2)):e},Dr.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?zn(e,t,o,r):e},Dr.pullAt=Zi,Dr.range=pu,Dr.rangeRight=du,Dr.rearg=La,Dr.reject=function(e,t){return(za(e)?Ut:hn)(e,Ia(ai(t,3)))},Dr.remove=function(e,t){var r=[];if(!e||!e.length)return r;var n=-1,o=[],i=e.length;for(t=ai(t,3);++n<i;){var a=e[n];t(a,n,e)&&(r.push(a),o.push(n))}return Wn(e,o),r},Dr.rest=function(e,t){if("function"!=typeof e)throw new ke(i);return Gn(e,t=t===o?t:ds(t))},Dr.reverse=Qi,Dr.sampleSize=function(e,t,r){return t=(r?mi(e,t,r):t===o)?1:ds(t),(za(e)?Yr:Yn)(e,t)},Dr.set=function(e,t,r){return null==e?e:Xn(e,t,r)},Dr.setWith=function(e,t,r,n){return n="function"==typeof n?n:o,null==e?e:Xn(e,t,r,n)},Dr.shuffle=function(e){return(za(e)?Xr:Qn)(e)},Dr.slice=function(e,t,r){var n=null==e?0:e.length;return n?(r&&"number"!=typeof r&&mi(e,t,r)?(t=0,r=n):(t=null==t?0:ds(t),r=r===o?n:ds(r)),eo(e,t,r)):[]},Dr.sortBy=Aa,Dr.sortedUniq=function(e){return e&&e.length?oo(e):[]},Dr.sortedUniqBy=function(e,t){return e&&e.length?oo(e,ai(t,2)):[]},Dr.split=function(e,t,r){return r&&"number"!=typeof r&&mi(e,t,r)&&(t=r=o),(r=r===o?d:r>>>0)?(e=ms(e))&&("string"==typeof t||null!=t&&!os(t))&&!(t=ao(t))&&nr(e)?bo(lr(e),0,r):e.split(t,r):[]},Dr.spread=function(e,t){if("function"!=typeof e)throw new ke(i);return t=null==t?0:vr(ds(t),0),Gn((function(r){var n=r[t],o=bo(r,0,t);return n&&Tt(o,n),jt(e,this,o)}))},Dr.tail=function(e){var t=null==e?0:e.length;return t?eo(e,1,t):[]},Dr.take=function(e,t,r){return e&&e.length?eo(e,0,(t=r||t===o?1:ds(t))<0?0:t):[]},Dr.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?eo(e,(t=n-(t=r||t===o?1:ds(t)))<0?0:t,n):[]},Dr.takeRightWhile=function(e,t){return e&&e.length?lo(e,ai(t,3),!1,!0):[]},Dr.takeWhile=function(e,t){return e&&e.length?lo(e,ai(t,3)):[]},Dr.tap=function(e,t){return t(e),e},Dr.throttle=function(e,t,r){var n=!0,o=!0;if("function"!=typeof e)throw new ke(i);return Qa(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Ra(e,t,{leading:n,maxWait:t,trailing:o})},Dr.thru=pa,Dr.toArray=fs,Dr.toPairs=Ds,Dr.toPairsIn=Ls,Dr.toPath=function(e){return za(e)?Ct(e,$i):ss(e)?[e]:ko(Fi(ms(e)))},Dr.toPlainObject=ys,Dr.transform=function(e,t,r){var n=za(e),o=n||Ga(e)||us(e);if(t=ai(t,4),null==r){var i=e&&e.constructor;r=o?n?new i:[]:Qa(e)&&Xa(i)?Lr(We(e)):{}}return(o?Pt:gn)(e,(function(e,n,o){return t(r,e,n,o)})),r},Dr.unary=function(e){return xa(e,1)},Dr.union=ea,Dr.unionBy=ta,Dr.unionWith=ra,Dr.uniq=function(e){return e&&e.length?so(e):[]},Dr.uniqBy=function(e,t){return e&&e.length?so(e,ai(t,2)):[]},Dr.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?so(e,o,t):[]},Dr.unset=function(e,t){return null==e||uo(e,t)},Dr.unzip=na,Dr.unzipWith=oa,Dr.update=function(e,t,r){return null==e?e:co(e,t,yo(r))},Dr.updateWith=function(e,t,r,n){return n="function"==typeof n?n:o,null==e?e:co(e,t,yo(r),n)},Dr.values=Ns,Dr.valuesIn=function(e){return null==e?[]:Xt(e,Cs(e))},Dr.without=ia,Dr.words=Xs,Dr.wrap=function(e,t){return $a(yo(t),e)},Dr.xor=aa,Dr.xorBy=sa,Dr.xorWith=ua,Dr.zip=ca,Dr.zipObject=function(e,t){return ho(e||[],t||[],Zr)},Dr.zipObjectDeep=function(e,t){return ho(e||[],t||[],Xn)},Dr.zipWith=la,Dr.entries=Ds,Dr.entriesIn=Ls,Dr.extend=bs,Dr.extendWith=_s,au(Dr,Dr),Dr.add=mu,Dr.attempt=Ks,Dr.camelCase=Ms,Dr.capitalize=qs,Dr.ceil=gu,Dr.clamp=function(e,t,r){return r===o&&(r=t,t=o),r!==o&&(r=(r=vs(r))==r?r:0),t!==o&&(t=(t=vs(t))==t?t:0),on(vs(e),t,r)},Dr.clone=function(e){return an(e,4)},Dr.cloneDeep=function(e){return an(e,5)},Dr.cloneDeepWith=function(e,t){return an(e,5,t="function"==typeof t?t:o)},Dr.cloneWith=function(e,t){return an(e,4,t="function"==typeof t?t:o)},Dr.conformsTo=function(e,t){return null==t||sn(e,t,Rs(t))},Dr.deburr=Bs,Dr.defaultTo=function(e,t){return null==e||e!=e?t:e},Dr.divide=bu,Dr.endsWith=function(e,t,r){e=ms(e),t=ao(t);var n=e.length,i=r=r===o?n:on(ds(r),0,n);return(r-=t.length)>=0&&e.slice(r,i)==t},Dr.eq=Na,Dr.escape=function(e){return(e=ms(e))&&J.test(e)?e.replace(V,tr):e},Dr.escapeRegExp=function(e){return(e=ms(e))&&re.test(e)?e.replace(te,"\\$&"):e},Dr.every=function(e,t,r){var n=za(e)?kt:pn;return r&&mi(e,t,r)&&(t=o),n(e,ai(t,3))},Dr.find=va,Dr.findIndex=Bi,Dr.findKey=function(e,t){return Dt(e,ai(t,3),gn)},Dr.findLast=ya,Dr.findLastIndex=zi,Dr.findLastKey=function(e,t){return Dt(e,ai(t,3),bn)},Dr.floor=_u,Dr.forEach=ma,Dr.forEachRight=ga,Dr.forIn=function(e,t){return null==e?e:yn(e,ai(t,3),Cs)},Dr.forInRight=function(e,t){return null==e?e:mn(e,ai(t,3),Cs)},Dr.forOwn=function(e,t){return e&&gn(e,ai(t,3))},Dr.forOwnRight=function(e,t){return e&&bn(e,ai(t,3))},Dr.get=Ps,Dr.gt=Ma,Dr.gte=qa,Dr.has=function(e,t){return null!=e&&di(e,t,Pn)},Dr.hasIn=xs,Dr.head=Hi,Dr.identity=ru,Dr.includes=function(e,t,r,n){e=Ha(e)?e:Ns(e),r=r&&!n?ds(r):0;var o=e.length;return r<0&&(r=vr(o+r,0)),as(e)?r<=o&&e.indexOf(t,r)>-1:!!o&&Nt(e,t,r)>-1},Dr.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:ds(r);return o<0&&(o=vr(n+o,0)),Nt(e,t,o)},Dr.inRange=function(e,t,r){return t=ps(t),r===o?(r=t,t=0):r=ps(r),function(e,t,r){return e>=yr(t,r)&&e<vr(t,r)}(e=vs(e),t,r)},Dr.invoke=Es,Dr.isArguments=Ba,Dr.isArray=za,Dr.isArrayBuffer=Wa,Dr.isArrayLike=Ha,Dr.isArrayLikeObject=Va,Dr.isBoolean=function(e){return!0===e||!1===e||es(e)&&jn(e)==m},Dr.isBuffer=Ga,Dr.isDate=Ja,Dr.isElement=function(e){return es(e)&&1===e.nodeType&&!ns(e)},Dr.isEmpty=function(e){if(null==e)return!0;if(Ha(e)&&(za(e)||"string"==typeof e||"function"==typeof e.splice||Ga(e)||us(e)||Ba(e)))return!e.length;var t=pi(e);if(t==O||t==k)return!e.size;if(wi(e))return!In(e).length;for(var r in e)if(Se.call(e,r))return!1;return!0},Dr.isEqual=function(e,t){return Rn(e,t)},Dr.isEqualWith=function(e,t,r){var n=(r="function"==typeof r?r:o)?r(e,t):o;return n===o?Rn(e,t,o,r):!!n},Dr.isError=Ya,Dr.isFinite=function(e){return"number"==typeof e&&$t(e)},Dr.isFunction=Xa,Dr.isInteger=Ka,Dr.isLength=Za,Dr.isMap=ts,Dr.isMatch=function(e,t){return e===t||Cn(e,t,ui(t))},Dr.isMatchWith=function(e,t,r){return r="function"==typeof r?r:o,Cn(e,t,ui(t),r)},Dr.isNaN=function(e){return rs(e)&&e!=+e},Dr.isNative=function(e){if(_i(e))throw new we("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Tn(e)},Dr.isNil=function(e){return null==e},Dr.isNull=function(e){return null===e},Dr.isNumber=rs,Dr.isObject=Qa,Dr.isObjectLike=es,Dr.isPlainObject=ns,Dr.isRegExp=os,Dr.isSafeInteger=function(e){return Ka(e)&&e>=-9007199254740991&&e<=f},Dr.isSet=is,Dr.isString=as,Dr.isSymbol=ss,Dr.isTypedArray=us,Dr.isUndefined=function(e){return e===o},Dr.isWeakMap=function(e){return es(e)&&pi(e)==R},Dr.isWeakSet=function(e){return es(e)&&"[object WeakSet]"==jn(e)},Dr.join=function(e,t){return null==e?"":Wt.call(e,t)},Dr.kebabCase=zs,Dr.last=Yi,Dr.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=n;return r!==o&&(i=(i=ds(r))<0?vr(n+i,0):yr(i,n-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,i):Lt(e,qt,i,!0)},Dr.lowerCase=Ws,Dr.lowerFirst=Hs,Dr.lt=cs,Dr.lte=ls,Dr.max=function(e){return e&&e.length?dn(e,ru,An):o},Dr.maxBy=function(e,t){return e&&e.length?dn(e,ai(t,2),An):o},Dr.mean=function(e){return Bt(e,ru)},Dr.meanBy=function(e,t){return Bt(e,ai(t,2))},Dr.min=function(e){return e&&e.length?dn(e,ru,Fn):o},Dr.minBy=function(e,t){return e&&e.length?dn(e,ai(t,2),Fn):o},Dr.stubArray=hu,Dr.stubFalse=vu,Dr.stubObject=function(){return{}},Dr.stubString=function(){return""},Dr.stubTrue=function(){return!0},Dr.multiply=wu,Dr.nth=function(e,t){return e&&e.length?Mn(e,ds(t)):o},Dr.noConflict=function(){return ft._===this&&(ft._=Le),this},Dr.noop=su,Dr.now=Pa,Dr.pad=function(e,t,r){e=ms(e);var n=(t=ds(t))?cr(e):0;if(!t||n>=t)return e;var o=(t-n)/2;return Bo(dt(o),r)+e+Bo(pt(o),r)},Dr.padEnd=function(e,t,r){e=ms(e);var n=(t=ds(t))?cr(e):0;return t&&n<t?e+Bo(t-n,r):e},Dr.padStart=function(e,t,r){e=ms(e);var n=(t=ds(t))?cr(e):0;return t&&n<t?Bo(t-n,r)+e:e},Dr.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),gr(ms(e).replace(ne,""),t||0)},Dr.random=function(e,t,r){if(r&&"boolean"!=typeof r&&mi(e,t,r)&&(t=r=o),r===o&&("boolean"==typeof t?(r=t,t=o):"boolean"==typeof e&&(r=e,e=o)),e===o&&t===o?(e=0,t=1):(e=ps(e),t===o?(t=e,e=0):t=ps(t)),e>t){var n=e;e=t,t=n}if(r||e%1||t%1){var i=br();return yr(e+i*(t-e+st("1e-"+((i+"").length-1))),t)}return Hn(e,t)},Dr.reduce=function(e,t,r){var n=za(e)?St:Ht,o=arguments.length<3;return n(e,ai(t,4),r,o,ln)},Dr.reduceRight=function(e,t,r){var n=za(e)?It:Ht,o=arguments.length<3;return n(e,ai(t,4),r,o,fn)},Dr.repeat=function(e,t,r){return t=(r?mi(e,t,r):t===o)?1:ds(t),Vn(ms(e),t)},Dr.replace=function(){var e=arguments,t=ms(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Dr.result=function(e,t,r){var n=-1,i=(t=mo(t,e)).length;for(i||(i=1,e=o);++n<i;){var a=null==e?o:e[$i(t[n])];a===o&&(n=i,a=r),e=Xa(a)?a.call(e):a}return e},Dr.round=Ou,Dr.runInContext=e,Dr.sample=function(e){return(za(e)?Jr:Jn)(e)},Dr.size=function(e){if(null==e)return 0;if(Ha(e))return as(e)?cr(e):e.length;var t=pi(e);return t==O||t==k?e.size:In(e).length},Dr.snakeCase=Vs,Dr.some=function(e,t,r){var n=za(e)?Ft:to;return r&&mi(e,t,r)&&(t=o),n(e,ai(t,3))},Dr.sortedIndex=function(e,t){return ro(e,t)},Dr.sortedIndexBy=function(e,t,r){return no(e,t,ai(r,2))},Dr.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=ro(e,t);if(n<r&&Na(e[n],t))return n}return-1},Dr.sortedLastIndex=function(e,t){return ro(e,t,!0)},Dr.sortedLastIndexBy=function(e,t,r){return no(e,t,ai(r,2),!0)},Dr.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var r=ro(e,t,!0)-1;if(Na(e[r],t))return r}return-1},Dr.startCase=Gs,Dr.startsWith=function(e,t,r){return e=ms(e),r=null==r?0:on(ds(r),0,e.length),t=ao(t),e.slice(r,r+t.length)==t},Dr.subtract=ju,Dr.sum=function(e){return e&&e.length?Vt(e,ru):0},Dr.sumBy=function(e,t){return e&&e.length?Vt(e,ai(t,2)):0},Dr.template=function(e,t,r){var n=Dr.templateSettings;r&&mi(e,t,r)&&(t=o),e=ms(e),t=_s({},t,n,Xo);var i,a,s=_s({},t.imports,n.imports,Xo),u=Rs(s),c=Xt(s,u),l=0,f=t.interpolate||be,p="__p += '",d=Pe((t.escape||be).source+"|"+f.source+"|"+(f===K?fe:be).source+"|"+(t.evaluate||be).source+"|$","g"),h="//# sourceURL="+(Se.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++nt+"]")+"\n";e.replace(d,(function(t,r,n,o,s,u){return n||(n=o),p+=e.slice(l,u).replace(_e,rr),r&&(i=!0,p+="' +\n__e("+r+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),n&&(p+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),l=u+t.length,t})),p+="';\n";var v=Se.call(t,"variable")&&t.variable;if(v){if(ce.test(v))throw new we("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(B,""):p).replace(z,"$1").replace(W,"$1;"),p="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var y=Ks((function(){return Oe(u,h+"return "+p).apply(o,c)}));if(y.source=p,Ya(y))throw y;return y},Dr.times=function(e,t){if((e=ds(e))<1||e>f)return[];var r=d,n=yr(e,d);t=ai(t),e-=d;for(var o=Gt(n,t);++r<e;)t(r);return o},Dr.toFinite=ps,Dr.toInteger=ds,Dr.toLength=hs,Dr.toLower=function(e){return ms(e).toLowerCase()},Dr.toNumber=vs,Dr.toSafeInteger=function(e){return e?on(ds(e),-9007199254740991,f):0===e?e:0},Dr.toString=ms,Dr.toUpper=function(e){return ms(e).toUpperCase()},Dr.trim=function(e,t,r){if((e=ms(e))&&(r||t===o))return Jt(e);if(!e||!(t=ao(t)))return e;var n=lr(e),i=lr(t);return bo(n,Zt(n,i),Qt(n,i)+1).join("")},Dr.trimEnd=function(e,t,r){if((e=ms(e))&&(r||t===o))return e.slice(0,fr(e)+1);if(!e||!(t=ao(t)))return e;var n=lr(e);return bo(n,0,Qt(n,lr(t))+1).join("")},Dr.trimStart=function(e,t,r){if((e=ms(e))&&(r||t===o))return e.replace(ne,"");if(!e||!(t=ao(t)))return e;var n=lr(e);return bo(n,Zt(n,lr(t))).join("")},Dr.truncate=function(e,t){var r=30,n="...";if(Qa(t)){var i="separator"in t?t.separator:i;r="length"in t?ds(t.length):r,n="omission"in t?ao(t.omission):n}var a=(e=ms(e)).length;if(nr(e)){var s=lr(e);a=s.length}if(r>=a)return e;var u=r-cr(n);if(u<1)return n;var c=s?bo(s,0,u).join(""):e.slice(0,u);if(i===o)return c+n;if(s&&(u+=c.length-u),os(i)){if(e.slice(u).search(i)){var l,f=c;for(i.global||(i=Pe(i.source,ms(pe.exec(i))+"g")),i.lastIndex=0;l=i.exec(f);)var p=l.index;c=c.slice(0,p===o?u:p)}}else if(e.indexOf(ao(i),u)!=u){var d=c.lastIndexOf(i);d>-1&&(c=c.slice(0,d))}return c+n},Dr.unescape=function(e){return(e=ms(e))&&G.test(e)?e.replace(H,pr):e},Dr.uniqueId=function(e){var t=++Ie;return ms(e)+t},Dr.upperCase=Js,Dr.upperFirst=Ys,Dr.each=ma,Dr.eachRight=ga,Dr.first=Hi,au(Dr,(yu={},gn(Dr,(function(e,t){Se.call(Dr.prototype,t)||(yu[t]=e)})),yu),{chain:!1}),Dr.VERSION="4.17.21",Pt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Dr[e].placeholder=Dr})),Pt(["drop","take"],(function(e,t){qr.prototype[e]=function(r){r=r===o?1:vr(ds(r),0);var n=this.__filtered__&&!t?new qr(this):this.clone();return n.__filtered__?n.__takeCount__=yr(r,n.__takeCount__):n.__views__.push({size:yr(r,d),type:e+(n.__dir__<0?"Right":"")}),n},qr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Pt(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;qr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ai(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),Pt(["head","last"],(function(e,t){var r="take"+(t?"Right":"");qr.prototype[e]=function(){return this[r](1).value()[0]}})),Pt(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");qr.prototype[e]=function(){return this.__filtered__?new qr(this):this[r](1)}})),qr.prototype.compact=function(){return this.filter(ru)},qr.prototype.find=function(e){return this.filter(e).head()},qr.prototype.findLast=function(e){return this.reverse().find(e)},qr.prototype.invokeMap=Gn((function(e,t){return"function"==typeof e?new qr(this):this.map((function(r){return Un(r,e,t)}))})),qr.prototype.reject=function(e){return this.filter(Ia(ai(e)))},qr.prototype.slice=function(e,t){e=ds(e);var r=this;return r.__filtered__&&(e>0||t<0)?new qr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==o&&(r=(t=ds(t))<0?r.dropRight(-t):r.take(t-e)),r)},qr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},qr.prototype.toArray=function(){return this.take(d)},gn(qr.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),i=Dr[n?"take"+("last"==t?"Right":""):t],a=n||/^find/.test(t);i&&(Dr.prototype[t]=function(){var t=this.__wrapped__,s=n?[1]:arguments,u=t instanceof qr,c=s[0],l=u||za(t),f=function(e){var t=i.apply(Dr,Tt([e],s));return n&&p?t[0]:t};l&&r&&"function"==typeof c&&1!=c.length&&(u=l=!1);var p=this.__chain__,d=!!this.__actions__.length,h=a&&!p,v=u&&!d;if(!a&&l){t=v?t:new qr(this);var y=e.apply(t,s);return y.__actions__.push({func:pa,args:[f],thisArg:o}),new Mr(y,p)}return h&&v?e.apply(this,s):(y=this.thru(f),h?n?y.value()[0]:y.value():y)})})),Pt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ue[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Dr.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var o=this.value();return t.apply(za(o)?o:[],e)}return this[r]((function(r){return t.apply(za(r)?r:[],e)}))}})),gn(qr.prototype,(function(e,t){var r=Dr[t];if(r){var n=r.name+"";Se.call(Ur,n)||(Ur[n]=[]),Ur[n].push({name:t,func:r})}})),Ur[Lo(o,2).name]=[{name:"wrapper",func:o}],qr.prototype.clone=function(){var e=new qr(this.__wrapped__);return e.__actions__=ko(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ko(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ko(this.__views__),e},qr.prototype.reverse=function(){if(this.__filtered__){var e=new qr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},qr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=za(e),n=t<0,o=r?e.length:0,i=function(e,t,r){for(var n=-1,o=r.length;++n<o;){var i=r[n],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=yr(t,e+a);break;case"takeRight":e=vr(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,u=s-a,c=n?s:a-1,l=this.__iteratees__,f=l.length,p=0,d=yr(u,this.__takeCount__);if(!r||!n&&o==u&&d==u)return fo(e,this.__actions__);var h=[];e:for(;u--&&p<d;){for(var v=-1,y=e[c+=t];++v<f;){var m=l[v],g=m.iteratee,b=m.type,_=g(y);if(2==b)y=_;else if(!_){if(1==b)continue e;break e}}h[p++]=y}return h},Dr.prototype.at=da,Dr.prototype.chain=function(){return fa(this)},Dr.prototype.commit=function(){return new Mr(this.value(),this.__chain__)},Dr.prototype.next=function(){this.__values__===o&&(this.__values__=fs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Dr.prototype.plant=function(e){for(var t,r=this;r instanceof Nr;){var n=Li(r);n.__index__=0,n.__values__=o,t?i.__wrapped__=n:t=n;var i=n;r=r.__wrapped__}return i.__wrapped__=e,t},Dr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof qr){var t=e;return this.__actions__.length&&(t=new qr(this)),(t=t.reverse()).__actions__.push({func:pa,args:[Qi],thisArg:o}),new Mr(t,this.__chain__)}return this.thru(Qi)},Dr.prototype.toJSON=Dr.prototype.valueOf=Dr.prototype.value=function(){return fo(this.__wrapped__,this.__actions__)},Dr.prototype.first=Dr.prototype.head,Ye&&(Dr.prototype[Ye]=function(){return this}),Dr}();ft._=dr,(n=function(){return dr}.call(t,r,t,e))===o||(e.exports=n)}.call(this)},13222:function(e,t,r){var n=r(77556);e.exports=function(e){return null==e?"":n(e)}},44826:function(e,t,r){var n=r(77556),o=r(54128),i=r(28754),a=r(23875),s=r(28380),u=r(63912),c=r(13222);e.exports=function(e,t,r){if((e=c(e))&&(r||void 0===t))return o(e);if(!e||!(t=n(t)))return e;var l=u(e),f=u(t),p=s(l,f),d=a(l,f)+1;return i(l,p,d).join("")}},15993:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Formio=t.FormioPathType=void 0;const o=n(r(42681)),i=r(60554),a=r(2543),s=r(61785),u=r(17112),c=n(r(30228)),l=n(r(81018)),{fetch:f,Headers:p}=(0,o.default)(),d=n(r(23370));var h;!function(e){e.Subdirectories="Subdirectories",e.Subdomains="Subdomains"}(h||(t.FormioPathType=h={}));class v{constructor(e,t={}){if(this.path=e,this.options=t,this.base="",this.projectsUrl="",this.projectUrl="",this.projectId="",this.roleUrl="",this.rolesUrl="",this.roleId="",this.formUrl="",this.formsUrl="",this.formId="",this.submissionsUrl="",this.submissionUrl="",this.submissionId="",this.actionsUrl="",this.actionId="",this.actionUrl="",this.vsUrl="",this.vId="",this.vUrl="",this.query="",this.noProject=!1,!(this instanceof v))return new v(e);if(t.useSessionToken&&v.useSessionToken(t),t.hasOwnProperty("base")&&t.base)this.base=t.base;else if(v.baseUrl)this.base=v.baseUrl;else if(window&&window.location){const e=window.location.href.match(/http[s]?:\/\/api./);this.base=e?e[0]:window.location.origin}if(!e)return this.projectUrl=v.projectUrl||`${this.base}/project`,this.projectsUrl=`${this.base}/project`,this.projectId="",void(this.query="");t.hasOwnProperty("project")&&t.project&&(this.projectUrl=t.project);const r=this.projectUrl||v.projectUrl,n=/(^|\/)(project)($|\/[^/]+)/,o=-1!==e.search(n);r&&this.base===r&&!o&&(this.noProject=!0,this.projectUrl=this.base),0!==e.indexOf("http")&&0!==e.indexOf("//")&&(e=this.base+e);const i=this.getUrlParts(e);let a="",s=[];if(i){a=i[1]+i[2];const t=(e=i.length>3?i[3]:"").split("?");t.length>1&&(e=t[0],this.query=`?${t[1]}`)}const u=(t,r)=>{this[`${t}sUrl`]=`${r}/${t}`;const n=new RegExp(`/${t}/([^/]+)`);return e&&-1!==e.search(n)&&(s=e.match(n),this[`${t}Url`]=s?r+s[0]:"",this[`${t}Id`]=s.length>1?s[1]:"",r+=s[0]),r},c=(e,t,r)=>{for(const n in e)if(e.hasOwnProperty(n)){const o=e[n];if(Array.isArray(o))c(o,t,!0);else{const e=u(o,t);t=r?t:e}}};if(!this.projectUrl||this.projectUrl===this.base)if(this.projectUrl||o||"Subdirectories"!==v.pathType)this.projectUrl=a;else{const e=`^${a.replace(/\//g,"\\/")}.[^/]+`,t=r.match(new RegExp(e));this.projectUrl=t?t[0]:a}let l=!1;if(v.pathType&&(l="Subdomains"!==v.pathType),!this.noProject){if(o)c(["project"],a),e=e.replace(n,"");else if(a===this.base){if(i&&i.length>3&&e.split("/").length>1){const t=e.match(/.json/),r=e.split("/");if(t)this.projectUrl=a;else{r.shift();const t=r.shift();t&&(this.projectId=t,e=`/${r.join("/")}`,this.projectUrl=`${a}/${this.projectId}`)}}}else i&&i.length>2&&(i[2].split(".").length>2||a.includes("localhost"))&&!l&&(this.projectUrl=a,this.projectId=i[2].split(".")[0]);this.projectsUrl=this.projectsUrl||`${this.base}/project`}if(c(["role"],this.projectUrl),/(^|\/)(form)($|\/)/.test(e))c(["form",["submission","action","v"]],this.projectUrl);else{const t=new RegExp("/(submission|action|v)($|/.*)"),r=e.match(t);r&&r.length>1&&(this.pathType=r[1]),e=(e=e.replace(t,"")).replace(/\/$/,""),this.formsUrl=`${this.projectUrl}/form`,this.formUrl=e?this.projectUrl+e:"",this.formId=e.replace(/^\/+|\/+$/g,"");const n=["submission","action","v"];for(const t in n)if(n.hasOwnProperty(t)){const o=n[t];this[`${o}sUrl`]=`${this.projectUrl+e}/${o}`,this.pathType===o&&r&&r.length>2&&r[2]&&(this[`${o}Id`]=r[2].replace(/^\/+|\/+$/g,""),this[`${o}Url`]=this.projectUrl+e+r[0])}}v.projectUrlSet||(v.projectUrl=this.projectUrl)}delete(e,t){const r=`${e}Url`;return this[`${e}Id`]?(v.cache={},this.makeRequest(e,this[r],"delete",null,t)):Promise.reject("Nothing to delete")}index(e,t,r){const n=`${e}Url`;return(t=t||"")&&(0,a.isObject)(t)&&(t=`?${v.serialize(t.params)}`),this.makeRequest(e,this[n]+t,"get",null,r)}save(e,t,r){const n=`${e}Id`,o=`${e}Url`,i=this[n]||t._id?"put":"post";let a=this[n]?this[o]:this[`${e}sUrl`];return this[n]||!t._id||"put"!==i||a.includes(t._id)||(a+=`/${t._id}`),v.cache={},this.makeRequest(e,a+this.query,i,t,r)}load(e,t,r){const n=`${e}Id`,o=`${e}Url`;if(t&&(0,a.isObject)(t)&&(t=v.serialize(t.params)),t=t?this.query?`${this.query}&${t}`:`?${t}`:this.query,!this[n])return Promise.reject(`Missing ${n}`);let i=this[o]+t;return"form"!==e||isNaN(parseInt(this.vId))||(i+=-1===i.indexOf("?")?"?":"&",i+=`formRevision=${this.vId}`),this.makeRequest(e,i,"get",null,r)}makeRequest(e,t,r,n,o){return v.makeRequest(this,e,t,r,n,o)}loadProject(e,t){return this.load("project",e,t)}saveProject(e,t){return this.save("project",e,t)}deleteProject(e){return this.delete("project",e)}static loadProjects(e,t){return e=e||"",(0,a.isObject)(e)&&(e=`?${v.serialize(e.params)}`),v.makeStaticRequest(`${v.baseUrl}/project${e}`,"GET",null,t)}loadRole(e){return this.load("role",null,e)}saveRole(e,t){return this.save("role",e,t)}deleteRole(e){return this.delete("role",e)}loadRoles(e){return this.index("roles",null,e)}loadForm(e,t){return this.load("form",e,t).then((r=>!r.revisions||isNaN(parseInt(this.vId))||"current"===r.revisions&&this.submissionId||r._vid==this.vId||r.revisionId===this.vId?r:(e&&(0,a.isObject)(e)&&(e=v.serialize(e.params)),e=e?this.query?`${this.query}&${e}`:`?${e}`:this.query,this.makeRequest("form",this.vUrl+e,"get",null,t).then((e=>(r._vid=e._vid,r.components=e.components,r.settings=e.settings,r.revisionId=e.revisionId,Object.assign({},r)))).catch((()=>Object.assign({},r))))))}saveForm(e,t){return this.save("form",e,t)}deleteForm(e){return this.delete("form",e)}loadForms(e,t){return this.index("forms",e,t)}loadSubmission(e,t){return this.load("submission",e,t).then((e=>(this.vId=e._frid||e._fvid,this.vUrl=`${this.formUrl}/v/${this.vId}`,e)))}saveSubmission(e,t){return isNaN(parseInt(this.vId))||e._fvid||(e._fvid=this.vId),this.save("submission",e,t)}deleteSubmission(e){return this.delete("submission",e)}loadSubmissions(e,t){return this.index("submissions",e,t)}loadAction(e,t){return this.load("action",e,t)}saveAction(e,t){return this.save("action",e,t)}deleteAction(e){return this.delete("action",e)}loadActions(e,t){return this.index("actions",e,t)}availableActions(){return this.makeRequest("availableActions",`${this.formUrl}/actions`)}actionInfo(e){return this.makeRequest("actionInfo",`${this.formUrl}/actions/${e}`)}isObjectId(e){return new RegExp("^[0-9a-fA-F]{24}$").test(e)}getProjectId(){return this.projectId?this.isObjectId(this.projectId)?Promise.resolve(this.projectId):this.loadProject().then((e=>e._id)):Promise.resolve("")}getFormId(){return this.formId?this.isObjectId(this.formId)?Promise.resolve(this.formId):this.loadForm().then((e=>e._id)):Promise.resolve("")}currentUser(e){return v.currentUser(this,e)}accessInfo(){return v.accessInfo(this)}oauthLogoutURI(e,t){return v.oauthLogoutURI(e,Object.assign({formio:this},this.options,t))}getToken(e){return v.getToken(Object.assign({formio:this},this.options,e))}setToken(e,t){return v.setToken(e,Object.assign({formio:this},this.options,t))}getTempToken(e,t,r){if(!v.getToken(r))return Promise.reject("You must be authenticated to generate a temporary auth token.");const n=v.authUrl||this.projectUrl;return this.makeRequest("tempToken",`${n}/token`,"GET",null,{ignoreCache:!0,header:new p({"x-expire":e,"x-allow":t})})}getDownloadUrl(e){if(!this.submissionId)return Promise.resolve("");if(!e)return this.loadForm().then((e=>e?this.getDownloadUrl(e):""));let t=`/project/${e.project}`;t+=`/form/${e._id}`,t+=`/submission/${this.submissionId}`;const r=e.submissionRevisions&&e.settings.changeLog?"/download/changelog":"/download";t+=r;let n=this.base+t;return new Promise(((e,r)=>{this.getTempToken(3600,`GET:${t}`).then((t=>{n+=`?token=${t.key}`,e(n)}),(()=>{e(n)})).catch(r)}))}userPermissions(e,t,r){return Promise.all([void 0!==t?Promise.resolve(t):this.loadForm(),void 0!==e?Promise.resolve(e):this.currentUser(),void 0===r&&this.submissionId?this.loadSubmission():Promise.resolve(r),this.accessInfo()]).then((e=>{const t=e.shift(),r=e.shift()||{_id:!1,roles:[]},n=e.shift(),o=e.shift(),i={create:"create",read:"read",update:"edit",delete:"delete"},u={user:r,form:t,access:o,create:!1,read:!1,edit:!1,delete:!1};for(const e in o.roles)if(o.roles.hasOwnProperty(e)){const t=o.roles[e];if(t.default&&!1===r._id)r.roles.push(t._id);else if(t.admin&&-1!==r.roles.indexOf(t._id))return u.create=!0,u.read=!0,u.delete=!0,u.edit=!0,u}if(t&&t.submissionAccess)for(let e=0;e<t.submissionAccess.length;e++){const o=t.submissionAccess[e],[s,c]=o.type.split("_");["create","read","update","delete"].includes(s)&&(0,a.intersection)(o.roles,r.roles).length&&(u[i[s]]="all"===c||!n||r._id===n.owner)}return n&&(0,s.eachComponent)(t.components,((e,t)=>{if(e&&e.defaultPermission){const o=(0,a.get)(n.data,t);(Array.isArray(o)?o:[o]).forEach((t=>{t&&t._id&&r.roles.indexOf(t._id)>-1&&("read"===e.defaultPermission&&(u[i.read]=!0),"create"===e.defaultPermission&&(u[i.create]=!0,u[i.read]=!0),"write"===e.defaultPermission&&(u[i.create]=!0,u[i.read]=!0,u[i.update]=!0),"admin"===e.defaultPermission&&(u[i.create]=!0,u[i.read]=!0,u[i.update]=!0,u[i.delete]=!0))}))}})),u}))}canSubmit(){return this.userPermissions().then((e=>!e.create&&v.getUser()?this.userPermissions(null).then((e=>!!e.create&&(v.setUser(null),!0))):e.create))}getUrlParts(e){return v.getUrlParts(e,this)}static getUrlParts(e,t){const r=t&&t.base?t.base:v.baseUrl;let n="^(http[s]?:\\/\\/)";return r&&0===e.indexOf(r)?n+=`(${r.replace(/^http[s]?:\/\//,"")})`:n+="([^/]+)",n+="($|\\/.*)",e.match(new RegExp(n))}static serialize(e,t){const r=[];for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.push(`${encodeURIComponent(o)}=${encodeURIComponent((n=e[o],t?t(n):n))}`);var n;return r.join("&")}static getRequestArgs(e,t,r,n,o,i){n=(n||"GET").toUpperCase(),i&&(0,a.isObject)(i)||(i={});const s={url:r,method:n,data:o||null,opts:i};return t&&(s.type=t),e&&(s.formio=e),s}static makeStaticRequest(e,t,r,n){const o=v.getRequestArgs(null,"",e,t,r,n),i=d.default.pluginWait("preRequest",o).then((()=>d.default.pluginGet("staticRequest",o).then((e=>(0,a.isNil)(e)?v.request(o.url,o.method,o.data,o.opts.header,o.opts):e))));return d.default.pluginAlter("wrapStaticRequestPromise",i,o)}static makeRequest(e,t,r,n,o,i){if(!e)return v.makeStaticRequest(r,n,o,i);const s=v.getRequestArgs(e,t,r,n,o,i);s.opts=s.opts||{},s.opts.formio=e,s.opts.headers||(s.opts.headers={}),s.opts.headers=(0,a.defaults)(s.opts.headers,{Accept:"application/json","Content-type":"application/json"});const u=d.default.pluginWait("preRequest",s).then((()=>d.default.pluginGet("request",s).then((e=>(0,a.isNil)(e)?v.request(s.url,s.method,s.data,s.opts.header,s.opts):e))));return d.default.pluginAlter("wrapRequestPromise",u,s)}static request(e,t,r,n,o){if(!e)return Promise.reject("No url provided");t=(t||"GET").toUpperCase(),(0,a.isBoolean)(o)&&(o={ignoreCache:o}),o&&(0,a.isObject)(o)||(o={});const i=btoa(encodeURI(e));if(!o.ignoreCache&&"GET"===t&&v.cache.hasOwnProperty(i))return Promise.resolve(v.cloneResponse(v.cache[i]));"/"===e[0]&&(e=v.baseUrl+e);const s=n||new p(o.headers||{Accept:"application/json","Content-type":"application/json"}),u=v.getToken(o);u&&!o.noToken&&s.set("x-jwt-token",u);const c={};s.forEach((function(e,t){c[t]=e}));let l={method:t,headers:c,mode:"cors"};r&&(l.body=JSON.stringify(r)),l=d.default.pluginAlter("requestOptions",l,e),(l.namespace||v.namespace)&&(o.namespace=l.namespace||v.namespace);const f=l.headers["x-jwt-token"],h=d.default.pluginAlter("wrapFetchRequestPromise",v.fetch(e,l),{url:e,method:t,data:r,opts:o}).then((n=>{if(!(n=d.default.pluginAlter("requestResponse",n,v,r)).ok){if(440===n.status)v.setToken(null,o),v.events.emit("formio.sessionExpired",n.body);else if(401===n.status)v.events.emit("formio.unauthorized",n.body);else if(416===n.status)v.events.emit("formio.rangeIsNotSatisfiable",n.body);else if(504===n.status)return Promise.reject(new Error("Network request failed"));return(n.headers.get("content-type").includes("application/json")?n.json():n.text()).then((e=>Promise.reject(e)))}const i=n.headers.get("x-jwt-token");let s=!1;return"GET"!==t||f||!i||o.external||e.includes("token=")||e.includes("x-jwt-token=")||(console.warn("Token was introduced in request."),s=!0),n.status>=200&&n.status<300&&i&&""!==i&&!s&&v.setToken(i,Object.assign(Object.assign({},o),{fromCurrent:o.fromCurrent||!!f})),204===n.status?{}:(n.headers.get("content-type").includes("application/json")?n.json():n.text()).then((e=>{let t=n.headers.get("content-range");if(t&&(0,a.isObject)(e)){if(t=t.split("/"),"*"!==t[0]){const r=t[0].split("-");e.skip=Number(r[0]),e.limit=r[1]-r[0]+1}e.serverCount="*"===t[1]?t[1]:Number(t[1])}if(!o.getHeaders)return e;const r={};return n.headers.forEach(((e,t)=>{r[t]=e})),{result:e,headers:r}}))})).then((e=>o.getHeaders?e:("GET"===t&&(v.cache[i]=e),v.cloneResponse(e)))).catch((r=>("Bad Token"===r&&!1!==o.noToken&&(v.setToken(null,o),v.events.emit("formio.badToken",r)),r.message&&((r=new Error(`Could not connect to API server (${r.message}): ${e}`)).networkError=!0),"GET"===t&&delete v.cache[i],Promise.reject(r))));return h}static get token(){return v.tokens.formioToken||""}static set token(e){v.tokens.formioToken=e||""}static useSessionToken(e){if("undefined"==typeof localStorage)return;let t=e;"object"==typeof e&&(e=e.namespace);const r=`${t||v.namespace||"formio"}Token`,n=localStorage.getItem(r);n&&(localStorage.removeItem(r),sessionStorage.setItem(r,n));const o=`${t||v.namespace||"formio"}User`,i=localStorage.getItem(o);i&&(localStorage.removeItem(o),sessionStorage.setItem(o,i)),localStorage.setItem("useSessionToken","true")}static setToken(e="",t={}){e=e||"";const r=`${(t="string"==typeof t?{namespace:t}:t||{}).namespace||v.namespace||"formio"}Token`;v.tokens||(v.tokens={});const n=localStorage.getItem("useSessionToken")?sessionStorage:localStorage;if(!e){t.fromUser||(t.fromToken=!0,v.setUser(null,t));try{n.removeItem(r)}catch(e){l.default.erase(r,{path:"/"})}return v.tokens[r]=e,Promise.resolve(null)}if(v.tokens[r]!==e){v.tokens[r]=e;try{n.setItem(r,e)}catch(t){l.default.set(r,e,{path:"/"})}}return v.currentUser(t.formio,t)}static getToken(e){const t=`${(e="string"==typeof e?{namespace:e}:e||{}).namespace||v.namespace||"formio"}Token`,r=e.decode?`${t}Decoded`:t;if(v.tokens||(v.tokens={}),v.tokens[r])return v.tokens[r];try{const n=localStorage.getItem("useSessionToken")?sessionStorage.getItem(t):localStorage.getItem(t);return v.tokens[t]=n||"",e.decode?(v.tokens[r]=v.tokens[t]?(0,u.jwtDecode)(v.tokens[t]):{},v.tokens[r]):v.tokens[t]}catch(e){return v.tokens[t]=l.default.get(t),""}}static setUser(e,t={}){const r=`${t.namespace||v.namespace||"formio"}User`,n=localStorage.getItem("useSessionToken")?sessionStorage:localStorage;if(!e){t.fromToken||(t.fromUser=!0,v.setToken(null,t)),v.events.emit("formio.user",null);try{return n.removeItem(r)}catch(e){return l.default.erase(r,{path:"/"})}}try{n.setItem(r,JSON.stringify(e))}catch(t){l.default.set(r,JSON.stringify(e),{path:"/"})}v.events.emit("formio.user",e)}static getUser(e){const t=`${(e=e||{}).namespace||v.namespace||"formio"}User`;try{return JSON.parse((localStorage.getItem("useSessionToken")?sessionStorage:localStorage).getItem(t)||"")}catch(e){return JSON.parse(l.default.get(t))}}static setBaseUrl(e){v.baseUrl=e,v.projectUrlSet||(v.projectUrl=e)}static getBaseUrl(){return v.baseUrl}static setApiUrl(e){return v.setBaseUrl(e)}static getApiUrl(){return v.getBaseUrl()}static setAppUrl(e){console.warn("Formio.setAppUrl() is deprecated. Use Formio.setProjectUrl instead."),v.projectUrl=e,v.projectUrlSet=!0}static setProjectUrl(e){v.projectUrl=e,v.projectUrlSet=!0}static setAuthUrl(e){v.authUrl=e}static getAppUrl(){return console.warn("Formio.getAppUrl() is deprecated. Use Formio.getProjectUrl instead."),v.projectUrl}static getProjectUrl(){return v.projectUrl}static clearCache(){v.cache={}}static accessInfo(e){const t=e?e.projectUrl:v.projectUrl;return v.makeRequest(e,"accessInfo",`${t}/access`)}static projectRoles(e){const t=e?e.projectUrl:v.projectUrl;return v.makeRequest(e,"projectRoles",`${t}/role`)}static currentUser(e,t={}){let r=v.authUrl;if(r||(r=e?e.projectUrl:v.projectUrl||v.baseUrl),r+="/current",!t.ignoreCache||t.fromCurrent){const e=v.getUser(t);if(e)return d.default.pluginAlter("wrapStaticRequestPromise",Promise.resolve(e),{url:r,method:"GET",options:t})}const n=v.getToken(t);return t&&t.external||n?(t.fromCurrent=!0,v.makeRequest(e,"currentUser",r,"GET",null,t).then((e=>(v.setUser(e,t),e)))):d.default.pluginAlter("wrapStaticRequestPromise",Promise.resolve(null),{url:r,method:"GET",options:t})}static logout(e,t={}){t.formio=e;const r=v.authUrl?v.authUrl:e?e.projectUrl:v.baseUrl,n=()=>{v.setToken(null,t),v.setUser(null,t),v.clearCache(),localStorage.removeItem("useSessionToken")};return v.makeRequest(e,"logout",`${r}/logout`).then((function(e){return n(),e.shouldRedirect&&e.url&&(window.location.href=e.url),e})).catch((function(e){throw n(),e}))}static pageQuery(){const e={paths:[]},t=location.hash.substr(1).replace(/\?/g,"&").split("&");let r=[];return location.search.substr(1).split("&").forEach((function(t){r=t.split("="),r.length>1&&(e[r[0]]=r[1]&&decodeURIComponent(r[1]))})),t.forEach((function(t){r=t.split("="),r.length>1?e[r[0]]=r[1]&&decodeURIComponent(r[1]):0===t.indexOf("/")&&(e.paths=t.substr(1).split("/"))})),e}static oAuthCurrentUser(e,t){return v.currentUser(e,{external:!0,headers:{Authorization:`Bearer ${t}`}})}static oauthLogoutURI(e,t){const r=`${(t="string"==typeof t?{namespace:t}:t||{}).namespace||v.namespace||"formio"}LogoutAuthUrl`;return v.tokens[r],localStorage.setItem(r,e),v.tokens[r]}static samlInit(e={}){const t=v.pageQuery();if(t.saml){v.setUser(null);const e=v.setToken(t.saml);let r=window.location.toString();return r=r.substring(0,r.indexOf("?")),window.location.hash&&(r+=window.location.hash),window.history.replaceState({},document.title,r),e}e.relay||(e.relay=window.location.href);const r=v.authUrl||v.projectUrl;return window.location.href=`${r}/saml/sso?relay=${encodeURI(e.relay)}`,!1}static oktaInit(e={}){if(void 0!==typeof OktaAuth&&(e.OktaAuth=OktaAuth),void 0===typeof e.OktaAuth){const e="Cannot find OktaAuth. Please include the Okta JavaScript SDK within your application. See https://developer.okta.com/code/javascript/okta_auth_sdk for an example.";return console.warn(e),Promise.reject(e)}return new Promise(((t,r)=>{const n=e.OktaAuth;delete e.OktaAuth;const o=new n(e);o.tokenManager.get("accessToken").then((n=>{n?t(v.oAuthCurrentUser(e.formio,n.accessToken)):location.hash?o.token.parseFromUrl().then((r=>{o.tokenManager.add("accessToken",r),t(v.oAuthCurrentUser(e.formio,r.accessToken))})).catch((e=>{console.warn(e),r(e)})):(o.token.getWithRedirect({responseType:"token",scopes:e.scopes}),t(!1))})).catch((e=>{r(e)}))}))}static ssoInit(e,t={}){switch(e){case"saml":return v.samlInit(t);case"okta":return v.oktaInit(t);default:return console.warn("Unknown SSO type"),Promise.reject("Unknown SSO type")}}static requireLibrary(e,t,r,n=!1,o){if(!v.libraries.hasOwnProperty(e)){v.libraries[e]={},v.libraries[e].ready=new Promise(((t,r)=>{v.libraries[e].resolve=t,v.libraries[e].reject=r}));const i=`${e}Callback`;n||window[i]||(window[i]=()=>v.libraries[e].resolve());const s=(0,a.get)(window,t);if(s)v.libraries[e].resolve(s);else if((r=Array.isArray(r)?r:[r]).forEach((t=>{let r={},n="";switch("string"==typeof t&&(t={type:"script",src:t}),t.type){case"script":n="script",r={src:t.src,type:"text/javascript",defer:!0,async:!0,referrerpolicy:"origin"};break;case"styles":n="link",r={href:t.src,rel:"stylesheet"}}const i=document.createElement(n);if(i.setAttribute)for(const e in r)i.setAttribute(e,r[e]);o&&i.addEventListener("load",(()=>{v.libraries[e].loaded=!0,o(v.libraries[e].ready)}));const{head:a}=document;a&&a.appendChild(i)})),n){const r=setInterval((()=>{const n=(0,a.get)(window,t);n&&(clearInterval(r),v.libraries[e].resolve(n))}),200)}}const i=v.libraries[e];return o&&i.loaded?o(i.ready):i.ready}static libraryReady(e){return v.libraries.hasOwnProperty(e)&&v.libraries[e].ready?v.libraries[e].ready:Promise.reject(`${e} library was not required.`)}static cloneResponse(e){const t=(0,i.fastCloneDeep)(e);return Array.isArray(e)&&(t.skip=e.skip,t.limit=e.limit,t.serverCount=e.serverCount),t}static setPathType(e){"string"==typeof e&&(v.pathType=e)}static getPathType(){return v.pathType}}t.Formio=v,v.baseUrl="https://api.form.io",v.projectUrl="",v.authUrl="",v.projectUrlSet=!1,v.cache={},v.namespace="",v.events=new c.default,v.libraries={},v.fetch=f,v.Headers=p,v.tokens={},v.version="---VERSION---",v.options={},v.plugins=d.default.plugins,v.deregisterPlugin=d.default.deregisterPlugin,v.registerPlugin=d.default.registerPlugin,v.getPlugin=d.default.getPlugin,v.pluginWait=d.default.pluginWait,v.pluginGet=d.default.pluginGet,v.pluginAlter=d.default.pluginAlter,d.default.Formio=v},22831:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return u.default}});var n=p(r(13518)),o=p(r(14948)),i=p(r(45073)),a=p(r(77186)),s=p(r(14808)),u=p(r(7775)),c=p(r(37037)),l=p(r(49910)),f=p(r(96792));function p(e){return e&&e.__esModule?e:{default:e}}},22311:function(e,t){"use strict";function r(e){return 14+(e+64>>>9<<4)+1}function n(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function o(e,t,r,o,i,a){return n((s=n(n(t,e),n(o,a)))<<(u=i)|s>>>32-u,r);var s,u}function i(e,t,r,n,i,a,s){return o(t&r|~t&n,e,t,i,a,s)}function a(e,t,r,n,i,a,s){return o(t&n|r&~n,e,t,i,a,s)}function s(e,t,r,n,i,a,s){return o(t^r^n,e,t,i,a,s)}function u(e,t,r,n,i,a,s){return o(r^(t|~n),e,t,i,a,s)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return function(e){const t=[],r=32*e.length,n="0123456789abcdef";for(let o=0;o<r;o+=8){const r=e[o>>5]>>>o%32&255,i=parseInt(n.charAt(r>>>4&15)+n.charAt(15&r),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[r(t)-1]=t;let o=1732584193,c=-271733879,l=-1732584194,f=271733878;for(let t=0;t<e.length;t+=16){const r=o,p=c,d=l,h=f;o=i(o,c,l,f,e[t],7,-680876936),f=i(f,o,c,l,e[t+1],12,-389564586),l=i(l,f,o,c,e[t+2],17,606105819),c=i(c,l,f,o,e[t+3],22,-1044525330),o=i(o,c,l,f,e[t+4],7,-176418897),f=i(f,o,c,l,e[t+5],12,1200080426),l=i(l,f,o,c,e[t+6],17,-1473231341),c=i(c,l,f,o,e[t+7],22,-45705983),o=i(o,c,l,f,e[t+8],7,1770035416),f=i(f,o,c,l,e[t+9],12,-1958414417),l=i(l,f,o,c,e[t+10],17,-42063),c=i(c,l,f,o,e[t+11],22,-1990404162),o=i(o,c,l,f,e[t+12],7,1804603682),f=i(f,o,c,l,e[t+13],12,-40341101),l=i(l,f,o,c,e[t+14],17,-1502002290),c=i(c,l,f,o,e[t+15],22,1236535329),o=a(o,c,l,f,e[t+1],5,-165796510),f=a(f,o,c,l,e[t+6],9,-1069501632),l=a(l,f,o,c,e[t+11],14,643717713),c=a(c,l,f,o,e[t],20,-373897302),o=a(o,c,l,f,e[t+5],5,-701558691),f=a(f,o,c,l,e[t+10],9,38016083),l=a(l,f,o,c,e[t+15],14,-660478335),c=a(c,l,f,o,e[t+4],20,-405537848),o=a(o,c,l,f,e[t+9],5,568446438),f=a(f,o,c,l,e[t+14],9,-1019803690),l=a(l,f,o,c,e[t+3],14,-187363961),c=a(c,l,f,o,e[t+8],20,1163531501),o=a(o,c,l,f,e[t+13],5,-1444681467),f=a(f,o,c,l,e[t+2],9,-51403784),l=a(l,f,o,c,e[t+7],14,1735328473),c=a(c,l,f,o,e[t+12],20,-1926607734),o=s(o,c,l,f,e[t+5],4,-378558),f=s(f,o,c,l,e[t+8],11,-2022574463),l=s(l,f,o,c,e[t+11],16,1839030562),c=s(c,l,f,o,e[t+14],23,-35309556),o=s(o,c,l,f,e[t+1],4,-1530992060),f=s(f,o,c,l,e[t+4],11,1272893353),l=s(l,f,o,c,e[t+7],16,-155497632),c=s(c,l,f,o,e[t+10],23,-1094730640),o=s(o,c,l,f,e[t+13],4,681279174),f=s(f,o,c,l,e[t],11,-358537222),l=s(l,f,o,c,e[t+3],16,-722521979),c=s(c,l,f,o,e[t+6],23,76029189),o=s(o,c,l,f,e[t+9],4,-640364487),f=s(f,o,c,l,e[t+12],11,-421815835),l=s(l,f,o,c,e[t+15],16,530742520),c=s(c,l,f,o,e[t+2],23,-995338651),o=u(o,c,l,f,e[t],6,-198630844),f=u(f,o,c,l,e[t+7],10,1126891415),l=u(l,f,o,c,e[t+14],15,-1416354905),c=u(c,l,f,o,e[t+5],21,-57434055),o=u(o,c,l,f,e[t+12],6,1700485571),f=u(f,o,c,l,e[t+3],10,-1894986606),l=u(l,f,o,c,e[t+10],15,-1051523),c=u(c,l,f,o,e[t+1],21,-2054922799),o=u(o,c,l,f,e[t+8],6,1873313359),f=u(f,o,c,l,e[t+15],10,-30611744),l=u(l,f,o,c,e[t+6],15,-1560198380),c=u(c,l,f,o,e[t+13],21,1309151649),o=u(o,c,l,f,e[t+4],6,-145523070),f=u(f,o,c,l,e[t+11],10,-1120210379),l=u(l,f,o,c,e[t+2],15,718787259),c=u(c,l,f,o,e[t+9],21,-343485551),o=n(o,r),c=n(c,p),l=n(l,d),f=n(f,h)}return[o,c,l,f]}(function(e){if(0===e.length)return[];const t=8*e.length,n=new Uint32Array(r(t));for(let r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))}},46140:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};t.default=r},14808:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},96792:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(37037))&&n.__esModule?n:{default:n};t.default=function(e){if(!(0,o.default)(e))throw TypeError("Invalid UUID");let t;const r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r}},27656:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},2858:function(e,t){"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!r&&(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(n)};const n=new Uint8Array(16)},9042:function(e,t){"use strict";function r(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function n(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){const t=[1518500249,1859775393,2400959708,3395469782],o=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const i=e.length/4+2,a=Math.ceil(i/16),s=new Array(a);for(let t=0;t<a;++t){const r=new Uint32Array(16);for(let n=0;n<16;++n)r[n]=e[64*t+4*n]<<24|e[64*t+4*n+1]<<16|e[64*t+4*n+2]<<8|e[64*t+4*n+3];s[t]=r}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<a;++e){const i=new Uint32Array(80);for(let t=0;t<16;++t)i[t]=s[e][t];for(let e=16;e<80;++e)i[e]=n(i[e-3]^i[e-8]^i[e-14]^i[e-16],1);let a=o[0],u=o[1],c=o[2],l=o[3],f=o[4];for(let e=0;e<80;++e){const o=Math.floor(e/20),s=n(a,5)+r(o,u,c,l)+f+t[o]+i[e]>>>0;f=l,l=c,c=n(u,30)>>>0,u=a,a=s}o[0]=o[0]+a>>>0,o[1]=o[1]+u>>>0,o[2]=o[2]+c>>>0,o[3]=o[3]+l>>>0,o[4]=o[4]+f>>>0}return[o[0]>>24&255,o[0]>>16&255,o[0]>>8&255,255&o[0],o[1]>>24&255,o[1]>>16&255,o[1]>>8&255,255&o[1],o[2]>>24&255,o[2]>>16&255,o[2]>>8&255,255&o[2],o[3]>>24&255,o[3]>>16&255,o[3]>>8&255,255&o[3],o[4]>>24&255,o[4]>>16&255,o[4]>>8&255,255&o[4]]}},49910:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=a;var n,o=(n=r(37037))&&n.__esModule?n:{default:n};const i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).slice(1));function a(e,t=0){return i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]}t.default=function(e,t=0){const r=a(e,t);if(!(0,o.default)(r))throw TypeError("Stringified UUID is invalid");return r}},13518:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(2858))&&n.__esModule?n:{default:n},i=r(49910);let a,s,u=0,c=0;t.default=function(e,t,r){let n=t&&r||0;const l=t||new Array(16);let f=(e=e||{}).node||a,p=void 0!==e.clockseq?e.clockseq:s;if(null==f||null==p){const t=e.random||(e.rng||o.default)();null==f&&(f=a=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==p&&(p=s=16383&(t[6]<<8|t[7]))}let d=void 0!==e.msecs?e.msecs:Date.now(),h=void 0!==e.nsecs?e.nsecs:c+1;const v=d-u+(h-c)/1e4;if(v<0&&void 0===e.clockseq&&(p=p+1&16383),(v<0||d>u)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=d,c=h,s=p,d+=122192928e5;const y=(1e4*(268435455&d)+h)%4294967296;l[n++]=y>>>24&255,l[n++]=y>>>16&255,l[n++]=y>>>8&255,l[n++]=255&y;const m=d/4294967296*1e4&268435455;l[n++]=m>>>8&255,l[n++]=255&m,l[n++]=m>>>24&15|16,l[n++]=m>>>16&255,l[n++]=p>>>8|128,l[n++]=255&p;for(let e=0;e<6;++e)l[n+e]=f[e];return t||(0,i.unsafeStringify)(l)}},14948:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(r(59025)),o=i(r(22311));function i(e){return e&&e.__esModule?e:{default:e}}var a=(0,n.default)("v3",48,o.default);t.default=a},59025:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,r){function n(e,n,a,s){var u;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof n&&(n=(0,i.default)(n)),16!==(null===(u=n)||void 0===u?void 0:u.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+e.length);if(c.set(n),c.set(e,n.length),c=r(c),c[6]=15&c[6]|t,c[8]=63&c[8]|128,a){s=s||0;for(let e=0;e<16;++e)a[s+e]=c[e];return a}return(0,o.unsafeStringify)(c)}try{n.name=e}catch(e){}return n.DNS=a,n.URL=s,n};var n,o=r(49910),i=(n=r(96792))&&n.__esModule?n:{default:n};const a="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=a;const s="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=s},45073:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(46140)),o=a(r(2858)),i=r(49910);function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,r){if(n.default.randomUUID&&!t&&!e)return n.default.randomUUID();const a=(e=e||{}).random||(e.rng||o.default)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=a[e];return t}return(0,i.unsafeStringify)(a)}},77186:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(r(59025)),o=i(r(9042));function i(e){return e&&e.__esModule?e:{default:e}}var a=(0,n.default)("v5",80,o.default);t.default=a},37037:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(27656))&&n.__esModule?n:{default:n};t.default=function(e){return"string"==typeof e&&o.default.test(e)}},7775:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(37037))&&n.__esModule?n:{default:n};t.default=function(e){if(!(0,o.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}},56036:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(e,t={}){this.baseUrl=e||r.defaultCDN,this.overrides=t,this.libs={js:"",ace:"1.4.12",bootstrap:"5.3.2",bootstrap4:"4.6.2",bootstrap5:"5.3.2","bootstrap-icons":"1.11.1",ckeditor:"19.0.0",flatpickr:"4.6.8","flatpickr-formio":"4.6.13-formio.3","font-awesome":"4.7.0",grid:"latest","moment-timezone":"latest",quill:"2.0.0-dev.3","shortcut-buttons-flatpickr":"0.4.0",uswds:"2.4.8",core:""},this.updateUrls()}getVersion(e){return this.libs[e]}setVersion(e,t){this.libs[e]=t,this.updateUrls()}setBaseUrl(e){this.baseUrl=e,this.updateUrls()}setOverrideUrl(e,t){this.overrides[e]=t,this.updateUrls()}removeOverride(e){delete this.overrides[e],this.updateUrls()}removeOverrides(){this.overrides={},this.updateUrls()}buildUrl(e,t,r){let n=e;return t&&(n+=`/${t}`),r&&"latest"!==r&&(n+=`/${r}`),n}updateUrls(){for(const e in this.libs)if(e in this.overrides)if("string"==typeof this.overrides[e])this[e]=this.buildUrl(this.overrides[e],e,this.libs[e]);else{const t=this.overrides[e];this[e]=this.buildUrl(t.cdn,t.lib||"",t.version||"")}else this[e]=this.buildUrl(this.baseUrl,e,this.libs[e])}}r.defaultCDN="https://cdn.form.io",t.default=r},27368:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(r(2543)),i=n(r(53825)),a=n(r(19045)),s=n(r(5896));class u{static addProvider(e,t,r){u.providers[e]=u.providers[e]||{},u.providers[e][t]=r}static addProviders(e,t){u.providers[e]=o.default.merge(u.providers[e],t)}static getProvider(e,t){if(u.providers[e]&&u.providers[e][t])return u.providers[e][t]}static getProviders(e){if(u.providers[e])return u.providers[e]}}u.providers={address:i.default,auth:a.default,storage:s.default},t.default=u},10308:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AddressProvider=void 0;const o=n(r(2543)),i=r(34040);t.AddressProvider=class{static get name(){return"address"}static get displayName(){return"Address"}constructor(e={}){this.beforeMergeOptions(e),this.options=o.default.merge({},this.defaultOptions,e)}beforeMergeOptions(){}get defaultOptions(){return{}}get queryProperty(){return"query"}get responseProperty(){return null}get displayValueProperty(){return null}serialize(e){return o.default.toPairs(e).map((([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`)).join("&")}getRequestOptions(e={}){return o.default.merge({},this.options,e)}getRequestUrl(e={}){throw new Error("Method AddressProvider#getRequestUrl(options) is abstract.")}makeRequest(e={}){return i.Formio.makeStaticRequest(this.getRequestUrl(e),"GET",null,{noToken:!0})}search(e,t={}){const r=this.getRequestOptions(t);return(r.params=r.params||{})[this.queryProperty]=e,this.makeRequest(r).then((e=>this.responseProperty?o.default.get(e,this.responseProperty,[]):e))}getDisplayValue(e){return this.displayValueProperty?o.default.get(e,this.displayValueProperty,""):String(e)}}},90637:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AzureAddressProvider=void 0;const n=r(10308);class o extends n.AddressProvider{static get name(){return"azure"}static get displayName(){return"Azure Maps"}get defaultOptions(){return{params:{"api-version":"1.0",typeahead:"true"}}}get responseProperty(){return"results"}get displayValueProperty(){return"address.freeformAddress"}getRequestUrl(e={}){const{params:t}=e;return`https://atlas.microsoft.com/search/address/json?${this.serialize(t)}`}}t.AzureAddressProvider=o},84689:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomAddressProvider=void 0;const n=r(10308);class o extends n.AddressProvider{static get name(){return"custom"}static get displayName(){return"Custom"}get queryProperty(){return this.options.queryProperty||super.queryProperty}get responseProperty(){return this.options.responseProperty||super.responseProperty}get displayValueProperty(){return this.options.displayValueProperty||super.displayValueProperty}getRequestUrl(e={}){const{params:t,url:r}=e;return`${r}?${this.serialize(t)}`}}t.CustomAddressProvider=o},25873:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAddressProvider=void 0;const o=r(34040),i=n(r(2543)),a=r(10308);class s extends a.AddressProvider{static get name(){return"google"}static get displayName(){return"Google Maps"}constructor(e={}){var t;super(e),this.setAutocompleteOptions();let r="https://maps.googleapis.com/maps/api/js?v=quarterly&libraries=places&callback=googleMapsCallback";(null===(t=e.params)||void 0===t?void 0:t.key)&&(r+=`&key=${e.params.key}`),o.Formio.requireLibrary(this.getLibraryName(),"google.maps.places",r)}get displayValueProperty(){return"formattedPlace"}get alternativeDisplayValueProperty(){return"formatted_address"}set autocompleteOptions(e){this._autocompleteOptions=e}get autocompleteOptions(){return this._autocompleteOptions}setAutocompleteOptions(){let e=i.default.get(this.options,"params.autocompleteOptions",{});i.default.isObject(e)||(e={}),this.addRequiredProviderOptions(e),this.autocompleteOptions=e}beforeMergeOptions(e){this.convertRegionToAutocompleteOption(e)}getLibraryName(){return"googleMaps"}convertRegionToAutocompleteOption(e){const t=e;let r=i.default.get(t,"params.region","");if(r&&!i.default.has(e,"params.autocompleteOptions")){r=r.toUpperCase().trim();const e={UK:"GB"};e[r]&&(r=e[r]),i.default.set(t,"params.autocompleteOptions.componentRestrictions.country",[r])}}getRequiredAddressProperties(){return["address_components","formatted_address","geometry","place_id","plus_code","types"]}addRequiredProviderOptions(e){const t=this.getRequiredAddressProperties();i.default.isArray(e.fields)&&e.fields.length>0&&e.fields.forEach((e=>{t.some((t=>e===t))||t.push(e)})),e.fields=t}filterPlace(e){e=e||{};const t={};return this.autocompleteOptions&&this.autocompleteOptions.fields.forEach((r=>{e[r]&&(t[r]=e[r])})),t}attachAutocomplete(e,t,r){o.Formio.libraryReady(this.getLibraryName()).then((()=>{const n=new google.maps.places.Autocomplete(e,this.autocompleteOptions);n.addListener("place_changed",(()=>{const o=this.filterPlace(n.getPlace());o.formattedPlace=i.default.get(n,"gm_accessors_.place.se.formattedPrediction",o[this.alternativeDisplayValueProperty]),r(o,e,t)}))}))}search(){return Promise.resolve()}makeRequest(){return Promise.resolve()}getDisplayValue(e){const t=i.default.has(e,this.displayValueProperty)?this.displayValueProperty:this.alternativeDisplayValueProperty;return i.default.get(e,t,"")}}t.GoogleAddressProvider=s},90094:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NominatimAddressProvider=void 0;const n=r(10308);class o extends n.AddressProvider{static get name(){return"nominatim"}static get displayName(){return"OpenStreetMap Nominatim"}get defaultOptions(){return{params:{addressdetails:"1",format:"json"}}}get queryProperty(){return"q"}get displayValueProperty(){return"display_name"}getRequestUrl(e={}){const{params:t}=e;return`https://nominatim.openstreetmap.org/search?${this.serialize(t)}`}}t.NominatimAddressProvider=o},53825:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(90637),o=r(84689),i=r(25873),a=r(90094);t.default={[n.AzureAddressProvider.name]:n.AzureAddressProvider,[o.CustomAddressProvider.name]:o.CustomAddressProvider,[i.GoogleAddressProvider.name]:i.GoogleAddressProvider,[a.NominatimAddressProvider.name]:a.NominatimAddressProvider}},19045:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={}},59962:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(r(27368));t.default=o.default},52223:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(r(30430));function i(e){return{uploadFile:(t,r,n,i,a,s,u,c,l,f)=>o.default.upload(e,"azure",((e,r)=>(e.openAndSetHeaders("PUT",r.url),e.setRequestHeader("Content-Type",t.type),e.setRequestHeader("x-ms-blob-type","BlockBlob"),t)),t,r,n,i,c,l,f).then((e=>({storage:"azure",name:o.default.path([n,r]),size:t.size,type:t.type,groupPermissions:c,groupId:l,key:e.key}))),downloadFile:t=>e.makeRequest("file",`${e.formUrl}/storage/azure?name=${o.default.trim(t.name)}`,"GET"),deleteFile:function(t){var r=`${e.formUrl}/storage/azure?name=${o.default.trim(t.name)}&key=${o.default.trim(t.key)}`;return e.makeRequest("",r,"delete")}}}i.title="Azure File Services",t.default=i},95789:function(e,t){"use strict";function r(){return{title:"Base64",name:"base64",uploadFile(e,t){const r=new FileReader;return new Promise(((n,o)=>{r.onload=r=>{const o=r.target.result;n({storage:"base64",name:t,url:o,size:e.size,type:e.type})},r.onerror=()=>o(this),r.readAsDataURL(e)}))},downloadFile:e=>Promise.resolve(e)}}Object.defineProperty(t,"__esModule",{value:!0}),r.title="Base64",t.default=r},68405:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(30430);function o(e){return{uploadFile:(t,r,o,i,a,s,u,c,l,f)=>new Promise(((a,s)=>{const u=new XMLHttpRequest;"function"==typeof i&&(u.upload.onprogress=i),"function"==typeof f&&f((()=>u.abort()));const p=new FormData;p.append("name",r),p.append("dir",o),p.append("file",t),u.onerror=e=>{e.networkError=!0,s(e)},u.onload=()=>{if(u.status>=200&&u.status<300){const e=JSON.parse(u.response);e.storage="googledrive",e.size=t.size,e.type=t.type,e.groupId=l,e.groupPermissions=c,a(e)}else s(u.response||"Unable to upload file")},u.onabort=s,u.open("POST",`${e.formUrl}/storage/gdrive`),(0,n.setXhrHeaders)(e,u);const d=e.getToken();d&&u.setRequestHeader("x-jwt-token",d),u.send(p)})),downloadFile(t){const r=e.getToken();return t.url=`${e.formUrl}/storage/gdrive?fileId=${t.id}&fileName=${t.originalName}${r?`&x-jwt-token=${r}`:""}`,Promise.resolve(t)},deleteFile:function(t){var r="".concat(e.formUrl,`/storage/gdrive?id=${t.id}&name=${t.originalName}`);return e.makeRequest("",r,"delete")}}}o.title="Google Drive",t.default=o},5896:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(r(95789)),i=n(r(7152)),a=n(r(52223)),s=n(r(13225)),u=n(r(46775)),c=n(r(68405));t.default={base64:o.default,s3:i.default,url:s.default,azure:a.default,indexeddb:u.default,googledrive:c.default}},46775:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(22831);function o(){return{title:"indexedDB",name:"indexeddb",uploadFile(e,t,r,o,i,a){if("indexedDB"in window)return new Promise((e=>{const t=indexedDB.open(a.indexeddb);t.onsuccess=function(t){const r=t.target.result;e(r)},t.onupgradeneeded=function(e){e.target.result.createObjectStore(a.indexeddbTable)}})).then((t=>{const r=new FileReader;return new Promise(((o,s)=>{r.onload=()=>{const r=new Blob([e],{type:e.type}),s=(0,n.v4)(r),u={id:s,data:r,name:e.name,size:e.size,type:e.type,url:i},c=t.transaction([a.indexeddbTable],"readwrite");c.objectStore(a.indexeddbTable).put(u,s).onerror=function(e){console.log("error storing data"),console.error(e)},c.oncomplete=function(){o({storage:"indexeddb",name:e.name,size:e.size,type:e.type,url:i,id:s})}},r.onerror=()=>s(this),r.readAsDataURL(e)}))}));console.log("This browser doesn't support IndexedDB")},downloadFile(e,t){return new Promise((e=>{indexedDB.open(t.indexeddb).onsuccess=function(t){const r=t.target.result;e(r)}})).then((r=>new Promise(((n,o)=>{const i=r.transaction([t.indexeddbTable],"readonly"),a=i.objectStore(t.indexeddbTable).get(e.id);a.onsuccess=()=>{i.oncomplete=()=>{const t=a.result,r=new File([a.result.data],e.name,{type:a.result.type}),i=new FileReader;i.onload=r=>{t.url=r.target.result,t.storage=e.storage,n(t)},i.onerror=()=>o(this),i.readAsDataURL(r)}},a.onerror=()=>o(this)}))))},deleteFile(e,t){return new Promise((e=>{indexedDB.open(t.indexeddb).onsuccess=function(t){const r=t.target.result;e(r)}})).then((r=>new Promise(((n,o)=>{const i=r.transaction([t.indexeddbTable],"readwrite"),a=i.objectStore(t.indexeddbTable).delete(e.id);a.onsuccess=()=>{i.oncomplete=()=>{const e=a.result;n(e)}},a.onerror=()=>o(this)}))))}}}o.title="IndexedDB",t.default=o},7152:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t},a=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const u=s(r(30430)),c=r(55474);function l(e){return{uploadFile(t,n,o,s,l,f,p,d,h,v,y){return a(this,void 0,void 0,(function*(){const l=yield u.default.upload(e,"s3",((e,s,l)=>a(this,void 0,void 0,(function*(){if(s.data.fileName=n,s.data.key=u.default.path([s.data.key,o,n]),!s.signed){const r=new FormData;for(const e in s.data)r.append(e,s.data[e]);return r.append("file",t),e.openAndSetHeaders("POST",s.url),r}if(!y||!Array.isArray(s.signed))return e.openAndSetHeaders("PUT",s.signed),e.setRequestHeader("Content-Type",t.type),s.data.headers&&Object.keys(s.data.headers).forEach((t=>{e.setRequestHeader(t,s.data.headers[t])})),t;{yield a(void 0,void 0,void 0,(function*(){"undefined"==typeof AbortController&&(yield Promise.resolve().then((()=>i(r(24715)))))}));const e=new AbortController,n=e.signal;"function"==typeof l&&l((()=>e.abort()));try{const e=yield this.uploadParts(t,s.signed,s.data.headers,s.partSizeActual,y,n);return void(yield(0,c.withRetries)(this.completeMultipartUpload,[s,e,y],3))}catch(t){throw e.abort(),this.abortMultipartUpload(s),t}}}))),t,n,o,s,d,h,v,y);return{storage:"s3",name:n,bucket:l.bucket,key:l.data.key,url:u.default.path([l.url,l.data.key]),acl:l.data.acl,size:t.size,type:t.type}}))},completeMultipartUpload(t,r,n){return a(this,void 0,void 0,(function*(){const{changeMessage:o}=n;o("Completing AWS S3 multipart upload...");const i=e.getToken(),a=yield fetch(`${e.formUrl}/storage/s3/multipart/complete`,{method:"POST",headers:Object.assign({"Content-Type":"application/json"},i?{"x-jwt-token":i}:{}),body:JSON.stringify({parts:r,uploadId:t.uploadId,key:t.key})}),s=yield a.text();if(!a.ok)throw new Error(s);if(s.match(/Error/))throw new Error(s)}))},abortMultipartUpload(t){const{uploadId:r,key:n}=t,o=e.getToken();fetch(`${e.formUrl}/storage/s3/multipart/abort`,{method:"POST",headers:Object.assign({"Content-Type":"application/json"},o?{"x-jwt-token":o}:{}),body:JSON.stringify({uploadId:r,key:n})}).catch((e=>console.error("Error while aborting multipart upload:",e)))},uploadParts(e,t,r,n,o,i){const{changeMessage:a,progressCallback:s}=o;a("Chunking and uploading parts to AWS S3...");const u=[];for(let o=0;o<t.length;o++){const a=o*n,c=(o+1)*n,l=o<t.length?e.slice(a,c):e.slice(a),f=fetch(t[o],{method:"PUT",headers:r,body:l,signal:i}).then((e=>{if(e.ok){s(t.length);const r=e.headers.get("etag");if(!r)throw new Error("ETag header not found; it must be exposed in S3 bucket CORS settings");return{ETag:r,PartNumber:o+1}}throw new Error(`Part no ${o} failed with status ${e.status}`)}));u.push(f)}return Promise.all(u)},downloadFile:t=>"public-read"!==t.acl?e.makeRequest("file",`${e.formUrl}/storage/s3?bucket=${u.default.trim(t.bucket)}&key=${u.default.trim(t.key)}`,"GET"):Promise.resolve(t),deleteFile(t){const r=`${e.formUrl}/storage/s3?bucket=${u.default.trim(t.bucket)}&key=${u.default.trim(t.key)}`;return e.makeRequest("",r,"delete")}}}l.title="S3",t.default=l},13225:function(e,t){"use strict";function r(e){function t(e,t){const r="string"==typeof e?JSON.parse(e):e;for(const e in r)if("headers"===e){const e=r.headers;for(const r in e)t.setRequestHeader(r,e[r])}else t[e]=r[e]}const r=(r,n,o,i,a,s,u)=>new Promise(((c,l)=>{const f=new XMLHttpRequest,p="string"==typeof i,d=new FormData;if("function"==typeof s&&(f.upload.onprogress=s),"function"==typeof u&&u((()=>f.abort())),!p)for(const e in i)d.append(e,i[e]);f.onload=()=>{if(f.status>=200&&f.status<300){let e={};try{e="string"==typeof f.response?JSON.parse(f.response):{},e=e&&e.data?e.data:e}catch(t){e={}}let t=e.hasOwnProperty("url")?e.url:`${f.responseURL}/${n}`;t&&"/"===t[0]&&(t=`${r}${t}`),c({url:t,data:e})}else l(f.response||"Unable to upload file")},f.onerror=()=>l(f),f.onabort=()=>l(f);let h=r+(r.indexOf("?")>-1?"&":"?");for(const e in o)h+=`${e}=${o[e]}&`;"&"===h[h.length-1]&&(h=h.substr(0,h.length-1)),f.open("POST",h),p&&f.setRequestHeader("Content-Type","application/json");const v=e.getToken();v&&f.setRequestHeader("x-jwt-token",v),a&&t(a,f),f.send(p?i:d)}));return{title:"Url",name:"url",uploadFile(t,n,o,i,a,s,u,c,l,f){const p=function(c){return r(a,n,{baseUrl:encodeURIComponent(e.projectUrl),project:c?c.project:"",form:c?c._id:""},{[u]:t,name:n,dir:o},s,i,f).then((r=>(r.data=r.data||{},r.data.baseUrl=e.projectUrl,r.data.project=c?c.project:"",r.data.form=c?c._id:"",{storage:"url",name:n,url:r.url,size:t.size,type:t.type,data:r.data})))};return t.private&&e.formId?e.loadForm().then((e=>p(e))):p()},deleteFile:(e,r)=>new Promise(((n,o)=>{const i=new XMLHttpRequest;i.open("DELETE",e.url,!0),i.onload=()=>{i.status>=200&&i.status<300?n("File deleted"):o(i.response||"Unable to delete file")},r&&t(r,i),i.send(null)})),downloadFile:t=>t.private?(e.submissionId&&t.data&&(t.data.submission=e.submissionId),r(t.url,t.name,{},JSON.stringify(t)).then((e=>e.data))):Promise.resolve(t)}}Object.defineProperty(t,"__esModule",{value:!0}),r.title="Url",t.default=r},55474:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.withRetries=void 0,t.withRetries=function e(t,n,o=3,i=null){return r(this,void 0,void 0,(function*(){if(!o)throw new Error(i);return t(...n).catch((()=>e(t,n,o-1,i)))}))}},30430:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setXhrHeaders=void 0;const i=o(r(44826));t.setXhrHeaders=(e,t)=>{const{headers:r}=e.options;if(r){const e={"Content-Disposition":!0,Authorization:!0};for(const n in r)e[n]&&t.setRequestHeader(n,r[n])}};const a={trim:e=>(0,i.default)(e,"/"),path:e=>e.filter((e=>!!e)).map(a.trim).join("/"),upload(e,t,r,o,i,s,u,c,l,f,p){return n(this,void 0,void 0,(function*(){const n=e.getToken();let d;try{d=yield fetch(`${e.formUrl}/storage/${t}`,{method:"POST",headers:Object.assign({Accept:"application/json","Content-Type":"application/json; charset=UTF-8"},n?{"x-jwt-token":n}:{}),body:JSON.stringify({name:a.path([s,i]),size:o.size,type:o.type,groupPermissions:c,groupId:l,multipart:p})})}catch(e){throw e.networkError=!0,e}if(!d.ok){if(504===d.status){const e=new Error("Network request failed");throw e.networkError=!0,e}const e=yield d.text();throw new Error(e||"Unable to sign file.")}const h=yield d.json();return yield a.makeXhrRequest(e,r,h,u,f)}))},makeXhrRequest:(e,r,n,o,i)=>new Promise(((a,s)=>{const u=new XMLHttpRequest;u.openAndSetHeaders=(...r)=>{u.open(...r),(0,t.setXhrHeaders)(e,u)},Promise.resolve(r(u,n,i)).then((e=>{if(!e)return a(n);u.onerror=e=>{e.networkError=!0,s(e)},u.onabort=e=>{e.networkError=!0,s(e)},u.onabort=s,"function"==typeof o&&(u.upload.onprogress=o),"function"==typeof i&&i((()=>u.abort())),u.onload=()=>{if(u.status>=200&&u.status<300)a(n);else if(504===u.status){const e=new Error("Network request failed");e.networkError=!0,s(e)}else s(u.response||"Unable to upload file")},u.send(e)})).catch(s)}))};t.default=a},95413:function(e,t,r){"use strict";var n,o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FormBuilder=t.Form=t.Formio=void 0;const a=i(r(56036));class s{static setLicense(e,t=!1){n.license=e,!t&&n.FormioClass&&n.FormioClass.setLicense(e)}static setBaseUrl(e,t=!1){n.baseUrl=e,!t&&n.FormioClass&&n.FormioClass.setBaseUrl(e)}static setApiUrl(e,t=!1){n.baseUrl=e,!t&&n.FormioClass&&n.FormioClass.setApiUrl(e)}static setProjectUrl(e,t=!1){n.projectUrl=e,!t&&n.FormioClass&&n.FormioClass.setProjectUrl(e)}static setAppUrl(e,t=!1){n.projectUrl=e,!t&&n.FormioClass&&n.FormioClass.setAppUrl(e)}static setPathType(e,t=!1){n.pathType=e,!t&&n.FormioClass&&n.FormioClass.setPathType(e)}static debug(...e){n.config.debug&&console.log(...e)}static clearCache(){n.FormioClass&&n.FormioClass.clearCache()}static global(e,t=""){const r=window[e];return t&&r&&!r[t]?null:(n.debug(`Getting global ${e}`,r),r)}static use(e){n.FormioClass&&n.FormioClass.isRenderer?n.FormioClass.use(e):n.modules.push(e)}static createElement(e,t,r){const o=document.createElement(e);return Object.keys(t).forEach((e=>{o.setAttribute(e,t[e])})),(r||[]).forEach((e=>{o.appendChild(n.createElement(e.tag,e.attrs,e.children))})),o}static addScript(e,t,r,i=""){return o(this,void 0,void 0,(function*(){if(!t)return Promise.resolve();if("string"!=typeof t&&t.length)return Promise.all(t.map((t=>n.addScript(e,t))));if(r&&n.global(r,i))return n.debug(`${r} already loaded.`),Promise.resolve(n.global(r));n.debug("Adding Script",t);try{e.appendChild(n.createElement("script",{src:t}))}catch(e){return n.debug(e),Promise.resolve()}return r?new Promise((e=>{n.debug(`Waiting to load ${r}`);const t=setInterval((()=>{n.global(r,i)&&(clearInterval(t),n.debug(`${r} loaded.`),e(n.global(r)))}),100)})):Promise.resolve()}))}static addStyles(e,t){return o(this,void 0,void 0,(function*(){t&&("string"!=typeof t&&t.length?t.forEach((t=>n.addStyles(e,t))):(n.debug("Adding Styles",t),e.appendChild(n.createElement("link",{rel:"stylesheet",href:t}))))}))}static submitDone(e,t){return o(this,void 0,void 0,(function*(){n.debug("Submision Complete",t);const r=(n.config.success||"").toString();r&&"false"!==r.toLowerCase()&&e.element&&(e.element.innerHTML=`<div class="alert-success" role="alert">${r}</div>`);let o=n.config.redirect;if(!o&&e._form&&e._form.settings&&(e._form.settings.returnUrl||e._form.settings.redirect)&&(n.debug("Return url found in form configuration"),o=e._form.settings.returnUrl||e._form.settings.redirect),o){const r=e.formio?e.formio.formUrl:"",i=!!o.match(/\?/),a=0===o.indexOf(location.origin);o+=i?"&":"?",o+=`sub=${t._id}`,!a&&r&&(o+=`&form=${encodeURIComponent(r)}`),n.debug("Return URL",o),window.location.href=o,a&&window.location.reload()}}))}static formioScript(e,t){return t=t||n.config.includeBuilder,n.fullAdded||t?(n.fullAdded=!0,e.replace("formio.form","formio.full")):e}static addLibrary(e,t,r){return o(this,void 0,void 0,(function*(){if(t){if(t.dependencies)for(let r=0;r<t.dependencies.length;r++)yield n.addLibrary(e,n.cdn.libs[t.dependencies[r]]);if(t.css&&(yield n.addStyles(e,t.css)),t.js){const o=yield n.addScript(e,t.js,!!t.use&&r);if(t.use){n.debug(`Using ${r}`);const e=t.options||{};!e.license&&n.license&&(e.license=n.license),n.use("function"==typeof t.use?t.use(o):o,e)}}}}))}static addLoader(e){return o(this,void 0,void 0,(function*(){e.appendChild(n.createElement("div",{class:"formio-loader"},[{tag:"div",attrs:{class:"loader-wrapper"},children:[{tag:"div",attrs:{class:"loader text-center"}}]}]))}))}static init(e,t={},r=!1){return o(this,void 0,void 0,(function*(){n.cdn=new a.default(n.config.cdn,n.config.cdnUrls||{}),n.config.libs=n.config.libs||{uswds:{dependencies:["fontawesome"],js:`${n.cdn.uswds}/uswds.min.js`,css:`${n.cdn.uswds}/uswds.min.css`,use:!0},fontawesome:{css:`${n.cdn["font-awesome"]}/css/font-awesome.min.css`},bootstrap4:{dependencies:["fontawesome"],css:`${n.cdn.bootstrap4}/css/bootstrap.min.css`},bootstrap:{dependencies:["bootstrap-icons"],css:`${n.cdn.bootstrap}/css/bootstrap.min.css`},"bootstrap-icons":{css:`${n.cdn["bootstrap-icons"]}/css/bootstrap-icons.css`}};const o=n.config.id||`formio-${Math.random().toString(36).substring(7)}`;let i=n.createElement("div",{id:`${o}-wrapper`});e.parentNode.insertBefore(i,e);const s=n.config.includeLibs&&"function"==typeof i.attachShadow;s&&(i=i.attachShadow({mode:"open"}),t.shadowRoot=i),e.parentNode.removeChild(e),i.appendChild(e);const u=s?i:document.body;yield n.addStyles(u,n.config.embedCSS||`${n.cdn.js}/formio.embed.css`),n.addLoader(i);const c=n.config.full?"formio.full":"formio.form",l=n.config.debug?c:`${c}.min`;if(n.FormioClass=yield n.addScript(u,n.formioScript(n.config.script||`${n.cdn.js}/${l}.js`,r),"Formio",r?"isBuilder":"isRenderer"),n.FormioClass.cdn=n.cdn,n.FormioClass.setBaseUrl(t.baseUrl||n.baseUrl||n.config.base),n.FormioClass.setProjectUrl(t.projectUrl||n.projectUrl||n.config.project),n.FormioClass.language=n.language,n.setLicense(n.license||n.config.license||!1),n.modules.forEach((e=>{n.FormioClass.use(e)})),n.icons&&(n.FormioClass.icons=n.icons),n.pathType&&n.FormioClass.setPathType(n.pathType),n.config.template&&n.config.includeLibs&&(yield n.addLibrary(u,n.config.libs[n.config.template],n.config.template)),n.config.premium&&(n.config.modules.premium=n.config.premium),n.config.modules)for(const e in n.config.modules){const t=n.config.modules[e];t.use=t.use||!0,yield n.addLibrary(u,t,e)}return yield n.addStyles(u,n.formioScript(n.config.style||`${n.cdn.js}/${l}.css`,r)),n.config.before&&(yield n.config.before(n.FormioClass,e,n.config)),n.FormioClass.license=!0,n._formioReady(n.FormioClass),i}))}static afterCreate(e,t,r){return o(this,void 0,void 0,(function*(){const o=t.querySelector(".formio-loader");return o&&t.removeChild(o),n.FormioClass.events.emit(r,e),n.config.after&&(n.debug("Calling ready callback"),n.config.after(e,n.config)),e}))}static createForm(e,t,r={}){return o(this,void 0,void 0,(function*(){if(n.FormioClass)return n.FormioClass.createForm(e,t,Object.assign(Object.assign({},r),{noLoader:!0}));const o=yield n.init(e,r);return n.FormioClass.createForm(e,t,Object.assign(Object.assign({},r),{noLoader:!0})).then((e=>(n.config.submission&&(n.debug("Setting submission",n.config.submission),e.submission=n.config.submission),n.afterCreate(e,o,"formEmbedded"),e)))}))}static builder(e,t,r={}){var i;return o(this,void 0,void 0,(function*(){if(null===(i=n.FormioClass)||void 0===i?void 0:i.builder)return n.FormioClass.builder(e,t,r);const o=yield n.init(e,r,!0);return n.FormioClass.builder(e,t,r).then((e=>(n.afterCreate(e,o,"builderEmbedded"),e)))}))}}t.Formio=s,n=s,s.FormioClass=null,s.config={},s.modules=[],s.icons="",s.license="",s.formioReady=new Promise(((e,t)=>{n._formioReady=e,n._formioReadyReject=t})),s.version="5.0.0-rc.55",s.Report={create:(e,t,r={})=>o(void 0,void 0,void 0,(function*(){var o;if(null===(o=n.FormioClass)||void 0===o?void 0:o.Report)return n.FormioClass.Report.create(e,t,r);const i=yield n.init(e,r,!0);return n.FormioClass.Report.create(e,t,r).then((e=>(n.afterCreate(e,i,"reportEmbedded"),e)))}))},a.default.defaultCDN=s.version.includes("rc")?"https://cdn.test-form.io":"https://cdn.form.io";class u{constructor(e,t,r){this.form=t,this.element=e,this.options=r||{},this.init(),this.instance={proxy:!0,ready:this.ready,destroy:()=>{}}}init(){this.instance&&!this.instance.proxy&&this.instance.destroy(),this.element.innerHTML="",this.ready=this.create().then((e=>(this.instance=e,this.form=e.form,e)))}create(){return s.createForm(this.element,this.form,this.options)}setForm(e){this.form=e,this.instance&&this.instance.setForm(e)}setDisplay(e){return this.instance.proxy||(this.form.display=e,this.instance.destroy(),this.ready=this.create().then((e=>{this.instance=e,this.setForm(this.form)}))),this.ready}}t.Form=u;class c extends u{create(){return s.builder(this.element,this.form,this.options)}}t.FormBuilder=c,s.Form=u,s.FormBuilder=c},34040:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Formio=void 0;const o=r(94394);Object.defineProperty(t,"Formio",{enumerable:!0,get:function(){return o.Formio}});const i=r(95413),a=n(r(56036)),s=n(r(59962));o.Formio.cdn=new a.default,o.Formio.Providers=s.default,o.Formio.version="5.0.0-rc.55",a.default.defaultCDN=o.Formio.version.includes("rc")?"https://cdn.test-form.io":"https://cdn.form.io";const u=e=>null==e;o.Formio.prototype.uploadFile=function(e,t,r,n,i,a,c,l,f,p,d,h,v){const y={provider:e,method:"upload",file:t,fileName:r,dir:n};l=l||"file";const m=o.Formio.pluginWait("preRequest",y).then((()=>o.Formio.pluginGet("fileRequest",y).then((o=>{if(e&&u(o)){const o=s.default.getProvider("storage",e);if(o){const e=new o(this);return d&&d(),e.uploadFile(t,r,n,i,a,c,l,f,p,h,v)}throw"Storage provider not found"}return o||{url:""}}))));return o.Formio.pluginAlter("wrapFileRequestPromise",m,y)},o.Formio.prototype.downloadFile=function(e,t){const r={method:"download",file:e},n=o.Formio.pluginWait("preRequest",r).then((()=>o.Formio.pluginGet("fileRequest",r).then((r=>{if(e.storage&&u(r)){const r=s.default.getProvider("storage",e.storage);if(r)return new r(this).downloadFile(e,t);throw"Storage provider not found"}return r||{url:""}}))));return o.Formio.pluginAlter("wrapFileRequestPromise",n,r)},o.Formio.prototype.deleteFile=function(e,t){const r={method:"delete",file:e},n=o.Formio.pluginWait("preRequest",r).then((()=>o.Formio.pluginGet("fileRequest",r).then((r=>{if(e.storage&&u(r)){const r=s.default.getProvider("storage",e.storage);if(r)return new r(this).deleteFile(e,t);throw"Storage provider not found"}return r||{url:""}}))));return o.Formio.pluginAlter("wrapFileRequestPromise",n,r)},["setBaseUrl","setApiUrl","setAppUrl","setProjectUrl","setPathType","setLicense"].forEach((e=>{const t=o.Formio[e];o.Formio[e]=function(r){const n=i.Formio[e](r,!0);return t?t.call(this,r):n}})),o.Formio.Promise=Promise,o.Formio.formioReady=i.Formio.formioReady,o.Formio.config=i.Formio.config,o.Formio.builder=i.Formio.builder,o.Formio.Report=i.Formio.Report,o.Formio.Form=i.Formio.Form,o.Formio.FormBuilder=i.Formio.FormBuilder,o.Formio.use=i.Formio.use,o.Formio.createForm=i.Formio.createForm,o.Formio.submitDone=i.Formio.submitDone,o.Formio.addLibrary=i.Formio.addLibrary,o.Formio.addLoader=i.Formio.addLoader},54949:function(e,t,r){"use strict";r.r(t),r.d(t,{JsonPatchError:function(){return y},_areEquals:function(){return k},applyOperation:function(){return O},applyPatch:function(){return j},applyReducer:function(){return A},compare:function(){return F},deepClone:function(){return l},default:function(){return $},escapePathComponent:function(){return p},generate:function(){return S},getValueByPointer:function(){return w},observe:function(){return T},unescapePathComponent:function(){return d},unobserve:function(){return C},validate:function(){return x},validator:function(){return P}});var n={};r.r(n),r.d(n,{JsonPatchError:function(){return m},_areEquals:function(){return k},applyOperation:function(){return O},applyPatch:function(){return j},applyReducer:function(){return A},deepClone:function(){return g},getValueByPointer:function(){return w},validate:function(){return x},validator:function(){return P}});var o={};r.r(o),r.d(o,{compare:function(){return F},generate:function(){return S},observe:function(){return T},unobserve:function(){return C}});var i,a=(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},i(e,t)},function(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=Object.prototype.hasOwnProperty;function u(e,t){return s.call(e,t)}function c(e){if(Array.isArray(e)){for(var t=new Array(e.length),r=0;r<t.length;r++)t[r]=""+r;return t}if(Object.keys)return Object.keys(e);var n=[];for(var o in e)u(e,o)&&n.push(o);return n}function l(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function f(e){for(var t,r=0,n=e.length;r<n;){if(!((t=e.charCodeAt(r))>=48&&t<=57))return!1;r++}return!0}function p(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function d(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function h(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,r=e.length;t<r;t++)if(h(e[t]))return!0}else if("object"==typeof e)for(var n=c(e),o=n.length,i=0;i<o;i++)if(h(e[n[i]]))return!0;return!1}function v(e,t){var r=[e];for(var n in t){var o="object"==typeof t[n]?JSON.stringify(t[n],null,2):t[n];void 0!==o&&r.push(n+": "+o)}return r.join("\n")}var y=function(e){function t(t,r,n,o,i){var a=this.constructor,s=e.call(this,v(t,{name:r,index:n,operation:o,tree:i}))||this;return s.name=r,s.index=n,s.operation=o,s.tree=i,Object.setPrototypeOf(s,a.prototype),s.message=v(t,{name:r,index:n,operation:o,tree:i}),s}return a(t,e),t}(Error),m=y,g=l,b={add:function(e,t,r){return e[t]=this.value,{newDocument:r}},remove:function(e,t,r){var n=e[t];return delete e[t],{newDocument:r,removed:n}},replace:function(e,t,r){var n=e[t];return e[t]=this.value,{newDocument:r,removed:n}},move:function(e,t,r){var n=w(r,this.path);n&&(n=l(n));var o=O(r,{op:"remove",path:this.from}).removed;return O(r,{op:"add",path:this.path,value:o}),{newDocument:r,removed:n}},copy:function(e,t,r){var n=w(r,this.from);return O(r,{op:"add",path:this.path,value:l(n)}),{newDocument:r}},test:function(e,t,r){return{newDocument:r,test:k(e[t],this.value)}},_get:function(e,t,r){return this.value=e[t],{newDocument:r}}},_={add:function(e,t,r){return f(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:r,index:t}},remove:function(e,t,r){return{newDocument:r,removed:e.splice(t,1)[0]}},replace:function(e,t,r){var n=e[t];return e[t]=this.value,{newDocument:r,removed:n}},move:b.move,copy:b.copy,test:b.test,_get:b._get};function w(e,t){if(""==t)return e;var r={op:"_get",path:t};return O(e,r),r.value}function O(e,t,r,n,o,i){if(void 0===r&&(r=!1),void 0===n&&(n=!0),void 0===o&&(o=!0),void 0===i&&(i=0),r&&("function"==typeof r?r(t,0,e,t.path):P(t,0)),""===t.path){var a={newDocument:e};if("add"===t.op)return a.newDocument=t.value,a;if("replace"===t.op)return a.newDocument=t.value,a.removed=e,a;if("move"===t.op||"copy"===t.op)return a.newDocument=w(e,t.from),"move"===t.op&&(a.removed=e),a;if("test"===t.op){if(a.test=k(e,t.value),!1===a.test)throw new m("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a.newDocument=e,a}if("remove"===t.op)return a.removed=e,a.newDocument=null,a;if("_get"===t.op)return t.value=e,a;if(r)throw new m("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return a}n||(e=l(e));var s=(t.path||"").split("/"),u=e,c=1,p=s.length,h=void 0,v=void 0,y=void 0;for(y="function"==typeof r?r:P;;){if((v=s[c])&&-1!=v.indexOf("~")&&(v=d(v)),o&&("__proto__"==v||"prototype"==v&&c>0&&"constructor"==s[c-1]))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&void 0===h&&(void 0===u[v]?h=s.slice(0,c).join("/"):c==p-1&&(h=t.path),void 0!==h&&y(t,0,e,h)),c++,Array.isArray(u)){if("-"===v)v=u.length;else{if(r&&!f(v))throw new m("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",i,t,e);f(v)&&(v=~~v)}if(c>=p){if(r&&"add"===t.op&&v>u.length)throw new m("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",i,t,e);if(!1===(a=_[t.op].call(t,u,v,e)).test)throw new m("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}}else if(c>=p){if(!1===(a=b[t.op].call(t,u,v,e)).test)throw new m("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}if(u=u[v],r&&c<p&&(!u||"object"!=typeof u))throw new m("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}function j(e,t,r,n,o){if(void 0===n&&(n=!0),void 0===o&&(o=!0),r&&!Array.isArray(t))throw new m("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");n||(e=l(e));for(var i=new Array(t.length),a=0,s=t.length;a<s;a++)i[a]=O(e,t[a],r,!0,o,a),e=i[a].newDocument;return i.newDocument=e,i}function A(e,t,r){var n=O(e,t);if(!1===n.test)throw new m("Test operation failed","TEST_OPERATION_FAILED",r,t,e);return n.newDocument}function P(e,t,r,n){if("object"!=typeof e||null===e||Array.isArray(e))throw new m("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,r);if(!b[e.op])throw new m("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,r);if("string"!=typeof e.path)throw new m("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,r);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new m('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,r);if(("move"===e.op||"copy"===e.op)&&"string"!=typeof e.from)throw new m("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,r);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&void 0===e.value)throw new m("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,r);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&h(e.value))throw new m("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,r);if(r)if("add"==e.op){var o=e.path.split("/").length,i=n.split("/").length;if(o!==i+1&&o!==i)throw new m("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,r)}else if("replace"===e.op||"remove"===e.op||"_get"===e.op){if(e.path!==n)throw new m("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,r)}else if("move"===e.op||"copy"===e.op){var a=x([{op:"_get",path:e.from,value:void 0}],r);if(a&&"OPERATION_PATH_UNRESOLVABLE"===a.name)throw new m("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}function x(e,t,r){try{if(!Array.isArray(e))throw new m("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)j(l(t),l(e),r||!0);else{r=r||P;for(var n=0;n<e.length;n++)r(e[n],n,t,void 0)}}catch(e){if(e instanceof m)return e;throw e}}function k(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var r,n,o,i=Array.isArray(e),a=Array.isArray(t);if(i&&a){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!k(e[r],t[r]))return!1;return!0}if(i!=a)return!1;var s=Object.keys(e);if((n=s.length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!t.hasOwnProperty(s[r]))return!1;for(r=n;0!=r--;)if(!k(e[o=s[r]],t[o]))return!1;return!0}return e!=e&&t!=t}var U=new WeakMap,E=function(e){this.observers=new Map,this.obj=e},R=function(e,t){this.callback=e,this.observer=t};function C(e,t){t.unobserve()}function T(e,t){var r,n=function(e){return U.get(e)}(e);if(n){var o=function(e,t){return e.observers.get(t)}(n,t);r=o&&o.observer}else n=new E(e),U.set(e,n);if(r)return r;if(r={},n.value=l(e),t){r.callback=t,r.next=null;var i=function(){S(r)},a=function(){clearTimeout(r.next),r.next=setTimeout(i)};"undefined"!=typeof window&&(window.addEventListener("mouseup",a),window.addEventListener("keyup",a),window.addEventListener("mousedown",a),window.addEventListener("keydown",a),window.addEventListener("change",a))}return r.patches=[],r.object=e,r.unobserve=function(){S(r),clearTimeout(r.next),function(e,t){e.observers.delete(t.callback)}(n,r),"undefined"!=typeof window&&(window.removeEventListener("mouseup",a),window.removeEventListener("keyup",a),window.removeEventListener("mousedown",a),window.removeEventListener("keydown",a),window.removeEventListener("change",a))},n.observers.set(t,new R(t,r)),r}function S(e,t){void 0===t&&(t=!1);var r=U.get(e.object);I(r.value,e.object,e.patches,"",t),e.patches.length&&j(r.value,e.patches);var n=e.patches;return n.length>0&&(e.patches=[],e.callback&&e.callback(n)),n}function I(e,t,r,n,o){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var i=c(t),a=c(e),s=!1,f=a.length-1;f>=0;f--){var d=e[v=a[f]];if(!u(t,v)||void 0===t[v]&&void 0!==d&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(o&&r.push({op:"test",path:n+"/"+p(v),value:l(d)}),r.push({op:"remove",path:n+"/"+p(v)}),s=!0):(o&&r.push({op:"test",path:n,value:e}),r.push({op:"replace",path:n,value:t}));else{var h=t[v];"object"==typeof d&&null!=d&&"object"==typeof h&&null!=h&&Array.isArray(d)===Array.isArray(h)?I(d,h,r,n+"/"+p(v),o):d!==h&&(o&&r.push({op:"test",path:n+"/"+p(v),value:l(d)}),r.push({op:"replace",path:n+"/"+p(v),value:l(h)}))}}if(s||i.length!=a.length)for(f=0;f<i.length;f++){var v;u(e,v=i[f])||void 0===t[v]||r.push({op:"add",path:n+"/"+p(v),value:l(t[v])})}}}function F(e,t,r){void 0===r&&(r=!1);var n=[];return I(e,t,n,"",r),n}const $=Object.assign({},n,o,{JsonPatchError:y,deepClone:l,escapePathComponent:p,unescapePathComponent:d})}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var n=r(34040);return n.Formio}()}));