@lanaco/lnc-react-ui 4.0.112 → 4.0.113

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 (282) hide show
  1. package/dist/Accordion.cjs +1 -1
  2. package/dist/Accordion.js +1 -1
  3. package/dist/AccordionDetails.cjs +1 -1
  4. package/dist/AccordionDetails.js +1 -1
  5. package/dist/AccordionSummary.cjs +1 -1
  6. package/dist/AccordionSummary.js +1 -1
  7. package/dist/ActionsToolbar.cjs +1 -1
  8. package/dist/ActionsToolbar.js +1 -1
  9. package/dist/Alert.cjs +1 -1
  10. package/dist/Alert.js +1 -1
  11. package/dist/Avatar.cjs +1 -1
  12. package/dist/Avatar.js +1 -1
  13. package/dist/Badge.cjs +1 -1
  14. package/dist/Badge.js +1 -1
  15. package/dist/BannerSectionCarousel.cjs +1 -1
  16. package/dist/BannerSectionCarousel.js +3 -3
  17. package/dist/BlogCardsSponsoredSection.cjs +25 -14
  18. package/dist/BlogCardsSponsoredSection.js +58 -47
  19. package/dist/BlogListSection.cjs +37 -9
  20. package/dist/BlogListSection.js +127 -70
  21. package/dist/BlogsSectionDetailed.cjs +7 -2
  22. package/dist/BlogsSectionDetailed.js +6 -1
  23. package/dist/BlogsSectionSimpleCentered.cjs +3 -2
  24. package/dist/BlogsSectionSimpleCentered.js +1 -0
  25. package/dist/BlogsSectionWithFilters.cjs +1 -1
  26. package/dist/BlogsSectionWithFilters.js +1 -1
  27. package/dist/BrandHitsSection.cjs +11 -11
  28. package/dist/BrandHitsSection.js +40 -38
  29. package/dist/Breadcrumbs.cjs +1 -1
  30. package/dist/Breadcrumbs.js +1 -1
  31. package/dist/Button.cjs +1 -1
  32. package/dist/Button.js +2 -2
  33. package/dist/ButtonGroup.cjs +1 -1
  34. package/dist/ButtonGroup.js +1 -1
  35. package/dist/CalorieCalculatorSection.cjs +1 -1
  36. package/dist/CalorieCalculatorSection.js +1 -1
  37. package/dist/CheckBoxInput.cjs +1 -1
  38. package/dist/CheckBoxInput.js +1 -1
  39. package/dist/Chip.cjs +1 -1
  40. package/dist/Chip.js +1 -1
  41. package/dist/ColorInput.cjs +1 -1
  42. package/dist/ColorInput.js +2 -2
  43. package/dist/ConfirmationForm.cjs +1 -1
  44. package/dist/ConfirmationForm.js +1 -1
  45. package/dist/ContactSection.cjs +303 -0
  46. package/dist/ContactSection.js +1614 -0
  47. package/dist/Content.cjs +1 -1
  48. package/dist/Content.js +1 -1
  49. package/dist/{CustomStyles-DtKDPOdk.cjs → CustomStyles-D3JePSNK.cjs} +1 -1
  50. package/dist/{CustomStyles-Dd8IsVV6.js → CustomStyles-DpKzWczC.js} +2 -2
  51. package/dist/DailyMotion-CUHIuSln.js +136 -0
  52. package/dist/DailyMotion-D46sLmkS.cjs +1 -0
  53. package/dist/DataView.cjs +1 -1
  54. package/dist/DataView.js +1 -1
  55. package/dist/DateInput.cjs +4 -4
  56. package/dist/DateInput.js +496 -552
  57. package/dist/DecimalInput.cjs +1 -1
  58. package/dist/DecimalInput.js +2 -2
  59. package/dist/DecimalInputV2.cjs +1 -1
  60. package/dist/DecimalInputV2.js +1 -1
  61. package/dist/DetailedProductsSection.cjs +1 -1
  62. package/dist/DetailedProductsSection.js +1 -1
  63. package/dist/DetailsView.cjs +1 -1
  64. package/dist/DetailsView.js +1 -1
  65. package/dist/DoubleRangeSlider.cjs +1 -1
  66. package/dist/DoubleRangeSlider.js +1 -1
  67. package/dist/DragAndDropFile.cjs +1 -1
  68. package/dist/DragAndDropFile.js +1 -1
  69. package/dist/DragDropFiles.cjs +1 -1
  70. package/dist/DragDropFiles.js +1 -1
  71. package/dist/Drawer.cjs +1 -1
  72. package/dist/Drawer.js +2 -2
  73. package/dist/Dropdown.cjs +1 -1
  74. package/dist/Dropdown.js +5 -5
  75. package/dist/DropdownItem.cjs +1 -1
  76. package/dist/DropdownItem.js +1 -1
  77. package/dist/DropdownLookup.cjs +1 -1
  78. package/dist/DropdownLookup.js +4 -4
  79. package/dist/DropdownMenu.cjs +1 -1
  80. package/dist/DropdownMenu.js +1 -1
  81. package/dist/EditableTable.cjs +1 -1
  82. package/dist/EditableTable.js +1 -1
  83. package/dist/Facebook-R53Rry9l.cjs +1 -0
  84. package/dist/Facebook-aEQQxj-r.js +121 -0
  85. package/dist/FaqSection.cjs +219 -0
  86. package/dist/FaqSection.js +481 -0
  87. package/dist/FeedbackSection.cjs +1 -1
  88. package/dist/FeedbackSection.js +1 -1
  89. package/dist/FileInput.cjs +1 -1
  90. package/dist/FileInput.js +1 -1
  91. package/dist/FilePlayer-9FdL9kM0.js +202 -0
  92. package/dist/FilePlayer-D9up8eWZ.cjs +1 -0
  93. package/dist/FlexBox.cjs +1 -1
  94. package/dist/FlexBox.js +1 -1
  95. package/dist/FlexGrid.cjs +1 -1
  96. package/dist/FlexGrid.js +1 -1
  97. package/dist/FlexGridItem.cjs +1 -1
  98. package/dist/FlexGridItem.js +1 -1
  99. package/dist/Footer.cjs +1 -1
  100. package/dist/Footer.js +1 -1
  101. package/dist/FormField.cjs +1 -1
  102. package/dist/FormField.js +1 -1
  103. package/dist/FormView.cjs +1 -1
  104. package/dist/FormView.js +1 -1
  105. package/dist/Grid.cjs +1 -1
  106. package/dist/Grid.js +1 -1
  107. package/dist/GridItem.cjs +1 -1
  108. package/dist/GridItem.js +1 -1
  109. package/dist/Header.cjs +1 -1
  110. package/dist/Header.js +1 -1
  111. package/dist/HelpBannerSection.cjs +62 -0
  112. package/dist/HelpBannerSection.js +81 -0
  113. package/dist/Icon.cjs +1 -1
  114. package/dist/Icon.js +1 -1
  115. package/dist/IconButton.cjs +1 -1
  116. package/dist/IconButton.js +1 -1
  117. package/dist/Kaltura-C170sgeD.cjs +1 -0
  118. package/dist/Kaltura-Dziqci9-.js +121 -0
  119. package/dist/Kanban.cjs +1 -1
  120. package/dist/Kanban.js +5 -5
  121. package/dist/KanbanActionsToolbar.cjs +1 -1
  122. package/dist/KanbanActionsToolbar.js +1 -1
  123. package/dist/{KanbanCard-CXRQQu4S.cjs → KanbanCard-CP60mpJO.cjs} +1 -1
  124. package/dist/{KanbanCard-CIscpYlR.js → KanbanCard-Crf-cTxA.js} +2 -2
  125. package/dist/KanbanCard.cjs +1 -1
  126. package/dist/KanbanCard.js +2 -2
  127. package/dist/KanbanFooter.cjs +1 -1
  128. package/dist/KanbanFooter.js +1 -1
  129. package/dist/KanbanHeader.cjs +1 -1
  130. package/dist/KanbanHeader.js +1 -1
  131. package/dist/KanbanView.cjs +1 -1
  132. package/dist/KanbanView.js +2 -2
  133. package/dist/Link.cjs +1 -1
  134. package/dist/Link.js +1 -1
  135. package/dist/LocationSearchSection.cjs +1 -1
  136. package/dist/LocationSearchSection.js +1 -1
  137. package/dist/MenuItem.cjs +1 -1
  138. package/dist/MenuItem.js +1 -1
  139. package/dist/Mixcloud-Cfn28kqf.js +113 -0
  140. package/dist/Mixcloud-Towpm_ct.cjs +1 -0
  141. package/dist/Modal.cjs +1 -1
  142. package/dist/Modal.js +2 -2
  143. package/dist/MultiSelectDropdown.cjs +1 -1
  144. package/dist/MultiSelectDropdown.js +3 -3
  145. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  146. package/dist/MultiSelectDropdownLookup.js +3 -3
  147. package/dist/Mux-D0MPDKkM.js +165 -0
  148. package/dist/Mux-yqNOmuss.cjs +1 -0
  149. package/dist/NestedDropdownItem.cjs +1 -1
  150. package/dist/NestedDropdownItem.js +1 -1
  151. package/dist/NestedMenuItem.cjs +1 -1
  152. package/dist/NestedMenuItem.js +1 -1
  153. package/dist/Notification.cjs +1 -1
  154. package/dist/Notification.js +1 -1
  155. package/dist/NotificationContainer.cjs +1 -1
  156. package/dist/NotificationContainer.js +2 -2
  157. package/dist/NotificationMessage.cjs +1 -1
  158. package/dist/NotificationMessage.js +1 -1
  159. package/dist/NumberInput.cjs +1 -1
  160. package/dist/NumberInput.js +2 -2
  161. package/dist/PageLayout.cjs +1 -1
  162. package/dist/PageLayout.js +1 -1
  163. package/dist/Pagination.cjs +1 -1
  164. package/dist/Pagination.js +1 -1
  165. package/dist/PasswordInput.cjs +1 -1
  166. package/dist/PasswordInput.js +2 -2
  167. package/dist/Popover.cjs +1 -1
  168. package/dist/Popover.js +1 -1
  169. package/dist/PopoverContent.cjs +1 -1
  170. package/dist/PopoverContent.js +2 -2
  171. package/dist/PopoverDescription.cjs +1 -1
  172. package/dist/PopoverDescription.js +1 -1
  173. package/dist/PopoverHeading.cjs +1 -1
  174. package/dist/PopoverHeading.js +1 -1
  175. package/dist/PopoverTrigger.cjs +1 -1
  176. package/dist/PopoverTrigger.js +2 -2
  177. package/dist/Preview-B8HyPnfR.cjs +1 -0
  178. package/dist/Preview-CO6WSP5f.js +127 -0
  179. package/dist/ProgressBar.cjs +1 -1
  180. package/dist/ProgressBar.js +1 -1
  181. package/dist/QuattroCardsSection.cjs +1 -1
  182. package/dist/QuattroCardsSection.js +1 -1
  183. package/dist/RadioGroup.cjs +1 -1
  184. package/dist/RadioGroup.js +1 -1
  185. package/dist/RadioInput.cjs +1 -1
  186. package/dist/RadioInput.js +1 -1
  187. package/dist/RangeSlider.cjs +1 -1
  188. package/dist/RangeSlider.js +1 -1
  189. package/dist/ReviewsSection.cjs +1 -1
  190. package/dist/ReviewsSection.js +1 -1
  191. package/dist/SalesCampaignsSection.cjs +1 -1
  192. package/dist/SalesCampaignsSection.js +1 -1
  193. package/dist/SearchBar.cjs +1 -1
  194. package/dist/SearchBar.js +3 -3
  195. package/dist/SearchSection-BUD-hnQA.cjs +161 -0
  196. package/dist/SearchSection-xe0nvARV.js +1214 -0
  197. package/dist/SearchSection.cjs +1 -0
  198. package/dist/SearchSection.js +9 -0
  199. package/dist/Separator.cjs +1 -1
  200. package/dist/Separator.js +1 -1
  201. package/dist/Sidebar.cjs +1 -1
  202. package/dist/Sidebar.js +1 -1
  203. package/dist/SoundCloud-D85Da68L.js +123 -0
  204. package/dist/SoundCloud-YZlcPffr.cjs +1 -0
  205. package/dist/Spinner.cjs +1 -1
  206. package/dist/Spinner.js +2 -2
  207. package/dist/StatsSection.cjs +117 -0
  208. package/dist/StatsSection.js +154 -0
  209. package/dist/Streamable-CJQf8evZ.cjs +1 -0
  210. package/dist/Streamable-Zj4FOeBP.js +115 -0
  211. package/dist/Surface.cjs +1 -1
  212. package/dist/Surface.js +1 -1
  213. package/dist/SwipeableDrawer.cjs +1 -1
  214. package/dist/SwipeableDrawer.js +1 -1
  215. package/dist/TabItem.cjs +1 -1
  216. package/dist/TabItem.js +1 -1
  217. package/dist/Table.cjs +1 -1
  218. package/dist/Table.js +3 -3
  219. package/dist/TableView.cjs +1 -1
  220. package/dist/TableView.js +1 -1
  221. package/dist/Tabs.cjs +1 -1
  222. package/dist/Tabs.js +1 -1
  223. package/dist/TextAreaInput.cjs +1 -1
  224. package/dist/TextAreaInput.js +2 -2
  225. package/dist/TextInput.cjs +1 -1
  226. package/dist/TextInput.js +2 -2
  227. package/dist/ThemeProvider.cjs +1 -1
  228. package/dist/ThemeProvider.js +2 -2
  229. package/dist/TimeInput.cjs +1 -1
  230. package/dist/TimeInput.js +2 -2
  231. package/dist/Toggle.cjs +1 -1
  232. package/dist/Toggle.js +1 -1
  233. package/dist/TreeMenu.cjs +1 -1
  234. package/dist/TreeMenu.js +1 -1
  235. package/dist/TreeMenuSeparator.cjs +1 -1
  236. package/dist/TreeMenuSeparator.js +1 -1
  237. package/dist/Twitch-Ba2O5gTX.cjs +1 -0
  238. package/dist/Twitch-DC97YrR8.js +117 -0
  239. package/dist/UploadedFile.cjs +1 -1
  240. package/dist/UploadedFile.js +1 -1
  241. package/dist/Vidyard-BdNB5Wka.cjs +1 -0
  242. package/dist/Vidyard-D9vYqvNv.js +113 -0
  243. package/dist/Vimeo-23LnW4uS.js +146 -0
  244. package/dist/Vimeo-DatJiKS5.cjs +1 -0
  245. package/dist/Wistia-D--UDN6c.cjs +1 -0
  246. package/dist/Wistia-d2TQ3m-s.js +124 -0
  247. package/dist/YouTube-BEkcZxN7.cjs +1 -0
  248. package/dist/YouTube-x5-hc3s6.js +176 -0
  249. package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
  250. package/dist/_commonjsHelpers-DwTZ_eVU.cjs +1 -0
  251. package/dist/{emotion-react.browser.esm-1R69UXoj.cjs → emotion-react.browser.esm-Cvnp-zmB.cjs} +1 -1
  252. package/dist/{emotion-react.browser.esm-C6iWxXPG.js → emotion-react.browser.esm-DUVZ5oEL.js} +1 -1
  253. package/dist/{floating-ui.react.esm-h3qa3pb9.js → floating-ui.react.esm-CfpRzwmn.js} +1 -1
  254. package/dist/{floating-ui.react.esm-Bb1ww976.cjs → floating-ui.react.esm-CiYofNnh.cjs} +1 -1
  255. package/dist/{hoist-non-react-statics.cjs-Dr-ytKVG.cjs → hoist-non-react-statics.cjs-DGqlkKoS.cjs} +1 -1
  256. package/dist/{hoist-non-react-statics.cjs-CAHiRNzQ.js → hoist-non-react-statics.cjs-NQME298B.js} +1 -1
  257. package/dist/{index-EeoArxOx.cjs → index-41nUb2kP.cjs} +1 -1
  258. package/dist/{index-BlxaTV-D.js → index-6RFrSPs_.js} +1 -1
  259. package/dist/{index-64mXPFBC.js → index-B1vKwsDE.js} +1 -1
  260. package/dist/{index-Bq3leL2e.js → index-BXrmgzsU.js} +1 -1
  261. package/dist/{index-gY9e_8LL.cjs → index-BZnmT78f.cjs} +1 -1
  262. package/dist/{index-CQLF61YV.js → index-BgRyIsRu.js} +1 -1
  263. package/dist/{index-BPVoEhTF.cjs → index-BpbMKBf_.cjs} +1 -1
  264. package/dist/index-CDGmG-qk.cjs +1 -0
  265. package/dist/{index-S5Cd7WrG.js → index-CblbdqjE.js} +1 -1
  266. package/dist/{index-DaiUAQVF.cjs → index-Cp66dWMi.cjs} +1 -1
  267. package/dist/{index-DAOBjHnD.cjs → index-DA7SIHV1.cjs} +1 -1
  268. package/dist/{index-C1DkD2ug.cjs → index-DCFJmN23.cjs} +1 -1
  269. package/dist/{index-CkWvbrVT.js → index-Dt62UGku.js} +1 -1
  270. package/dist/index-wlx30R-h.js +62 -0
  271. package/dist/index.cjs +1 -1
  272. package/dist/index.js +60 -50
  273. package/dist/{react-toastify.esm--2awuizG.js → react-toastify.esm-BLQznunb.js} +1 -1
  274. package/dist/{react-toastify.esm-Dq1k28O7.cjs → react-toastify.esm-BoMuFZcq.cjs} +1 -1
  275. package/dist/{styled-components.browser.esm-CMTEDJ_5.cjs → styled-components.browser.esm-CvykQBGY.cjs} +1 -1
  276. package/dist/{styled-components.browser.esm-C9FYANiy.js → styled-components.browser.esm-D-n22PJk.js} +1 -1
  277. package/dist/usePopover.cjs +1 -1
  278. package/dist/usePopover.js +1 -1
  279. package/package.json +8 -2
  280. package/vite.config.js +14 -0
  281. package/dist/_commonjsHelpers-DKOUU3wS.cjs +0 -1
  282. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
@@ -0,0 +1,146 @@
1
+ import { g as d } from "./_commonjsHelpers-BkfeUUK-.js";
2
+ import f from "react";
3
+ import { u as m, p as _ } from "./SearchSection-xe0nvARV.js";
4
+ function P(t, e) {
5
+ for (var r = 0; r < e.length; r++) {
6
+ const a = e[r];
7
+ if (typeof a != "string" && !Array.isArray(a)) {
8
+ for (const s in a)
9
+ if (s !== "default" && !(s in t)) {
10
+ const o = Object.getOwnPropertyDescriptor(a, s);
11
+ o && Object.defineProperty(t, s, o.get ? o : {
12
+ enumerable: !0,
13
+ get: () => a[s]
14
+ });
15
+ }
16
+ }
17
+ }
18
+ return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
19
+ }
20
+ var g = Object.create, n = Object.defineProperty, b = Object.getOwnPropertyDescriptor, v = Object.getOwnPropertyNames, O = Object.getPrototypeOf, D = Object.prototype.hasOwnProperty, w = (t, e, r) => e in t ? n(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, M = (t, e) => {
21
+ for (var r in e)
22
+ n(t, r, { get: e[r], enumerable: !0 });
23
+ }, h = (t, e, r, a) => {
24
+ if (e && typeof e == "object" || typeof e == "function")
25
+ for (let s of v(e))
26
+ !D.call(t, s) && s !== r && n(t, s, { get: () => e[s], enumerable: !(a = b(e, s)) || a.enumerable });
27
+ return t;
28
+ }, j = (t, e, r) => (r = t != null ? g(O(t)) : {}, h(
29
+ // If the importer is in node compatibility mode or this is not an ESM
30
+ // file that has been converted to a CommonJS file using a Babel-
31
+ // compatible transform (i.e. "__esModule" has not been set), then set
32
+ // "default" to the CommonJS "module.exports" for node compatibility.
33
+ !t || !t.__esModule ? n(r, "default", { value: t, enumerable: !0 }) : r,
34
+ t
35
+ )), L = (t) => h(n({}, "__esModule", { value: !0 }), t), i = (t, e, r) => (w(t, typeof e != "symbol" ? e + "" : e, r), r), c = {};
36
+ M(c, {
37
+ default: () => l
38
+ });
39
+ var y = L(c), p = j(f), u = m, S = _;
40
+ const V = "https://player.vimeo.com/api/player.js", E = "Vimeo", k = (t) => t.replace("/manage/videos", "");
41
+ class l extends p.Component {
42
+ constructor() {
43
+ super(...arguments), i(this, "callPlayer", u.callPlayer), i(this, "duration", null), i(this, "currentTime", null), i(this, "secondsLoaded", null), i(this, "mute", () => {
44
+ this.setMuted(!0);
45
+ }), i(this, "unmute", () => {
46
+ this.setMuted(!1);
47
+ }), i(this, "ref", (e) => {
48
+ this.container = e;
49
+ });
50
+ }
51
+ componentDidMount() {
52
+ this.props.onMount && this.props.onMount(this);
53
+ }
54
+ load(e) {
55
+ this.duration = null, (0, u.getSDK)(V, E).then((r) => {
56
+ if (!this.container)
57
+ return;
58
+ const { playerOptions: a, title: s } = this.props.config;
59
+ this.player = new r.Player(this.container, {
60
+ url: k(e),
61
+ autoplay: this.props.playing,
62
+ muted: this.props.muted,
63
+ loop: this.props.loop,
64
+ playsinline: this.props.playsinline,
65
+ controls: this.props.controls,
66
+ ...a
67
+ }), this.player.ready().then(() => {
68
+ const o = this.container.querySelector("iframe");
69
+ o.style.width = "100%", o.style.height = "100%", s && (o.title = s);
70
+ }).catch(this.props.onError), this.player.on("loaded", () => {
71
+ this.props.onReady(), this.refreshDuration();
72
+ }), this.player.on("play", () => {
73
+ this.props.onPlay(), this.refreshDuration();
74
+ }), this.player.on("pause", this.props.onPause), this.player.on("seeked", (o) => this.props.onSeek(o.seconds)), this.player.on("ended", this.props.onEnded), this.player.on("error", this.props.onError), this.player.on("timeupdate", ({ seconds: o }) => {
75
+ this.currentTime = o;
76
+ }), this.player.on("progress", ({ seconds: o }) => {
77
+ this.secondsLoaded = o;
78
+ }), this.player.on("bufferstart", this.props.onBuffer), this.player.on("bufferend", this.props.onBufferEnd), this.player.on("playbackratechange", (o) => this.props.onPlaybackRateChange(o.playbackRate));
79
+ }, this.props.onError);
80
+ }
81
+ refreshDuration() {
82
+ this.player.getDuration().then((e) => {
83
+ this.duration = e;
84
+ });
85
+ }
86
+ play() {
87
+ const e = this.callPlayer("play");
88
+ e && e.catch(this.props.onError);
89
+ }
90
+ pause() {
91
+ this.callPlayer("pause");
92
+ }
93
+ stop() {
94
+ this.callPlayer("unload");
95
+ }
96
+ seekTo(e, r = !0) {
97
+ this.callPlayer("setCurrentTime", e), r || this.pause();
98
+ }
99
+ setVolume(e) {
100
+ this.callPlayer("setVolume", e);
101
+ }
102
+ setMuted(e) {
103
+ this.callPlayer("setMuted", e);
104
+ }
105
+ setLoop(e) {
106
+ this.callPlayer("setLoop", e);
107
+ }
108
+ setPlaybackRate(e) {
109
+ this.callPlayer("setPlaybackRate", e);
110
+ }
111
+ getDuration() {
112
+ return this.duration;
113
+ }
114
+ getCurrentTime() {
115
+ return this.currentTime;
116
+ }
117
+ getSecondsLoaded() {
118
+ return this.secondsLoaded;
119
+ }
120
+ render() {
121
+ const { display: e } = this.props, r = {
122
+ width: "100%",
123
+ height: "100%",
124
+ overflow: "hidden",
125
+ display: e
126
+ };
127
+ return /* @__PURE__ */ p.default.createElement(
128
+ "div",
129
+ {
130
+ key: this.props.url,
131
+ ref: this.ref,
132
+ style: r
133
+ }
134
+ );
135
+ }
136
+ }
137
+ i(l, "displayName", "Vimeo");
138
+ i(l, "canPlay", S.canPlay.vimeo);
139
+ i(l, "forceLoad", !0);
140
+ const R = /* @__PURE__ */ d(y), x = /* @__PURE__ */ P({
141
+ __proto__: null,
142
+ default: R
143
+ }, [y]);
144
+ export {
145
+ x as V
146
+ };
@@ -0,0 +1 @@
1
+ "use strict";const f=require("./_commonjsHelpers-DwTZ_eVU.cjs"),m=require("react"),c=require("./SearchSection-BUD-hnQA.cjs");function _(t,e){for(var r=0;r<e.length;r++){const a=e[r];if(typeof a!="string"&&!Array.isArray(a)){for(const o in a)if(o!=="default"&&!(o in t)){const s=Object.getOwnPropertyDescriptor(a,o);s&&Object.defineProperty(t,o,s.get?s:{enumerable:!0,get:()=>a[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var P=Object.create,n=Object.defineProperty,g=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,v=Object.getPrototypeOf,O=Object.prototype.hasOwnProperty,D=(t,e,r)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of b(e))!O.call(t,o)&&o!==r&&n(t,o,{get:()=>e[o],enumerable:!(a=g(e,o))||a.enumerable});return t},w=(t,e,r)=>(r=t!=null?P(v(t)):{},h(!t||!t.__esModule?n(r,"default",{value:t,enumerable:!0}):r,t)),M=t=>h(n({},"__esModule",{value:!0}),t),i=(t,e,r)=>(D(t,typeof e!="symbol"?e+"":e,r),r),y={};j(y,{default:()=>l});var d=M(y),p=w(m),u=c.utils,S=c.patterns;const L="https://player.vimeo.com/api/player.js",V="Vimeo",E=t=>t.replace("/manage/videos","");class l extends p.Component{constructor(){super(...arguments),i(this,"callPlayer",u.callPlayer),i(this,"duration",null),i(this,"currentTime",null),i(this,"secondsLoaded",null),i(this,"mute",()=>{this.setMuted(!0)}),i(this,"unmute",()=>{this.setMuted(!1)}),i(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){this.duration=null,(0,u.getSDK)(L,V).then(r=>{if(!this.container)return;const{playerOptions:a,title:o}=this.props.config;this.player=new r.Player(this.container,{url:E(e),autoplay:this.props.playing,muted:this.props.muted,loop:this.props.loop,playsinline:this.props.playsinline,controls:this.props.controls,...a}),this.player.ready().then(()=>{const s=this.container.querySelector("iframe");s.style.width="100%",s.style.height="100%",o&&(s.title=o)}).catch(this.props.onError),this.player.on("loaded",()=>{this.props.onReady(),this.refreshDuration()}),this.player.on("play",()=>{this.props.onPlay(),this.refreshDuration()}),this.player.on("pause",this.props.onPause),this.player.on("seeked",s=>this.props.onSeek(s.seconds)),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({seconds:s})=>{this.currentTime=s}),this.player.on("progress",({seconds:s})=>{this.secondsLoaded=s}),this.player.on("bufferstart",this.props.onBuffer),this.player.on("bufferend",this.props.onBufferEnd),this.player.on("playbackratechange",s=>this.props.onPlaybackRateChange(s.playbackRate))},this.props.onError)}refreshDuration(){this.player.getDuration().then(e=>{this.duration=e})}play(){const e=this.callPlayer("play");e&&e.catch(this.props.onError)}pause(){this.callPlayer("pause")}stop(){this.callPlayer("unload")}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setMuted(e){this.callPlayer("setMuted",e)}setLoop(e){this.callPlayer("setLoop",e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const{display:e}=this.props,r={width:"100%",height:"100%",overflow:"hidden",display:e};return p.default.createElement("div",{key:this.props.url,ref:this.ref,style:r})}}i(l,"displayName","Vimeo");i(l,"canPlay",S.canPlay.vimeo);i(l,"forceLoad",!0);const k=f.getDefaultExportFromCjs(d),R=_({__proto__:null,default:k},[d]);exports.Vimeo=R;
@@ -0,0 +1 @@
1
+ "use strict";const g=require("./_commonjsHelpers-DwTZ_eVU.cjs"),v=require("react"),y=require("./SearchSection-BUD-hnQA.cjs");function w(t,e){for(var a=0;a<e.length;a++){const s=e[a];if(typeof s!="string"&&!Array.isArray(s)){for(const r in s)if(r!=="default"&&!(r in t)){const o=Object.getOwnPropertyDescriptor(s,r);o&&Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>s[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var O=Object.create,i=Object.defineProperty,C=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,k=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,R=(t,e,a)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,E=(t,e)=>{for(var a in e)i(t,a,{get:e[a],enumerable:!0})},d=(t,e,a,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of S(e))!D.call(t,r)&&r!==a&&i(t,r,{get:()=>e[r],enumerable:!(s=C(e,r))||s.enumerable});return t},j=(t,e,a)=>(a=t!=null?O(k(t)):{},d(!t||!t.__esModule?i(a,"default",{value:t,enumerable:!0}):a,t)),I=t=>d(i({},"__esModule",{value:!0}),t),n=(t,e,a)=>(R(t,typeof e!="symbol"?e+"":e,a),a),_={};E(_,{default:()=>l});var P=I(_),h=j(v),c=y.utils,b=y.patterns;const M="https://fast.wistia.com/assets/external/E-v1.js",W="Wistia",q="wistia-player-";class l extends h.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${q}${(0,c.randomString)()}`),n(this,"onPlay",(...e)=>this.props.onPlay(...e)),n(this,"onPause",(...e)=>this.props.onPause(...e)),n(this,"onSeek",(...e)=>this.props.onSeek(...e)),n(this,"onEnded",(...e)=>this.props.onEnded(...e)),n(this,"onPlaybackRateChange",(...e)=>this.props.onPlaybackRateChange(...e)),n(this,"mute",()=>{this.callPlayer("mute")}),n(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:a,muted:s,controls:r,onReady:o,config:p,onError:f}=this.props;(0,c.getSDK)(M,W).then(m=>{p.customControls&&p.customControls.forEach(u=>m.defineControl(u)),window._wq=window._wq||[],window._wq.push({id:this.playerID,options:{autoPlay:a,silentAutoPlay:"allow",muted:s,controlsVisibleOnLoad:r,fullscreenButton:r,playbar:r,playbackRateControl:r,qualityControl:r,volumeControl:r,settingsControl:r,smallPlayButton:r,...p.options},onReady:u=>{this.player=u,this.unbind(),this.player.bind("play",this.onPlay),this.player.bind("pause",this.onPause),this.player.bind("seek",this.onSeek),this.player.bind("end",this.onEnded),this.player.bind("playbackratechange",this.onPlaybackRateChange),o()}})},f)}unbind(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.unbind(),this.callPlayer("remove")}seekTo(e,a=!0){this.callPlayer("time",e),a||this.pause()}setVolume(e){this.callPlayer("volume",e)}setPlaybackRate(e){this.callPlayer("playbackRate",e)}getDuration(){return this.callPlayer("duration")}getCurrentTime(){return this.callPlayer("time")}getSecondsLoaded(){return null}render(){const{url:e}=this.props,a=e&&e.match(b.MATCH_URL_WISTIA)[1],s=`wistia_embed wistia_async_${a}`,r={width:"100%",height:"100%"};return h.default.createElement("div",{id:this.playerID,key:a,className:s,style:r})}}n(l,"displayName","Wistia");n(l,"canPlay",b.canPlay.wistia);n(l,"loopOnEnded",!0);const A=g.getDefaultExportFromCjs(P),L=w({__proto__:null,default:A},[P]);exports.Wistia=L;
@@ -0,0 +1,124 @@
1
+ import { g as m } from "./_commonjsHelpers-BkfeUUK-.js";
2
+ import g from "react";
3
+ import { u as v, p as w } from "./SearchSection-xe0nvARV.js";
4
+ function O(t, e) {
5
+ for (var a = 0; a < e.length; a++) {
6
+ const s = e[a];
7
+ if (typeof s != "string" && !Array.isArray(s)) {
8
+ for (const r in s)
9
+ if (r !== "default" && !(r in t)) {
10
+ const o = Object.getOwnPropertyDescriptor(s, r);
11
+ o && Object.defineProperty(t, r, o.get ? o : {
12
+ enumerable: !0,
13
+ get: () => s[r]
14
+ });
15
+ }
16
+ }
17
+ }
18
+ return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
19
+ }
20
+ var C = Object.create, i = Object.defineProperty, k = Object.getOwnPropertyDescriptor, D = Object.getOwnPropertyNames, R = Object.getPrototypeOf, S = Object.prototype.hasOwnProperty, E = (t, e, a) => e in t ? i(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a, j = (t, e) => {
21
+ for (var a in e)
22
+ i(t, a, { get: e[a], enumerable: !0 });
23
+ }, h = (t, e, a, s) => {
24
+ if (e && typeof e == "object" || typeof e == "function")
25
+ for (let r of D(e))
26
+ !S.call(t, r) && r !== a && i(t, r, { get: () => e[r], enumerable: !(s = k(e, r)) || s.enumerable });
27
+ return t;
28
+ }, I = (t, e, a) => (a = t != null ? C(R(t)) : {}, h(
29
+ // If the importer is in node compatibility mode or this is not an ESM
30
+ // file that has been converted to a CommonJS file using a Babel-
31
+ // compatible transform (i.e. "__esModule" has not been set), then set
32
+ // "default" to the CommonJS "module.exports" for node compatibility.
33
+ !t || !t.__esModule ? i(a, "default", { value: t, enumerable: !0 }) : a,
34
+ t
35
+ )), M = (t) => h(i({}, "__esModule", { value: !0 }), t), n = (t, e, a) => (E(t, typeof e != "symbol" ? e + "" : e, a), a), d = {};
36
+ j(d, {
37
+ default: () => l
38
+ });
39
+ var _ = M(d), y = I(g), c = v, P = w;
40
+ const W = "https://fast.wistia.com/assets/external/E-v1.js", A = "Wistia", L = "wistia-player-";
41
+ class l extends y.Component {
42
+ constructor() {
43
+ super(...arguments), n(this, "callPlayer", c.callPlayer), n(this, "playerID", this.props.config.playerId || `${L}${(0, c.randomString)()}`), n(this, "onPlay", (...e) => this.props.onPlay(...e)), n(this, "onPause", (...e) => this.props.onPause(...e)), n(this, "onSeek", (...e) => this.props.onSeek(...e)), n(this, "onEnded", (...e) => this.props.onEnded(...e)), n(this, "onPlaybackRateChange", (...e) => this.props.onPlaybackRateChange(...e)), n(this, "mute", () => {
44
+ this.callPlayer("mute");
45
+ }), n(this, "unmute", () => {
46
+ this.callPlayer("unmute");
47
+ });
48
+ }
49
+ componentDidMount() {
50
+ this.props.onMount && this.props.onMount(this);
51
+ }
52
+ load(e) {
53
+ const { playing: a, muted: s, controls: r, onReady: o, config: p, onError: b } = this.props;
54
+ (0, c.getSDK)(W, A).then((f) => {
55
+ p.customControls && p.customControls.forEach((u) => f.defineControl(u)), window._wq = window._wq || [], window._wq.push({
56
+ id: this.playerID,
57
+ options: {
58
+ autoPlay: a,
59
+ silentAutoPlay: "allow",
60
+ muted: s,
61
+ controlsVisibleOnLoad: r,
62
+ fullscreenButton: r,
63
+ playbar: r,
64
+ playbackRateControl: r,
65
+ qualityControl: r,
66
+ volumeControl: r,
67
+ settingsControl: r,
68
+ smallPlayButton: r,
69
+ ...p.options
70
+ },
71
+ onReady: (u) => {
72
+ this.player = u, this.unbind(), this.player.bind("play", this.onPlay), this.player.bind("pause", this.onPause), this.player.bind("seek", this.onSeek), this.player.bind("end", this.onEnded), this.player.bind("playbackratechange", this.onPlaybackRateChange), o();
73
+ }
74
+ });
75
+ }, b);
76
+ }
77
+ unbind() {
78
+ this.player.unbind("play", this.onPlay), this.player.unbind("pause", this.onPause), this.player.unbind("seek", this.onSeek), this.player.unbind("end", this.onEnded), this.player.unbind("playbackratechange", this.onPlaybackRateChange);
79
+ }
80
+ play() {
81
+ this.callPlayer("play");
82
+ }
83
+ pause() {
84
+ this.callPlayer("pause");
85
+ }
86
+ stop() {
87
+ this.unbind(), this.callPlayer("remove");
88
+ }
89
+ seekTo(e, a = !0) {
90
+ this.callPlayer("time", e), a || this.pause();
91
+ }
92
+ setVolume(e) {
93
+ this.callPlayer("volume", e);
94
+ }
95
+ setPlaybackRate(e) {
96
+ this.callPlayer("playbackRate", e);
97
+ }
98
+ getDuration() {
99
+ return this.callPlayer("duration");
100
+ }
101
+ getCurrentTime() {
102
+ return this.callPlayer("time");
103
+ }
104
+ getSecondsLoaded() {
105
+ return null;
106
+ }
107
+ render() {
108
+ const { url: e } = this.props, a = e && e.match(P.MATCH_URL_WISTIA)[1], s = `wistia_embed wistia_async_${a}`, r = {
109
+ width: "100%",
110
+ height: "100%"
111
+ };
112
+ return /* @__PURE__ */ y.default.createElement("div", { id: this.playerID, key: a, className: s, style: r });
113
+ }
114
+ }
115
+ n(l, "displayName", "Wistia");
116
+ n(l, "canPlay", P.canPlay.wistia);
117
+ n(l, "loopOnEnded", !0);
118
+ const N = /* @__PURE__ */ m(_), q = /* @__PURE__ */ O({
119
+ __proto__: null,
120
+ default: N
121
+ }, [_]);
122
+ export {
123
+ q as W
124
+ };
@@ -0,0 +1 @@
1
+ "use strict";const I=require("./_commonjsHelpers-DwTZ_eVU.cjs"),L=require("react"),v=require("./SearchSection-BUD-hnQA.cjs");function M(a,e){for(var t=0;t<e.length;t++){const o=e[t];if(typeof o!="string"&&!Array.isArray(o)){for(const r in o)if(r!=="default"&&!(r in a)){const n=Object.getOwnPropertyDescriptor(o,r);n&&Object.defineProperty(a,r,n.get?n:{enumerable:!0,get:()=>o[r]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var Y=Object.create,u=Object.defineProperty,j=Object.getOwnPropertyDescriptor,k=Object.getOwnPropertyNames,N=Object.getPrototypeOf,V=Object.prototype.hasOwnProperty,B=(a,e,t)=>e in a?u(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,H=(a,e)=>{for(var t in e)u(a,t,{get:e[t],enumerable:!0})},S=(a,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of k(e))!V.call(a,r)&&r!==t&&u(a,r,{get:()=>e[r],enumerable:!(o=j(e,r))||o.enumerable});return a},K=(a,e,t)=>(t=a!=null?Y(N(a)):{},S(!a||!a.__esModule?u(t,"default",{value:a,enumerable:!0}):t,a)),F=a=>S(u({},"__esModule",{value:!0}),a),s=(a,e,t)=>(B(a,typeof e!="symbol"?e+"":e,t),t),w={};H(w,{default:()=>O});var D=F(w),b=K(L),c=v.utils,E=v.patterns;const x="https://www.youtube.com/iframe_api",T="YT",G="onYouTubeIframeAPIReady",f=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,m=/user\/([a-zA-Z0-9_-]+)\/?/,q=/youtube-nocookie\.com/,z="https://www.youtube-nocookie.com";class O extends b.Component{constructor(){super(...arguments),s(this,"callPlayer",c.callPlayer),s(this,"parsePlaylist",e=>{if(e instanceof Array)return{listType:"playlist",playlist:e.map(this.getID).join(",")};if(f.test(e)){const[,t]=e.match(f);return{listType:"playlist",list:t.replace(/^UC/,"UU")}}if(m.test(e)){const[,t]=e.match(m);return{listType:"user_uploads",list:t}}return{}}),s(this,"onStateChange",e=>{const{data:t}=e,{onPlay:o,onPause:r,onBuffer:n,onBufferEnd:P,onEnded:_,onReady:g,loop:y,config:{playerVars:l,onUnstarted:h}}=this.props,{UNSTARTED:d,PLAYING:p,PAUSED:i,BUFFERING:A,ENDED:C,CUED:R}=window[T].PlayerState;if(t===d&&h(),t===p&&(o(),P()),t===i&&r(),t===A&&n(),t===C){const U=!!this.callPlayer("getPlaylist");y&&!U&&(l.start?this.seekTo(l.start):this.play()),_()}t===R&&g()}),s(this,"mute",()=>{this.callPlayer("mute")}),s(this,"unmute",()=>{this.callPlayer("unMute")}),s(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}getID(e){return!e||e instanceof Array||f.test(e)?null:e.match(E.MATCH_URL_YOUTUBE)[1]}load(e,t){const{playing:o,muted:r,playsinline:n,controls:P,loop:_,config:g,onError:y}=this.props,{playerVars:l,embedOptions:h}=g,d=this.getID(e);if(t){if(f.test(e)||m.test(e)||e instanceof Array){this.player.loadPlaylist(this.parsePlaylist(e));return}this.player.cueVideoById({videoId:d,startSeconds:(0,c.parseStartTime)(e)||l.start,endSeconds:(0,c.parseEndTime)(e)||l.end});return}(0,c.getSDK)(x,T,G,p=>p.loaded).then(p=>{this.container&&(this.player=new p.Player(this.container,{width:"100%",height:"100%",videoId:d,playerVars:{autoplay:o?1:0,mute:r?1:0,controls:P?1:0,start:(0,c.parseStartTime)(e),end:(0,c.parseEndTime)(e),origin:window.location.origin,playsinline:n?1:0,...this.parsePlaylist(e),...l},events:{onReady:()=>{_&&this.player.setLoop(!0),this.props.onReady()},onPlaybackRateChange:i=>this.props.onPlaybackRateChange(i.data),onPlaybackQualityChange:i=>this.props.onPlaybackQualityChange(i),onStateChange:this.onStateChange,onError:i=>y(i.data)},host:q.test(e)?z:void 0,...h}))},y),h.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer’s callback props instead, eg onReady, onPlay, onPause")}play(){this.callPlayer("playVideo")}pause(){this.callPlayer("pauseVideo")}stop(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}seekTo(e,t=!1){this.callPlayer("seekTo",e),!t&&!this.props.playing&&this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return b.default.createElement("div",{style:t},b.default.createElement("div",{ref:this.ref}))}}s(O,"displayName","YouTube");s(O,"canPlay",E.canPlay.youtube);const Q=I.getDefaultExportFromCjs(D),Z=M({__proto__:null,default:Q},[D]);exports.YouTube=Z;
@@ -0,0 +1,176 @@
1
+ import { g as U } from "./_commonjsHelpers-BkfeUUK-.js";
2
+ import I from "react";
3
+ import { u as L, p as M } from "./SearchSection-xe0nvARV.js";
4
+ function Y(a, e) {
5
+ for (var t = 0; t < e.length; t++) {
6
+ const o = e[t];
7
+ if (typeof o != "string" && !Array.isArray(o)) {
8
+ for (const r in o)
9
+ if (r !== "default" && !(r in a)) {
10
+ const n = Object.getOwnPropertyDescriptor(o, r);
11
+ n && Object.defineProperty(a, r, n.get ? n : {
12
+ enumerable: !0,
13
+ get: () => o[r]
14
+ });
15
+ }
16
+ }
17
+ }
18
+ return Object.freeze(Object.defineProperty(a, Symbol.toStringTag, { value: "Module" }));
19
+ }
20
+ var k = Object.create, u = Object.defineProperty, N = Object.getOwnPropertyDescriptor, j = Object.getOwnPropertyNames, V = Object.getPrototypeOf, B = Object.prototype.hasOwnProperty, K = (a, e, t) => e in a ? u(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t, x = (a, e) => {
21
+ for (var t in e)
22
+ u(a, t, { get: e[t], enumerable: !0 });
23
+ }, v = (a, e, t, o) => {
24
+ if (e && typeof e == "object" || typeof e == "function")
25
+ for (let r of j(e))
26
+ !B.call(a, r) && r !== t && u(a, r, { get: () => e[r], enumerable: !(o = N(e, r)) || o.enumerable });
27
+ return a;
28
+ }, F = (a, e, t) => (t = a != null ? k(V(a)) : {}, v(
29
+ // If the importer is in node compatibility mode or this is not an ESM
30
+ // file that has been converted to a CommonJS file using a Babel-
31
+ // compatible transform (i.e. "__esModule" has not been set), then set
32
+ // "default" to the CommonJS "module.exports" for node compatibility.
33
+ !a || !a.__esModule ? u(t, "default", { value: a, enumerable: !0 }) : t,
34
+ a
35
+ )), H = (a) => v(u({}, "__esModule", { value: !0 }), a), s = (a, e, t) => (K(a, typeof e != "symbol" ? e + "" : e, t), t), w = {};
36
+ x(w, {
37
+ default: () => O
38
+ });
39
+ var S = H(w), m = F(I), p = L, D = M;
40
+ const G = "https://www.youtube.com/iframe_api", T = "YT", z = "onYouTubeIframeAPIReady", f = /[?&](?:list|channel)=([a-zA-Z0-9_-]+)/, b = /user\/([a-zA-Z0-9_-]+)\/?/, Q = /youtube-nocookie\.com/, Z = "https://www.youtube-nocookie.com";
41
+ class O extends m.Component {
42
+ constructor() {
43
+ super(...arguments), s(this, "callPlayer", p.callPlayer), s(this, "parsePlaylist", (e) => {
44
+ if (e instanceof Array)
45
+ return {
46
+ listType: "playlist",
47
+ playlist: e.map(this.getID).join(",")
48
+ };
49
+ if (f.test(e)) {
50
+ const [, t] = e.match(f);
51
+ return {
52
+ listType: "playlist",
53
+ list: t.replace(/^UC/, "UU")
54
+ };
55
+ }
56
+ if (b.test(e)) {
57
+ const [, t] = e.match(b);
58
+ return {
59
+ listType: "user_uploads",
60
+ list: t
61
+ };
62
+ }
63
+ return {};
64
+ }), s(this, "onStateChange", (e) => {
65
+ const { data: t } = e, { onPlay: o, onPause: r, onBuffer: n, onBufferEnd: P, onEnded: _, onReady: g, loop: y, config: { playerVars: l, onUnstarted: d } } = this.props, { UNSTARTED: h, PLAYING: c, PAUSED: i, BUFFERING: E, ENDED: A, CUED: C } = window[T].PlayerState;
66
+ if (t === h && d(), t === c && (o(), P()), t === i && r(), t === E && n(), t === A) {
67
+ const R = !!this.callPlayer("getPlaylist");
68
+ y && !R && (l.start ? this.seekTo(l.start) : this.play()), _();
69
+ }
70
+ t === C && g();
71
+ }), s(this, "mute", () => {
72
+ this.callPlayer("mute");
73
+ }), s(this, "unmute", () => {
74
+ this.callPlayer("unMute");
75
+ }), s(this, "ref", (e) => {
76
+ this.container = e;
77
+ });
78
+ }
79
+ componentDidMount() {
80
+ this.props.onMount && this.props.onMount(this);
81
+ }
82
+ getID(e) {
83
+ return !e || e instanceof Array || f.test(e) ? null : e.match(D.MATCH_URL_YOUTUBE)[1];
84
+ }
85
+ load(e, t) {
86
+ const { playing: o, muted: r, playsinline: n, controls: P, loop: _, config: g, onError: y } = this.props, { playerVars: l, embedOptions: d } = g, h = this.getID(e);
87
+ if (t) {
88
+ if (f.test(e) || b.test(e) || e instanceof Array) {
89
+ this.player.loadPlaylist(this.parsePlaylist(e));
90
+ return;
91
+ }
92
+ this.player.cueVideoById({
93
+ videoId: h,
94
+ startSeconds: (0, p.parseStartTime)(e) || l.start,
95
+ endSeconds: (0, p.parseEndTime)(e) || l.end
96
+ });
97
+ return;
98
+ }
99
+ (0, p.getSDK)(G, T, z, (c) => c.loaded).then((c) => {
100
+ this.container && (this.player = new c.Player(this.container, {
101
+ width: "100%",
102
+ height: "100%",
103
+ videoId: h,
104
+ playerVars: {
105
+ autoplay: o ? 1 : 0,
106
+ mute: r ? 1 : 0,
107
+ controls: P ? 1 : 0,
108
+ start: (0, p.parseStartTime)(e),
109
+ end: (0, p.parseEndTime)(e),
110
+ origin: window.location.origin,
111
+ playsinline: n ? 1 : 0,
112
+ ...this.parsePlaylist(e),
113
+ ...l
114
+ },
115
+ events: {
116
+ onReady: () => {
117
+ _ && this.player.setLoop(!0), this.props.onReady();
118
+ },
119
+ onPlaybackRateChange: (i) => this.props.onPlaybackRateChange(i.data),
120
+ onPlaybackQualityChange: (i) => this.props.onPlaybackQualityChange(i),
121
+ onStateChange: this.onStateChange,
122
+ onError: (i) => y(i.data)
123
+ },
124
+ host: Q.test(e) ? Z : void 0,
125
+ ...d
126
+ }));
127
+ }, y), d.events && console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer’s callback props instead, eg onReady, onPlay, onPause");
128
+ }
129
+ play() {
130
+ this.callPlayer("playVideo");
131
+ }
132
+ pause() {
133
+ this.callPlayer("pauseVideo");
134
+ }
135
+ stop() {
136
+ document.body.contains(this.callPlayer("getIframe")) && this.callPlayer("stopVideo");
137
+ }
138
+ seekTo(e, t = !1) {
139
+ this.callPlayer("seekTo", e), !t && !this.props.playing && this.pause();
140
+ }
141
+ setVolume(e) {
142
+ this.callPlayer("setVolume", e * 100);
143
+ }
144
+ setPlaybackRate(e) {
145
+ this.callPlayer("setPlaybackRate", e);
146
+ }
147
+ setLoop(e) {
148
+ this.callPlayer("setLoop", e);
149
+ }
150
+ getDuration() {
151
+ return this.callPlayer("getDuration");
152
+ }
153
+ getCurrentTime() {
154
+ return this.callPlayer("getCurrentTime");
155
+ }
156
+ getSecondsLoaded() {
157
+ return this.callPlayer("getVideoLoadedFraction") * this.getDuration();
158
+ }
159
+ render() {
160
+ const { display: e } = this.props, t = {
161
+ width: "100%",
162
+ height: "100%",
163
+ display: e
164
+ };
165
+ return /* @__PURE__ */ m.default.createElement("div", { style: t }, /* @__PURE__ */ m.default.createElement("div", { ref: this.ref }));
166
+ }
167
+ }
168
+ s(O, "displayName", "YouTube");
169
+ s(O, "canPlay", D.canPlay.youtube);
170
+ const $ = /* @__PURE__ */ U(S), X = /* @__PURE__ */ Y({
171
+ __proto__: null,
172
+ default: $
173
+ }, [S]);
174
+ export {
175
+ X as Y
176
+ };
@@ -0,0 +1,28 @@
1
+ var u = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
+ function f(e) {
3
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4
+ }
5
+ function l(e) {
6
+ if (e.__esModule) return e;
7
+ var r = e.default;
8
+ if (typeof r == "function") {
9
+ var t = function o() {
10
+ return this instanceof o ? Reflect.construct(r, arguments, this.constructor) : r.apply(this, arguments);
11
+ };
12
+ t.prototype = r.prototype;
13
+ } else t = {};
14
+ return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(o) {
15
+ var n = Object.getOwnPropertyDescriptor(e, o);
16
+ Object.defineProperty(t, o, n.get ? n : {
17
+ enumerable: !0,
18
+ get: function() {
19
+ return e[o];
20
+ }
21
+ });
22
+ }), t;
23
+ }
24
+ export {
25
+ l as a,
26
+ u as c,
27
+ f as g
28
+ };
@@ -0,0 +1 @@
1
+ "use strict";var u=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function f(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function l(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var t=function o(){return this instanceof o?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};t.prototype=r.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}),t}exports.commonjsGlobal=u;exports.getAugmentedNamespace=l;exports.getDefaultExportFromCjs=f;
@@ -1 +1 @@
1
- "use strict";const l=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),y=require("react");require("./hoist-non-react-statics.cjs-Dr-ytKVG.cjs");function h(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const r in n)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(e,r,t.get?t:{enumerable:!0,get:()=>n[r]})}}return e.default=n,Object.freeze(e)}const u=h(y);exports.jsx=function(e,r){var t=arguments;if(r==null||!l.hasOwn.call(r,"css"))return u.createElement.apply(void 0,t);var a=t.length,i=new Array(a);i[0]=l.Emotion$1,i[1]=l.createEmotionProps(e,r);for(var s=2;s<a;s++)i[s]=t[s];return u.createElement.apply(null,i)};(function(n){var e;e||(e=n.JSX||(n.JSX={}))})(exports.jsx||(exports.jsx={}));function g(){for(var n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];return l.serializeStyles(e)}function S(){var n=g.apply(void 0,arguments),e="animation-"+n.name;return{name:e,styles:"@keyframes "+e+"{"+n.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var b=function n(e){for(var r=e.length,t=0,a="";t<r;t++){var i=e[t];if(i!=null){var s=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))s=n(i);else{s="";for(var o in i)i[o]&&o&&(s&&(s+=" "),s+=o)}break}default:s=i}s&&(a&&(a+=" "),a+=s)}}return a};function E(n,e,r){var t=[],a=l.getRegisteredStyles(n,t,r);return t.length<2?r:a+e(t)}var p=function(e){var r=e.cache,t=e.serializedArr;return l.useInsertionEffectAlwaysWithSyncFallback(function(){for(var a=0;a<t.length;a++)l.insertStyles(r,t[a],!1)}),null},w=l.withEmotionCache(function(n,e){var r=[],t=function(){for(var f=arguments.length,m=new Array(f),c=0;c<f;c++)m[c]=arguments[c];var v=l.serializeStyles(m,e.registered);return r.push(v),l.registerStyles(e,v,!1),e.key+"-"+v.name},a=function(){for(var f=arguments.length,m=new Array(f),c=0;c<f;c++)m[c]=arguments[c];return E(e.registered,t,b(m))},i={css:t,cx:a,theme:u.useContext(l.ThemeContext)},s=n.children(i);return u.createElement(u.Fragment,null,u.createElement(p,{cache:e,serializedArr:r}),s)});exports.ClassNames=w;exports.css=g;exports.keyframes=S;
1
+ "use strict";const l=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),y=require("react");require("./hoist-non-react-statics.cjs-DGqlkKoS.cjs");function h(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const r in n)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(e,r,t.get?t:{enumerable:!0,get:()=>n[r]})}}return e.default=n,Object.freeze(e)}const u=h(y);exports.jsx=function(e,r){var t=arguments;if(r==null||!l.hasOwn.call(r,"css"))return u.createElement.apply(void 0,t);var a=t.length,i=new Array(a);i[0]=l.Emotion$1,i[1]=l.createEmotionProps(e,r);for(var s=2;s<a;s++)i[s]=t[s];return u.createElement.apply(null,i)};(function(n){var e;e||(e=n.JSX||(n.JSX={}))})(exports.jsx||(exports.jsx={}));function g(){for(var n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];return l.serializeStyles(e)}function S(){var n=g.apply(void 0,arguments),e="animation-"+n.name;return{name:e,styles:"@keyframes "+e+"{"+n.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var b=function n(e){for(var r=e.length,t=0,a="";t<r;t++){var i=e[t];if(i!=null){var s=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))s=n(i);else{s="";for(var o in i)i[o]&&o&&(s&&(s+=" "),s+=o)}break}default:s=i}s&&(a&&(a+=" "),a+=s)}}return a};function E(n,e,r){var t=[],a=l.getRegisteredStyles(n,t,r);return t.length<2?r:a+e(t)}var p=function(e){var r=e.cache,t=e.serializedArr;return l.useInsertionEffectAlwaysWithSyncFallback(function(){for(var a=0;a<t.length;a++)l.insertStyles(r,t[a],!1)}),null},w=l.withEmotionCache(function(n,e){var r=[],t=function(){for(var f=arguments.length,m=new Array(f),c=0;c<f;c++)m[c]=arguments[c];var v=l.serializeStyles(m,e.registered);return r.push(v),l.registerStyles(e,v,!1),e.key+"-"+v.name},a=function(){for(var f=arguments.length,m=new Array(f),c=0;c<f;c++)m[c]=arguments[c];return E(e.registered,t,b(m))},i={css:t,cx:a,theme:u.useContext(l.ThemeContext)},s=n.children(i);return u.createElement(u.Fragment,null,u.createElement(p,{cache:e,serializedArr:r}),s)});exports.ClassNames=w;exports.css=g;exports.keyframes=S;
@@ -1,6 +1,6 @@
1
1
  import { s as g, h, E as y, c as E, w as S, T as w, r as p, a as x, i as b, g as z } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
2
2
  import * as u from "react";
3
- import "./hoist-non-react-statics.cjs-CAHiRNzQ.js";
3
+ import "./hoist-non-react-statics.cjs-NQME298B.js";
4
4
  var v = function(e, r) {
5
5
  var n = arguments;
6
6
  if (r == null || !h.call(r, "css"))
@@ -1,7 +1,7 @@
1
1
  import { c as Je, g as fe } from "./floating-ui.dom-B931An3C.js";
2
2
  import * as s from "react";
3
3
  import { useLayoutEffect as Be, useEffect as Ke, useRef as Qe } from "react";
4
- import { r as ge } from "./index-64mXPFBC.js";
4
+ import { r as ge } from "./index-B1vKwsDE.js";
5
5
  var te = typeof document < "u" ? Be : Ke;
6
6
  function re(e, t) {
7
7
  if (e === t)
@@ -1,4 +1,4 @@
1
- "use strict";const ne=require("./floating-ui.dom-CN4MB7mG.cjs"),Y=require("react"),ye=require("./index-EeoArxOx.cjs");function Ze(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const s=Ze(Y);var re=typeof document<"u"?Y.useLayoutEffect:Y.useEffect;function ie(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!ie(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!ie(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Ae(e){const t=s.useRef(e);return re(()=>{t.current=e}),t}function Je(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,whileElementsMounted:i,open:u}=e,[a,f]=s.useState({x:null,y:null,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,g]=s.useState(r);ie(v,r)||g(r);const c=s.useRef(null),l=s.useRef(null),p=s.useRef(a),w=Ae(i),b=Ae(o),[d,m]=s.useState(null),[I,E]=s.useState(null),F=s.useCallback(T=>{c.current!==T&&(c.current=T,m(T))},[]),N=s.useCallback(T=>{l.current!==T&&(l.current=T,E(T))},[]),O=s.useCallback(()=>{if(!c.current||!l.current)return;const T={placement:t,strategy:n,middleware:v};b.current&&(T.platform=b.current),ne.computePosition(c.current,l.current,T).then(D=>{const A={...D,isPositioned:!0};V.current&&!ie(p.current,A)&&(p.current=A,ye.reactDomExports.flushSync(()=>{f(A)}))})},[v,t,n,b]);re(()=>{u===!1&&p.current.isPositioned&&(p.current.isPositioned=!1,f(T=>({...T,isPositioned:!1})))},[u]);const V=s.useRef(!1);re(()=>(V.current=!0,()=>{V.current=!1}),[]),re(()=>{if(d&&I){if(w.current)return w.current(d,I,O);O()}},[d,I,O,w]);const W=s.useMemo(()=>({reference:c,floating:l,setReference:F,setFloating:N}),[F,N]),K=s.useMemo(()=>({reference:d,floating:I}),[d,I]);return s.useMemo(()=>({...a,update:O,refs:W,elements:K,reference:F,floating:N}),[a,O,W,K,F,N])}var Qe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},z=new WeakMap,ee=new WeakMap,te={},pe=0,Ke=function(e){return e&&(e.host||Ke(e.parentNode))},et=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ke(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},tt=function(e,t,n,r){var o=et(t,Array.isArray(e)?e:[e]);te[n]||(te[n]=new WeakMap);var i=te[n],u=[],a=new Set,f=new Set(o),v=function(c){!c||a.has(c)||(a.add(c),v(c.parentNode))};o.forEach(v);var g=function(c){!c||f.has(c)||Array.prototype.forEach.call(c.children,function(l){if(a.has(l))g(l);else try{var p=l.getAttribute(r),w=p!==null&&p!=="false",b=(z.get(l)||0)+1,d=(i.get(l)||0)+1;z.set(l,b),i.set(l,d),u.push(l),b===1&&w&&ee.set(l,!0),d===1&&l.setAttribute(n,"true"),w||l.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",l,m)}})};return g(t),a.clear(),pe++,function(){u.forEach(function(c){var l=z.get(c)-1,p=i.get(c)-1;z.set(c,l),i.set(c,p),l||(ee.has(c)||c.removeAttribute(r),ee.delete(c)),p||c.removeAttribute(n)}),pe--,pe||(z=new WeakMap,z=new WeakMap,ee=new WeakMap,te={})}},nt=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Qe(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),tt(r,o,n,"aria-hidden")):function(){return null}};/*!
1
+ "use strict";const ne=require("./floating-ui.dom-CN4MB7mG.cjs"),Y=require("react"),ye=require("./index-41nUb2kP.cjs");function Ze(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const s=Ze(Y);var re=typeof document<"u"?Y.useLayoutEffect:Y.useEffect;function ie(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!ie(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!ie(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Ae(e){const t=s.useRef(e);return re(()=>{t.current=e}),t}function Je(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,whileElementsMounted:i,open:u}=e,[a,f]=s.useState({x:null,y:null,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,g]=s.useState(r);ie(v,r)||g(r);const c=s.useRef(null),l=s.useRef(null),p=s.useRef(a),w=Ae(i),b=Ae(o),[d,m]=s.useState(null),[I,E]=s.useState(null),F=s.useCallback(T=>{c.current!==T&&(c.current=T,m(T))},[]),N=s.useCallback(T=>{l.current!==T&&(l.current=T,E(T))},[]),O=s.useCallback(()=>{if(!c.current||!l.current)return;const T={placement:t,strategy:n,middleware:v};b.current&&(T.platform=b.current),ne.computePosition(c.current,l.current,T).then(D=>{const A={...D,isPositioned:!0};V.current&&!ie(p.current,A)&&(p.current=A,ye.reactDomExports.flushSync(()=>{f(A)}))})},[v,t,n,b]);re(()=>{u===!1&&p.current.isPositioned&&(p.current.isPositioned=!1,f(T=>({...T,isPositioned:!1})))},[u]);const V=s.useRef(!1);re(()=>(V.current=!0,()=>{V.current=!1}),[]),re(()=>{if(d&&I){if(w.current)return w.current(d,I,O);O()}},[d,I,O,w]);const W=s.useMemo(()=>({reference:c,floating:l,setReference:F,setFloating:N}),[F,N]),K=s.useMemo(()=>({reference:d,floating:I}),[d,I]);return s.useMemo(()=>({...a,update:O,refs:W,elements:K,reference:F,floating:N}),[a,O,W,K,F,N])}var Qe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},z=new WeakMap,ee=new WeakMap,te={},pe=0,Ke=function(e){return e&&(e.host||Ke(e.parentNode))},et=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ke(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},tt=function(e,t,n,r){var o=et(t,Array.isArray(e)?e:[e]);te[n]||(te[n]=new WeakMap);var i=te[n],u=[],a=new Set,f=new Set(o),v=function(c){!c||a.has(c)||(a.add(c),v(c.parentNode))};o.forEach(v);var g=function(c){!c||f.has(c)||Array.prototype.forEach.call(c.children,function(l){if(a.has(l))g(l);else try{var p=l.getAttribute(r),w=p!==null&&p!=="false",b=(z.get(l)||0)+1,d=(i.get(l)||0)+1;z.set(l,b),i.set(l,d),u.push(l),b===1&&w&&ee.set(l,!0),d===1&&l.setAttribute(n,"true"),w||l.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",l,m)}})};return g(t),a.clear(),pe++,function(){u.forEach(function(c){var l=z.get(c)-1,p=i.get(c)-1;z.set(c,l),i.set(c,p),l||(ee.has(c)||c.removeAttribute(r),ee.delete(c)),p||c.removeAttribute(n)}),pe--,pe||(z=new WeakMap,z=new WeakMap,ee=new WeakMap,te={})}},nt=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Qe(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),tt(r,o,n,"aria-hidden")):function(){return null}};/*!
2
2
  * tabbable 6.2.0
3
3
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
4
4
  */var rt=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Ee=rt.join(","),Ve=typeof Element>"u",Z=Ve?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ue=!Ve&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},se=function e(t,n){var r;n===void 0&&(n=!0);var o=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),i=o===""||o==="true",u=i||n&&t&&e(t.parentNode);return u},ot=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},it=function(t,n,r){if(se(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(Ee));return n&&Z.call(t,Ee)&&o.unshift(t),o=o.filter(r),o},ut=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var u=i.shift();if(!se(u,!1))if(u.tagName==="SLOT"){var a=u.assignedElements(),f=a.length?a:u.children,v=e(f,!0,r);r.flatten?o.push.apply(o,v):o.push({scopeParent:u,candidates:v})}else{var g=Z.call(u,Ee);g&&r.filter(u)&&(n||!t.includes(u))&&o.push(u);var c=u.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(u),l=!se(c,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(u));if(c&&l){var p=e(c===!0?u.children:c.children,!0,r);r.flatten?o.push.apply(o,p):o.push({scopeParent:u,candidates:p})}else i.unshift.apply(i,u.children)}}return o},We=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},$e=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||ot(t))&&!We(t)?0:t.tabIndex},st=function(t,n){var r=$e(t);return r<0&&n&&!We(t)?0:r},at=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},je=function(t){return t.tagName==="INPUT"},lt=function(t){return je(t)&&t.type==="hidden"},ct=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},ft=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},dt=function(t){if(!t.name)return!0;var n=t.form||ue(t),r=function(a){return n.querySelectorAll('input[type="radio"][name="'+a+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=r(window.CSS.escape(t.name));else try{o=r(t.name)}catch(u){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",u.message),!1}var i=ft(o,t.form);return!i||i===t},vt=function(t){return je(t)&&t.type==="radio"},pt=function(t){return vt(t)&&!dt(t)},bt=function(t){var n,r=t&&ue(t),o=(n=r)===null||n===void 0?void 0:n.host,i=!1;if(r&&r!==t){var u,a,f;for(i=!!((u=o)!==null&&u!==void 0&&(a=u.ownerDocument)!==null&&a!==void 0&&a.contains(o)||t!=null&&(f=t.ownerDocument)!==null&&f!==void 0&&f.contains(t));!i&&o;){var v,g,c;r=ue(o),o=(v=r)===null||v===void 0?void 0:v.host,i=!!((g=o)!==null&&g!==void 0&&(c=g.ownerDocument)!==null&&c!==void 0&&c.contains(o))}}return i},Pe=function(t){var n=t.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},gt=function(t,n){var r=n.displayCheck,o=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var i=Z.call(t,"details>summary:first-of-type"),u=i?t.parentElement:t;if(Z.call(u,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof o=="function"){for(var a=t;t;){var f=t.parentElement,v=ue(t);if(f&&!f.shadowRoot&&o(f)===!0)return Pe(t);t.assignedSlot?t=t.assignedSlot:!f&&v!==t.ownerDocument?t=v.host:t=f}t=a}if(bt(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Pe(t);return!1},mt=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var o=n.children.item(r);if(o.tagName==="LEGEND")return Z.call(n,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}n=n.parentElement}return!1},ht=function(t,n){return!(n.disabled||se(n)||lt(n)||gt(n,t)||ct(n)||mt(n))},Fe=function(t,n){return!(pt(n)||$e(n)<0||!ht(t,n))},yt=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Et=function e(t){var n=[],r=[];return t.forEach(function(o,i){var u=!!o.scopeParent,a=u?o.scopeParent:o,f=st(a,u),v=u?e(o.candidates):a;f===0?u?n.push.apply(n,v):n.push(a):r.push({documentOrder:i,tabIndex:f,item:o,isScope:u,content:v})}),r.sort(at).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(n)},ae=function(t,n){n=n||{};var r;return n.getShadowRoot?r=ut([t],n.includeContainer,{filter:Fe.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:yt}):r=it(t,n.includeContainer,Fe.bind(null,n)),Et(r)},j=typeof document<"u"?Y.useLayoutEffect:Y.useEffect;let be=!1,Rt=0;const Oe=()=>"floating-ui-"+Rt++;function wt(){const[e,t]=s.useState(()=>be?Oe():void 0);return j(()=>{e==null&&t(Oe())},[]),s.useEffect(()=>{be||(be=!0)},[]),e}const St=s.useId,le=St||wt;function xt(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){e.set(t,(e.get(t)||[]).filter(r=>r!==n))}}}const Tt=s.createContext(null),Ct=s.createContext(null),It=()=>{var e;return((e=s.useContext(Tt))==null?void 0:e.id)||null},Se=()=>s.useContext(Ct);function G(e){return(e==null?void 0:e.ownerDocument)||document}function qe(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function At(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function xe(e){return G(e).defaultView||window}function H(e){return e?e instanceof xe(e).Element:!1}function J(e){return e?e instanceof xe(e).HTMLElement:!1}function Pt(e){if(typeof ShadowRoot>"u")return!1;const t=xe(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Ft(e){if(e.mozInputSource===0&&e.isTrusted)return!0;const t=/Android/i;return(t.test(qe())||t.test(At()))&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Ot(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType!=="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0}function De(){return/apple/i.test(navigator.vendor)}function Dt(){return qe().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Me(e,t){return["mouse","pen"].includes(e)}function $(e,t){if(!e||!t)return!1;const n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Pt(n)){let r=t;do{if(r&&e===r)return!0;r=r.parentNode||r.host}while(r)}return!1}function oe(e,t){let n=e.filter(o=>{var i;return o.parentId===t&&((i=o.context)==null?void 0:i.open)})||[],r=n;for(;r.length;)r=e.filter(o=>{var i;return(i=r)==null?void 0:i.some(u=>{var a;return o.parentId===u.id&&((a=o.context)==null?void 0:a.open)})})||[],n=n.concat(r);return n}function He(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Mt(e){const t=Y.useRef(e);return j(()=>{t.current=e}),t}function ce(){return ce=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ce.apply(this,arguments)}function Re(e){let t=e.activeElement;for(;((n=t)==null||(r=n.shadowRoot)==null?void 0:r.activeElement)!=null;){var n,r;t=t.shadowRoot.activeElement}return t}let ke=0;function q(e,t){t===void 0&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(ke);const i=()=>e==null?void 0:e.focus({preventScroll:n});o?i():ke=requestAnimationFrame(i)}function kt(e,t){var n;let r=[],o=(n=e.find(i=>i.id===t))==null?void 0:n.parentId;for(;o;){const i=e.find(u=>u.id===o);o=i==null?void 0:i.parentId,i&&(r=r.concat(i))}return r}const Nt="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function _e(e){return J(e)&&e.matches(Nt)}function ge(e){e.preventDefault(),e.stopPropagation()}const fe=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Ue(e,t){const n=ae(e,fe());t==="prev"&&n.reverse();const r=n.indexOf(Re(G(e)));return n.slice(r+1)[0]}function ze(){return Ue(document.body,"next")}function Ge(){return Ue(document.body,"prev")}function X(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!$(n,r)}function Lt(e){ae(e,fe()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function Bt(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const Kt=s.useInsertionEffect,Vt=Kt||(e=>e());function Te(e){const t=s.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return Vt(()=>{t.current=e}),s.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}const Ce={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let we,Ie;function Ne(e){e.key==="Tab"&&(we=e.target,clearTimeout(Ie))}function Wt(e){const t=we===e.relatedTarget;return we=e.relatedTarget,clearTimeout(Ie),t}const de=s.forwardRef(function(t,n){const r=Te(t.onFocus),[o,i]=s.useState();return j(()=>(De()&&i("button"),document.addEventListener("keydown",Ne),()=>{document.removeEventListener("keydown",Ne)}),[]),s.createElement("span",ce({},t,{ref:n,tabIndex:0,role:o,"aria-hidden":o?void 0:!0,"data-floating-ui-focus-guard":"",style:Ce,onFocus:u=>{De()&&Dt()&&!Wt(u)?(u.persist(),Ie=window.setTimeout(()=>{r(u)},50)):r(u)}}))}),Ye=s.createContext(null),$t=function(e){let{id:t,enabled:n=!0}=e===void 0?{}:e;const[r,o]=s.useState(null),i=le(),u=Xe();return j(()=>{if(!n)return;const a=t?document.getElementById(t):null;if(a)a.setAttribute("data-floating-ui-portal",""),o(a);else{const f=document.createElement("div");f.id=t||i,f.setAttribute("data-floating-ui-portal",""),o(f);const v=(u==null?void 0:u.portalNode)||document.body;return v.appendChild(f),()=>{v.removeChild(f)}}},[t,u,i,n]),r},jt=e=>{let{children:t,id:n,root:r=null,preserveTabOrder:o=!0}=e;const i=$t({id:n,enabled:!r}),[u,a]=s.useState(null),f=s.useRef(null),v=s.useRef(null),g=s.useRef(null),c=s.useRef(null),l=!!u&&!u.modal&&!!(r||i)&&o;return s.useEffect(()=>{if(!i||!o||u!=null&&u.modal)return;function p(w){i&&X(w)&&(w.type==="focusin"?Bt:Lt)(i)}return i.addEventListener("focusin",p,!0),i.addEventListener("focusout",p,!0),()=>{i.removeEventListener("focusin",p,!0),i.removeEventListener("focusout",p,!0)}},[i,o,u==null?void 0:u.modal]),s.createElement(Ye.Provider,{value:s.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:f,afterOutsideRef:v,beforeInsideRef:g,afterInsideRef:c,portalNode:i,setFocusManagerState:a}),[o,i])},l&&i&&s.createElement(de,{ref:f,onFocus:p=>{if(X(p,i)){var w;(w=g.current)==null||w.focus()}else{const b=Ge()||(u==null?void 0:u.refs.domReference.current);b==null||b.focus()}}}),l&&i&&s.createElement("span",{"aria-owns":i.id,style:Ce}),r?ye.reactDomExports.createPortal(t,r):i?ye.reactDomExports.createPortal(t,i):null,l&&i&&s.createElement(de,{ref:v,onFocus:p=>{if(X(p,i)){var w;(w=c.current)==null||w.focus()}else{const b=ze()||(u==null?void 0:u.refs.domReference.current);b==null||b.focus(),u!=null&&u.closeOnFocusOut&&(u==null||u.onOpenChange(!1))}}}))},Xe=()=>s.useContext(Ye),qt=s.forwardRef(function(t,n){return s.createElement("button",ce({},t,{ref:n,tabIndex:-1,style:Ce}))});function Ht(e){let{context:t,children:n,order:r=["content"],guards:o=!0,initialFocus:i=0,returnFocus:u=!0,modal:a=!0,visuallyHiddenDismiss:f=!1,closeOnFocusOut:v=!0}=e;const{refs:g,nodeId:c,onOpenChange:l,events:p,dataRef:w,elements:{domReference:b,floating:d}}=t,m=Mt(r),I=Se(),E=Xe(),[F,N]=s.useState(null),O=typeof i=="number"&&i<0,V=s.useRef(null),W=s.useRef(null),K=s.useRef(!1),T=s.useRef(null),D=s.useRef(!1),A=E!=null,S=b&&b.getAttribute("role")==="combobox"&&_e(b),L=s.useCallback(function(h){return h===void 0&&(h=d),h?ae(h,fe()):[]},[d]),C=s.useCallback(h=>{const R=L(h);return m.current.map(y=>b&&y==="reference"?b:d&&y==="floating"?d:R).filter(Boolean).flat()},[b,d,m,L]);s.useEffect(()=>{if(!a)return;function h(y){if(y.key==="Tab"){L().length===0&&!S&&ge(y);const x=C(),M=He(y);m.current[0]==="reference"&&M===b&&(ge(y),y.shiftKey?q(x[x.length-1]):q(x[1])),m.current[1]==="floating"&&M===d&&y.shiftKey&&(ge(y),q(x[0]))}}const R=G(d);return R.addEventListener("keydown",h),()=>{R.removeEventListener("keydown",h)}},[b,d,a,m,g,S,L,C]),s.useEffect(()=>{if(!v)return;function h(){D.current=!0,setTimeout(()=>{D.current=!1})}function R(y){const x=y.relatedTarget,M=!($(b,x)||$(d,x)||$(x,d)||$(E==null?void 0:E.portalNode,x)||x!=null&&x.hasAttribute("data-floating-ui-focus-guard")||I&&(oe(I.nodesRef.current,c).find(P=>{var k,B;return $((k=P.context)==null?void 0:k.elements.floating,x)||$((B=P.context)==null?void 0:B.elements.domReference,x)})||kt(I.nodesRef.current,c).find(P=>{var k,B;return((k=P.context)==null?void 0:k.elements.floating)===x||((B=P.context)==null?void 0:B.elements.domReference)===x})));x&&M&&!D.current&&x!==T.current&&(K.current=!0,setTimeout(()=>l(!1)))}if(d&&J(b))return b.addEventListener("focusout",R),b.addEventListener("pointerdown",h),!a&&d.addEventListener("focusout",R),()=>{b.removeEventListener("focusout",R),b.removeEventListener("pointerdown",h),!a&&d.removeEventListener("focusout",R)}},[b,d,a,c,I,E,l,v]),s.useEffect(()=>{var h;const R=Array.from((E==null||(h=E.portalNode)==null?void 0:h.querySelectorAll("[data-floating-ui-portal]"))||[]);function y(){return[V.current,W.current].filter(Boolean)}if(d&&a){const x=[d,...R,...y()],M=nt(m.current.includes("reference")||S?x.concat(b||[]):x);return()=>{M()}}},[b,d,a,m,E,S]),s.useEffect(()=>{if(a&&!o&&d){const h=[],R=fe(),y=ae(G(d).body,R),x=C(),M=y.filter(P=>!x.includes(P));return M.forEach((P,k)=>{h[k]=P.getAttribute("tabindex"),P.setAttribute("tabindex","-1")}),()=>{M.forEach((P,k)=>{const B=h[k];B==null?P.removeAttribute("tabindex"):P.setAttribute("tabindex",B)})}}},[d,a,o,C]),j(()=>{if(!d)return;const h=G(d);let R=u,y=!1;const x=Re(h),M=w.current;T.current=x;const P=C(d),k=(typeof i=="number"?P[i]:i.current)||d;!O&&q(k,{preventScroll:k===d});function B(U){if(U.type==="escapeKey"&&g.domReference.current&&(T.current=g.domReference.current),["referencePress","escapeKey"].includes(U.type))return;const ve=U.data.returnFocus;typeof ve=="object"?(R=!0,y=ve.preventScroll):R=ve}return p.on("dismiss",B),()=>{if(p.off("dismiss",B),$(d,Re(h))&&g.domReference.current&&(T.current=g.domReference.current),R&&J(T.current)&&!K.current)if(!g.domReference.current||D.current)q(T.current,{cancelPrevious:!1,preventScroll:y});else{var U;M.__syncReturnFocus=!0,(U=T.current)==null||U.focus({preventScroll:y}),setTimeout(()=>{delete M.__syncReturnFocus})}}},[d,C,i,u,w,g,p,O]),j(()=>{if(E)return E.setFocusManagerState({...t,modal:a,closeOnFocusOut:v}),()=>{E.setFocusManagerState(null)}},[E,a,v,t]),j(()=>{if(O||!d)return;function h(){N(L().length)}if(h(),typeof MutationObserver=="function"){const R=new MutationObserver(h);return R.observe(d,{childList:!0,subtree:!0}),()=>{R.disconnect()}}},[d,L,O,g]);const Q=o&&(A||a)&&!S;function _(h){return f&&a?s.createElement(qt,{ref:h==="start"?V:W,onClick:()=>l(!1)},typeof f=="string"?f:"Dismiss"):null}return s.createElement(s.Fragment,null,Q&&s.createElement(de,{ref:E==null?void 0:E.beforeInsideRef,onFocus:h=>{if(a){const y=C();q(r[0]==="reference"?y[0]:y[y.length-1])}else if(E!=null&&E.preserveTabOrder&&E.portalNode)if(K.current=!1,X(h,E.portalNode)){const y=ze()||b;y==null||y.focus()}else{var R;(R=E.beforeOutsideRef.current)==null||R.focus()}}}),S?null:_("start"),s.cloneElement(n,F===0||r.includes("floating")?{tabIndex:0}:{}),_("end"),Q&&s.createElement(de,{ref:E==null?void 0:E.afterInsideRef,onFocus:h=>{if(a)q(C()[0]);else if(E!=null&&E.preserveTabOrder&&E.portalNode)if(K.current=!0,X(h,E.portalNode)){const y=Ge()||b;y==null||y.focus()}else{var R;(R=E.afterOutsideRef.current)==null||R.focus()}}}))}function Le(e){return J(e.target)&&e.target.tagName==="BUTTON"}function Be(e){return _e(e)}const _t=function(e,t){let{open:n,onOpenChange:r,dataRef:o,refs:i}=e,{enabled:u=!0,event:a="click",toggle:f=!0,ignoreMouse:v=!1,keyboardHandlers:g=!0}=t===void 0?{}:t;const c=s.useRef();return s.useMemo(()=>u?{reference:{onPointerDown(l){c.current=l.pointerType},onMouseDown(l){l.button===0&&(Me(c.current)&&v||a!=="click"&&(n?f&&(!o.current.openEvent||o.current.openEvent.type==="mousedown")&&r(!1):(l.preventDefault(),r(!0)),o.current.openEvent=l.nativeEvent))},onClick(l){if(!o.current.__syncReturnFocus){if(a==="mousedown"&&c.current){c.current=void 0;return}Me(c.current)&&v||(n?f&&(!o.current.openEvent||o.current.openEvent.type==="click")&&r(!1):r(!0),o.current.openEvent=l.nativeEvent)}},onKeyDown(l){c.current=void 0,g&&(Le(l)||(l.key===" "&&!Be(i.domReference.current)&&l.preventDefault(),l.key==="Enter"&&(n?f&&r(!1):r(!0))))},onKeyUp(l){g&&(Le(l)||Be(i.domReference.current)||l.key===" "&&(n?f&&r(!1):r(!0)))}}}:{},[u,o,a,v,g,i,f,n,r])};function me(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}const Ut={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},zt={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Gt=function(e){var t,n;return e===void 0&&(e=!0),{escapeKeyBubbles:typeof e=="boolean"?e:(t=e.escapeKey)!=null?t:!0,outsidePressBubbles:typeof e=="boolean"?e:(n=e.outsidePress)!=null?n:!0}},Yt=function(e,t){let{open:n,onOpenChange:r,events:o,nodeId:i,elements:{reference:u,domReference:a,floating:f}}=e,{enabled:v=!0,escapeKey:g=!0,outsidePress:c=!0,outsidePressEvent:l="pointerdown",referencePress:p=!1,referencePressEvent:w="pointerdown",ancestorScroll:b=!1,bubbles:d=!0}={};const m=Se(),I=It()!=null,E=Te(typeof c=="function"?c:()=>!1),F=typeof c=="function"?E:c,N=s.useRef(!1),{escapeKeyBubbles:O,outsidePressBubbles:V}=Gt(d);return s.useEffect(()=>{if(!n||!v)return;function W(S){if(S.key==="Escape"){if(!O&&m&&oe(m.nodesRef.current,i).length>0)return;o.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),r(!1)}}function K(S){const L=N.current;if(N.current=!1,L||typeof F=="function"&&!F(S))return;const C=He(S);if(J(C)&&f){const _=f.ownerDocument.defaultView||window,h=C.scrollWidth>C.clientWidth,R=C.scrollHeight>C.clientHeight;let y=R&&S.offsetX>C.clientWidth;if(R&&_.getComputedStyle(C).direction==="rtl"&&(y=S.offsetX<=C.offsetWidth-C.clientWidth),y||h&&S.offsetY>C.clientHeight)return}const Q=m&&oe(m.nodesRef.current,i).some(_=>{var h;return me(S,(h=_.context)==null?void 0:h.elements.floating)});me(S,f)||me(S,a)||Q||!V&&m&&oe(m.nodesRef.current,i).length>0||(o.emit("dismiss",{type:"outsidePress",data:{returnFocus:I?{preventScroll:!0}:Ft(S)||Ot(S)}}),r(!1))}function T(){r(!1)}const D=G(f);g&&D.addEventListener("keydown",W),F&&D.addEventListener(l,K);let A=[];return b&&(H(a)&&(A=ne.getOverflowAncestors(a)),H(f)&&(A=A.concat(ne.getOverflowAncestors(f))),!H(u)&&u&&u.contextElement&&(A=A.concat(ne.getOverflowAncestors(u.contextElement)))),A=A.filter(S=>{var L;return S!==((L=D.defaultView)==null?void 0:L.visualViewport)}),A.forEach(S=>{S.addEventListener("scroll",T,{passive:!0})}),()=>{g&&D.removeEventListener("keydown",W),F&&D.removeEventListener(l,K),A.forEach(S=>{S.removeEventListener("scroll",T)})}},[f,a,u,g,F,l,o,m,i,n,r,b,v,O,V,I]),s.useEffect(()=>{N.current=!1},[F,l]),s.useMemo(()=>v?{reference:{[Ut[w]]:()=>{p&&(o.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),r(!1))}},floating:{[zt[l]]:()=>{N.current=!0}}}:{},[v,o,p,l,w,r])};function Xt(e){return s.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})},e)}const Zt=function(e,t){let{open:n}=e,{enabled:r=!0,role:o="dialog"}={};const i=le(),u=le();return s.useMemo(()=>{const a={id:i,role:o};return r?o==="tooltip"?{reference:{"aria-describedby":n?i:void 0},floating:a}:{reference:{"aria-expanded":n?"true":"false","aria-haspopup":o==="alertdialog"?"dialog":o,"aria-controls":n?i:void 0,...o==="listbox"&&{role:"combobox"},...o==="menu"&&{id:u}},floating:{...a,...o==="menu"&&{"aria-labelledby":u}}}:{}},[r,o,n,i,u])};function Jt(e){e===void 0&&(e={});const{open:t=!1,onOpenChange:n,nodeId:r}=e,o=Je(e),i=Se(),u=s.useRef(null),a=s.useRef({}),f=s.useState(()=>xt())[0],[v,g]=s.useState(null),c=s.useCallback(m=>{const I=H(m)?{getBoundingClientRect:()=>m.getBoundingClientRect(),contextElement:m}:m;o.refs.setReference(I)},[o.refs]),l=s.useCallback(m=>{(H(m)||m===null)&&(u.current=m,g(m)),(H(o.refs.reference.current)||o.refs.reference.current===null||m!==null&&!H(m))&&o.refs.setReference(m)},[o.refs]),p=s.useMemo(()=>({...o.refs,setReference:l,setPositionReference:c,domReference:u}),[o.refs,l,c]),w=s.useMemo(()=>({...o.elements,domReference:v}),[o.elements,v]),b=Te(n),d=s.useMemo(()=>({...o,refs:p,elements:w,dataRef:a,nodeId:r,events:f,open:t,onOpenChange:b}),[o,r,f,t,b,p,w]);return j(()=>{const m=i==null?void 0:i.nodesRef.current.find(I=>I.id===r);m&&(m.context=d)}),s.useMemo(()=>({...o,context:d,refs:p,reference:l,positionReference:c}),[o,p,d,l,c])}function he(e,t,n){const r=new Map;return{...n==="floating"&&{tabIndex:-1},...e,...t.map(o=>o?o[n]:null).concat(e).reduce((o,i)=>(i&&Object.entries(i).forEach(u=>{let[a,f]=u;if(a.indexOf("on")===0){if(r.has(a)||r.set(a,[]),typeof f=="function"){var v;(v=r.get(a))==null||v.push(f),o[a]=function(){for(var g,c=arguments.length,l=new Array(c),p=0;p<c;p++)l[p]=arguments[p];(g=r.get(a))==null||g.forEach(w=>w(...l))}}}else o[a]=f}),o),{})}}const Qt=function(e){e===void 0&&(e=[]);const t=e,n=s.useCallback(i=>he(i,e,"reference"),t),r=s.useCallback(i=>he(i,e,"floating"),t),o=s.useCallback(i=>he(i,e,"item"),t);return s.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:o}),[n,r,o])};exports.FloatingFocusManager=Ht;exports.FloatingPortal=jt;exports.useClick=_t;exports.useDismiss=Yt;exports.useFloating=Jt;exports.useId=le;exports.useInteractions=Qt;exports.useMergeRefs=Xt;exports.useRole=Zt;
@@ -1,4 +1,4 @@
1
- "use strict";const ie=require("./_commonjsHelpers-DKOUU3wS.cjs");var M={exports:{}},o={};/** @license React v16.13.1
1
+ "use strict";const ie=require("./_commonjsHelpers-DwTZ_eVU.cjs");var M={exports:{}},o={};/** @license React v16.13.1
2
2
  * react-is.production.min.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -1,4 +1,4 @@
1
- import { g as ue } from "./_commonjsHelpers-DaMA6jEr.js";
1
+ import { g as ue } from "./_commonjsHelpers-BkfeUUK-.js";
2
2
  var M = { exports: {} }, o = {};
3
3
  /** @license React v16.13.1
4
4
  * react-is.production.min.js