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
@@ -1,19 +0,0 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-51f71d18.js';
2
- import { g as globalScripts } from './app-globals-865bc7a7.js';
3
-
4
- /*
5
- Stencil Client Patch Browser v2.9.0 | MIT Licensed | https://stenciljs.com
6
- */
7
- const patchBrowser = () => {
8
- const importMeta = import.meta.url;
9
- const opts = {};
10
- if (importMeta !== '') {
11
- opts.resourcesUrl = new URL('.', importMeta).href;
12
- }
13
- return promiseResolve(opts);
14
- };
15
-
16
- patchBrowser().then(options => {
17
- globalScripts();
18
- return bootstrapLazy([["cropper-handler_27",[[1,"vviinn-vps-widget",{"token":[1],"apiPath":[1,"api-path"],"active":[1028],"currencySign":[1,"currency-sign"],"locale":[1],"campaignId":[1,"campaign-id"],"slidePosition":[32],"width":[32],"wrongImageFormat":[32]},[[0,"recommendationView","trackRecommendationView"],[0,"recommendationClick","trackRecommendationClick"],[0,"cropperChanged","trachSearchAreaChanges"],[0,"detectedObjectClicked","trackDetectedObject"],[0,"filterSelected","trackFilter"]]],[1,"vviinn-image-view"],[1,"vviinn-onboarding"],[1,"vviinn-example-images",null,[[0,"exampleImageSelected","handleImageSelection"],[0,"exampleImageError","handleImageSelectionError"]]],[1,"vviinn-overlayed-modal",{"active":[4]}],[1,"vviinn-empty-results"],[1,"vviinn-image-selector"],[1,"vviinn-server-error"],[1,"vviinn-wrong-format"],[1,"search-filters",{"filter":[16],"selectedCategoryId":[32],"hideFilters":[32]}],[1,"vviinn-privacy-badge"],[1,"vviinn-teaser"],[1,"image-cropper",{"disabled":[4],"handleMove":[32]}],[1,"vviinn-example-image",{"src":[1],"width":[2],"height":[2],"selected":[32]}],[1,"highlight-box"],[1,"vviinn-detected-object",{"detectedObject":[16],"position":[32]}],[1,"vviinn-modal",{"active":[1540],"slider":[32]}],[1,"vviinn-onboarding-card-1"],[1,"vviinn-onboarding-card-2"],[1,"vviinn-onboarding-card-3"],[1,"vviinn-overlay"],[1,"vviinn-slide"],[1,"vviinn-slider",{"showBullets":[4,"show-bullets"],"position":[514],"showArrows":[4,"show-arrows"],"elementsCount":[32],"internalPosition":[32],"swipeStartPosition":[32]}],[1,"cropper-handler",{"handler":[16],"disabled":[4]}],[1,"vviinn-error"],[1,"vviinn-preloader"],[1,"vviinn-product-card",{"brand":[1],"currency":[1],"deeplink":[1],"image":[1],"imageRatio":[2,"image-ratio"],"imageWidth":[2,"image-width"],"locale":[1],"price":[2],"pricePrefix":[1,"price-prefix"],"productId":[1,"product-id"],"productTitle":[1,"product-title"],"productType":[1,"product-type"],"salePrice":[2,"sale-price"],"responsive":[4],"dimmedBackground":[4,"dimmed-background"],"index":[2],"imageLoaded":[32]}]]],["vviinn-vps-button",[[1,"vviinn-vps-button",{"token":[1],"currencySign":[1,"currency-sign"],"locale":[1],"campaignId":[1,"campaign-id"],"apiPath":[1,"api-path"],"pressed":[32]},[[0,"modalClosed","handleModalClosed"]]]]],["vviinn-carousel_2",[[1,"vviinn-vpr-widget",{"blockTitle":[1,"block-title"],"imageRatio":[2,"image-ratio"],"imageWidth":[2,"image-width"],"productId":[1,"product-id"],"token":[1],"currencySign":[1,"currency-sign"],"pricePrefix":[1,"price-prefix"],"mode":[1],"campaignType":[1,"campaign-type"],"locale":[1],"campaigns":[1],"apiPath":[1,"api-path"],"useCarousel":[4,"use-carousel"],"showScroll":[4,"show-scroll"],"cssUrl":[1,"css-url"],"recommendations":[32],"loaded":[32]},[[0,"productImageLoaded","handleImageLoading"],[0,"recommendationView","trackRecommendationView"],[0,"recommendationClick","trackRecommendationClick"]]],[0,"vviinn-carousel",{"mode":[1],"imageWidth":[2,"image-width"],"showScroll":[4,"show-scroll"],"recommendations":[16],"moveDirection":[32],"contentGroups":[32],"activeContentGroup":[32]}]]],["vviinn-recommendations-sidebar",[[1,"vviinn-recommendations-sidebar",{"sidebarTitle":[1,"sidebar-title"],"token":[1],"productId":[1,"product-id"],"position":[1],"sourceImage":[1,"source-image"],"widgetScrollbar":[4,"widget-scrollbar"],"campaigns":[1],"state":[32]},[[16,"click","bodyClickListener"]]]]],["vviinn-vpr-button",[[1,"vviinn-vpr-button",{"token":[1],"productId":[1,"product-id"],"position":[1],"sourceImage":[1,"source-image"],"sidebarTitle":[1,"sidebar-title"],"modalScrollbar":[4,"modal-scrollbar"],"campaigns":[1]}]]]], options);
19
- });
package/dist/index.cjs.js DELETED
@@ -1 +0,0 @@
1
- module.exports = require('./cjs/index.cjs.js');
package/dist/index.js DELETED
@@ -1 +0,0 @@
1
- export * from './esm/index.js';
@@ -1,3 +0,0 @@
1
-
2
- module.exports = require('../cjs/loader.cjs.js');
3
- module.exports.applyPolyfills = function() { return Promise.resolve() };
@@ -1,3 +0,0 @@
1
-
2
- module.exports = require('../cjs/loader.cjs.js');
3
- module.exports.applyPolyfills = function() { return Promise.resolve() };
@@ -1,12 +0,0 @@
1
- export * from '../types/components';
2
- export interface CustomElementsDefineOptions {
3
- exclude?: string[];
4
- resourcesUrl?: string;
5
- syncQueue?: boolean;
6
- jmp?: (c: Function) => any;
7
- raf?: (c: FrameRequestCallback) => number;
8
- ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
9
- rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
10
- }
11
- export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): Promise<void>;
12
- export declare function applyPolyfills(): Promise<void>;
@@ -1,3 +0,0 @@
1
-
2
- export * from '../esm/polyfills/index.js';
3
- export * from '../esm/loader.js';
@@ -1,4 +0,0 @@
1
-
2
- (function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
3
- export * from '../esm/polyfills/index.js';
4
- export * from '../esm/loader.js';
@@ -1,10 +0,0 @@
1
- {
2
- "name": "vviinn-widgets-loader",
3
- "typings": "./index.d.ts",
4
- "module": "./index.js",
5
- "main": "./index.cjs.js",
6
- "jsnext:main": "./index.es2017.js",
7
- "es2015": "./index.es2017.js",
8
- "es2017": "./index.es2017.js",
9
- "unpkg": "./cdn.js"
10
- }
@@ -1 +0,0 @@
1
- import{r as t,h as e,H as i,c as n,g as r}from"./p-3469b71a.js";import{g as s,p as o,O as a,s as l,i as d,a as c,_ as h,t as p,m,f as g,b as u,c as v,d as b,e as x,h as f,j as w,k as y,l as k,E as z,n as _,o as C,q as F,r as S,S as L,u as j,N as E,v as D,w as A,x as I,y as M,z as W,A as V,B as $,C as P}from"./p-59bd2a99.js";import{C as B,O as G,a as O,b as T,A as H}from"./p-166970f3.js";import{s as Y}from"./p-cd995515.js";let Z=class{constructor(e){t(this,e),this.disabled=!1}render(){return e(i,{part:`handle ${s(this.handler.direction)}`,class:{disabled:this.disabled,[s(this.handler.direction)]:!0},style:{"--size":"20px",cursor:s(this.handler.direction)},draggable:!1})}};Z.style=":host{--size:20px;background:transparent;border:4px solid white;box-sizing:content-box;display:block;height:var(--size);touch-action:none;position:absolute;width:var(--size);z-index:4;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(.disabled){opacity:0.25}:host(.nw-resize){border-bottom:none;border-right:none;top:0;left:0}:host(.ne-resize){border-left:none;border-bottom:none;right:0;top:0}:host(.sw-resize){border-right:none;border-top:none;left:0;bottom:0}:host(.se-resize){border-left:none;border-top:none;bottom:0;right:0}";let R=class{constructor(e){t(this,e)}getInsetValue(){return o(l(d.searchArea,d.imageBounds),a.map((([t,e])=>{return`inset(${(i=t,n=e,r={top:`${i.y}px`,right:n.width-(i.x+i.width)+"px",bottom:n.height-(i.y+i.height)+"px",left:`${i.x}px`}).top} ${r.right} ${r.bottom} ${r.left})`;var i,n,r})),a.getOrElse((()=>"")))}renderImage(){return o(l(d.imageUrl,d.imageBounds),a.map((([t,i])=>e("img",{src:t,width:i.width,height:i.height,style:{"clip-path":`${this.getInsetValue()}`}}))),a.getOrElse((()=>"")))}render(){return e(i,null,this.renderImage())}};R.style=':host{display:grid;position:absolute;box-sizing:border-box;border:none;width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;--size:10px;--x-position:0;--y-position:0}img{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.pointer{position:absolute;width:var(--size);height:var(--size);background:black;border-radius:50%;z-index:2;cursor:pointer;transform:translate(var(--x-position), var(--y-position)) scale(0);-webkit-animation:0.25s linear fadein;animation:0.25s linear fadein;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.pointer::after{content:"";cursor:pointer;border:5px solid black;border-radius:50%;width:var(--size);height:var(--size);display:block;transform:translate(calc(-50% + var(--size) * 0.5), calc(-50% + var(--size) * 0.5));padding:calc(var(--size) * 0.5);opacity:.75}@-webkit-keyframes fadein{from{transform:translate(var(--x-position), var(--y-position)) scale(0)}to{transform:translate(var(--x-position), var(--y-position)) scale(1)}}@keyframes fadein{from{transform:translate(var(--x-position), var(--y-position)) scale(0)}to{transform:translate(var(--x-position), var(--y-position)) scale(1)}}';let K=class{constructor(e){t(this,e),this.cropperChanged=n(this,"cropperChanged",7),this.disabled=!1,this.handleMove=!1,this.mouseStartPoint=void 0,this.bounds=void 0}componentDidLoad(){this.bounds=this.el.getBoundingClientRect()}handleHandlerMove(t){t.preventDefault(),t.stopPropagation();const e=g(t),i={position:c.concat(e,this.mouseStartPoint),direction:this.handlerMoveDirection};h.pipe(d.searchArea,a.map((t=>{const n=p(t,i);this.outOfBounds(n)||(d.searchArea=a.some(n),this.mouseStartPoint=e,d.detectedObject=void 0)})))}outOfBounds(t){return t.width<40||t.height<40||t.x<0||t.y<0||this.bounds.height-(t.y+t.height)<0||this.bounds.width-(t.x+t.width)<0}handleCropperMove(t){t.preventDefault(),t.stopPropagation();const e=g(t),i=c.concat(e,this.mouseStartPoint);h.pipe(d.searchArea,a.map((t=>{const n=m(t,i);n.x<0||n.y<0||this.bounds.height-(n.y+n.height)<0||this.bounds.width-(n.x+n.width)<0||(d.detectedObject=void 0,d.searchArea=a.some(n),this.mouseStartPoint=e)})))}handlePointerDown(t){t.stopPropagation(),this.mouseStartPoint=g(t);const e=t.target;"cropper-handler"===e.localName?(this.handlerMoveDirection=e.handler.direction,this.pointerMoveListener=this.handleHandlerMove.bind(this)):this.pointerMoveListener=this.handleCropperMove.bind(this),this.pointerReleaseListener=this.handleSearchAreaRelease.bind(this),this.el.addEventListener("pointermove",this.pointerMoveListener),window.addEventListener("pointerup",this.pointerReleaseListener,{once:!0})}handleSearchAreaRelease(){this.el.removeEventListener("pointermove",this.pointerMoveListener),document.removeEventListener("pointerup",this.pointerReleaseListener),this.mouseStartPoint=void 0,u(),this.cropperChanged.emit()}getStyleMap(){return h.pipe(d.searchArea,a.map((t=>({width:`${t.width}px`,height:`${t.height}px`,transform:`translate3d(${t.x}px, ${t.y}px, 0)`,cursor:this.handleMove?"move":"default"}))),a.getOrElse((()=>({}))))}render(){return e(i,{exportparts:"handle, e-resize, n-resize, ne-resize, nw-resize, s-resize, se-resize, sw-resize, w-resize"},e("div",{class:{"crop-area":!0,active:this.handleMove,disabled:this.disabled},draggable:!1,style:this.getStyleMap(),onContextMenu:()=>!1,onPointerDown:t=>this.handlePointerDown(t)},d.cropperHandlers.map((t=>e("cropper-handler",{disabled:this.disabled,handler:t,onPointerDown:t=>this.handlePointerDown(t)})))))}get el(){return r(this)}};K.style=":host{display:block;height:100%;left:0;position:absolute;top:0;width:100%}:host(.hidden){visibility:hidden}.crop-area{border:1px solid white;box-sizing:border-box;position:absolute;touch-action:none;transition-property:border-color, opacity;transition-duration:.25s;transition-timing-function:ease-in-out;z-index:2;position:relative;will-change:transform}.crop-area.active{border-color:whitesmoke}.crop-area.disabled{opacity:0.25}";const N=t=>t.href.split("/").reverse()[0];let q=class{constructor(e){t(this,e),this.filterSelected=n(this,"filterSelected",7),this.filter=null,this.selectedCategoryId=null,this.hideFilters=!0}handleFilterSelection(t){return this.isFilterSelected(t)?this.clearSelectedFilter():this.selectFilter(t)}selectFilter(t){this.selectedCategoryId=N(t),d.activeIonLink=t,this.filterSelected.emit("select")}clearSelectedFilter(){this.selectedCategoryId=null,d.activeIonLink=void 0,this.findSelectedFilter().blur(),this.filterSelected.emit("deselect")}findSelectedFilter(){return this.el.shadowRoot.querySelector(".filter.active")}toggleFilters(){this.hideFilters=!this.hideFilters}handleEnter(t,e){"Enter"===t.key&&this.handleFilterSelection(e)}isFilterSelected(t){return this.selectedCategoryId===N(t)}render(){return e(i,{exportparts:"filter, show-more-filters"},e("div",{class:"filters"},this.filter.filters.filter(((t,e)=>!this.hideFilters||e<5)).map(((t,i)=>e("div",{role:"button",tabindex:"0",part:this.isFilterSelected(t)?"filter active":"filter",class:{filter:!0,active:this.selectedCategoryId===N(t)},style:{"animation-delay":10*i+"ms"},onPointerUp:e=>{e.stopPropagation(),this.handleFilterSelection(t)},onKeyPress:e=>this.handleEnter(e,t)},this.isFilterSelected(t)?e(B,null):null,t.name))),e("div",{class:{filter:!0,"show-more":!0,hidden:this.filter.filters.length<=5,active:!this.hideFilters},role:"button",tabindex:"0","aria-role":"button",onClick:()=>this.toggleFilters(),onKeyPress:t=>{"Enter"===t.key&&this.toggleFilters()},part:"show-more-filters"},this.hideFilters?"Zeige mehr":"Zeige weniger")))}get el(){return r(this)}};q.style=":host{display:grid;grid-gap:1rem}.filters{display:flex;flex-direction:row;flex-wrap:wrap;gap:0.5rem}.filter{align-items:center;-webkit-animation-duration:0.25s;animation-duration:0.25s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-name:scalein;animation-name:scalein;border:1px solid lightgray;cursor:pointer;display:flex;flex-direction:row;grid-gap:8px;height:-webkit-max-content;height:-moz-max-content;height:max-content;min-width:-webkit-max-content;min-width:-moz-max-content;min-width:max-content;padding:0.1rem;transform:scale(0);transition-property:background;transition-duration:0.25s;transition-timing-function:ease-in-out;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:6px 16px}.filter.active{border:1px solid black;padding:6px 8px}.filter:hover{border:1px solid gray}.show-more{display:flex}.show-more.hidden{display:none}.show-more::after{content:url(\"data:image/svg+xml,%3Csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 12.2l-6-6L3.2 5 8 9.8 12.8 5 14 6.2l-6 6z' fill='%23525252'/%3E%3C/svg%3E\");display:block;height:16px;margin-top:1px;margin-left:8px}.show-more.active::after{transform:rotateX(180deg)}@-webkit-keyframes scalein{from{opacity:0;transform:scale(0.5)}to{opacity:1;transform:scale(1)}}@keyframes scalein{from{opacity:0;transform:scale(0.5)}to{opacity:1;transform:scale(1)}}@media (max-width: 415px){.show-more::after{transform:rotate(-90deg)}.show-more.active::after{transform:rotate(90deg)}}@media (max-width: 800px){.filters{flex-wrap:nowrap;overflow-x:scroll;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;grid-gap:unset}.filter{scroll-snap-align:end;margin-right:0.5rem}}";let X=class{constructor(e){t(this,e),this.detectedObjectClicked=n(this,"detectedObjectClicked",7),this.position=["0","0"]}getObjectPosition(){return h.pipe(d.imageBounds,a.map((t=>{const e=v(b(this.detectedObject).rectangle),{x:i,y:n}=h.pipe(e,x(t),f);return[`${i}px`,`${n}px`]})),a.getOrElse((()=>["0","0"])))}selectDetectedObject(){h.pipe(d.imageBounds,a.map((t=>{const e=b(this.detectedObject).rectangle,i=v(e),n=x(t)(i);d.detectedObject=this.detectedObject,d.searchArea=a.some(n)}))),u(),this.detectedObjectClicked.emit()}isActive(){if(!this.detectedObject)return!1;if(!d.detectedObject)return!1;const t=b(this.detectedObject),e=b(d.detectedObject);return w.equals(t,e)}render(){return e(i,{class:{active:this.isActive()},onClick:()=>this.selectDetectedObject(),style:{"--x-position":this.getObjectPosition()[0],"--y-position":this.getObjectPosition()[1]}})}};X.style=':host{--color-primary-system:#0F62FE;--color-primary-hover-system:#014CDA;--color-icons-system:#2F8EDF;--spacer:8px}:host{--size:32px;--x-position:0;--y-position:0;background:rgba(22, 22, 22, 0.5);border-radius:50%;border:none;cursor:pointer;display:block;height:var(--size);position:absolute;transition:opacity 0.25s;width:var(--size);z-index:2;transform:translate(calc(var(--x-position) - (var(--size) * 0.5)), calc(var(--y-position) - (var(--size) * 0.5)));transition:background 0.1 ease-in-out}:host(:hover){background:rgba(22, 22, 22, 0.75)}:host(.active){background:var(--color-primary, var(--color-primary-system))!important;border:2px solid white}:host::after{--size:32px;border-radius:50%;content:"";cursor:pointer;display:block;height:calc(var(--size) * 0.25);transform:translate(calc(-50% + var(--size) * 0.5), calc(-50% + var(--size) * 0.5));width:calc(var(--size) * 0.25);background:white}';let U=class{constructor(e){t(this,e),this.actionClick=n(this,"actionClick",7)}render(){return e(i,null,e("vviinn-error",null,e("svg",{slot:"icon",class:"icon",width:"32",height:"32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M16 2a14 14 0 1 0 0 28 14 14 0 0 0 0-28Zm0 26a12 12 0 1 1 0-24 12 12 0 0 1 0 24Z",fill:"#525252"}),e("path",{d:"M17 8h-2v11h2V8Zm-1 14a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z",fill:"#525252"})),e("h4",{slot:"title"},"Leider nichts gefunden"),e("span",{slot:"text"},"Leider konnten wir keine passenden Produkte finden. Bitte versuche es mit einem anderen Bildausschnitt noch einmal.")))}};U.style=":host{display:grid}vviinn-error{justify-items:center}";let Q=class{constructor(e){t(this,e)}render(){return e(i,null,e("slot",{name:"icon"}),e("slot",{name:"title"}),e("slot",{name:"text"}),e("slot",{name:"action"}))}};Q.style=":host{background:#F4F4F4;border-radius:8px;display:grid;grid-gap:20px;padding:24px;text-align:center}::slotted(svg){display:grid;align-self:center}::slotted(h4){margin:unset;font-weight:600;font-size:18px;line-height:24px}::slotted(span){font-size:14px;line-height:20px}::slotted(button){-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;background:transparent;color:var(--color-primary, var(--color-primary-system));font-weight:600;font-size:16px;line-height:20px;cursor:pointer}";let J=class{constructor(e){t(this,e),this.exampleImageSelected=n(this,"exampleImageSelected",7),this.exampleImageError=n(this,"exampleImageError",7),this.src="",this.width=0,this.height=0,this.selected=!1}async selectImage(t){this.selected=!0;const e=await y(this.src),i=await k(e);h.pipe(i,z.match((()=>this.exampleImageError.emit()),(()=>this.exampleImageSelected.emit()))),this.selected=!1}showPreloader(){return(d.objectDetectionInProgress||d.loading)&&this.selected}render(){return e(i,null,this.showPreloader()?e("div",{class:"image-preloader"},e("vviinn-preloader",null)):null,e("img",{onClick:t=>this.selectImage(t),src:this.src,width:this.width,height:this.height}))}};J.style=":host{display:block;margin-bottom:8px;position:relative}img{width:100%;height:auto;cursor:pointer}.image-preloader{background:rgba(0, 0, 0, 0.25);border-radius:4px;bottom:12px;display:none;padding:4px 6px;pointer-events:none;position:absolute;right:12px;z-index:4}vviinn-preloader{--preloader-size:12px}@media (max-width: 640px){.image-preloader{display:block}}";let tt=class{constructor(e){t(this,e),this.imageSelected=n(this,"imageSelected",7),this.imageSelectedError=n(this,"imageSelectedError",7)}handleImageSelection(){this.imageSelected.emit()}handleImageSelectionError(){this.imageSelectedError.emit()}componentWillLoad(){Y(this,this.el)}render(){return e(i,null,e("slot",{name:"vviinn-example-images-title"},e("h3",null,"Mit den Beispielbildern die Suche direkt ausprobieren")),e("div",{class:"images"},e("slot",{name:"vviinn-example-images-1"},e("vviinn-example-image",{width:480,height:640,src:"https://cdn.vviinn.com/0/fit/480/0/ce/0/Z3M6Ly9haWFhcy1pbWdwcm94eS9leGFtcGxlcy9pbWctaW5zcGlyYXRpb24tMDEtTC5qcGc="})),e("slot",{name:"vviinn-example-images-2"},e("vviinn-example-image",{width:280,height:480,src:"https://cdn.vviinn.com/0/fit/480/0/ce/0/Z3M6Ly9haWFhcy1pbWdwcm94eS9leGFtcGxlcy9pbWctaW5zcGlyYXRpb24tMDItTS5qcGc="})),e("slot",{name:"vviinn-example-images-3"},e("vviinn-example-image",{width:280,height:480,src:"https://cdn.vviinn.com/0/fit/480/0/ce/0/Z3M6Ly9haWFhcy1pbWdwcm94eS9leGFtcGxlcy9pbWctaW5zcGlyYXRpb24tMDMtTS5qcGc="})),e("slot",{name:"vviinn-example-images-4"},e("vviinn-example-image",{width:480,height:640,src:"https://cdn.vviinn.com/0/fit/480/0/ce/0/Z3M6Ly9haWFhcy1pbWdwcm94eS9leGFtcGxlcy9pbWctaW5zcGlyYXRpb24tMDQtTC5qcGc="}))))}get el(){return r(this)}};tt.style="h3{font-size:22px;font-weight:600;line-height:32px;margin:0;margin-bottom:16px;text-align:center}.images{display:block;-moz-column-count:2;column-count:2;-moz-column-gap:16px;column-gap:16px}";let et=class{constructor(e){t(this,e),this.imageSelected=n(this,"imageSelected",7),this.imageSelectedError=n(this,"imageSelectedError",7)}async handleInputChange(t){const e=t.target,i=await k(e.files[0]);h.pipe(i,_((()=>this.imageSelectedError.emit()),(()=>this.imageSelected.emit()))),e.value=null}isLoading(){return d.loading||d.objectDetectionInProgress}render(){return e(i,{exportparts:"button"},this.isLoading()?e("vviinn-preloader",null):null,this.isLoading()?null:e("label",{htmlFor:"fileInput",part:"button"},e("slot",{name:"upload-button-text"},"Upload image")),e("input",{id:"fileInput",class:"visually-hidden",type:"file",accept:"image/*",onChange:t=>this.handleInputChange(t)}))}};et.style=":host{display:block}:host(::hover){background:whitesmoke}.visually-hidden{clip:rect(0 0 0 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}label{cursor:pointer;display:grid;padding:0.5rem;transition:background 0.1s ease-in-out}";let it=class{constructor(e){t(this,e)}handleInitialImageLoad(t){const e=C(t.target),{x:i,y:n}=m(e,{x:12,y:12}),r={x:i,y:n,width:e.width-24,height:e.height-24};d.imageBounds=a.some(e),d.searchArea=a.some(r)}renderDetectedObject(t){return e("vviinn-detected-object",{detectedObject:t})}renderImage(){return h.pipe(l(d.imageUrl,d.image),a.map((([t,i])=>{const[n,r]=(t=>{const e=F(t),i=S(288)(e).map((t=>t.size));return[i[0],i[1]]})(i);return e("img",{decoding:"async",width:n,height:r,src:t,onLoad:t=>this.handleInitialImageLoad(t),draggable:!1})})),a.getOrElse((()=>null)))}renderCropper(){return h.pipe(d.imageUrl,a.map((()=>e("image-cropper",null))),a.getOrElse((()=>null)))}render(){return e(i,null,d.loading||d.objectDetectionInProgress?e("div",{class:"image-preloader"},e("vviinn-preloader",null)):null,e("highlight-box",null),this.renderImage(),this.renderCropper(),d.detectedObjects.map((t=>this.renderDetectedObject(t))))}};it.style=":host{display:grid;position:relative;justify-self:center}img{box-sizing:border-box;filter:brightness(60%);position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:-1}.image-preloader{background:rgba(0, 0, 0, 0.25);border-radius:4px;bottom:18px;padding:4px 6px;pointer-events:none;position:absolute;right:18px;z-index:4}vviinn-preloader{--preloader-size:12px}";let nt=class{constructor(e){t(this,e),this.modalClosed=n(this,"modalClosed",7),this.secondaryActionClicked=n(this,"secondaryActionClicked",7),this.active=!1,this.slider=!1}close(){this.active=!1,setTimeout((()=>{this.modalClosed.emit()}),this.slider?500:0)}handleAnimationEnd(t){"fade-in"===t.animationName&&(this.slider=!0)}render(){return e(i,{exportparts:"secondary-action, title, close-button",class:{closed:!this.active},onAnimationEnd:t=>this.handleAnimationEnd(t)},e("div",{class:"head"},e("button",{part:"secondary-action",onClick:()=>this.secondaryActionClicked.emit()},e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M20.25 12H3.75",stroke:"#161616","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M10.5 5.25L3.75 12L10.5 18.75",stroke:"#161616","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))),e("div",{class:"title",part:"title"},"Bildsuche"),e("button",{onClick:()=>this.close(),class:"close-button",part:"close-button"},e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M16 1.4L14.6 0L8 6.6L1.4 0L0 1.4L6.6 8L0 14.6L1.4 16L8 9.4L14.6 16L16 14.6L9.4 8L16 1.4Z",fill:"#333333"})))),e("div",{class:"body"},e("slot",null)))}};nt.style=":host{background:white;border-radius:4px;box-sizing:border-box;display:grid;grid-template-rows:-webkit-min-content auto;grid-template-rows:min-content auto;max-width:960px}@media (max-width: 415px){:host{-webkit-animation-name:fade-in;animation-name:fade-in;-webkit-animation-duration:0.5s;animation-duration:0.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}:host(.closed){-webkit-animation-name:fade-out;animation-name:fade-out;-webkit-animation-fill-mode:none;animation-fill-mode:none}.body{overflow-y:auto}}@media (max-width: 640px) and (min-width: 415px){:host{max-width:80%}}.head{align-items:center;border-bottom:1px solid #F4F4F4;display:grid;grid-gap:16px;grid-template-columns:-webkit-min-content auto -webkit-min-content;grid-template-columns:min-content auto min-content;justify-items:center;padding:16px}.title{font-weight:600;font-size:18px;line-height:24px}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;cursor:pointer;display:grid;padding:unset}@-webkit-keyframes fade-in{from{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes fade-in{from{transform:translateY(100%)}to{transform:translateY(0)}}@-webkit-keyframes fade-out{from{transform:translateY(0)}to{transform:translateY(100%)}}@keyframes fade-out{from{transform:translateY(0)}to{transform:translateY(100%)}}";let rt=class{constructor(e){t(this,e)}componentWillLoad(){Y(this,this.el)}render(){return e(i,null,e("slot",{name:"vviinn-onboarding-title"},e("h3",null,"So funktioniert es")),e("vviinn-slider",{showArrows:!0},e("vviinn-slide",null,e("vviinn-onboarding-card-1",null)),e("vviinn-slide",null,e("vviinn-onboarding-card-2",null)),e("vviinn-slide",null,e("vviinn-onboarding-card-3",null))))}get el(){return r(this)}};rt.style=":host{--color-primary-system:#0F62FE;--color-primary-hover-system:#014CDA;--color-icons-system:#2F8EDF;--spacer:8px}::host{display:block}h3{font-size:22px;font-weight:600;line-height:32px;margin:0;margin-bottom:16px;text-align:center}vviinn-slide{background:#f4f4f4;padding:24px}svg{padding:16px 0}.text{display:grid;grid-gap:8px}.text>h4{color:#161616;font-size:18px;font-weight:600;line-height:24px;margin:unset;text-align:center}.text>p{color:#525252;font-size:14px;font-style:normal;font-weight:normal;line-height:20px;margin:unset;text-align:center}.colored{fill:var(--color-icons, var(--color-icons-system))}";let st=class{constructor(e){t(this,e)}componentWillLoad(){Y(this,this.el)}render(){return e(i,null,e("slot",{name:"onboarding-card-1-icon"},e(G,null)),e("slot",{name:"onboarding-card-1-text"},e("div",{class:"text"},e("h4",null,"Starte die Bildsuche"),e("p",null,"Lade ein Bild aus Deiner Galerie hoch oder fotografiere ein Produkt mit Deiner Kamera."))))}get el(){return r(this)}};st.style=":host{align-items:center;background:#f4f4f4;display:grid;grid-template-rows:repeat(2, 1fr);justify-items:center;padding:24px;width:100%}h4{color:#161616;font-size:18px;font-weight:600;line-height:24px;margin:unset;text-align:center}svg{padding:16px 0}p{color:#525252;font-size:14px;font-style:normal;font-weight:normal;line-height:20px;margin:unset;text-align:center}.colored{fill:var(--color-icons, var(--color-icons-system))}.text{display:grid;grid-gap:8px}";let ot=class{constructor(e){t(this,e)}componentWillLoad(){Y(this,this.el)}render(){return e(i,null,e("slot",{name:"onboarding-card-2-icon"},e(O,null)),e("slot",{name:"onboarding-card-2-text"},e("div",{class:"text"},e("h4",null,"Verfeiner deine Suche"),e("p",null,"Du kannst den Bildrahmen selber festlegen und so die Produkte genau auswählen."))))}get el(){return r(this)}};ot.style=":host{align-items:center;background:#f4f4f4;display:grid;grid-template-rows:repeat(2, 1fr);justify-items:center;padding:24px;width:100%}h4{color:#161616;font-size:18px;font-weight:600;line-height:24px;margin:unset;text-align:center}svg{padding:16px 0}p{color:#525252;font-size:14px;font-style:normal;font-weight:normal;line-height:20px;margin:unset;text-align:center}.colored{fill:var(--color-icons, var(--color-icons-system))}.text{display:grid;grid-gap:8px}";let at=class{constructor(e){t(this,e)}componentWillLoad(){Y(this,this.el)}render(){return e(i,null,e("slot",{name:"onboarding-card-3-icon"},e(T,null)),e("slot",{name:"onboarding-card-3-text"},e("div",{class:"text"},e("h4",null,"Ohne Hintergrund"),e("p",null,"Die besten Ergebnisse erhältst Du, wenn das gesuchte Objekt mit einfarbigem und hellem Hintergrund zu sehen ist."))))}get el(){return r(this)}};at.style=":host{align-items:center;background:#f4f4f4;display:grid;grid-template-rows:repeat(2, 1fr);justify-items:center;padding:24px;width:100%}h4{color:#161616;font-size:18px;font-weight:600;line-height:24px;margin:unset;text-align:center}svg{padding:16px 0}p{color:#525252;font-size:14px;font-style:normal;font-weight:normal;line-height:20px;margin:unset;text-align:center}.colored{fill:var(--color-icons, var(--color-icons-system))}.text{display:grid;grid-gap:8px}";let lt=class{constructor(e){t(this,e)}render(){return e(i,null,e("slot",null))}};lt.style=":host{-webkit-animation:fade-in 0.5s ease-in-out;animation:fade-in 0.5s ease-in-out;background:rgba(0, 0, 0, 0.5);display:block;height:100vh;left:0;overflow:hidden;position:fixed;top:0;width:100vw;z-index:9999}@-webkit-keyframes fade-in{from{opacity:0.1}to{opacity:1}}@keyframes fade-in{from{opacity:0.1}to{opacity:1}}";let dt=class{constructor(e){t(this,e),this.secondaryActionClicked=n(this,"secondaryActionClicked",7),this.modalClosed=n(this,"modalClosed",7),this.active=!1}render(){return e(i,{class:{active:this.active}},e("vviinn-overlay",null,e("vviinn-modal",{onSecondaryActionClicked:()=>this.secondaryActionClicked.emit(),active:this.active},e("slot",null,"CONTENT"))))}};dt.style=":host{display:none}:host(.active){display:block}vviinn-overlay{align-items:center;display:grid;justify-items:center}@media (max-width: 415px){vviinn-modal{border-radius:4px 4px 0 0;height:100vh;margin-top:32px;transform:translateY(100%);width:100vw}vviinn-overlay{align-items:end;display:grid;justify-items:center}}";let ct=class{constructor(e){t(this,e)}isActive(){return d.loading||d.objectDetectionInProgress}render(){return e(i,{class:{active:this.isActive()}})}};ct.style=":host{--preloader-size:24px;--preloader-width:calc(var(--preloader-size) / 6);transform-origin:center;-webkit-animation:rotate 3s linear infinite;animation:rotate 3s linear infinite;border:var(--preloader-width) solid white;border-radius:50%;border-top-color:transparent;display:none;outline:0;width:var(--preloader-size);height:var(--preloader-size);box-sizing:border-box}:host(.active){display:flex}@-webkit-keyframes rotate{from{transform:rotate(-360deg)}to{transform:rotate(360deg)}}@keyframes rotate{from{transform:rotate(-360deg)}to{transform:rotate(360deg)}}";let ht=class{constructor(e){t(this,e)}componentWillLoad(){Y(this,this.el)}render(){return e(i,null,e("slot",null,e("div",{class:"content"},e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"},e("defs",null),e("path",{fill:"#525252",d:"M8.5 11V7h-2v1h1v3H6v1h4v-1H8.5zM8 4a.75.75 0 100 1.5A.75.75 0 008 4z"}),e("path",{fill:"#525252",d:"M8 15A7 7 0 118 1a7 7 0 010 14zM8 2a6 6 0 100 12A6 6 0 008 2z"})),e("slot",{name:"vviinn-privacy-badge-text"},e("p",null,"Wir gehen sorgfältig mit Deinen Daten um. Deine Bilder werden nur zum Zweck der Bildsuche gespeichert.")))))}get el(){return r(this)}};ht.style=":host{display:block;background:#F4F4F4;padding:17px}.content{display:grid;grid-template-columns:-webkit-min-content auto;grid-template-columns:min-content auto;grid-gap:9px}.content p{color:#525252;font-size:12px;line-height:16px;margin:unset}";class pt{sendImpression(t){var e,i,n;gtag("event","view_item_list",{items:[{id:t.productId,name:t.title,brand:null!==(e=t.brand)&&void 0!==e?e:"",category:null!==(i=t.productType)&&void 0!==i?i:"",list_name:"VI VPR View",price:Math.min(t.price.actual,null!==(n=t.price.sale)&&void 0!==n?n:1/0)}]})}sendClick(t){var e,i,n;gtag("event","select_content",{content_type:"product",items:[{id:t.productId,name:t.title,brand:null!==(e=t.brand)&&void 0!==e?e:"",category:null!==(i=t.productType)&&void 0!==i?i:"",list_name:"VI VPR View",price:Math.min(t.price.actual,null!==(n=t.price.sale)&&void 0!==n?n:1/0)}]})}}class mt{constructor(){ga("require","ec")}convertProduct(t){var e,i,n;return{id:t.productId,name:t.title,brand:null!==(e=t.brand)&&void 0!==e?e:"",category:null!==(i=t.productType)&&void 0!==i?i:"",list:"VI VPR View",price:Math.min(t.price.actual,null!==(n=t.price.sale)&&void 0!==n?n:1/0)}}sendImpression(t){ga("ec:addImpression",this.convertProduct(t))}sendClick(t){var e,i,n;ga("ec:addProduct",{id:t.productId,name:t.title,brand:null!==(e=t.brand)&&void 0!==e?e:"",category:null!==(i=t.productType)&&void 0!==i?i:"",price:Math.min(t.price.actual,null!==(n=t.price.sale)&&void 0!==n?n:1/0)}),ga("ec:setAction","click",{list:"VI VPR View"})}}const gt=a.getMonoid(L.first()).concat(h.pipe(a.fromNullable(window.gtag),a.map((()=>new pt))),h.pipe(a.fromNullable(window.ga),a.map((()=>new mt)))),ut=/fit\/\d+\//,vt=(t,e)=>h.pipe((t=>h.pipe(t.match(ut),z.fromNullable(t),z.map((()=>t))))(t),z.map((t=>t.replace(ut,`fit/${e}/`))),z.getOrElse((()=>t))),bt=(t,i)=>t.deeplink?e("a",{class:t.part,part:t.part,href:t.deeplink},i):i,xt=t=>{var i;const n=new Intl.NumberFormat(t.locale,{minimumFractionDigits:2}).format(t.price),r=`${null!==(i=t.prefix)&&void 0!==i?i:""} ${n} ${t.currency}`;return e("span",{class:"price-amount",part:"price-amount"},r)},ft=t=>{const i=e(xt,{prefix:t.prefix,currency:t.currency,price:t.price,locale:t.locale});return e("span",{class:"price-container",part:"price-container"},t.salePrice?[e("span",{class:"price-sale",part:"price-sale"},e(xt,{prefix:t.prefix,currency:t.currency,price:t.salePrice,locale:t.locale})),e("span",{class:"price-outdated",part:"price-outdated"},i)]:e("span",{class:"price-regular",part:"price-regular"},i))};let wt=class{constructor(e){t(this,e),this.recommendationLoad=n(this,"recommendationLoad",7),this.recommendationView=n(this,"recommendationView",7),this.recommendationClick=n(this,"recommendationClick",7),this.productImageLoaded=n(this,"productImageLoaded",7),this.currency=void 0,this.imageRatio=1,this.imageWidth=200,this.locale=void 0,this.pricePrefix=void 0,this.responsive=!1,this.dimmedBackground=!1,this.index=0,this.imageLoaded=!1,this.productData=null,this.intersectionObserver=new IntersectionObserver(this.intersectionCallback.bind(this),{threshold:1})}connectedCallback(){this.productData={product:this.productId,rank:this.index}}intersectionCallback(t){t.some((t=>t.isIntersecting))&&(h.pipe(gt,a.map((t=>t.sendImpression(this.getProduct())))),this.recommendationView.emit(this.productData),this.intersectionObserver.disconnect())}componentDidLoad(){this.recommendationLoad.emit(this.productData),this.intersectionObserver.observe(this.el),this.el.shadowRoot.querySelectorAll("a").forEach((t=>t.addEventListener("click",(t=>{t.preventDefault(),t.stopImmediatePropagation(),this.recommendationClick.emit(this.productData),h.pipe(gt,a.match((()=>null),(t=>t.sendClick(this.getProduct()))))}))))}getProduct(){return d.results.find((t=>t.productId===this.productId))}renderImage(){const t={width:this.imageWidth,height:this.imageWidth*this.imageRatio,src:this.image,title:this.productTitle,lazy:!1};return this.responsive?((t,i=(()=>{}))=>e("picture",null,e("img",{loading:t.lazy?"lazy":"eager",part:"image",class:"image responsive",src:vt(t.src,t.width),alt:t.title,onLoad:i})))(t,(()=>this.kek())):((t,i=(()=>{}))=>e("picture",null,e("img",{loading:t.lazy?"lazy":"eager",part:"image",class:"image",width:t.width,height:t.height,src:vt(t.src,t.width),alt:t.title,onLoad:i})))(t,(()=>this.kek()))}kek(){this.productImageLoaded.emit(this.productId)}render(){var t,n,r;return e(i,{part:"product-card",class:{dimmed:this.dimmedBackground},exportparts:"brand, currency, deeplink, image, image-link, price-amount, price-container, price-outdated, price-prefix, price-regular, price-sale, title"},e(bt,{deeplink:this.deeplink,part:"image-link"},this.renderImage()),e(bt,{deeplink:this.deeplink,part:"deeplink"},e("span",{class:"title",part:"title"},this.productTitle)),e("span",{class:"brand",part:"brand"},this.brand),e("span",{class:"type",part:"type"},this.productType),e(ft,{prefix:null!==(t=this.pricePrefix)&&void 0!==t?t:j.pricePrefix,currency:null!==(n=this.currency)&&void 0!==n?n:j.currencySign,price:this.price,salePrice:this.salePrice,locale:null!==(r=this.locale)&&void 0!==r?r:j.locale}))}get el(){return r(this)}};wt.style=':host{align-items:center;display:flex;flex-direction:column;gap:8px;height:100%}.price-container{display:flex;flex-direction:column}.price-sale,.price-regular{font-style:normal;font-weight:normal;font-size:16px;line-height:24px;color:#161616}.price-outdated{font-style:normal;font-weight:normal;font-size:16px;line-height:24px;color:#757575;text-decoration:line-through}.product-type{word-wrap:anywhere}.image{display:grid;align-content:center;-o-object-position:50% 50%;object-position:50% 50%;-o-object-fit:contain;object-fit:contain;text-align:center;box-sizing:border-box}img.responsive{width:100%;height:auto;aspect-ratio:1}.brand,.type{display:none}.title{-webkit-box-orient:vertical;-webkit-line-clamp:2;color:#161616;display:-webkit-box;font-size:16px;font-style:normal;font-weight:500;line-height:24px;margin-bottom:8px;overflow:hidden}.deeplink{text-decoration:none}.image-link{display:contents}picture{position:relative;width:100%}:host(.dimmed) picture::before{content:"";width:100%;height:100%;box-sizing:border-box;background:#f7f7f7;display:block;top:0;left:0;position:absolute;mix-blend-mode:multiply}';let yt=class{constructor(e){t(this,e),this.actionClick=n(this,"actionClick",7)}render(){return e(i,null,e("vviinn-error",null,e("h4",{slot:"title"},"Keine Verbindung"),e("span",{slot:"text"},"Etwas hat leider nicht funktioniert. Bitte prüfen Sie Ihre Internetverbindung und laden Sie das Bild noch einmal hoch."),e("button",{slot:"action",onClick:()=>this.actionClick.emit()},"Erneut versuchen")))}};yt.style=":host{display:block}";let kt=class{constructor(e){t(this,e)}render(){return e(i,null,e("slot",null))}};kt.style=":host{display:grid;justify-items:center}";const zt=({kind:t,tabindex:i,disabled:n,onClick:r,onKeyDown:s})=>{return e("div",{class:(o={kind:t,disabled:n},{"arrow-wrapper":!0,[o.kind]:!0,disabled:o.disabled}),onClick:r,tabindex:i,onKeyDown:s},e(H,null));var o};let _t=class{constructor(e){t(this,e),this.elementsCount=0,this.internalPosition=0,this.swipeStartPosition=a.none,this.showBullets=!0,this.position=0,this.showArrows=!1}positionWatchHandler(t){this.internalPosition=t,this.el.style.setProperty("--position",`${t}`),this.setActiveCssClassToSlide(t)}connectedCallback(){this.handleDomContentChanges()}handleDomContentChanges(){const t=this.el.querySelectorAll("vviinn-slide");this.elementsCount=t.length,this.el.style.setProperty("--num-items",`${this.elementsCount}`),this.setActiveCssClassToSlide(0)}setActiveCssClassToSlide(t){const e=this.el.querySelectorAll("vviinn-slide");e.forEach((t=>t.classList.remove("active"))),e[t].classList.add("active")}goToSlide(t){this.internalPosition=t,this.el.style.setProperty("--position",`${t}`),this.setActiveCssClassToSlide(t)}renderBullets(){return this.showBullets?e("div",{class:"controls"},E.range(0,this.elementsCount-1).map((t=>e("div",{class:{bullet:!0,active:t==this.internalPosition%this.elementsCount},onClick:()=>this.goToSlide(t)})))):null}nextSlide(){this.internalPosition++,this.renderSlidePosition()}prevSlide(){const t=this.internalPosition-1;this.internalPosition=t>-1?t:this.elementsCount-1,this.renderSlidePosition()}renderSlidePosition(){requestAnimationFrame((()=>{this.el.style.setProperty("--position",""+this.internalPosition%this.elementsCount)}))}handleKeyDown(t){if("Space"===t.key||"Enter"===t.key)switch(t.target.className.includes("prev")?"prev":"next"){case"prev":this.prevSlide();break;case"next":this.nextSlide()}}handleTouchStart(t){this.showBullets&&(this.swipeStartPosition=h.pipe(t.touches[0],a.fromNullable,a.map((t=>t.clientX))))}handleTouchEnd(t){if(!this.showBullets)return;const e=h.pipe(t.changedTouches[0],a.fromNullable,a.map((t=>t.clientX)));h.pipe(l(this.swipeStartPosition,e),a.map((([t,e])=>{return(i=t)<(n=e)?-1:i>n?1:0;var i,n})),a.map((t=>{switch(t){case 1:return this.nextSlide();case-1:return this.prevSlide()}})))}render(){return e(i,null,e("div",{class:"items-wrapper"},e("div",{class:"items",onTouchStart:t=>this.handleTouchStart(t),onTouchEnd:t=>this.handleTouchEnd(t)},e("slot",null))),this.showArrows?[e(zt,{kind:"prev",onClick:()=>this.prevSlide(),onKeyDown:t=>this.handleKeyDown(t),tabindex:1,disabled:!1}),e(zt,{kind:"next",onClick:()=>this.nextSlide(),onKeyDown:t=>this.handleKeyDown(t),tabindex:0,disabled:!1})]:null,this.renderBullets())}get el(){return r(this)}static get watchers(){return{position:["positionWatchHandler"]}}};_t.style=":host{--color-primary-system:#0F62FE;--color-primary-hover-system:#014CDA;--color-icons-system:#2F8EDF;--spacer:8px}:host{--num-items:0;--position:0;display:grid;grid-gap:20px;justify-items:center;position:relative}.items-wrapper{overflow:hidden;width:100%}.items{box-sizing:border-box;display:grid;grid-auto-flow:column;grid-template-columns:repeat(var(--num-items), 100%);transform:translateX(calc(-100% * var(--position)));transition:transform 0.33s ease-in-out}.controls{display:grid;grid-gap:16px;grid-template-columns:repeat(var(--num-items), -webkit-min-content);grid-template-columns:repeat(var(--num-items), min-content)}.bullet{background:#E0E0E0;border-radius:50%;box-sizing:border-box;cursor:pointer;height:8px;width:8px;transition:background 0.1s ease-in-out}.bullet:hover{background:#C6C6C6}.bullet.active{background:var(--color-primary, var(--color-primary-system))}.bullet:active{background:transparent;border:2px solid var(--color-primary, var(--color-primary-system))}.arrow-wrapper{align-items:center;background:white;border:2px solid white;bottom:0;box-sizing:border-box;display:grid;height:calc(var(--spacer) * 6);justify-items:center;margin:auto;position:absolute;top:0;transform:translate3d(0, -50%, 0);transition:border 0.25ms ease-in-out;width:calc(var(--spacer) * 4)}.arrow-wrapper:active{border-color:var(--color-primary, var(--color-primary-system));opacity:0.75}.arrow-wrapper:focus{border-color:var(--color-primary, var(--color-primary-system));opacity:0.5;outline:none}.prev{left:0}.next{right:0}.next>svg{transform:rotate3d(0, 1, 0, 180deg)}.arrow-wrapper>svg{transition:fill 0.25ms ease-in-out;fill:#A8A8A8}.arrow-wrapper:hover>svg{fill:#8D8D8D}";let Ct=class{constructor(e){t(this,e)}componentWillLoad(){Y(this,this.el)}render(){return e(i,null,e("slot",null,e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",fill:"none"},e("defs",null),e("path",{fill:"#C6C6C6",d:"M48 28a11.98 11.98 0 00-9.77 18.942L28 57.172 30.828 60l10.23-10.23A11.994 11.994 0 1048 28zm0 20a8 8 0 118-8 8.009 8.009 0 01-8 8zM34 24a6 6 0 10-6-6 6.006 6.006 0 006 6zm0-8a2 2 0 110 4 2 2 0 010-4z"}),e("path",{fill:"#C6C6C6",d:"M24 48H8V35.993L18 26l11.172 11.172L32 34.336 20.828 23.165a4 4 0 00-5.656 0L8 30.336V8h40v12h4V8a4.004 4.004 0 00-4-4H8a4.004 4.004 0 00-4 4v40a4.005 4.005 0 004 4h16v-4z"})),e("span",{class:"vviinn-teaser-text"},e("slot",{name:"vviinn-teaser-text"},"Finde Produkte auf ",e("br",null)," einem Foto"))))}get el(){return r(this)}};Ct.style=":host{align-items:center;display:grid;justify-items:center;grid-gap:16px}.vviinn-teaser-text{font-size:28px;font-weight:600;line-height:40px;size:28px;text-align:center}";const Ft=t=>/^[-+]?(\d+|Infinity)$/.test(t)?Number(t):NaN,St=t=>!P(t),Lt=t=>!isNaN(t);let jt=class{constructor(e){t(this,e),this.apiPath="https://api.vviinn.com",this.active=!1,this.currencySign="€",this.locale="de-DE",this.slidePosition=0,this.width=0,this.wrongImageFormat=!1,this.imageSource=null}activeWatcher(t){t?(this.overflow=document.body.style.overflow,document.body.style.overflow="hidden",this.trackOpenEvent()):document.body.style.overflow=this.overflow}trackRecommendationView({detail:t}){const e=D(Object.assign({session_id:this.uiSessionId},t));this.trackingApi.trackEvent(e)}trackRecommendationClick({detail:t}){const e=A(Object.assign({session_id:this.uiSessionId},t));this.trackingApi.trackEvent(e).finally((()=>{const e=d.results.find((e=>e.productId===t.product));e&&e.deeplink&&(window.location.href=e.deeplink)}))}trachSearchAreaChanges(){const t=I({session_id:this.uiSessionId,source:this.imageSource,search_area:"manual-selection"});this.trackingApi.trackEvent(t)}trackDetectedObject(){const t=I({session_id:this.uiSessionId,source:this.imageSource,search_area:"attention-point"});this.trackingApi.trackEvent(t)}trackFilter({detail:t}){const e=M({session_id:this.uiSessionId,source:this.imageSource,kind:"category",action:t});this.trackingApi.trackEvent(e)}componentWillLoad(){Y(this,this.el)}connectedCallback(){j.apiPath=this.apiPath,j.currencySign=this.currencySign,j.locale=this.locale,d.token=this.token,d.campaignId=h.pipe(this.campaignId,a.fromNullable,a.chain(a.fromPredicate(St)),a.map(Ft),a.chain(a.fromPredicate(Lt)),a.map((t=>`${t}`))),this.uiSessionId=W(),this.trackingApi=V(this.apiPath,this.token)}trackOpenEvent(){const t=$({action:"open",session_id:this.uiSessionId});this.trackingApi.trackEvent(t)}handleImageSelection(t){this.imageSource=t,this.slidePosition=1,this.el.shadowRoot.querySelector("vviinn-overlayed-modal").shadowRoot.querySelector("vviinn-overlay").querySelector("vviinn-modal").shadowRoot.querySelector(".body").scrollTop=0,this.trackInitialSearch()}trackInitialSearch(){const t=I({session_id:this.uiSessionId,source:this.imageSource,search_area:"full"});this.trackingApi.trackEvent(t)}resetState(){this.resetScroll("onboarding-block"),this.slidePosition=0,d.image=a.none,d.imageUrl=a.none,d.imageBounds=a.none,d.searchArea=a.none,d.results=[],d.filters=[],d.detectedObjects=[],d.activeIonLink=void 0,d.rectangleSearchForm=void 0,this.resetScroll("results-block")}haveErrors(){return this.wrongImageFormat||d.serverError}resetScroll(t,e="auto"){this.el.shadowRoot.getElementById(t).scroll({top:0,left:0,behavior:e})}handleModalClose(){this.active=!1,this.resetState(),["onboarding-block","results-block"].forEach((t=>this.resetScroll(t)));const t=$({action:"close",session_id:this.uiSessionId});this.trackingApi.trackEvent(t)}render(){return e(i,null,e("vviinn-overlayed-modal",{class:{"first-screen":0===this.slidePosition},active:this.active,onSecondaryActionClicked:()=>this.resetState(),onModalClosed:()=>this.handleModalClose(),exportparts:"secondary-action, title, close-button, example-images"},e("vviinn-slider",{showBullets:!1,position:this.slidePosition},e("vviinn-slide",{class:{"start-page":!0}},e("div",{class:{error:this.haveErrors(),"start-page_block":!0}},e("vviinn-wrong-format",{class:{hidden:!this.wrongImageFormat},onActionClick:()=>this.wrongImageFormat=!1}),e("vviinn-server-error",{class:{hidden:!d.serverError},onActionClick:()=>d.serverError=!1}),e("vviinn-teaser",{class:{hidden:this.haveErrors()}}),e("vviinn-image-selector",{class:{hidden:this.haveErrors()},onImageSelected:()=>this.handleImageSelection("upload"),onImageSelectedError:()=>this.wrongImageFormat=!0,part:"select-image_button"},e("span",{slot:"upload-button-text",class:"upload-button-content"},e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"29",height:"28",fill:"none"},e("defs",null),e("path",{fill:"#fff","fill-rule":"evenodd",d:"M10.271 3.89A.875.875 0 0111 3.5h7c.293 0 .566.146.728.39l1.49 2.235h3.033a2.625 2.625 0 012.625 2.625V21a2.625 2.625 0 01-2.625 2.625H5.75A2.625 2.625 0 013.125 21V8.75A2.625 2.625 0 015.75 6.125h3.031l1.49-2.235zm1.197 1.36l-1.49 2.235a.875.875 0 01-.729.39H5.75a.875.875 0 00-.875.875V21a.875.875 0 00.875.875h17.5a.875.875 0 00.875-.875V8.75a.875.875 0 00-.875-.875h-3.5a.875.875 0 01-.729-.39l-1.49-2.235h-6.063z","clip-rule":"evenodd"}),e("path",{fill:"#fff","fill-rule":"evenodd",d:"M14.5 11.375a3.062 3.062 0 100 6.125 3.062 3.062 0 000-6.125zm-4.813 3.063a4.812 4.812 0 119.625 0 4.812 4.812 0 01-9.625 0z","clip-rule":"evenodd"})),e("slot",{name:"vviinn-image-upload-button-text"},e("span",null,"Kamera oder Bild auswählen")))),e("vviinn-privacy-badge",{class:{hidden:this.haveErrors()}})),e("div",{id:"onboarding-block",class:"start-page_block"},e("div",{class:"onboarding-wrapper"},e("vviinn-onboarding",null),e("vviinn-example-images",{part:"example-images",onImageSelected:()=>this.handleImageSelection("example"),onImageSelectedError:()=>this.resetScroll("onboarding-block","smooth")})))),e("vviinn-slide",{class:{"results-page":!0,active:1==this.slidePosition}},e("div",{class:"image-wrapper"},e("vviinn-image-view",null),e("div",{class:"filters-wrapper"},e("div",{class:"filters"},d.filters.map((t=>e("search-filters",{filter:t})))))),e("div",{id:"results-block",class:"products-wrapper"},e("div",{class:{"nothing-found":!0,hidden:d.results.length>0}},e("vviinn-empty-results",null),e("vviinn-onboarding",null)),e("div",{class:{hidden:d.results.length<=0,products:!0}},d.results.map(((t,i)=>{var n;return e("vviinn-product-card",{hidden:!0,productTitle:t.title,productId:t.productId,brand:t.brand,deeplink:t.deeplink,price:t.price.actual,salePrice:t.price.sale,imageWidth:160,image:null!==(n=t.image.thumbnail)&&void 0!==n?n:t.image.original,part:"product-card",index:i})}))))))))}get el(){return r(this)}static get watchers(){return{active:["activeWatcher"]}}};jt.style=":host{--color-primary-system:#0F62FE;--color-primary-hover-system:#014CDA;--color-icons-system:#2F8EDF;--spacer:8px}:host{display:block}.hidden{visibility:hidden;height:1px}vviinn-overlayed-modal.first-screen::part(title),vviinn-overlayed-modal.first-screen::part(secondary-action){visibility:hidden}.start-page{display:grid;grid-template-columns:repeat(2, 1fr);min-height:580px}.start-page_block{align-content:start;border-right:1px solid #F4F4F4;display:grid;padding:48px}.start-page_block.error{align-content:center}#onboarding-block{border-right:unset;box-sizing:border-box;grid-gap:24px;overflow-y:auto;position:relative;width:100%}vviinn-teaser{margin-bottom:32px;margin-top:-24px}vviinn-image-selector{align-items:center;background:var(--color-primary, var(--color-primary-system));border-color:var(--color-primary, var(--color-primary-system));border-radius:2px;color:white;display:grid;font-size:16px;font-weight:600;height:56px;justify-items:center;margin-bottom:16px;transition:background 0.1s ease-in-out}vviinn-image-selector:hover{background:var(--color-primary-hover, var(--color-primary-hover-system));border-color:var(--color-primary-hover, var(--color-primary-hover-system))}vviinn-image-selector:active{border-color:black}.upload-button-content{display:grid;align-items:center;justify-items:start;justify-content:center;grid-template-columns:-webkit-max-content auto;grid-template-columns:max-content auto;grid-gap:16px}.results-page{display:grid;grid-template-columns:336px auto;box-sizing:border-box}.results-page>*{padding:24px;box-sizing:border-box}.products{align-content:center;align-items:start;box-sizing:border-box;display:grid;grid-gap:32px 16px;grid-template-columns:repeat(auto-fill, minmax(152px, 1fr));justify-items:center;padding:24px;padding-right:0;position:absolute;width:calc(100% - 16px)}.products.hidden{display:none}vviinn-empty-results{width:280px;align-self:center;justify-self:center}.products-wrapper{display:grid;overflow-y:auto;overflow-x:hidden;padding:unset;position:relative;width:100%}.image-wrapper{border-right:1px solid #F4F4F4;display:grid;grid-template-rows:-webkit-min-content 170px;grid-template-rows:min-content 170px;grid-gap:24px;min-width:100%}.onboarding-wrapper{position:absolute;width:100%;padding:48px;box-sizing:border-box;display:grid;grid-gap:64px;padding-bottom:24px}vviinn-product-card{gap:0;width:100%}vviinn-product-card::part(image){border:1px solid #eaeaea;margin-bottom:8px}vviinn-product-card::part(price-container),vviinn-product-card::part(deeplink),vviinn-product-card::part(title){align-self:start}search-filters span{display:none}search-filters::part(filter){background:#F4F4F4;border-radius:4px;border:1px solid #F4F4F4;box-sizing:border-box;color:#161616;font-size:14px;font-weight:600;line-height:20px}search-filters::part(show-more-filters){border:1px solid #f4f4f4;border-radius:4px;box-sizing:border-box;color:#161616;font-size:14px;font-weight:600;line-height:20px;padding:6px 16px}search-filters::part(show-more-filters):hover{background:#EAEAEA}search-filters::part(filter):hover{background:#EAEAEA}search-filters::part(filter):focus{outline:none;border:1px solid var(--color-primary, var(--color-primary-system))}search-filters::part(filter active){background:rgba(15, 98, 254, 0.15);color:var(--color-primary, var(--color-primary-system))}.filters-wrapper{overflow:auto}.results-page:not(.active){display:none}.nothing-found{display:grid;grid-gap:64px;justify-self:center;padding-top:64px;padding-bottom:16px;position:absolute;width:60%}@media (max-width: 768px){.start-page_block{padding:24px}.onboarding-wrapper{padding:24px}}@media (max-width: 640px){.start-page{grid-template-rows:-webkit-min-content;grid-template-rows:min-content;grid-template-columns:unset;grid-gap:48px;padding:24px 0 48px 0}}@media (max-width: 640px) and (min-width: 415px){.onboarding-wrapper{position:unset}#onboarding-block{overflow:unset}.start-page.active{height:1px;overflow:auto}}@media (max-width: 415px){.results-page>*{box-sizing:border-box;padding:24px}vviinn-slide{padding-bottom:48px}.start-page_block:last-of-type{border-right:unset;overflow-y:unset;position:static;box-sizing:border-box;width:unset}.start-page_block{padding:0 24px}vviinn-teaser{margin-top:24px}.onboarding-wrapper{position:static;width:unset;padding:unset;box-sizing:border-box}.results-page{grid-template-columns:unset;grid-template-rows:-webkit-min-content auto;grid-template-rows:min-content auto}.image{margin-bottom:8px}.image-wrapper{grid-template-rows:-webkit-min-content auto;grid-template-rows:min-content auto;width:100%}.products-wrapper{align-content:start;position:static;overflow-y:unset;width:100%;padding-top:0}.products{position:static;padding:0;width:unset;grid-gap:32px 16px;justify-content:center}.nothing-found{position:static;grid-gap:64px;padding:unset;align-content:start;width:unset}}@media (max-width: 320px){.products{grid-template-columns:unset}}vviinn-wrong-format,vviinn-server-error{width:280px;align-self:center;justify-self:center}";let Et=class{constructor(e){t(this,e),this.actionClick=n(this,"actionClick",7)}render(){return e(i,null,e("vviinn-error",null,e("h4",{slot:"title"},"Dateityp wird nicht unterstützt"),e("span",{slot:"text"},"Leider unterstützen wir dieses Format nicht. Bitte laden Sie eine .jpg, .png oder .webp Bilddatei hoch."),e("button",{slot:"action",onClick:()=>this.actionClick.emit()},"Neues Bild hochladen")))}};Et.style=":host{display:block}";export{Z as cropper_handler,R as highlight_box,K as image_cropper,q as search_filters,X as vviinn_detected_object,U as vviinn_empty_results,Q as vviinn_error,J as vviinn_example_image,tt as vviinn_example_images,et as vviinn_image_selector,it as vviinn_image_view,nt as vviinn_modal,rt as vviinn_onboarding,st as vviinn_onboarding_card_1,ot as vviinn_onboarding_card_2,at as vviinn_onboarding_card_3,lt as vviinn_overlay,dt as vviinn_overlayed_modal,ct as vviinn_preloader,ht as vviinn_privacy_badge,wt as vviinn_product_card,yt as vviinn_server_error,kt as vviinn_slide,_t as vviinn_slider,Ct as vviinn_teaser,jt as vviinn_vps_widget,Et as vviinn_wrong_format}
@@ -1 +0,0 @@
1
- const t={packageVersion:"2.7.2",packageName:"vviinn-widgets",environment:"local"};let e,n,l=!1,s=null,o=!1;const c="undefined"!=typeof window?window:{},i=c.document||{head:{}},r={t:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l),ce:(t,e)=>new CustomEvent(t,e)},a=t=>Promise.resolve(t),u=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(t){}return!1})(),f=(t,e,n)=>{n&&n.map((([n,l,s])=>{const o=h(t,n),c=d(e,s),i=p(n);r.ael(o,l,c,i),(e.o=e.o||[]).push((()=>r.rel(o,l,c,i)))}))},d=(t,e)=>n=>{try{256&t.t?t.i[e](n):(t.u=t.u||[]).push([e,n])}catch(t){lt(t)}},h=(t,e)=>16&e?i.body:t,p=t=>0!=(2&t),y=new WeakMap,m=t=>"sc-"+t.h,$={},w=t=>"object"==(t=typeof t)||"function"===t,b=(t,e,...n)=>{let l=null,s=!1,o=!1,c=[];const i=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?i(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!w(l))&&(l+=""),s&&o?c[c.length-1].p+=l:c.push(s?g(null,l):l),o=s)};if(i(n),e){const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}if("function"==typeof t)return t(null===e?{}:e,c,j);const r=g(t,null);return r.m=e,c.length>0&&(r.$=c),r},g=(t,e)=>({t:0,g:t,p:e,v:null,$:null,m:null}),v={},j={forEach:(t,e)=>t.map(S).forEach(e),map:(t,e)=>t.map(S).map(e).map(k)},S=t=>({vattrs:t.m,vchildren:t.$,vkey:t.j,vname:t.S,vtag:t.g,vtext:t.p}),k=t=>{if("function"==typeof t.vtag){const e=Object.assign({},t.vattrs);return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),b(t.vtag,e,...t.vchildren||[])}const e=g(t.vtag,t.vtext);return e.m=t.vattrs,e.$=t.vchildren,e.j=t.vkey,e.S=t.vname,e},O=(t,e,n,l,s,o)=>{if(n!==l){let i=nt(t,e),a=e.toLowerCase();if("class"===e){const e=t.classList,s=M(n),o=M(l);e.remove(...s.filter((t=>t&&!o.includes(t)))),e.add(...o.filter((t=>t&&!s.includes(t))))}else if("style"===e){for(const e in n)l&&null!=l[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in l)n&&l[e]===n[e]||(e.includes("-")?t.style.setProperty(e,l[e]):t.style[e]=l[e])}else if(i||"o"!==e[0]||"n"!==e[1]){const c=w(l);if((i||c&&null!==l)&&!s)try{if(t.tagName.includes("-"))t[e]=l;else{let s=null==l?"":l;"list"===e?i=!1:null!=n&&t[e]==s||(t[e]=s)}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!i||4&o||s)&&!c&&t.setAttribute(e,l=!0===l?"":l)}else e="-"===e[2]?e.slice(3):nt(c,a)?a.slice(2):a[2]+e.slice(3),n&&r.rel(t,e,n,!1),l&&r.ael(t,e,l,!1)}},C=/\s/,M=t=>t?t.split(C):[],x=(t,e,n,l)=>{const s=11===e.v.nodeType&&e.v.host?e.v.host:e.v,o=t&&t.m||$,c=e.m||$;for(l in o)l in c||O(s,l,o[l],void 0,n,e.t);for(l in c)O(s,l,o[l],c[l],n,e.t)},E=(t,n,s)=>{let o,c,r=n.$[s],a=0;if(null!==r.p)o=r.v=i.createTextNode(r.p);else{if(l||(l="svg"===r.g),o=r.v=i.createElementNS(l?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",r.g),l&&"foreignObject"===r.g&&(l=!1),x(null,r,l),null!=e&&o["s-si"]!==e&&o.classList.add(o["s-si"]=e),r.$)for(a=0;a<r.$.length;++a)c=E(t,r,a),c&&o.appendChild(c);"svg"===r.g?l=!1:"foreignObject"===o.tagName&&(l=!0)}return o},L=(t,e,l,s,o,c)=>{let i,r=t;for(r.shadowRoot&&r.tagName===n&&(r=r.shadowRoot);o<=c;++o)s[o]&&(i=E(null,l,o),i&&(s[o].v=i,r.insertBefore(i,e)))},P=(t,e,n,l)=>{for(;e<=n;++e)(l=t[e])&&l.v.remove()},T=(t,e)=>t.g===e.g,W=(t,e)=>{const n=e.v=t.v,s=t.$,o=e.$,c=e.g,i=e.p;null===i?(l="svg"===c||"foreignObject"!==c&&l,"slot"===c||x(t,e,l),null!==s&&null!==o?((t,e,n,l)=>{let s,o=0,c=0,i=e.length-1,r=e[0],a=e[i],u=l.length-1,f=l[0],d=l[u];for(;o<=i&&c<=u;)null==r?r=e[++o]:null==a?a=e[--i]:null==f?f=l[++c]:null==d?d=l[--u]:T(r,f)?(W(r,f),r=e[++o],f=l[++c]):T(a,d)?(W(a,d),a=e[--i],d=l[--u]):T(r,d)?(W(r,d),t.insertBefore(r.v,a.v.nextSibling),r=e[++o],d=l[--u]):T(a,f)?(W(a,f),t.insertBefore(a.v,r.v),a=e[--i],f=l[++c]):(s=E(e&&e[c],n,c),f=l[++c],s&&r.v.parentNode.insertBefore(s,r.v));o>i?L(t,null==l[u+1]?null:l[u+1].v,n,l,c,u):c>u&&P(e,o,i)})(n,s,e,o):null!==o?(null!==t.p&&(n.textContent=""),L(n,null,e,o,0,o.length-1)):null!==s&&P(s,0,s.length-1),l&&"svg"===c&&(l=!1)):t.p!==i&&(n.data=i)},A=t=>Z(t).k,F=(t,e,n)=>{const l=A(t);return{emit:t=>H(l,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},H=(t,e,n)=>{const l=r.ce(e,n);return t.dispatchEvent(l),l},N=(t,e)=>{e&&!t.O&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.O=e)))},R=(t,e)=>{if(t.t|=16,!(4&t.t))return N(t,t.C),ht((()=>U(t,e)));t.t|=512},U=(t,e)=>{const n=t.i;let l;return e&&(t.t|=256,t.u&&(t.u.map((([t,e])=>G(n,t,e))),t.u=null),l=G(n,"componentWillLoad")),I(l,(()=>V(t,n,e)))},V=async(t,e,n)=>{const l=t.k,s=l["s-rc"];n&&(t=>{const e=t.M,n=t.k,l=e.t,s=((t,e)=>{let n=m(e),l=ct.get(n);if(t=11===t.nodeType?t:i,l)if("string"==typeof l){let e,s=y.get(t=t.head||t);s||y.set(t,s=new Set),s.has(n)||(e=i.createElement("style"),e.innerHTML=l,t.insertBefore(e,t.querySelector("link")),s&&s.add(n))}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(t);q(t,e),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=l["s-p"],n=()=>_(t);0===e.length?n():(Promise.all(e).then(n),t.t|=4,e.length=0)}},q=(t,l)=>{try{s=l,l=l.render(),t.t&=-17,t.t|=2,((t,l)=>{const s=t.k,o=t.M,c=t.L||g(null,null),i=(t=>t&&t.g===v)(l)?l:b(null,null,l);n=s.tagName,o.P&&(i.m=i.m||{},o.P.map((([t,e])=>i.m[e]=s[t]))),i.g=null,i.t|=4,t.L=i,i.v=c.v=s.shadowRoot||s,e=s["s-sc"],W(c,i)})(t,l)}catch(e){lt(e,t.k)}return s=null,null},D=()=>s,_=t=>{const e=t.k,n=t.i,l=t.C;64&t.t||(t.t|=64,J(e),G(n,"componentDidLoad"),t.T(e),l||B()),t.O&&(t.O(),t.O=void 0),512&t.t&&dt((()=>R(t,!1))),t.t&=-517},z=t=>{{const e=Z(t),n=e.k.isConnected;return n&&2==(18&e.t)&&R(e,!1),n}},B=()=>{J(i.documentElement),dt((()=>H(c,"appload",{detail:{namespace:"vviinn-widgets"}})))},G=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){lt(t)}},I=(t,e)=>t&&t.then?t.then(e):e(),J=t=>t.classList.add("hydrated"),K=(t,e,n)=>{if(e.W){t.watchers&&(e.A=t.watchers);const l=Object.entries(e.W),s=t.prototype;if(l.map((([t,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,t,{get(){return((t,e)=>Z(this).F.get(e))(0,t)},set(n){((t,e,n,l)=>{const s=Z(t),o=s.k,c=s.F.get(e),i=s.t,r=s.i;if(n=((t,e)=>null==t||w(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?parseFloat(t):1&e?t+"":t)(n,l.W[e][0]),!(8&i&&void 0!==c||n===c)&&(s.F.set(e,n),r)){if(l.A&&128&i){const t=l.A[e];t&&t.map((t=>{try{r[t](n,c,e)}catch(t){lt(t,o)}}))}2==(18&i)&&R(s,!1)}})(this,t,n,e)},configurable:!0,enumerable:!0})})),1&n){const n=new Map;s.attributeChangedCallback=function(t,e,l){r.jmp((()=>{const e=n.get(t);this.hasOwnProperty(e)&&(l=this[e],delete this[e]),this[e]=(null!==l||"boolean"!=typeof this[e])&&l}))},t.observedAttributes=l.filter((([t,e])=>15&e[0])).map((([t,l])=>{const s=l[1]||t;return n.set(s,t),512&l[0]&&e.P.push([t,s]),s}))}}return t},Q=t=>{G(t,"connectedCallback")},X=(t,e={})=>{const n=[],l=e.exclude||[],s=c.customElements,o=i.head,a=o.querySelector("meta[charset]"),d=i.createElement("style"),h=[];let p,y=!0;Object.assign(r,e),r.l=new URL(e.resourcesUrl||"./",i.baseURI).href,t.map((t=>t[1].map((e=>{const o={t:e[0],h:e[1],W:e[2],H:e[3]};o.W=e[2],o.H=e[3],o.P=[],o.A={};const c=o.h,i=class extends HTMLElement{constructor(t){super(t),et(t=this,o),1&o.t&&t.attachShadow({mode:"open"})}connectedCallback(){p&&(clearTimeout(p),p=null),y?h.push(this):r.jmp((()=>(t=>{if(0==(1&r.t)){const e=Z(t),n=e.M,l=()=>{};if(1&e.t)f(t,e,n.H),Q(e.i);else{e.t|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){N(e,e.C=n);break}}n.W&&Object.entries(n.W).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n,l,s)=>{if(0==(32&e.t)){{if(e.t|=32,(s=ot(n)).then){const t=()=>{};s=await s,t()}s.isProxied||(n.A=s.watchers,K(s,n,2),s.isProxied=!0);const t=()=>{};e.t|=8;try{new s(e)}catch(t){lt(t)}e.t&=-9,e.t|=128,t(),Q(e.i)}if(s.style){let t=s.style;const e=m(n);if(!ct.has(e)){const l=()=>{};((t,e,n)=>{let l=ct.get(t);u&&n?(l=l||new CSSStyleSheet,l.replace(e)):l=e,ct.set(t,l)})(e,t,!!(1&n.t)),l()}}}const o=e.C,c=()=>R(e,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(0,e,n)}l()}})(this)))}disconnectedCallback(){r.jmp((()=>(()=>{if(0==(1&r.t)){const t=Z(this),e=t.i;t.o&&(t.o.map((t=>t())),t.o=void 0),G(e,"disconnectedCallback")}})()))}componentOnReady(){return Z(this).N}};o.R=t[0],l.includes(c)||s.get(c)||(n.push(c),s.define(c,K(i,o,1)))})))),d.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",d.setAttribute("data-styles",""),o.insertBefore(d,a?a.nextSibling:o.firstChild),y=!1,h.length?h.map((t=>t.connectedCallback())):r.jmp((()=>p=setTimeout(B,30)))},Y=new WeakMap,Z=t=>Y.get(t),tt=(t,e)=>Y.set(e.i=t,e),et=(t,e)=>{const n={t:0,k:t,M:e,F:new Map};return n.N=new Promise((t=>n.T=t)),t["s-p"]=[],t["s-rc"]=[],f(t,n,e.H),Y.set(t,n)},nt=(t,e)=>e in t,lt=(t,e)=>(0,console.error)(t,e),st=new Map,ot=t=>{const e=t.h.replace(/-/g,"_"),n=t.R,l=st.get(n);return l?l[e]:import(`./${n}.entry.js`).then((t=>(st.set(n,t),t[e])),lt)},ct=new Map,it=[],rt=[],at=(t,e)=>n=>{t.push(n),o||(o=!0,e&&4&r.t?dt(ft):r.raf(ft))},ut=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){lt(t)}t.length=0},ft=()=>{ut(it),ut(rt),(o=it.length>0)&&r.raf(ft)},dt=t=>a().then(t),ht=at(rt,!0);export{t as E,v as H,D as a,X as b,F as c,z as f,A as g,b as h,a as p,tt as r}
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as o,H as r,g as e}from"./p-3469b71a.js";import{d as a}from"./p-166970f3.js";let n=class{constructor(o){t(this,o),this.modalClosed=i(this,"modalClosed",7),this.position="bottom",this.sourceImage=null,this.widgetScrollbar=!1,this.campaigns="",this.state="idle"}bodyClickListener(t){const{clientX:i,clientY:o}=t,r=this.getSidebarRectangle();r&&(i>=r.left&&i<=r.right&&o>=r.top&&o<=r.bottom||(this.state="closed"))}getClassMap(){return{[this.position]:!0,[this.state]:!0}}getSidebarRectangle(){var t;return null===(t=this.el.shadowRoot.querySelector("aside"))||void 0===t?void 0:t.getBoundingClientRect()}render(){return o(r,{class:this.getClassMap()},o("aside",{class:"sidebar",part:"body",onAnimationEnd:t=>this.handleAnimationEnd(t)},o("header",{class:{"contains-source-img":this.isSourceImageValid()},part:"sidebar-header"},this.isSourceImageValid()?this.renderSourceImage():null,o("span",{class:"title",part:"title"},this.sidebarTitle),o("button",{class:"close-sidebar",onClick:()=>this.state="closed"},o(a,null))),o("main",{part:"sidebar-content"},o("vviinn-vpr-widget",{exportparts:"brand, currency, deeplink, image, image-link, price-amount, price-container, price-outdated, price-prefix, price-regular, price-sale, title: product-title",token:this.token,productId:this.productId,imageWidth:300,blockTitle:"",mode:"bottom"===this.position?"continuity":"grid",useCarousel:"bottom"===this.position,onRecommendationsLoaded:()=>this.state="open",showScroll:this.widgetScrollbar,campaigns:this.campaigns}))))}renderSourceImage(){return o("img",{class:"source-image",part:"source-image",src:this.sourceImage})}isSourceImageValid(){var t;return(null===(t=this.sourceImage)||void 0===t?void 0:t.length)>0}handleAnimationEnd({animationName:t}){t.includes("slideOut")&&this.modalClosed.emit()}get el(){return e(this)}};n.style=":host{--vviinn-carousel-columns:0;box-sizing:border-box;display:block;display:flex;height:100vh;left:0;position:fixed;top:0;transition:background 0.1s ease-in-out;width:100vw}:host(.open){background:rgba(0, 0, 0, 0.2)}:host(.bottom){flex-direction:column;justify-content:end}:host(.right){flex-direction:row;justify-content:flex-end}header{position:relative;text-align:center;padding:32px}header.contains-source-img{display:grid;justify-items:center;grid-gap:12px}img.source-image{width:64px;height:64px;border-radius:50%;box-shadow:0px 2px 4px rgba(0, 0, 0, 0.15);padding:8px}:host(.right) header{box-shadow:0px 2px 6px rgba(0, 0, 0, 0.1)}main{padding:0 24px}:host(.right) main{overflow:auto}.sidebar{background:white;box-sizing:border-box;display:flex;flex-direction:column}:host(.bottom.idle) .sidebar,:host(.bottom.closed) .sidebar{transform:translateY(100%)}:host(.bottom.closed) .sidebar{-webkit-animation-name:slideOutFromBottom;animation-name:slideOutFromBottom;-webkit-animation-duration:0.5s;animation-duration:0.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}:host(.bottom.open) .sidebar{-webkit-animation-name:slideInFromBottom;animation-name:slideInFromBottom;-webkit-animation-duration:0.5s;animation-duration:0.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}:host(.right.idle) .sidebar{transform:translateX(100%)}:host(.right.closed) .sidebar{-webkit-animation-name:slideOutFromRight;animation-name:slideOutFromRight;-webkit-animation-duration:0.5s;animation-duration:0.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}:host(.right.open) .sidebar{-webkit-animation-name:slideInFromRight;animation-name:slideInFromRight;-webkit-animation-duration:0.5s;animation-duration:0.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}:host(.right) .sidebar{max-width:480px}:host(.right) vviinn-vpr-widget::part(recommendations-grid){display:grid;grid-template-columns:repeat(2, 1fr);grid-gap:24px}:host(.right) vviinn-vpr-widget{overflow:auto}:host(.right) vviinn-vpr-widget::part(image){border:none}.title{font-style:normal;font-weight:500;font-size:28px;line-height:40px;text-align:center;color:#000000}vviinn-vpr-widget::part(title),vviinn-vpr-widget::part(brand),vviinn-vpr-widget::part(type){text-align:left}vviinn-vpr-widget::part(price-container){align-self:start}.close-sidebar{background:transparent;border:none;cursor:pointer;margin:0;padding:0;position:absolute;right:24px;top:24px}@-webkit-keyframes slideInFromBottom{from{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideInFromBottom{from{transform:translateY(100%)}to{transform:translateY(0)}}@-webkit-keyframes slideOutFromBottom{from{transform:translateY(0)}to{transform:translateY(100%)}}@keyframes slideOutFromBottom{from{transform:translateY(0)}to{transform:translateY(100%)}}@-webkit-keyframes slideInFromRight{from{transform:translateX(100%)}to{transform:translateX(0)}}@keyframes slideInFromRight{from{transform:translateX(100%)}to{transform:translateX(0)}}@-webkit-keyframes slideOutFromRight{from{transform:translateX(0)}to{transform:translateX(100%)}}@keyframes slideOutFromRight{from{transform:translateX(0)}to{transform:translateX(100%)}}";export{n as vviinn_recommendations_sidebar}
@@ -1,15 +0,0 @@
1
- import{E as t}from"./p-3469b71a.js";
2
- /*! *****************************************************************************
3
- Copyright (c) Microsoft Corporation.
4
-
5
- Permission to use, copy, modify, and/or distribute this software for any
6
- purpose with or without fee is hereby granted.
7
-
8
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
- PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */var n=function(t,r){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])})(t,r)};function r(t,r){function i(){this.constructor=t}n(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}var i,e,o,u,s,c=function(){return(c=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++)for(var e in n=arguments[r])Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);return t}).apply(this,arguments)};function a(t){var n="function"==typeof Symbol&&Symbol.iterator,r=n&&t[n],i=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function f(t,n){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var i,e,o=r.call(t),u=[];try{for(;(void 0===n||n-- >0)&&!(i=o.next()).done;)u.push(i.value)}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return u}function h(){for(var t=[],n=0;n<arguments.length;n++)t=t.concat(f(arguments[n]));return t}function v(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}!function(t){t.Ok="ok",t.Exited="exited",t.Crashed="crashed",t.Abnormal="abnormal"}(i||(i={})),function(t){t.Ok="ok",t.Errored="errored",t.Crashed="crashed"}(e||(e={})),function(t){t.Fatal="fatal",t.Error="error",t.Warning="warning",t.Log="log",t.Info="info",t.Debug="debug",t.Critical="critical"}(o||(o={})),function(t){t.fromString=function(n){switch(n){case"debug":return t.Debug;case"info":return t.Info;case"warn":case"warning":return t.Warning;case"error":return t.Error;case"fatal":return t.Fatal;case"critical":return t.Critical;case"log":default:return t.Log}}}(o||(o={})),function(t){t.Unknown="unknown",t.Skipped="skipped",t.Success="success",t.RateLimit="rate_limit",t.Invalid="invalid",t.Failed="failed"}(u||(u={})),function(t){t.fromHttpCode=function(n){return n>=200&&n<300?t.Success:429===n?t.RateLimit:n>=400&&n<500?t.Invalid:n>=500?t.Failed:t.Unknown}}(u||(u={})),function(t){t.BeforeSend="before_send",t.EventProcessor="event_processor",t.NetworkError="network_error",t.QueueOverflow="queue_overflow",t.RateLimitBackoff="ratelimit_backoff",t.SampleRate="sample_rate"}(s||(s={}));var l={};function d(){return v()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:l}function p(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return k(t,Error)}}function y(t){return"[object ErrorEvent]"===Object.prototype.toString.call(t)}function m(t){return"[object DOMError]"===Object.prototype.toString.call(t)}function b(t){return"[object String]"===Object.prototype.toString.call(t)}function w(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function g(t){return"[object Object]"===Object.prototype.toString.call(t)}function E(t){return"undefined"!=typeof Event&&k(t,Event)}function j(t){return"undefined"!=typeof Element&&k(t,Element)}function x(t){return!(!t||!t.then||"function"!=typeof t.then)}function k(t,n){try{return t instanceof n}catch(t){return!1}}function O(t,n){try{for(var r=t,i=[],e=0,o=0,u=void 0;r&&e++<5&&!("html"===(u=_(r,n))||e>1&&o+3*i.length+u.length>=80);)i.push(u),o+=u.length,r=r.parentNode;return i.reverse().join(" > ")}catch(t){return"<unknown>"}}function _(t,n){var r,i,e,o,u,s,c,a=t,f=[];if(!a||!a.tagName)return"";f.push(a.tagName.toLowerCase());var h=(null===(r=n)||void 0===r?void 0:r.length)?n.filter((function(t){return a.getAttribute(t)})).map((function(t){return[t,a.getAttribute(t)]})):null;if(null===(i=h)||void 0===i?void 0:i.length)h.forEach((function(t){f.push("["+t[0]+'="'+t[1]+'"]')}));else if(a.id&&f.push("#"+a.id),(e=a.className)&&b(e))for(o=e.split(/\s+/),c=0;c<o.length;c++)f.push("."+o[c]);var v=["type","name","title","alt"];for(c=0;c<v.length;c++)(s=a.getAttribute(u=v[c]))&&f.push("["+u+'="'+s+'"]');return f.join("")}var S=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){return t.__proto__=n,t}:function(t,n){for(var r in n)Object.prototype.hasOwnProperty.call(t,r)||(t[r]=n[r]);return t}),D=function(t){function n(n){var r=this.constructor,i=t.call(this,n)||this;return i.message=n,i.name=r.prototype.constructor.name,S(i,r.prototype),i}return r(n,t),n}(Error),T=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,N=function(){function t(t){"string"==typeof t?this._fromString(t):this._fromComponents(t),this._validate()}return t.prototype.toString=function(t){void 0===t&&(t=!1);var n=this,r=n.path,i=n.pass,e=n.port;return n.protocol+"://"+n.publicKey+(t&&i?":"+i:"")+"@"+n.host+(e?":"+e:"")+"/"+(r?r+"/":r)+n.projectId},t.prototype._fromString=function(t){var n=T.exec(t);if(!n)throw new D("Invalid Dsn");var r=f(n.slice(1),6),i=r[0],e=r[1],o=r[2],u=void 0===o?"":o,s=r[3],c=r[4],a=void 0===c?"":c,h="",v=r[5],l=v.split("/");if(l.length>1&&(h=l.slice(0,-1).join("/"),v=l.pop()),v){var d=v.match(/^\d+/);d&&(v=d[0])}this._fromComponents({host:s,pass:u,path:h,projectId:v,port:a,protocol:i,publicKey:e})},t.prototype._fromComponents=function(t){"user"in t&&!("publicKey"in t)&&(t.publicKey=t.user),this.user=t.publicKey||"",this.protocol=t.protocol,this.publicKey=t.publicKey||"",this.pass=t.pass||"",this.host=t.host,this.port=t.port||"",this.path=t.path||"",this.projectId=t.projectId},t.prototype._validate=function(){var t=this;if(["protocol","publicKey","host","projectId"].forEach((function(n){if(!t[n])throw new D("Invalid Dsn: "+n+" missing")})),!this.projectId.match(/^\d+$/))throw new D("Invalid Dsn: Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new D("Invalid Dsn: Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new D("Invalid Dsn: Invalid port "+this.port)},t}(),R=d(),I="Sentry Logger ";function q(t){var n=d();if(!("console"in n))return t();var r=n.console,i={};["debug","info","warn","error","log","assert"].forEach((function(t){t in n.console&&r[t].__sentry_original__&&(i[t]=r[t],r[t]=r[t].__sentry_original__)}));var e=t();return Object.keys(i).forEach((function(t){r[t]=i[t]})),e}var A=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&q((function(){R.console.log(I+"[Log]: "+t.join(" "))}))},t.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&q((function(){R.console.warn(I+"[Warn]: "+t.join(" "))}))},t.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&q((function(){R.console.error(I+"[Error]: "+t.join(" "))}))},t}();R.__SENTRY__=R.__SENTRY__||{};var C=R.__SENTRY__.logger||(R.__SENTRY__.logger=new A),M=function(){function t(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return t.prototype.memoize=function(t){if(this._hasWeakSet)return!!this._inner.has(t)||(this._inner.add(t),!1);for(var n=0;n<this._inner.length;n++)if(this._inner[n]===t)return!0;return this._inner.push(t),!1},t.prototype.unmemoize=function(t){if(this._hasWeakSet)this._inner.delete(t);else for(var n=0;n<this._inner.length;n++)if(this._inner[n]===t){this._inner.splice(n,1);break}},t}();function L(t){try{return t&&"function"==typeof t&&t.name||"<anonymous>"}catch(t){return"<anonymous>"}}function U(t,n){return void 0===n&&(n=0),"string"!=typeof t||0===n||t.length<=n?t:t.substr(0,n)+"..."}function H(t,n){if(!Array.isArray(t))return"";for(var r=[],i=0;i<t.length;i++){var e=t[i];try{r.push(e+"")}catch(t){r.push("[value cannot be serialized]")}}return r.join(n)}function P(t,n){return!!b(t)&&(function(t){return"[object RegExp]"===Object.prototype.toString.call(t)}(n)?n.test(t):"string"==typeof n&&-1!==t.indexOf(n))}function J(t,n,r){if(n in t){var i=t[n],e=r(i);if("function"==typeof e)try{e.prototype=e.prototype||{},Object.defineProperties(e,{__sentry_original__:{enumerable:!1,value:i}})}catch(t){}t[n]=e}}function F(t){if(p(t)){var n=t,r={message:n.message,name:n.name,stack:n.stack};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);return r}if(E(t)){var e=t,o={};o.type=e.type;try{o.target=j(e.target)?O(e.target):Object.prototype.toString.call(e.target)}catch(t){o.target="<unknown>"}try{o.currentTarget=j(e.currentTarget)?O(e.currentTarget):Object.prototype.toString.call(e.currentTarget)}catch(t){o.currentTarget="<unknown>"}for(var u in"undefined"!=typeof CustomEvent&&k(t,CustomEvent)&&(o.detail=e.detail),e)Object.prototype.hasOwnProperty.call(e,u)&&(o[u]=e[u]);return o}return t}function X(t,n,r){void 0===n&&(n=3),void 0===r&&(r=102400);var i=B(t,n);return function(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}(i)>r?X(t,n-1,r):i}function $(t,n){return"domain"===n&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":function(t){return g(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}(t)?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+L(t)+"]":"symbol"==typeof t?"["+t+"]":"bigint"==typeof t?"[BigInt: "+t+"]":t}function W(t,n,r,i){if(void 0===r&&(r=1/0),void 0===i&&(i=new M),0===r)return function(t){var n=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===n)return"[Object]";if("[object Array]"===n)return"[Array]";var r=$(t);return w(r)?r:n}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var e=$(n,t);if(w(e))return e;var o=F(n),u=Array.isArray(n)?[]:{};if(i.memoize(n))return"[Circular ~]";for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(u[s]=W(s,o[s],r-1,i));return i.unmemoize(n),u}function B(t,n){try{return JSON.parse(JSON.stringify(t,(function(t,r){return W(t,r,n)})))}catch(t){return"**non-serializable**"}}function G(t,n){void 0===n&&(n=40);var r=Object.keys(F(t));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=n)return U(r[0],n);for(var i=r.length;i>0;i--){var e=r.slice(0,i).join(", ");if(!(e.length>n))return i===r.length?e:U(e,n)}return""}function z(t){var n,r;if(g(t)){var i=t,e={};try{for(var o=a(Object.keys(i)),u=o.next();!u.done;u=o.next()){var s=u.value;void 0!==i[s]&&(e[s]=z(i[s]))}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return e}return Array.isArray(t)?t.map(z):t}function K(){if(!("fetch"in d()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function V(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(""+t)}function Q(){if(!K())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}var Y,Z,tt,nt=d(),rt={},it={};function et(t){t&&"string"==typeof t.type&&"function"==typeof t.callback&&(rt[t.type]=rt[t.type]||[],rt[t.type].push(t.callback),function(t){if(!it[t])switch(it[t]=!0,t){case"console":"console"in nt&&["debug","info","warn","error","log","assert"].forEach((function(t){t in nt.console&&J(nt.console,t,(function(n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];ot("console",{args:r,level:t}),n&&Function.prototype.apply.call(n,nt.console,r)}}))}));break;case"dom":!function(){if("document"in nt){var t=ot.bind(null,"dom"),n=ct(t,!0);nt.document.addEventListener("click",n,!1),nt.document.addEventListener("keypress",n,!1),["EventTarget","Node"].forEach((function(n){var r=nt[n]&&nt[n].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(J(r,"addEventListener",(function(n){return function(r,i,e){if("click"===r||"keypress"==r)try{var o=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},u=o[r]=o[r]||{refCount:0};if(!u.handler){var s=ct(t);u.handler=s,n.call(this,r,s,e)}u.refCount+=1}catch(t){}return n.call(this,r,i,e)}})),J(r,"removeEventListener",(function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{var e=this.__sentry_instrumentation_handlers__||{},o=e[n];o&&(o.refCount-=1,o.refCount<=0&&(t.call(this,n,o.handler,i),o.handler=void 0,delete e[n]),0===Object.keys(e).length&&delete this.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,n,r,i)}})))}))}}();break;case"xhr":!function(){if("XMLHttpRequest"in nt){var t=[],n=[],r=XMLHttpRequest.prototype;J(r,"open",(function(r){return function(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];var o=this,u=i[1];o.__sentry_xhr__={method:b(i[0])?i[0].toUpperCase():i[0],url:i[1]},b(u)&&"POST"===o.__sentry_xhr__.method&&u.match(/sentry_key/)&&(o.__sentry_own_request__=!0);var s=function(){if(4===o.readyState){try{o.__sentry_xhr__&&(o.__sentry_xhr__.status_code=o.status)}catch(t){}try{var r=t.indexOf(o);if(-1!==r){t.splice(r);var e=n.splice(r)[0];o.__sentry_xhr__&&void 0!==e[0]&&(o.__sentry_xhr__.body=e[0])}}catch(t){}ot("xhr",{args:i,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:o})}};return"onreadystatechange"in o&&"function"==typeof o.onreadystatechange?J(o,"onreadystatechange",(function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return s(),t.apply(o,n)}})):o.addEventListener("readystatechange",s),r.apply(o,i)}})),J(r,"send",(function(r){return function(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];return t.push(this),n.push(i),ot("xhr",{args:i,startTimestamp:Date.now(),xhr:this}),r.apply(this,i)}}))}}();break;case"fetch":(function(){if(!K())return!1;var t=d();if(V(t.fetch))return!0;var n=!1,r=t.document;if(r&&"function"==typeof r.createElement)try{var i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i),i.contentWindow&&i.contentWindow.fetch&&(n=V(i.contentWindow.fetch)),r.head.removeChild(i)}catch(t){C.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return n})()&&J(nt,"fetch",(function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i={args:n,fetchData:{method:ut(n),url:st(n)},startTimestamp:Date.now()};return ot("fetch",c({},i)),t.apply(nt,n).then((function(t){return ot("fetch",c(c({},i),{endTimestamp:Date.now(),response:t})),t}),(function(t){throw ot("fetch",c(c({},i),{endTimestamp:Date.now(),error:t})),t}))}}));break;case"history":!function(){if(function(){var t=d(),n=t.chrome;return!(n&&n.app&&n.app.runtime||!("history"in t)||!t.history.pushState||!t.history.replaceState)}()){var t=nt.onpopstate;nt.onpopstate=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=nt.location.href,e=Y;if(Y=i,ot("history",{from:e,to:i}),t)try{return t.apply(this,n)}catch(t){}},J(nt.history,"pushState",n),J(nt.history,"replaceState",n)}function n(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=n.length>2?n[2]:void 0;if(i){var e=Y,o=i+"";Y=o,ot("history",{from:e,to:o})}return t.apply(this,n)}}}();break;case"error":ft=nt.onerror,nt.onerror=function(t,n,r,i,e){return ot("error",{column:i,error:e,line:r,msg:t,url:n}),!!ft&&ft.apply(this,arguments)};break;case"unhandledrejection":ht=nt.onunhandledrejection,nt.onunhandledrejection=function(t){return ot("unhandledrejection",t),!ht||ht.apply(this,arguments)};break;default:C.warn("unknown instrumentation type:",t)}}(t.type))}function ot(t,n){var r,i;if(t&&rt[t])try{for(var e=a(rt[t]||[]),o=e.next();!o.done;o=e.next()){var u=o.value;try{u(n)}catch(n){C.error("Error while triggering instrumentation handler.\nType: "+t+"\nName: "+L(u)+"\nError: "+n)}}}catch(t){r={error:t}}finally{try{o&&!o.done&&(i=e.return)&&i.call(e)}finally{if(r)throw r.error}}}function ut(t){return void 0===t&&(t=[]),"Request"in nt&&k(t[0],Request)&&t[0].method?(t[0].method+"").toUpperCase():t[1]&&t[1].method?(t[1].method+"").toUpperCase():"GET"}function st(t){return void 0===t&&(t=[]),"string"==typeof t[0]?t[0]:"Request"in nt&&k(t[0],Request)?t[0].url:t[0]+""}function ct(t,n){return void 0===n&&(n=!1),function(r){if(r&&tt!==r&&!function(t){if("keypress"!==t.type)return!1;try{var n=t.target;if(!n||!n.tagName)return!0;if("INPUT"===n.tagName||"TEXTAREA"===n.tagName||n.isContentEditable)return!1}catch(t){}return!0}(r)){var i="keypress"===r.type?"input":r.type;(void 0===Z||function(t,n){if(!t)return!0;if(t.type!==n.type)return!0;try{if(t.target!==n.target)return!0}catch(t){}return!1}(tt,r))&&(t({event:r,name:i,global:n}),tt=r),clearTimeout(Z),Z=nt.setTimeout((function(){Z=void 0}),1e3)}}}var at,ft=null,ht=null;function vt(){var t=d(),n=t.crypto||t.msCrypto;if(void 0!==n&&n.getRandomValues){var r=new Uint16Array(8);n.getRandomValues(r),r[3]=4095&r[3]|16384,r[4]=16383&r[4]|32768;var i=function(t){for(var n=t.toString(16);n.length<4;)n="0"+n;return n};return i(r[0])+i(r[1])+i(r[2])+i(r[3])+i(r[4])+i(r[5])+i(r[6])+i(r[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=16*Math.random()|0;return("x"===t?n:3&n|8).toString(16)}))}function lt(t){if(!t)return{};var n=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);return n?{host:n[4],path:n[5],protocol:n[2],relative:n[5]+(n[6]||"")+(n[8]||"")}:{}}function dt(t){if(t.message)return t.message;if(t.exception&&t.exception.values&&t.exception.values[0]){var n=t.exception.values[0];return n.type&&n.value?n.type+": "+n.value:n.type||n.value||t.event_id||"<unknown>"}return t.event_id||"<unknown>"}function pt(t,n,r){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].value=t.exception.values[0].value||n||"",t.exception.values[0].type=t.exception.values[0].type||r||"Error"}function yt(t,n){var r;if(t.exception&&t.exception.values){var i=t.exception.values[0],e=i.mechanism;if(i.mechanism=c(c(c({},{type:"generic",handled:!0}),e),n),n&&"data"in n){var o=c(c({},null===(r=e)||void 0===r?void 0:r.data),n.data);i.mechanism.data=o}}}function mt(t){var n;if(null===(n=t)||void 0===n?void 0:n.__sentry_captured__)return!0;try{Object.defineProperty(t,"__sentry_captured__",{value:!0})}catch(t){}return!1}!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(at||(at={}));var bt=function(){function t(t){var n=this;this._state=at.PENDING,this._handlers=[],this._resolve=function(t){n._setResult(at.RESOLVED,t)},this._reject=function(t){n._setResult(at.REJECTED,t)},this._setResult=function(t,r){n._state===at.PENDING&&(x(r)?r.then(n._resolve,n._reject):(n._state=t,n._value=r,n._executeHandlers()))},this._attachHandler=function(t){n._handlers=n._handlers.concat(t),n._executeHandlers()},this._executeHandlers=function(){if(n._state!==at.PENDING){var t=n._handlers.slice();n._handlers=[],t.forEach((function(t){t.done||(n._state===at.RESOLVED&&t.onfulfilled&&t.onfulfilled(n._value),n._state===at.REJECTED&&t.onrejected&&t.onrejected(n._value),t.done=!0)}))}};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}return t.resolve=function(n){return new t((function(t){t(n)}))},t.reject=function(n){return new t((function(t,r){r(n)}))},t.all=function(n){return new t((function(r,i){if(Array.isArray(n))if(0!==n.length){var e=n.length,o=[];n.forEach((function(n,u){t.resolve(n).then((function(t){o[u]=t,0==(e-=1)&&r(o)})).then(null,i)}))}else r([]);else i(new TypeError("Promise.all requires an array as input."))}))},t.prototype.then=function(n,r){var i=this;return new t((function(t,e){i._attachHandler({done:!1,onfulfilled:function(r){if(n)try{return void t(n(r))}catch(t){return void e(t)}else t(r)},onrejected:function(n){if(r)try{return void t(r(n))}catch(t){return void e(t)}else e(n)}})}))},t.prototype.catch=function(t){return this.then((function(t){return t}),t)},t.prototype.finally=function(n){var r=this;return new t((function(t,i){var e,o;return r.then((function(t){o=!1,e=t,n&&n()}),(function(t){o=!0,e=t,n&&n()})).then((function(){o?i(e):t(e)}))}))},t.prototype.toString=function(){return"[object SyncPromise]"},t}(),wt=function(){function t(t){this._limit=t,this._buffer=[]}return t.prototype.isReady=function(){return void 0===this._limit||this.length()<this._limit},t.prototype.add=function(t){var n=this;if(!this.isReady())return bt.reject(new D("Not adding Promise due to buffer limit reached."));var r=t();return-1===this._buffer.indexOf(r)&&this._buffer.push(r),r.then((function(){return n.remove(r)})).then(null,(function(){return n.remove(r).then(null,(function(){}))})),r},t.prototype.remove=function(t){return this._buffer.splice(this._buffer.indexOf(t),1)[0]},t.prototype.length=function(){return this._buffer.length},t.prototype.drain=function(t){var n=this;return new bt((function(r){var i=setTimeout((function(){t&&t>0&&r(!1)}),t);bt.all(n._buffer).then((function(){clearTimeout(i),r(!0)})).then(null,(function(){r(!0)}))}))},t}(),gt={nowSeconds:function(){return Date.now()/1e3}},Et=v()?function(){try{return module.require("perf_hooks").performance}catch(t){return}}():function(){var t=d().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),jt=void 0===Et?gt:{nowSeconds:function(){return(Et.timeOrigin+Et.now())/1e3}},xt=gt.nowSeconds.bind(gt),kt=jt.nowSeconds.bind(jt);!function(){var t=d().performance;if(t&&t.now)t.now(),Date.now()}();var Ot=function(){function t(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return t.clone=function(n){var r=new t;return n&&(r._breadcrumbs=h(n._breadcrumbs),r._tags=c({},n._tags),r._extra=c({},n._extra),r._contexts=c({},n._contexts),r._user=n._user,r._level=n._level,r._span=n._span,r._session=n._session,r._transactionName=n._transactionName,r._fingerprint=n._fingerprint,r._eventProcessors=h(n._eventProcessors),r._requestSession=n._requestSession),r},t.prototype.addScopeListener=function(t){this._scopeListeners.push(t)},t.prototype.addEventProcessor=function(t){return this._eventProcessors.push(t),this},t.prototype.setUser=function(t){return this._user=t||{},this._session&&this._session.update({user:t}),this._notifyScopeListeners(),this},t.prototype.getUser=function(){return this._user},t.prototype.getRequestSession=function(){return this._requestSession},t.prototype.setRequestSession=function(t){return this._requestSession=t,this},t.prototype.setTags=function(t){return this._tags=c(c({},this._tags),t),this._notifyScopeListeners(),this},t.prototype.setTag=function(t,n){var r;return this._tags=c(c({},this._tags),((r={})[t]=n,r)),this._notifyScopeListeners(),this},t.prototype.setExtras=function(t){return this._extra=c(c({},this._extra),t),this._notifyScopeListeners(),this},t.prototype.setExtra=function(t,n){var r;return this._extra=c(c({},this._extra),((r={})[t]=n,r)),this._notifyScopeListeners(),this},t.prototype.setFingerprint=function(t){return this._fingerprint=t,this._notifyScopeListeners(),this},t.prototype.setLevel=function(t){return this._level=t,this._notifyScopeListeners(),this},t.prototype.setTransactionName=function(t){return this._transactionName=t,this._notifyScopeListeners(),this},t.prototype.setTransaction=function(t){return this.setTransactionName(t)},t.prototype.setContext=function(t,n){var r;return null===n?delete this._contexts[t]:this._contexts=c(c({},this._contexts),((r={})[t]=n,r)),this._notifyScopeListeners(),this},t.prototype.setSpan=function(t){return this._span=t,this._notifyScopeListeners(),this},t.prototype.getSpan=function(){return this._span},t.prototype.getTransaction=function(){var t,n,r,i,e=this.getSpan();return(null===(t=e)||void 0===t?void 0:t.transaction)?null===(n=e)||void 0===n?void 0:n.transaction:(null===(i=null===(r=e)||void 0===r?void 0:r.spanRecorder)||void 0===i?void 0:i.spans[0])?e.spanRecorder.spans[0]:void 0},t.prototype.setSession=function(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this},t.prototype.getSession=function(){return this._session},t.prototype.update=function(n){if(!n)return this;if("function"==typeof n){var r=n(this);return r instanceof t?r:this}return n instanceof t?(this._tags=c(c({},this._tags),n._tags),this._extra=c(c({},this._extra),n._extra),this._contexts=c(c({},this._contexts),n._contexts),n._user&&Object.keys(n._user).length&&(this._user=n._user),n._level&&(this._level=n._level),n._fingerprint&&(this._fingerprint=n._fingerprint),n._requestSession&&(this._requestSession=n._requestSession)):g(n)&&(n=n,this._tags=c(c({},this._tags),n.tags),this._extra=c(c({},this._extra),n.extra),this._contexts=c(c({},this._contexts),n.contexts),n.user&&(this._user=n.user),n.level&&(this._level=n.level),n.fingerprint&&(this._fingerprint=n.fingerprint),n.requestSession&&(this._requestSession=n.requestSession)),this},t.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},t.prototype.addBreadcrumb=function(t,n){var r="number"==typeof n?Math.min(n,100):100;if(r<=0)return this;var i=c({timestamp:xt()},t);return this._breadcrumbs=h(this._breadcrumbs,[i]).slice(-r),this._notifyScopeListeners(),this},t.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},t.prototype.applyToEvent=function(t,n){var r;if(this._extra&&Object.keys(this._extra).length&&(t.extra=c(c({},this._extra),t.extra)),this._tags&&Object.keys(this._tags).length&&(t.tags=c(c({},this._tags),t.tags)),this._user&&Object.keys(this._user).length&&(t.user=c(c({},this._user),t.user)),this._contexts&&Object.keys(this._contexts).length&&(t.contexts=c(c({},this._contexts),t.contexts)),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts=c({trace:this._span.getTraceContext()},t.contexts);var i=null===(r=this._span.transaction)||void 0===r?void 0:r.name;i&&(t.tags=c({transaction:i},t.tags))}return this._applyFingerprint(t),t.breadcrumbs=h(t.breadcrumbs||[],this._breadcrumbs),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,this._notifyEventProcessors(h(_t(),this._eventProcessors),t,n)},t.prototype._notifyEventProcessors=function(t,n,r,i){var e=this;return void 0===i&&(i=0),new bt((function(o,u){var s=t[i];if(null===n||"function"!=typeof s)o(n);else{var a=s(c({},n),r);x(a)?a.then((function(n){return e._notifyEventProcessors(t,n,r,i+1).then(o)})).then(null,u):e._notifyEventProcessors(t,a,r,i+1).then(o).then(null,u)}}))},t.prototype._notifyScopeListeners=function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(n){n(t)})),this._notifyingListeners=!1)},t.prototype._applyFingerprint=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t}();function _t(){var t=d();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function St(t){_t().push(t)}var Dt=function(){function t(t){this.errors=0,this.sid=vt(),this.duration=0,this.status=i.Ok,this.init=!0,this.ignoreDuration=!1;var n=kt();this.timestamp=n,this.started=n,t&&this.update(t)}return t.prototype.update=function(t){if(void 0===t&&(t={}),t.user&&(!this.ipAddress&&t.user.ip_address&&(this.ipAddress=t.user.ip_address),this.did||t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||kt(),t.ignoreDuration&&(this.ignoreDuration=t.ignoreDuration),t.sid&&(this.sid=32===t.sid.length?t.sid:vt()),void 0!==t.init&&(this.init=t.init),!this.did&&t.did&&(this.did=""+t.did),"number"==typeof t.started&&(this.started=t.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof t.duration)this.duration=t.duration;else{var n=this.timestamp-this.started;this.duration=n>=0?n:0}t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),!this.ipAddress&&t.ipAddress&&(this.ipAddress=t.ipAddress),!this.userAgent&&t.userAgent&&(this.userAgent=t.userAgent),"number"==typeof t.errors&&(this.errors=t.errors),t.status&&(this.status=t.status)},t.prototype.close=function(t){t?this.update({status:t}):this.status===i.Ok?this.update({status:i.Exited}):this.update()},t.prototype.toJSON=function(){return z({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:z({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},t}(),Tt=function(){function t(t,n,r){void 0===n&&(n=new Ot),void 0===r&&(r=4),this._version=r,this._stack=[{}],this.getStackTop().scope=n,t&&this.bindClient(t)}return t.prototype.isOlderThan=function(t){return this._version<t},t.prototype.bindClient=function(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()},t.prototype.pushScope=function(){var t=Ot.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t},t.prototype.popScope=function(){return!(this.getStack().length<=1||!this.getStack().pop())},t.prototype.withScope=function(t){var n=this.pushScope();try{t(n)}finally{this.popScope()}},t.prototype.getClient=function(){return this.getStackTop().client},t.prototype.getScope=function(){return this.getStackTop().scope},t.prototype.getStack=function(){return this._stack},t.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},t.prototype.captureException=function(t,n){var r=this._lastEventId=vt(),i=n;if(!n){var e=void 0;try{throw Error("Sentry syntheticException")}catch(t){e=t}i={originalException:t,syntheticException:e}}return this._invokeClient("captureException",t,c(c({},i),{event_id:r})),r},t.prototype.captureMessage=function(t,n,r){var i=this._lastEventId=vt(),e=r;if(!r){var o=void 0;try{throw Error(t)}catch(t){o=t}e={originalException:t,syntheticException:o}}return this._invokeClient("captureMessage",t,n,c(c({},e),{event_id:i})),i},t.prototype.captureEvent=function(t,n){var r=vt();return"transaction"!==t.type&&(this._lastEventId=r),this._invokeClient("captureEvent",t,c(c({},n),{event_id:r})),r},t.prototype.lastEventId=function(){return this._lastEventId},t.prototype.addBreadcrumb=function(t,n){var r=this.getStackTop(),i=r.scope,e=r.client;if(i&&e){var o=e.getOptions&&e.getOptions()||{},u=o.beforeBreadcrumb,s=void 0===u?null:u,a=o.maxBreadcrumbs,f=void 0===a?100:a;if(!(f<=0)){var h=xt(),v=c({timestamp:h},t),l=s?q((function(){return s(v,n)})):v;null!==l&&i.addBreadcrumb(l,f)}}},t.prototype.setUser=function(t){var n=this.getScope();n&&n.setUser(t)},t.prototype.setTags=function(t){var n=this.getScope();n&&n.setTags(t)},t.prototype.setExtras=function(t){var n=this.getScope();n&&n.setExtras(t)},t.prototype.setTag=function(t,n){var r=this.getScope();r&&r.setTag(t,n)},t.prototype.setExtra=function(t,n){var r=this.getScope();r&&r.setExtra(t,n)},t.prototype.setContext=function(t,n){var r=this.getScope();r&&r.setContext(t,n)},t.prototype.configureScope=function(t){var n=this.getStackTop(),r=n.scope;r&&n.client&&t(r)},t.prototype.run=function(t){var n=Rt(this);try{t(this)}finally{Rt(n)}},t.prototype.getIntegration=function(t){var n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch(n){return C.warn("Cannot retrieve integration "+t.id+" from the current Hub"),null}},t.prototype.startSpan=function(t){return this._callExtensionMethod("startSpan",t)},t.prototype.startTransaction=function(t,n){return this._callExtensionMethod("startTransaction",t,n)},t.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},t.prototype.captureSession=function(t){if(void 0===t&&(t=!1),t)return this.endSession();this._sendSessionUpdate()},t.prototype.endSession=function(){var t,n,r,i,e;null===(r=null===(n=null===(t=this.getStackTop())||void 0===t?void 0:t.scope)||void 0===n?void 0:n.getSession())||void 0===r||r.close(),this._sendSessionUpdate(),null===(e=null===(i=this.getStackTop())||void 0===i?void 0:i.scope)||void 0===e||e.setSession()},t.prototype.startSession=function(t){var n=this.getStackTop(),r=n.scope,e=n.client,o=e&&e.getOptions()||{},u=o.release,s=o.environment,a=(d().navigator||{}).userAgent,f=new Dt(c(c(c({release:u,environment:s},r&&{user:r.getUser()}),a&&{userAgent:a}),t));if(r){var h=r.getSession&&r.getSession();h&&h.status===i.Ok&&h.update({status:i.Exited}),this.endSession(),r.setSession(f)}return f},t.prototype._sendSessionUpdate=function(){var t=this.getStackTop(),n=t.scope,r=t.client;if(n){var i=n.getSession&&n.getSession();i&&r&&r.captureSession&&r.captureSession(i)}},t.prototype._invokeClient=function(t){for(var n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var e=this.getStackTop(),o=e.scope,u=e.client;u&&u[t]&&(n=u)[t].apply(n,h(r,[o]))},t.prototype._callExtensionMethod=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=Nt(),e=i.__SENTRY__;if(e&&e.extensions&&"function"==typeof e.extensions[t])return e.extensions[t].apply(this,n);C.warn("Extension method "+t+" couldn't be found, doing nothing.")},t}();function Nt(){var t=d();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function Rt(t){var n=Nt(),r=At(n);return Ct(n,t),r}function It(){var t=Nt();return qt(t)&&!At(t).isOlderThan(4)||Ct(t,new Tt),v()?function(t){var n,r,i;try{var e=null===(i=null===(r=null===(n=Nt().__SENTRY__)||void 0===n?void 0:n.extensions)||void 0===r?void 0:r.domain)||void 0===i?void 0:i.active;if(!e)return At(t);if(!qt(e)||At(e).isOlderThan(4)){var o=At(t).getStackTop();Ct(e,new Tt(o.client,Ot.clone(o.scope)))}return At(e)}catch(n){return At(t)}}(t):At(t)}function qt(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function At(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub||(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=new Tt),t.__SENTRY__.hub}function Ct(t,n){return!!t&&(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=n,!0)}function Mt(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=It();if(i&&i[t])return i[t].apply(i,h(n));throw Error("No hub defined or "+t+" was not found on the hub, please open a bug report.")}function Lt(t,n){var r;try{throw Error("Sentry syntheticException")}catch(t){r=t}return Mt("captureException",t,{captureContext:n,originalException:t,syntheticException:r})}function Ut(t){Mt("withScope",t)}var Ht=function(){function t(t,n,r){void 0===n&&(n={}),this.dsn=t,this._dsnObject=new N(t),this.metadata=n,this._tunnel=r}return t.prototype.getDsn=function(){return this._dsnObject},t.prototype.forceEnvelope=function(){return!!this._tunnel},t.prototype.getBaseApiEndpoint=function(){var t=this.getDsn();return(t.protocol?t.protocol+":":"")+"//"+t.host+(t.port?":"+t.port:"")+(t.path?"/"+t.path:"")+"/api/"},t.prototype.getStoreEndpoint=function(){return this._getIngestEndpoint("store")},t.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this._encodedAuth()},t.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this.forceEnvelope()?this._tunnel:this._getEnvelopeEndpoint()+"?"+this._encodedAuth()},t.prototype.getStoreEndpointPath=function(){var t=this.getDsn();return(t.path?"/"+t.path:"")+"/api/"+t.projectId+"/store/"},t.prototype.getRequestHeaders=function(t,n){var r=this.getDsn(),i=["Sentry sentry_version=7"];return i.push("sentry_client="+t+"/"+n),i.push("sentry_key="+r.publicKey),r.pass&&i.push("sentry_secret="+r.pass),{"Content-Type":"application/json","X-Sentry-Auth":i.join(", ")}},t.prototype.getReportDialogEndpoint=function(t){void 0===t&&(t={});var n=this.getDsn(),r=this.getBaseApiEndpoint()+"embed/error-page/",i=[];for(var e in i.push("dsn="+n),t)if("dsn"!==e)if("user"===e){if(!t.user)continue;t.user.name&&i.push("name="+encodeURIComponent(t.user.name)),t.user.email&&i.push("email="+encodeURIComponent(t.user.email))}else i.push(encodeURIComponent(e)+"="+encodeURIComponent(t[e]));return i.length?r+"?"+i.join("&"):r},t.prototype._getEnvelopeEndpoint=function(){return this._getIngestEndpoint("envelope")},t.prototype._getIngestEndpoint=function(t){return this._tunnel?this._tunnel:""+this.getBaseApiEndpoint()+this.getDsn().projectId+"/"+t+"/"},t.prototype._encodedAuth=function(){return function(t){return Object.keys(t).map((function(n){return encodeURIComponent(n)+"="+encodeURIComponent(t[n])})).join("&")}({sentry_key:this.getDsn().publicKey,sentry_version:"7"})},t}(),Pt=[];function Jt(t){return t.reduce((function(t,n){return t.every((function(t){return n.name!==t.name}))&&t.push(n),t}),[])}var Ft="Not capturing exception because it's already been captured.",Xt=function(){function t(t,n){this._integrations={},this._numProcessing=0,this._backend=new t(n),this._options=n,n.dsn&&(this._dsn=new N(n.dsn))}return t.prototype.captureException=function(t,n,r){var i=this;if(!mt(t)){var e=n&&n.event_id;return this._process(this._getBackend().eventFromException(t,n).then((function(t){return i._captureEvent(t,n,r)})).then((function(t){e=t}))),e}C.log(Ft)},t.prototype.captureMessage=function(t,n,r,i){var e=this,o=r&&r.event_id,u=w(t)?this._getBackend().eventFromMessage(t+"",n,r):this._getBackend().eventFromException(t,r);return this._process(u.then((function(t){return e._captureEvent(t,r,i)})).then((function(t){o=t}))),o},t.prototype.captureEvent=function(t,n,r){var i;if(!(null===(i=n)||void 0===i?void 0:i.originalException)||!mt(n.originalException)){var e=n&&n.event_id;return this._process(this._captureEvent(t,n,r).then((function(t){e=t}))),e}C.log(Ft)},t.prototype.captureSession=function(t){this._isEnabled()?"string"!=typeof t.release?C.warn("Discarded session because of missing or non-string release"):(this._sendSession(t),t.update({init:!1})):C.warn("SDK not enabled, will not capture session.")},t.prototype.getDsn=function(){return this._dsn},t.prototype.getOptions=function(){return this._options},t.prototype.getTransport=function(){return this._getBackend().getTransport()},t.prototype.flush=function(t){var n=this;return this._isClientDoneProcessing(t).then((function(r){return n.getTransport().close(t).then((function(t){return r&&t}))}))},t.prototype.close=function(t){var n=this;return this.flush(t).then((function(t){return n.getOptions().enabled=!1,t}))},t.prototype.setupIntegrations=function(){this._isEnabled()&&!this._integrations.initialized&&(this._integrations=function(t){var n={};return function(t){var n=t.defaultIntegrations&&h(t.defaultIntegrations)||[],r=t.integrations,i=h(Jt(n));Array.isArray(r)?i=h(i.filter((function(t){return r.every((function(n){return n.name!==t.name}))})),Jt(r)):"function"==typeof r&&(i=r(i),i=Array.isArray(i)?i:[i]);var e=i.map((function(t){return t.name})),o="Debug";return-1!==e.indexOf(o)&&i.push.apply(i,h(i.splice(e.indexOf(o),1))),i}(t).forEach((function(t){n[t.name]=t,function(t){-1===Pt.indexOf(t.name)&&(t.setupOnce(St,It),Pt.push(t.name),C.log("Integration installed: "+t.name))}(t)})),Object.defineProperty(n,"initialized",{value:!0}),n}(this._options))},t.prototype.getIntegration=function(t){try{return this._integrations[t.id]||null}catch(n){return C.warn("Cannot retrieve integration "+t.id+" from the current Client"),null}},t.prototype._updateSessionFromEvent=function(t,n){var r,e,o=!1,u=!1,s=n.exception&&n.exception.values;if(s){u=!0;try{for(var f=a(s),h=f.next();!h.done;h=f.next()){var v=h.value.mechanism;if(v&&!1===v.handled){o=!0;break}}}catch(t){r={error:t}}finally{try{h&&!h.done&&(e=f.return)&&e.call(f)}finally{if(r)throw r.error}}}var l=t.status===i.Ok;(l&&0===t.errors||l&&o)&&(t.update(c(c({},o&&{status:i.Crashed}),{errors:t.errors||Number(u||o)})),this.captureSession(t))},t.prototype._sendSession=function(t){this._getBackend().sendSession(t)},t.prototype._isClientDoneProcessing=function(t){var n=this;return new bt((function(r){var i=0,e=setInterval((function(){0==n._numProcessing?(clearInterval(e),r(!0)):(i+=1,t&&i>=t&&(clearInterval(e),r(!1)))}),1)}))},t.prototype._getBackend=function(){return this._backend},t.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},t.prototype._prepareEvent=function(t,n,r){var i=this,e=this.getOptions().normalizeDepth,o=void 0===e?3:e,u=c(c({},t),{event_id:t.event_id||(r&&r.event_id?r.event_id:vt()),timestamp:t.timestamp||xt()});this._applyClientOptions(u),this._applyIntegrationsMetadata(u);var s=n;r&&r.captureContext&&(s=Ot.clone(s).update(r.captureContext));var a=bt.resolve(u);return s&&(a=s.applyToEvent(u,r)),a.then((function(t){return"number"==typeof o&&o>0?i._normalizeEvent(t,o):t}))},t.prototype._normalizeEvent=function(t,n){if(!t)return null;var r=c(c(c(c(c({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((function(t){return c(c({},t),t.data&&{data:B(t.data,n)})}))}),t.user&&{user:B(t.user,n)}),t.contexts&&{contexts:B(t.contexts,n)}),t.extra&&{extra:B(t.extra,n)});t.contexts&&t.contexts.trace&&(r.contexts.trace=t.contexts.trace);var i=this.getOptions()._experiments;return(void 0===i?{}:i).ensureNoCircularStructures?B(r):r},t.prototype._applyClientOptions=function(t){var n=this.getOptions(),r=n.release,i=n.dist,e=n.maxValueLength,o=void 0===e?250:e;"environment"in t||(t.environment="environment"in n?n.environment:"production"),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==i&&(t.dist=i),t.message&&(t.message=U(t.message,o));var u=t.exception&&t.exception.values&&t.exception.values[0];u&&u.value&&(u.value=U(u.value,o));var s=t.request;s&&s.url&&(s.url=U(s.url,o))},t.prototype._applyIntegrationsMetadata=function(t){var n=Object.keys(this._integrations);n.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=h(t.sdk.integrations||[],n))},t.prototype._sendEvent=function(t){this._getBackend().sendEvent(t)},t.prototype._captureEvent=function(t,n,r){return this._processEvent(t,n,r).then((function(t){return t.event_id}),(function(t){C.error(t)}))},t.prototype._processEvent=function(t,n,r){var i,e,o=this,u=this.getOptions(),c=u.beforeSend,a=u.sampleRate,f=this.getTransport();if(!this._isEnabled())return bt.reject(new D("SDK not enabled, will not capture event."));var h="transaction"===t.type;return!h&&"number"==typeof a&&Math.random()>a?(null===(e=(i=f).recordLostEvent)||void 0===e||e.call(i,s.SampleRate,"event"),bt.reject(new D("Discarding event because it's not included in the random sample (sampling rate = "+a+")"))):this._prepareEvent(t,r,n).then((function(r){var i,e;if(null===r)throw null===(e=(i=f).recordLostEvent)||void 0===e||e.call(i,s.EventProcessor,t.type||"event"),new D("An event processor returned null, will not send event.");if(n&&n.data&&!0===n.data.__sentry__||h||!c)return r;var u=c(r,n);return o._ensureBeforeSendRv(u)})).then((function(n){var i,e;if(null===n)throw null===(e=(i=f).recordLostEvent)||void 0===e||e.call(i,s.BeforeSend,t.type||"event"),new D("`beforeSend` returned `null`, will not send event.");var u=r&&r.getSession&&r.getSession();return!h&&u&&o._updateSessionFromEvent(u,n),o._sendEvent(n),n})).then(null,(function(t){if(t instanceof D)throw t;throw o.captureException(t,{data:{__sentry__:!0},originalException:t}),new D("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)}))},t.prototype._process=function(t){var n=this;this._numProcessing+=1,t.then((function(t){return n._numProcessing-=1,t}),(function(t){return n._numProcessing-=1,t}))},t.prototype._ensureBeforeSendRv=function(t){var n="`beforeSend` method has to return `null` or a valid event.";if(x(t))return t.then((function(t){if(!g(t)&&null!==t)throw new D(n);return t}),(function(t){throw new D("beforeSend rejected with "+t)}));if(!g(t)&&null!==t)throw new D(n);return t},t}(),$t=function(){function t(){}return t.prototype.sendEvent=function(){return bt.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:u.Skipped})},t.prototype.close=function(){return bt.resolve(!0)},t}(),Wt=function(){function t(t){this._options=t,this._options.dsn||C.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return t.prototype.eventFromException=function(){throw new D("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(){throw new D("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(t){this._transport.sendEvent(t).then(null,(function(t){C.error("Error while sending event: "+t)}))},t.prototype.sendSession=function(t){this._transport.sendSession?this._transport.sendSession(t).then(null,(function(t){C.error("Error while sending session: "+t)})):C.warn("Dropping session because custom transport doesn't implement sendSession")},t.prototype.getTransport=function(){return this._transport},t.prototype._setupTransport=function(){return new $t},t}();function Bt(t){if(t.metadata&&t.metadata.sdk){var n=t.metadata.sdk;return{name:n.name,version:n.version}}}function Gt(t,n){return n?(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||n.name,t.sdk.version=t.sdk.version||n.version,t.sdk.integrations=h(t.sdk.integrations||[],n.integrations||[]),t.sdk.packages=h(t.sdk.packages||[],n.packages||[]),t):t}function zt(t,n){var r=Bt(n),i="aggregates"in t?"sessions":"session";return{body:JSON.stringify(c(c({sent_at:(new Date).toISOString()},r&&{sdk:r}),n.forceEnvelope()&&{dsn:""+n.getDsn()}))+"\n"+JSON.stringify({type:i})+"\n"+JSON.stringify(t),type:i,url:n.getEnvelopeEndpointWithUrlEncodedAuth()}}function Kt(t,n){var r=Bt(n),i=t.type||"event",e="transaction"===i||n.forceEnvelope(),o=t.debug_meta||{},u=o.transactionSampling,s=function(t,n){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&n.indexOf(i)<0&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var e=0;for(i=Object.getOwnPropertySymbols(t);e<i.length;e++)n.indexOf(i[e])<0&&Object.prototype.propertyIsEnumerable.call(t,i[e])&&(r[i[e]]=t[i[e]])}return r}(o,["transactionSampling"]),a=u||{},f=a.method,h=a.rate;0===Object.keys(s).length?delete t.debug_meta:t.debug_meta=s;var v={body:JSON.stringify(r?Gt(t,n.metadata.sdk):t),type:i,url:e?n.getEnvelopeEndpointWithUrlEncodedAuth():n.getStoreEndpointWithUrlEncodedAuth()};if(e){var l=JSON.stringify(c(c({event_id:t.event_id,sent_at:(new Date).toISOString()},r&&{sdk:r}),n.forceEnvelope()&&{dsn:""+n.getDsn()})),d=JSON.stringify({type:i,sample_rates:[{id:f,rate:h}]});v.body=l+"\n"+d+"\n"+v.body}return v}var Vt,Qt=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){Vt=Function.prototype.toString,Function.prototype.toString=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this.__sentry_original__||this;return Vt.apply(r,t)}},t.id="FunctionToString",t}(),Yt=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Zt=function(){function t(n){void 0===n&&(n={}),this._options=n,this.name=t.id}return t.prototype.setupOnce=function(){St((function(n){var r=It();if(!r)return n;var i=r.getIntegration(t);if(i){var e=r.getClient(),o=e?e.getOptions():{},u="function"==typeof i._mergeOptions?i._mergeOptions(o):{};return"function"!=typeof i._shouldDropEvent?n:i._shouldDropEvent(n,u)?null:n}return n}))},t.prototype._shouldDropEvent=function(t,n){return this._isSentryError(t,n)?(C.warn("Event dropped due to being internal Sentry Error.\nEvent: "+dt(t)),!0):this._isIgnoredError(t,n)?(C.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+dt(t)),!0):this._isDeniedUrl(t,n)?(C.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+dt(t)+".\nUrl: "+this._getEventFilterUrl(t)),!0):!this._isAllowedUrl(t,n)&&(C.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+dt(t)+".\nUrl: "+this._getEventFilterUrl(t)),!0)},t.prototype._isSentryError=function(t,n){if(!n.ignoreInternal)return!1;try{return t&&t.exception&&t.exception.values&&t.exception.values[0]&&"SentryError"===t.exception.values[0].type||!1}catch(t){return!1}},t.prototype._isIgnoredError=function(t,n){return!(!n.ignoreErrors||!n.ignoreErrors.length)&&this._getPossibleEventMessages(t).some((function(t){return n.ignoreErrors.some((function(n){return P(t,n)}))}))},t.prototype._isDeniedUrl=function(t,n){if(!n.denyUrls||!n.denyUrls.length)return!1;var r=this._getEventFilterUrl(t);return!!r&&n.denyUrls.some((function(t){return P(r,t)}))},t.prototype._isAllowedUrl=function(t,n){if(!n.allowUrls||!n.allowUrls.length)return!0;var r=this._getEventFilterUrl(t);return!r||n.allowUrls.some((function(t){return P(r,t)}))},t.prototype._mergeOptions=function(t){return void 0===t&&(t={}),{allowUrls:h(this._options.whitelistUrls||[],this._options.allowUrls||[],t.whitelistUrls||[],t.allowUrls||[]),denyUrls:h(this._options.blacklistUrls||[],this._options.denyUrls||[],t.blacklistUrls||[],t.denyUrls||[]),ignoreErrors:h(this._options.ignoreErrors||[],t.ignoreErrors||[],Yt),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal}},t.prototype._getPossibleEventMessages=function(t){if(t.message)return[t.message];if(t.exception)try{var n=t.exception.values&&t.exception.values[0]||{},r=n.type,i=n.value,e=void 0===i?"":i;return[""+e,(void 0===r?"":r)+": "+e]}catch(n){return C.error("Cannot extract message for event "+dt(t)),[]}return[]},t.prototype._getLastValidUrl=function(t){var n,r;void 0===t&&(t=[]);for(var i=t.length-1;i>=0;i--){var e=t[i];if("<anonymous>"!==(null===(n=e)||void 0===n?void 0:n.filename)&&"[native code]"!==(null===(r=e)||void 0===r?void 0:r.filename))return e.filename||null}return null},t.prototype._getEventFilterUrl=function(t){try{return t.stacktrace?this._getLastValidUrl(t.stacktrace.frames):t.exception?this._getLastValidUrl(t.exception.values&&t.exception.values[0].stacktrace&&t.exception.values[0].stacktrace.frames):null}catch(n){return C.error("Cannot extract url for event "+dt(t)),null}},t.id="InboundFilters",t}(),tn=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,nn=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,rn=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,en=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,on=/\((\S*)(?::(\d+))(?::(\d+))\)/,un=/Minified React error #\d+;/i;function sn(t){var n=null,r=0;t&&("number"==typeof t.framesToPop?r=t.framesToPop:un.test(t.message)&&(r=1));try{if(n=function(t){if(!t||!t.stacktrace)return null;for(var n,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,i=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,e=t.stacktrace.split("\n"),o=[],u=0;u<e.length;u+=2){var s=null;(n=r.exec(e[u]))?s={url:n[2],func:n[3],args:[],line:+n[1],column:null}:(n=i.exec(e[u]))&&(s={url:n[6],func:n[3]||n[4],args:n[5]?n[5].split(","):[],line:+n[1],column:+n[2]}),s&&(!s.func&&s.line&&(s.func="?"),o.push(s))}return o.length?{message:fn(t),name:t.name,stack:o}:null}(t))return an(n,r)}catch(t){}try{if(n=function(t){var n,r;if(!t||!t.stack)return null;for(var i,e,o,u=[],s=t.stack.split("\n"),c=0;c<s.length;++c){if(e=tn.exec(s[c])){var a=e[2]&&0===e[2].indexOf("native");e[2]&&0===e[2].indexOf("eval")&&(i=on.exec(e[2]))&&(e[2]=i[1],e[3]=i[2],e[4]=i[3]);var h=e[2]&&0===e[2].indexOf("address at ")?e[2].substr(11):e[2];o={url:h=(n=f(cn(e[1]||"?",h),2))[1],func:n[0],args:a?[e[2]]:[],line:e[3]?+e[3]:null,column:e[4]?+e[4]:null}}else if(e=rn.exec(s[c]))o={url:e[2],func:e[1]||"?",args:[],line:+e[3],column:e[4]?+e[4]:null};else{if(!(e=nn.exec(s[c])))continue;e[3]&&e[3].indexOf(" > eval")>-1&&(i=en.exec(e[3]))?(e[1]=e[1]||"eval",e[3]=i[1],e[4]=i[2],e[5]=""):0!==c||e[5]||void 0===t.columnNumber||(u[0].column=t.columnNumber+1),o={url:h=(r=f(cn(e[1]||"?",h=e[3]),2))[1],func:r[0],args:e[2]?e[2].split(","):[],line:e[4]?+e[4]:null,column:e[5]?+e[5]:null}}!o.func&&o.line&&(o.func="?"),u.push(o)}return u.length?{message:fn(t),name:t.name,stack:u}:null}(t))return an(n,r)}catch(t){}return{message:fn(t),name:t&&t.name,stack:[],failed:!0}}var cn=function(t,n){var r=-1!==t.indexOf("safari-extension"),i=-1!==t.indexOf("safari-web-extension");return r||i?[-1!==t.indexOf("@")?t.split("@")[0]:"?",r?"safari-extension:"+n:"safari-web-extension:"+n]:[t,n]};function an(t,n){try{return c(c({},t),{stack:t.stack.slice(n)})}catch(n){return t}}function fn(t){var n=t&&t.message;return n?n.error&&"string"==typeof n.error.message?n.error.message:n:"No error message"}function hn(t){var n=ln(t.stack),r={type:t.name,value:t.message};return n&&n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function vn(t){return{exception:{values:[hn(t)]}}}function ln(t){if(!t||!t.length)return[];var n=t,r=n[0].func||"",i=n[n.length-1].func||"";return-1===r.indexOf("captureMessage")&&-1===r.indexOf("captureException")||(n=n.slice(1)),-1!==i.indexOf("sentryWrapped")&&(n=n.slice(0,-1)),n.slice(0,50).map((function(t){return{colno:null===t.column?void 0:t.column,filename:t.url||n[0].url,function:t.func||"?",in_app:!0,lineno:null===t.line?void 0:t.line}})).reverse()}function dn(t,n,r){var i;if(void 0===r&&(r={}),y(t)&&t.error)return vn(sn(t=t.error));if(m(t)||function(t){return"[object DOMException]"===Object.prototype.toString.call(t)}(t)){var e=t;if("stack"in t)i=vn(sn(t));else{var o=e.name||(m(e)?"DOMError":"DOMException"),u=e.message?o+": "+e.message:o;pt(i=pn(u,n,r),u)}return"code"in e&&(i.tags=c(c({},i.tags),{"DOMException.code":""+e.code})),i}return p(t)?i=vn(sn(t)):g(t)||E(t)?(yt(i=function(t,n,r){var i={exception:{values:[{type:E(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:"Non-Error "+(r?"promise rejection":"exception")+" captured with keys: "+G(t)}]},extra:{__serialized__:X(t)}};if(n){var e=ln(sn(n).stack);i.stacktrace={frames:e}}return i}(t,n,r.rejection),{synthetic:!0}),i):(pt(i=pn(t,n,r),""+t,void 0),yt(i,{synthetic:!0}),i)}function pn(t,n,r){void 0===r&&(r={});var i={message:t};if(r.attachStacktrace&&n){var e=ln(sn(n).stack);i.stacktrace={frames:e}}return i}var yn,mn=d();function bn(){var t,n;if(yn)return yn;if(V(mn.fetch))return yn=mn.fetch.bind(mn);var r=mn.document,i=mn.fetch;if("function"==typeof(null===(t=r)||void 0===t?void 0:t.createElement))try{var e=r.createElement("iframe");e.hidden=!0,r.head.appendChild(e),(null===(n=e.contentWindow)||void 0===n?void 0:n.fetch)&&(i=e.contentWindow.fetch),r.head.removeChild(e)}catch(t){C.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return yn=i.bind(mn)}var wn={event:"error",transaction:"transaction",session:"session",attachment:"attachment"},gn=d(),En=function(){function t(t){var n=this;this.options=t,this._buffer=new wt(30),this._rateLimits={},this._outcomes={},this._api=new Ht(t.dsn,t._metadata,t.tunnel),this.url=this._api.getStoreEndpointWithUrlEncodedAuth(),this.options.sendClientReports&&gn.document&&gn.document.addEventListener("visibilitychange",(function(){"hidden"===gn.document.visibilityState&&n._flushOutcomes()}))}return t.prototype.sendEvent=function(){throw new D("Transport Class has to implement `sendEvent` method")},t.prototype.close=function(t){return this._buffer.drain(t)},t.prototype.recordLostEvent=function(t,n){var r;if(this.options.sendClientReports){var i=wn[n]+":"+t;C.log("Adding outcome: "+i),this._outcomes[i]=(null!=(r=this._outcomes[i])?r:0)+1}},t.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var t=this._outcomes;if(this._outcomes={},Object.keys(t).length){C.log("Flushing outcomes:\n"+JSON.stringify(t,null,2));var n=this._api.getEnvelopeEndpointWithUrlEncodedAuth(),r=JSON.stringify(c({},this.options.tunnel&&{dsn:""+this._api.getDsn()}))+"\n"+JSON.stringify({type:"client_report"})+"\n"+JSON.stringify({timestamp:xt(),discarded_events:Object.keys(t).map((function(n){var r=f(n.split(":"),2);return{reason:r[1],category:r[0],quantity:t[n]}}))});try{!function(t,n){"[object Navigator]"===Object.prototype.toString.call(mn&&mn.navigator)&&"function"==typeof mn.navigator.sendBeacon?mn.navigator.sendBeacon.bind(mn.navigator)(t,n):K()&&function(t){t.then(null,(function(t){console.error(t)}))}(bn()(t,{body:n,method:"POST",credentials:"omit",keepalive:!0}))}(n,r)}catch(t){C.error(t)}}else C.log("No outcomes to flush")}},t.prototype._handleResponse=function(t){var n=t.requestType,r=t.response,i=t.headers,e=t.resolve,o=t.reject,s=u.fromHttpCode(r.status);this._handleRateLimit(i)&&C.warn("Too many "+n+" requests, backing off until: "+this._disabledUntil(n)),s!==u.Success?o(r):e({status:s})},t.prototype._disabledUntil=function(t){return this._rateLimits[wn[t]]||this._rateLimits.all},t.prototype._isRateLimited=function(t){return this._disabledUntil(t)>new Date(Date.now())},t.prototype._handleRateLimit=function(t){var n,r,i,e,o=Date.now(),u=t["x-sentry-rate-limits"],s=t["retry-after"];if(u){try{for(var c=a(u.trim().split(",")),f=c.next();!f.done;f=c.next()){var h=f.value.split(":",2),v=parseInt(h[0],10),l=1e3*(isNaN(v)?60:v);try{for(var d=(i=void 0,a(h[1].split(";"))),p=d.next();!p.done;p=d.next())this._rateLimits[p.value||"all"]=new Date(o+l)}catch(t){i={error:t}}finally{try{p&&!p.done&&(e=d.return)&&e.call(d)}finally{if(i)throw i.error}}}}catch(t){n={error:t}}finally{try{f&&!f.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}return!0}return!!s&&(this._rateLimits.all=new Date(o+function(t,n){if(!n)return 6e4;var r=parseInt(""+n,10);if(!isNaN(r))return 1e3*r;var i=Date.parse(""+n);return isNaN(i)?6e4:i-t}(o,s)),!0)},t}(),jn=function(t){function n(n,r){void 0===r&&(r=bn());var i=t.call(this,n)||this;return i._fetch=r,i}return r(n,t),n.prototype.sendEvent=function(t){return this._sendRequest(Kt(t,this._api),t)},n.prototype.sendSession=function(t){return this._sendRequest(zt(t,this._api),t)},n.prototype._sendRequest=function(t,n){var r=this;if(this._isRateLimited(t.type))return this.recordLostEvent(s.RateLimitBackoff,t.type),Promise.reject({event:n,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429});var i={body:t.body,method:"POST",referrerPolicy:Q()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(i,this.options.fetchParameters),void 0!==this.options.headers&&(i.headers=this.options.headers),this._buffer.add((function(){return new bt((function(n,e){r._fetch(t.url,i).then((function(i){var o={"x-sentry-rate-limits":i.headers.get("X-Sentry-Rate-Limits"),"retry-after":i.headers.get("Retry-After")};r._handleResponse({requestType:t.type,response:i,headers:o,resolve:n,reject:e})})).catch(e)}))})).then(void 0,(function(n){throw r.recordLostEvent(n instanceof D?s.QueueOverflow:s.NetworkError,t.type),n}))},n}(En),xn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n.prototype.sendEvent=function(t){return this._sendRequest(Kt(t,this._api),t)},n.prototype.sendSession=function(t){return this._sendRequest(zt(t,this._api),t)},n.prototype._sendRequest=function(t,n){var r=this;return this._isRateLimited(t.type)?(this.recordLostEvent(s.RateLimitBackoff,t.type),Promise.reject({event:n,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429})):this._buffer.add((function(){return new bt((function(n,i){var e=new XMLHttpRequest;for(var o in e.onreadystatechange=function(){if(4===e.readyState){var o={"x-sentry-rate-limits":e.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":e.getResponseHeader("Retry-After")};r._handleResponse({requestType:t.type,response:e,headers:o,resolve:n,reject:i})}},e.open("POST",t.url),r.options.headers)Object.prototype.hasOwnProperty.call(r.options.headers,o)&&e.setRequestHeader(o,r.options.headers[o]);e.send(t.body)}))})).then(void 0,(function(n){throw r.recordLostEvent(n instanceof D?s.QueueOverflow:s.NetworkError,t.type),n}))},n}(En),kn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n.prototype.eventFromException=function(t,n){return function(t,n,r){var i=dn(n,r&&r.syntheticException||void 0,{attachStacktrace:t.attachStacktrace});return yt(i),i.level=o.Error,r&&r.event_id&&(i.event_id=r.event_id),bt.resolve(i)}(this._options,t,n)},n.prototype.eventFromMessage=function(t,n,r){return void 0===n&&(n=o.Info),function(t,n,r,i){void 0===r&&(r=o.Info);var e=pn(n,i&&i.syntheticException||void 0,{attachStacktrace:t.attachStacktrace});return e.level=r,i&&i.event_id&&(e.event_id=i.event_id),bt.resolve(e)}(this._options,t,n,r)},n.prototype._setupTransport=function(){if(!this._options.dsn)return t.prototype._setupTransport.call(this);var n=c(c({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata});return this._options.transport?new this._options.transport(n):K()?new jn(n):new xn(n)},n}(Wt),On=d(),_n=0;function Sn(){return _n>0}function Dn(){_n+=1,setTimeout((function(){_n-=1}))}function Tn(t,n,r){if(void 0===n&&(n={}),"function"!=typeof t)return t;try{if(t.__sentry__)return t;if(t.__sentry_wrapped__)return t.__sentry_wrapped__}catch(n){return t}var i=function(){var i=Array.prototype.slice.call(arguments);try{r&&"function"==typeof r&&r.apply(this,arguments);var e=i.map((function(t){return Tn(t,n)}));return t.handleEvent?t.handleEvent.apply(this,e):t.apply(this,e)}catch(t){throw Dn(),Ut((function(r){r.addEventProcessor((function(t){var r=c({},t);return n.mechanism&&(pt(r,void 0,void 0),yt(r,n.mechanism)),r.extra=c(c({},r.extra),{arguments:i}),r})),Lt(t)})),t}};try{for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(i[e]=t[e])}catch(t){}t.prototype=t.prototype||{},i.prototype=t.prototype,Object.defineProperty(t,"__sentry_wrapped__",{enumerable:!1,value:i}),Object.defineProperties(i,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:t}});try{Object.defineProperty(i,"name",{get:function(){return t.name}})}catch(t){}return i}var Nn=function(){function t(n){this.name=t.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=c({onerror:!0,onunhandledrejection:!0},n)}return t.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(C.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(C.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},t.prototype._installGlobalOnErrorHandler=function(){var n=this;this._onErrorHandlerInstalled||(et({callback:function(r){var i=r.error,e=It(),o=e.getIntegration(t),u=i&&!0===i.__sentry_own_request__;if(o&&!Sn()&&!u){var s=e.getClient(),c=void 0===i&&b(r.msg)?n._eventFromIncompleteOnError(r.msg,r.url,r.line,r.column):n._enhanceEventWithInitialFrame(dn(i||r.msg,void 0,{attachStacktrace:s&&s.getOptions().attachStacktrace,rejection:!1}),r.url,r.line,r.column);yt(c,{handled:!1,type:"onerror"}),e.captureEvent(c,{originalException:i})}},type:"error"}),this._onErrorHandlerInstalled=!0)},t.prototype._installGlobalOnUnhandledRejectionHandler=function(){var n=this;this._onUnhandledRejectionHandlerInstalled||(et({callback:function(r){var i=r;try{"reason"in r?i=r.reason:"detail"in r&&"reason"in r.detail&&(i=r.detail.reason)}catch(t){}var e=It(),u=e.getIntegration(t),s=i&&!0===i.__sentry_own_request__;if(!u||Sn()||s)return!0;var c=e.getClient(),a=w(i)?n._eventFromRejectionWithPrimitive(i):dn(i,void 0,{attachStacktrace:c&&c.getOptions().attachStacktrace,rejection:!0});a.level=o.Error,yt(a,{handled:!1,type:"onunhandledrejection"}),e.captureEvent(a,{originalException:i})},type:"unhandledrejection"}),this._onUnhandledRejectionHandlerInstalled=!0)},t.prototype._eventFromIncompleteOnError=function(t,n,r,i){var e,o=y(t)?t.message:t,u=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return u&&(e=u[1],o=u[2]),this._enhanceEventWithInitialFrame({exception:{values:[{type:e||"Error",value:o}]}},n,r,i)},t.prototype._eventFromRejectionWithPrimitive=function(t){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+t}]}}},t.prototype._enhanceEventWithInitialFrame=function(t,n,r,i){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].stacktrace=t.exception.values[0].stacktrace||{},t.exception.values[0].stacktrace.frames=t.exception.values[0].stacktrace.frames||[];var e=isNaN(parseInt(i,10))?void 0:i,o=isNaN(parseInt(r,10))?void 0:r,u=b(n)&&n.length>0?n:function(){var t=d();try{return t.document.location.href}catch(t){return""}}();return 0===t.exception.values[0].stacktrace.frames.length&&t.exception.values[0].stacktrace.frames.push({colno:e,filename:u,function:"?",in_app:!0,lineno:o}),t},t.id="GlobalHandlers",t}(),Rn=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],In=function(){function t(n){this.name=t.id,this._options=c({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},n)}return t.prototype.setupOnce=function(){var t=d();this._options.setTimeout&&J(t,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&&J(t,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&J(t,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&"XMLHttpRequest"in t&&J(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget&&(Array.isArray(this._options.eventTarget)?this._options.eventTarget:Rn).forEach(this._wrapEventTarget.bind(this))},t.prototype._wrapTimeFunction=function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=n[0];return n[0]=Tn(i,{mechanism:{data:{function:L(t)},handled:!0,type:"instrument"}}),t.apply(this,n)}},t.prototype._wrapRAF=function(t){return function(n){return t.call(this,Tn(n,{mechanism:{data:{function:"requestAnimationFrame",handler:L(t)},handled:!0,type:"instrument"}}))}},t.prototype._wrapEventTarget=function(t){var n=d(),r=n[t]&&n[t].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(J(r,"addEventListener",(function(n){return function(r,i,e){try{"function"==typeof i.handleEvent&&(i.handleEvent=Tn(i.handleEvent.bind(i),{mechanism:{data:{function:"handleEvent",handler:L(i),target:t},handled:!0,type:"instrument"}}))}catch(t){}return n.call(this,r,Tn(i,{mechanism:{data:{function:"addEventListener",handler:L(i),target:t},handled:!0,type:"instrument"}}),e)}})),J(r,"removeEventListener",(function(t){return function(n,r,i){var e,o=r;try{var u=null===(e=o)||void 0===e?void 0:e.__sentry_wrapped__;u&&t.call(this,n,u,i)}catch(t){}return t.call(this,n,o,i)}})))},t.prototype._wrapXHR=function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=this,e=["onload","onerror","onprogress","onreadystatechange"];return e.forEach((function(t){t in i&&"function"==typeof i[t]&&J(i,t,(function(n){var r={mechanism:{data:{function:t,handler:L(n)},handled:!0,type:"instrument"}};return n.__sentry_original__&&(r.mechanism.data.handler=L(n.__sentry_original__)),Tn(n,r)}))})),t.apply(this,n)}},t.id="TryCatch",t}(),qn=function(){function t(n){this.name=t.id,this._options=c({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},n)}return t.prototype.addSentryBreadcrumb=function(t){this._options.sentry&&It().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:dt(t)},{event:t})},t.prototype.setupOnce=function(){var t=this;this._options.console&&et({callback:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t._consoleBreadcrumb.apply(t,h(n))},type:"console"}),this._options.dom&&et({callback:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t._domBreadcrumb.apply(t,h(n))},type:"dom"}),this._options.xhr&&et({callback:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t._xhrBreadcrumb.apply(t,h(n))},type:"xhr"}),this._options.fetch&&et({callback:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t._fetchBreadcrumb.apply(t,h(n))},type:"fetch"}),this._options.history&&et({callback:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t._historyBreadcrumb.apply(t,h(n))},type:"history"})},t.prototype._consoleBreadcrumb=function(t){var n={category:"console",data:{arguments:t.args,logger:"console"},level:o.fromString(t.level),message:H(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message="Assertion failed: "+(H(t.args.slice(1)," ")||"console.assert"),n.data.arguments=t.args.slice(1)}It().addBreadcrumb(n,{input:t.args,level:t.level})},t.prototype._domBreadcrumb=function(t){var n,r="object"==typeof this._options.dom?this._options.dom.serializeAttribute:void 0;"string"==typeof r&&(r=[r]);try{n=O(t.event.target?t.event.target:t.event,r)}catch(t){n="<unknown>"}0!==n.length&&It().addBreadcrumb({category:"ui."+t.name,message:n},{event:t.event,name:t.name,global:t.global})},t.prototype._xhrBreadcrumb=function(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;var n=t.xhr.__sentry_xhr__||{},r=n.method,i=n.url,e=n.status_code,o=n.body;It().addBreadcrumb({category:"xhr",data:{method:r,url:i,status_code:e},type:"http"},{xhr:t.xhr,input:o})}},t.prototype._fetchBreadcrumb=function(t){t.endTimestamp&&(t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method||(t.error?It().addBreadcrumb({category:"fetch",data:t.fetchData,level:o.Error,type:"http"},{data:t.error,input:t.args}):It().addBreadcrumb({category:"fetch",data:c(c({},t.fetchData),{status_code:t.response.status}),type:"http"},{input:t.args,response:t.response})))},t.prototype._historyBreadcrumb=function(t){var n=d(),r=t.from,i=t.to,e=lt(n.location.href),o=lt(r),u=lt(i);o.path||(o=e),e.protocol===u.protocol&&e.host===u.host&&(i=u.relative),e.protocol===o.protocol&&e.host===o.host&&(r=o.relative),It().addBreadcrumb({category:"navigation",data:{from:r,to:i}})},t.id="Breadcrumbs",t}(),An=function(){function t(n){void 0===n&&(n={}),this.name=t.id,this._key=n.key||"cause",this._limit=n.limit||5}return t.prototype.setupOnce=function(){St((function(n,r){var i=It().getIntegration(t);if(i){var e=i._handler&&i._handler.bind(i);return"function"==typeof e?e(n,r):n}return n}))},t.prototype._handler=function(t,n){if(!(t.exception&&t.exception.values&&n&&k(n.originalException,Error)))return t;var r=this._walkErrorTree(n.originalException,this._key);return t.exception.values=h(r,t.exception.values),t},t.prototype._walkErrorTree=function(t,n,r){if(void 0===r&&(r=[]),!k(t[n],Error)||r.length+1>=this._limit)return r;var i=hn(sn(t[n]));return this._walkErrorTree(t[n],n,h([i],r))},t.id="LinkedErrors",t}(),Cn=d(),Mn=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){St((function(n){var r,i,e;if(It().getIntegration(t)){if(!Cn.navigator&&!Cn.location&&!Cn.document)return n;var o=(null===(r=n.request)||void 0===r?void 0:r.url)||(null===(i=Cn.location)||void 0===i?void 0:i.href),u=(Cn.document||{}).referrer,s=(Cn.navigator||{}).userAgent,a=c(c(c({},null===(e=n.request)||void 0===e?void 0:e.headers),u&&{Referer:u}),s&&{"User-Agent":s}),f=c(c({},o&&{url:o}),{headers:a});return c(c({},n),{request:f})}return n}))},t.id="UserAgent",t}(),Ln=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(n,r){n((function(n){var i=r().getIntegration(t);if(i){try{if(i._shouldDropEvent(n,i._previousEvent))return C.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){return i._previousEvent=n}return i._previousEvent=n}return n}))},t.prototype._shouldDropEvent=function(t,n){return!(!n||!this._isSameMessageEvent(t,n)&&!this._isSameExceptionEvent(t,n))},t.prototype._isSameMessageEvent=function(t,n){var r=t.message,i=n.message;return!(!r&&!i||r&&!i||!r&&i||r!==i||!this._isSameFingerprint(t,n)||!this._isSameStacktrace(t,n))},t.prototype._getFramesFromEvent=function(t){var n=t.exception;if(n)try{return n.values[0].stacktrace.frames}catch(t){return}else if(t.stacktrace)return t.stacktrace.frames},t.prototype._isSameStacktrace=function(t,n){var r=this._getFramesFromEvent(t),i=this._getFramesFromEvent(n);if(!r&&!i)return!0;if(r&&!i||!r&&i)return!1;if((i=i).length!==(r=r).length)return!1;for(var e=0;e<i.length;e++){var o=i[e],u=r[e];if(o.filename!==u.filename||o.lineno!==u.lineno||o.colno!==u.colno||o.function!==u.function)return!1}return!0},t.prototype._getExceptionFromEvent=function(t){return t.exception&&t.exception.values&&t.exception.values[0]},t.prototype._isSameExceptionEvent=function(t,n){var r=this._getExceptionFromEvent(n),i=this._getExceptionFromEvent(t);return!!(r&&i&&r.type===i.type&&r.value===i.value&&this._isSameFingerprint(t,n)&&this._isSameStacktrace(t,n))},t.prototype._isSameFingerprint=function(t,n){var r=t.fingerprint,i=n.fingerprint;if(!r&&!i)return!0;if(r&&!i||!r&&i)return!1;r=r,i=i;try{return!(r.join("")!==i.join(""))}catch(t){return!1}},t.id="Dedupe",t}(),Un=function(t){function n(n){return void 0===n&&(n={}),n._metadata=n._metadata||{},n._metadata.sdk=n._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:"6.15.0"}],version:"6.15.0"},t.call(this,kn,n)||this}return r(n,t),n.prototype.showReportDialog=function(t){void 0===t&&(t={}),d().document&&(this._isEnabled()?function(t){if(void 0===t&&(t={}),On.document)if(t.eventId)if(t.dsn){var n=On.document.createElement("script");n.async=!0,n.src=new Ht(t.dsn).getReportDialogEndpoint(t),t.onLoad&&(n.onload=t.onLoad);var r=On.document.head||On.document.body;r&&r.appendChild(n)}else C.error("Missing dsn option in showReportDialog call");else C.error("Missing eventId option in showReportDialog call")}(c(c({},t),{dsn:t.dsn||this.getDsn()})):C.error("Trying to call showReportDialog with Sentry Client disabled"))},n.prototype._prepareEvent=function(n,r,i){return n.platform=n.platform||"javascript",t.prototype._prepareEvent.call(this,n,r,i)},n.prototype._sendEvent=function(n){var r=this.getIntegration(qn);r&&r.addSentryBreadcrumb(n),t.prototype._sendEvent.call(this,n)},n}(Xt),Hn=[new Zt,new Qt,new In,new qn,new Nn,new An,new Ln,new Mn];const Pn=t=>{var n,r;return null!==(r=null===(n=null==t?void 0:t.stacktrace)||void 0===n?void 0:n.frames)&&void 0!==r?r:[]},Jn=t=>{const n=null==t?void 0:t.filename;return!!n&&n.includes("vviinn")},Fn=t=>(t=>{var n,r;return null!==(r=null===(n=null==t?void 0:t.exception)||void 0===n?void 0:n.values)&&void 0!==r?r:[]})(t).map(Pn).flat().some(Jn)?t:null,Xn=function(){!function(t){if(void 0===t&&(t={}),void 0===t.defaultIntegrations&&(t.defaultIntegrations=Hn),void 0===t.release){var n=d();n.SENTRY_RELEASE&&n.SENTRY_RELEASE.id&&(t.release=n.SENTRY_RELEASE.id)}void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0),function(t,n){var r;!0===n.debug&&C.enable();var i=It();null===(r=i.getScope())||void 0===r||r.update(n.initialScope);var e=new t(n);i.bindClient(e)}(Un,t),t.autoSessionTracking&&function(){if(void 0!==d().document){var t=It();"function"==typeof t.startSession&&"function"==typeof t.captureSession&&(t.startSession({ignoreDuration:!0}),t.captureSession(),et({callback:function(n){var r=n.from;void 0!==r&&r!==n.to&&(t.startSession({ignoreDuration:!0}),t.captureSession())},type:"history"}))}else C.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}()}({dsn:"https://70bcf561598b44148bd3cabc7c142a6c@o1015876.ingest.sentry.io/5983034",release:`${t.packageName}@${t.packageVersion}`,environment:t.environment,tracesSampleRate:0,maxBreadcrumbs:4,beforeSend:Fn,allowUrls:[/https?:\/\/cdn\.jsdelivr\.net\/npm\/vviinn-widgets.+/]})};export{Xn as g}