@verdocs/web-sdk 2.3.11 → 2.3.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (330) hide show
  1. package/dist/cjs/{Profiles-1a26e4eb.js → Profiles-54271244.js} +34 -0
  2. package/dist/cjs/{TemplateStore-192c6cf1.js → TemplateStore-d9936a68.js} +1 -1
  3. package/dist/cjs/{Types-fb95ed6b.js → Types-ee5afdf8.js} +1 -2
  4. package/dist/cjs/{VerdocsEndpoint-33b643eb.js → VerdocsEndpoint-2d85658d.js} +485 -304
  5. package/dist/cjs/{_commonjsHelpers-1fbbf0eb.js → _commonjsHelpers-0c557e26.js} +5 -0
  6. package/dist/cjs/interact.min-ba5cc513.js +13 -0
  7. package/dist/cjs/ipc-test.cjs.entry.js +2 -2
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/cjs/{utils-a3f0b70a.js → utils-2ddfdf9e.js} +2 -2
  10. package/dist/cjs/verdocs-activity-box.cjs.entry.js +1 -1
  11. package/dist/cjs/verdocs-auth.cjs.entry.js +34 -8
  12. package/dist/cjs/verdocs-build.cjs.entry.js +2 -2
  13. package/dist/cjs/verdocs-button-panel_2.cjs.entry.js +3 -12
  14. package/dist/cjs/{verdocs-contact-picker_3.cjs.entry.js → verdocs-contact-picker_2.cjs.entry.js} +5 -77
  15. package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +4 -4
  16. package/dist/cjs/verdocs-envelope-recipient-link_2.cjs.entry.js +1 -1
  17. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +2 -3
  18. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +4 -4
  19. package/dist/cjs/verdocs-field-attachment.cjs.entry.js +3 -3
  20. package/dist/cjs/verdocs-field-checkbox.cjs.entry.js +3 -3
  21. package/dist/cjs/verdocs-field-date.cjs.entry.js +4 -4
  22. package/dist/cjs/verdocs-field-dropdown.cjs.entry.js +4 -3
  23. package/dist/cjs/verdocs-field-initial.cjs.entry.js +3 -3
  24. package/dist/cjs/verdocs-field-payment.cjs.entry.js +3 -3
  25. package/dist/cjs/verdocs-field-radio-button.cjs.entry.js +3 -3
  26. package/dist/cjs/verdocs-field-signature.cjs.entry.js +3 -3
  27. package/dist/cjs/verdocs-field-textarea.cjs.entry.js +8 -9
  28. package/dist/cjs/verdocs-field-textbox.cjs.entry.js +8 -8
  29. package/dist/cjs/verdocs-field-timestamp.cjs.entry.js +4 -4
  30. package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +1 -1
  31. package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +1 -2
  32. package/dist/cjs/verdocs-pagination_2.cjs.entry.js +3 -3
  33. package/dist/cjs/verdocs-preview_8.cjs.entry.js +7 -8
  34. package/dist/cjs/verdocs-quick-functions_3.cjs.entry.js +220 -0
  35. package/dist/cjs/verdocs-search.cjs.entry.js +1 -1
  36. package/dist/cjs/verdocs-settings-api-keys_4.cjs.entry.js +36 -69
  37. package/dist/cjs/verdocs-settings.cjs.entry.js +1 -1
  38. package/dist/cjs/verdocs-sign.cjs.entry.js +8 -11
  39. package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +4 -4
  40. package/dist/cjs/verdocs-template-fields_4.cjs.entry.js +46 -54
  41. package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -1
  42. package/dist/cjs/verdocs-templates-list.cjs.entry.js +1 -1
  43. package/dist/cjs/verdocs-view.cjs.entry.js +4 -4
  44. package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
  45. package/dist/collection/collection-manifest.json +1 -1
  46. package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.js +1 -20
  47. package/dist/collection/components/elements/verdocs-search-activity/verdocs-search-activity.css +66 -0
  48. package/dist/collection/components/elements/verdocs-search-activity/verdocs-search-activity.js +187 -0
  49. package/dist/collection/components/elements/verdocs-search-activity/verdocs-search-activity.stories.js +14 -0
  50. package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +34 -6
  51. package/dist/collection/components/embeds/verdocs-send/verdocs-send.js +1 -2
  52. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +4 -8
  53. package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.css +1 -4
  54. package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.js +0 -1
  55. package/dist/collection/components/fields/verdocs-field-date/verdocs-field-date.css +0 -1
  56. package/dist/collection/components/fields/verdocs-field-dropdown/verdocs-field-dropdown.js +1 -0
  57. package/dist/collection/components/fields/verdocs-field-textarea/verdocs-field-textarea.js +1 -2
  58. package/dist/collection/components/fields/verdocs-field-textbox/verdocs-field-textbox.css +1 -1
  59. package/dist/collection/components/fields/verdocs-field-timestamp/verdocs-field-timestamp.css +0 -1
  60. package/dist/collection/components/templates/verdocs-template-create/verdocs-template-create.js +2 -2
  61. package/dist/collection/components/templates/verdocs-template-field-properties/verdocs-template-field-properties.js +0 -10
  62. package/dist/collection/components/templates/verdocs-template-fields/verdocs-template-fields.js +35 -43
  63. package/dist/collection/utils/Types.js +1 -2
  64. package/dist/components/Organizations.js +32 -0
  65. package/dist/components/TemplateStore.js +1 -1
  66. package/dist/components/Types2.js +1 -2
  67. package/dist/components/VerdocsEndpoint.js +484 -304
  68. package/dist/components/_commonjsHelpers.js +5 -1
  69. package/dist/components/index.d.ts +1 -1
  70. package/dist/components/index.js +1 -1
  71. package/dist/components/index3.js +29 -40
  72. package/dist/components/interact.min.js +6 -5
  73. package/dist/components/verdocs-auth.js +46 -12
  74. package/dist/components/verdocs-build.js +16 -22
  75. package/dist/components/verdocs-contact-picker2.js +1 -1
  76. package/dist/components/verdocs-envelope-sidebar.js +0 -1
  77. package/dist/components/verdocs-field-date.js +1 -1
  78. package/dist/components/verdocs-field-dropdown.js +1 -0
  79. package/dist/components/verdocs-field-textarea.js +4 -5
  80. package/dist/components/verdocs-field-textbox.js +4 -4
  81. package/dist/components/verdocs-field-timestamp.js +1 -1
  82. package/dist/components/verdocs-ok-dialog2.js +1 -3
  83. package/dist/components/verdocs-search-activity.d.ts +11 -0
  84. package/dist/components/verdocs-search-activity.js +6 -0
  85. package/dist/components/verdocs-search-activity2.js +170 -0
  86. package/dist/components/verdocs-search.js +8 -2
  87. package/dist/components/verdocs-send2.js +5 -12
  88. package/dist/components/verdocs-settings-organization2.js +1 -22
  89. package/dist/components/verdocs-sign.js +4 -8
  90. package/dist/components/verdocs-template-create2.js +2 -2
  91. package/dist/components/verdocs-template-field-properties2.js +0 -10
  92. package/dist/components/verdocs-template-fields2.js +38 -46
  93. package/dist/components/verdocs-template-roles2.js +4 -4
  94. package/dist/docs.json +108 -139
  95. package/dist/esm/{Profiles-d4df4d1c.js → Profiles-4cc942ef.js} +32 -1
  96. package/dist/esm/{TemplateStore-7149eda0.js → TemplateStore-018fc1db.js} +1 -1
  97. package/dist/esm/Types-de18e225.js +4 -0
  98. package/dist/esm/{VerdocsEndpoint-7922d31f.js → VerdocsEndpoint-b011af25.js} +484 -304
  99. package/dist/esm/{_commonjsHelpers-8a9f3b18.js → _commonjsHelpers-5ec8f9b7.js} +5 -1
  100. package/dist/esm/interact.min-cf83fa88.js +11 -0
  101. package/dist/esm/ipc-test.entry.js +2 -2
  102. package/dist/esm/loader.js +1 -1
  103. package/dist/esm/{utils-e0ce2c22.js → utils-d269cea3.js} +2 -2
  104. package/dist/esm/verdocs-activity-box.entry.js +1 -1
  105. package/dist/esm/verdocs-auth.entry.js +34 -8
  106. package/dist/esm/verdocs-build.entry.js +2 -2
  107. package/dist/esm/verdocs-button-panel_2.entry.js +3 -12
  108. package/dist/esm/{verdocs-contact-picker_3.entry.js → verdocs-contact-picker_2.entry.js} +6 -77
  109. package/dist/esm/verdocs-envelope-document-page.entry.js +4 -4
  110. package/dist/esm/verdocs-envelope-recipient-link_2.entry.js +1 -1
  111. package/dist/esm/verdocs-envelope-sidebar.entry.js +2 -3
  112. package/dist/esm/verdocs-envelopes-list.entry.js +4 -4
  113. package/dist/esm/verdocs-field-attachment.entry.js +3 -3
  114. package/dist/esm/verdocs-field-checkbox.entry.js +3 -3
  115. package/dist/esm/verdocs-field-date.entry.js +4 -4
  116. package/dist/esm/verdocs-field-dropdown.entry.js +4 -3
  117. package/dist/esm/verdocs-field-initial.entry.js +3 -3
  118. package/dist/esm/verdocs-field-payment.entry.js +3 -3
  119. package/dist/esm/verdocs-field-radio-button.entry.js +3 -3
  120. package/dist/esm/verdocs-field-signature.entry.js +3 -3
  121. package/dist/esm/verdocs-field-textarea.entry.js +8 -9
  122. package/dist/esm/verdocs-field-textbox.entry.js +8 -8
  123. package/dist/esm/verdocs-field-timestamp.entry.js +4 -4
  124. package/dist/esm/verdocs-file-chooser_2.entry.js +1 -1
  125. package/dist/esm/verdocs-ok-dialog.entry.js +1 -2
  126. package/dist/esm/verdocs-pagination_2.entry.js +3 -3
  127. package/dist/esm/verdocs-preview_8.entry.js +7 -8
  128. package/dist/esm/verdocs-quick-functions_3.entry.js +214 -0
  129. package/dist/esm/verdocs-search.entry.js +1 -1
  130. package/dist/esm/verdocs-settings-api-keys_4.entry.js +34 -67
  131. package/dist/esm/verdocs-settings.entry.js +1 -1
  132. package/dist/esm/verdocs-sign.entry.js +8 -11
  133. package/dist/esm/verdocs-template-document-page_2.entry.js +4 -4
  134. package/dist/esm/verdocs-template-fields_4.entry.js +46 -54
  135. package/dist/esm/verdocs-template-star.entry.js +1 -1
  136. package/dist/esm/verdocs-templates-list.entry.js +1 -1
  137. package/dist/esm/verdocs-view.entry.js +4 -4
  138. package/dist/esm/verdocs-web-sdk.js +1 -1
  139. package/dist/esm-es5/Profiles-4cc942ef.js +1 -0
  140. package/dist/esm-es5/{TemplateStore-7149eda0.js → TemplateStore-018fc1db.js} +1 -1
  141. package/dist/esm-es5/Types-de18e225.js +1 -0
  142. package/dist/esm-es5/VerdocsEndpoint-b011af25.js +1 -0
  143. package/dist/esm-es5/_commonjsHelpers-5ec8f9b7.js +1 -0
  144. package/dist/esm-es5/interact.min-cf83fa88.js +1 -0
  145. package/dist/esm-es5/ipc-test.entry.js +1 -1
  146. package/dist/esm-es5/loader.js +1 -1
  147. package/dist/esm-es5/{utils-e0ce2c22.js → utils-d269cea3.js} +1 -1
  148. package/dist/esm-es5/verdocs-activity-box.entry.js +1 -1
  149. package/dist/esm-es5/verdocs-auth.entry.js +1 -1
  150. package/dist/esm-es5/verdocs-build.entry.js +1 -1
  151. package/dist/esm-es5/verdocs-button-panel_2.entry.js +1 -1
  152. package/dist/esm-es5/verdocs-contact-picker_2.entry.js +1 -0
  153. package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
  154. package/dist/esm-es5/verdocs-envelope-recipient-link_2.entry.js +1 -1
  155. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
  156. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  157. package/dist/esm-es5/verdocs-field-attachment.entry.js +1 -1
  158. package/dist/esm-es5/verdocs-field-checkbox.entry.js +1 -1
  159. package/dist/esm-es5/verdocs-field-date.entry.js +1 -1
  160. package/dist/esm-es5/verdocs-field-dropdown.entry.js +1 -1
  161. package/dist/esm-es5/verdocs-field-initial.entry.js +1 -1
  162. package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
  163. package/dist/esm-es5/verdocs-field-radio-button.entry.js +1 -1
  164. package/dist/esm-es5/verdocs-field-signature.entry.js +1 -1
  165. package/dist/esm-es5/verdocs-field-textarea.entry.js +1 -1
  166. package/dist/esm-es5/verdocs-field-textbox.entry.js +1 -1
  167. package/dist/esm-es5/verdocs-field-timestamp.entry.js +1 -1
  168. package/dist/esm-es5/verdocs-file-chooser_2.entry.js +1 -1
  169. package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
  170. package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
  171. package/dist/esm-es5/verdocs-preview_8.entry.js +1 -1
  172. package/dist/esm-es5/verdocs-quick-functions_3.entry.js +1 -0
  173. package/dist/esm-es5/verdocs-search.entry.js +1 -1
  174. package/dist/esm-es5/verdocs-settings-api-keys_4.entry.js +1 -1
  175. package/dist/esm-es5/verdocs-settings.entry.js +1 -1
  176. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  177. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
  178. package/dist/esm-es5/verdocs-template-fields_4.entry.js +1 -1
  179. package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
  180. package/dist/esm-es5/verdocs-templates-list.entry.js +1 -1
  181. package/dist/esm-es5/verdocs-view.entry.js +1 -1
  182. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  183. package/dist/types/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.d.ts +0 -4
  184. package/dist/types/components/elements/verdocs-search-activity/verdocs-search-activity.d.ts +33 -0
  185. package/dist/types/components/{controls/verdocs-portal/verdocs-portal.stories.d.ts → elements/verdocs-search-activity/verdocs-search-activity.stories.d.ts} +6 -3
  186. package/dist/types/components/embeds/verdocs-auth/verdocs-auth.d.ts +2 -0
  187. package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +0 -1
  188. package/dist/types/components/templates/verdocs-template-field-properties/verdocs-template-field-properties.d.ts +0 -1
  189. package/dist/types/components.d.ts +34 -50
  190. package/dist/types/utils/Types.d.ts +1 -1
  191. package/dist/types/utils/utils.d.ts +2 -2
  192. package/dist/verdocs-web-sdk/p-01166179.system.entry.js +1 -0
  193. package/dist/verdocs-web-sdk/{p-d1ea580b.system.entry.js → p-013d1556.system.entry.js} +1 -1
  194. package/dist/verdocs-web-sdk/p-04580be0.entry.js +1 -0
  195. package/dist/verdocs-web-sdk/{p-3f837e30.system.entry.js → p-04d7d759.system.entry.js} +1 -1
  196. package/dist/verdocs-web-sdk/{p-05b3034f.entry.js → p-0ad1fd33.entry.js} +1 -1
  197. package/dist/verdocs-web-sdk/p-0d28cf05.js +1 -0
  198. package/dist/verdocs-web-sdk/{p-2ec8a9be.entry.js → p-0df58c57.entry.js} +1 -1
  199. package/dist/verdocs-web-sdk/{p-da1c0295.system.entry.js → p-0e5449d1.system.entry.js} +1 -1
  200. package/dist/verdocs-web-sdk/{p-686139a0.entry.js → p-0f94d635.entry.js} +1 -1
  201. package/dist/verdocs-web-sdk/{p-0419a39f.system.entry.js → p-10af7aec.system.entry.js} +1 -1
  202. package/dist/verdocs-web-sdk/{p-39f3f620.system.entry.js → p-126ba5d2.system.entry.js} +1 -1
  203. package/dist/verdocs-web-sdk/{p-ed639a7c.entry.js → p-137cedc8.entry.js} +1 -1
  204. package/dist/verdocs-web-sdk/{p-8f8504e2.entry.js → p-1406ffd2.entry.js} +1 -1
  205. package/dist/verdocs-web-sdk/{p-8e0d6152.system.entry.js → p-14aefeb2.system.entry.js} +1 -1
  206. package/dist/verdocs-web-sdk/p-15cb963a.system.entry.js +1 -0
  207. package/dist/verdocs-web-sdk/p-17d0e5f4.entry.js +1 -0
  208. package/dist/verdocs-web-sdk/p-23be436b.entry.js +1 -0
  209. package/dist/verdocs-web-sdk/{p-6d70fc87.system.entry.js → p-261d376e.system.entry.js} +1 -1
  210. package/dist/verdocs-web-sdk/{p-7144ab8e.system.entry.js → p-2f04fb38.system.entry.js} +1 -1
  211. package/dist/verdocs-web-sdk/p-30b4bd45.js +1 -0
  212. package/dist/verdocs-web-sdk/p-3305a941.system.js +1 -0
  213. package/dist/verdocs-web-sdk/{p-401a49cb.system.entry.js → p-343672f5.system.entry.js} +1 -1
  214. package/dist/verdocs-web-sdk/{p-026eb575.system.entry.js → p-35769d0c.system.entry.js} +1 -1
  215. package/dist/verdocs-web-sdk/{p-d2cee107.system.entry.js → p-37187046.system.entry.js} +1 -1
  216. package/dist/verdocs-web-sdk/{p-083bdbc6.entry.js → p-39cbfe15.entry.js} +1 -1
  217. package/dist/verdocs-web-sdk/{p-7b3fed68.entry.js → p-3a702f79.entry.js} +1 -1
  218. package/dist/verdocs-web-sdk/{p-f3a1060a.entry.js → p-3abfff14.entry.js} +1 -1
  219. package/dist/verdocs-web-sdk/{p-a7134b10.entry.js → p-3f9fbf94.entry.js} +1 -1
  220. package/dist/verdocs-web-sdk/p-409e992a.entry.js +1 -0
  221. package/dist/verdocs-web-sdk/p-4a94ee00.system.entry.js +1 -0
  222. package/dist/verdocs-web-sdk/{p-73b9ef06.entry.js → p-4f439363.entry.js} +1 -1
  223. package/dist/verdocs-web-sdk/{p-7cbe51d8.system.entry.js → p-50ac71f3.system.entry.js} +1 -1
  224. package/dist/verdocs-web-sdk/p-51756c1b.system.entry.js +1 -0
  225. package/dist/verdocs-web-sdk/{p-345f88a3.system.entry.js → p-5c50a778.system.entry.js} +1 -1
  226. package/dist/verdocs-web-sdk/{p-9c2bec77.system.entry.js → p-5df0fa7a.system.entry.js} +1 -1
  227. package/dist/verdocs-web-sdk/{p-06fb711b.system.entry.js → p-609c7fab.system.entry.js} +1 -1
  228. package/dist/verdocs-web-sdk/{p-0d4739c4.system.entry.js → p-62f090c7.system.entry.js} +1 -1
  229. package/dist/verdocs-web-sdk/p-6307e6ae.entry.js +1 -0
  230. package/dist/verdocs-web-sdk/p-66d66e2b.entry.js +1 -0
  231. package/dist/verdocs-web-sdk/{p-599fa850.entry.js → p-6bda7dce.entry.js} +1 -1
  232. package/dist/verdocs-web-sdk/p-76907130.entry.js +1 -0
  233. package/dist/verdocs-web-sdk/{p-1eb38c2e.entry.js → p-77abc3ce.entry.js} +1 -1
  234. package/dist/verdocs-web-sdk/{p-f49cb84b.entry.js → p-7805f0e0.entry.js} +1 -1
  235. package/dist/verdocs-web-sdk/{p-47460aa0.entry.js → p-79dc4f76.entry.js} +1 -1
  236. package/dist/verdocs-web-sdk/p-7b63017c.js +1 -0
  237. package/dist/verdocs-web-sdk/p-7fd7152d.system.js +1 -0
  238. package/dist/verdocs-web-sdk/p-89aa696c.system.entry.js +1 -0
  239. package/dist/verdocs-web-sdk/{p-1efd342e.entry.js → p-8da1555a.entry.js} +1 -1
  240. package/dist/verdocs-web-sdk/p-961708ac.entry.js +1 -0
  241. package/dist/verdocs-web-sdk/p-983da2f6.js +1 -0
  242. package/dist/verdocs-web-sdk/p-9934f3ec.system.entry.js +1 -0
  243. package/dist/verdocs-web-sdk/{p-2c47b92e.entry.js → p-9b07a2a7.entry.js} +1 -1
  244. package/dist/verdocs-web-sdk/{p-a59064f7.system.entry.js → p-a0b02d83.system.entry.js} +1 -1
  245. package/dist/verdocs-web-sdk/{p-9b66a84a.system.entry.js → p-a171983b.system.entry.js} +1 -1
  246. package/dist/verdocs-web-sdk/{p-e6b68ad5.entry.js → p-a310f65b.entry.js} +1 -1
  247. package/dist/verdocs-web-sdk/{p-ee159b14.js → p-a35314fe.js} +1 -1
  248. package/dist/verdocs-web-sdk/{p-c58916d2.system.entry.js → p-a52a832b.system.entry.js} +1 -1
  249. package/dist/verdocs-web-sdk/p-a5425a9b.entry.js +1 -0
  250. package/dist/verdocs-web-sdk/{p-16849f44.system.entry.js → p-aa51514f.system.entry.js} +1 -1
  251. package/dist/verdocs-web-sdk/{p-7be5cb8c.entry.js → p-ace35be6.entry.js} +1 -1
  252. package/dist/verdocs-web-sdk/{p-120f75b1.entry.js → p-af3e9624.entry.js} +1 -1
  253. package/dist/verdocs-web-sdk/{p-ecb7ea02.entry.js → p-b17a20b8.entry.js} +1 -1
  254. package/dist/verdocs-web-sdk/p-b2d698f7.system.entry.js +1 -0
  255. package/dist/verdocs-web-sdk/{p-393a9a2a.system.entry.js → p-b73415c3.system.entry.js} +1 -1
  256. package/dist/verdocs-web-sdk/p-bb2c866b.system.entry.js +1 -0
  257. package/dist/verdocs-web-sdk/p-bbee73c8.system.js +1 -0
  258. package/dist/verdocs-web-sdk/{p-38679b8e.system.entry.js → p-bd0bc3dd.system.entry.js} +1 -1
  259. package/dist/verdocs-web-sdk/p-bfcf8ad2.entry.js +1 -0
  260. package/dist/verdocs-web-sdk/{p-b0bf091c.system.js → p-c694cf93.system.js} +1 -1
  261. package/dist/verdocs-web-sdk/p-cbbf849f.system.js +1 -0
  262. package/dist/verdocs-web-sdk/p-cbd0802f.entry.js +1 -0
  263. package/dist/verdocs-web-sdk/{p-9aff3ff0.entry.js → p-cf765153.entry.js} +1 -1
  264. package/dist/verdocs-web-sdk/{p-f83a0c6e.system.entry.js → p-dd8845d4.system.entry.js} +1 -1
  265. package/dist/verdocs-web-sdk/p-de60d3a8.js +1 -0
  266. package/dist/verdocs-web-sdk/{p-4a1bc6e3.system.entry.js → p-df6a373e.system.entry.js} +1 -1
  267. package/dist/verdocs-web-sdk/{p-5f736f85.system.entry.js → p-e3a9d167.system.entry.js} +1 -1
  268. package/dist/verdocs-web-sdk/p-eab67c09.js +1 -0
  269. package/dist/verdocs-web-sdk/{p-1fdb236c.system.js → p-eb595245.system.js} +1 -1
  270. package/dist/verdocs-web-sdk/p-ecf04564.system.entry.js +1 -0
  271. package/dist/verdocs-web-sdk/p-ee195e5e.entry.js +1 -0
  272. package/dist/verdocs-web-sdk/{p-ce00ee85.entry.js → p-eef694e8.entry.js} +1 -1
  273. package/dist/verdocs-web-sdk/p-f04bf956.system.js +1 -1
  274. package/dist/verdocs-web-sdk/{p-d7dbeec3.system.entry.js → p-f1257cd0.system.entry.js} +1 -1
  275. package/dist/verdocs-web-sdk/p-f65a1b9e.system.js +1 -0
  276. package/dist/verdocs-web-sdk/{p-0549358c.entry.js → p-fde6b724.entry.js} +1 -1
  277. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  278. package/package.json +7 -8
  279. package/dist/cjs/interact.min-a61b43b3.js +0 -12
  280. package/dist/cjs/verdocs-quick-functions_2.cjs.entry.js +0 -79
  281. package/dist/collection/components/controls/verdocs-portal/verdocs-portal.css +0 -0
  282. package/dist/collection/components/controls/verdocs-portal/verdocs-portal.js +0 -181
  283. package/dist/collection/components/controls/verdocs-portal/verdocs-portal.stories.js +0 -20
  284. package/dist/components/verdocs-portal.d.ts +0 -11
  285. package/dist/components/verdocs-portal.js +0 -6
  286. package/dist/components/verdocs-portal2.js +0 -93
  287. package/dist/custom-elements.json +0 -2067
  288. package/dist/esm/Types-1628dc71.js +0 -5
  289. package/dist/esm/interact.min-6a7b19a1.js +0 -10
  290. package/dist/esm/verdocs-quick-functions_2.entry.js +0 -74
  291. package/dist/esm-es5/Profiles-d4df4d1c.js +0 -1
  292. package/dist/esm-es5/Types-1628dc71.js +0 -1
  293. package/dist/esm-es5/VerdocsEndpoint-7922d31f.js +0 -1
  294. package/dist/esm-es5/_commonjsHelpers-8a9f3b18.js +0 -1
  295. package/dist/esm-es5/interact.min-6a7b19a1.js +0 -1
  296. package/dist/esm-es5/verdocs-contact-picker_3.entry.js +0 -1
  297. package/dist/esm-es5/verdocs-quick-functions_2.entry.js +0 -1
  298. package/dist/types/components/controls/verdocs-portal/verdocs-portal.d.ts +0 -37
  299. package/dist/verdocs-web-sdk/p-0c157d55.system.entry.js +0 -1
  300. package/dist/verdocs-web-sdk/p-14b08edd.system.entry.js +0 -1
  301. package/dist/verdocs-web-sdk/p-19ff8f86.system.js +0 -1
  302. package/dist/verdocs-web-sdk/p-1a3168af.system.entry.js +0 -1
  303. package/dist/verdocs-web-sdk/p-1ba9f457.system.js +0 -1
  304. package/dist/verdocs-web-sdk/p-2fe75327.entry.js +0 -1
  305. package/dist/verdocs-web-sdk/p-3019b350.entry.js +0 -1
  306. package/dist/verdocs-web-sdk/p-32b26f8f.system.entry.js +0 -1
  307. package/dist/verdocs-web-sdk/p-3e607686.js +0 -1
  308. package/dist/verdocs-web-sdk/p-3f5fb65b.entry.js +0 -1
  309. package/dist/verdocs-web-sdk/p-4a3238f6.entry.js +0 -1
  310. package/dist/verdocs-web-sdk/p-59c44eee.system.entry.js +0 -1
  311. package/dist/verdocs-web-sdk/p-5aee3e25.js +0 -1
  312. package/dist/verdocs-web-sdk/p-5f434764.system.entry.js +0 -1
  313. package/dist/verdocs-web-sdk/p-6827df7b.entry.js +0 -1
  314. package/dist/verdocs-web-sdk/p-6a13105b.entry.js +0 -1
  315. package/dist/verdocs-web-sdk/p-6b1735f4.entry.js +0 -1
  316. package/dist/verdocs-web-sdk/p-7d5dbd9a.js +0 -1
  317. package/dist/verdocs-web-sdk/p-839f6f0d.js +0 -1
  318. package/dist/verdocs-web-sdk/p-90d54d8a.system.entry.js +0 -1
  319. package/dist/verdocs-web-sdk/p-915883e6.js +0 -1
  320. package/dist/verdocs-web-sdk/p-974b4c02.entry.js +0 -1
  321. package/dist/verdocs-web-sdk/p-992f92f4.entry.js +0 -1
  322. package/dist/verdocs-web-sdk/p-9dcb8b6c.system.entry.js +0 -1
  323. package/dist/verdocs-web-sdk/p-b101fae2.js +0 -1
  324. package/dist/verdocs-web-sdk/p-cd20fb77.system.js +0 -1
  325. package/dist/verdocs-web-sdk/p-d8cd6b59.system.js +0 -1
  326. package/dist/verdocs-web-sdk/p-dd277e69.entry.js +0 -1
  327. package/dist/verdocs-web-sdk/p-e2ae3679.entry.js +0 -1
  328. package/dist/verdocs-web-sdk/p-e2ff37fb.system.js +0 -1
  329. package/dist/verdocs-web-sdk/p-fa1621c8.system.entry.js +0 -1
  330. package/dist/verdocs-web-sdk/p-fdf0a9de.entry.js +0 -1
@@ -1 +0,0 @@
1
- import{c as t,a as n}from"./p-7d5dbd9a.js";var e=t((function(t){t.exports=function(){function n(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,i)}return e}function e(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?n(Object(i),!0).forEach((function(n){s(t,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))}))}return t}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function o(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,d(i.key),i)}}function a(t,n,e){return n&&o(t.prototype,n),e&&o(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t,n,e){return(n=d(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function u(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&f(t,n)}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,n){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t})(t,n)}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(t){var n=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(t){return!1}}();return function(){var e,i=c(t);if(n){var r=c(this).constructor;e=Reflect.construct(i,arguments,r)}else e=i.apply(this,arguments);return function(t,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return h(t)}(this,e)}}function v(){return(v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,n,e){var i=function(t,n){for(;!Object.prototype.hasOwnProperty.call(t,n)&&null!==(t=c(t)););return t}(t,n);if(i){var r=Object.getOwnPropertyDescriptor(i,n);return r.get?r.get.call(arguments.length<3?t:e):r.value}}).apply(this,arguments)}function d(t){var n=function(t,n){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,n);if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==typeof n?n:n+""}var p=function(t){return!(!t||!t.Window)&&t instanceof t.Window},y=void 0,g=void 0;function m(t){y=t;var n=t.document.createTextNode("");n.ownerDocument!==t.document&&"function"==typeof t.wrap&&t.wrap(n)===n&&(t=t.wrap(t)),g=t}function b(t){return p(t)?t:(t.ownerDocument||t).defaultView||g.window}"undefined"!=typeof window&&window&&m(window);var w=function(t){return!!t&&"object"===i(t)},k=function(t){return"function"==typeof t},x=function(t){return t===g||p(t)},M=function(t){return w(t)&&11===t.nodeType},E=w,T=k,O=function(t){return"number"==typeof t},S=function(t){return"boolean"==typeof t},z=function(t){return"string"==typeof t},I=function(t){if(!t||"object"!==i(t))return!1;var n=b(t)||g;return/object|function/.test("undefined"==typeof Element?"undefined":i(Element))?t instanceof Element||t instanceof n.Element:1===t.nodeType&&"string"==typeof t.nodeName},j=function(t){return w(t)&&!!t.constructor&&/function Object\b/.test(t.constructor.toString())},P=function(t){return w(t)&&void 0!==t.length&&k(t.splice)};function D(t){var n=t.interaction;if("drag"===n.prepared.name){var e=n.prepared.axis;"x"===e?(n.coords.cur.page.y=n.coords.start.page.y,n.coords.cur.client.y=n.coords.start.client.y,n.coords.velocity.client.y=0,n.coords.velocity.page.y=0):"y"===e&&(n.coords.cur.page.x=n.coords.start.page.x,n.coords.cur.client.x=n.coords.start.client.x,n.coords.velocity.client.x=0,n.coords.velocity.page.x=0)}}function R(t){var n=t.iEvent,e=t.interaction;if("drag"===e.prepared.name){var i=e.prepared.axis;if("x"===i||"y"===i){var r="x"===i?"y":"x";n.page[r]=e.coords.start.page[r],n.client[r]=e.coords.start.client[r],n.delta[r]=0}}}var _={id:"actions/drag",install:function(t){var n=t.actions,e=t.defaults;t.Interactable.prototype.draggable=_.draggable,n.map.drag=_,n.methodDict.drag="draggable",e.actions.drag=_.defaults},listeners:{"interactions:before-action-move":D,"interactions:action-resume":D,"interactions:action-move":R,"auto-start:check":function(t){var n=t.interaction,e=t.interactable,i=t.buttons,r=e.options.drag;if(r&&r.enabled&&(!n.pointerIsDown||!/mouse|pointer/.test(n.pointerType)||0!=(i&e.options.drag.mouseButtons)))return t.action={name:"drag",axis:"start"===r.lockAxis?r.startAxis:r.lockAxis},!1}},draggable:function(t){return E(t)?(this.options.drag.enabled=!1!==t.enabled,this.setPerAction("drag",t),this.setOnEvents("drag",t),/^(xy|x|y|start)$/.test(t.lockAxis)&&(this.options.drag.lockAxis=t.lockAxis),/^(xy|x|y)$/.test(t.startAxis)&&(this.options.drag.startAxis=t.startAxis),this):S(t)?(this.options.drag.enabled=t,this):this.options.drag},beforeMove:D,move:R,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(t){return 0===t.search("drag")}},A=_,C={init:function(t){var n=t;C.document=n.document,C.DocumentFragment=n.DocumentFragment||F,C.SVGElement=n.SVGElement||F,C.SVGSVGElement=n.SVGSVGElement||F,C.SVGElementInstance=n.SVGElementInstance||F,C.Element=n.Element||F,C.HTMLElement=n.HTMLElement||C.Element,C.Event=n.Event,C.Touch=n.Touch||F,C.PointerEvent=n.PointerEvent||n.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function F(){}var X=C,Y={init:function(t){var n=X.Element,e=t.navigator||{};Y.supportsTouch="ontouchstart"in t||T(t.DocumentTouch)&&X.document instanceof t.DocumentTouch,Y.supportsPointerEvent=!1!==e.pointerEnabled&&!!X.PointerEvent,Y.isIOS=/iP(hone|od|ad)/.test(e.platform),Y.isIOS7=/iP(hone|od|ad)/.test(e.platform)&&/OS 7[^\d]/.test(e.appVersion),Y.isIe9=/MSIE 9/.test(e.userAgent),Y.isOperaMobile="Opera"===e.appName&&Y.supportsTouch&&/Presto/.test(e.userAgent),Y.prefixedMatchesSelector="matches"in n.prototype?"matches":"webkitMatchesSelector"in n.prototype?"webkitMatchesSelector":"mozMatchesSelector"in n.prototype?"mozMatchesSelector":"oMatchesSelector"in n.prototype?"oMatchesSelector":"msMatchesSelector",Y.pEventTypes=Y.supportsPointerEvent?X.PointerEvent===t.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,Y.wheelEvent=X.document&&"onmousewheel"in X.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},$=Y;function L(t,n){if(t.contains)return t.contains(n);for(;n;){if(n===t)return!0;n=n.parentNode}return!1}function N(t,n){for(;I(t);){if(V(t,n))return t;t=U(t)}return null}function U(t){var n=t.parentNode;if(M(n)){for(;(n=n.host)&&M(n););return n}return n}function V(t,n){return g!==y&&(n=n.replace(/\/deep\//g," ")),t[$.prefixedMatchesSelector](n)}var B=function(t){return t.parentNode||t.host};function q(t,n){for(var e,i=[],r=t;(e=B(r))&&r!==n&&e!==r.ownerDocument;)i.unshift(r),r=e;return i}function G(t,n,e){for(;I(t);){if(V(t,n))return!0;if((t=U(t))===e)return V(t,n)}return!1}function H(t){return t.correspondingUseElement||t}function W(t){var n=t instanceof X.SVGElement?t.getBoundingClientRect():t.getClientRects()[0];return n&&{left:n.left,right:n.right,top:n.top,bottom:n.bottom,width:n.width||n.right-n.left,height:n.height||n.bottom-n.top}}function J(t){var n,e=W(t);if(!$.isIOS7&&e){var i={x:(n=(n=b(t))||g).scrollX||n.document.documentElement.scrollLeft,y:n.scrollY||n.document.documentElement.scrollTop};e.left+=i.x,e.right+=i.x,e.top+=i.y,e.bottom+=i.y}return e}function K(t){for(var n=[];t;)n.push(t),t=U(t);return n}function Q(t){return!!z(t)&&(X.document.querySelector(t),!0)}function Z(t,n){for(var e in n)t[e]=n[e];return t}function tt(t,n,e){return"parent"===t?U(e):"self"===t?n.getRect(e):N(e,t)}function nt(t,n,e,i){var r=t;return z(r)?r=tt(r,n,e):T(r)&&(r=r.apply(void 0,i)),I(r)&&(r=J(r)),r}function et(t){return t&&{x:"x"in t?t.x:t.left,y:"y"in t?t.y:t.top}}function it(t){return!t||"x"in t&&"y"in t||((t=Z({},t)).x=t.left||0,t.y=t.top||0,t.width=t.width||(t.right||0)-t.x,t.height=t.height||(t.bottom||0)-t.y),t}function rt(t,n,e){t.left&&(n.left+=e.x),t.right&&(n.right+=e.x),t.top&&(n.top+=e.y),t.bottom&&(n.bottom+=e.y),n.width=n.right-n.left,n.height=n.bottom-n.top}function ot(t,n,e){var i=e&&t.options[e];return et(nt(i&&i.origin||t.options.origin,t,n,[t&&n]))||{x:0,y:0}}function at(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return!0},i=arguments.length>3?arguments[3]:void 0;if(i=i||{},z(t)&&-1!==t.search(" ")&&(t=st(t)),P(t))return t.forEach((function(t){return at(t,n,e,i)})),i;if(E(t)&&(n=t,t=""),T(n)&&e(t))i[t]=i[t]||[],i[t].push(n);else if(P(n))for(var r=0,o=n;r<o.length;r++)at(t,o[r],e,i);else if(E(n))for(var a in n)at(st(a).map((function(n){return"".concat(t).concat(n)})),n[a],e,i);return i}function st(t){return t.trim().split(/ +/)}var ut=function(t,n){return Math.sqrt(t*t+n*n)},ct=["webkit","moz"];function ft(t,n){t.__set||(t.__set={});var e=function(e){if(ct.some((function(t){return 0===e.indexOf(t)})))return 1;"function"!=typeof t[e]&&"__set"!==e&&Object.defineProperty(t,e,{get:function(){return e in t.__set?t.__set[e]:t.__set[e]=n[e]},set:function(n){t.__set[e]=n},configurable:!0})};for(var i in n)e(i);return t}function ht(t,n){t.page=t.page||{},t.page.x=n.page.x,t.page.y=n.page.y,t.client=t.client||{},t.client.x=n.client.x,t.client.y=n.client.y,t.timeStamp=n.timeStamp}function lt(t){t.page.x=0,t.page.y=0,t.client.x=0,t.client.y=0}function vt(t){return t instanceof X.Event||t instanceof X.Touch}function dt(t,n,e){return(e=e||{}).x=n[(t=t||"page")+"X"],e.y=n[t+"Y"],e}function pt(t,n){return n=n||{x:0,y:0},$.isOperaMobile&&vt(t)?(dt("screen",t,n),n.x+=window.scrollX,n.y+=window.scrollY):dt("page",t,n),n}function yt(t){return O(t.pointerId)?t.pointerId:t.identifier}function gt(t){var n=[];return P(t)?(n[0]=t[0],n[1]=t[1]):"touchend"===t.type?1===t.touches.length?(n[0]=t.touches[0],n[1]=t.changedTouches[0]):0===t.touches.length&&(n[0]=t.changedTouches[0],n[1]=t.changedTouches[1]):(n[0]=t.touches[0],n[1]=t.touches[1]),n}function mt(t){for(var n={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},e=0;e<t.length;e++){var i=t[e];for(var r in n)n[r]+=i[r]}for(var o in n)n[o]/=t.length;return n}function bt(t){if(!t.length)return null;var n=gt(t),e=Math.min(n[0].pageX,n[1].pageX),i=Math.min(n[0].pageY,n[1].pageY),r=Math.max(n[0].pageX,n[1].pageX),o=Math.max(n[0].pageY,n[1].pageY);return{x:e,y:i,left:e,top:i,right:r,bottom:o,width:r-e,height:o-i}}function wt(t,n){var e=n+"X",i=n+"Y",r=gt(t);return ut(r[0][e]-r[1][e],r[0][i]-r[1][i])}function kt(t,n){var e=n+"X",i=n+"Y",r=gt(t);return 180*Math.atan2(r[1][i]-r[0][i],r[1][e]-r[0][e])/Math.PI}function xt(t){return z(t.pointerType)?t.pointerType:O(t.pointerType)?[void 0,void 0,"touch","pen","mouse"][t.pointerType]:/touch/.test(t.type||"")||t instanceof X.Touch?"touch":"mouse"}function Mt(t){var n=T(t.composedPath)?t.composedPath():t.path;return[H(n?n[0]:t.target),H(t.currentTarget)]}var Et=function(){function t(n){r(this,t),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=n}return a(t,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),t}();Object.defineProperty(Et.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var Tt=function(t,n){for(var e=0;e<n.length;e++)t.push(n[e]);return t},Ot=function(t){return Tt([],t)},St=function(t,n){for(var e=0;e<t.length;e++)if(n(t[e],e,t))return e;return-1},zt=function(t,n){return t[St(t,n)]},It=function(t){u(e,t);var n=l(e);function e(t,i,o){var a;r(this,e),(a=n.call(this,i._interaction)).dropzone=void 0,a.dragEvent=void 0,a.relatedTarget=void 0,a.draggable=void 0,a.propagationStopped=!1,a.immediatePropagationStopped=!1;var s="dragleave"===o?t.prev:t.cur,u=s.element,c=s.dropzone;return a.type=o,a.target=u,a.currentTarget=u,a.dropzone=c,a.dragEvent=i,a.relatedTarget=i.target,a.draggable=i.interactable,a.timeStamp=i.timeStamp,a}return a(e,[{key:"reject",value:function(){var t=this,n=this._interaction.dropState;if("dropactivate"===this.type||this.dropzone&&n.cur.dropzone===this.dropzone&&n.cur.element===this.target)if(n.prev.dropzone=this.dropzone,n.prev.element=this.target,n.rejected=!0,n.events.enter=null,this.stopImmediatePropagation(),"dropactivate"===this.type){var i=St(n.activeDrops,(function(n){return n.dropzone===t.dropzone&&n.element===t.target}));n.activeDrops.splice(i,1);var r=new e(n,this.dragEvent,"dropdeactivate");r.dropzone=this.dropzone,r.target=this.target,this.dropzone.fire(r)}else this.dropzone.fire(new e(n,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),e}(Et);function jt(t,n){for(var e=0,i=t.slice();e<i.length;e++){var r=i[e],o=r.dropzone,a=r.element;n.dropzone=o,n.target=a,o.fire(n),n.propagationStopped=n.immediatePropagationStopped=!1}}function Pt(t,n){for(var e=function(t,n){for(var e=[],i=0,r=t.interactables.list;i<r.length;i++){var o=r[i];if(o.options.drop.enabled){var a=o.options.drop.accept;if(!(I(a)&&a!==n||z(a)&&!V(n,a)||T(a)&&!a({dropzone:o,draggableElement:n})))for(var s=0,u=o.getAllElements();s<u.length;s++){var c=u[s];c!==n&&e.push({dropzone:o,element:c,rect:o.getRect(c)})}}}return e}(t,n),i=0;i<e.length;i++){var r=e[i];r.rect=r.dropzone.getRect(r.element)}return e}function Dt(t,n,e){for(var i=t.dropState,r=t.interactable,o=t.element,a=[],s=0,u=i.activeDrops;s<u.length;s++){var c=u[s],f=c.element,h=c.dropzone.dropCheck(n,e,r,o,f,c.rect);a.push(h?f:null)}var l=function(t){for(var n,e,i,r=[],o=0;o<t.length;o++){var a=t[o],s=t[n];if(a&&o!==n)if(s){var u=B(a),c=B(s);if(u!==a.ownerDocument)if(c!==a.ownerDocument)if(u!==c){r=r.length?r:q(s);var f=void 0;if(s instanceof X.HTMLElement&&a instanceof X.SVGElement&&!(a instanceof X.SVGSVGElement)){if(a===c)continue;f=a.ownerSVGElement}else f=a;for(var h=q(f,s.ownerDocument),l=0;h[l]&&h[l]===r[l];)l++;var v=[h[l-1],h[l],r[l]];if(v[0])for(var d=v[0].lastChild;d;){if(d===v[1]){n=o,r=h;break}if(d===v[2])break;d=d.previousSibling}}else i=s,(parseInt(b(e=a).getComputedStyle(e).zIndex,10)||0)>=(parseInt(b(i).getComputedStyle(i).zIndex,10)||0)&&(n=o);else n=o}else n=o}return n}(a);return i.activeDrops[l]||null}function Rt(t,n,e){var i=t.dropState,r={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return"dragstart"===e.type&&(r.activate=new It(i,e,"dropactivate"),r.activate.target=null,r.activate.dropzone=null),"dragend"===e.type&&(r.deactivate=new It(i,e,"dropdeactivate"),r.deactivate.target=null,r.deactivate.dropzone=null),i.rejected||(i.cur.element!==i.prev.element&&(i.prev.dropzone&&(r.leave=new It(i,e,"dragleave"),e.dragLeave=r.leave.target=i.prev.element,e.prevDropzone=r.leave.dropzone=i.prev.dropzone),i.cur.dropzone&&(r.enter=new It(i,e,"dragenter"),e.dragEnter=i.cur.element,e.dropzone=i.cur.dropzone)),"dragend"===e.type&&i.cur.dropzone&&(r.drop=new It(i,e,"drop"),e.dropzone=i.cur.dropzone,e.relatedTarget=i.cur.element),"dragmove"===e.type&&i.cur.dropzone&&(r.move=new It(i,e,"dropmove"),e.dropzone=i.cur.dropzone)),r}function _t(t,n){var e=t.dropState,i=e.activeDrops,r=e.cur;n.leave&&e.prev.dropzone.fire(n.leave),n.enter&&r.dropzone.fire(n.enter),n.move&&r.dropzone.fire(n.move),n.drop&&r.dropzone.fire(n.drop),n.deactivate&&jt(i,n.deactivate),e.prev.dropzone=r.dropzone,e.prev.element=r.element}function At(t,n){var e=t.interaction,i=t.iEvent,r=t.event;if("dragmove"===i.type||"dragend"===i.type){var o=e.dropState;n.dynamicDrop&&(o.activeDrops=Pt(n,e.element));var a=i,s=Dt(e,a,r);o.rejected=o.rejected&&!!s&&s.dropzone===o.cur.dropzone&&s.element===o.cur.element,o.cur.dropzone=s&&s.dropzone,o.cur.element=s&&s.element,o.events=Rt(e,0,a)}}var Ct={id:"actions/drop",install:function(t){var n=t.actions,e=t.interactStatic,i=t.Interactable,r=t.defaults;t.usePlugin(A),i.prototype.dropzone=function(t){return function(t,n){if(E(n)){if(t.options.drop.enabled=!1!==n.enabled,n.listeners){var e=at(n.listeners),i=Object.keys(e).reduce((function(t,n){return t[/^(enter|leave)/.test(n)?"drag".concat(n):/^(activate|deactivate|move)/.test(n)?"drop".concat(n):n]=e[n],t}),{}),r=t.options.drop.listeners;r&&t.off(r),t.on(i),t.options.drop.listeners=i}return T(n.ondrop)&&t.on("drop",n.ondrop),T(n.ondropactivate)&&t.on("dropactivate",n.ondropactivate),T(n.ondropdeactivate)&&t.on("dropdeactivate",n.ondropdeactivate),T(n.ondragenter)&&t.on("dragenter",n.ondragenter),T(n.ondragleave)&&t.on("dragleave",n.ondragleave),T(n.ondropmove)&&t.on("dropmove",n.ondropmove),/^(pointer|center)$/.test(n.overlap)?t.options.drop.overlap=n.overlap:O(n.overlap)&&(t.options.drop.overlap=Math.max(Math.min(1,n.overlap),0)),"accept"in n&&(t.options.drop.accept=n.accept),"checker"in n&&(t.options.drop.checker=n.checker),t}return S(n)?(t.options.drop.enabled=n,t):t.options.drop}(this,t)},i.prototype.dropCheck=function(t,n,e,i,r,o){return function(t,n,e,i,r,o,a){var s=!1;if(!(a=a||t.getRect(o)))return!!t.options.drop.checker&&t.options.drop.checker(n,e,s,t,o,i,r);var u=t.options.drop.overlap;if("pointer"===u){var c=ot(i,r,"drag"),f=pt(n);f.x+=c.x,f.y+=c.y,s=f.x>a.left&&f.x<a.right&&f.y>a.top&&f.y<a.bottom}var h=i.getRect(r);if(h&&"center"===u){var l=h.left+h.width/2,v=h.top+h.height/2;s=l>=a.left&&l<=a.right&&v>=a.top&&v<=a.bottom}return h&&O(u)&&(s=Math.max(0,Math.min(a.right,h.right)-Math.max(a.left,h.left))*Math.max(0,Math.min(a.bottom,h.bottom)-Math.max(a.top,h.top))/(h.width*h.height)>=u),t.options.drop.checker&&(s=t.options.drop.checker(n,e,s,t,o,i,r)),s}(this,t,n,e,i,r,o)},e.dynamicDrop=function(n){return S(n)?(t.dynamicDrop=n,e):t.dynamicDrop},Z(n.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),n.methodDict.drop="dropzone",t.dynamicDrop=!1,r.actions.drop=Ct.defaults},listeners:{"interactions:before-action-start":function(t){var n=t.interaction;"drag"===n.prepared.name&&(n.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(t,n){var e=t.interaction,i=t.iEvent;if("drag"===e.prepared.name){var r=e.dropState;r.activeDrops=[],r.events={},r.activeDrops=Pt(n,e.element),r.events=Rt(e,0,i),r.events.activate&&(jt(r.activeDrops,r.events.activate),n.fire("actions/drop:start",{interaction:e,dragEvent:i}))}},"interactions:action-move":At,"interactions:after-action-move":function(t,n){var e=t.interaction,i=t.iEvent;if("drag"===e.prepared.name){var r=e.dropState;_t(e,r.events),n.fire("actions/drop:move",{interaction:e,dragEvent:i}),r.events={}}},"interactions:action-end":function(t,n){if("drag"===t.interaction.prepared.name){var e=t.interaction,i=t.iEvent;At(t,n),_t(e,e.dropState.events),n.fire("actions/drop:end",{interaction:e,dragEvent:i})}},"interactions:stop":function(t){var n=t.interaction;if("drag"===n.prepared.name){var e=n.dropState;e&&(e.activeDrops=null,e.events=null,e.cur.dropzone=null,e.cur.element=null,e.prev.dropzone=null,e.prev.element=null,e.rejected=!1)}}},getActiveDrops:Pt,getDrop:Dt,getDropEvents:Rt,fireDropEvents:_t,filterEventType:function(t){return 0===t.search("drag")||0===t.search("drop")},defaults:{enabled:!1,accept:null,overlap:"pointer"}},Ft=Ct;function Xt(t){var n=t.interaction,e=t.iEvent,i=t.phase;if("gesture"===n.prepared.name){var r=n.pointers.map((function(t){return t.pointer})),o="start"===i,a="end"===i,s=n.interactable.options.deltaSource;if(e.touches=[r[0],r[1]],o)e.distance=wt(r,s),e.box=bt(r),e.scale=1,e.ds=0,e.angle=kt(r,s),e.da=0,n.gesture.startDistance=e.distance,n.gesture.startAngle=e.angle;else if(a||n.pointers.length<2){var u=n.prevEvent;e.distance=u.distance,e.box=u.box,e.scale=u.scale,e.ds=0,e.angle=u.angle,e.da=0}else e.distance=wt(r,s),e.box=bt(r),e.scale=e.distance/n.gesture.startDistance,e.angle=kt(r,s),e.ds=e.scale-n.gesture.scale,e.da=e.angle-n.gesture.angle;n.gesture.distance=e.distance,n.gesture.angle=e.angle,O(e.scale)&&e.scale!==1/0&&!isNaN(e.scale)&&(n.gesture.scale=e.scale)}}var Yt={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(t){var n=t.actions,e=t.defaults;t.Interactable.prototype.gesturable=function(t){return E(t)?(this.options.gesture.enabled=!1!==t.enabled,this.setPerAction("gesture",t),this.setOnEvents("gesture",t),this):S(t)?(this.options.gesture.enabled=t,this):this.options.gesture},n.map.gesture=Yt,n.methodDict.gesture="gesturable",e.actions.gesture=Yt.defaults},listeners:{"interactions:action-start":Xt,"interactions:action-move":Xt,"interactions:action-end":Xt,"interactions:new":function(t){t.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(t){if(!(t.interaction.pointers.length<2)){var n=t.interactable.options.gesture;if(n&&n.enabled)return t.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(t){return 0===t.search("gesture")}},$t=Yt;function Lt(t,n,e,i,r,o,a){if(!n)return!1;if(!0===n){var s=O(o.width)?o.width:o.right-o.left,u=O(o.height)?o.height:o.bottom-o.top;if(a=Math.min(a,Math.abs(("left"===t||"right"===t?s:u)/2)),s<0&&("left"===t?t="right":"right"===t&&(t="left")),u<0&&("top"===t?t="bottom":"bottom"===t&&(t="top")),"left"===t)return e.x<(s>=0?o.left:o.right)+a;if("top"===t)return e.y<(u>=0?o.top:o.bottom)+a;if("right"===t)return e.x>(s>=0?o.right:o.left)-a;if("bottom"===t)return e.y>(u>=0?o.bottom:o.top)-a}return!!I(i)&&(I(n)?n===i:G(i,n,r))}function Nt(t){var n=t.interaction;if("resize"===n.prepared.name&&n.resizeAxes){var e=t.iEvent;n.interactable.options.resize.square?("y"===n.resizeAxes?e.delta.x=e.delta.y:e.delta.y=e.delta.x,e.axes="xy"):(e.axes=n.resizeAxes,"x"===n.resizeAxes?e.delta.y=0:"y"===n.resizeAxes&&(e.delta.x=0))}}var Ut,Vt,Bt={id:"actions/resize",before:["actions/drag"],install:function(t){var n=t.actions,e=t.browser,i=t.Interactable,r=t.defaults;Bt.cursors=function(t){return t.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(e),Bt.defaultMargin=e.supportsTouch||e.supportsPointerEvent?20:10,i.prototype.resizable=function(n){return function(t,n,e){return E(n)?(t.options.resize.enabled=!1!==n.enabled,t.setPerAction("resize",n),t.setOnEvents("resize",n),z(n.axis)&&/^x$|^y$|^xy$/.test(n.axis)?t.options.resize.axis=n.axis:null===n.axis&&(t.options.resize.axis=e.defaults.actions.resize.axis),S(n.preserveAspectRatio)?t.options.resize.preserveAspectRatio=n.preserveAspectRatio:S(n.square)&&(t.options.resize.square=n.square),t):S(n)?(t.options.resize.enabled=n,t):t.options.resize}(this,n,t)},n.map.resize=Bt,n.methodDict.resize="resizable",r.actions.resize=Bt.defaults},listeners:{"interactions:new":function(t){t.interaction.resizeAxes="xy"},"interactions:action-start":function(t){!function(t){var n=t.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var e=t.iEvent,i=n.rect;n._rects={start:Z({},i),corrected:Z({},i),previous:Z({},i),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},e.edges=n.prepared.edges,e.rect=n._rects.corrected,e.deltaRect=n._rects.delta}}(t),Nt(t)},"interactions:action-move":function(t){!function(t){var n=t.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var e=t.iEvent,i=n.interactable.options.resize.invert,r="reposition"===i||"negate"===i,o=n.rect,a=n._rects,s=a.start,u=a.corrected,c=a.delta,f=a.previous;if(Z(f,u),r){if(Z(u,o),"reposition"===i){if(u.top>u.bottom){var h=u.top;u.top=u.bottom,u.bottom=h}if(u.left>u.right){var l=u.left;u.left=u.right,u.right=l}}}else u.top=Math.min(o.top,s.bottom),u.bottom=Math.max(o.bottom,s.top),u.left=Math.min(o.left,s.right),u.right=Math.max(o.right,s.left);for(var v in u.width=u.right-u.left,u.height=u.bottom-u.top,u)c[v]=u[v]-f[v];e.edges=n.prepared.edges,e.rect=u,e.deltaRect=c}}(t),Nt(t)},"interactions:action-end":function(t){var n=t.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var e=t.iEvent;e.edges=n.prepared.edges,e.rect=n._rects.corrected,e.deltaRect=n._rects.delta}},"auto-start:check":function(t){var n=t.interaction,e=t.interactable,i=t.element,r=t.rect,o=t.buttons;if(r){var a=Z({},n.coords.cur.page),s=e.options.resize;if(s&&s.enabled&&(!n.pointerIsDown||!/mouse|pointer/.test(n.pointerType)||0!=(o&s.mouseButtons))){if(E(s.edges)){var u={left:!1,right:!1,top:!1,bottom:!1};for(var c in u)u[c]=Lt(c,s.edges[c],a,n._latestPointer.eventTarget,i,r,s.margin||Bt.defaultMargin);u.left=u.left&&!u.right,u.top=u.top&&!u.bottom,(u.left||u.right||u.top||u.bottom)&&(t.action={name:"resize",edges:u})}else{var f="y"!==s.axis&&a.x>r.right-Bt.defaultMargin,h="x"!==s.axis&&a.y>r.bottom-Bt.defaultMargin;(f||h)&&(t.action={name:"resize",axes:(f?"x":"")+(h?"y":"")})}return!t.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(t){var n=t.edges,e=t.axis,i=Bt.cursors,r=null;if(e)r=i[t.name+e];else if(n){for(var o="",a=0,s=["top","bottom","left","right"];a<s.length;a++){var u=s[a];n[u]&&(o+=u)}r=i[o]}return r},filterEventType:function(t){return 0===t.search("resize")},defaultMargin:null},qt=Bt,Gt={id:"actions",install:function(t){t.usePlugin($t),t.usePlugin(qt),t.usePlugin(A),t.usePlugin(Ft)}},Ht=0,Wt=function(t){return Ut(t)},Jt=function(t){return Vt(t)},Kt=function(t){if(Vt=t.cancelAnimationFrame,!(Ut=t.requestAnimationFrame))for(var n=["ms","moz","webkit","o"],e=0;e<n.length;e++){var i=n[e];Ut=t["".concat(i,"RequestAnimationFrame")],Vt=t["".concat(i,"CancelAnimationFrame")]||t["".concat(i,"CancelRequestAnimationFrame")]}Ut=Ut&&Ut.bind(t),Vt=Vt&&Vt.bind(t),Ut||(Ut=function(n){var e=Date.now(),i=Math.max(0,16-(e-Ht)),r=t.setTimeout((function(){n(e+i)}),i);return Ht=e+i,r},Vt=function(t){return clearTimeout(t)})},Qt={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(t){Qt.isScrolling=!0,Jt(Qt.i),t.autoScroll=Qt,Qt.interaction=t,Qt.prevTime=Qt.now(),Qt.i=Wt(Qt.scroll)},stop:function(){Qt.isScrolling=!1,Qt.interaction&&(Qt.interaction.autoScroll=null),Jt(Qt.i)},scroll:function(){var t=Qt.interaction,n=t.interactable,e=t.element,i=n.options[t.prepared.name].autoScroll,r=Zt(i.container,n,e),o=Qt.now(),a=i.speed*((o-Qt.prevTime)/1e3);if(a>=1){var s={x:Qt.x*a,y:Qt.y*a};if(s.x||s.y){var u=tn(r);x(r)?r.scrollBy(s.x,s.y):r&&(r.scrollLeft+=s.x,r.scrollTop+=s.y);var c=tn(r),f={x:c.x-u.x,y:c.y-u.y};(f.x||f.y)&&n.fire({type:"autoscroll",target:e,interactable:n,delta:f,interaction:t,container:r})}Qt.prevTime=o}Qt.isScrolling&&(Jt(Qt.i),Qt.i=Wt(Qt.scroll))},check:function(t,n){var e;return null==(e=t.options[n].autoScroll)?void 0:e.enabled},onInteractionMove:function(t){var n=t.interaction,e=t.pointer;if(n.interacting()&&Qt.check(n.interactable,n.prepared.name))if(n.simulation)Qt.x=Qt.y=0;else{var i,r,o,a,s=n.interactable,u=s.options[n.prepared.name].autoScroll,c=Zt(u.container,s,n.element);if(x(c))a=e.clientX<Qt.margin,i=e.clientY<Qt.margin,r=e.clientX>c.innerWidth-Qt.margin,o=e.clientY>c.innerHeight-Qt.margin;else{var f=W(c);a=e.clientX<f.left+Qt.margin,i=e.clientY<f.top+Qt.margin,r=e.clientX>f.right-Qt.margin,o=e.clientY>f.bottom-Qt.margin}Qt.x=r?1:a?-1:0,Qt.y=o?1:i?-1:0,Qt.isScrolling||(Qt.margin=u.margin,Qt.speed=u.speed,Qt.start(n))}}};function Zt(t,n,e){return(z(t)?tt(t,n,e):t)||b(e)}function tn(t){return x(t)&&(t=window.document.body),{x:t.scrollLeft,y:t.scrollTop}}var nn={id:"auto-scroll",install:function(t){var n=t.defaults,e=t.actions;t.autoScroll=Qt,Qt.now=function(){return t.now()},e.phaselessTypes.autoscroll=!0,n.perAction.autoScroll=Qt.defaults},listeners:{"interactions:new":function(t){t.interaction.autoScroll=null},"interactions:destroy":function(t){t.interaction.autoScroll=null,Qt.stop(),Qt.interaction&&(Qt.interaction=null)},"interactions:stop":Qt.stop,"interactions:action-move":function(t){return Qt.onInteractionMove(t)}}};function en(t,n){var e=!1;return function(){return e||(g.console.warn(n),e=!0),t.apply(this,arguments)}}function rn(t,n){return t.name=n.name,t.axis=n.axis,t.edges=n.edges,t}function on(t){return S(t)?(this.options.styleCursor=t,this):null===t?(delete this.options.styleCursor,this):this.options.styleCursor}function an(t){return T(t)?(this.options.actionChecker=t,this):null===t?(delete this.options.actionChecker,this):this.options.actionChecker}var sn={id:"auto-start/interactableMethods",install:function(t){var n=t.Interactable;n.prototype.getAction=function(n,e,i,r){var o=function(t,n,e,i,r){var o=t.getRect(i),a={action:null,interactable:t,interaction:e,element:i,rect:o,buttons:n.buttons||{0:1,1:4,3:8,4:16}[n.button]};return r.fire("auto-start:check",a),a.action}(this,e,i,r,t);return this.options.actionChecker?this.options.actionChecker(n,e,o,this,r,i):o},n.prototype.ignoreFrom=en((function(t){return this._backCompatOption("ignoreFrom",t)}),"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),n.prototype.allowFrom=en((function(t){return this._backCompatOption("allowFrom",t)}),"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),n.prototype.actionChecker=an,n.prototype.styleCursor=on}};function un(t,n,e,i,r){return n.testIgnoreAllow(n.options[t.name],e,i)&&n.options[t.name].enabled&&ln(n,e,t,r)?t:null}function cn(t,n,e,i,r,o,a){for(var s=0,u=i.length;s<u;s++){var c=i[s],f=r[s],h=c.getAction(n,e,t,f);if(h){var l=un(h,c,f,o,a);if(l)return{action:l,interactable:c,element:f}}}return{action:null,interactable:null,element:null}}function fn(t,n,e,i,r){var o=[],a=[],s=i;function u(t){o.push(t),a.push(s)}for(;I(s);){o=[],a=[],r.interactables.forEachMatch(s,u);var c=cn(t,n,e,o,a,i,r);if(c.action&&!c.interactable.options[c.action.name].manualStart)return c;s=U(s)}return{action:null,interactable:null,element:null}}function hn(t,n,e){var i=n.action,r=n.interactable,o=n.element;i=i||{name:null},t.interactable=r,t.element=o,rn(t.prepared,i),t.rect=r&&i.name?r.getRect(o):null,pn(t,e),e.fire("autoStart:prepared",{interaction:t})}function ln(t,n,e,i){var r=t.options,o=r[e.name].max,a=r[e.name].maxPerElement,s=i.autoStart.maxInteractions,u=0,c=0,f=0;if(!(o&&a&&s))return!1;for(var h=0,l=i.interactions.list;h<l.length;h++){var v=l[h],d=v.prepared.name;if(v.interacting()){if(++u>=s)return!1;if(v.interactable===t){if((c+=d===e.name?1:0)>=o)return!1;if(v.element===n&&(f++,d===e.name&&f>=a))return!1}}}return s>0}function vn(t,n){return O(t)?(n.autoStart.maxInteractions=t,this):n.autoStart.maxInteractions}function dn(t,n,e){var i=e.autoStart.cursorElement;i&&i!==t&&(i.style.cursor=""),t.ownerDocument.documentElement.style.cursor=n,t.style.cursor=n,e.autoStart.cursorElement=n?t:null}function pn(t,n){var e=t.interactable,i=t.element,r=t.prepared;if("mouse"===t.pointerType&&e&&e.options.styleCursor){var o="";if(r.name){var a=e.options[r.name].cursorChecker;o=T(a)?a(r,e,i,t._interacting):n.actions.map[r.name].getCursor(r)}dn(t.element,o||"",n)}else n.autoStart.cursorElement&&dn(n.autoStart.cursorElement,"",n)}var yn={id:"auto-start/base",before:["actions"],install:function(t){var n=t.interactStatic,e=t.defaults;t.usePlugin(sn),e.base.actionChecker=null,e.base.styleCursor=!0,Z(e.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),n.maxInteractions=function(n){return vn(n,t)},t.autoStart={maxInteractions:1/0,withinInteractionLimit:ln,cursorElement:null}},listeners:{"interactions:down":function(t,n){var e=t.interaction,i=t.pointer,r=t.event,o=t.eventTarget;e.interacting()||hn(e,fn(e,i,r,o,n),n)},"interactions:move":function(t,n){!function(t,n){var e=t.interaction,i=t.pointer,r=t.event,o=t.eventTarget;"mouse"!==e.pointerType||e.pointerIsDown||e.interacting()||hn(e,fn(e,i,r,o,n),n)}(t,n),function(t,n){var e=t.interaction;if(e.pointerIsDown&&!e.interacting()&&e.pointerWasMoved&&e.prepared.name){n.fire("autoStart:before-start",t);var i=e.interactable,r=e.prepared.name;r&&i&&(i.options[r].manualStart||!ln(i,e.element,e.prepared,n)?e.stop():(e.start(e.prepared,i,e.element),pn(e,n)))}}(t,n)},"interactions:stop":function(t,n){var e=t.interaction,i=e.interactable;i&&i.options.styleCursor&&dn(e.element,"",n)}},maxInteractions:vn,withinInteractionLimit:ln,validateAction:un},gn={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(t,n){var e=t.interaction,i=t.eventTarget,r=t.dy;if("drag"===e.prepared.name){var o=Math.abs(t.dx),a=Math.abs(r),s=e.interactable.options.drag,u=s.startAxis,c=o>a?"x":o<a?"y":"xy";if(e.prepared.axis="start"===s.lockAxis?c[0]:s.lockAxis,"xy"!==c&&"xy"!==u&&u!==c){e.prepared.name=null;for(var f=i,h=function(t){if(t!==e.interactable){var r=e.interactable.options.drag;if(!r.manualStart&&t.testIgnoreAllow(r,f,i)){var o=t.getAction(e.downPointer,e.downEvent,e,f);if(o&&"drag"===o.name&&function(t,n){if(!n)return!1;var e=n.options.drag.startAxis;return"xy"===t||"xy"===e||e===t}(c,t)&&yn.validateAction(o,t,f,i,n))return t}}};I(f);){var l=n.interactables.forEachMatch(f,h);if(l){e.prepared.name="drag",e.interactable=l,e.element=f;break}f=U(f)}}}}}};function mn(t){var n=t.prepared&&t.prepared.name;if(!n)return null;var e=t.interactable.options;return e[n].hold||e[n].delay}var bn={id:"auto-start/hold",install:function(t){var n=t.defaults;t.usePlugin(yn),n.perAction.hold=0,n.perAction.delay=0},listeners:{"interactions:new":function(t){t.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(t){var n=t.interaction,e=mn(n);e>0&&(n.autoStartHoldTimer=setTimeout((function(){n.start(n.prepared,n.interactable,n.element)}),e))},"interactions:move":function(t){var n=t.interaction;n.autoStartHoldTimer&&n.pointerWasMoved&&!t.duplicate&&(clearTimeout(n.autoStartHoldTimer),n.autoStartHoldTimer=null)},"autoStart:before-start":function(t){var n=t.interaction;mn(n)>0&&(n.prepared.name=null)}},getHoldDuration:mn},wn={id:"auto-start",install:function(t){t.usePlugin(yn),t.usePlugin(bn),t.usePlugin(gn)}},kn=function(t){return/^(always|never|auto)$/.test(t)?(this.options.preventDefault=t,this):S(t)?(this.options.preventDefault=t?"always":"never",this):this.options.preventDefault};function xn(t){var n=t.interaction;n.interactable&&n.interactable.checkAndPreventDefault(t.event)}var Mn={id:"core/interactablePreventDefault",install:function(t){var n=t.Interactable;n.prototype.preventDefault=kn,n.prototype.checkAndPreventDefault=function(n){return function(t,n,e){var i=t.options.preventDefault;if("never"!==i)if("always"!==i){if(n.events.supportsPassive&&/^touch(start|move)$/.test(e.type)){var r=b(e.target).document,o=n.getDocOptions(r);if(!o||!o.events||!1!==o.events.passive)return}/^(mouse|pointer|touch)*(down|start)/i.test(e.type)||I(e.target)&&V(e.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||e.preventDefault()}else e.preventDefault()}(this,t,n)},t.interactions.docEvents.push({type:"dragstart",listener:function(n){for(var e=0,i=t.interactions.list;e<i.length;e++){var r=i[e];if(r.element&&(r.element===n.target||L(r.element,n.target)))return void r.interactable.checkAndPreventDefault(n)}}})},listeners:["down","move","up","cancel"].reduce((function(t,n){return t["interactions:".concat(n)]=xn,t}),{})};function En(t,n){if(n.phaselessTypes[t])return!0;for(var e in n.map)if(0===t.indexOf(e)&&t.substr(e.length)in n.phases)return!0;return!1}function Tn(t){var n={};for(var e in t){var i=t[e];n[e]=j(i)?Tn(i):P(i)?Ot(i):i}return n}var On=function(){function t(n){r(this,t),this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.startEdges=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=n,this.result=Sn(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return a(t,[{key:"start",value:function(t,n){var e,i,r=t.phase,o=this.interaction,a=function(t){var n=t.interactable.options[t.prepared.name],e=n.modifiers;return e&&e.length?e:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map((function(t){var e=n[t];return e&&e.enabled&&{options:e,methods:e._methods}})).filter((function(t){return!!t}))}(o);this.prepareStates(a),this.startEdges=Z({},o.edges),this.edges=Z({},this.startEdges),this.startOffset=(i=n,(e=o.rect)?{left:i.x-e.left,top:i.y-e.top,right:e.right-i.x,bottom:e.bottom-i.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var s=this.fillArg({phase:r,pageCoords:n,preEnd:!1});return this.result=Sn(),this.startAll(s),this.result=this.setAll(s)}},{key:"fillArg",value:function(t){var n=this.interaction;return t.interaction=n,t.interactable=n.interactable,t.element=n.element,t.rect||(t.rect=n.rect),t.edges||(t.edges=this.startEdges),t.startOffset=this.startOffset,t}},{key:"startAll",value:function(t){for(var n=0,e=this.states;n<e.length;n++){var i=e[n];i.methods.start&&(t.state=i,i.methods.start(t))}}},{key:"setAll",value:function(t){var n=t.phase,e=t.preEnd,i=t.skipModifiers,r=t.rect,o=t.edges;t.coords=Z({},t.pageCoords),t.rect=Z({},r),t.edges=Z({},o);for(var a=i?this.states.slice(i):this.states,s=Sn(t.coords,t.rect),u=0;u<a.length;u++){var c,f=a[u],h=f.options,l=Z({},t.coords),v=null;null!=(c=f.methods)&&c.set&&this.shouldDo(h,e,n)&&(t.state=f,v=f.methods.set(t),rt(t.edges,t.rect,{x:t.coords.x-l.x,y:t.coords.y-l.y})),s.eventProps.push(v)}Z(this.edges,t.edges),s.delta.x=t.coords.x-t.pageCoords.x,s.delta.y=t.coords.y-t.pageCoords.y,s.rectDelta.left=t.rect.left-r.left,s.rectDelta.right=t.rect.right-r.right,s.rectDelta.top=t.rect.top-r.top,s.rectDelta.bottom=t.rect.bottom-r.bottom;var d=this.result.coords,p=this.result.rect;return d&&p&&(s.changed=s.rect.left!==p.left||s.rect.right!==p.right||s.rect.top!==p.top||s.rect.bottom!==p.bottom||d.x!==s.coords.x||d.y!==s.coords.y),s}},{key:"applyToInteraction",value:function(t){var n=this.interaction,e=n.coords.cur,i=n.coords.start,r=this.result,o=this.startDelta,a=r.delta;"start"===t.phase&&Z(this.startDelta,r.delta);for(var s=0,u=[[i,o],[e,a]];s<u.length;s++){var c=u[s],f=c[0],h=c[1];f.page.x+=h.x,f.page.y+=h.y,f.client.x+=h.x,f.client.y+=h.y}var l=this.result.rectDelta,v=t.rect||n.rect;v.left+=l.left,v.right+=l.right,v.top+=l.top,v.bottom+=l.bottom,v.width=v.right-v.left,v.height=v.bottom-v.top}},{key:"setAndApply",value:function(t){var n=this.interaction,e=t.skipModifiers,i=this.setAll(this.fillArg({preEnd:t.preEnd,phase:t.phase,pageCoords:t.modifiedCoords||n.coords.cur.page}));if(this.result=i,!i.changed&&(!e||e<this.states.length)&&n.interacting())return!1;if(t.modifiedCoords){var r=n.coords.cur.page,o={x:t.modifiedCoords.x-r.x,y:t.modifiedCoords.y-r.y};i.coords.x+=o.x,i.coords.y+=o.y,i.delta.x+=o.x,i.delta.y+=o.y}this.applyToInteraction(t)}},{key:"beforeEnd",value:function(t){var n=t.interaction,e=t.event,i=this.states;if(i&&i.length){for(var r=!1,o=0;o<i.length;o++){var a=i[o];t.state=a;var s=a.options,u=a.methods,c=u.beforeEnd&&u.beforeEnd(t);if(c)return this.endResult=c,!1;r=r||!r&&this.shouldDo(s,!0,t.phase,!0)}r&&n.move({event:e,preEnd:!0})}}},{key:"stop",value:function(t){var n=t.interaction;if(this.states&&this.states.length){var e=Z({states:this.states,interactable:n.interactable,element:n.element,rect:null},t);this.fillArg(e);for(var i=0,r=this.states;i<r.length;i++){var o=r[i];e.state=o,o.methods.stop&&o.methods.stop(e)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(t){this.states=[];for(var n=0;n<t.length;n++){var e=t[n];this.states.push({options:e.options,methods:e.methods,index:n,name:e.name})}return this.states}},{key:"restoreInteractionCoords",value:function(t){var n=t.interaction,e=n.coords,i=n.rect,r=n.modification;if(r.result){for(var o=r.result,a=o.rectDelta,s=0,u=[[e.start,r.startDelta],[e.cur,o.delta]];s<u.length;s++){var c=u[s],f=c[0],h=c[1];f.page.x-=h.x,f.page.y-=h.y,f.client.x-=h.x,f.client.y-=h.y}i.left-=a.left,i.right-=a.right,i.top-=a.top,i.bottom-=a.bottom}}},{key:"shouldDo",value:function(t,n,e,i){return!(!t||!1===t.enabled||i&&!t.endOnly||t.endOnly&&!n||"start"===e&&!t.setStart)}},{key:"copyFrom",value:function(t){this.startOffset=t.startOffset,this.startDelta=t.startDelta,this.startEdges=t.startEdges,this.edges=t.edges,this.states=t.states.map((function(t){return Tn(t)})),this.result=Sn(Z({},t.result.coords),Z({},t.result.rect))}},{key:"destroy",value:function(){for(var t in this)this[t]=null}}]),t}();function Sn(t,n){return{rect:n,coords:t,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function zn(t,n){var e=t.defaults,i={start:t.start,set:t.set,beforeEnd:t.beforeEnd,stop:t.stop},r=function(t){var r=t||{};for(var o in r.enabled=!1!==r.enabled,e)o in r||(r[o]=e[o]);var a={options:r,methods:i,name:n,enable:function(){return r.enabled=!0,a},disable:function(){return r.enabled=!1,a}};return a};return n&&"string"==typeof n&&(r._defaults=e,r._methods=i),r}function In(t){var n=t.interaction.modification.result;n&&(t.iEvent.modifiers=n.eventProps)}var jn={id:"modifiers/base",before:["actions"],install:function(t){t.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(t){var n=t.interaction;n.modification=new On(n)},"interactions:before-action-start":function(t){var n=t.interaction,e=t.interaction.modification;e.start(t,n.coords.start.page),n.edges=e.edges,e.applyToInteraction(t)},"interactions:before-action-move":function(t){var n=t.interaction,e=n.modification,i=e.setAndApply(t);return n.edges=e.edges,i},"interactions:before-action-end":function(t){var n=t.interaction,e=n.modification,i=e.beforeEnd(t);return n.edges=e.startEdges,i},"interactions:action-start":In,"interactions:action-move":In,"interactions:action-end":In,"interactions:after-action-start":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:after-action-move":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:stop":function(t){return t.interaction.modification.stop(t)}}},Pn={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Dn=function(t){u(e,t);var n=l(e);function e(t,i,o,a,s,u,c){var f;r(this,e),(f=n.call(this,t)).relatedTarget=null,f.screenX=void 0,f.screenY=void 0,f.button=void 0,f.buttons=void 0,f.ctrlKey=void 0,f.shiftKey=void 0,f.altKey=void 0,f.metaKey=void 0,f.page=void 0,f.client=void 0,f.delta=void 0,f.rect=void 0,f.x0=void 0,f.y0=void 0,f.t0=void 0,f.dt=void 0,f.duration=void 0,f.clientX0=void 0,f.clientY0=void 0,f.velocity=void 0,f.speed=void 0,f.swipe=void 0,f.axes=void 0,f.preEnd=void 0;var l=t.interactable,v=(l&&l.options||Pn).deltaSource,d=ot(l,s=s||t.element,o),p="start"===a,y="end"===a,g=p?h(f):t.prevEvent,m=p?t.coords.start:y?{page:g.page,client:g.client,timeStamp:t.coords.cur.timeStamp}:t.coords.cur;return f.page=Z({},m.page),f.client=Z({},m.client),f.rect=Z({},t.rect),f.timeStamp=m.timeStamp,y||(f.page.x-=d.x,f.page.y-=d.y,f.client.x-=d.x,f.client.y-=d.y),f.ctrlKey=i.ctrlKey,f.altKey=i.altKey,f.shiftKey=i.shiftKey,f.metaKey=i.metaKey,f.button=i.button,f.buttons=i.buttons,f.target=s,f.currentTarget=s,f.preEnd=u,f.type=c||o+(a||""),f.interactable=l,f.t0=p?t.pointers[t.pointers.length-1].downTime:g.t0,f.x0=t.coords.start.page.x-d.x,f.y0=t.coords.start.page.y-d.y,f.clientX0=t.coords.start.client.x-d.x,f.clientY0=t.coords.start.client.y-d.y,f.delta=p||y?{x:0,y:0}:{x:f[v].x-g[v].x,y:f[v].y-g[v].y},f.dt=t.coords.delta.timeStamp,f.duration=f.timeStamp-f.t0,f.velocity=Z({},t.coords.velocity[v]),f.speed=ut(f.velocity.x,f.velocity.y),f.swipe=y||"inertiastart"===a?f.getSwipe():null,f}return a(e,[{key:"getSwipe",value:function(){var t=this._interaction;if(t.prevEvent.speed<600||this.timeStamp-t.prevEvent.timeStamp>150)return null;var n=180*Math.atan2(t.prevEvent.velocityY,t.prevEvent.velocityX)/Math.PI;n<0&&(n+=360);var e=112.5<=n&&n<247.5,i=202.5<=n&&n<337.5;return{up:i,down:!i&&22.5<=n&&n<157.5,left:e,right:!e&&(292.5<=n||n<67.5),angle:n,speed:t.prevEvent.speed,velocity:{x:t.prevEvent.velocityX,y:t.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),e}(Et);Object.defineProperties(Dn.prototype,{pageX:{get:function(){return this.page.x},set:function(t){this.page.x=t}},pageY:{get:function(){return this.page.y},set:function(t){this.page.y=t}},clientX:{get:function(){return this.client.x},set:function(t){this.client.x=t}},clientY:{get:function(){return this.client.y},set:function(t){this.client.y=t}},dx:{get:function(){return this.delta.x},set:function(t){this.delta.x=t}},dy:{get:function(){return this.delta.y},set:function(t){this.delta.y=t}},velocityX:{get:function(){return this.velocity.x},set:function(t){this.velocity.x=t}},velocityY:{get:function(){return this.velocity.y},set:function(t){this.velocity.y=t}}});var Rn=a((function t(n,e,i,o,a){r(this,t),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=n,this.pointer=e,this.event=i,this.downTime=o,this.downTarget=a})),_n=function(t){return t.interactable="",t.element="",t.prepared="",t.pointerIsDown="",t.pointerWasMoved="",t._proxy="",t}({}),An=function(t){return t.start="",t.move="",t.end="",t.stop="",t.interacting="",t}({}),Cn=0,Fn=function(){function t(n){var e=this,i=n.pointerType,o=n.scopeFire;r(this,t),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=en((function(t){this.move(t)}),"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=Cn++,this._scopeFire=o,this.pointerType=i;var a=this;this._proxy={};var s=function(t){Object.defineProperty(e._proxy,t,{get:function(){return a[t]}})};for(var u in _n)s(u);var c=function(t){Object.defineProperty(e._proxy,t,{value:function(){return a[t].apply(a,arguments)}})};for(var f in An)c(f);this._scopeFire("interactions:new",{interaction:this})}return a(t,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(t,n,e){var i=this.updatePointer(t,n,e,!0);this._scopeFire("interactions:down",{pointer:t,event:n,eventTarget:e,pointerIndex:i,pointerInfo:this.pointers[i],type:"down",interaction:this})}},{key:"start",value:function(t,n,e){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<("gesture"===t.name?2:1)||!n.options[t.name].enabled)&&(rn(this.prepared,t),this.interactable=n,this.element=e,this.rect=n.getRect(e),this.edges=this.prepared.edges?Z({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(t,n,e){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(t,n,e,!1);var i,r,o=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(this.pointerWasMoved=ut(i=this.coords.cur.client.x-this.coords.start.client.x,r=this.coords.cur.client.y-this.coords.start.client.y)>this.pointerMoveTolerance);var a,s,u,c=this.getPointerIndex(t),f={pointer:t,pointerIndex:c,pointerInfo:this.pointers[c],event:n,type:"move",eventTarget:e,dx:i,dy:r,duplicate:o,interaction:this};o||(a=this.coords.velocity,s=this.coords.delta,u=Math.max(s.timeStamp/1e3,.001),a.page.x=s.page.x/u,a.page.y=s.page.y/u,a.client.x=s.client.x/u,a.client.y=s.client.y/u,a.timeStamp=u),this._scopeFire("interactions:move",f),o||this.simulation||(this.interacting()&&(f.type=null,this.move(f)),this.pointerWasMoved&&ht(this.coords.prev,this.coords.cur))}},{key:"move",value:function(t){t&&t.event||lt(this.coords.delta),(t=Z({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},t||{})).phase="move",this._doPhase(t)}},{key:"pointerUp",value:function(t,n,e,i){var r=this.getPointerIndex(t);-1===r&&(r=this.updatePointer(t,n,e,!1));var o=/cancel$/i.test(n.type)?"cancel":"up";this._scopeFire("interactions:".concat(o),{pointer:t,pointerIndex:r,pointerInfo:this.pointers[r],event:n,eventTarget:e,type:o,curEventTarget:i,interaction:this}),this.simulation||this.end(n),this.removePointer(t,n)}},{key:"documentBlur",value:function(t){this.end(t),this._scopeFire("interactions:blur",{event:t,type:"blur",interaction:this})}},{key:"end",value:function(t){var n;this._ending=!0,t=t||this._latestPointer.event,this.interacting()&&(n=this._doPhase({event:t,interaction:this,phase:"end"})),this._ending=!1,!0===n&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(t){var n=yt(t);return"mouse"===this.pointerType||"pen"===this.pointerType?this.pointers.length-1:St(this.pointers,(function(t){return t.id===n}))}},{key:"getPointerInfo",value:function(t){return this.pointers[this.getPointerIndex(t)]}},{key:"updatePointer",value:function(t,n,e,i){var r,o,a,s=yt(t),u=this.getPointerIndex(t),c=this.pointers[u];return i=!1!==i&&(i||/(down|start)$/i.test(n.type)),c?c.pointer=t:(c=new Rn(s,t,n,null,null),u=this.pointers.length,this.pointers.push(c)),function(t,n,e){var i=n.length>1?mt(n):n[0];pt(i,t.page),function(t,n){n=n||{},$.isOperaMobile&&vt(t)?dt("screen",t,n):dt("client",t,n)}(i,t.client),t.timeStamp=e}(this.coords.cur,this.pointers.map((function(t){return t.pointer})),this._now()),(r=this.coords.delta).page.x=(a=this.coords.cur).page.x-(o=this.coords.prev).page.x,r.page.y=a.page.y-o.page.y,r.client.x=a.client.x-o.client.x,r.client.y=a.client.y-o.client.y,r.timeStamp=a.timeStamp-o.timeStamp,i&&(this.pointerIsDown=!0,c.downTime=this.coords.cur.timeStamp,c.downTarget=e,ft(this.downPointer,t),this.interacting()||(ht(this.coords.start,this.coords.cur),ht(this.coords.prev,this.coords.cur),this.downEvent=n,this.pointerWasMoved=!1)),this._updateLatestPointer(t,n,e),this._scopeFire("interactions:update-pointer",{pointer:t,event:n,eventTarget:e,down:i,pointerInfo:c,pointerIndex:u,interaction:this}),u}},{key:"removePointer",value:function(t,n){var e=this.getPointerIndex(t);-1!==e&&(this._scopeFire("interactions:remove-pointer",{pointer:t,event:n,eventTarget:null,pointerIndex:e,pointerInfo:this.pointers[e],interaction:this}),this.pointers.splice(e,1),this.pointerIsDown=!1)}},{key:"_updateLatestPointer",value:function(t,n,e){this._latestPointer.pointer=t,this._latestPointer.event=n,this._latestPointer.eventTarget=e}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(t,n,e,i){return new Dn(this,t,this.prepared.name,n,this.element,e,i)}},{key:"_fireEvent",value:function(t){var n;null==(n=this.interactable)||n.fire(t),(!this.prevEvent||t.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=t)}},{key:"_doPhase",value:function(t){var n=t.event,e=t.phase,i=t.preEnd,r=t.type,o=this.rect;if(o&&"move"===e&&(rt(this.edges,o,this.coords.delta[this.interactable.options.deltaSource]),o.width=o.right-o.left,o.height=o.bottom-o.top),!1===this._scopeFire("interactions:before-action-".concat(e),t))return!1;var a=t.iEvent=this._createPreparedEvent(n,e,i,r);return this._scopeFire("interactions:action-".concat(e),t),"start"===e&&(this.prevEvent=a),this._fireEvent(a),this._scopeFire("interactions:after-action-".concat(e),t),!0}},{key:"_now",value:function(){return Date.now()}}]),t}();function Xn(t){Yn(t.interaction)}function Yn(t){if(!function(t){return!(!t.offset.pending.x&&!t.offset.pending.y)}(t))return!1;var n=t.offset.pending;return Ln(t.coords.cur,n),Ln(t.coords.delta,n),rt(t.edges,t.rect,n),n.x=0,n.y=0,!0}function $n(t){var n=t.x,e=t.y;this.offset.pending.x+=n,this.offset.pending.y+=e,this.offset.total.x+=n,this.offset.total.y+=e}function Ln(t,n){var e=t.page,i=t.client,r=n.x,o=n.y;e.x+=r,e.y+=o,i.x+=r,i.y+=o}An.offsetBy="";var Nn={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(t){t.Interaction.prototype.offsetBy=$n},listeners:{"interactions:new":function(t){t.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(t){return function(t){t.pointerIsDown&&(Ln(t.coords.cur,t.offset.total),t.offset.pending.x=0,t.offset.pending.y=0)}(t.interaction)},"interactions:before-action-start":Xn,"interactions:before-action-move":Xn,"interactions:before-action-end":function(t){var n=t.interaction;if(Yn(n))return n.move({offset:!0}),n.end(),!1},"interactions:stop":function(t){var n=t.interaction;n.offset.total.x=0,n.offset.total.y=0,n.offset.pending.x=0,n.offset.pending.y=0}}},Un=function(){function t(n){r(this,t),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=n}return a(t,[{key:"start",value:function(t){var n=this.interaction,e=Vn(n);if(!e||!e.enabled)return!1;var i=n.coords.velocity.client,r=ut(i.x,i.y),o=this.modification||(this.modification=new On(n));if(o.copyFrom(n.modification),this.t0=n._now(),this.allowResume=e.allowResume,this.v0=r,this.currentOffset={x:0,y:0},this.startCoords=n.coords.cur.page,this.modifierArg=o.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-n.coords.cur.timeStamp<50&&r>e.minSpeed&&r>e.endSpeed)this.startInertia();else{if(o.result=o.setAll(this.modifierArg),!o.result.changed)return!1;this.startSmoothEnd()}return n.modification.result.rect=null,n.offsetBy(this.targetOffset),n._doPhase({interaction:n,event:t,phase:"inertiastart"}),n.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),n.modification.result.rect=null,this.active=!0,n.simulation=this,!0}},{key:"startInertia",value:function(){var t=this,n=this.interaction.coords.velocity.client,e=Vn(this.interaction),i=e.resistance,r=-Math.log(e.endSpeed/this.v0)/i;this.targetOffset={x:(n.x-r)/i,y:(n.y-r)/i},this.te=r,this.lambda_v0=i/this.v0,this.one_ve_v0=1-e.endSpeed/this.v0;var o=this.modification,a=this.modifierArg;a.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},o.result=o.setAll(a),o.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+o.result.delta.x,y:this.targetOffset.y+o.result.delta.y}),this.onNextFrame((function(){return t.inertiaTick()}))}},{key:"startSmoothEnd",value:function(){var t=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame((function(){return t.smoothEndTick()}))}},{key:"onNextFrame",value:function(t){var n=this;this.timeout=Wt((function(){n.active&&t()}))}},{key:"inertiaTick",value:function(){var t,n,e,i=this,r=this.interaction,o=Vn(r).resistance,a=(r._now()-this.t0)/1e3;if(a<this.te){var s,u=1-(Math.exp(-o*a)-this.lambda_v0)/this.one_ve_v0;this.isModified?(0,t=this.targetOffset.y,n=this.modifiedOffset.y,s={x:Bn(e=u,0,this.targetOffset.x,this.modifiedOffset.x),y:Bn(e,0,t,n)}):s={x:this.targetOffset.x*u,y:this.targetOffset.y*u};var c={x:s.x-this.currentOffset.x,y:s.y-this.currentOffset.y};this.currentOffset.x+=c.x,this.currentOffset.y+=c.y,r.offsetBy(c),r.move(),this.onNextFrame((function(){return i.inertiaTick()}))}else r.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var t=this,n=this.interaction,e=n._now()-this.t0,i=Vn(n).smoothEndDuration;if(e<i){var r={x:qn(e,0,this.targetOffset.x,i),y:qn(e,0,this.targetOffset.y,i)},o={x:r.x-this.currentOffset.x,y:r.y-this.currentOffset.y};this.currentOffset.x+=o.x,this.currentOffset.y+=o.y,n.offsetBy(o),n.move({skipModifiers:this.modifierCount}),this.onNextFrame((function(){return t.smoothEndTick()}))}else n.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(t){var n=t.pointer,e=t.event,i=t.eventTarget,r=this.interaction;r.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),r.updatePointer(n,e,i,!0),r._doPhase({interaction:r,event:e,phase:"resume"}),ht(r.coords.prev,r.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,Jt(this.timeout)}}]),t}();function Vn(t){var n=t.interactable,e=t.prepared;return n&&n.options&&e.name&&n.options[e.name].inertia}function Bn(t,n,e,i){var r=1-t;return r*r*n+2*r*t*e+t*t*i}function qn(t,n,e,i){return-e*(t/=i)*(t-2)+n}var Gn={id:"inertia",before:["modifiers","actions"],install:function(t){var n=t.defaults;t.usePlugin(Nn),t.usePlugin(jn),t.actions.phases.inertiastart=!0,t.actions.phases.resume=!0,n.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(t){var n=t.interaction;n.inertia=new Un(n)},"interactions:before-action-end":function(t){var n=t.interaction;return(!n._interacting||n.simulation||!n.inertia.start(t.event))&&null},"interactions:down":function(t){var n=t.interaction,e=n.inertia;if(e.active)for(var i=t.eventTarget;I(i);){if(i===n.element){e.resume(t);break}i=U(i)}},"interactions:stop":function(t){var n=t.interaction.inertia;n.active&&n.stop()},"interactions:before-action-resume":function(t){var n=t.interaction.modification;n.stop(t),n.start(t,t.interaction.coords.cur.page),n.applyToInteraction(t)},"interactions:before-action-inertiastart":function(t){return t.interaction.modification.setAndApply(t)},"interactions:action-resume":In,"interactions:action-inertiastart":In,"interactions:after-action-inertiastart":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:after-action-resume":function(t){return t.interaction.modification.restoreInteractionCoords(t)}}};function Hn(t,n){for(var e=0;e<n.length;e++){var i=n[e];if(t.immediatePropagationStopped)break;i(t)}}var Wn=function(){function t(n){r(this,t),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=Z({},n||{})}return a(t,[{key:"fire",value:function(t){var n,e=this.global;(n=this.types[t.type])&&Hn(t,n),!t.propagationStopped&&e&&(n=e[t.type])&&Hn(t,n)}},{key:"on",value:function(t,n){var e=at(t,n);for(t in e)this.types[t]=Tt(this.types[t]||[],e[t])}},{key:"off",value:function(t,n){var e=at(t,n);for(t in e){var i=this.types[t];if(i&&i.length)for(var r=0,o=e[t];r<o.length;r++){var a=i.indexOf(o[r]);-1!==a&&i.splice(a,1)}}}},{key:"getRect",value:function(){return null}}]),t}(),Jn=function(){function t(n){r(this,t),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=n,ft(this,n)}return a(t,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),t}();function Kn(t){return E(t)?{capture:!!t.capture,passive:!!t.passive}:{capture:!!t,passive:!1}}function Qn(t,n){return t===n||("boolean"==typeof t?!!n.capture===t&&0==!!n.passive:!!t.capture==!!n.capture&&!!t.passive==!!n.passive)}var Zn={id:"events",install:function(t){var n,e=[],i={},r=[],o={add:a,remove:s,addDelegate:function(t,n,e,o,s){var f=Kn(s);if(!i[e]){i[e]=[];for(var h=0;h<r.length;h++){var l=r[h];a(l,e,u),a(l,e,c,!0)}}var v=i[e],d=zt(v,(function(e){return e.selector===t&&e.context===n}));d||v.push(d={selector:t,context:n,listeners:[]}),d.listeners.push({func:o,options:f})},removeDelegate:function(t,n,e,r,o){var a,f=Kn(o),h=i[e],l=!1;if(h)for(a=h.length-1;a>=0;a--){var v=h[a];if(v.selector===t&&v.context===n){for(var d=v.listeners,p=d.length-1;p>=0;p--){var y=d[p];if(y.func===r&&Qn(y.options,f)){d.splice(p,1),d.length||(h.splice(a,1),s(n,e,u),s(n,e,c,!0)),l=!0;break}}if(l)break}}},delegateListener:u,delegateUseCapture:c,delegatedEvents:i,documents:r,targets:e,supportsOptions:!1,supportsPassive:!1};function a(t,n,i,r){if(t.addEventListener){var a=Kn(r),s=zt(e,(function(n){return n.eventTarget===t}));s||e.push(s={eventTarget:t,events:{}}),s.events[n]||(s.events[n]=[]),zt(s.events[n],(function(t){return t.func===i&&Qn(t.options,a)}))||(t.addEventListener(n,i,o.supportsOptions?a:a.capture),s.events[n].push({func:i,options:a}))}}function s(t,n,i,r){if(t.addEventListener&&t.removeEventListener){var a=St(e,(function(n){return n.eventTarget===t})),u=e[a];if(u&&u.events)if("all"!==n){var c=!1,f=u.events[n];if(f){if("all"===i){for(var h=f.length-1;h>=0;h--){var l=f[h];s(t,n,l.func,l.options)}return}for(var v=Kn(r),d=0;d<f.length;d++){var p=f[d];if(p.func===i&&Qn(p.options,v)){t.removeEventListener(n,i,o.supportsOptions?v:v.capture),f.splice(d,1),0===f.length&&(delete u.events[n],c=!0);break}}}c&&!Object.keys(u.events).length&&e.splice(a,1)}else for(n in u.events)u.events.hasOwnProperty(n)&&s(t,n,"all")}}function u(t,n){for(var e=Kn(n),r=new Jn(t),o=i[t.type],a=Mt(t)[0],s=a;I(s);){for(var u=0;u<o.length;u++){var c=o[u],f=c.context;if(V(s,c.selector)&&L(f,a)&&L(f,s)){var h=c.listeners;r.currentTarget=s;for(var l=0;l<h.length;l++){var v=h[l];Qn(v.options,e)&&v.func(r)}}}s=U(s)}}function c(t){return u(t,!0)}return null==(n=t.document)||n.createElement("div").addEventListener("test",null,{get capture(){return o.supportsOptions=!0},get passive(){return o.supportsPassive=!0}}),t.events=o,o}},te={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(t){for(var n=0,e=te.methodOrder;n<e.length;n++){var i=te[e[n]](t);if(i)return i}return null},simulationResume:function(t){var n=t.pointerType,e=t.eventTarget,i=t.scope;if(!/down|start/i.test(t.eventType))return null;for(var r=0,o=i.interactions.list;r<o.length;r++){var a=o[r],s=e;if(a.simulation&&a.simulation.allowResume&&a.pointerType===n)for(;s;){if(s===a.element)return a;s=U(s)}}return null},mouseOrPen:function(t){var n,e=t.pointerId,i=t.pointerType,r=t.eventType,o=t.scope;if("mouse"!==i&&"pen"!==i)return null;for(var a=0,s=o.interactions.list;a<s.length;a++){var u=s[a];if(u.pointerType===i){if(u.simulation&&!ne(u,e))continue;if(u.interacting())return u;n||(n=u)}}if(n)return n;for(var c=0,f=o.interactions.list;c<f.length;c++){var h=f[c];if(!(h.pointerType!==i||/down/i.test(r)&&h.simulation))return h}return null},hasPointer:function(t){for(var n=t.pointerId,e=0,i=t.scope.interactions.list;e<i.length;e++){var r=i[e];if(ne(r,n))return r}return null},idle:function(t){for(var n=t.pointerType,e=0,i=t.scope.interactions.list;e<i.length;e++){var r=i[e];if(1===r.pointers.length){var o=r.interactable;if(o&&(!o.options.gesture||!o.options.gesture.enabled))continue}else if(r.pointers.length>=2)continue;if(!r.interacting()&&n===r.pointerType)return r}return null}};function ne(t,n){return t.pointers.some((function(t){return t.id===n}))}var ee=te,ie=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function re(t,n){return function(e){var i=n.interactions.list,r=xt(e),o=Mt(e),a=o[0],s=o[1],u=[];if(/^touch/.test(e.type)){n.prevTouchTime=n.now();for(var c=0,f=e.changedTouches;c<f.length;c++){var h=f[c],l={pointer:h,pointerId:yt(h),pointerType:r,eventType:e.type,eventTarget:a,curEventTarget:s,scope:n},v=oe(l);u.push([l.pointer,l.eventTarget,l.curEventTarget,v])}}else{var d=!1;if(!$.supportsPointerEvent&&/mouse/.test(e.type)){for(var p=0;p<i.length&&!d;p++)d="mouse"!==i[p].pointerType&&i[p].pointerIsDown;d=d||n.now()-n.prevTouchTime<500||0===e.timeStamp}if(!d){var y={pointer:e,pointerId:yt(e),pointerType:r,eventType:e.type,curEventTarget:s,eventTarget:a,scope:n},g=oe(y);u.push([y.pointer,y.eventTarget,y.curEventTarget,g])}}for(var m=0;m<u.length;m++){var b=u[m];b[3][t](b[0],e,b[1],b[2])}}}function oe(t){var n=t.pointerType,e=t.scope,i={interaction:ee.search(t),searchDetails:t};return e.fire("interactions:find",i),i.interaction||e.interactions.new({pointerType:n})}function ae(t,n){var e=t.doc,i=t.scope,r=t.options,o=i.interactions.docEvents,a=i.events,s=a[n];for(var u in i.browser.isIOS&&!r.events&&(r.events={passive:!1}),a.delegatedEvents)s(e,u,a.delegateListener),s(e,u,a.delegateUseCapture,!0);for(var c=r&&r.events,f=0;f<o.length;f++){var h=o[f];s(e,h.type,h.listener,c)}}var se={id:"core/interactions",install:function(t){for(var n={},e=0;e<ie.length;e++){var i=ie[e];n[i]=re(i,t)}var o,s=$.pEventTypes;function c(){for(var n=0,e=t.interactions.list;n<e.length;n++){var i=e[n];if(i.pointerIsDown&&"touch"===i.pointerType&&!i._interacting)for(var r=function(){var n=a[o];t.documents.some((function(t){return L(t.doc,n.downTarget)}))||i.removePointer(n.pointer,n.event)},o=0,a=i.pointers;o<a.length;o++)r()}}(o=X.PointerEvent?[{type:s.down,listener:c},{type:s.down,listener:n.pointerDown},{type:s.move,listener:n.pointerMove},{type:s.up,listener:n.pointerUp},{type:s.cancel,listener:n.pointerUp}]:[{type:"mousedown",listener:n.pointerDown},{type:"mousemove",listener:n.pointerMove},{type:"mouseup",listener:n.pointerUp},{type:"touchstart",listener:c},{type:"touchstart",listener:n.pointerDown},{type:"touchmove",listener:n.pointerMove},{type:"touchend",listener:n.pointerUp},{type:"touchcancel",listener:n.pointerUp}]).push({type:"blur",listener:function(n){for(var e=0,i=t.interactions.list;e<i.length;e++)i[e].documentBlur(n)}}),t.prevTouchTime=0,t.Interaction=function(n){u(i,n);var e=l(i);function i(){return r(this,i),e.apply(this,arguments)}return a(i,[{key:"pointerMoveTolerance",get:function(){return t.interactions.pointerMoveTolerance},set:function(n){t.interactions.pointerMoveTolerance=n}},{key:"_now",value:function(){return t.now()}}]),i}(Fn),t.interactions={list:[],new:function(n){n.scopeFire=function(n,e){return t.fire(n,e)};var e=new t.Interaction(n);return t.interactions.list.push(e),e},listeners:n,docEvents:o,pointerMoveTolerance:1},t.usePlugin(Mn)},listeners:{"scope:add-document":function(t){return ae(t,"add")},"scope:remove-document":function(t){return ae(t,"remove")},"interactable:unset":function(t,n){for(var e=t.interactable,i=n.interactions.list.length-1;i>=0;i--){var r=n.interactions.list[i];r.interactable===e&&(r.stop(),n.fire("interactions:destroy",{interaction:r}),r.destroy(),n.interactions.list.length>2&&n.interactions.list.splice(i,1))}}},onDocSignal:ae,doOnInteractions:re,methodNames:ie},ue=function(t){return t[t.On=0]="On",t[t.Off=1]="Off",t}(ue||{}),ce=function(){function t(n,e,i,o){r(this,t),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new Wn,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=e.actions,this.target=n,this._context=e.context||i,this._win=b(Q(n)?this._context:n),this._doc=this._win.document,this._scopeEvents=o,this.set(e)}return a(t,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(t,n){return T(n.onstart)&&this.on("".concat(t,"start"),n.onstart),T(n.onmove)&&this.on("".concat(t,"move"),n.onmove),T(n.onend)&&this.on("".concat(t,"end"),n.onend),T(n.oninertiastart)&&this.on("".concat(t,"inertiastart"),n.oninertiastart),this}},{key:"updatePerActionListeners",value:function(t,n,e){var i,r=this,o=null==(i=this._actions.map[t])?void 0:i.filterEventType,a=function(t){return(null==o||o(t))&&En(t,r._actions)};(P(n)||E(n))&&this._onOff(ue.Off,t,n,void 0,a),(P(e)||E(e))&&this._onOff(ue.On,t,e,void 0,a)}},{key:"setPerAction",value:function(t,n){var e=this._defaults;for(var i in n){var r=i,o=this.options[t],a=n[r];"listeners"===r&&this.updatePerActionListeners(t,o.listeners,a),P(a)?o[r]=Ot(a):j(a)?(o[r]=Z(o[r]||{},Tn(a)),E(e.perAction[r])&&"enabled"in e.perAction[r]&&(o[r].enabled=!1!==a.enabled)):S(a)&&E(e.perAction[r])?o[r].enabled=a:o[r]=a}}},{key:"getRect",value:function(t){return t=t||(I(this.target)?this.target:null),z(this.target)&&(t=t||this._context.querySelector(this.target)),J(t)}},{key:"rectChecker",value:function(t){var n=this;return T(t)?(this.getRect=function(e){var i=Z({},t.apply(n,e));return"width"in i||(i.width=i.right-i.left,i.height=i.bottom-i.top),i},this):null===t?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(t,n){if(Q(n)||E(n)){for(var e in this.options[t]=n,this._actions.map)this.options[e][t]=n;return this}return this.options[t]}},{key:"origin",value:function(t){return this._backCompatOption("origin",t)}},{key:"deltaSource",value:function(t){return"page"===t||"client"===t?(this.options.deltaSource=t,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var t=this.target;return z(t)?Array.from(this._context.querySelectorAll(t)):T(t)&&t.getAllElements?t.getAllElements():I(t)?[t]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(t){return this._context===t.ownerDocument||L(this._context,t)}},{key:"testIgnoreAllow",value:function(t,n,e){return!this.testIgnore(t.ignoreFrom,n,e)&&this.testAllow(t.allowFrom,n,e)}},{key:"testAllow",value:function(t,n,e){return!t||!!I(e)&&(z(t)?G(e,t,n):!!I(t)&&L(t,e))}},{key:"testIgnore",value:function(t,n,e){return!(!t||!I(e))&&(z(t)?G(e,t,n):!!I(t)&&L(t,e))}},{key:"fire",value:function(t){return this.events.fire(t),this}},{key:"_onOff",value:function(t,n,e,i,r){E(n)&&!P(n)&&(i=e,e=null);var o=at(n,e,r);for(var a in o){"wheel"===a&&(a=$.wheelEvent);for(var s=0,u=o[a];s<u.length;s++){var c=u[s];En(a,this._actions)?this.events[t===ue.On?"on":"off"](a,c):z(this.target)?this._scopeEvents[t===ue.On?"addDelegate":"removeDelegate"](this.target,this._context,a,c,i):this._scopeEvents[t===ue.On?"add":"remove"](this.target,a,c,i)}}return this}},{key:"on",value:function(t,n,e){return this._onOff(ue.On,t,n,e)}},{key:"off",value:function(t,n,e){return this._onOff(ue.Off,t,n,e)}},{key:"set",value:function(t){var n=this._defaults;for(var e in E(t)||(t={}),this.options=Tn(n.base),this._actions.methodDict){var i=e,r=this._actions.methodDict[i];this.options[i]={},this.setPerAction(i,Z(Z({},n.perAction),n.actions[i])),this[r](t[i])}for(var o in t)"getRect"!==o?T(this[o])&&this[o](t[o]):this.rectChecker(t.getRect);return this}},{key:"unset",value:function(){if(z(this.target))for(var t in this._scopeEvents.delegatedEvents)for(var n=this._scopeEvents.delegatedEvents[t],e=n.length-1;e>=0;e--){var i=n[e],r=i.listeners;i.selector===this.target&&i.context===this._context&&n.splice(e,1);for(var o=r.length-1;o>=0;o--)this._scopeEvents.removeDelegate(this.target,this._context,t,r[o][0],r[o][1])}else this._scopeEvents.remove(this.target,"all")}}]),t}(),fe=function(){function t(n){var e=this;r(this,t),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=n,n.addListeners({"interactable:unset":function(t){var n=t.interactable,i=n.target,r=z(i)?e.selectorMap[i]:i[e.scope.id],o=St(r,(function(t){return t===n}));r.splice(o,1)}})}return a(t,[{key:"new",value:function(t,n){n=Z(n||{},{actions:this.scope.actions});var e=new this.scope.Interactable(t,n,this.scope.document,this.scope.events);return this.scope.addDocument(e._doc),this.list.push(e),z(t)?(this.selectorMap[t]||(this.selectorMap[t]=[]),this.selectorMap[t].push(e)):(e.target[this.scope.id]||Object.defineProperty(t,this.scope.id,{value:[],configurable:!0}),t[this.scope.id].push(e)),this.scope.fire("interactable:new",{target:t,options:n,interactable:e,win:this.scope._win}),e}},{key:"getExisting",value:function(t,n){var e=n&&n.context||this.scope.document,i=z(t),r=i?this.selectorMap[t]:t[this.scope.id];if(r)return zt(r,(function(n){return n._context===e&&(i||n.inContext(t))}))}},{key:"forEachMatch",value:function(t,n){for(var e=0,i=this.list;e<i.length;e++){var r=i[e],o=void 0;if((z(r.target)?I(t)&&V(t,r.target):t===r.target)&&r.inContext(t)&&(o=n(r)),void 0!==o)return o}}}]),t}();function he(t){return t&&t.replace(/\/.*$/,"")}var le=new(function(){function t(){var n=this;r(this,t),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=$,this.defaults=Tn(Pn),this.Eventable=Wn,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(t){var n=function n(e,i){var r=t.interactables.getExisting(e,i);return r||((r=t.interactables.new(e,i)).events.global=n.globalEvents),r};return n.getPointerAverage=mt,n.getTouchBBox=bt,n.getTouchDistance=wt,n.getTouchAngle=kt,n.getElementRect=J,n.getElementClientRect=W,n.matchesSelector=V,n.closest=N,n.globalEvents={},n.version="1.10.26",n.scope=t,n.use=function(t,n){return this.scope.usePlugin(t,n),this},n.isSet=function(t,n){return!!this.scope.interactables.get(t,n&&n.context)},n.on=en((function(t,n,e){if(z(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),P(t)){for(var i=0,r=t;i<r.length;i++)this.on(r[i],n,e);return this}if(E(t)){for(var o in t)this.on(o,t[o],n);return this}return En(t,this.scope.actions)?this.globalEvents[t]?this.globalEvents[t].push(n):this.globalEvents[t]=[n]:this.scope.events.add(this.scope.document,t,n,{options:e}),this}),"The interact.on() method is being deprecated"),n.off=en((function(t,n,e){if(z(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),P(t)){for(var i=0,r=t;i<r.length;i++)this.off(r[i],n,e);return this}if(E(t)){for(var o in t)this.off(o,t[o],n);return this}var a;return En(t,this.scope.actions)?t in this.globalEvents&&-1!==(a=this.globalEvents[t].indexOf(n))&&this.globalEvents[t].splice(a,1):this.scope.events.remove(this.scope.document,t,n,e),this}),"The interact.off() method is being deprecated"),n.debug=function(){return this.scope},n.supportsTouch=function(){return $.supportsTouch},n.supportsPointerEvent=function(){return $.supportsPointerEvent},n.stop=function(){for(var t=0,n=this.scope.interactions.list;t<n.length;t++)n[t].stop();return this},n.pointerMoveTolerance=function(t){return O(t)?(this.scope.interactions.pointerMoveTolerance=t,this):this.scope.interactions.pointerMoveTolerance},n.addDocument=function(t,n){this.scope.addDocument(t,n)},n.removeDocument=function(t){this.scope.removeDocument(t)},n}(this),this.InteractEvent=Dn,this.Interactable=void 0,this.interactables=new fe(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(t){return n.removeDocument(t.target)};var e=this;this.Interactable=function(t){u(i,t);var n=l(i);function i(){return r(this,i),n.apply(this,arguments)}return a(i,[{key:"_defaults",get:function(){return e.defaults}},{key:"set",value:function(t){return v(c(i.prototype),"set",this).call(this,t),e.fire("interactable:set",{options:t,interactable:this}),this}},{key:"unset",value:function(){v(c(i.prototype),"unset",this).call(this);var t=e.interactables.list.indexOf(this);t<0||(e.interactables.list.splice(t,1),e.fire("interactable:unset",{interactable:this}))}}]),i}(ce)}return a(t,[{key:"addListeners",value:function(t,n){this.listenerMaps.push({id:n,map:t})}},{key:"fire",value:function(t,n){for(var e=0,i=this.listenerMaps;e<i.length;e++){var r=i[e].map[t];if(r&&!1===r(n,this,t))return!1}}},{key:"init",value:function(t){return this.isInitialized?this:function(t,n){return t.isInitialized=!0,x(n)&&m(n),X.init(n),$.init(n),Kt(n),t.window=n,t.document=n.document,t.usePlugin(se),t.usePlugin(Zn),t}(this,t)}},{key:"pluginIsInstalled",value:function(t){var n=t.id;return n?!!this._plugins.map[n]:-1!==this._plugins.list.indexOf(t)}},{key:"usePlugin",value:function(t,n){if(!this.isInitialized)return this;if(this.pluginIsInstalled(t))return this;if(t.id&&(this._plugins.map[t.id]=t),this._plugins.list.push(t),t.install&&t.install(this,n),t.listeners&&t.before){for(var e=0,i=this.listenerMaps.length,r=t.before.reduce((function(t,n){return t[n]=!0,t[he(n)]=!0,t}),{});e<i;e++){var o=this.listenerMaps[e].id;if(o&&(r[o]||r[he(o)]))break}this.listenerMaps.splice(e,0,{id:t.id,map:t.listeners})}else t.listeners&&this.listenerMaps.push({id:t.id,map:t.listeners});return this}},{key:"addDocument",value:function(t,n){if(-1!==this.getDocIndex(t))return!1;var e=b(t);n=n?Z({},n):{},this.documents.push({doc:t,options:n}),this.events.documents.push(t),t!==this.document&&this.events.add(e,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:t,window:e,scope:this,options:n})}},{key:"removeDocument",value:function(t){var n=this.getDocIndex(t),e=b(t),i=this.documents[n].options;this.events.remove(e,"unload",this.onWindowUnload),this.documents.splice(n,1),this.events.documents.splice(n,1),this.fire("scope:remove-document",{doc:t,window:e,scope:this,options:i})}},{key:"getDocIndex",value:function(t){for(var n=0;n<this.documents.length;n++)if(this.documents[n].doc===t)return n;return-1}},{key:"getDocOptions",value:function(t){var n=this.getDocIndex(t);return-1===n?null:this.documents[n].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),t}()),ve=le.interactStatic,de="undefined"!=typeof globalThis?globalThis:window;le.init(de);var pe=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(t){var n=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter((function(n){return n[0]in t||n[1]in t})),e=function(e,i){for(var r=t.limits,o=void 0===r?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:r,a=t.offset,s=void 0===a?{x:0,y:0}:a,u={range:t.range,grid:t,x:null,y:null},c=0;c<n.length;c++){var f=n[c],h=f[0],l=f[1],v=Math.round((e-s.x)/t[h]),d=Math.round((i-s.y)/t[l]);u[h]=Math.max(o.left,Math.min(o.right,v*t[h]+s.x)),u[l]=Math.max(o.top,Math.min(o.bottom,d*t[l]+s.y))}return u};return e.grid=t,e.coordFields=n,e}}),ye={id:"snappers",install:function(t){var n=t.interactStatic;n.snappers=Z(n.snappers||{},pe),n.createSnapGrid=n.snappers.grid}};function ge(t,n,e){var i=t.startCoords,r=t.edgeSign;n?e.y=i.y+(e.x-i.x)*r.y:e.x=i.x+(e.y-i.y)*r.x}function me(t,n,e,i){var r=t.startRect,o=t.startCoords,a=t.ratio,s=t.edgeSign;n?e.y=o.y+(i.width/a-r.height)*s.y:e.x=o.x+(i.height*a-r.width)*s.x}var be=zn({start:function(t){var n=t.state,i=t.rect,r=t.edges,o=n.options,a=o.ratio,s=o.enabled,u=n.options,c=u.equalDelta,f=u.modifiers;"preserve"===a&&(a=i.width/i.height),n.startCoords=Z({},t.pageCoords),n.startRect=Z({},i),n.ratio=a,n.equalDelta=c;var h=n.linkedEdges={top:r.top||r.left&&!r.bottom,left:r.left||r.top&&!r.right,bottom:r.bottom||r.right&&!r.top,right:r.right||r.bottom&&!r.left};if(n.xIsPrimaryAxis=!(!r.left&&!r.right),n.equalDelta){var l=(h.left?1:-1)*(h.top?1:-1);n.edgeSign={x:l,y:l}}else n.edgeSign={x:h.left?-1:1,y:h.top?-1:1};if(!1!==s&&Z(r,h),null!=f&&f.length){var v=new On(t.interaction);v.copyFrom(t.interaction.modification),v.prepareStates(f),n.subModification=v,v.startAll(e({},t))}},set:function(t){var n=t.state,i=t.rect,r=t.coords,o=n.linkedEdges,a=Z({},r),s=n.equalDelta?ge:me;if(Z(t.edges,o),s(n,n.xIsPrimaryAxis,r,i),!n.subModification)return null;var u=Z({},i);rt(o,u,{x:r.x-a.x,y:r.y-a.y});var c=n.subModification.setAll(e(e({},t),{},{rect:u,edges:o,pageCoords:r,prevCoords:r,prevRect:u})),f=c.delta;return c.changed&&(s(n,Math.abs(f.x)>Math.abs(f.y),c.coords,c.rect),Z(r,c.coords)),c.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}},"aspectRatio"),we=function(){};we._defaults={};var ke=we;function xe(t,n,e){return T(t)?nt(t,n.interactable,n.element,[e.x,e.y,n]):nt(t,n.interactable,n.element)}var Me={start:function(t){var n=t.rect,e=t.startOffset,i=t.state,r=t.interaction,o=t.pageCoords,a=i.options,s=a.elementRect,u=Z({left:0,top:0,right:0,bottom:0},a.offset||{});if(n&&s){var c=xe(a.restriction,r,o);if(c){var f=c.right-c.left-n.width,h=c.bottom-c.top-n.height;f<0&&(u.left+=f,u.right+=f),h<0&&(u.top+=h,u.bottom+=h)}u.left+=e.left-n.width*s.left,u.top+=e.top-n.height*s.top,u.right+=e.right-n.width*(1-s.right),u.bottom+=e.bottom-n.height*(1-s.bottom)}i.offset=u},set:function(t){var n=t.coords,e=t.state,i=e.offset,r=xe(e.options.restriction,t.interaction,n);if(r){var o=function(t){return!t||"left"in t&&"top"in t||((t=Z({},t)).left=t.x||0,t.top=t.y||0,t.right=t.right||t.left+t.width,t.bottom=t.bottom||t.top+t.height),t}(r);n.x=Math.max(Math.min(o.right-i.right,n.x),o.left+i.left),n.y=Math.max(Math.min(o.bottom-i.bottom,n.y),o.top+i.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},Ee=zn(Me,"restrict"),Te={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Oe={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function Se(t,n){for(var e=0,i=["top","left","bottom","right"];e<i.length;e++){var r=i[e];r in t||(t[r]=n[r])}return t}var ze={noInner:Te,noOuter:Oe,start:function(t){var n,e=t.interaction,i=t.startOffset,r=t.state,o=r.options;o&&(n=et(xe(o.offset,e,e.coords.start.page))),r.offset={top:(n=n||{x:0,y:0}).y+i.top,left:n.x+i.left,bottom:n.y-i.bottom,right:n.x-i.right}},set:function(t){var n=t.coords,e=t.edges,i=t.interaction,r=t.state,o=r.offset,a=r.options;if(e){var s=Z({},n),u=xe(a.inner,i,s)||{},c=xe(a.outer,i,s)||{};Se(u,Te),Se(c,Oe),e.top?n.y=Math.min(Math.max(c.top+o.top,s.y),u.top+o.top):e.bottom&&(n.y=Math.max(Math.min(c.bottom+o.bottom,s.y),u.bottom+o.bottom)),e.left?n.x=Math.min(Math.max(c.left+o.left,s.x),u.left+o.left):e.right&&(n.x=Math.max(Math.min(c.right+o.right,s.x),u.right+o.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},Ie=zn(ze,"restrictEdges"),je=Z({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(t){}},Me.defaults),Pe=zn({start:Me.start,set:Me.set,defaults:je},"restrictRect"),De={width:-1/0,height:-1/0},Re={width:1/0,height:1/0},_e=zn({start:function(t){return ze.start(t)},set:function(t){var n=t.interaction,e=t.state,i=t.rect,r=t.edges,o=e.options;if(r){var a=it(xe(o.min,n,t.coords))||De,s=it(xe(o.max,n,t.coords))||Re;e.options={endOnly:o.endOnly,inner:Z({},ze.noInner),outer:Z({},ze.noOuter)},r.top?(e.options.inner.top=i.bottom-a.height,e.options.outer.top=i.bottom-s.height):r.bottom&&(e.options.inner.bottom=i.top+a.height,e.options.outer.bottom=i.top+s.height),r.left?(e.options.inner.left=i.right-a.width,e.options.outer.left=i.right-s.width):r.right&&(e.options.inner.right=i.left+a.width,e.options.outer.right=i.left+s.width),ze.set(t),e.options=o}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),Ae={start:function(t){var n,e=t.interaction,i=t.interactable,r=t.element,o=t.rect,a=t.state,s=t.startOffset,u=a.options,c=u.offsetWithOrigin?function(t){var n=t.interaction.element;return et(nt(t.state.options.origin,null,null,[n]))||ot(t.interactable,n,t.interaction.prepared.name)}(t):{x:0,y:0};if("startCoords"===u.offset)n={x:e.coords.start.page.x,y:e.coords.start.page.y};else{var f=nt(u.offset,i,r,[e]);(n=et(f)||{x:0,y:0}).x+=c.x,n.y+=c.y}var h=u.relativePoints;a.offsets=o&&h&&h.length?h.map((function(t,e){return{index:e,relativePoint:t,x:s.left-o.width*t.x+n.x,y:s.top-o.height*t.y+n.y}})):[{index:0,relativePoint:null,x:n.x,y:n.y}]},set:function(t){var n=t.interaction,e=t.coords,i=t.state,r=i.options,o=i.offsets,a=ot(n.interactable,n.element,n.prepared.name),s=Z({},e),u=[];r.offsetWithOrigin||(s.x-=a.x,s.y-=a.y);for(var c=0,f=o;c<f.length;c++)for(var h=f[c],l=s.x-h.x,v=s.y-h.y,d=0,p=r.targets.length;d<p;d++){var y,g=r.targets[d];(y=T(g)?g(l,v,n._proxy,h,d):g)&&u.push({x:(O(y.x)?y.x:l)+h.x,y:(O(y.y)?y.y:v)+h.y,range:O(y.range)?y.range:r.range,source:g,index:d,offset:h})}for(var m={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},b=0;b<u.length;b++){var w=u[b],k=w.range,x=w.x-s.x,M=w.y-s.y,E=ut(x,M),S=E<=k;k===1/0&&m.inRange&&m.range!==1/0&&(S=!1),m.target&&!(S?m.inRange&&k!==1/0?E/k<m.distance/m.range:k===1/0&&m.range!==1/0||E<m.distance:!m.inRange&&E<m.distance)||(m.target=w,m.distance=E,m.range=k,m.inRange=S,m.delta.x=x,m.delta.y=M)}return m.inRange&&(e.x=m.target.x,e.y=m.target.y),i.closest=m,m},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},Ce=zn(Ae,"snap"),Fe={start:function(t){var n=t.state,e=t.edges,i=n.options;if(!e)return null;t.state={options:{targets:null,relativePoints:[{x:e.left?0:1,y:e.top?0:1}],offset:i.offset||"self",origin:{x:0,y:0},range:i.range}},n.targetFields=n.targetFields||[["width","height"],["x","y"]],Ae.start(t),n.offsets=t.state.offsets,t.state=n},set:function(t){var n=t.interaction,e=t.state,i=t.coords,r=e.options,o=e.offsets,a={x:i.x-o[0].x,y:i.y-o[0].y};e.options=Z({},r),e.options.targets=[];for(var s=0,u=r.targets||[];s<u.length;s++){var c=u[s],f=void 0;if(f=T(c)?c(a.x,a.y,n):c){for(var h=0,l=e.targetFields;h<l.length;h++){var v=l[h],d=v[0],p=v[1];if(d in f||p in f){f.x=f[d],f.y=f[p];break}}e.options.targets.push(f)}}var y=Ae.set(t);return e.options=r,y},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},Xe=zn(Fe,"snapSize"),Ye={aspectRatio:be,restrictEdges:Ie,restrict:Ee,restrictRect:Pe,restrictSize:_e,snapEdges:zn({start:function(t){var n=t.edges;return n?(t.state.targetFields=t.state.targetFields||[[n.left?"left":"right",n.top?"top":"bottom"]],Fe.start(t)):null},set:Fe.set,defaults:Z(Tn(Fe.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:Ce,snapSize:Xe,spring:ke,avoid:ke,transform:ke,rubberband:ke},$e={id:"modifiers",install:function(t){var n=t.interactStatic;for(var e in t.usePlugin(jn),t.usePlugin(ye),n.modifiers=Ye,Ye){var i=Ye[e],r=i._defaults;r._methods=i._methods,t.defaults.perAction[e]=r}}},Le=function(t){u(e,t);var n=l(e);function e(t,i,o,a,s,u){var c;if(r(this,e),ft(h(c=n.call(this,s)),o),o!==i&&ft(h(c),i),c.timeStamp=u,c.originalEvent=o,c.type=t,c.pointerId=yt(i),c.pointerType=xt(i),c.target=a,c.currentTarget=null,"tap"===t){var f=s.getPointerIndex(i);c.dt=c.timeStamp-s.pointers[f].downTime,c.double=!!s.prevTap&&"doubletap"!==s.prevTap.type&&s.prevTap.target===c.target&&c.timeStamp-s.tapTime<500}else"doubletap"===t&&(c.dt=i.timeStamp-s.tapTime,c.double=!0);return c}return a(e,[{key:"_subtractOrigin",value:function(t){var n=t.x,e=t.y;return this.pageX-=n,this.pageY-=e,this.clientX-=n,this.clientY-=e,this}},{key:"_addOrigin",value:function(t){var n=t.x,e=t.y;return this.pageX+=n,this.pageY+=e,this.clientX+=n,this.clientY+=e,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),e}(Et),Ne={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(t){t.pointerEvents=Ne,t.defaults.actions.pointerEvents=Ne.defaults,Z(t.actions.phaselessTypes,Ne.types)},listeners:{"interactions:new":function(t){var n=t.interaction;n.prevTap=null,n.tapTime=0},"interactions:update-pointer":function(t){var n=t.pointerInfo;!t.down&&n.hold||(n.hold={duration:1/0,timeout:null})},"interactions:move":function(t,n){var e=t.interaction,i=t.pointer,r=t.event,o=t.eventTarget;t.duplicate||e.pointerIsDown&&!e.pointerWasMoved||(e.pointerIsDown&&Be(t),Ue({interaction:e,pointer:i,event:r,eventTarget:o,type:"move"},n))},"interactions:down":function(t,n){!function(t,n){for(var e=t.interaction,i=t.pointer,r=t.event,o=t.eventTarget,a=e.pointers[t.pointerIndex].hold,s=K(o),u={interaction:e,pointer:i,event:r,eventTarget:o,type:"hold",targets:[],path:s,node:null},c=0;c<s.length;c++)u.node=s[c],n.fire("pointerEvents:collect-targets",u);if(u.targets.length){for(var f=1/0,h=0,l=u.targets;h<l.length;h++){var v=l[h].eventable.options.holdDuration;v<f&&(f=v)}a.duration=f,a.timeout=setTimeout((function(){Ue({interaction:e,eventTarget:o,pointer:i,event:r,type:"hold"},n)}),f)}}(t,n),Ue(t,n)},"interactions:up":function(t,n){Be(t),Ue(t,n),function(t,n){var e=t.interaction;e.pointerWasMoved||Ue({interaction:e,eventTarget:t.eventTarget,pointer:t.pointer,event:t.event,type:"tap"},n)}(t,n)},"interactions:cancel":function(t,n){Be(t),Ue(t,n)}},PointerEvent:Le,fire:Ue,collectEventTargets:Ve,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function Ue(t,n){var e=t.interaction,i=t.pointer,r=t.event,o=t.eventTarget,a=t.type,s=t.targets,u=void 0===s?Ve(t,n):s,c=new Le(a,i,r,o,e,n.now());n.fire("pointerEvents:new",{pointerEvent:c});for(var f={interaction:e,pointer:i,event:r,eventTarget:o,targets:u,type:a,pointerEvent:c},h=0;h<u.length;h++){var l=u[h];for(var v in l.props||{})c[v]=l.props[v];var d=ot(l.eventable,l.node);if(c._subtractOrigin(d),c.eventable=l.eventable,c.currentTarget=l.node,l.eventable.fire(c),c._addOrigin(d),c.immediatePropagationStopped||c.propagationStopped&&h+1<u.length&&u[h+1].node!==c.currentTarget)break}if(n.fire("pointerEvents:fired",f),"tap"===a){var p=c.double?Ue({interaction:e,pointer:i,event:r,eventTarget:o,type:"doubletap"},n):c;e.prevTap=p,e.tapTime=p.timeStamp}return c}function Ve(t,n){var e=t.interaction,i=t.pointer,r=t.event,o=t.eventTarget,a=t.type,s=e.getPointerIndex(i),u=e.pointers[s];if("tap"===a&&(e.pointerWasMoved||!u||u.downTarget!==o))return[];for(var c=K(o),f={interaction:e,pointer:i,event:r,eventTarget:o,type:a,path:c,targets:[],node:null},h=0;h<c.length;h++)f.node=c[h],n.fire("pointerEvents:collect-targets",f);return"hold"===a&&(f.targets=f.targets.filter((function(t){var n,i;return t.eventable.options.holdDuration===(null==(n=e.pointers[s])||null==(i=n.hold)?void 0:i.duration)}))),f.targets}function Be(t){var n=t.interaction.pointers[t.pointerIndex].hold;n&&n.timeout&&(clearTimeout(n.timeout),n.timeout=null)}var qe=Object.freeze({__proto__:null,default:Ne});function Ge(t){var n=t.interaction;n.holdIntervalHandle&&(clearInterval(n.holdIntervalHandle),n.holdIntervalHandle=null)}var He={id:"pointer-events/holdRepeat",install:function(t){t.usePlugin(Ne);var n=t.pointerEvents;n.defaults.holdRepeatInterval=0,n.types.holdrepeat=t.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce((function(t,n){return t["pointerEvents:".concat(n)]=Ge,t}),{"pointerEvents:new":function(t){var n=t.pointerEvent;"hold"===n.type&&(n.count=(n.count||0)+1)},"pointerEvents:fired":function(t,n){var e=t.interaction,i=t.pointerEvent,r=t.eventTarget,o=t.targets;if("hold"===i.type&&o.length){var a=o[0].eventable.options.holdRepeatInterval;a<=0||(e.holdIntervalHandle=setTimeout((function(){n.pointerEvents.fire({interaction:e,eventTarget:r,type:"hold",pointer:i,event:i},n)}),a))}}})},We={id:"pointer-events/interactableTargets",install:function(t){var n=t.Interactable;n.prototype.pointerEvents=function(t){return Z(this.events.options,t),this};var e=n.prototype._backCompatOption;n.prototype._backCompatOption=function(t,n){var i=e.call(this,t,n);return i===this&&(this.events.options[t]=n),i}},listeners:{"pointerEvents:collect-targets":function(t,n){var e=t.targets,i=t.node,r=t.type,o=t.eventTarget;n.interactables.forEachMatch(i,(function(t){var n=t.events;n.types[r]&&n.types[r].length&&t.testIgnoreAllow(n.options,i,o)&&e.push({node:i,eventable:n,props:{interactable:t}})}))},"interactable:new":function(t){var n=t.interactable;n.events.getRect=function(t){return n.getRect(t)}},"interactable:set":function(t,n){var e=t.interactable,i=t.options;Z(e.events.options,n.pointerEvents.defaults),Z(e.events.options,i.pointerEvents||{})}}},Je={id:"pointer-events",install:function(t){t.usePlugin(qe),t.usePlugin(He),t.usePlugin(We)}},Ke={id:"reflow",install:function(t){var n=t.Interactable;t.actions.phases.reflow=!0,n.prototype.reflow=function(n){return function(t,n,e){for(var i=t.getAllElements(),r=e.window.Promise,o=r?[]:null,a=function(){var a=i[s],u=t.getRect(a);if(!u)return 1;var c,f=zt(e.interactions.list,(function(e){return e.interacting()&&e.interactable===t&&e.element===a&&e.prepared.name===n.name}));if(f)f.move(),o&&(c=f._reflowPromise||new r((function(t){f._reflowResolve=t})));else{var h=it(u),l=function(t){return{coords:t,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}}({page:{x:h.x,y:h.y},client:{x:h.x,y:h.y},timeStamp:e.now()});c=function(t,n,e,i,r){var o=t.interactions.new({pointerType:"reflow"}),a={interaction:o,event:r,pointer:r,eventTarget:e,phase:"reflow"};o.interactable=n,o.element=e,o.prevEvent=r,o.updatePointer(r,r,e,!0),lt(o.coords.delta),rn(o.prepared,i),o._doPhase(a);var s=t.window.Promise,u=s?new s((function(t){o._reflowResolve=t})):void 0;return o._reflowPromise=u,o.start(i,n,e),o._interacting?(o.move(a),o.end(r)):(o.stop(),o._reflowResolve()),o.removePointer(r,r),u}(e,t,a,n,l)}o&&o.push(c)},s=0;s<i.length&&!a();s++);return o&&r.all(o).then((function(){return t}))}(this,n,t)}},listeners:{"interactions:stop":function(t,n){var e=t.interaction;"reflow"===e.pointerType&&(e._reflowResolve&&e._reflowResolve(),function(t,n){t.splice(t.indexOf(n),1)}(n.interactions.list,e))}}};if(ve.use(Mn),ve.use(Nn),ve.use(Je),ve.use(Gn),ve.use($e),ve.use(wn),ve.use(Gt),ve.use(nn),ve.use(Ke),ve.default=ve,"object"===i(t)&&t)try{t.exports=ve}catch(n){}return ve.default=ve,ve}()}));export{e as i}
@@ -1 +0,0 @@
1
- import{r as e,c as t,h as o}from"./p-14b44491.js";import"./p-05788c2b.js";import{V as i}from"./p-b101fae2.js";const r=class{constructor(o){e(this,o),this.createTemplate=t(this,"createTemplate",7),this.createDocument=t(this,"createDocument",7),this.endpoint=i.getDefault()}handleCreateTemplate(){this.createTemplate.emit()}handleCreateDocument(){this.createDocument.emit()}render(){return o("div",{class:"container"},o("p",{class:"title"},"Quick Create"),o("button",{onClick:()=>this.handleCreateTemplate(),innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><g><rect fill="none" height="24" width="24"/><g><path d="M19,5v14H5V5H19 M19,3H5C3.9,3,3,3.9,3,5v14c0,1.1,0.9,2,2,2h14c1.1,0,2-0.9,2-2V5C21,3.9,20.1,3,19,3L19,3z"/></g><path d="M14,17H7v-2h7V17z M17,13H7v-2h10V13z M17,9H7V7h10V9z"/></g></svg>'},"Template"),o("button",{onClick:()=>this.handleCreateDocument(),innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"/></svg>'},"Document"))}};r.style='verdocs-quick-functions{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-quick-functions .container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:240px;background-color:#1e2031;text-transform:uppercase;padding:10px 10px 20px 10px;font-family:sans-serif;color:#ffffff}verdocs-quick-functions .title{font-size:22px;font-weight:700;line-height:30px;margin:1em 0 40px 0}verdocs-quick-functions button{width:140px;height:40px;border:none;display:-ms-flexbox;display:flex;color:#ffffff;cursor:pointer;font-size:14px;font-weight:700;line-height:25px;-ms-flex-align:center;align-items:center;margin-bottom:20px;border-radius:5px;text-transform:uppercase;-ms-flex-pack:space-evenly;justify-content:space-evenly;background-color:#55bc81}verdocs-quick-functions button svg{fill:#ffffff}';const s=class{constructor(o){e(this,o),this.searchClicked=t(this,"searchClicked",7),this.typeChanged=t(this,"typeChanged",7),this.queryChanged=t(this,"queryChanged",7),this.endpoint=i.getDefault(),this.placeholder="Search envelopes, templates, organizations...",this.type="all",this.query="",this.grabsFocus=!1}async focusField(){this.inputEl.focus()}componentDidRender(){this.grabsFocus&&this.inputEl.focus()}handleSearch(e){return this.searchClicked.emit({type:this.type,query:this.query}),e.preventDefault(),!1}handleChange(e){this.queryChanged.emit(e.target.value)}handleClearFilter(){this.typeChanged.emit("all")}handleKeyUp(e){"Enter"===e.key&&this.searchClicked.emit({type:this.type,query:this.query})}render(){return o("form",{onSubmit:e=>this.handleSearch(e)},void 0!==this.type&&"all"!==this.type&&o("span",{class:"type"},this.type,"s ",o("button",{class:"remove",innerHTML:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.0739 11.7565L19.7127 6.23228C20.0875 5.85692 20.0875 5.25309 19.7127 4.87773L19.0213 4.20046C18.6382 3.82511 18.0219 3.82511 17.6387 4.20046L12 9.72472L6.36127 4.20046C5.97814 3.82511 5.36179 3.82511 4.97866 4.20046L4.28735 4.87773C3.90422 5.25309 3.90422 5.85692 4.28735 6.23228L9.92608 11.7565L4.28735 17.2808C3.90422 17.6561 3.90422 18.26 4.28735 18.6353L4.97866 19.3126C5.36179 19.688 5.97814 19.688 6.36127 19.3126L12 13.7883L17.6387 19.3126C18.0219 19.688 18.6382 19.688 19.0213 19.3126L19.7127 18.6353C20.0958 18.26 20.0958 17.6561 19.7127 17.2808L14.0739 11.7565Z" fill="white"/></svg>',onClick:()=>this.handleClearFilter()})),o("input",{type:"text",value:this.query,placeholder:this.placeholder,onInput:e=>this.handleChange(e),onKeyUp:e=>this.handleKeyUp(e),ref:e=>this.inputEl=e}),o("button",{onClick:e=>this.handleSearch(e),class:"search"},o("span",{innerHTML:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M23.4809 20.7176L17.9111 15.2536C19.0961 13.6368 19.727 11.6926 19.7128 9.70131C19.7201 7.53345 18.9846 5.42606 17.6244 3.71753C16.2642 2.009 14.3581 0.798456 12.2123 0.280282C10.0665 -0.237892 7.80552 -0.0336342 5.79227 0.86026C3.77902 1.75415 2.13038 3.28582 1.1111 5.20931C0.0918114 7.1328 -0.238985 9.33652 0.171813 11.4666C0.582612 13.5967 1.71117 15.5296 3.37628 16.9548C5.0414 18.3801 7.14646 19.2151 9.35344 19.3257C11.5604 19.4364 13.7413 18.8162 15.5458 17.5649L21.1372 23.05L21.1563 23.0663C21.4841 23.3487 21.9039 23.507 22.3401 23.5128C22.7823 23.5125 23.2063 23.3402 23.5191 23.0337V23.0337C23.6749 22.8812 23.7979 22.6995 23.8804 22.4993C23.963 22.2991 24.0036 22.0847 23.9997 21.8688C23.9959 21.6529 23.9477 21.44 23.858 21.2428C23.7683 21.0456 23.639 20.8682 23.4778 20.7212L23.4809 20.7176ZM14.5167 14.1975C13.4564 15.2349 12.0623 15.8797 10.5719 16.022C9.08145 16.1644 7.58681 15.7955 6.34249 14.9781C5.09816 14.1608 4.18109 12.9456 3.74751 11.5395C3.31393 10.1334 3.39064 8.6233 3.96455 7.26643C4.53846 5.90955 5.57409 4.7898 6.89507 4.09787C8.21606 3.40594 9.74071 3.18461 11.2093 3.4716C12.678 3.75858 13.9998 4.53612 14.9497 5.6718C15.8996 6.80748 16.4188 8.23105 16.4189 9.7001C16.4196 10.5357 16.2519 11.3632 15.9254 12.135C15.599 12.9069 15.1202 13.6078 14.5167 14.1975V14.1975Z" fill="white"/></svg>'}),"Search"))}};s.style='verdocs-search-box{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-search-box form{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:45px;-webkit-box-sizing:border-box;box-sizing:border-box;margin:5px 0 0;border-radius:5px;-ms-flex-align:center;align-items:center;background-color:#fff;padding:0 8px;border-width:1px;border-style:solid;border-color:#707ae5}verdocs-search-box form input{-webkit-box-sizing:border-box;box-sizing:border-box;height:43px;width:100%;font-size:18px;border:none}verdocs-search-box form input:focus{outline:none}verdocs-search-box form button.search{cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:4px;border:none;width:100px;height:28px;font-weight:700;font-size:10px;letter-spacing:1px;background-color:#55bc81;text-transform:uppercase;color:#fff}verdocs-search-box form .type{background-color:#707ae5;height:30px;display:-ms-inline-flexbox;display:inline-flex;padding:1px 0 2px 10px;font-size:13px;line-height:16px;border-radius:4px;-ms-flex-pack:center;justify-content:center;text-transform:uppercase;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;color:#fff;margin-right:10px}verdocs-search-box form .type button{border:none;color:#fff;margin:5px 0 0 8px;background:transparent}verdocs-search-box form svg{width:12px;height:12px;margin-right:6px}verdocs-search-box ::-webkit-input-placeholder{color:#aeb4bf}verdocs-search-box ::-moz-placeholder{color:#aeb4bf}verdocs-search-box :-ms-input-placeholder{color:#aeb4bf}verdocs-search-box ::-ms-input-placeholder{color:#aeb4bf}verdocs-search-box ::placeholder{color:#aeb4bf}';export{r as verdocs_quick_functions,s as verdocs_search_box}
@@ -1 +0,0 @@
1
- import{r as e,c as t,h as s,H as i}from"./p-14b44491.js";import{g as o}from"./p-6de76553.js";import{g as n}from"./p-ee159b14.js";import"./p-7d5dbd9a.js";import"./p-5a91bf23.js";import"./p-05788c2b.js";import"./p-aa124212.js";import"./p-839f6f0d.js";import"./p-c220af42.js";const r=class{constructor(s){e(this,s),this.fieldChange=t(this,"fieldChange",7),this.settingsChanged=t(this,"settingsChanged",7),this.deleted=t(this,"deleted",7),this.templateid="",this.field=null,this.disabled=!1,this.editable=!1,this.moveable=!1,this.done=!1,this.roleindex=0,this.rerender=0}async focusField(){this.el.focus()}handleChange(e){this.fieldChange.emit(e.target.value)}async showSettingsPanel(){const e=document.getElementById(`verdocs-settings-panel-${this.field.name}`);e&&e.showPanel&&e.showPanel()}async hideSettingsPanel(){const e=document.getElementById(`verdocs-settings-panel-${this.field.name}`);e&&e.hidePanel&&e.hidePanel()}render(){var e,t;const r=n(this.field),d=null!==(t=null!==(e=this.disabled)&&void 0!==e?e:r.disabled)&&void 0!==t&&t,a=this.field.rgba||o(this.roleindex),l=(null==r?void 0:r.value)||"";return this.done?s(i,{class:{done:this.done}},l):s(i,{class:{required:r.required,disabled:d},style:{backgroundColor:a}},s("select",{tabIndex:r.order,disabled:d,ref:e=>this.el=e,onChange:e=>this.handleChange(e)},s("option",{value:""},"Select..."),(r.options||[]).map((e=>s("option",{value:e.id,selected:e.value===l},e.value)))),this.editable&&s("verdocs-button-panel",{icon:'<svg xmlns="http://www.w3.org/2000/svg" height="20" width="20"><path d="m7.5 18.5-.312-2.667q-.188-.125-.396-.25-.209-.125-.396-.229l-2.479 1.063-2.521-4.334 2.125-1.625q.021-.104.021-.229v-.458q0-.125-.021-.229L1.396 7.917l2.521-4.313 2.5 1.042q.166-.104.375-.229.208-.125.396-.229L7.5 1.5h5l.312 2.688q.188.104.396.229.209.125.396.229l2.479-1.042 2.521 4.313-2.125 1.625v.916l2.125 1.625-2.521 4.334-2.5-1.063q-.166.104-.375.229-.208.125-.396.25L12.5 18.5Zm2.479-5.521q1.229 0 2.104-.875T12.958 10q0-1.229-.875-2.104t-2.104-.875q-1.208 0-2.094.875Q7 8.771 7 10t.885 2.104q.886.875 2.094.875Zm0-1.75q-.5 0-.864-.364Q8.75 10.5 8.75 10t.365-.865q.364-.364.864-.364t.865.364q.364.365.364.865t-.364.865q-.365.364-.865.364ZM10.021 10Zm-.792 6.521h1.542l.25-2.146q.625-.167 1.198-.51.573-.344 1.031-.823l2.021.854.771-1.271-1.771-1.354q.104-.292.156-.615.052-.323.052-.656 0-.292-.052-.604-.052-.313-.135-.646l1.77-1.375-.77-1.271-2.021.875q-.479-.5-1.042-.833-.562-.334-1.187-.5l-.271-2.167H9.208l-.25 2.167q-.625.166-1.187.5-.563.333-1.042.812l-2-.854-.771 1.271 1.73 1.354q-.084.333-.136.656Q5.5 9.708 5.5 10t.052.604q.052.313.136.667l-1.73 1.354.771 1.271 2-.834q.479.459 1.042.792.562.334 1.187.5Z"/></svg>',id:`verdocs-settings-panel-${this.field.name}`},s("verdocs-template-field-properties",{templateId:this.templateid,fieldName:this.field.name,onClose:()=>this.hideSettingsPanel(),onDelete:()=>{var e;return null===(e=this.deleted)||void 0===e||e.emit({fieldName:this.field.name}),this.hideSettingsPanel()},onSettingsChanged:e=>{var t;return null===(t=this.settingsChanged)||void 0===t||t.emit(e.detail),this.hideSettingsPanel()}})))}};r.style='verdocs-field-dropdown{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;width:85px;height:20px;display:block;font-size:11px;position:relative;background-color:transparent;-webkit-transform-origin:bottom left;transform-origin:bottom left}verdocs-field-dropdown.disabled{opacity:0.5}verdocs-field-dropdown select{cursor:inherit;position:absolute;background:linear-gradient(55deg, transparent 50%, #333 50%), linear-gradient(125deg, #333 50%, transparent 50%), linear-gradient(to right, transparent, transparent);background-position:calc(100% - 7px) 6px, calc(100% - 3px) 6px, 100% 0;background-size:5px 5px, 5px 5px, 2.5em 2.5em;background-repeat:no-repeat;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:border-box;box-sizing:border-box;color:rgba(0, 0, 0, 0.87);font-weight:500;-webkit-transform-origin:0 0;transform-origin:0 0;height:100%;width:100%;font-size:11px;border:1px solid rgba(0, 0, 0, 0.2);padding:0 5px}verdocs-field-dropdown select:focus{outline:none}verdocs-field-dropdown select.hide{display:none}verdocs-field-dropdown.required select{border:1px solid #cc0000}verdocs-field-dropdown.focused{-webkit-animation:verdocs-field-pulse 0.75s 2;animation:verdocs-field-pulse 0.75s 2}verdocs-field-dropdown verdocs-button-panel{display:block;margin-left:-33px;margin-top:-1px;-webkit-transform:scale(0.7);transform:scale(0.7)}';export{r as verdocs_field_dropdown}
@@ -1 +0,0 @@
1
- System.register(["./p-fbb8023f.system.js","./p-54498887.system.js","./p-19ff8f86.system.js","./p-cd20fb77.system.js","./p-ca13070e.system.js","./p-187b20b7.system.js"],(function(e){"use strict";var t,i,n,s,o,a,l,r;return{setters:[function(e){t=e.r;i=e.c;n=e.h},function(e){s=e.d},function(e){o=e.V},function(e){a=e.c},function(e){l=e.V},function(e){r=e.S}],execute:function(){var u=function(e,t){return e.api.post("/authentication/login",t).then((function(e){return e.data}))};var c=function(e,t){return e.api.post("/user/reset_password",t).then((function(e){return e.data}))};var d=function(e,t){return e.api.post("/user/email_verification",{},t?{headers:{Authorization:"Bearer ".concat(t)}}:{}).then((function(e){return e.data}))};var h='verdocs-auth{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-auth .form{background:#ffffff;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;display:-ms-flexbox;display:flex;padding:20px;width:300px;max-width:100%}verdocs-auth .logo{margin:20px 0 30px;width:128px;max-width:100%}verdocs-auth h3{text-align:center;font-weight:400;font-size:16px;line-height:1.75;margin:0}verdocs-auth h4{text-align:center;font-weight:400;font-size:14px;line-height:1.43;margin:0}verdocs-auth h4 verdocs-button button.normal .button-label{padding:0}verdocs-auth .buttons{gap:20px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}verdocs-auth .status-result{display:none}verdocs-auth .status-result.debug{white-space:pre-wrap;font-size:14px;background:#fff;padding:10px;display:block;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}verdocs-auth form{width:100%}verdocs-auth verdocs-text-input{margin-bottom:10px}verdocs-auth .account-option{gap:8px;margin:20px 0 8px 0;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-auth p+p{margin-top:0}verdocs-auth verdocs-help-icon{margin-top:18px;display:-ms-flexbox;display:flex;width:32px;height:32px;-ms-flex:0 0 32px;flex:0 0 32px}';var p=5e3;var f=[{value:"",label:""},{value:"Accounting & Tax",label:"Accounting & Tax"},{value:"Business Services / Consulting",label:"Business Services / Consulting"},{value:"Construction",label:"Construction"},{value:"Education",label:"Education"},{value:"Financial Services",label:"Financial Services"},{value:"Government",label:"Government"},{value:"Healthcare - Health Plans & Payers",label:"Healthcare - Health Plans & Payers"},{value:"Healthcare - Providers",label:"Healthcare - Providers"},{value:"Insurance",label:"Insurance"},{value:"Legal",label:"Legal"},{value:"Life Sciences",label:"Life Sciences"},{value:"Manufacturing",label:"Manufacturing"},{value:"Mortgage",label:"Mortgage"},{value:"Not For Profit",label:"Not For Profit"},{value:"Real Estate - Commercial",label:"Real Estate - Commercial"},{value:"Real Estate - Residential",label:"Real Estate - Residential"},{value:"Retail",label:"Retail"},{value:"Technology",label:"Technology"},{value:"Other",label:"Other"}];var m=[{value:"",label:""},{value:"I want to send a document for signature.",label:"I want to send a document for signature."},{value:"I just need to sign a document today.",label:"I just need to sign a document today."},{value:"I'm evaluating it for my business.",label:"I'm evaluating it for my business."},{value:"I'm evaluating it for my personal use.",label:"I'm evaluating it for my personal use."},{value:"I'm a developer building an integration.",label:"I'm a developer building an integration."}];var g=[{value:"",label:""},{value:"Solo",label:"Solo"},{value:"2-10",label:"2-10"},{value:"11-50",label:"11-50"},{value:"51-200",label:"51-200"},{value:"201-500",label:"201-500"},{value:"501-1000",label:"501-1000"},{value:"1000+",label:"1000+"}];var v=e("verdocs_auth",function(){function e(e){t(this,e);this.authenticated=i(this,"authenticated",7);this.sdkError=i(this,"sdkError",7);this.recheckTimer=null;this.resendDisabledTimer=null;this.accessTokenForVerification=null;this.endpoint=o.getDefault();this.visible=true;this.logo="https://app.verdocs.com/assets/blue-logo.svg";this.isAuthenticated=false;this.displayMode="login";this.orgname="";this.first="";this.last="";this.username="";this.phone="";this.password="";this.submitting=false;this.activeSession=null;this.accountType="org";this.howHear="";this.industry="";this.companySize="";this.reason="";this.signupStep=1;this.resendDisabled=false;this.checkingOrg=false}e.prototype.componentWillLoad=function(){var e,t;this.endpoint.loadSession();if(this.endpoint.session){console.log("[AUTH] Authenticated");this.isAuthenticated=true;this.activeSession=this.endpoint.session;(e=this.authenticated)===null||e===void 0?void 0:e.emit({authenticated:true,session:this.endpoint.session})}else{console.log("[AUTH] Anonymous");(t=this.authenticated)===null||t===void 0?void 0:t.emit({authenticated:false,session:null})}};e.prototype.disconnectedCallback=function(){this.cancelRecheckTimer()};e.prototype.cancelRecheckTimer=function(){if(this.recheckTimer){try{clearTimeout(this.recheckTimer)}catch(e){}this.recheckTimer=null}if(this.resendDisabledTimer){try{clearTimeout(this.resendDisabledTimer)}catch(e){}this.resendDisabledTimer=null}};e.prototype.handleSignup=function(){var e=this;this.submitting=true;this.accessTokenForVerification=null;a(this.endpoint,{email:this.username,password:this.password,firstName:this.first,lastName:this.last,orgName:this.orgname}).then((function(t){console.log("Result",t);console.log("[AUTH] Created profile",t.profile);console.log("[AUTH] Created organization",t.organization);e.loginAndCheckVerification()})).catch((function(t){var i,n,s,o,a;console.log("[AUTH] Signup error",t.response,JSON.stringify(t));e.submitting=false;e.activeSession=null;(i=e.authenticated)===null||i===void 0?void 0:i.emit({authenticated:false,session:null});(n=e.sdkError)===null||n===void 0?void 0:n.emit(new r(t.message,(s=t.response)===null||s===void 0?void 0:s.status,(o=t.response)===null||o===void 0?void 0:o.data));l("Signup failed: "+((a=t.response)===null||a===void 0?void 0:a.data),{style:"error"})}))};e.prototype.loginAndCheckVerification=function(){var e=this;this.submitting=true;this.accessTokenForVerification=null;u(this.endpoint,{username:this.username,password:this.password}).then((function(t){var i;e.cancelRecheckTimer();e.submitting=false;var n=s(t.accessToken);console.log("[AUTH] Got access token body",n);if(n===null||n===void 0?void 0:n.email_verified){console.log("[AUTH] Email address is verified, completing login");e.displayMode="login";e.accessTokenForVerification=null;e.endpoint.setToken(t.accessToken);e.activeSession=e.endpoint.session;e.isAuthenticated=true;(i=e.authenticated)===null||i===void 0?void 0:i.emit({authenticated:true,session:e.endpoint.session})}else{console.log("[AUTH] Logged in, pending email address verification");e.displayMode="verify";e.accessTokenForVerification=t.accessToken;e.recheckTimer=setTimeout((function(){return e.loginAndCheckVerification()}),p)}})).catch((function(t){var i,n,s,o;e.cancelRecheckTimer();console.log("[AUTH] Authentication error",t.response,JSON.stringify(t));e.displayMode="login";e.submitting=false;e.activeSession=null;(i=e.authenticated)===null||i===void 0?void 0:i.emit({authenticated:false,session:null});(n=e.sdkError)===null||n===void 0?void 0:n.emit(new r(t.message,(s=t.response)===null||s===void 0?void 0:s.status,(o=t.response)===null||o===void 0?void 0:o.data));l("Login failed. Please check your username and password and try again.",{style:"error"})}))};e.prototype.handleLogout=function(){var e;this.endpoint.clearSession();this.isAuthenticated=false;this.accessTokenForVerification=null;(e=this.authenticated)===null||e===void 0?void 0:e.emit({authenticated:false,session:null})};e.prototype.handleResend=function(){var e=this;this.resendDisabled=true;this.resendDisabledTimer=setTimeout((function(){e.resendDisabled=false;e.resendDisabledTimer=null}),3e4);d(this.endpoint,this.accessTokenForVerification).then((function(e){console.log("[AUTH] Verification request resent",e);l("Please check your email for a message with verification instructions.",{style:"info"})})).catch((function(e){console.log("[AUTH] Unable to resend verification",e)}))};e.prototype.handleReset=function(){var e=this;this.submitting=true;c(this.endpoint,{email:this.username}).then((function(t){console.log("[AUTH] Reset sent",t);e.submitting=false;e.displayMode="login";l("If your email address is registered, you will receive instructions on resetting your password shortly.",{style:"info"})})).catch((function(t){console.log("[AUTH] Unable to reset password",t);e.submitting=false}))};e.prototype.render=function(){var e=this;if(!this.visible){return n("div",{style:{display:"none"}},"Authenticated")}if(this.isAuthenticated){return n("verdocs-button",{label:"Sign Out",disabled:this.submitting,onClick:function(){return e.handleLogout()},style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}})}if(this.displayMode==="signup"){var t=this.submitting||!this.first||!this.last||!this.username||!this.password||!this.orgname;return n("div",{class:"form"},n("a",{href:"https://verdocs.com/en/"},n("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"})),n("h3",null,"Sign up for a trial account"),n("h4",null,"Already have an account?",n("verdocs-button",{label:"Log In",variant:"text",onClick:function(){return e.displayMode="login"},disabled:this.submitting})),this.signupStep===1&&n("form",{onSubmit:function(){return e.handleSignup()}},n("div",{style:{display:"flex",flexDirection:"row",columnGap:"20px"}},n("verdocs-text-input",{label:"First Name",autocomplete:"first",required:true,value:this.first,onInput:function(t){return e.first=t.target.value},disabled:this.submitting}),n("verdocs-text-input",{label:"Last Name",autocomplete:"last",required:true,value:this.last,onInput:function(t){return e.last=t.target.value},disabled:this.submitting})),n("verdocs-text-input",{label:"Email",autocomplete:"email",required:true,value:this.username,onInput:function(t){return e.username=t.target.value},disabled:this.submitting}),n("verdocs-text-input",{label:"Phone #",autocomplete:"phone",value:this.phone,onInput:function(t){return e.phone=t.target.value},disabled:this.submitting}),n("verdocs-text-input",{label:"Password",type:"password",required:true,autocomplete:"current-password",value:this.password,onInput:function(t){return e.password=t.target.value},disabled:this.submitting}),n("verdocs-text-input",{label:"Organization Name",autocomplete:"org",required:true,value:this.orgname,onInput:function(t){return e.orgname=t.target.value},disabled:this.submitting,style:{flex:"1"}}),n("div",{style:{marginTop:"30px"}}),n("verdocs-button",{label:"Next",disabled:t,onClick:function(){return e.signupStep=2},style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}})),this.signupStep===2&&n("form",{onSubmit:function(){return e.handleSignup()}},n("verdocs-text-input",{label:"How did you hear about Verdocs?",value:this.howHear,onInput:function(t){return e.howHear=t.target.value},disabled:this.submitting}),n("verdocs-select-input",{label:"Your Industry",options:f,value:this.industry,onInput:function(t){return e.industry=t.target.value},disabled:this.submitting}),n("verdocs-select-input",{label:"Company Size",options:g,value:this.companySize,onInput:function(t){return e.companySize=t.target.value},disabled:this.submitting}),n("verdocs-select-input",{label:"Purpose",options:m,value:this.reason,onInput:function(t){return e.reason=t.target.value},disabled:this.submitting}),n("div",{style:{marginTop:"30px"}}),n("verdocs-button",{label:"Create Account",disabled:this.submitting,onClick:function(){return e.handleSignup()},style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}})),this.signupStep===3&&n("form",{onSubmit:function(){return e.handleSignup()}},n("p",null,"Please check your e-mail inbox for a verification code and follow the instructions provided."),n("p",null,n("em",null,"Verification messages may take up to 1 hour to arrive. If you do not receive the invitation, ",n("a",{href:"#"},"Click Here")," to resend it. Be sure to check your spam folder.")),n("div",{style:{display:"flex",flexDirection:"row",gap:"20px"}},n("verdocs-button",{label:"Back",disabled:this.submitting,onClick:function(){e.signupStep=2},style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}}),n("verdocs-button",{label:"Go to Dashboard",disabled:true,onClick:function(){return e.handleSignup()},style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}}))))}if(this.displayMode==="forgot"){return n("div",{class:"form"},n("a",{href:"https://verdocs.com/en/"},n("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"})),n("h3",null,"Forgot your password?"),n("p",null,"Enter your e-mail address below, and reset instructions will be sent to your Inbox."),n("p",null,n("em",null,"Please allow up to 24 hours for delivery, and check your spam folder if you do not receive the message. ")),n("form",{onSubmit:function(){return e.handleSignup()}},n("verdocs-text-input",{label:"Email",autocomplete:"email",required:true,value:this.username,onInput:function(t){return e.username=t.target.value},disabled:this.submitting}),n("div",{style:{marginTop:"30px"}}),n("div",{class:"buttons"},n("verdocs-button",{label:"Cancel",variant:"outline",disabled:this.submitting,onClick:function(){return e.displayMode="login"}}),n("verdocs-button",{label:"Reset",disabled:this.submitting,onClick:function(){return e.handleReset()}}))))}if(this.displayMode==="verify"){return n("div",{class:"form"},n("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"}),n("h3",null,"Please Verify your Email Address"),n("p",null,"Check your e-mail inbox for a verification email, and follow the instructions provided."),n("p",null,n("em",null,"Please allow up to 24 hours for delivery, and check your spam folder if you do not receive the message. ")),n("div",{class:"buttons"},n("verdocs-button",{label:"Sign Out",variant:"outline",disabled:this.submitting,onClick:function(){e.username="";e.password="";e.cancelRecheckTimer();e.displayMode="login"}}),n("verdocs-button",{label:"Resend Email",disabled:this.resendDisabled,onClick:function(){return e.handleResend()}})))}return n("div",{class:"form"},n("a",{href:"https://verdocs.com/en/"},n("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"})),n("h3",null,"Log in to your account"),n("h4",null,"Don't have an account?",n("verdocs-button",{label:"Sign Up",variant:"text",onClick:function(){e.displayMode="signup";e.signupStep=1},disabled:this.submitting})),n("form",{onSubmit:function(){return e.loginAndCheckVerification()}},n("verdocs-text-input",{label:"Email",autocomplete:"username",value:this.username,onInput:function(t){return e.username=t.target.value},disabled:this.submitting}),n("verdocs-text-input",{label:"Password",type:"password",autocomplete:"current-password",value:this.password,onInput:function(t){return e.password=t.target.value},disabled:this.submitting}),n("verdocs-button",{label:"Forgot Your Password?",variant:"text",onClick:function(){return e.displayMode="forgot"},disabled:this.submitting,style:{display:"flex",justifyContent:"center",margin:"10px auto 20px"}}),n("verdocs-button",{label:"Login",disabled:this.submitting,onClick:function(){return e.loginAndCheckVerification()},style:{display:"flex",justifyContent:"center",margin:"10px auto 0"}})))};return e}());v.style=h}}}));
@@ -1 +0,0 @@
1
- import{d as t}from"./p-05788c2b.js";var e,n;!function(t){t.CREATOR="creator",t.ORGANIZATION_MEMBER="organization_member",t.ORGANIZATION_MEMBER_AS_CREATOR="organization_member_as_creator",t.EVERYONE="everyone",t.EVERYONE_AS_CREATOR="everyone_as_creator"}(e||(e={})),function(t){t.TEMPLATE_CREATOR_CREATE_PUBLIC="template:creator:create:public",t.TEMPLATE_CREATOR_CREATE_ORG="template:creator:create:org",t.TEMPLATE_CREATOR_CREATE_PERSONAL="template:creator:create:personal",t.TEMPLATE_CREATOR_DELETE="template:creator:delete",t.TEMPLATE_CREATOR_VISIBILITY="template:creator:visibility",t.TEMPLATE_MEMBER_READ="template:member:read",t.TEMPLATE_MEMBER_WRITE="template:member:write",t.TEMPLATE_MEMBER_DELETE="template:member:delete",t.TEMPLATE_MEMBER_VISIBILITY="template:member:visibility"}(n||(n={}));var r,o=function(t,e,r){var o,s;if(!r&&!e.includes("create"))return{canPerform:!1,message:"Missing required template object"};var u=(null==t?void 0:t.profile_id)||"BOGUS";if(!u)return{canPerform:!1,message:"Active session required"};var c=(null==r?void 0:r.profile_id)===u,a=(null==r?void 0:r.organization_id)===((null==t?void 0:t.organization_id)||"BOGUS"),l=null!==(o=null==r?void 0:r.is_personal)&&void 0!==o&&o,f=null!==(s=null==r?void 0:r.is_public)&&void 0!==s&&s,h=[];switch(e){case"create_personal":h.push(n.TEMPLATE_CREATOR_CREATE_PERSONAL);break;case"create_org":h.push(n.TEMPLATE_CREATOR_CREATE_ORG);break;case"create_public":h.push(n.TEMPLATE_CREATOR_CREATE_PUBLIC);break;case"read":c||(!l&&a||!f)&&h.push(n.TEMPLATE_MEMBER_READ);break;case"write":c||(h.push(n.TEMPLATE_MEMBER_READ),h.push(n.TEMPLATE_MEMBER_WRITE));break;case"change_visibility_personal":h.push(c?n.TEMPLATE_CREATOR_CREATE_PERSONAL:n.TEMPLATE_MEMBER_VISIBILITY);break;case"change_visibility_org":h.push(c?n.TEMPLATE_CREATOR_CREATE_ORG:n.TEMPLATE_MEMBER_VISIBILITY);break;case"change_visibility_public":c?(h.push(n.TEMPLATE_CREATOR_CREATE_PUBLIC),h.push(n.TEMPLATE_CREATOR_VISIBILITY)):h.push(n.TEMPLATE_MEMBER_VISIBILITY);break;case"delete":h.push(c?n.TEMPLATE_CREATOR_DELETE:n.TEMPLATE_MEMBER_DELETE);break;default:return{canPerform:!1,message:"Action is not defined"}}return i(t,h)?{canPerform:!0,message:""}:{canPerform:!1,message:"Insufficient access to perform '".concat(e,"'. Needed permissions: ").concat(h.toString())}},i=function(t,e){return e.every((function(e){return((null==t?void 0:t.permissions)||[]).includes(e)}))},s=function(t,e){return t.api.get("/templates/".concat(e)).then((function(t){return t.data}))},u=["name","is_personal","is_public","sender","description","roles","fields"],c=function(t,e,n){var r={timeout:12e4,onUploadProgress:function(t){var e=t.total||1,r=t.loaded||0;null==n||n(Math.floor(100*r/(e||1)),r,e||1)}};if(e.documents&&e.documents[0]instanceof File){var o=new FormData;return u.forEach((function(t){void 0!==e[t]&&o.append(t,e[t])})),e.documents.forEach((function(t){o.append("documents",t,t.name)})),t.api.post("/v2/templates",o,r).then((function(t){return t.data}))}return t.api.post("/v2/templates",e,r).then((function(t){return t.data}))},a=function(t,e,n){return t.api.put("/templates/".concat(e),n).then((function(t){return t.data}))},l=function(t,e){return t.api.delete("/templates/".concat(e)).then((function(t){return t.data}))};!function(t){t.CREATED_AT="created_at",t.UPDATED_AT="updated_at",t.NAME="name",t.LAST_USED_AT="last_used_at",t.COUNTER="counter",t.STAR_COUNTER="star_counter"}(r||(r={}));var f,h,d,m,p,b,_=function(t,e){return void 0===e&&(e={}),n=void 0,r=void 0,i=function(){return function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(c){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return s.label++,{value:u[1],done:!1};case 5:s.label++,r=u[1],u=[0];continue;case 7:u=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){s=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){s.label=u[1];break}if(6===u[0]&&s.label<o[1]){s.label=o[1],o=u;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(u);break}o[2]&&s.ops.pop(),s.trys.pop();continue}u=e.call(t,s)}catch(t){u=[6,t],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}(this,(function(){return[2,t.api.post("/templates/list",e).then((function(t){return t.data}))]}))},new((o=void 0)||(o=Promise))((function(t,e){function s(t){try{c(i.next(t))}catch(t){e(t)}}function u(t){try{c(i.throw(t))}catch(t){e(t)}}function c(e){var n;e.done?t(e.value):(n=e.value,n instanceof o?n:new o((function(t){t(n)}))).then(s,u)}c((i=i.apply(n,r||[])).next())}));var n,r,o,i};!function(t){t.CREATOR="creator",t.ORGANIZATION_MEMBER="organization_member",t.ORGANIZATION_MEMBER_AS_CREATOR="organization_member_as_creator",t.EVERYONE="everyone",t.EVERYONE_AS_CREATOR="everyone_as_creator"}(f||(f={})),function(t){t.CREATE_PERSONAL="create_personal",t.CREATE_ORG="create_org",t.CREATE_PUBLIC="create_public",t.READ="read",t.WRITE="write",t.DELETE="delete",t.CHANGE_VISIBILITY_PERSONAL="change_visibility_personal",t.CHANGE_VISIBILITY_ORG="change_visibility_org",t.CHANGE_VISIBILITY_PUBLIC="change_visibility_public"}(h||(h={})),function(t){t.CREATED_AT="created_at",t.UPDATED_AT="updated_at",t.NAME="name",t.LAST_USED_AT="last_used_at",t.COUNTER="counter",t.STAR_COUNTER="star_counter"}(d||(d={})),function(t){t.RCOMMON="rcommon:access",t.RFORM_ACCESS="rform:access",t.ORG_CREATE="org:create",t.ORG_VIEW="org:view",t.ORG_UPDATE="org:update",t.ORG_DELETE="org:delete",t.ORG_TRANSFER="org:transfer",t.ORG_LIST="org:list",t.OWNER_ADD="owner:add",t.OWNER_REMOVE="owner:remove",t.ADMIN_ADD="admin:add",t.ADMIN_REMOVE="admin:remove",t.MEMBER_VIEW="member:view",t.MEMBER_ADD="member:add",t.MEMBER_REMOVE="member:remove",t.TEMPLATE_CREATOR_DELETE="template:creator:delete",t.TEMPLATE_CREATOR_VISIBILITY="template:creator:visibility",t.TEMPLATE_CREATOR_CREATE_ORG="template:creator:create:org",t.TEMPLATE_CREATOR_CREATE_PUBLIC="template:creator:create:public",t.TEMPLATE_CREATOR_CREATE_PERSONAL="template:creator:create:personal",t.TEMPLATE_MEMBER_READ="template:member:read",t.TEMPLATE_MEMBER_WRITE="template:member:write",t.TEMPLATE_MEMBER_DELETE="template:member:delete",t.TEMPLATE_MEMBER_VISIBILITY="template:member:visibility"}(m||(m={})),function(t){t.ENV_ESSENTIAL="env:essential",t.ORG_STANDARD="org:standard"}(p||(p={})),function(t){t.OWNER="owner",t.BASIC_USER="basic_user",t.MEMBER="member"}(b||(b={}));const E=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);function w(t){return!t.response&&!!t.code&&!["ERR_CANCELED","ECONNABORTED"].includes(t.code)&&(t=>!E.has(t&&t.code))(t)}const y=["get","head","options"],R=y.concat(["put","delete"]);function g(t){return"ECONNABORTED"!==t.code&&(!t.response||t.response.status>=500&&t.response.status<=599)}function v(t){return!!t.config?.method&&g(t)&&-1!==R.indexOf(t.config.method)}function O(t){return w(t)||v(t)}const T={retries:3,retryCondition:O,retryDelay:function(){return 0},shouldResetTimeout:!1,onRetry:()=>{}};function S(t,e){const n=function(t,e){return{...T,...e,...t["axios-retry"]}}(t,e||{});return n.retryCount=n.retryCount||0,n.lastRequestTime=n.lastRequestTime||Date.now(),t["axios-retry"]=n,n}const A=(t,e)=>({requestInterceptorId:t.interceptors.request.use((t=>(S(t,e),t))),responseInterceptorId:t.interceptors.response.use(null,(async n=>{const{config:r}=n;if(!r)return Promise.reject(n);const o=S(r,e);if(await async function(t,e){const{retries:n,retryCondition:r}=t,o=(t.retryCount||0)<n&&r(e);if("object"==typeof o)try{return!1!==await o}catch(t){return!1}return o}(o,n)){o.retryCount+=1;const{retryDelay:e,shouldResetTimeout:i,onRetry:s}=o,u=e(o.retryCount,n);if(function(t,e){t.defaults.agent===e.agent&&delete e.agent,t.defaults.httpAgent===e.httpAgent&&delete e.httpAgent,t.defaults.httpsAgent===e.httpsAgent&&delete e.httpsAgent}(t,r),!i&&r.timeout&&o.lastRequestTime){const t=Date.now()-o.lastRequestTime,e=r.timeout-t-u;if(e<=0)return Promise.reject(n);r.timeout=e}return r.transformRequest=[t=>t],await s(o.retryCount,n,r),new Promise((e=>{setTimeout((()=>e(t(r))),u)}))}return Promise.reject(n)}))});function N(t,e){return function(){return t.apply(e,arguments)}}A.isNetworkError=w,A.isSafeRequestError=function(t){return!!t.config?.method&&g(t)&&-1!==y.indexOf(t.config.method)},A.isIdempotentRequestError=v,A.isNetworkOrIdempotentRequestError=O,A.exponentialDelay=function(t=0,e,n=100){const r=2**t*n;return r+.2*r*Math.random()},A.isRetryableError=g;const{toString:C}=Object.prototype,{getPrototypeOf:D}=Object,j=(L=Object.create(null),t=>{const e=C.call(t);return L[e]||(L[e]=e.slice(8,-1).toLowerCase())});var L;const P=t=>(t=t.toLowerCase(),e=>j(e)===t),U=t=>e=>typeof e===t,{isArray:I}=Array,F=U("undefined"),B=P("ArrayBuffer"),x=U("string"),k=U("function"),M=U("number"),q=t=>null!==t&&"object"==typeof t,H=t=>{if("object"!==j(t))return!1;const e=D(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},z=P("Date"),G=P("File"),J=P("Blob"),K=P("FileList"),V=P("URLSearchParams");function X(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,o;if("object"!=typeof t&&(t=[t]),I(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),i=o.length;let s;for(r=0;r<i;r++)s=o[r],e.call(null,t[s],s,t)}}function $(t,e){e=e.toLowerCase();const n=Object.keys(t);let r,o=n.length;for(;o-- >0;)if(r=n[o],e===r.toLowerCase())return r;return null}const Y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,W=t=>!F(t)&&t!==Y,Z=(Q="undefined"!=typeof Uint8Array&&D(Uint8Array),t=>Q&&t instanceof Q);var Q;const tt=P("HTMLFormElement"),et=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),nt=P("RegExp"),rt=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};X(n,((n,o)=>{let i;!1!==(i=e(n,o,t))&&(r[o]=i||n)})),Object.defineProperties(t,r)},ot="abcdefghijklmnopqrstuvwxyz",it={DIGIT:"0123456789",ALPHA:ot,ALPHA_DIGIT:ot+ot.toUpperCase()+"0123456789"},st=P("AsyncFunction"),ut={isArray:I,isArrayBuffer:B,isBuffer:function(t){return null!==t&&!F(t)&&null!==t.constructor&&!F(t.constructor)&&k(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||k(t.append)&&("formdata"===(e=j(t))||"object"===e&&k(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&B(t.buffer),e},isString:x,isNumber:M,isBoolean:t=>!0===t||!1===t,isObject:q,isPlainObject:H,isUndefined:F,isDate:z,isFile:G,isBlob:J,isRegExp:nt,isFunction:k,isStream:t=>q(t)&&k(t.pipe),isURLSearchParams:V,isTypedArray:Z,isFileList:K,forEach:X,merge:function t(){const{caseless:e}=W(this)&&this||{},n={},r=(r,o)=>{const i=e&&$(n,o)||o;n[i]=H(n[i])&&H(r)?t(n[i],r):H(r)?t({},r):I(r)?r.slice():r};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&X(arguments[t],r);return n},extend:(t,e,n,{allOwnKeys:r}={})=>(X(e,((e,r)=>{t[r]=n&&k(e)?N(e,n):e}),{allOwnKeys:r}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,r)=>{let o,i,s;const u={};if(e=e||{},null==t)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)s=o[i],r&&!r(s,t,e)||u[s]||(e[s]=t[s],u[s]=!0);t=!1!==n&&D(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:j,kindOfTest:P,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length);const r=t.indexOf(e,n-=e.length);return-1!==r&&r===n},toArray:t=>{if(!t)return null;if(I(t))return t;let e=t.length;if(!M(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=n.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:tt,hasOwnProperty:et,hasOwnProp:et,reduceDescriptors:rt,freezeMethods:t=>{rt(t,((e,n)=>{if(k(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;k(t[n])&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(t,e)=>{const n={},r=t=>{t.forEach((t=>{n[t]=!0}))};return I(t)?r(t):r(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(t,e)=>(t=+t,Number.isFinite(t)?t:e),findKey:$,global:Y,isContextDefined:W,ALPHABET:it,generateString:(t=16,e=it.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n},isSpecCompliantForm:function(t){return!!(t&&k(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),n=(t,r)=>{if(q(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[r]=t;const o=I(t)?[]:{};return X(t,((t,e)=>{const i=n(t,r+1);!F(i)&&(o[e]=i)})),e[r]=void 0,o}}return t};return n(t,0)},isAsyncFn:st,isThenable:t=>t&&(q(t)||k(t))&&k(t.then)&&k(t.catch)};function ct(t,e,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}ut.inherits(ct,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ut.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const at=ct.prototype,lt={};function ft(t){return ut.isPlainObject(t)||ut.isArray(t)}function ht(t){return ut.endsWith(t,"[]")?t.slice(0,-2):t}function dt(t,e,n){return t?t.concat(e).map((function(t,e){return t=ht(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{lt[t]={value:t}})),Object.defineProperties(ct,lt),Object.defineProperty(at,"isAxiosError",{value:!0}),ct.from=(t,e,n,r,o,i)=>{const s=Object.create(at);return ut.toFlatObject(t,s,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),ct.call(s,t.message,e,n,r,o),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};const mt=ut.toFlatObject(ut,{},null,(function(t){return/^is[A-Z]/.test(t)}));function pt(t,e,n){if(!ut.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const r=(n=ut.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!ut.isUndefined(e[t])}))).metaTokens,o=n.visitor||a,i=n.dots,s=n.indexes,u=(n.Blob||"undefined"!=typeof Blob&&Blob)&&ut.isSpecCompliantForm(e);if(!ut.isFunction(o))throw new TypeError("visitor must be a function");function c(t){if(null===t)return"";if(ut.isDate(t))return t.toISOString();if(!u&&ut.isBlob(t))throw new ct("Blob is not supported. Use a Buffer instead.");return ut.isArrayBuffer(t)||ut.isTypedArray(t)?u&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function a(t,n,o){let u=t;if(t&&!o&&"object"==typeof t)if(ut.endsWith(n,"{}"))n=r?n:n.slice(0,-2),t=JSON.stringify(t);else if(ut.isArray(t)&&function(t){return ut.isArray(t)&&!t.some(ft)}(t)||(ut.isFileList(t)||ut.endsWith(n,"[]"))&&(u=ut.toArray(t)))return n=ht(n),u.forEach((function(t,r){!ut.isUndefined(t)&&null!==t&&e.append(!0===s?dt([n],r,i):null===s?n:n+"[]",c(t))})),!1;return!!ft(t)||(e.append(dt(o,n,i),c(t)),!1)}const l=[],f=Object.assign(mt,{defaultVisitor:a,convertValue:c,isVisitable:ft});if(!ut.isObject(t))throw new TypeError("data must be an object");return function t(n,r){if(!ut.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),ut.forEach(n,(function(n,i){!0===(!(ut.isUndefined(n)||null===n)&&o.call(e,n,ut.isString(i)?i.trim():i,r,f))&&t(n,r?r.concat(i):[i])})),l.pop()}}(t),e}function bt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function _t(t,e){this._pairs=[],t&&pt(t,this,e)}const Et=_t.prototype;function wt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function yt(t,e,n){if(!e)return t;const r=n&&n.encode||wt,o=n&&n.serialize;let i;if(i=o?o(e,n):ut.isURLSearchParams(e)?e.toString():new _t(e,n).toString(r),i){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}Et.append=function(t,e){this._pairs.push([t,e])},Et.toString=function(t){const e=t?function(e){return t.call(this,e,bt)}:bt;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};class Rt{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ut.forEach(this.handlers,(function(e){null!==e&&t(e)}))}}const gt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},vt={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:_t,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Ot="undefined"!=typeof window&&"undefined"!=typeof document,Tt=(St="undefined"!=typeof navigator&&navigator.product,Ot&&["ReactNative","NativeScript","NS"].indexOf(St)<0);var St;const At="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Nt={...Object.freeze({__proto__:null,hasBrowserEnv:Ot,hasStandardBrowserWebWorkerEnv:At,hasStandardBrowserEnv:Tt}),...vt};function Ct(t){function e(t,n,r,o){let i=t[o++];const s=Number.isFinite(+i),u=o>=t.length;return i=!i&&ut.isArray(r)?r.length:i,u?(r[i]=ut.hasOwnProp(r,i)?[r[i],n]:n,!s):(r[i]&&ut.isObject(r[i])||(r[i]=[]),e(t,n,r[i],o)&&ut.isArray(r[i])&&(r[i]=function(t){const e={},n=Object.keys(t);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],e[i]=t[i];return e}(r[i])),!s)}if(ut.isFormData(t)&&ut.isFunction(t.entries)){const n={};return ut.forEachEntry(t,((t,r)=>{e(function(t){return ut.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),r,n,0)})),n}return null}const Dt={transitional:gt,adapter:["xhr","http"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,o=ut.isObject(t);if(o&&ut.isHTMLForm(t)&&(t=new FormData(t)),ut.isFormData(t))return r&&r?JSON.stringify(Ct(t)):t;if(ut.isArrayBuffer(t)||ut.isBuffer(t)||ut.isStream(t)||ut.isFile(t)||ut.isBlob(t))return t;if(ut.isArrayBufferView(t))return t.buffer;if(ut.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return pt(t,new Nt.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,r){return Nt.isNode&&ut.isBuffer(t)?(this.append(e,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((i=ut.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return pt(i?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||r?(e.setContentType("application/json",!1),function(t){if(ut.isString(t))try{return(0,JSON.parse)(t),ut.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||Dt.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(t&&ut.isString(t)&&(n&&!this.responseType||r)){const n=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(t){if(n){if("SyntaxError"===t.name)throw ct.from(t,ct.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Nt.classes.FormData,Blob:Nt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ut.forEach(["delete","get","head","post","put","patch"],(t=>{Dt.headers[t]={}}));const jt=ut.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Lt=Symbol("internals");function Pt(t){return t&&String(t).trim().toLowerCase()}function Ut(t){return!1===t||null==t?t:ut.isArray(t)?t.map(Ut):String(t)}function It(t,e,n,r,o){return ut.isFunction(r)?r.call(this,e,n):(o&&(e=n),ut.isString(e)?ut.isString(r)?-1!==e.indexOf(r):ut.isRegExp(r)?r.test(e):void 0:void 0)}class Ft{constructor(t){t&&this.set(t)}set(t,e,n){const r=this;function o(t,e,n){const o=Pt(e);if(!o)throw new Error("header name must be a non-empty string");const i=ut.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||e]=Ut(t))}const i=(t,e)=>ut.forEach(t,((t,n)=>o(t,n,e)));return ut.isPlainObject(t)||t instanceof this.constructor?i(t,e):ut.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim())?i((t=>{const e={};let n,r,o;return t&&t.split("\n").forEach((function(t){o=t.indexOf(":"),n=t.substring(0,o).trim().toLowerCase(),r=t.substring(o+1).trim(),!n||e[n]&&jt[n]||("set-cookie"===n?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)})),e})(t),e):null!=t&&o(e,t,n),this}get(t,e){if(t=Pt(t)){const n=ut.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}(t);if(ut.isFunction(e))return e.call(this,t,n);if(ut.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Pt(t)){const n=ut.findKey(this,t);return!(!n||void 0===this[n]||e&&!It(0,this[n],n,e))}return!1}delete(t,e){const n=this;let r=!1;function o(t){if(t=Pt(t)){const o=ut.findKey(n,t);!o||e&&!It(0,n[o],o,e)||(delete n[o],r=!0)}}return ut.isArray(t)?t.forEach(o):o(t),r}clear(t){const e=Object.keys(this);let n=e.length,r=!1;for(;n--;){const o=e[n];t&&!It(0,this[o],o,t,!0)||(delete this[o],r=!0)}return r}normalize(t){const e=this,n={};return ut.forEach(this,((r,o)=>{const i=ut.findKey(n,o);if(i)return e[i]=Ut(r),void delete e[o];const s=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,n)=>e.toUpperCase()+n))}(o):String(o).trim();s!==o&&delete e[o],e[s]=Ut(r),n[s]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return ut.forEach(this,((n,r)=>{null!=n&&!1!==n&&(e[r]=t&&ut.isArray(n)?n.join(", "):n)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach((t=>n.set(t))),n}static accessor(t){const e=(this[Lt]=this[Lt]={accessors:{}}).accessors,n=this.prototype;function r(t){const r=Pt(t);e[r]||(function(t,e){const n=ut.toCamelCase(" "+e);["get","set","has"].forEach((r=>{Object.defineProperty(t,r+n,{value:function(t,n,o){return this[r].call(this,e,t,n,o)},configurable:!0})}))}(n,t),e[r]=!0)}return ut.isArray(t)?t.forEach(r):r(t),this}}function Bt(t,e){const n=this||Dt,r=e||n,o=Ft.from(r.headers);let i=r.data;return ut.forEach(t,(function(t){i=t.call(n,i,o.normalize(),e?e.status:void 0)})),o.normalize(),i}function xt(t){return!(!t||!t.__CANCEL__)}function kt(t,e,n){ct.call(this,null==t?"canceled":t,ct.ERR_CANCELED,e,n),this.name="CanceledError"}Ft.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ut.reduceDescriptors(Ft.prototype,(({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}})),ut.freezeMethods(Ft),ut.inherits(kt,ct,{__CANCEL__:!0});const Mt=Nt.hasStandardBrowserEnv?{write(t,e,n,r,o,i){const s=[t+"="+encodeURIComponent(e)];ut.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),ut.isString(r)&&s.push("path="+r),ut.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function qt(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}const Ht=Nt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let n;function r(n){let r=n;return t&&(e.setAttribute("href",r),r=e.href),e.setAttribute("href",r),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return n=r(window.location.href),function(t){const e=ut.isString(t)?r(t):t;return e.protocol===n.protocol&&e.host===n.host}}():function(){return!0};function zt(t,e){let n=0;const r=function(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o,i=0,s=0;return e=void 0!==e?e:1e3,function(u){const c=Date.now(),a=r[s];o||(o=c),n[i]=u,r[i]=c;let l=s,f=0;for(;l!==i;)f+=n[l++],l%=t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),c-o<e)return;const h=a&&c-a;return h?Math.round(1e3*f/h):void 0}}(50,250);return o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,u=i-n,c=r(u);n=i;const a={loaded:i,total:s,progress:s?i/s:void 0,bytes:u,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:o};a[e?"download":"upload"]=!0,t(a)}}const Gt={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,n){let r=t.data;const o=Ft.from(t.headers).normalize();let i,s,{responseType:u,withXSRFToken:c}=t;function a(){t.cancelToken&&t.cancelToken.unsubscribe(i),t.signal&&t.signal.removeEventListener("abort",i)}if(ut.isFormData(r))if(Nt.hasStandardBrowserEnv||Nt.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(s=o.getContentType())){const[t,...e]=s?s.split(";").map((t=>t.trim())).filter(Boolean):[];o.setContentType([t||"multipart/form-data",...e].join("; "))}let l=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",n=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.set("Authorization","Basic "+btoa(e+":"+n))}const f=qt(t.baseURL,t.url);function h(){if(!l)return;const r=Ft.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());!function(t,e,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(new ct("Request failed with status code "+n.status,[ct.ERR_BAD_REQUEST,ct.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}((function(t){e(t),a()}),(function(t){n(t),a()}),{data:u&&"text"!==u&&"json"!==u?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:r,config:t,request:l}),l=null}if(l.open(t.method.toUpperCase(),yt(f,t.params,t.paramsSerializer),!0),l.timeout=t.timeout,"onloadend"in l?l.onloadend=h:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(h)},l.onabort=function(){l&&(n(new ct("Request aborted",ct.ECONNABORTED,t,l)),l=null)},l.onerror=function(){n(new ct("Network Error",ct.ERR_NETWORK,t,l)),l=null},l.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(new ct(e,(t.transitional||gt).clarifyTimeoutError?ct.ETIMEDOUT:ct.ECONNABORTED,t,l)),l=null},Nt.hasStandardBrowserEnv&&(c&&ut.isFunction(c)&&(c=c(t)),c||!1!==c&&Ht(f))){const e=t.xsrfHeaderName&&t.xsrfCookieName&&Mt.read(t.xsrfCookieName);e&&o.set(t.xsrfHeaderName,e)}void 0===r&&o.setContentType(null),"setRequestHeader"in l&&ut.forEach(o.toJSON(),(function(t,e){l.setRequestHeader(e,t)})),ut.isUndefined(t.withCredentials)||(l.withCredentials=!!t.withCredentials),u&&"json"!==u&&(l.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&l.addEventListener("progress",zt(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",zt(t.onUploadProgress)),(t.cancelToken||t.signal)&&(i=e=>{l&&(n(!e||e.type?new kt(null,t,l):e),l.abort(),l=null)},t.cancelToken&&t.cancelToken.subscribe(i),t.signal&&(t.signal.aborted?i():t.signal.addEventListener("abort",i)));const d=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(f);d&&-1===Nt.protocols.indexOf(d)?n(new ct("Unsupported protocol "+d+":",ct.ERR_BAD_REQUEST,t)):l.send(r||null)}))}};ut.forEach(Gt,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));const Jt=t=>`- ${t}`,Kt=t=>ut.isFunction(t)||null===t||!1===t,Vt=t=>{t=ut.isArray(t)?t:[t];const{length:e}=t;let n,r;const o={};for(let i=0;i<e;i++){let e;if(n=t[i],r=n,!Kt(n)&&(r=Gt[(e=String(n)).toLowerCase()],void 0===r))throw new ct(`Unknown adapter '${e}'`);if(r)break;o[e||"#"+i]=r}if(!r){const t=Object.entries(o).map((([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build")));throw new ct("There is no suitable adapter to dispatch the request "+(e?t.length>1?"since :\n"+t.map(Jt).join("\n"):" "+Jt(t[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function Xt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new kt(null,t)}function $t(t){return Xt(t),t.headers=Ft.from(t.headers),t.data=Bt.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Vt(t.adapter||Dt.adapter)(t).then((function(e){return Xt(t),e.data=Bt.call(t,t.transformResponse,e),e.headers=Ft.from(e.headers),e}),(function(e){return xt(e)||(Xt(t),e&&e.response&&(e.response.data=Bt.call(t,t.transformResponse,e.response),e.response.headers=Ft.from(e.response.headers))),Promise.reject(e)}))}const Yt=t=>t instanceof Ft?t.toJSON():t;function Wt(t,e){e=e||{};const n={};function r(t,e,n){return ut.isPlainObject(t)&&ut.isPlainObject(e)?ut.merge.call({caseless:n},t,e):ut.isPlainObject(e)?ut.merge({},e):ut.isArray(e)?e.slice():e}function o(t,e,n){return ut.isUndefined(e)?ut.isUndefined(t)?void 0:r(void 0,t,n):r(t,e,n)}function i(t,e){if(!ut.isUndefined(e))return r(void 0,e)}function s(t,e){return ut.isUndefined(e)?ut.isUndefined(t)?void 0:r(void 0,t):r(void 0,e)}function u(n,o,i){return i in e?r(n,o):i in t?r(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u,headers:(t,e)=>o(Yt(t),Yt(e),!0)};return ut.forEach(Object.keys(Object.assign({},t,e)),(function(r){const i=c[r]||o,s=i(t[r],e[r],r);ut.isUndefined(s)&&i!==u||(n[r]=s)})),n}const Zt={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{Zt[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const Qt={};Zt.transitional=function(t,e,n){function r(t,e){return"[Axios v1.6.2] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,o,i)=>{if(!1===t)throw new ct(r(o," has been removed"+(e?" in "+e:"")),ct.ERR_DEPRECATED);return e&&!Qt[o]&&(Qt[o]=!0,console.warn(r(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,o,i)}};const te={assertOptions:function(t,e,n){if("object"!=typeof t)throw new ct("options must be an object",ct.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const i=r[o],s=e[i];if(s){const e=t[i],n=void 0===e||s(e,i,t);if(!0!==n)throw new ct("option "+i+" must be "+n,ct.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new ct("Unknown option "+i,ct.ERR_BAD_OPTION)}},validators:Zt},ee=te.validators;class ne{constructor(t){this.defaults=t,this.interceptors={request:new Rt,response:new Rt}}request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=Wt(this.defaults,e);const{transitional:n,paramsSerializer:r,headers:o}=e;void 0!==n&&te.assertOptions(n,{silentJSONParsing:ee.transitional(ee.boolean),forcedJSONParsing:ee.transitional(ee.boolean),clarifyTimeoutError:ee.transitional(ee.boolean)},!1),null!=r&&(ut.isFunction(r)?e.paramsSerializer={serialize:r}:te.assertOptions(r,{encode:ee.function,serialize:ee.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let i=o&&ut.merge(o.common,o[e.method]);o&&ut.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete o[t]})),e.headers=Ft.concat(i,o);const s=[];let u=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(u=u&&t.synchronous,s.unshift(t.fulfilled,t.rejected))}));const c=[];let a;this.interceptors.response.forEach((function(t){c.push(t.fulfilled,t.rejected)}));let l,f=0;if(!u){const t=[$t.bind(this),void 0];for(t.unshift.apply(t,s),t.push.apply(t,c),l=t.length,a=Promise.resolve(e);f<l;)a=a.then(t[f++],t[f++]);return a}l=s.length;let h=e;for(f=0;f<l;){const t=s[f++],e=s[f++];try{h=t(h)}catch(t){e.call(this,t);break}}try{a=$t.call(this,h)}catch(t){return Promise.reject(t)}for(f=0,l=c.length;f<l;)a=a.then(c[f++],c[f++]);return a}getUri(t){return yt(qt((t=Wt(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}ut.forEach(["delete","get","head","options"],(function(t){ne.prototype[t]=function(e,n){return this.request(Wt(n||{},{method:t,url:e,data:(n||{}).data}))}})),ut.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,o){return this.request(Wt(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ne.prototype[t]=e(),ne.prototype[t+"Form"]=e(!0)}));class re{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const n=this;this.promise.then((t=>{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null})),this.promise.then=t=>{let e;const r=new Promise((t=>{n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t,r,o){n.reason||(n.reason=new kt(t,r,o),e(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;return{token:new re((function(e){t=e})),cancel:t}}}const oe={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(oe).forEach((([t,e])=>{oe[e]=t}));const ie=function t(e){const n=new ne(e),r=N(ne.prototype.request,n);return ut.extend(r,ne.prototype,n,{allOwnKeys:!0}),ut.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return t(Wt(e,n))},r}(Dt);ie.Axios=ne,ie.CanceledError=kt,ie.CancelToken=re,ie.isCancel=xt,ie.VERSION="1.6.2",ie.toFormData=pt,ie.AxiosError=ct,ie.Cancel=ie.CanceledError,ie.all=function(t){return Promise.all(t)},ie.spread=function(t){return function(e){return t.apply(null,e)}},ie.isAxiosError=function(t){return ut.isObject(t)&&!0===t.isAxiosError},ie.mergeConfig=Wt,ie.AxiosHeaders=Ft,ie.formToJSON=t=>Ct(ut.isHTMLForm(t)?new FormData(t):t),ie.getAdapter=Vt,ie.HttpStatusCode=oe,ie.default=ie;var se=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw new Error("Unable to resolve global `this`")},ue=function(){if(this)return this;if("object"==typeof globalThis&&globalThis)return globalThis;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(t){return se()}try{return __global__||se()}finally{delete Object.prototype.__global__}}(),ce=Symbol.for("verdocs-default-endpoint"),ae=function(t){return console.debug("[JS-SDK] ".concat(t.method.toUpperCase()," ").concat(t.baseURL).concat(t.url),t.data?JSON.stringify(t.data):""),t},le=function(){function e(t){this.environment="verdocs",this.sessionType="user",this.baseURL="https://beta.verdocs.com"===window.location.origin?"https://stage-api.verdocs.com":"https://api.verdocs.com",this.clientID="not-set",this.timeout=6e4,this.token=null,this.nextListenerId=0,this.sessionListeners=new Map,this.requestLoggerId=null,this.session=null,this.baseURL=(null==t?void 0:t.baseURL)||this.baseURL,this.timeout=(null==t?void 0:t.timeout)||this.timeout,this.environment=(null==t?void 0:t.environment)||this.environment,this.sessionType=(null==t?void 0:t.sessionType)||this.sessionType,this.clientID=(null==t?void 0:t.clientID)||this.clientID,this.api=ie.create({baseURL:this.baseURL,timeout:this.timeout}),window.console.log("[JS_SDK] Initializing",this.baseURL,window.location.origin),A(this.api,{retries:0,retryDelay:A.exponentialDelay,onRetry:function(t,e,n){window.console.debug("[JS_SDK] Retrying request (".concat(t,")"),e.message,n.url)}})}return e.prototype.setDefault=function(){ue[ce]=this},e.getDefault=function(){return ue[ce]||(ue[ce]=new e,window.console.debug("[JS_SDK] Created default endpoint",ue[ce].baseURL)),ue[ce]},e.prototype.getEnvironment=function(){return this.environment},e.prototype.getSessionType=function(){return this.sessionType},e.prototype.getBaseURL=function(){return this.baseURL},e.prototype.getClientID=function(){return this.clientID},e.prototype.getTimeout=function(){return this.timeout},e.prototype.getSession=function(){return this.session},e.prototype.setEnvironment=function(t){return this.environment=t,this},e.prototype.setSessionType=function(t){return this.sessionType=t,this},e.prototype.setBaseURL=function(t){return this.baseURL=t,this.api.defaults.baseURL=t,this},e.prototype.setClientID=function(t){return this.clientID=t,this.api.defaults.headers.common["X-Client-ID"]=t,this},e.prototype.setTimeout=function(t){return this.timeout=t,this.api.defaults.timeout=t,this},e.prototype.logRequests=function(t){return t&&null===this.requestLoggerId?this.requestLoggerId=this.api.interceptors.request.use(ae):t||null===this.requestLoggerId||this.api.interceptors.request.eject(this.requestLoggerId),this},e.prototype.setToken=function(e){if(!e)return this.clearSession();var n=t(e);return null===n||n.exp&&1e3*n.exp<(new Date).getTime()?(window.console.warn("[JS_SDK] Ignoring attempt to use expired session token"),this.clearSession()):(this.token=e,this.session=n,"user"===this.sessionType?this.api.defaults.headers.common.Authorization="Bearer ".concat(e):this.api.defaults.headers.common.signer="Bearer ".concat(e),localStorage.setItem(this.sessionStorageKey(),e),this.notifySessionListeners(),this)},e.prototype.getToken=function(){return this.token},e.prototype.sessionStorageKey=function(){return"verdocs-session-".concat(this.getSessionType(),"-").concat(this.getEnvironment())},e.prototype.clearSession=function(){return localStorage.removeItem(this.sessionStorageKey()),delete this.api.defaults.headers.common.Authorization,delete this.api.defaults.headers.common.signer,this.session=null,this.token=null,this.notifySessionListeners(),this},e.prototype.clearSignerSession=function(){return localStorage.removeItem(this.sessionStorageKey()),delete this.api.defaults.headers.common.Authorization,this.session=null,this.token=null,this.notifySessionListeners(),this},e.prototype.notifySessionListeners=function(){var t=this;this.sessionListeners.forEach((function(e){try{e(t,t.session)}catch(t){}}))},e.prototype.onSessionChanged=function(t){var e=this;this.nextListenerId++;var n=Symbol.for(""+this.nextListenerId);return this.sessionListeners.set(n,t),function(){e.sessionListeners.delete(n)}},e.prototype.loadSession=function(){var t=localStorage.getItem(this.sessionStorageKey());return t?this.setToken(t):this.clearSession()},e}();export{f as T,le as V,h as a,c as b,o as c,l as d,s as g,_ as l,a as u}
@@ -1 +0,0 @@
1
- System.register([],(function(n){"use strict";return{execute:function(){var t=n("a",(function(n){return n.api.get("/profiles").then((function(n){return(n.data||[]).find((function(n){return n.current}))}))}));var r=n("g",(function(n){return n.api.get("/roles").then((function(n){return n.data}))}));var e=n("u",(function(n,t,r){return n.api.put("/profiles/".concat(t),r).then((function(n){return n.data}))}));var u=n("c",(function(n,t){return n.api.post("/user/business",t).then((function(n){return n.data}))}))}}}));
@@ -1 +0,0 @@
1
- System.register([],(function(e){"use strict";return{execute:function(){var t=e("F","P");var r=e("a","Y-MM-dd")}}}));
@@ -1 +0,0 @@
1
- import{r as e,c as i,h as s,H as t}from"./p-14b44491.js";import{c as n}from"./p-5a91bf23.js";import{u as o}from"./p-29f64c27.js";import{r as l}from"./p-3cd894ff.js";import"./p-05788c2b.js";import{V as a}from"./p-b101fae2.js";import{g as d}from"./p-ebc4142c.js";import{F as r}from"./p-839f6f0d.js";import{V as c}from"./p-ed416acf.js";import{S as v}from"./p-7a1b2643.js";import{f as p}from"./p-c220af42.js";import"./p-7648c449.js";const h={visibility:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path d="M12 15a3 3 0 100-6 3 3 0 000 6z" /><path fill-rule="evenodd" d="M1.323 11.447C2.811 6.976 7.028 3.75 12.001 3.75c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113-1.487 4.471-5.705 7.697-10.677 7.697-4.97 0-9.186-3.223-10.675-7.69a1.762 1.762 0 010-1.113zM17.25 12a5.25 5.25 0 11-10.5 0 5.25 5.25 0 0110.5 0z" clip-rule="evenodd" /></svg>',pencil:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path d="M21.731 2.269a2.625 2.625 0 00-3.712 0l-1.157 1.157 3.712 3.712 1.157-1.157a2.625 2.625 0 000-3.712zM19.513 8.199l-3.712-3.712-12.15 12.15a5.25 5.25 0 00-1.32 2.214l-.8 2.685a.75.75 0 00.933.933l2.685-.8a5.25 5.25 0 002.214-1.32L19.513 8.2z" /></svg>',mail:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>',contact_mail:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>',done:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path fill-rule="evenodd" d="M19.916 4.626a.75.75 0 01.208 1.04l-9 13.5a.75.75 0 01-1.154.114l-6-6a.75.75 0 011.06-1.06l5.353 5.353 8.493-12.739a.75.75 0 011.04-.208z" clip-rule="evenodd" /></svg>',send:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"/></svg>',gesture:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2.77 1.21-1.49 2.83-3.44 4.08-3.44 1.63 0 1.65 1.01 1.76 1.79-3.78.64-5.38 3.67-5.38 5.37 0 1.7 1.44 3.09 3.21 3.09 1.63 0 4.29-1.33 4.69-6.1H21v-2.5h-2.47c-.15-1.65-1.09-4.2-4.03-4.2-2.25 0-4.18 1.91-4.94 2.84-.58.73-2.06 2.48-2.29 2.72-.25.3-.68.84-1.11.84-.45 0-.72-.83-.36-1.92.35-1.09 1.4-2.86 1.85-3.52.78-1.14 1.3-1.92 1.3-3.28C8.95 3.69 7.31 3 6.44 3 5.12 3 3.97 4 3.72 4.25c-.36.36-.66.66-.88.93l1.75 1.71zm9.29 11.66c-.31 0-.74-.26-.74-.72 0-.6.73-2.2 2.87-2.76-.3 2.69-1.43 3.48-2.13 3.48z"/></svg>',clear:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>',check_circle:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>',link:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"/></svg>',cancel:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"/></svg>',done_all:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.41z"/></svg>',create:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>',perm_identity:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>',people:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"/></svg>',contact_email:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M21 8V7l-3 2-3-2v1l3 2 3-2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1zm8-6h-8V6h8v6z"/></svg>',textsms:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 11H7V9h2v2zm4 0h-2V9h2v2zm4 0h-2V9h2v2z"/></svg>',verified_user:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path fill-rule="evenodd" d="M12.516 2.17a.75.75 0 00-1.032 0 11.209 11.209 0 01-7.877 3.08.75.75 0 00-.722.515A12.74 12.74 0 002.25 9.75c0 5.942 4.064 10.933 9.563 12.348a.749.749 0 00.374 0c5.499-1.415 9.563-6.406 9.563-12.348 0-1.39-.223-2.73-.635-3.985a.75.75 0 00-.722-.516l-.143.001c-2.996 0-5.717-1.17-7.734-3.08zm3.094 8.016a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z" clip-rule="evenodd" /></svg>',account_circle:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"/></svg>'},w=class{constructor(s){e(this,s),this.sdkError=i(this,"sdkError",7),this.envelopeUpdated=i(this,"envelopeUpdated",7),this.toggle=i(this,"toggle",7),this.another=i(this,"another",7),this.store=null,this.endpoint=a.getDefault(),this.envelopeId="",this.activeTab=1,this.panelOpen=!1,this.showManageDialog=!1,this.showRecipientDialog="",this.showCancelDialog=!1,this.loading=!0}async componentWillLoad(){var e,i,s;try{if(this.endpoint.loadSession(),!this.envelopeId)return void console.log(`[SIDEBAR] Missing required envelope ID ${this.envelopeId}`);if(!this.endpoint.session)return void console.log("[SIDEBAR] Unable to start session, must be authenticated");this.store=await d(this.endpoint,this.envelopeId,!0),this.sortEnvelopeRecipients(),this.loading=!1}catch(t){console.log("[SIDEBAR] Error loading envelope",t),null===(e=this.sdkError)||void 0===e||e.emit(new v(t.message,null===(i=t.response)||void 0===i?void 0:i.status,null===(s=t.response)||void 0===s?void 0:s.data))}}sortEnvelopeRecipients(){var e,i;null===(i=null===(e=this.store)||void 0===e?void 0:e.state)||void 0===i||i.recipients.sort(((e,i)=>e.sequence===i.sequence?e.order-i.order:e.sequence-i.sequence))}setTab(e){var i;this.panelOpen=e!==this.activeTab||!this.panelOpen,null===(i=this.toggle)||void 0===i||i.emit({open:this.panelOpen}),this.activeTab=e}canResendRecipient(e){var i,s;return!["pending","declined","submitted","canceled"].includes(e.status)&&!["complete","declined","canceled"].includes(null===(s=null===(i=this.store)||void 0===i?void 0:i.state)||void 0===s?void 0:s.status)}handleRecipientAction(e,i){var s,t;switch(console.log("[SIDEBAR] Recipient action",i,e),i){case"reminder":l(this.endpoint,this.envelopeId,e.role_name).then((()=>{c("Reminder Sent",{style:"success"})})).catch((e=>{console.log("[SIDEBAR] Error resending invitation",e),c("Error resending invitation: "+e.message,{style:"error"})}));break;case"inperson":this.showRecipientDialog=e.role_name;break;case"modify":case"details":c("This feature will be enabled in a future release. Please try again later.",{style:"info"})}null===(s=this.envelopeUpdated)||void 0===s||s.emit({endpoint:this.endpoint,envelope:null===(t=this.store)||void 0===t?void 0:t.state,event:i})}cancelEnvelope(){this.loading=!0,n(this.endpoint,this.envelopeId).then((async e=>{var i,s;console.log("[SIDEBAR] Envelope canceled",e),c("Envelope canceled",{style:"success"}),this.store=await d(this.endpoint,this.envelopeId,!0),this.sortEnvelopeRecipients(),this.loading=!1,null===(i=this.envelopeUpdated)||void 0===i||i.emit({endpoint:this.endpoint,envelope:null===(s=this.store)||void 0===s?void 0:s.state,event:"canceled"})})).catch((e=>{console.log("[SIDEBAR] Error canceling envelope",e),this.loading=!1,c("Error canceling envelope: "+e.message,{style:"error"})}))}prepareHistoryEntries(){var e,i,s,t,n,o,l,a,d,r,c,v;const p=[],h=(null===(i=null===(e=this.store)||void 0===e?void 0:e.state)||void 0===i?void 0:i.histories)||[];p.push({icon:"pencil",message:"Envelope created.",date:new Date(null===(t=null===(s=this.store)||void 0===s?void 0:s.state)||void 0===t?void 0:t.created_at)}),"complete"===(null===(o=null===(n=this.store)||void 0===n?void 0:n.state)||void 0===o?void 0:o.status)&&p.push({icon:"pencil",message:"Envelope completed.",date:new Date(null===(a=null===(l=this.store)||void 0===l?void 0:l.state)||void 0===a?void 0:a.updated_at)});const w=h.some((e=>"owner:canceled"===e.event));return"canceled"!==(null===(r=null===(d=this.store)||void 0===d?void 0:d.state)||void 0===r?void 0:r.status)||w||p.push({icon:"pencil",message:"Envelope Cancelled.",date:new Date(null===(v=null===(c=this.store)||void 0===c?void 0:c.state)||void 0===v?void 0:v.canceled_at)}),h.forEach((e=>{var i;const s=null===(i=this.store.state)||void 0===i?void 0:i.recipients.find((i=>i.role_name===e.role_name)),t=(null==s?void 0:s.full_name)||"";switch(e.event.toLowerCase()){case"recipient:signed":p.push({icon:"gesture",message:`Signed by ${t}.`,date:new Date(e.created_at)});break;case"recipient:declined":p.push({icon:"clear",message:`Declined by ${t}.`,date:new Date(e.created_at)});break;case"recipient:opened":switch(e.event_detail){case"email":case"mail":p.push({icon:"visibility",message:`Opened by ${t}, via email.`,date:new Date(e.created_at)});break;case"sms":p.push({icon:"visibility",message:`Opened by ${t}, via SMS.`,date:new Date(e.created_at)});break;case"in_person_link":p.push({icon:"visibility",message:`Opened by ${t}, via In-person link.`,date:new Date(e.created_at)});break;case"in_app":p.push({icon:"visibility",message:`Opened by ${t}, via dashboard.`,date:new Date(e.created_at)});break;default:p.push({icon:"visibility",message:`Opened by ${t}.`,date:new Date(e.created_at)})}break;case"recipient:submitted":switch(e.event_detail){case"approver":p.push({icon:"check_circle",message:`Approved by ${t}.`,date:new Date(e.created_at)});break;default:p.push({icon:"send",message:`Submitted by ${t}.`,date:new Date(e.created_at)})}break;case"recipient:prepared":p.push({icon:"send",message:`Prepared by ${t}.`,date:new Date(e.created_at)});break;case"recipient:claimed":"guest"===e.event_detail?p.push({icon:"account_circle",message:`${t} claimed the Verdoc as a guest.`,date:new Date(e.created_at)}):"profile"===e.event_detail&&p.push({icon:"verified_user",message:`${t} claimed the Verdoc as a verified user.`,date:new Date(e.created_at)});break;case"recipient:agreed":p.push({icon:"done",message:`${t} agreed to use electronic records and signatures.`,date:new Date(e.created_at)});break;case"recipient:invited":p.push("sms"===e.event_detail?{icon:"textsms",message:`${t} has been invited via SMS.`,date:new Date(e.created_at)}:{icon:"mail",message:`${t} has been invited via email.`,date:new Date(e.created_at)});break;case"invitation:resent":p.push({icon:"mail",message:`Invitation was resent to ${t} ${"reminder"===e.event_detail?" by reminder":""}.`,date:new Date(e.created_at)});break;case"envelope:cc":p.push({icon:"contact_mail",message:`A copy has been sent to ${t}.`,date:new Date(e.created_at)});break;case"recipient:delegated":p.push({icon:"people",message:e.event_detail,date:new Date(e.created_at)});break;case"recipient:updated_info":case"owner:updated_recipient_info":p.push({icon:"perm_identity",message:e.event_detail,date:new Date(e.created_at)});break;case"created":p.push({icon:"create",message:"Envelope was created.",date:new Date(e.created_at)});break;case"completed":p.push({icon:"done_all",message:"Envelope was completed.",date:new Date(e.created_at)});break;case"canceled":case"owner:canceled":p.push({icon:"cancel",message:"Envelope was canceled by the creator.",date:new Date(e.created_at)});break;case"owner:get_in_person_link":p.push({icon:"link",message:`Owner accessed the In-person link for ${s}.`,date:new Date(e.created_at)});break;default:console.log("[SIDEBAR] Unknown history type",e)}})),p.sort(((e,i)=>i.date.getTime()-e.date.getTime())),p}render(){var e,i,n,l,a,d,c,v,w,g,m,x,b,f,u,y,z,k,M,D,V,B,E,L,H;if(!this.store.state)return s(t,null);const S=this.endpoint.getSession(),_=o(S,this.store.state),$=this.prepareHistoryEntries(),I="pending"!==(null===(i=null===(e=this.store)||void 0===e?void 0:e.state)||void 0===i?void 0:i.status)&&"in progress"!==(null===(l=null===(n=this.store)||void 0===n?void 0:n.state)||void 0===l?void 0:l.status);return s(t,{class:this.panelOpen?"open":""},s("div",{class:"side-buttons"},s("button",{class:1===this.activeTab?"active":"",onClick:()=>this.setTab(1),innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z" /></svg>'}),s("button",{class:2===this.activeTab?"active":"",onClick:()=>this.setTab(2),innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z" /></svg>'}),s("button",{class:3===this.activeTab?"active":"",onClick:()=>this.setTab(3),innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25zM6.75 12h.008v.008H6.75V12zm0 3h.008v.008H6.75V15zm0 3h.008v.008H6.75V18z" /></svg>'})),1===this.activeTab&&s("div",{class:"content"},s("div",{class:"title"},"Details"),s("div",{class:"label"},"Envelope ID"),s("div",{class:"value"},null===(d=null===(a=this.store)||void 0===a?void 0:a.state)||void 0===d?void 0:d.id),s("div",{class:"label"},"Date Created"),s("div",{class:"value"},p(new Date(null===(v=null===(c=this.store)||void 0===c?void 0:c.state)||void 0===v?void 0:v.created_at),r)),s("div",{class:"label"},"Last Modified"),s("div",{class:"value"},p(new Date(null===(g=null===(w=this.store)||void 0===w?void 0:w.state)||void 0===g?void 0:g.updated_at),r)),s("div",{class:"label"},"Status"),s("div",{class:"value"},null===(x=null===(m=this.store)||void 0===m?void 0:m.state)||void 0===x?void 0:x.status),s("div",{class:"label"},"Verdoc Owner ID"),s("div",{class:"value"},null===(f=null===(b=this.store)||void 0===b?void 0:b.state)||void 0===f?void 0:f.profile_id),s("div",{class:"label"},"Verdoc Owner Name"),s("div",{class:"value"},null===(z=null===(y=null===(u=this.store)||void 0===u?void 0:u.state)||void 0===y?void 0:y.profile)||void 0===z?void 0:z.first_name," ",null===(D=null===(M=null===(k=this.store)||void 0===k?void 0:k.state)||void 0===M?void 0:M.profile)||void 0===D?void 0:D.last_name),s("div",{class:"label"},"Verdoc Owner Email"),s("div",{class:"value"},null===(E=null===(B=null===(V=this.store)||void 0===V?void 0:V.state)||void 0===B?void 0:B.profile)||void 0===E?void 0:E.email)),2===this.activeTab&&s("div",{class:"content"},s("div",{class:"title"},"Recipients"),null===(H=null===(L=this.store)||void 0===L?void 0:L.state)||void 0===H?void 0:H.recipients.map(((e,i)=>{const t="submitted"!==e.status&&"canceled"!==e.status&&"declined"!==e.status,n=this.canResendRecipient(e);return s("div",{class:"recipient-detail"},s("div",{class:"recipient-header"},s("div",{class:"recipient-number"},i+1),s("div",{class:"recipient-type"},e.role_name),s("div",{class:{"recipient-status":!0,[e.status]:!0}},e.status),_&&!I&&s("verdocs-dropdown",{onOptionSelected:i=>this.handleRecipientAction(e,i.detail.id),options:[{id:"reminder",label:"Send Reminder",disabled:!n},{id:"inperson",label:"Get In-Person Link",disabled:!t}]})),s("dic",{class:"recipient-content"},s("div",{class:"recipient-name"},e.full_name),s("div",{class:"recipient-name"},e.email),s("div",{class:"recipient-name"},e.phone)))})),_&&s("verdocs-button",{class:"manage-recipients-button",variant:"standard",label:"Cancel Verdoc",onClick:()=>this.showCancelDialog=!I,disabled:I})),3===this.activeTab&&s("div",{class:"content"},s("div",{class:"title"},"History"),$.map((e=>s("div",{class:"history-entry"},s("div",{class:"activity-icon",innerHTML:h[e.icon]||e.icon}),s("div",{class:"activity-details"},s("div",{class:"activity-text"},e.message),s("div",{class:"activity-date"},p(e.date,r))))))),this.showRecipientDialog&&s("verdocs-envelope-recipient-link",{envelopeId:this.envelopeId,roleName:this.showRecipientDialog,onNext:()=>this.showRecipientDialog=""}),this.showManageDialog&&s("verdocs-envelope-recipient-summary",{envelopeId:this.envelopeId,canView:!1,onAnother:()=>{var e;this.showManageDialog=!1,null===(e=this.another)||void 0===e||e.emit({envelope:this.store.state})},onNext:()=>this.showManageDialog=!1}),this.showCancelDialog&&s("verdocs-ok-dialog",{heading:"Cancel Envelope?",message:"Are you sure you want to cancel this Envelope? This action cannot be undone.",onNext:()=>{this.showCancelDialog=!1,this.cancelEnvelope()}}))}};w.style='verdocs-envelope-sidebar{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex;-ms-flex:0 0 56px;flex:0 0 56px;width:56px;min-height:400px;height:100%;background:#41435e;-webkit-transition:0.5s cubic-bezier(0.35, 0, 0.25, 1);transition:0.5s cubic-bezier(0.35, 0, 0.25, 1)}verdocs-envelope-sidebar.open{-ms-flex:0 0 400px;flex:0 0 400px;max-width:100%;width:400px}@media screen and (max-width: 500px){verdocs-envelope-sidebar.open{-ms-flex:0 0 300px;flex:0 0 300px;width:300px}}verdocs-envelope-sidebar .side-buttons{-ms-flex-direction:column;flex-direction:column;-ms-flex:0 0 56px;flex:0 0 56px;display:-ms-flexbox;display:flex}verdocs-envelope-sidebar .side-buttons button{height:50px;outline:none;border:none;border-left:2px solid transparent;background:none;width:100%}verdocs-envelope-sidebar .side-buttons button.active{border-left:2px solid #50bd80}verdocs-envelope-sidebar .side-buttons button svg{color:white;width:24px;height:24px}verdocs-envelope-sidebar .content{-ms-flex:1;flex:1;display:none;color:white;-ms-flex-direction:column;flex-direction:column;padding:12px 16px 16px}verdocs-envelope-sidebar.open .content{display:-ms-flexbox;display:flex;overflow-y:scroll}verdocs-envelope-sidebar verdocs-ok-dialog .content{color:black}verdocs-envelope-sidebar .title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:12px;font-size:16px;line-height:24px;font-weight:400}verdocs-envelope-sidebar .label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:16px;color:rgba(255, 255, 255, 0.54)}verdocs-envelope-sidebar .value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:14px;font-size:14px;font-weight:500;line-height:16px;color:#fff}verdocs-envelope-sidebar .manage-recipients-button{-ms-flex-item-align:center;align-self:center;white-space:nowrap;width:100%;margin:0 0 10px 0}verdocs-envelope-sidebar .manage-recipients-button .label{color:#ffffff;font-size:14px}verdocs-envelope-sidebar .manage-recipients-button button{width:100%}verdocs-envelope-sidebar .recipient-detail{-ms-flex:0;flex:0;padding:8px;position:relative;-ms-flex-direction:column;flex-direction:column;border:solid 1px #979797;margin-bottom:16px}verdocs-envelope-sidebar .recipient-header{-ms-flex-direction:row;flex-direction:row;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;place-content:center space-between;-ms-flex-align:center;align-items:center;margin-bottom:4px}verdocs-envelope-sidebar .recipient-number{width:24px;height:24px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:24px;font-size:14px;font-weight:500;margin-right:10px;border:solid 1px #979797}verdocs-envelope-sidebar .recipient-type{-ms-flex:1 1 88px;flex:1 1 88px;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:88px;min-width:88px;text-transform:capitalize}verdocs-envelope-sidebar .recipient-status{-ms-flex:1 1 100px;flex:1 1 100px;border-radius:5px;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:100px;min-width:100px;background-color:#616161;text-transform:capitalize;font-size:14px;padding:3px 0}verdocs-envelope-sidebar .recipient-status.invited{background-color:#ff8f00}verdocs-envelope-sidebar .recipient-status.opened{background-color:#616161}verdocs-envelope-sidebar .recipient-status.signed,verdocs-envelope-sidebar .recipient-status.submitted{background-color:#2e7d32}verdocs-envelope-sidebar .recipient-status.pending{background-color:#0277bd}verdocs-envelope-sidebar .recipient-status.canceled,verdocs-envelope-sidebar .recipient-status.declined{background-color:#c62828}@media screen and (max-width: 500px){verdocs-envelope-sidebar .recipient-status{-ms-flex:1 1 60px;flex:1 1 60px;max-width:60px;min-width:60px}}verdocs-envelope-sidebar .recipient-content{-ms-flex-direction:column;flex-direction:column}verdocs-envelope-sidebar .recipient-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}verdocs-envelope-sidebar .history-entry{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;padding:8px 0 0;margin:8px 0 0;border-top:1px solid #dddddd}verdocs-envelope-sidebar .history-entry .activity-icon{margin-right:14px}verdocs-envelope-sidebar .history-entry .activity-icon svg{width:24px;height:24px;fill:#ffffff}verdocs-envelope-sidebar .history-entry .activity-text{font-size:14px;line-height:16px;margin-bottom:4px}verdocs-envelope-sidebar .history-entry .activity-date{font-size:12px;line-height:16px;color:rgba(255, 255, 255, 0.54)}verdocs-envelope-sidebar .content .history-entry:first-of-type{border-top:none}';export{w as verdocs_envelope_sidebar}
@@ -1 +0,0 @@
1
- import{r as o,c as i,h as s,H as e}from"./p-14b44491.js";const t=class{constructor(s){o(this,s),this.next=i(this,"next",7),this.exit=i(this,"exit",7),this.heading="",this.message="",this.buttonLabel="OK",this.showCancel=!1,this.closed=!1}handleOk(){this.next.emit()}handleCancel(){this.exit.emit()}handleDismiss(o){this.closed=!0,"background-overlay"===o.target.className&&(o.preventDefault(),this.exit.emit())}render(){return s(e,{class:this.closed?"closed":""},s("div",{class:"background-overlay",onClick:o=>this.handleDismiss(o)},s("div",{class:"dialog"},s("div",{class:"heading"},this.heading),s("div",{class:"content"},s("div",{class:"message",innerHTML:this.message}),s("div",{class:"buttons"},this.showCancel?s("verdocs-button",{label:"CANCEL",variant:"outline",onClick:()=>this.handleCancel()}):s("div",{style:{display:"none"}}),s("verdocs-button",{label:this.buttonLabel,onClick:()=>this.handleOk()}))))))}};t.style='verdocs-ok-dialog{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-ok-dialog.closed{display:none}verdocs-ok-dialog .background-overlay{position:fixed;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#0000007f}verdocs-ok-dialog .dialog{max-width:50%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-ok-dialog .heading{display:-ms-flexbox;display:flex;font-size:16px;-ms-flex-direction:row;flex-direction:row;padding:8px 16px;font-weight:bold;color:#ffffff;background:#46497d}verdocs-ok-dialog .content{font-size:16px;background:#ffffff;padding:20px}verdocs-ok-dialog .buttons{display:-ms-flexbox;display:flex;margin:30px 0 0 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}verdocs-ok-dialog .buttons verdocs-button{margin-left:16px}';export{t as verdocs_ok_dialog}