vviinn-widgets 2.7.2 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (357) hide show
  1. package/dist/components/Handler.js +270 -0
  2. package/dist/components/NonEmptyArray.js +5699 -0
  3. package/dist/components/cropper-handler.js +6 -0
  4. package/dist/components/cropper-handler2.js +39 -0
  5. package/dist/{cjs/customized-slots-06ca4007.js → components/customized-slots.js} +3 -6
  6. package/dist/components/highlight-box.js +6 -0
  7. package/dist/components/highlight-box2.js +52 -0
  8. package/dist/components/image-cropper.js +6 -0
  9. package/dist/components/image-cropper2.js +138 -0
  10. package/dist/components/imageSearch.store.js +10686 -0
  11. package/dist/components/index.js +1 -0
  12. package/dist/{esm/index-443468c7.js → components/index2.js} +2 -2
  13. package/dist/components/index3.js +130 -0
  14. package/dist/components/recommendations-sidebar.js +101 -0
  15. package/dist/components/resizer.worker.js +11 -0
  16. package/dist/components/search-filters.js +6 -0
  17. package/dist/components/search-filters2.js +89 -0
  18. package/dist/components/tracking.worker.js +11 -0
  19. package/dist/components/vviinn-carousel.js +6 -0
  20. package/dist/components/vviinn-carousel2.js +235 -0
  21. package/dist/components/vviinn-detected-object.js +6 -0
  22. package/dist/components/vviinn-detected-object2.js +67 -0
  23. package/dist/components/vviinn-empty-results.js +6 -0
  24. package/dist/components/vviinn-empty-results2.js +35 -0
  25. package/dist/components/vviinn-error.js +6 -0
  26. package/dist/components/vviinn-error2.js +28 -0
  27. package/dist/components/vviinn-example-image.js +6 -0
  28. package/dist/components/vviinn-example-image2.js +57 -0
  29. package/dist/components/vviinn-example-images.js +6 -0
  30. package/dist/components/vviinn-example-images2.js +53 -0
  31. package/dist/components/vviinn-image-selector.js +6 -0
  32. package/dist/components/vviinn-image-selector2.js +135 -0
  33. package/dist/components/vviinn-image-view.js +6 -0
  34. package/dist/components/vviinn-image-view2.js +95 -0
  35. package/dist/components/vviinn-modal.js +6 -0
  36. package/dist/components/vviinn-modal2.js +46 -0
  37. package/dist/components/vviinn-onboarding-card-1.js +6 -0
  38. package/dist/components/vviinn-onboarding-card-12.js +34 -0
  39. package/dist/components/vviinn-onboarding-card-2.js +6 -0
  40. package/dist/components/vviinn-onboarding-card-22.js +34 -0
  41. package/dist/components/vviinn-onboarding-card-3.js +6 -0
  42. package/dist/components/vviinn-onboarding-card-32.js +34 -0
  43. package/dist/components/vviinn-onboarding.js +6 -0
  44. package/dist/components/vviinn-onboarding2.js +63 -0
  45. package/dist/components/vviinn-overlay.js +6 -0
  46. package/dist/components/vviinn-overlay2.js +28 -0
  47. package/dist/components/vviinn-overlayed-modal.js +6 -0
  48. package/dist/components/vviinn-overlayed-modal2.js +45 -0
  49. package/dist/components/vviinn-preloader.js +6 -0
  50. package/dist/components/vviinn-preloader2.js +34 -0
  51. package/dist/components/vviinn-privacy-badge.js +6 -0
  52. package/dist/components/vviinn-privacy-badge2.js +33 -0
  53. package/dist/components/vviinn-product-card.js +6 -0
  54. package/dist/components/vviinn-product-card2.js +216 -0
  55. package/dist/components/vviinn-recommendations-sidebar.js +6 -0
  56. package/dist/components/vviinn-server-error.js +6 -0
  57. package/dist/components/vviinn-server-error2.js +35 -0
  58. package/dist/components/vviinn-slide.js +6 -0
  59. package/dist/components/vviinn-slide2.js +28 -0
  60. package/dist/components/vviinn-slider.js +6 -0
  61. package/dist/components/vviinn-slider2.js +159 -0
  62. package/dist/components/vviinn-teaser.js +6 -0
  63. package/dist/components/vviinn-teaser2.js +33 -0
  64. package/dist/components/vviinn-vpr-button.js +93 -0
  65. package/dist/components/vviinn-vpr-vidget.js +3360 -0
  66. package/dist/components/vviinn-vpr-widget.js +6 -0
  67. package/dist/components/vviinn-vps-button.js +224 -0
  68. package/dist/components/vviinn-vps-widget.js +6 -0
  69. package/dist/components/vviinn-vps-widget2.js +350 -0
  70. package/dist/components/vviinn-wrong-format.js +6 -0
  71. package/dist/components/vviinn-wrong-format2.js +35 -0
  72. package/dist/types/components/vviinn-product-card/vviinn-product-card.d.ts +1 -0
  73. package/dist/types/components/vviinn-vpr-button/stories/lol.d.ts +2 -0
  74. package/dist/types/components/vviinn-vpr-button/stories/vviinn-vpr-button.stories.d.ts +1 -1
  75. package/dist/vviinn-widgets/Array-bdfc75db.js +4870 -0
  76. package/dist/vviinn-widgets/Handler-edcb46f4.js +1422 -0
  77. package/dist/vviinn-widgets/NonEmptyArray-947ab7b3.js +4411 -0
  78. package/dist/{esm/app-globals-865bc7a7.js → vviinn-widgets/app-globals-c0aa8ec3.js} +922 -10
  79. package/dist/vviinn-widgets/cropper-handler.entry.js +23 -0
  80. package/dist/vviinn-widgets/css-shim-f0027935.js +4 -0
  81. package/dist/{esm/customized-slots-96902edf.js → vviinn-widgets/customized-slots-5c1c623a.js} +1 -1
  82. package/dist/vviinn-widgets/dom-db0073f0.js +73 -0
  83. package/dist/vviinn-widgets/highlight-box.entry.js +41 -0
  84. package/dist/{collection/components/image-search/image-view/image-cropper/image-cropper.js → vviinn-widgets/image-cropper.entry.js} +33 -70
  85. package/dist/{cjs/index-df6896e2.js → vviinn-widgets/imageSearch.store-0eed9a5c.js} +11598 -15320
  86. package/dist/{esm/index-2fdd499d.js → vviinn-widgets/imageSearch.store-b28bddb0.js} +11971 -15281
  87. package/dist/{collection/components/vviinn-icons/index.js → vviinn-widgets/index-44058ea2.js} +14 -11
  88. package/dist/vviinn-widgets/index-6c6de682.js +3857 -0
  89. package/dist/vviinn-widgets/index-de3e14da.js +3010 -0
  90. package/dist/vviinn-widgets/index.esm.js +1 -0
  91. package/dist/vviinn-widgets/number-171db649.js +1499 -0
  92. package/dist/vviinn-widgets/search-filters.entry.js +76 -0
  93. package/dist/vviinn-widgets/shadow-css-c1fdfa9f.js +389 -0
  94. package/dist/{collection/components/vviinn-carousel/vviinn-carousel.js → vviinn-widgets/vviinn-carousel.entry.js} +18 -113
  95. package/dist/vviinn-widgets/vviinn-detected-object.entry.js +54 -0
  96. package/dist/vviinn-widgets/vviinn-empty-results.entry.js +16 -0
  97. package/dist/vviinn-widgets/vviinn-error.entry.js +15 -0
  98. package/dist/vviinn-widgets/vviinn-example-image.entry.js +38 -0
  99. package/dist/vviinn-widgets/vviinn-example-images.entry.js +28 -0
  100. package/dist/vviinn-widgets/vviinn-image-selector.entry.js +31 -0
  101. package/dist/vviinn-widgets/vviinn-image-view.entry.js +55 -0
  102. package/dist/vviinn-widgets/vviinn-modal.entry.js +30 -0
  103. package/dist/vviinn-widgets/vviinn-onboarding-card-1.entry.js +21 -0
  104. package/dist/vviinn-widgets/vviinn-onboarding-card-2.entry.js +21 -0
  105. package/dist/vviinn-widgets/vviinn-onboarding-card-3.entry.js +21 -0
  106. package/dist/vviinn-widgets/vviinn-onboarding.entry.js +20 -0
  107. package/dist/vviinn-widgets/vviinn-overlay.entry.js +15 -0
  108. package/dist/vviinn-widgets/vviinn-overlayed-modal.entry.js +18 -0
  109. package/dist/vviinn-widgets/vviinn-preloader.entry.js +25 -0
  110. package/dist/vviinn-widgets/vviinn-privacy-badge.entry.js +20 -0
  111. package/dist/vviinn-widgets/vviinn-product-card.entry.js +188 -0
  112. package/dist/{esm → vviinn-widgets}/vviinn-recommendations-sidebar.entry.js +2 -2
  113. package/dist/vviinn-widgets/vviinn-server-error.entry.js +16 -0
  114. package/dist/vviinn-widgets/vviinn-slide.entry.js +15 -0
  115. package/dist/vviinn-widgets/vviinn-slider.entry.js +120 -0
  116. package/dist/vviinn-widgets/vviinn-teaser.entry.js +20 -0
  117. package/dist/{esm → vviinn-widgets}/vviinn-vpr-button.entry.js +2 -2
  118. package/dist/vviinn-widgets/vviinn-vpr-widget.entry.js +4588 -0
  119. package/dist/{esm → vviinn-widgets}/vviinn-vps-button.entry.js +3 -3
  120. package/dist/vviinn-widgets/vviinn-vps-widget.entry.js +170 -0
  121. package/dist/vviinn-widgets/vviinn-widgets.css +6 -1
  122. package/dist/vviinn-widgets/vviinn-widgets.esm.js +125 -1
  123. package/dist/vviinn-widgets/vviinn-wrong-format.entry.js +16 -0
  124. package/package.json +8 -2
  125. package/www/build/p-06c76b5e.js +1 -0
  126. package/www/build/p-07e16d04.js +15 -0
  127. package/{dist/vviinn-widgets/p-a6e0710f.entry.js → www/build/p-44bc50de.entry.js} +1 -1
  128. package/www/build/p-510922c6.js +1 -0
  129. package/www/build/p-57ce8de3.css +1 -0
  130. package/www/build/p-591cb193.entry.js +1 -0
  131. package/www/build/p-6b9d242e.js +1 -0
  132. package/www/build/p-880bccf1.js +1 -0
  133. package/www/build/p-b0ada114.entry.js +1 -0
  134. package/www/build/p-b7be7c70.entry.js +1 -0
  135. package/{dist/vviinn-widgets/p-166970f3.js → www/build/p-ea8dea5c.js} +1 -1
  136. package/www/build/vviinn-widgets.css +1 -1
  137. package/www/build/vviinn-widgets.esm.js +1 -1
  138. package/www/index.html +32261 -1
  139. package/www/sw.js +66 -0
  140. package/dist/cjs/app-globals-8db3bcbe.js +0 -6912
  141. package/dist/cjs/cropper-handler_27.cjs.entry.js +0 -1135
  142. package/dist/cjs/index-3c3ab815.js +0 -1354
  143. package/dist/cjs/index-f66cd8d1.js +0 -39
  144. package/dist/cjs/index.cjs.js +0 -2
  145. package/dist/cjs/loader.cjs.js +0 -23
  146. package/dist/cjs/vviinn-carousel_2.cjs.entry.js +0 -1001
  147. package/dist/cjs/vviinn-recommendations-sidebar.cjs.entry.js +0 -65
  148. package/dist/cjs/vviinn-vpr-button.cjs.entry.js +0 -49
  149. package/dist/cjs/vviinn-vps-button.cjs.entry.js +0 -43
  150. package/dist/cjs/vviinn-widgets.cjs.js +0 -21
  151. package/dist/collection/Image/error.js +0 -14
  152. package/dist/collection/Image/form.js +0 -5
  153. package/dist/collection/Image/fromFile.js +0 -18
  154. package/dist/collection/Image/imageToB64.js +0 -9
  155. package/dist/collection/Image/index.js +0 -0
  156. package/dist/collection/Image/renderPromise.js +0 -6
  157. package/dist/collection/Image/resizeImage.js +0 -28
  158. package/dist/collection/Image/sizing.js +0 -39
  159. package/dist/collection/Image/toFile.js +0 -17
  160. package/dist/collection/analytics/GAnalytics.js +0 -32
  161. package/dist/collection/analytics/GeneralAnalytics.js +0 -9
  162. package/dist/collection/analytics/GtagAnalytics.js +0 -35
  163. package/dist/collection/analytics/ProductAnalytics.js +0 -1
  164. package/dist/collection/campaign/Campaign.js +0 -8
  165. package/dist/collection/campaign/CampaignService.js +0 -5
  166. package/dist/collection/campaign/VCSCampaign.js +0 -1
  167. package/dist/collection/campaign/VCSCampaignResponse.js +0 -1
  168. package/dist/collection/campaign/VCSCampaignService.js +0 -7
  169. package/dist/collection/campaign/VPRCampaignResponse.js +0 -1
  170. package/dist/collection/campaign/VPRCampaignService.js +0 -7
  171. package/dist/collection/collection-manifest.json +0 -43
  172. package/dist/collection/components/customized-slots.js +0 -47
  173. package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.css +0 -71
  174. package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.js +0 -25
  175. package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.css +0 -49
  176. package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.js +0 -64
  177. package/dist/collection/components/image-search/image-view/image-cropper/image-cropper.css +0 -33
  178. package/dist/collection/components/image-search/search-filters/search-filters.css +0 -120
  179. package/dist/collection/components/image-search/search-filters/search-filters.js +0 -125
  180. package/dist/collection/components/vviinn-carousel/vviinn-carousel.css +0 -142
  181. package/dist/collection/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.css +0 -7
  182. package/dist/collection/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.js +0 -36
  183. package/dist/collection/components/vviinn-error/vviinn-error.css +0 -38
  184. package/dist/collection/components/vviinn-error/vviinn-error.js +0 -18
  185. package/dist/collection/components/vviinn-error/vviinn-server-error/vviinn-server-error.css +0 -3
  186. package/dist/collection/components/vviinn-error/vviinn-server-error/vviinn-server-error.js +0 -34
  187. package/dist/collection/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.css +0 -3
  188. package/dist/collection/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.js +0 -34
  189. package/dist/collection/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.css +0 -34
  190. package/dist/collection/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.js +0 -129
  191. package/dist/collection/components/vviinn-example-images/vviinn-example-images.css +0 -19
  192. package/dist/collection/components/vviinn-example-images/vviinn-example-images.js +0 -80
  193. package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.css +0 -25
  194. package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.js +0 -64
  195. package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.css +0 -47
  196. package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.js +0 -100
  197. package/dist/collection/components/vviinn-image-view/vviinn-image-view.css +0 -31
  198. package/dist/collection/components/vviinn-image-view/vviinn-image-view.js +0 -61
  199. package/dist/collection/components/vviinn-modal/vviinn-modal.css +0 -105
  200. package/dist/collection/components/vviinn-modal/vviinn-modal.js +0 -98
  201. package/dist/collection/components/vviinn-onboarding/onboarding-cards/onboarding-card.css +0 -41
  202. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-1/vviinn-onboarding-card-1.js +0 -26
  203. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-2/vviinn-onboarding-card-2.js +0 -26
  204. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-3/vviinn-onboarding-card-3.js +0 -26
  205. package/dist/collection/components/vviinn-onboarding/vviinn-onboarding.css +0 -58
  206. package/dist/collection/components/vviinn-onboarding/vviinn-onboarding.js +0 -28
  207. package/dist/collection/components/vviinn-overlay/vviinn-overlay.css +0 -33
  208. package/dist/collection/components/vviinn-overlay/vviinn-overlay.js +0 -15
  209. package/dist/collection/components/vviinn-overlayed-modal/vviinn-overlayed-modal.css +0 -29
  210. package/dist/collection/components/vviinn-overlayed-modal/vviinn-overlayed-modal.js +0 -71
  211. package/dist/collection/components/vviinn-preloader/vviinn-preloader.css +0 -37
  212. package/dist/collection/components/vviinn-preloader/vviinn-preloader.js +0 -20
  213. package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.css +0 -19
  214. package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.js +0 -27
  215. package/dist/collection/components/vviinn-product-card/render-helpers.js +0 -32
  216. package/dist/collection/components/vviinn-product-card/stories/args.js +0 -73
  217. package/dist/collection/components/vviinn-product-card/stories/decorators.js +0 -51
  218. package/dist/collection/components/vviinn-product-card/stories/vviinn-product-card.stories.js +0 -105
  219. package/dist/collection/components/vviinn-product-card/vviinn-product-card.css +0 -95
  220. package/dist/collection/components/vviinn-product-card/vviinn-product-card.js +0 -462
  221. package/dist/collection/components/vviinn-slider/arrow.js +0 -11
  222. package/dist/collection/components/vviinn-slider/vviinn-slide/vviinn-slide.css +0 -4
  223. package/dist/collection/components/vviinn-slider/vviinn-slide/vviinn-slide.js +0 -15
  224. package/dist/collection/components/vviinn-slider/vviinn-slider.css +0 -109
  225. package/dist/collection/components/vviinn-slider/vviinn-slider.js +0 -181
  226. package/dist/collection/components/vviinn-teaser/vviinn-teaser.css +0 -14
  227. package/dist/collection/components/vviinn-teaser/vviinn-teaser.js +0 -29
  228. package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.css +0 -238
  229. package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.js +0 -220
  230. package/dist/collection/components/vviinn-vpr-button/stories/args.js +0 -213
  231. package/dist/collection/components/vviinn-vpr-button/stories/vviinn-vpr-button.stories.js +0 -91
  232. package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.css +0 -35
  233. package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.js +0 -179
  234. package/dist/collection/components/vviinn-vpr-widget/stories/args.js +0 -197
  235. package/dist/collection/components/vviinn-vpr-widget/stories/decorators.js +0 -29
  236. package/dist/collection/components/vviinn-vpr-widget/stories/vviinn-vpr-widget.stories.js +0 -211
  237. package/dist/collection/components/vviinn-vpr-widget/token-helpers.js +0 -11
  238. package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-vidget.js +0 -510
  239. package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-widget.css +0 -79
  240. package/dist/collection/components/vviinn-vps-button/stories/vviinn-vps-button.stories.js +0 -35
  241. package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.css +0 -3
  242. package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.js +0 -195
  243. package/dist/collection/components/vviinn-vps-widget/stories/vviinn-vps-widget.stories.js +0 -37
  244. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.css +0 -350
  245. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +0 -375
  246. package/dist/collection/cropper/Cropper.js +0 -1
  247. package/dist/collection/cropper/Handler.js +0 -61
  248. package/dist/collection/dom/index.js +0 -3
  249. package/dist/collection/error.js +0 -14
  250. package/dist/collection/file/index.js +0 -4
  251. package/dist/collection/geometry/Clip.js +0 -14
  252. package/dist/collection/geometry/Point.js +0 -32
  253. package/dist/collection/geometry/Rectangle.js +0 -95
  254. package/dist/collection/geometry/RectangleAlt.js +0 -1
  255. package/dist/collection/geometry/Sized.js +0 -8
  256. package/dist/collection/global.js +0 -19
  257. package/dist/collection/index.js +0 -1
  258. package/dist/collection/interfaces/generated.js +0 -5
  259. package/dist/collection/interfaces/recommendation.js +0 -1
  260. package/dist/collection/network/apiClient.js +0 -9
  261. package/dist/collection/network/ion/File.js +0 -14
  262. package/dist/collection/network/ion/Form.js +0 -64
  263. package/dist/collection/network/ion/Link.js +0 -8
  264. package/dist/collection/network/ion/ValueObject.js +0 -23
  265. package/dist/collection/network/request.js +0 -19
  266. package/dist/collection/network/utils.js +0 -37
  267. package/dist/collection/openApi/index.js +0 -27
  268. package/dist/collection/recommendation/events.js +0 -1
  269. package/dist/collection/recommendation/recommendation.js +0 -1
  270. package/dist/collection/searchSession/searchSession.js +0 -31
  271. package/dist/collection/sentry.js +0 -14
  272. package/dist/collection/slider/GridMode.js +0 -1
  273. package/dist/collection/store/file-processing.js +0 -13
  274. package/dist/collection/store/imageSearch.store.js +0 -133
  275. package/dist/collection/store/store.js +0 -3
  276. package/dist/collection/store/tracking.store.js +0 -3
  277. package/dist/collection/stories/Button.js +0 -21
  278. package/dist/collection/stories/Button.stories.js +0 -42
  279. package/dist/collection/stories/Header.js +0 -45
  280. package/dist/collection/stories/Header.stories.js +0 -15
  281. package/dist/collection/stories/Page.js +0 -61
  282. package/dist/collection/stories/Page.stories.js +0 -19
  283. package/dist/collection/stories/assets/code-brackets.svg +0 -1
  284. package/dist/collection/stories/assets/colors.svg +0 -1
  285. package/dist/collection/stories/assets/comments.svg +0 -1
  286. package/dist/collection/stories/assets/direction.svg +0 -1
  287. package/dist/collection/stories/assets/flow.svg +0 -1
  288. package/dist/collection/stories/assets/plugin.svg +0 -1
  289. package/dist/collection/stories/assets/repo.svg +0 -1
  290. package/dist/collection/stories/assets/stackalt.svg +0 -1
  291. package/dist/collection/stories/image-selector.stories.js +0 -6
  292. package/dist/collection/stories/image-view.stories.js +0 -6
  293. package/dist/collection/stories/modal.stories.js +0 -12
  294. package/dist/collection/stories/onboarding.stories.js +0 -11
  295. package/dist/collection/stories/overlay.stories.js +0 -5
  296. package/dist/collection/stories/overlayedModal.stories.js +0 -8
  297. package/dist/collection/stories/privacy-badge.stories.js +0 -11
  298. package/dist/collection/stories/slider.stories.js +0 -17
  299. package/dist/collection/stories/teaser.stories.js +0 -5
  300. package/dist/collection/stories/vps-widget.stories.js +0 -47
  301. package/dist/collection/stories/vviinn-product.stories.js +0 -19
  302. package/dist/collection/tracking/event.js +0 -3
  303. package/dist/collection/tracking/filter.js +0 -5
  304. package/dist/collection/tracking/index.js +0 -13
  305. package/dist/collection/tracking/models.js +0 -6
  306. package/dist/collection/tracking/product.js +0 -18
  307. package/dist/collection/tracking/search.js +0 -5
  308. package/dist/collection/tracking/widget.js +0 -10
  309. package/dist/collection/utils/collections/collectionsUtils.js +0 -5
  310. package/dist/collection/utils/either.js +0 -3
  311. package/dist/collection/utils/enum/enumUtils.js +0 -3
  312. package/dist/collection/utils/event/Events.js +0 -1
  313. package/dist/collection/utils/number/index.js +0 -4
  314. package/dist/collection/utils/option/option.js +0 -4
  315. package/dist/collection/utils/semigroup/semigroupDiff.js +0 -6
  316. package/dist/collection/utils/token/tokenUtils.js +0 -9
  317. package/dist/esm/cropper-handler_27.entry.js +0 -1105
  318. package/dist/esm/index-51f71d18.js +0 -1323
  319. package/dist/esm/index.js +0 -1
  320. package/dist/esm/loader.js +0 -19
  321. package/dist/esm/polyfills/core-js.js +0 -11
  322. package/dist/esm/polyfills/css-shim.js +0 -1
  323. package/dist/esm/polyfills/dom.js +0 -79
  324. package/dist/esm/polyfills/es5-html-element.js +0 -1
  325. package/dist/esm/polyfills/index.js +0 -34
  326. package/dist/esm/polyfills/system.js +0 -6
  327. package/dist/esm/vviinn-carousel_2.entry.js +0 -996
  328. package/dist/esm/vviinn-widgets.js +0 -19
  329. package/dist/index.cjs.js +0 -1
  330. package/dist/index.js +0 -1
  331. package/dist/loader/cdn.js +0 -3
  332. package/dist/loader/index.cjs.js +0 -3
  333. package/dist/loader/index.d.ts +0 -12
  334. package/dist/loader/index.es2017.js +0 -3
  335. package/dist/loader/index.js +0 -4
  336. package/dist/loader/package.json +0 -10
  337. package/dist/vviinn-widgets/p-2dd35f19.entry.js +0 -1
  338. package/dist/vviinn-widgets/p-3469b71a.js +0 -1
  339. package/dist/vviinn-widgets/p-40bea5b5.entry.js +0 -1
  340. package/dist/vviinn-widgets/p-465d043d.js +0 -15
  341. package/dist/vviinn-widgets/p-59bd2a99.js +0 -1
  342. package/dist/vviinn-widgets/p-74ed36af.entry.js +0 -1
  343. package/dist/vviinn-widgets/p-9def6b8b.entry.js +0 -1
  344. package/dist/vviinn-widgets/p-cd995515.js +0 -1
  345. package/www/build/p-166970f3.js +0 -1
  346. package/www/build/p-2dd35f19.entry.js +0 -1
  347. package/www/build/p-3469b71a.js +0 -1
  348. package/www/build/p-40bea5b5.entry.js +0 -1
  349. package/www/build/p-465d043d.js +0 -15
  350. package/www/build/p-59bd2a99.js +0 -1
  351. package/www/build/p-61933b75.js +0 -1
  352. package/www/build/p-74ed36af.entry.js +0 -1
  353. package/www/build/p-9def6b8b.entry.js +0 -1
  354. package/www/build/p-a67898be.css +0 -1
  355. package/www/build/p-a6e0710f.entry.js +0 -1
  356. package/www/build/p-cd995515.js +0 -1
  357. package/www/favicon.ico +0 -0
@@ -0,0 +1,1422 @@
1
+ // -------------------------------------------------------------------------------------
2
+ // instances
3
+ // -------------------------------------------------------------------------------------
4
+ /**
5
+ * @category instances
6
+ * @since 2.10.0
7
+ */
8
+ var getBooleanAlgebra = function (B) { return function () { return ({
9
+ meet: function (x, y) { return function (a) { return B.meet(x(a), y(a)); }; },
10
+ join: function (x, y) { return function (a) { return B.join(x(a), y(a)); }; },
11
+ zero: function () { return B.zero; },
12
+ one: function () { return B.one; },
13
+ implies: function (x, y) { return function (a) { return B.implies(x(a), y(a)); }; },
14
+ not: function (x) { return function (a) { return B.not(x(a)); }; }
15
+ }); }; };
16
+ /**
17
+ * Unary functions form a semigroup as long as you can provide a semigroup for the codomain.
18
+ *
19
+ * @example
20
+ * import { Predicate, getSemigroup } from 'fp-ts/function'
21
+ * import * as B from 'fp-ts/boolean'
22
+ *
23
+ * const f: Predicate<number> = (n) => n <= 2
24
+ * const g: Predicate<number> = (n) => n >= 0
25
+ *
26
+ * const S1 = getSemigroup(B.SemigroupAll)<number>()
27
+ *
28
+ * assert.deepStrictEqual(S1.concat(f, g)(1), true)
29
+ * assert.deepStrictEqual(S1.concat(f, g)(3), false)
30
+ *
31
+ * const S2 = getSemigroup(B.SemigroupAny)<number>()
32
+ *
33
+ * assert.deepStrictEqual(S2.concat(f, g)(1), true)
34
+ * assert.deepStrictEqual(S2.concat(f, g)(3), true)
35
+ *
36
+ * @category instances
37
+ * @since 2.10.0
38
+ */
39
+ var getSemigroup$2 = function (S) { return function () { return ({
40
+ concat: function (f, g) { return function (a) { return S.concat(f(a), g(a)); }; }
41
+ }); }; };
42
+ /**
43
+ * Unary functions form a monoid as long as you can provide a monoid for the codomain.
44
+ *
45
+ * @example
46
+ * import { Predicate } from 'fp-ts/Predicate'
47
+ * import { getMonoid } from 'fp-ts/function'
48
+ * import * as B from 'fp-ts/boolean'
49
+ *
50
+ * const f: Predicate<number> = (n) => n <= 2
51
+ * const g: Predicate<number> = (n) => n >= 0
52
+ *
53
+ * const M1 = getMonoid(B.MonoidAll)<number>()
54
+ *
55
+ * assert.deepStrictEqual(M1.concat(f, g)(1), true)
56
+ * assert.deepStrictEqual(M1.concat(f, g)(3), false)
57
+ *
58
+ * const M2 = getMonoid(B.MonoidAny)<number>()
59
+ *
60
+ * assert.deepStrictEqual(M2.concat(f, g)(1), true)
61
+ * assert.deepStrictEqual(M2.concat(f, g)(3), true)
62
+ *
63
+ * @category instances
64
+ * @since 2.10.0
65
+ */
66
+ var getMonoid$2 = function (M) {
67
+ var getSemigroupM = getSemigroup$2(M);
68
+ return function () { return ({
69
+ concat: getSemigroupM().concat,
70
+ empty: function () { return M.empty; }
71
+ }); };
72
+ };
73
+ /**
74
+ * @category instances
75
+ * @since 2.10.0
76
+ */
77
+ var getSemiring = function (S) { return ({
78
+ add: function (f, g) { return function (x) { return S.add(f(x), g(x)); }; },
79
+ zero: function () { return S.zero; },
80
+ mul: function (f, g) { return function (x) { return S.mul(f(x), g(x)); }; },
81
+ one: function () { return S.one; }
82
+ }); };
83
+ /**
84
+ * @category instances
85
+ * @since 2.10.0
86
+ */
87
+ var getRing = function (R) {
88
+ var S = getSemiring(R);
89
+ return {
90
+ add: S.add,
91
+ mul: S.mul,
92
+ one: S.one,
93
+ zero: S.zero,
94
+ sub: function (f, g) { return function (x) { return R.sub(f(x), g(x)); }; }
95
+ };
96
+ };
97
+ // -------------------------------------------------------------------------------------
98
+ // utils
99
+ // -------------------------------------------------------------------------------------
100
+ /**
101
+ * @since 2.11.0
102
+ */
103
+ var apply = function (a) { return function (f) { return f(a); }; };
104
+ /**
105
+ * @since 2.0.0
106
+ */
107
+ function identity(a) {
108
+ return a;
109
+ }
110
+ /**
111
+ * @since 2.0.0
112
+ */
113
+ var unsafeCoerce = identity;
114
+ /**
115
+ * @since 2.0.0
116
+ */
117
+ function constant$1(a) {
118
+ return function () { return a; };
119
+ }
120
+ /**
121
+ * A thunk that returns always `true`.
122
+ *
123
+ * @since 2.0.0
124
+ */
125
+ var constTrue = /*#__PURE__*/ constant$1(true);
126
+ /**
127
+ * A thunk that returns always `false`.
128
+ *
129
+ * @since 2.0.0
130
+ */
131
+ var constFalse = /*#__PURE__*/ constant$1(false);
132
+ /**
133
+ * A thunk that returns always `null`.
134
+ *
135
+ * @since 2.0.0
136
+ */
137
+ var constNull = /*#__PURE__*/ constant$1(null);
138
+ /**
139
+ * A thunk that returns always `undefined`.
140
+ *
141
+ * @since 2.0.0
142
+ */
143
+ var constUndefined = /*#__PURE__*/ constant$1(undefined);
144
+ /**
145
+ * A thunk that returns always `void`.
146
+ *
147
+ * @since 2.0.0
148
+ */
149
+ var constVoid = constUndefined;
150
+ /**
151
+ * Flips the order of the arguments of a function of two arguments.
152
+ *
153
+ * @since 2.0.0
154
+ */
155
+ function flip(f) {
156
+ return function (b, a) { return f(a, b); };
157
+ }
158
+ function flow(ab, bc, cd, de, ef, fg, gh, hi, ij) {
159
+ switch (arguments.length) {
160
+ case 1:
161
+ return ab;
162
+ case 2:
163
+ return function () {
164
+ return bc(ab.apply(this, arguments));
165
+ };
166
+ case 3:
167
+ return function () {
168
+ return cd(bc(ab.apply(this, arguments)));
169
+ };
170
+ case 4:
171
+ return function () {
172
+ return de(cd(bc(ab.apply(this, arguments))));
173
+ };
174
+ case 5:
175
+ return function () {
176
+ return ef(de(cd(bc(ab.apply(this, arguments)))));
177
+ };
178
+ case 6:
179
+ return function () {
180
+ return fg(ef(de(cd(bc(ab.apply(this, arguments))))));
181
+ };
182
+ case 7:
183
+ return function () {
184
+ return gh(fg(ef(de(cd(bc(ab.apply(this, arguments)))))));
185
+ };
186
+ case 8:
187
+ return function () {
188
+ return hi(gh(fg(ef(de(cd(bc(ab.apply(this, arguments))))))));
189
+ };
190
+ case 9:
191
+ return function () {
192
+ return ij(hi(gh(fg(ef(de(cd(bc(ab.apply(this, arguments)))))))));
193
+ };
194
+ }
195
+ return;
196
+ }
197
+ /**
198
+ * @since 2.0.0
199
+ */
200
+ function tuple$3() {
201
+ var t = [];
202
+ for (var _i = 0; _i < arguments.length; _i++) {
203
+ t[_i] = arguments[_i];
204
+ }
205
+ return t;
206
+ }
207
+ /**
208
+ * @since 2.0.0
209
+ */
210
+ function increment(n) {
211
+ return n + 1;
212
+ }
213
+ /**
214
+ * @since 2.0.0
215
+ */
216
+ function decrement(n) {
217
+ return n - 1;
218
+ }
219
+ /**
220
+ * @since 2.0.0
221
+ */
222
+ function absurd(_) {
223
+ throw new Error('Called `absurd` function which should be uncallable');
224
+ }
225
+ /**
226
+ * Creates a tupled version of this function: instead of `n` arguments, it accepts a single tuple argument.
227
+ *
228
+ * @example
229
+ * import { tupled } from 'fp-ts/function'
230
+ *
231
+ * const add = tupled((x: number, y: number): number => x + y)
232
+ *
233
+ * assert.strictEqual(add([1, 2]), 3)
234
+ *
235
+ * @since 2.4.0
236
+ */
237
+ function tupled(f) {
238
+ return function (a) { return f.apply(void 0, a); };
239
+ }
240
+ /**
241
+ * Inverse function of `tupled`
242
+ *
243
+ * @since 2.4.0
244
+ */
245
+ function untupled(f) {
246
+ return function () {
247
+ var a = [];
248
+ for (var _i = 0; _i < arguments.length; _i++) {
249
+ a[_i] = arguments[_i];
250
+ }
251
+ return f(a);
252
+ };
253
+ }
254
+ function pipe(a, ab, bc, cd, de, ef, fg, gh, hi) {
255
+ switch (arguments.length) {
256
+ case 1:
257
+ return a;
258
+ case 2:
259
+ return ab(a);
260
+ case 3:
261
+ return bc(ab(a));
262
+ case 4:
263
+ return cd(bc(ab(a)));
264
+ case 5:
265
+ return de(cd(bc(ab(a))));
266
+ case 6:
267
+ return ef(de(cd(bc(ab(a)))));
268
+ case 7:
269
+ return fg(ef(de(cd(bc(ab(a))))));
270
+ case 8:
271
+ return gh(fg(ef(de(cd(bc(ab(a)))))));
272
+ case 9:
273
+ return hi(gh(fg(ef(de(cd(bc(ab(a))))))));
274
+ default: {
275
+ var ret = arguments[0];
276
+ for (var i = 1; i < arguments.length; i++) {
277
+ ret = arguments[i](ret);
278
+ }
279
+ return ret;
280
+ }
281
+ }
282
+ }
283
+ /**
284
+ * Type hole simulation
285
+ *
286
+ * @since 2.7.0
287
+ */
288
+ var hole = absurd;
289
+ /**
290
+ * @since 2.11.0
291
+ */
292
+ var SK = function (_, b) { return b; };
293
+ /**
294
+ * Use `Predicate` module instead.
295
+ *
296
+ * @since 2.0.0
297
+ * @deprecated
298
+ */
299
+ function not(predicate) {
300
+ return function (a) { return !predicate(a); };
301
+ }
302
+ /**
303
+ * Use `Endomorphism` module instead.
304
+ *
305
+ * @category instances
306
+ * @since 2.10.0
307
+ * @deprecated
308
+ */
309
+ var getEndomorphismMonoid = function () { return ({
310
+ concat: function (first, second) { return flow(first, second); },
311
+ empty: identity
312
+ }); };
313
+
314
+ var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from, pack) {
315
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
316
+ if (ar || !(i in from)) {
317
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
318
+ ar[i] = from[i];
319
+ }
320
+ }
321
+ return to.concat(ar || Array.prototype.slice.call(from));
322
+ };
323
+ // -------------------------------------------------------------------------------------
324
+ // Option
325
+ // -------------------------------------------------------------------------------------
326
+ /** @internal */
327
+ var isNone = function (fa) { return fa._tag === 'None'; };
328
+ /** @internal */
329
+ var isSome = function (fa) { return fa._tag === 'Some'; };
330
+ /** @internal */
331
+ var none = { _tag: 'None' };
332
+ /** @internal */
333
+ var some = function (a) { return ({ _tag: 'Some', value: a }); };
334
+ // -------------------------------------------------------------------------------------
335
+ // Either
336
+ // -------------------------------------------------------------------------------------
337
+ /** @internal */
338
+ var isLeft = function (ma) { return ma._tag === 'Left'; };
339
+ /** @internal */
340
+ var isRight = function (ma) { return ma._tag === 'Right'; };
341
+ /** @internal */
342
+ var left = function (e) { return ({ _tag: 'Left', left: e }); };
343
+ /** @internal */
344
+ var right = function (a) { return ({ _tag: 'Right', right: a }); };
345
+ // -------------------------------------------------------------------------------------
346
+ // ReadonlyNonEmptyArray
347
+ // -------------------------------------------------------------------------------------
348
+ /** @internal */
349
+ var singleton = function (a) { return [a]; };
350
+ /** @internal */
351
+ var isNonEmpty = function (as) { return as.length > 0; };
352
+ /** @internal */
353
+ var head = function (as) { return as[0]; };
354
+ /** @internal */
355
+ var tail = function (as) { return as.slice(1); };
356
+ // -------------------------------------------------------------------------------------
357
+ // empty
358
+ // -------------------------------------------------------------------------------------
359
+ /** @internal */
360
+ var emptyReadonlyArray = [];
361
+ /** @internal */
362
+ var emptyRecord = {};
363
+ // -------------------------------------------------------------------------------------
364
+ // Record
365
+ // -------------------------------------------------------------------------------------
366
+ /** @internal */
367
+ var has = Object.prototype.hasOwnProperty;
368
+ // -------------------------------------------------------------------------------------
369
+ // NonEmptyArray
370
+ // -------------------------------------------------------------------------------------
371
+ /** @internal */
372
+ var fromReadonlyNonEmptyArray = function (as) { return __spreadArray([as[0]], as.slice(1), true); };
373
+
374
+ /**
375
+ * A `Magma` is a pair `(A, concat)` in which `A` is a non-empty set and `concat` is a binary operation on `A`
376
+ *
377
+ * See [Semigroup](https://gcanti.github.io/fp-ts/modules/Semigroup.ts.html) for some instances.
378
+ *
379
+ * @since 2.0.0
380
+ */
381
+ // -------------------------------------------------------------------------------------
382
+ // combinators
383
+ // -------------------------------------------------------------------------------------
384
+ /**
385
+ * The dual of a `Magma`, obtained by swapping the arguments of `concat`.
386
+ *
387
+ * @example
388
+ * import { reverse, concatAll } from 'fp-ts/Magma'
389
+ * import * as N from 'fp-ts/number'
390
+ *
391
+ * const subAll = concatAll(reverse(N.MagmaSub))(0)
392
+ *
393
+ * assert.deepStrictEqual(subAll([1, 2, 3]), 2)
394
+ *
395
+ * @category combinators
396
+ * @since 2.11.0
397
+ */
398
+ var reverse$2 = function (M) { return ({
399
+ concat: function (first, second) { return M.concat(second, first); }
400
+ }); };
401
+ /**
402
+ * @category combinators
403
+ * @since 2.11.0
404
+ */
405
+ var filterFirst = function (predicate) { return function (M) { return ({
406
+ concat: function (first, second) { return (predicate(first) ? M.concat(first, second) : second); }
407
+ }); }; };
408
+ /**
409
+ * @category combinators
410
+ * @since 2.11.0
411
+ */
412
+ var filterSecond = function (predicate) { return function (M) { return ({
413
+ concat: function (first, second) { return (predicate(second) ? M.concat(first, second) : first); }
414
+ }); }; };
415
+ /**
416
+ * @category combinators
417
+ * @since 2.11.0
418
+ */
419
+ var endo = function (f) { return function (M) { return ({
420
+ concat: function (first, second) { return M.concat(f(first), f(second)); }
421
+ }); }; };
422
+ // -------------------------------------------------------------------------------------
423
+ // utils
424
+ // -------------------------------------------------------------------------------------
425
+ /**
426
+ * Given a sequence of `as`, concat them and return the total.
427
+ *
428
+ * If `as` is empty, return the provided `startWith` value.
429
+ *
430
+ * @example
431
+ * import { concatAll } from 'fp-ts/Magma'
432
+ * import * as N from 'fp-ts/number'
433
+ *
434
+ * const subAll = concatAll(N.MagmaSub)(0)
435
+ *
436
+ * assert.deepStrictEqual(subAll([1, 2, 3]), -6)
437
+ *
438
+ * @since 2.11.0
439
+ */
440
+ var concatAll$1 = function (M) { return function (startWith) { return function (as) {
441
+ return as.reduce(function (a, acc) { return M.concat(a, acc); }, startWith);
442
+ }; }; };
443
+
444
+ // -------------------------------------------------------------------------------------
445
+ // constructors
446
+ // -------------------------------------------------------------------------------------
447
+ /**
448
+ * @category constructors
449
+ * @since 2.0.0
450
+ */
451
+ var fromEquals = function (equals) { return ({
452
+ equals: function (x, y) { return x === y || equals(x, y); }
453
+ }); };
454
+ // -------------------------------------------------------------------------------------
455
+ // combinators
456
+ // -------------------------------------------------------------------------------------
457
+ /**
458
+ * @category combinators
459
+ * @since 2.10.0
460
+ */
461
+ var struct$1 = function (eqs) {
462
+ return fromEquals(function (first, second) {
463
+ for (var key in eqs) {
464
+ if (!eqs[key].equals(first[key], second[key])) {
465
+ return false;
466
+ }
467
+ }
468
+ return true;
469
+ });
470
+ };
471
+ /**
472
+ * Given a tuple of `Eq`s returns a `Eq` for the tuple
473
+ *
474
+ * @example
475
+ * import { tuple } from 'fp-ts/Eq'
476
+ * import * as S from 'fp-ts/string'
477
+ * import * as N from 'fp-ts/number'
478
+ * import * as B from 'fp-ts/boolean'
479
+ *
480
+ * const E = tuple(S.Eq, N.Eq, B.Eq)
481
+ * assert.strictEqual(E.equals(['a', 1, true], ['a', 1, true]), true)
482
+ * assert.strictEqual(E.equals(['a', 1, true], ['b', 1, true]), false)
483
+ * assert.strictEqual(E.equals(['a', 1, true], ['a', 2, true]), false)
484
+ * assert.strictEqual(E.equals(['a', 1, true], ['a', 1, false]), false)
485
+ *
486
+ * @category combinators
487
+ * @since 2.10.0
488
+ */
489
+ var tuple$2 = function () {
490
+ var eqs = [];
491
+ for (var _i = 0; _i < arguments.length; _i++) {
492
+ eqs[_i] = arguments[_i];
493
+ }
494
+ return fromEquals(function (first, second) { return eqs.every(function (E, i) { return E.equals(first[i], second[i]); }); });
495
+ };
496
+ // -------------------------------------------------------------------------------------
497
+ // non-pipeables
498
+ // -------------------------------------------------------------------------------------
499
+ /* istanbul ignore next */
500
+ var contramap_$1 = function (fa, f) { return pipe(fa, contramap$1(f)); };
501
+ // -------------------------------------------------------------------------------------
502
+ // type class members
503
+ // -------------------------------------------------------------------------------------
504
+ /**
505
+ * @category Contravariant
506
+ * @since 2.0.0
507
+ */
508
+ var contramap$1 = function (f) { return function (fa) {
509
+ return fromEquals(function (x, y) { return fa.equals(f(x), f(y)); });
510
+ }; };
511
+ // -------------------------------------------------------------------------------------
512
+ // instances
513
+ // -------------------------------------------------------------------------------------
514
+ /**
515
+ * @category instances
516
+ * @since 2.0.0
517
+ */
518
+ var URI$1 = 'Eq';
519
+ /**
520
+ * @category instances
521
+ * @since 2.5.0
522
+ */
523
+ var eqStrict = {
524
+ equals: function (a, b) { return a === b; }
525
+ };
526
+ var empty = {
527
+ equals: function () { return true; }
528
+ };
529
+ /**
530
+ * @category instances
531
+ * @since 2.10.0
532
+ */
533
+ var getSemigroup$1 = function () { return ({
534
+ concat: function (x, y) { return fromEquals(function (a, b) { return x.equals(a, b) && y.equals(a, b); }); }
535
+ }); };
536
+ /**
537
+ * @category instances
538
+ * @since 2.6.0
539
+ */
540
+ var getMonoid$1 = function () { return ({
541
+ concat: getSemigroup$1().concat,
542
+ empty: empty
543
+ }); };
544
+ /**
545
+ * @category instances
546
+ * @since 2.7.0
547
+ */
548
+ var Contravariant$1 = {
549
+ URI: URI$1,
550
+ contramap: contramap_$1
551
+ };
552
+ // -------------------------------------------------------------------------------------
553
+ // deprecated
554
+ // -------------------------------------------------------------------------------------
555
+ /**
556
+ * Use [`tuple`](#tuple) instead.
557
+ *
558
+ * @category combinators
559
+ * @since 2.0.0
560
+ * @deprecated
561
+ */
562
+ var getTupleEq = tuple$2;
563
+ /**
564
+ * Use [`struct`](#struct) instead.
565
+ *
566
+ * @category combinators
567
+ * @since 2.0.0
568
+ * @deprecated
569
+ */
570
+ var getStructEq = struct$1;
571
+ /**
572
+ * Use [`eqStrict`](#eqstrict) instead
573
+ *
574
+ * @since 2.0.0
575
+ * @deprecated
576
+ */
577
+ var strictEqual = eqStrict.equals;
578
+ /**
579
+ * This instance is deprecated, use small, specific instances instead.
580
+ * For example if a function needs a `Contravariant` instance, pass `E.Contravariant` instead of `E.eq`
581
+ * (where `E` is from `import E from 'fp-ts/Eq'`)
582
+ *
583
+ * @category instances
584
+ * @since 2.0.0
585
+ * @deprecated
586
+ */
587
+ var eq = Contravariant$1;
588
+ /**
589
+ * Use [`Eq`](./boolean.ts.html#eq) instead.
590
+ *
591
+ * @category instances
592
+ * @since 2.0.0
593
+ * @deprecated
594
+ */
595
+ var eqBoolean = eqStrict;
596
+ /**
597
+ * Use [`Eq`](./string.ts.html#eq) instead.
598
+ *
599
+ * @category instances
600
+ * @since 2.0.0
601
+ * @deprecated
602
+ */
603
+ var eqString = eqStrict;
604
+ /**
605
+ * Use [`Eq`](./number.ts.html#eq) instead.
606
+ *
607
+ * @category instances
608
+ * @since 2.0.0
609
+ * @deprecated
610
+ */
611
+ var eqNumber = eqStrict;
612
+ /**
613
+ * Use [`Eq`](./Date.ts.html#eq) instead.
614
+ *
615
+ * @category instances
616
+ * @since 2.0.0
617
+ * @deprecated
618
+ */
619
+ var eqDate = {
620
+ equals: function (first, second) { return first.valueOf() === second.valueOf(); }
621
+ };
622
+
623
+ // -------------------------------------------------------------------------------------
624
+ // defaults
625
+ // -------------------------------------------------------------------------------------
626
+ /**
627
+ * @category defaults
628
+ * @since 2.10.0
629
+ */
630
+ var equalsDefault = function (compare) { return function (first, second) {
631
+ return first === second || compare(first, second) === 0;
632
+ }; };
633
+ // -------------------------------------------------------------------------------------
634
+ // constructors
635
+ // -------------------------------------------------------------------------------------
636
+ /**
637
+ * @category constructors
638
+ * @since 2.0.0
639
+ */
640
+ var fromCompare = function (compare) { return ({
641
+ equals: equalsDefault(compare),
642
+ compare: function (first, second) { return (first === second ? 0 : compare(first, second)); }
643
+ }); };
644
+ // -------------------------------------------------------------------------------------
645
+ // combinators
646
+ // -------------------------------------------------------------------------------------
647
+ /**
648
+ * Given a tuple of `Ord`s returns an `Ord` for the tuple.
649
+ *
650
+ * @example
651
+ * import { tuple } from 'fp-ts/Ord'
652
+ * import * as B from 'fp-ts/boolean'
653
+ * import * as S from 'fp-ts/string'
654
+ * import * as N from 'fp-ts/number'
655
+ *
656
+ * const O = tuple(S.Ord, N.Ord, B.Ord)
657
+ * assert.strictEqual(O.compare(['a', 1, true], ['b', 2, true]), -1)
658
+ * assert.strictEqual(O.compare(['a', 1, true], ['a', 2, true]), -1)
659
+ * assert.strictEqual(O.compare(['a', 1, true], ['a', 1, false]), 1)
660
+ *
661
+ * @category combinators
662
+ * @since 2.10.0
663
+ */
664
+ var tuple$1 = function () {
665
+ var ords = [];
666
+ for (var _i = 0; _i < arguments.length; _i++) {
667
+ ords[_i] = arguments[_i];
668
+ }
669
+ return fromCompare(function (first, second) {
670
+ var i = 0;
671
+ for (; i < ords.length - 1; i++) {
672
+ var r = ords[i].compare(first[i], second[i]);
673
+ if (r !== 0) {
674
+ return r;
675
+ }
676
+ }
677
+ return ords[i].compare(first[i], second[i]);
678
+ });
679
+ };
680
+ /**
681
+ * @category combinators
682
+ * @since 2.10.0
683
+ */
684
+ var reverse$1 = function (O) { return fromCompare(function (first, second) { return O.compare(second, first); }); };
685
+ // -------------------------------------------------------------------------------------
686
+ // non-pipeables
687
+ // -------------------------------------------------------------------------------------
688
+ /* istanbul ignore next */
689
+ var contramap_ = function (fa, f) { return pipe(fa, contramap(f)); };
690
+ // -------------------------------------------------------------------------------------
691
+ // type class members
692
+ // -------------------------------------------------------------------------------------
693
+ /**
694
+ * @category Contravariant
695
+ * @since 2.0.0
696
+ */
697
+ var contramap = function (f) { return function (fa) {
698
+ return fromCompare(function (first, second) { return fa.compare(f(first), f(second)); });
699
+ }; };
700
+ // -------------------------------------------------------------------------------------
701
+ // instances
702
+ // -------------------------------------------------------------------------------------
703
+ /**
704
+ * @category instances
705
+ * @since 2.0.0
706
+ */
707
+ var URI = 'Ord';
708
+ /**
709
+ * @category instances
710
+ * @since 2.0.0
711
+ */
712
+ var getSemigroup = function () { return ({
713
+ concat: function (first, second) {
714
+ return fromCompare(function (a, b) {
715
+ var ox = first.compare(a, b);
716
+ return ox !== 0 ? ox : second.compare(a, b);
717
+ });
718
+ }
719
+ }); };
720
+ /**
721
+ * Returns a `Monoid` such that:
722
+ *
723
+ * - its `concat(ord1, ord2)` operation will order first by `ord1`, and then by `ord2`
724
+ * - its `empty` value is an `Ord` that always considers compared elements equal
725
+ *
726
+ * @example
727
+ * import { sort } from 'fp-ts/Array'
728
+ * import { contramap, reverse, getMonoid } from 'fp-ts/Ord'
729
+ * import * as S from 'fp-ts/string'
730
+ * import * as B from 'fp-ts/boolean'
731
+ * import { pipe } from 'fp-ts/function'
732
+ * import { concatAll } from 'fp-ts/Monoid'
733
+ * import * as N from 'fp-ts/number'
734
+ *
735
+ * interface User {
736
+ * readonly id: number
737
+ * readonly name: string
738
+ * readonly age: number
739
+ * readonly rememberMe: boolean
740
+ * }
741
+ *
742
+ * const byName = pipe(
743
+ * S.Ord,
744
+ * contramap((p: User) => p.name)
745
+ * )
746
+ *
747
+ * const byAge = pipe(
748
+ * N.Ord,
749
+ * contramap((p: User) => p.age)
750
+ * )
751
+ *
752
+ * const byRememberMe = pipe(
753
+ * B.Ord,
754
+ * contramap((p: User) => p.rememberMe)
755
+ * )
756
+ *
757
+ * const M = getMonoid<User>()
758
+ *
759
+ * const users: Array<User> = [
760
+ * { id: 1, name: 'Guido', age: 47, rememberMe: false },
761
+ * { id: 2, name: 'Guido', age: 46, rememberMe: true },
762
+ * { id: 3, name: 'Giulio', age: 44, rememberMe: false },
763
+ * { id: 4, name: 'Giulio', age: 44, rememberMe: true }
764
+ * ]
765
+ *
766
+ * // sort by name, then by age, then by `rememberMe`
767
+ * const O1 = concatAll(M)([byName, byAge, byRememberMe])
768
+ * assert.deepStrictEqual(sort(O1)(users), [
769
+ * { id: 3, name: 'Giulio', age: 44, rememberMe: false },
770
+ * { id: 4, name: 'Giulio', age: 44, rememberMe: true },
771
+ * { id: 2, name: 'Guido', age: 46, rememberMe: true },
772
+ * { id: 1, name: 'Guido', age: 47, rememberMe: false }
773
+ * ])
774
+ *
775
+ * // now `rememberMe = true` first, then by name, then by age
776
+ * const O2 = concatAll(M)([reverse(byRememberMe), byName, byAge])
777
+ * assert.deepStrictEqual(sort(O2)(users), [
778
+ * { id: 4, name: 'Giulio', age: 44, rememberMe: true },
779
+ * { id: 2, name: 'Guido', age: 46, rememberMe: true },
780
+ * { id: 3, name: 'Giulio', age: 44, rememberMe: false },
781
+ * { id: 1, name: 'Guido', age: 47, rememberMe: false }
782
+ * ])
783
+ *
784
+ * @category instances
785
+ * @since 2.4.0
786
+ */
787
+ var getMonoid = function () { return ({
788
+ concat: getSemigroup().concat,
789
+ empty: fromCompare(function () { return 0; })
790
+ }); };
791
+ /**
792
+ * @category instances
793
+ * @since 2.7.0
794
+ */
795
+ var Contravariant = {
796
+ URI: URI,
797
+ contramap: contramap_
798
+ };
799
+ // -------------------------------------------------------------------------------------
800
+ // utils
801
+ // -------------------------------------------------------------------------------------
802
+ /**
803
+ * @since 2.11.0
804
+ */
805
+ var trivial = {
806
+ equals: constTrue,
807
+ compare: /*#__PURE__*/ constant$1(0)
808
+ };
809
+ /**
810
+ * @since 2.11.0
811
+ */
812
+ var equals = function (O) { return function (second) { return function (first) {
813
+ return first === second || O.compare(first, second) === 0;
814
+ }; }; };
815
+ // TODO: curry in v3
816
+ /**
817
+ * Test whether one value is _strictly less than_ another
818
+ *
819
+ * @since 2.0.0
820
+ */
821
+ var lt = function (O) { return function (first, second) { return O.compare(first, second) === -1; }; };
822
+ // TODO: curry in v3
823
+ /**
824
+ * Test whether one value is _strictly greater than_ another
825
+ *
826
+ * @since 2.0.0
827
+ */
828
+ var gt = function (O) { return function (first, second) { return O.compare(first, second) === 1; }; };
829
+ // TODO: curry in v3
830
+ /**
831
+ * Test whether one value is _non-strictly less than_ another
832
+ *
833
+ * @since 2.0.0
834
+ */
835
+ var leq = function (O) { return function (first, second) { return O.compare(first, second) !== 1; }; };
836
+ // TODO: curry in v3
837
+ /**
838
+ * Test whether one value is _non-strictly greater than_ another
839
+ *
840
+ * @since 2.0.0
841
+ */
842
+ var geq = function (O) { return function (first, second) { return O.compare(first, second) !== -1; }; };
843
+ // TODO: curry in v3
844
+ /**
845
+ * Take the minimum of two values. If they are considered equal, the first argument is chosen
846
+ *
847
+ * @since 2.0.0
848
+ */
849
+ var min$1 = function (O) { return function (first, second) {
850
+ return first === second || O.compare(first, second) < 1 ? first : second;
851
+ }; };
852
+ // TODO: curry in v3
853
+ /**
854
+ * Take the maximum of two values. If they are considered equal, the first argument is chosen
855
+ *
856
+ * @since 2.0.0
857
+ */
858
+ var max$1 = function (O) { return function (first, second) {
859
+ return first === second || O.compare(first, second) > -1 ? first : second;
860
+ }; };
861
+ /**
862
+ * Clamp a value between a minimum and a maximum
863
+ *
864
+ * @since 2.0.0
865
+ */
866
+ var clamp = function (O) {
867
+ var minO = min$1(O);
868
+ var maxO = max$1(O);
869
+ return function (low, hi) { return function (a) { return maxO(minO(a, hi), low); }; };
870
+ };
871
+ /**
872
+ * Test whether a value is between a minimum and a maximum (inclusive)
873
+ *
874
+ * @since 2.0.0
875
+ */
876
+ var between = function (O) {
877
+ var ltO = lt(O);
878
+ var gtO = gt(O);
879
+ return function (low, hi) { return function (a) { return (ltO(a, low) || gtO(a, hi) ? false : true); }; };
880
+ };
881
+ // -------------------------------------------------------------------------------------
882
+ // deprecated
883
+ // -------------------------------------------------------------------------------------
884
+ /**
885
+ * Use [`tuple`](#tuple) instead.
886
+ *
887
+ * @category combinators
888
+ * @since 2.0.0
889
+ * @deprecated
890
+ */
891
+ var getTupleOrd = tuple$1;
892
+ /**
893
+ * Use [`reverse`](#reverse) instead.
894
+ *
895
+ * @category combinators
896
+ * @since 2.0.0
897
+ * @deprecated
898
+ */
899
+ var getDualOrd = reverse$1;
900
+ /**
901
+ * Use [`Contravariant`](#contravariant) instead.
902
+ *
903
+ * @category instances
904
+ * @since 2.0.0
905
+ * @deprecated
906
+ */
907
+ var ord = Contravariant;
908
+ // default compare for primitive types
909
+ function compare(first, second) {
910
+ return first < second ? -1 : first > second ? 1 : 0;
911
+ }
912
+ var strictOrd = {
913
+ equals: eqStrict.equals,
914
+ compare: compare
915
+ };
916
+ /**
917
+ * Use [`Ord`](./boolean.ts.html#ord) instead.
918
+ *
919
+ * @category instances
920
+ * @since 2.0.0
921
+ * @deprecated
922
+ */
923
+ var ordBoolean = strictOrd;
924
+ /**
925
+ * Use [`Ord`](./string.ts.html#ord) instead.
926
+ *
927
+ * @category instances
928
+ * @since 2.0.0
929
+ * @deprecated
930
+ */
931
+ var ordString = strictOrd;
932
+ /**
933
+ * Use [`Ord`](./number.ts.html#ord) instead.
934
+ *
935
+ * @category instances
936
+ * @since 2.0.0
937
+ * @deprecated
938
+ */
939
+ var ordNumber = strictOrd;
940
+ /**
941
+ * Use [`Ord`](./Date.ts.html#ord) instead.
942
+ *
943
+ * @category instances
944
+ * @since 2.0.0
945
+ * @deprecated
946
+ */
947
+ var ordDate = /*#__PURE__*/ pipe(ordNumber,
948
+ /*#__PURE__*/
949
+ contramap(function (date) { return date.valueOf(); }));
950
+
951
+ /**
952
+ * If a type `A` can form a `Semigroup` it has an **associative** binary operation.
953
+ *
954
+ * ```ts
955
+ * interface Semigroup<A> {
956
+ * readonly concat: (x: A, y: A) => A
957
+ * }
958
+ * ```
959
+ *
960
+ * Associativity means the following equality must hold for any choice of `x`, `y`, and `z`.
961
+ *
962
+ * ```ts
963
+ * concat(x, concat(y, z)) = concat(concat(x, y), z)
964
+ * ```
965
+ *
966
+ * A common example of a semigroup is the type `string` with the operation `+`.
967
+ *
968
+ * ```ts
969
+ * import { Semigroup } from 'fp-ts/Semigroup'
970
+ *
971
+ * const semigroupString: Semigroup<string> = {
972
+ * concat: (x, y) => x + y
973
+ * }
974
+ *
975
+ * const x = 'x'
976
+ * const y = 'y'
977
+ * const z = 'z'
978
+ *
979
+ * semigroupString.concat(x, y) // 'xy'
980
+ *
981
+ * semigroupString.concat(x, semigroupString.concat(y, z)) // 'xyz'
982
+ *
983
+ * semigroupString.concat(semigroupString.concat(x, y), z) // 'xyz'
984
+ * ```
985
+ *
986
+ * *Adapted from https://typelevel.org/cats*
987
+ *
988
+ * @since 2.0.0
989
+ */
990
+ // -------------------------------------------------------------------------------------
991
+ // constructors
992
+ // -------------------------------------------------------------------------------------
993
+ /**
994
+ * Get a semigroup where `concat` will return the minimum, based on the provided order.
995
+ *
996
+ * @example
997
+ * import * as N from 'fp-ts/number'
998
+ * import * as S from 'fp-ts/Semigroup'
999
+ *
1000
+ * const S1 = S.min(N.Ord)
1001
+ *
1002
+ * assert.deepStrictEqual(S1.concat(1, 2), 1)
1003
+ *
1004
+ * @category constructors
1005
+ * @since 2.10.0
1006
+ */
1007
+ var min = function (O) { return ({
1008
+ concat: min$1(O)
1009
+ }); };
1010
+ /**
1011
+ * Get a semigroup where `concat` will return the maximum, based on the provided order.
1012
+ *
1013
+ * @example
1014
+ * import * as N from 'fp-ts/number'
1015
+ * import * as S from 'fp-ts/Semigroup'
1016
+ *
1017
+ * const S1 = S.max(N.Ord)
1018
+ *
1019
+ * assert.deepStrictEqual(S1.concat(1, 2), 2)
1020
+ *
1021
+ * @category constructors
1022
+ * @since 2.10.0
1023
+ */
1024
+ var max = function (O) { return ({
1025
+ concat: max$1(O)
1026
+ }); };
1027
+ /**
1028
+ * @category constructors
1029
+ * @since 2.10.0
1030
+ */
1031
+ var constant = function (a) { return ({
1032
+ concat: function () { return a; }
1033
+ }); };
1034
+ // -------------------------------------------------------------------------------------
1035
+ // combinators
1036
+ // -------------------------------------------------------------------------------------
1037
+ /**
1038
+ * The dual of a `Semigroup`, obtained by swapping the arguments of `concat`.
1039
+ *
1040
+ * @example
1041
+ * import { reverse } from 'fp-ts/Semigroup'
1042
+ * import * as S from 'fp-ts/string'
1043
+ *
1044
+ * assert.deepStrictEqual(reverse(S.Semigroup).concat('a', 'b'), 'ba')
1045
+ *
1046
+ * @category combinators
1047
+ * @since 2.10.0
1048
+ */
1049
+ var reverse = reverse$2;
1050
+ /**
1051
+ * Given a struct of semigroups returns a semigroup for the struct.
1052
+ *
1053
+ * @example
1054
+ * import { struct } from 'fp-ts/Semigroup'
1055
+ * import * as N from 'fp-ts/number'
1056
+ *
1057
+ * interface Point {
1058
+ * readonly x: number
1059
+ * readonly y: number
1060
+ * }
1061
+ *
1062
+ * const S = struct<Point>({
1063
+ * x: N.SemigroupSum,
1064
+ * y: N.SemigroupSum
1065
+ * })
1066
+ *
1067
+ * assert.deepStrictEqual(S.concat({ x: 1, y: 2 }, { x: 3, y: 4 }), { x: 4, y: 6 })
1068
+ *
1069
+ * @category combinators
1070
+ * @since 2.10.0
1071
+ */
1072
+ var struct = function (semigroups) { return ({
1073
+ concat: function (first, second) {
1074
+ var r = {};
1075
+ for (var k in semigroups) {
1076
+ if (has.call(semigroups, k)) {
1077
+ r[k] = semigroups[k].concat(first[k], second[k]);
1078
+ }
1079
+ }
1080
+ return r;
1081
+ }
1082
+ }); };
1083
+ /**
1084
+ * Given a tuple of semigroups returns a semigroup for the tuple.
1085
+ *
1086
+ * @example
1087
+ * import { tuple } from 'fp-ts/Semigroup'
1088
+ * import * as B from 'fp-ts/boolean'
1089
+ * import * as N from 'fp-ts/number'
1090
+ * import * as S from 'fp-ts/string'
1091
+ *
1092
+ * const S1 = tuple(S.Semigroup, N.SemigroupSum)
1093
+ * assert.deepStrictEqual(S1.concat(['a', 1], ['b', 2]), ['ab', 3])
1094
+ *
1095
+ * const S2 = tuple(S.Semigroup, N.SemigroupSum, B.SemigroupAll)
1096
+ * assert.deepStrictEqual(S2.concat(['a', 1, true], ['b', 2, false]), ['ab', 3, false])
1097
+ *
1098
+ * @category combinators
1099
+ * @since 2.10.0
1100
+ */
1101
+ var tuple = function () {
1102
+ var semigroups = [];
1103
+ for (var _i = 0; _i < arguments.length; _i++) {
1104
+ semigroups[_i] = arguments[_i];
1105
+ }
1106
+ return ({
1107
+ concat: function (first, second) { return semigroups.map(function (s, i) { return s.concat(first[i], second[i]); }); }
1108
+ });
1109
+ };
1110
+ /**
1111
+ * Between each pair of elements insert `middle`.
1112
+ *
1113
+ * @example
1114
+ * import { intercalate } from 'fp-ts/Semigroup'
1115
+ * import * as S from 'fp-ts/string'
1116
+ * import { pipe } from 'fp-ts/function'
1117
+ *
1118
+ * const S1 = pipe(S.Semigroup, intercalate(' + '))
1119
+ *
1120
+ * assert.strictEqual(S1.concat('a', 'b'), 'a + b')
1121
+ *
1122
+ * @category combinators
1123
+ * @since 2.10.0
1124
+ */
1125
+ var intercalate = function (middle) { return function (S) { return ({
1126
+ concat: function (x, y) { return S.concat(x, S.concat(middle, y)); }
1127
+ }); }; };
1128
+ // -------------------------------------------------------------------------------------
1129
+ // instances
1130
+ // -------------------------------------------------------------------------------------
1131
+ /**
1132
+ * Always return the first argument.
1133
+ *
1134
+ * @example
1135
+ * import * as S from 'fp-ts/Semigroup'
1136
+ *
1137
+ * assert.deepStrictEqual(S.first<number>().concat(1, 2), 1)
1138
+ *
1139
+ * @category instances
1140
+ * @since 2.10.0
1141
+ */
1142
+ var first = function () { return ({ concat: identity }); };
1143
+ /**
1144
+ * Always return the last argument.
1145
+ *
1146
+ * @example
1147
+ * import * as S from 'fp-ts/Semigroup'
1148
+ *
1149
+ * assert.deepStrictEqual(S.last<number>().concat(1, 2), 2)
1150
+ *
1151
+ * @category instances
1152
+ * @since 2.10.0
1153
+ */
1154
+ var last = function () { return ({ concat: function (_, y) { return y; } }); };
1155
+ // -------------------------------------------------------------------------------------
1156
+ // utils
1157
+ // -------------------------------------------------------------------------------------
1158
+ /**
1159
+ * Given a sequence of `as`, concat them and return the total.
1160
+ *
1161
+ * If `as` is empty, return the provided `startWith` value.
1162
+ *
1163
+ * @example
1164
+ * import { concatAll } from 'fp-ts/Semigroup'
1165
+ * import * as N from 'fp-ts/number'
1166
+ *
1167
+ * const sum = concatAll(N.SemigroupSum)(0)
1168
+ *
1169
+ * assert.deepStrictEqual(sum([1, 2, 3]), 6)
1170
+ * assert.deepStrictEqual(sum([]), 0)
1171
+ *
1172
+ * @since 2.10.0
1173
+ */
1174
+ var concatAll = concatAll$1;
1175
+ // -------------------------------------------------------------------------------------
1176
+ // deprecated
1177
+ // -------------------------------------------------------------------------------------
1178
+ /**
1179
+ * Use `void` module instead.
1180
+ *
1181
+ * @category instances
1182
+ * @since 2.0.0
1183
+ * @deprecated
1184
+ */
1185
+ var semigroupVoid = constant(undefined);
1186
+ /**
1187
+ * Use [`getAssignSemigroup`](./struct.ts.html#getAssignSemigroup) instead.
1188
+ *
1189
+ * @category instances
1190
+ * @since 2.0.0
1191
+ * @deprecated
1192
+ */
1193
+ var getObjectSemigroup = function () { return ({
1194
+ concat: function (first, second) { return Object.assign({}, first, second); }
1195
+ }); };
1196
+ /**
1197
+ * Use [`last`](#last) instead.
1198
+ *
1199
+ * @category instances
1200
+ * @since 2.0.0
1201
+ * @deprecated
1202
+ */
1203
+ var getLastSemigroup = last;
1204
+ /**
1205
+ * Use [`first`](#first) instead.
1206
+ *
1207
+ * @category instances
1208
+ * @since 2.0.0
1209
+ * @deprecated
1210
+ */
1211
+ var getFirstSemigroup = first;
1212
+ /**
1213
+ * Use [`tuple`](#tuple) instead.
1214
+ *
1215
+ * @category combinators
1216
+ * @since 2.0.0
1217
+ * @deprecated
1218
+ */
1219
+ var getTupleSemigroup = tuple;
1220
+ /**
1221
+ * Use [`struct`](#struct) instead.
1222
+ *
1223
+ * @category combinators
1224
+ * @since 2.0.0
1225
+ * @deprecated
1226
+ */
1227
+ var getStructSemigroup = struct;
1228
+ /**
1229
+ * Use [`reverse`](#reverse) instead.
1230
+ *
1231
+ * @category combinators
1232
+ * @since 2.0.0
1233
+ * @deprecated
1234
+ */
1235
+ var getDualSemigroup = reverse;
1236
+ /**
1237
+ * Use [`max`](#max) instead.
1238
+ *
1239
+ * @category constructors
1240
+ * @since 2.0.0
1241
+ * @deprecated
1242
+ */
1243
+ var getJoinSemigroup = max;
1244
+ /**
1245
+ * Use [`min`](#min) instead.
1246
+ *
1247
+ * @category constructors
1248
+ * @since 2.0.0
1249
+ * @deprecated
1250
+ */
1251
+ var getMeetSemigroup = min;
1252
+ /**
1253
+ * Use [`intercalate`](#intercalate) instead.
1254
+ *
1255
+ * @category combinators
1256
+ * @since 2.5.0
1257
+ * @deprecated
1258
+ */
1259
+ var getIntercalateSemigroup = intercalate;
1260
+ function fold(S) {
1261
+ var concatAllS = concatAll(S);
1262
+ return function (startWith, as) { return (as === undefined ? concatAllS(startWith) : concatAllS(startWith)(as)); };
1263
+ }
1264
+ /**
1265
+ * Use [`SemigroupAll`](./boolean.ts.html#SemigroupAll) instead.
1266
+ *
1267
+ * @category instances
1268
+ * @since 2.0.0
1269
+ * @deprecated
1270
+ */
1271
+ var semigroupAll = {
1272
+ concat: function (x, y) { return x && y; }
1273
+ };
1274
+ /**
1275
+ * Use [`SemigroupAny`](./boolean.ts.html#SemigroupAny) instead.
1276
+ *
1277
+ * @category instances
1278
+ * @since 2.0.0
1279
+ * @deprecated
1280
+ */
1281
+ var semigroupAny = {
1282
+ concat: function (x, y) { return x || y; }
1283
+ };
1284
+ /**
1285
+ * Use [`getSemigroup`](./function.ts.html#getSemigroup) instead.
1286
+ *
1287
+ * @category instances
1288
+ * @since 2.0.0
1289
+ * @deprecated
1290
+ */
1291
+ var getFunctionSemigroup = getSemigroup$2;
1292
+ /**
1293
+ * Use [`Semigroup`](./string.ts.html#Semigroup) instead.
1294
+ *
1295
+ * @category instances
1296
+ * @since 2.0.0
1297
+ * @deprecated
1298
+ */
1299
+ var semigroupString = {
1300
+ concat: function (x, y) { return x + y; }
1301
+ };
1302
+ /**
1303
+ * Use [`SemigroupSum`](./number.ts.html#SemigroupSum) instead.
1304
+ *
1305
+ * @category instances
1306
+ * @since 2.0.0
1307
+ * @deprecated
1308
+ */
1309
+ var semigroupSum = {
1310
+ concat: function (x, y) { return x + y; }
1311
+ };
1312
+ /**
1313
+ * Use [`SemigroupProduct`](./number.ts.html#SemigroupProduct) instead.
1314
+ *
1315
+ * @category instances
1316
+ * @since 2.0.0
1317
+ * @deprecated
1318
+ */
1319
+ var semigroupProduct = {
1320
+ concat: function (x, y) { return x * y; }
1321
+ };
1322
+
1323
+ const semigroupDiff = {
1324
+ concat: (x, y) => x - y,
1325
+ };
1326
+ const semigroupDiv = {
1327
+ concat: (x, y) => x / y,
1328
+ };
1329
+
1330
+ const fromRectangle$1 = ({ x, y }) => {
1331
+ return {
1332
+ x,
1333
+ y,
1334
+ };
1335
+ };
1336
+ const fromMouseEvent = ({ clientX, clientY }) => {
1337
+ return {
1338
+ x: clientX,
1339
+ y: clientY,
1340
+ };
1341
+ };
1342
+ const fromTouchEvent = ({ touches }) => {
1343
+ return {
1344
+ x: touches[0].clientX,
1345
+ y: touches[0].clientY,
1346
+ };
1347
+ };
1348
+ const pointDiffSemigroup = struct({
1349
+ x: semigroupDiff,
1350
+ y: semigroupDiff,
1351
+ });
1352
+ const pointSumSemigroup = struct({
1353
+ x: semigroupSum,
1354
+ y: semigroupSum,
1355
+ });
1356
+ const pointProductSemigroup = struct({
1357
+ x: semigroupProduct,
1358
+ y: semigroupProduct,
1359
+ });
1360
+
1361
+ var HandlerDirection;
1362
+ (function (HandlerDirection) {
1363
+ HandlerDirection[HandlerDirection["East"] = 0] = "East";
1364
+ HandlerDirection[HandlerDirection["North"] = 1] = "North";
1365
+ HandlerDirection[HandlerDirection["NorthEast"] = 2] = "NorthEast";
1366
+ HandlerDirection[HandlerDirection["NorthWest"] = 3] = "NorthWest";
1367
+ HandlerDirection[HandlerDirection["South"] = 4] = "South";
1368
+ HandlerDirection[HandlerDirection["SouthEast"] = 5] = "SouthEast";
1369
+ HandlerDirection[HandlerDirection["SouthWest"] = 6] = "SouthWest";
1370
+ HandlerDirection[HandlerDirection["West"] = 7] = "West";
1371
+ })(HandlerDirection || (HandlerDirection = {}));
1372
+ const getCursorValue = (direction) => {
1373
+ switch (direction) {
1374
+ case HandlerDirection.East:
1375
+ return "e-resize";
1376
+ case HandlerDirection.North:
1377
+ return "n-resize";
1378
+ case HandlerDirection.NorthEast:
1379
+ return "ne-resize";
1380
+ case HandlerDirection.NorthWest:
1381
+ return "nw-resize";
1382
+ case HandlerDirection.South:
1383
+ return "s-resize";
1384
+ case HandlerDirection.SouthEast:
1385
+ return "se-resize";
1386
+ case HandlerDirection.SouthWest:
1387
+ return "sw-resize";
1388
+ case HandlerDirection.West:
1389
+ return "w-resize";
1390
+ default:
1391
+ return "pointer";
1392
+ }
1393
+ };
1394
+ const fromRectangle = (r) => [
1395
+ {
1396
+ position: fromRectangle$1(r),
1397
+ direction: HandlerDirection.NorthWest,
1398
+ },
1399
+ {
1400
+ position: pointSumSemigroup.concat(fromRectangle$1(r), {
1401
+ x: r.width,
1402
+ y: 0,
1403
+ }),
1404
+ direction: HandlerDirection.NorthEast,
1405
+ },
1406
+ {
1407
+ position: pointSumSemigroup.concat(fromRectangle$1(r), {
1408
+ x: 0,
1409
+ y: r.height,
1410
+ }),
1411
+ direction: HandlerDirection.SouthWest,
1412
+ },
1413
+ {
1414
+ position: pointSumSemigroup.concat(fromRectangle$1(r), {
1415
+ x: r.width,
1416
+ y: r.height,
1417
+ }),
1418
+ direction: HandlerDirection.SouthEast,
1419
+ },
1420
+ ];
1421
+
1422
+ export { getMonoid as A, fromEquals as B, min as C, max as D, struct as E, getStructSemigroup as F, semigroupDiv as G, contramap as H, ordNumber as I, fromRectangle$1 as J, pointSumSemigroup as K, HandlerDirection as L, pointProductSemigroup as M, fromCompare as N, fromRectangle as O, fromMouseEvent as P, pointDiffSemigroup as Q, getCursorValue as R, SK as S, identity as a, isLeft as b, isRight as c, emptyReadonlyArray as d, emptyRecord as e, flow as f, head as g, has as h, isNone as i, isNonEmpty as j, constFalse as k, left as l, constTrue as m, none as n, isSome as o, pipe as p, constNull as q, right as r, some as s, tuple$3 as t, constUndefined as u, first as v, last as w, tail as x, singleton as y, fromReadonlyNonEmptyArray as z };