@webitel/ui-sdk 26.6.56 → 26.6.58

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 (128) hide show
  1. package/dist/{clients-BylvVtUg.js → clients-CX7SniM1.js} +6 -6
  2. package/dist/{components-Ceu_o5QZ.js → components-reoSYpZx.js} +2063 -1152
  3. package/dist/{composables-DJlgUtl5.js → composables-Ckg9IFyC.js} +3 -3
  4. package/dist/{debounce-DPzXwiOS.js → debounce-Bp3jy7S5.js} +2 -2
  5. package/dist/{deep-copy-CQw5yeEH.js → deep-copy-CTgLtgMO.js} +1 -1
  6. package/dist/{dist-BYiYpK00.js → dist-CAOIU8xq.js} +1 -1
  7. package/dist/{dist-05Bf47Wg.js → dist-Crpfx4FA.js} +1 -1
  8. package/dist/dist-uCh8HaP3.js +1910 -0
  9. package/dist/{enums-DW1oVune.js → enums-CBWwTuq7.js} +14 -10
  10. package/dist/{floating-ui.dom-n2j9PKCB.js → floating-ui.dom-Ch9ml4Rx.js} +322 -352
  11. package/dist/{generateInstance-BD4pC4PS.js → generateInstance-DpLUt03M.js} +3 -3
  12. package/dist/{chunk-CY3AvKd6.js → rolldown-runtime-BEcgMyyN.js} +8 -1
  13. package/dist/{side-channel-Cyte-MzW.js → side-channel-8SnAuRMA.js} +18 -18
  14. package/dist/ui-sdk.js +831 -25977
  15. package/dist/ui-sdk.umd.cjs +1849 -7448
  16. package/dist/{useValidation-NX7UjlXi.js → useValidation-B0voza7s.js} +2 -2
  17. package/dist/{useVidstackSrc-jCDCYTce.js → useVidstackSrc-epUQZhkL.js} +6 -4
  18. package/dist/{useWtTable-tqmVOvve.js → useWtTable-DrrvvB6k.js} +1 -1
  19. package/dist/vidstack-BLEs9rMG-Agxpv9v8.js +11 -0
  20. package/dist/{vidstack-video-IgjC6GLU.js → vidstack-C6nBVWwn-BlZqtkYB.js} +11 -11
  21. package/dist/{vidstack-C9vIqaYT-C1EgPq17.js → vidstack-CDOoBnJL-BCwLE1fB.js} +2 -2
  22. package/dist/{vidstack-Bq6c3Bam-hoRopLll.js → vidstack-CI5oafcm-DAV7Lilr.js} +38 -37
  23. package/dist/{vidstack-D_-9AA6_-Dq3APB0-.js → vidstack-CXo4cwSP2-6kDG00FC.js} +3 -3
  24. package/dist/{vidstack-Dihypf8P-ibWMCHK-.js → vidstack-CZQo98ic-D3uTuzB9.js} +1 -1
  25. package/dist/{vidstack-DDXt6fpN-Don_e6LS.js → vidstack-CceZzgm4-C37rtwSQ.js} +13 -13
  26. package/dist/{vidstack-ChQTHmIQ-nTO94M6P.js → vidstack-CdfyZegh-Bn47J4h6.js} +3 -3
  27. package/dist/{vidstack-C2US-gSO-DeIgENrW.js → vidstack-CgfrU1hS-CNTJkyzm.js} +26 -26
  28. package/dist/{vidstack-BGSTndAW-CyKM_CM4.js → vidstack-D9mvYVIz-DesuYgKV.js} +179 -278
  29. package/dist/{vidstack-BQlOPwOu-ChhdffAJ.js → vidstack-DATGlkSz2-BnlUxvSa.js} +2 -2
  30. package/dist/{vidstack-D2pY00kU-dXPuSPZl.js → vidstack-DUnfBERX2-Cl6yTfB3.js} +6 -6
  31. package/dist/{vidstack-Ci54COQW-CAAXpwzv.js → vidstack-DYPyTdYw-BzqKxwCK.js} +49 -44
  32. package/dist/vidstack-IMa-zkAV-DevzBPj3.js +35 -0
  33. package/dist/{vidstack-B01xzxC4-DeYSgDZy.js → vidstack-_E7LrUjK-DaCLs8ge.js} +1 -1
  34. package/dist/{vidstack-audio-CCSR8cXr.js → vidstack-audio-CH4wIf0F.js} +2 -2
  35. package/dist/{vidstack-dash-CNcNULYU.js → vidstack-dash-CmlmZIFT.js} +31 -32
  36. package/dist/{vidstack-google-cast-Co5Q_rfL.js → vidstack-google-cast-COyApZ_Z.js} +17 -18
  37. package/dist/{vidstack-hls-BP6P23Cc.js → vidstack-hls-D1sxUvBd.js} +70 -71
  38. package/dist/vidstack-ijoHbXQB-DBClSWHE.js +32 -0
  39. package/dist/{vidstack-CTojmhKq-D7sZJxgm.js → vidstack-mvRkf9tF-CoFf7dS9.js} +7 -7
  40. package/dist/vidstack-q-9soyHT-CiZ4hFSF.js +50 -0
  41. package/dist/vidstack-video-iy3-Vo1A.js +2 -0
  42. package/dist/{vidstack-vimeo-EzzPpggD.js → vidstack-vimeo-BhNQpz6m.js} +58 -58
  43. package/dist/{vidstack-youtube-C1_NAfWa.js → vidstack-youtube-BIhUrYs-.js} +33 -30
  44. package/dist/{vue-i18n-B8Px6VcD.js → vue-i18n-lTFLGg_9.js} +796 -728
  45. package/dist/{wt-action-bar-BHg0dHh-.js → wt-action-bar-B17FBHD7.js} +2 -2
  46. package/dist/{wt-button-Cv7wRtF5.js → wt-button-0kP5bPMs.js} +30 -30
  47. package/dist/wt-chat-emoji-C_fb9LZF.js +1372 -0
  48. package/dist/{wt-datepicker-DmmqWre1.js → wt-datepicker-baNcFWZ1.js} +765 -765
  49. package/dist/{wt-display-chip-items-CIW2Kmd1.js → wt-display-chip-items-CgrbKQ5R.js} +1 -1
  50. package/dist/{wt-dual-panel-Cnzr4m-k.js → wt-dual-panel-C5LZm1Tr.js} +1 -1
  51. package/dist/{wt-expansion-card-B3J3dMdV.js → wt-expansion-card-C2qETdn0.js} +2 -2
  52. package/dist/{wt-expansion-panel-CYZR6tYG.js → wt-expansion-panel-Dvzj9PTk.js} +1 -1
  53. package/dist/{wt-galleria-AICD8wZ_.js → wt-galleria-DL3svAQs.js} +2 -2
  54. package/dist/{wt-icon-CqEgBu_3.js → wt-icon-DIdpwmpC.js} +224 -219
  55. package/dist/{wt-icon-action-DlZx4RV6.js → wt-icon-action-C8WN2oVD.js} +2 -2
  56. package/dist/{wt-icon-btn-B66HR8qM.js → wt-icon-btn-BLnhJADA.js} +1 -1
  57. package/dist/{wt-notifications-bar-Bbzp4mi1.js → wt-notifications-bar-Dx1YPqFu.js} +7 -8
  58. package/dist/{wt-pagination-CZuQFM3-.js → wt-pagination-G2ZGU4Pi.js} +1 -1
  59. package/dist/{wt-player-CFL51-s6.js → wt-player-CCwEyUzv.js} +6 -6
  60. package/dist/{wt-popover-CJin-2BO.js → wt-popover-BdwrokVy.js} +1 -1
  61. package/dist/{wt-search-bar--ACLsoNo.js → wt-search-bar-CiQJ9ViN.js} +4 -4
  62. package/dist/{wt-selection-popup-B77UY7Yu.js → wt-selection-popup-Bh9D7VtA.js} +1 -1
  63. package/dist/{wt-send-message-popup-D5_uap5F.js → wt-send-message-popup-CIH2cusg.js} +3 -3
  64. package/dist/{wt-slider-BS3SoGht.js → wt-slider-BPzRTeYU.js} +1 -1
  65. package/dist/{wt-start-page-eN1PEokc.js → wt-start-page-DMXRhA9E.js} +1 -1
  66. package/dist/{wt-table-2AC3hrK9.js → wt-table-25p4E01H.js} +2 -2
  67. package/dist/{wt-table-column-select-DFF6z3a3.js → wt-table-column-select-C3ma6jxK.js} +3 -3
  68. package/dist/{wt-timepicker-DpZmWZdv.js → wt-timepicker-DyM1OQX4.js} +3 -3
  69. package/dist/wt-toast-KTAx-8zA.js +71 -0
  70. package/dist/{wt-tree-ZyoPrNOl.js → wt-tree-DZ9ErOGj.js} +22 -12
  71. package/dist/{wt-tree-table-DkK3EyzZ.js → wt-tree-table-BlZEw4tr.js} +41 -41
  72. package/dist/{wt-type-extension-value-input-f5i8mReW.js → wt-type-extension-value-input-Dw24yOLg.js} +4 -4
  73. package/dist/{wt-vidstack-player-Ba6-mEdW.js → wt-vidstack-player-CLtfGaGj.js} +1601 -1453
  74. package/package.json +1 -1
  75. package/src/assets/icons/sprite/index.ts +7 -0
  76. package/src/assets/icons/sprite/ws-signal-high.svg +11 -0
  77. package/src/assets/icons/sprite/ws-signal-low.svg +11 -0
  78. package/src/assets/icons/sprite/ws-signal-medium.svg +11 -0
  79. package/src/components/index.js +3 -0
  80. package/src/components/wt-call-media-metric/wt-call-media-metric.vue +41 -0
  81. package/src/components/wt-toast/wt-toast.vue +2 -2
  82. package/src/enums/ConnectionQualityLevel/ConnectionQualityLevel.enum.ts +8 -0
  83. package/src/enums/index.ts +6 -0
  84. package/src/locale/en/en.js +5 -0
  85. package/src/locale/es/es.js +5 -0
  86. package/src/locale/kz/kz.js +5 -0
  87. package/src/locale/pl/pl.js +5 -0
  88. package/src/locale/ro/ro.js +5 -0
  89. package/src/locale/ru/ru.js +5 -0
  90. package/src/locale/uk/uk.js +5 -0
  91. package/src/locale/uz/uz.js +5 -0
  92. package/src/locale/vi/vi.js +5 -0
  93. package/src/scripts/getConnectionQuality.ts +13 -0
  94. package/src/scripts/index.js +2 -0
  95. package/types/components/wt-call-media-metric/wt-call-media-metric.vue.d.ts +13 -0
  96. package/types/components/wt-galleria/wt-galleria.vue.d.ts +2 -6
  97. package/types/components/wt-input-number/wt-input-number.vue.d.ts +2 -2
  98. package/types/components/wt-input-text/wt-input-text.vue.d.ts +2 -2
  99. package/types/components/wt-switcher/wt-switcher.vue.d.ts +2 -2
  100. package/types/components/wt-table/wt-table.vue.d.ts +1 -1
  101. package/types/components/wt-textarea/wt-textarea.vue.d.ts +1 -9
  102. package/types/enums/ConnectionQualityLevel/ConnectionQualityLevel.enum.d.ts +6 -0
  103. package/types/enums/index.d.ts +3 -2
  104. package/types/locale/en/en.d.ts +5 -0
  105. package/types/locale/es/es.d.ts +5 -0
  106. package/types/locale/i18n.d.ts +45 -0
  107. package/types/locale/index.d.ts +45 -0
  108. package/types/locale/kz/kz.d.ts +5 -0
  109. package/types/locale/pl/pl.d.ts +5 -0
  110. package/types/locale/ro/ro.d.ts +5 -0
  111. package/types/locale/ru/ru.d.ts +5 -0
  112. package/types/locale/uk/uk.d.ts +5 -0
  113. package/types/locale/uz/uz.d.ts +5 -0
  114. package/types/locale/vi/vi.d.ts +5 -0
  115. package/types/modules/AuditForm/components/audit-form-question-write-wrapper.vue.d.ts +1 -5
  116. package/types/modules/AuditForm/components/audit-form.vue.d.ts +4 -10
  117. package/types/modules/Flow/lookups/FlowTypeApplications.lookup.d.ts +5 -5
  118. package/types/scripts/getConnectionQuality.d.ts +2 -0
  119. package/types/scripts/index.d.ts +2 -1
  120. package/dist/dist-Dz55hlwp.js +0 -1371
  121. package/dist/eventBus-By3thVlR.js +0 -31
  122. package/dist/usetoast-BECIyaas.js +0 -10
  123. package/dist/vidstack-D5EzK014-DOe01V3H.js +0 -14
  124. package/dist/vidstack-Dm1xEU9Q-VlefmrP8.js +0 -31
  125. package/dist/vidstack-DqAw8m9J-Dk1GT3Oe.js +0 -22
  126. package/dist/vidstack-krOAtKMi-DN1WZC3p.js +0 -30
  127. package/dist/wt-chat-emoji-Dnu07Or5.js +0 -2226
  128. package/dist/wt-toast-gaZL33Am.js +0 -44
@@ -1,12 +1,11 @@
1
- import { D as e, H as t, I as n, K as r, R as i, f as a, r as o, v as s } from "./vidstack-BGSTndAW-CyKM_CM4.js";
2
- import { r as c, y as l } from "./useVidstackSrc-jCDCYTce.js";
3
- import { i as u, r as d } from "./vidstack-CTojmhKq-D7sZJxgm.js";
4
- import { t as f } from "./vidstack-DqAw8m9J-Dk1GT3Oe.js";
5
- import { t as p } from "./vidstack-D5EzK014-DOe01V3H.js";
6
- import { n as m, t as h } from "./vidstack-Ci54COQW-CAAXpwzv.js";
7
- import { VideoProvider as g } from "./vidstack-video-IgjC6GLU.js";
8
- import { t as _ } from "./vidstack-B01xzxC4-DeYSgDZy.js";
9
- import { n as v } from "./vidstack-C9vIqaYT-C1EgPq17.js";
1
+ import { E as e, F as t, G as n, L as r, V as i, f as a, r as o, v as s } from "./vidstack-D9mvYVIz-DesuYgKV.js";
2
+ import { r as c, y as l } from "./useVidstackSrc-epUQZhkL.js";
3
+ import { i as u, r as d } from "./vidstack-mvRkf9tF-CoFf7dS9.js";
4
+ import { n as f, t as p } from "./vidstack-ijoHbXQB-DBClSWHE.js";
5
+ import { n as m, t as h } from "./vidstack-DYPyTdYw-BzqKxwCK.js";
6
+ import { t as g } from "./vidstack-_E7LrUjK-DaCLs8ge.js";
7
+ import { t as _ } from "./vidstack-C6nBVWwn-BlZqtkYB.js";
8
+ import { n as v } from "./vidstack-CDOoBnJL-BCwLE1fB.js";
10
9
  //#region node_modules/vidstack/prod/providers/vidstack-hls.js
11
10
  var y = (e) => a(e), b = class {
12
11
  #e;
@@ -22,18 +21,18 @@ var y = (e) => a(e), b = class {
22
21
  this.#e = e, this.#t = t;
23
22
  }
24
23
  setup(e) {
25
- let { streamType: n } = this.#t.$state, i = r(n).includes("live"), a = r(n).includes("ll-");
26
- this.#n = new e({
24
+ let { streamType: t } = this.#t.$state, r = n(t).includes("live"), a = n(t).includes("ll-"), o = this.#n = new e({
27
25
  lowLatencyMode: a,
28
- backBufferLength: a ? 4 : i ? 8 : void 0,
26
+ backBufferLength: a ? 4 : r ? 8 : void 0,
29
27
  renderTextTracksNatively: !1,
30
28
  ...this.config
31
- });
32
- let o = this.#c.bind(this);
33
- for (let t of Object.values(e.Events)) this.#n.on(t, o);
34
- this.#n.on(e.Events.ERROR, this.#h.bind(this));
35
- for (let e of this.#i) e(this.#n);
36
- this.#t.player.dispatch("hls-instance", { detail: this.#n }), this.#n.attachMedia(this.#e), this.#n.on(e.Events.AUDIO_TRACK_SWITCHED, this.#d.bind(this)), this.#n.on(e.Events.LEVEL_SWITCHED, this.#f.bind(this)), this.#n.on(e.Events.LEVEL_LOADED, this.#m.bind(this)), this.#n.on(e.Events.LEVEL_UPDATED, this.#p.bind(this)), this.#n.on(e.Events.NON_NATIVE_TEXT_TRACKS_FOUND, this.#l.bind(this)), this.#n.on(e.Events.CUES_PARSED, this.#u.bind(this)), this.#t.qualities[_.enableAuto] = this.#_.bind(this), t(this.#t.qualities, "change", this.#v.bind(this)), t(this.#t.audioTracks, "change", this.#y.bind(this)), this.#r = s(this.#o.bind(this));
29
+ }), c = (e) => (t, n) => {
30
+ this.#n === o && e(t, n);
31
+ }, l = c(this.#c.bind(this));
32
+ for (let t of Object.values(e.Events)) o.on(t, l);
33
+ o.on(e.Events.ERROR, c(this.#h.bind(this)));
34
+ for (let e of this.#i) e(o);
35
+ this.#t.player.dispatch("hls-instance", { detail: o }), o.attachMedia(this.#e), o.on(e.Events.AUDIO_TRACK_SWITCHED, c(this.#d.bind(this))), o.on(e.Events.LEVEL_SWITCHED, c(this.#f.bind(this))), o.on(e.Events.LEVEL_LOADED, c(this.#m.bind(this, o))), o.on(e.Events.LEVEL_UPDATED, c(this.#p.bind(this))), o.on(e.Events.NON_NATIVE_TEXT_TRACKS_FOUND, c(this.#l.bind(this, o))), o.on(e.Events.CUES_PARSED, c(this.#u.bind(this, o))), this.#t.qualities[g.enableAuto] = this.#_.bind(this), i(this.#t.qualities, "change", this.#v.bind(this)), i(this.#t.audioTracks, "change", this.#y.bind(this)), this.#r = s(this.#o.bind(this));
37
36
  }
38
37
  #a(e, t) {
39
38
  return new o(y(e), { detail: t });
@@ -49,27 +48,27 @@ var y = (e) => a(e), b = class {
49
48
  #c(e, t) {
50
49
  this.#t.player?.dispatch(this.#a(e, t));
51
50
  }
52
- #l(e, t) {
53
- let n = this.#a(e, t), r = -1;
54
- for (let e = 0; e < t.tracks.length; e++) {
55
- let i = t.tracks[e], a = i.subtitleTrack ?? i.closedCaptions, o = new h({
56
- id: `hls-${i.kind}-${e}`,
57
- src: a?.url,
58
- label: i.label,
59
- language: a?.lang,
60
- kind: i.kind,
61
- default: i.default
51
+ #l(e, t, n) {
52
+ let r = this.#a(t, n), i = -1;
53
+ for (let t = 0; t < n.tracks.length; t++) {
54
+ let a = n.tracks[t], o = a.subtitleTrack ?? a.closedCaptions, s = new h({
55
+ id: `hls-${a.kind}-${t}`,
56
+ src: o?.url,
57
+ label: a.label,
58
+ language: o?.lang,
59
+ kind: a.kind,
60
+ default: a.default
62
61
  });
63
- o[m.readyState] = 2, o[m.onModeChange] = () => {
64
- o.mode === "showing" ? (this.#n.subtitleTrack = e, r = e) : r === e && (this.#n.subtitleTrack = -1, r = -1);
65
- }, this.#t.textTracks.add(o, n);
62
+ s[m.readyState] = 2, s[m.onModeChange] = () => {
63
+ this.#n === e && (s.mode === "showing" ? (e.subtitleTrack = t, i = t) : i === t && (e.subtitleTrack = -1, i = -1));
64
+ }, this.#t.textTracks.add(s, r);
66
65
  }
67
66
  }
68
- #u(e, t) {
69
- let n = this.#n?.subtitleTrack, r = this.#t.textTracks.getById(`hls-${t.type}-${n}`);
70
- if (!r) return;
71
- let i = this.#a(e, t);
72
- for (let e of t.cues) e.positionAlign = "auto", r.addCue(e, i);
67
+ #u(e, t, n) {
68
+ let r = e.subtitleTrack, i = this.#t.textTracks.getById(`hls-${n.type}-${r}`);
69
+ if (!i) return;
70
+ let a = this.#a(t, n);
71
+ for (let e of n.cues) e.positionAlign = "auto", i.addCue(e, a);
73
72
  }
74
73
  #d(e, t) {
75
74
  let n = this.#t.audioTracks[t.id];
@@ -88,32 +87,32 @@ var y = (e) => a(e), b = class {
88
87
  #p(e, t) {
89
88
  t.details.totalduration > 0 && this.#t.$state.inferredLiveDVRWindow.set(t.details.totalduration);
90
89
  }
91
- #m(e, t) {
90
+ #m(e, t, n) {
92
91
  if (this.#t.$state.canPlay()) return;
93
- let { type: n, live: r, totalduration: i, targetduration: a } = t.details, s = this.#a(e, t);
94
- this.#t.notify("stream-type-change", r ? n === "EVENT" && Number.isFinite(i) && a >= 10 ? "live:dvr" : "live" : "on-demand", s), this.#t.notify("duration-change", i, s);
95
- let c = this.#n.media;
96
- this.#n.currentLevel === -1 && this.#t.qualities[_.setAuto](!0, s);
97
- for (let e of this.#n.audioTracks) {
98
- let t = {
99
- id: e.id.toString(),
100
- label: e.name,
101
- language: e.lang || "",
92
+ let r = e.media;
93
+ if (!r) return;
94
+ let { type: i, live: a, totalduration: s, targetduration: c } = n.details, l = this.#a(t, n);
95
+ this.#t.notify("stream-type-change", a ? i === "EVENT" && Number.isFinite(s) && c >= 10 ? "live:dvr" : "live" : "on-demand", l), this.#t.notify("duration-change", s, l), e.currentLevel === -1 && this.#t.qualities[g.setAuto](!0, l);
96
+ for (let t of e.audioTracks) {
97
+ let e = {
98
+ id: t.id.toString(),
99
+ label: t.name,
100
+ language: t.lang || "",
102
101
  kind: "main"
103
102
  };
104
- this.#t.audioTracks[p.add](t, s);
103
+ this.#t.audioTracks[p.add](e, l);
105
104
  }
106
- for (let e of this.#n.levels) {
107
- let t = {
108
- id: e.id?.toString() ?? e.height + "p",
109
- width: e.width,
110
- height: e.height,
111
- codec: e.codecSet,
112
- bitrate: e.bitrate
105
+ for (let t of e.levels) {
106
+ let e = {
107
+ id: t.id?.toString() ?? t.height + "p",
108
+ width: t.width,
109
+ height: t.height,
110
+ codec: t.codecSet,
111
+ bitrate: t.bitrate
113
112
  };
114
- this.#t.qualities[p.add](t, s);
113
+ this.#t.qualities[p.add](e, l);
115
114
  }
116
- c.dispatchEvent(new o("canplay", { trigger: s }));
115
+ r.dispatchEvent(new o("canplay", { trigger: l }));
117
116
  }
118
117
  #h(e, t) {
119
118
  if (t.fatal) switch (t.type) {
@@ -147,7 +146,7 @@ var y = (e) => a(e), b = class {
147
146
  return this.#i.add(e), () => this.#i.delete(e);
148
147
  }
149
148
  loadSource(e) {
150
- n(e.src) && this.#n?.loadSource(e.src);
149
+ t(e.src) && this.#n?.loadSource(e.src);
151
150
  }
152
151
  destroy() {
153
152
  this.#n?.destroy(), this.#n = null, this.#r?.(), this.#r = null;
@@ -164,8 +163,8 @@ var y = (e) => a(e), b = class {
164
163
  onLoadStart: this.#i.bind(this),
165
164
  onLoaded: this.#a.bind(this),
166
165
  onLoadError: this.#o.bind(this)
167
- }, t = await C(this.#e, e);
168
- return i(t) && !n(this.#e) && (t = await S(this.#e, e)), t ? t.isSupported() ? t : (this.#t.player.dispatch(new o("hls-unsupported")), this.#t.notify("error", {
166
+ }, n = await C(this.#e, e);
167
+ return r(n) && !t(this.#e) && (n = await S(this.#e, e)), n ? n.isSupported() ? n : (this.#t.player.dispatch(new o("hls-unsupported")), this.#t.notify("error", {
169
168
  message: "[vidstack] `hls.js` is not supported in this environment",
170
169
  code: 4
171
170
  }), null) : null;
@@ -186,7 +185,7 @@ var y = (e) => a(e), b = class {
186
185
  }
187
186
  };
188
187
  async function S(e, t = {}) {
189
- if (!i(e)) {
188
+ if (!r(e)) {
190
189
  if (t.onLoadStart?.(), e.prototype && e.prototype !== Function) return t.onLoaded?.(e), e;
191
190
  try {
192
191
  let n = (await e())?.default;
@@ -198,19 +197,19 @@ async function S(e, t = {}) {
198
197
  }
199
198
  }
200
199
  }
201
- async function C(t, r = {}) {
202
- if (n(t)) {
200
+ async function C(n, r = {}) {
201
+ if (t(n)) {
203
202
  r.onLoadStart?.();
204
203
  try {
205
- if (await d(t), !e(window.Hls)) throw Error("");
206
- let n = window.Hls;
207
- return r.onLoaded?.(n), n;
204
+ if (await d(n), !e(window.Hls)) throw Error("");
205
+ let t = window.Hls;
206
+ return r.onLoaded?.(t), t;
208
207
  } catch (e) {
209
208
  r.onLoadError?.(e);
210
209
  }
211
210
  }
212
211
  }
213
- var w = "https://cdn.jsdelivr.net", T = class extends g {
212
+ var w = "https://cdn.jsdelivr.net", T = class extends _ {
214
213
  $$PROVIDER_TYPE = "HLS";
215
214
  #e = null;
216
215
  #t = new b(this.video, this.ctx);
@@ -241,21 +240,21 @@ var w = "https://cdn.jsdelivr.net", T = class extends g {
241
240
  this.#n = e;
242
241
  }
243
242
  preconnect() {
244
- n(this.#n) && u(this.#n);
243
+ t(this.#n) && u(this.#n);
245
244
  }
246
245
  setup() {
247
246
  super.setup(), new x(this.#n, this.ctx, (e) => {
248
247
  this.#e = e, this.#t.setup(e), this.ctx.notify("provider-setup", this);
249
- let t = r(this.ctx.$state.source);
248
+ let t = n(this.ctx.$state.source);
250
249
  t && this.loadSource(t);
251
250
  });
252
251
  }
253
- async loadSource(e, t) {
254
- if (!n(e.src)) {
252
+ async loadSource(e, n) {
253
+ if (!t(e.src)) {
255
254
  this.removeSource();
256
255
  return;
257
256
  }
258
- this.media.preload = t || "", this.appendSource(e, "application/x-mpegurl"), this.#t.loadSource(e), this.currentSrc = e;
257
+ this.media.preload = n || "", this.appendSource(e, "application/x-mpegurl"), this.#t.loadSource(e), this.currentSrc = e;
259
258
  }
260
259
  onInstance(e) {
261
260
  let t = this.#t.instance;
@@ -0,0 +1,32 @@
1
+ import { L as e, M as t } from "./vidstack-D9mvYVIz-DesuYgKV.js";
2
+ //#region node_modules/vidstack/prod/chunks/vidstack-ijoHbXQB.js
3
+ var n = {
4
+ add: Symbol(0),
5
+ remove: Symbol(0),
6
+ reset: Symbol(0),
7
+ select: Symbol(0),
8
+ readonly: Symbol(0),
9
+ setReadonly: Symbol(0),
10
+ onReset: Symbol(0),
11
+ onRemove: Symbol(0),
12
+ onUserSelect: Symbol(0)
13
+ }, r = class {
14
+ #e;
15
+ #t;
16
+ constructor(e) {
17
+ this.#t = e;
18
+ }
19
+ start() {
20
+ e(this.#e) && this.#n();
21
+ }
22
+ stop() {
23
+ t(this.#e) && window.cancelAnimationFrame(this.#e), this.#e = void 0;
24
+ }
25
+ #n() {
26
+ this.#e = window.requestAnimationFrame(() => {
27
+ e(this.#e) || (this.#t(), this.#n());
28
+ });
29
+ }
30
+ };
31
+ //#endregion
32
+ export { r as n, n as t };
@@ -1,20 +1,20 @@
1
- import { I as e, M as t, g as n } from "./vidstack-BGSTndAW-CyKM_CM4.js";
2
- //#region node_modules/vidstack/prod/chunks/vidstack-CTojmhKq.js
1
+ import { F as e, g as t, j as n } from "./vidstack-D9mvYVIz-DesuYgKV.js";
2
+ //#region node_modules/vidstack/prod/chunks/vidstack-mvRkf9tF.js
3
3
  function r(e, t) {
4
4
  let n = new URL(e);
5
5
  for (let e of Object.keys(t)) n.searchParams.set(e, t[e] + "");
6
6
  return n.toString();
7
7
  }
8
- function i(e, n = "preconnect") {
9
- if (!t(document.querySelector(`link[href="${e}"]`))) return !0;
8
+ function i(e, t = "preconnect") {
9
+ if (!n(document.querySelector(`link[href="${e}"]`))) return !0;
10
10
  let r = document.createElement("link");
11
- return r.rel = n, r.href = e, r.crossOrigin = "true", document.head.append(r), !0;
11
+ return r.rel = t, r.href = e, r.crossOrigin = "true", document.head.append(r), !0;
12
12
  }
13
13
  var a = {};
14
14
  function o(e) {
15
15
  if (a[e]) return a[e].promise;
16
- let r = n();
17
- if (!t(document.querySelector(`script[src="${e}"]`))) return r.resolve(), r.promise;
16
+ let r = t();
17
+ if (!n(document.querySelector(`script[src="${e}"]`))) return r.resolve(), r.promise;
18
18
  a[e] = r;
19
19
  let i = document.createElement("script");
20
20
  return i.src = e, i.onload = () => {
@@ -0,0 +1,50 @@
1
+ import { t as e } from "./vidstack-BLEs9rMG-Agxpv9v8.js";
2
+ //#region node_modules/vidstack/prod/chunks/vidstack-q-9soyHT.js
3
+ var t = /* @__PURE__ */ e({
4
+ getVimeoVideoInfo: () => s,
5
+ resolveVimeoVideoId: () => o
6
+ }), n = /(?:https:\/\/)?(?:player\.)?vimeo(?:\.com)?\/(?:video\/)?(\d+)(?:(?:\?hash=|\?h=|\/)(.*))?/, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = 1920;
7
+ function o(e) {
8
+ let t = e.match(n);
9
+ return {
10
+ videoId: t?.[1],
11
+ hash: t?.[2]
12
+ };
13
+ }
14
+ async function s(e, t, n) {
15
+ if (r.has(e)) return r.get(e);
16
+ if (i.has(e)) return i.get(e);
17
+ let a = `https://vimeo.com/api/oembed.json?url=https://player.vimeo.com/video/${e}`;
18
+ n && (a = a.concat(`?h=${n}`));
19
+ let o = window.fetch(a, {
20
+ mode: "cors",
21
+ signal: t.signal
22
+ }).then((e) => e.json()).then((t) => {
23
+ let n = {
24
+ title: t?.title ?? "",
25
+ duration: t?.duration ?? 0,
26
+ poster: c(t),
27
+ pro: t.account_type !== "basic"
28
+ };
29
+ return r.set(e, n), n;
30
+ }).finally(() => i.delete(e));
31
+ return i.set(e, o), o;
32
+ }
33
+ function c(e) {
34
+ let t = e?.thumbnail_url ?? "", n = t.match(/vimeocdn\.com\/video\/([^_/?#]+)_/)?.[1];
35
+ if (!n) return t;
36
+ let r = l(e);
37
+ return r ? `https://i.vimeocdn.com/video/${n}_${r.width}x${r.height}.webp` : t;
38
+ }
39
+ function l(e) {
40
+ let t = e.width || e.thumbnail_width, n = e.height || e.thumbnail_height;
41
+ return !t || !n ? null : t > n ? {
42
+ width: a,
43
+ height: Math.round(a * n / t)
44
+ } : {
45
+ width: Math.round(a * t / n),
46
+ height: a
47
+ };
48
+ }
49
+ //#endregion
50
+ export { s as getVimeoVideoInfo, o as resolveVimeoVideoId, t as utils_exports };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "./vidstack-C6nBVWwn-BlZqtkYB.js";
2
+ export { e as VideoProvider };
@@ -1,12 +1,11 @@
1
- import { $ as e, H as t, I as n, K as r, g as i, h as a, v as o, w as s } from "./vidstack-BGSTndAW-CyKM_CM4.js";
2
- import { i as c } from "./vidstack-CTojmhKq-D7sZJxgm.js";
3
- import { getVimeoVideoInfo as l, resolveVimeoVideoId as u } from "./vidstack-krOAtKMi-DN1WZC3p.js";
4
- import { t as d } from "./vidstack-DqAw8m9J-Dk1GT3Oe.js";
5
- import { t as f } from "./vidstack-D5EzK014-DOe01V3H.js";
6
- import { t as p } from "./vidstack-Ci54COQW-CAAXpwzv.js";
7
- import { t as m } from "./vidstack-B01xzxC4-DeYSgDZy.js";
8
- import { t as h } from "./vidstack-ChQTHmIQ-nTO94M6P.js";
9
- import { t as g } from "./vidstack-DDXt6fpN-Don_e6LS.js";
1
+ import { C as e, F as t, G as n, Q as r, V as i, g as a, h as o, v as s } from "./vidstack-D9mvYVIz-DesuYgKV.js";
2
+ import { i as c } from "./vidstack-mvRkf9tF-CoFf7dS9.js";
3
+ import { getVimeoVideoInfo as l, resolveVimeoVideoId as u } from "./vidstack-q-9soyHT-CiZ4hFSF.js";
4
+ import { n as d, t as f } from "./vidstack-ijoHbXQB-DBClSWHE.js";
5
+ import { t as p } from "./vidstack-DYPyTdYw-BzqKxwCK.js";
6
+ import { t as m } from "./vidstack-_E7LrUjK-DaCLs8ge.js";
7
+ import { t as h } from "./vidstack-CdfyZegh-Bn47J4h6.js";
8
+ import { t as g } from "./vidstack-CceZzgm4-C37rtwSQ.js";
10
9
  //#region node_modules/vidstack/prod/providers/vidstack-vimeo.js
11
10
  var _ = [
12
11
  "bufferend",
@@ -31,11 +30,11 @@ var _ = [
31
30
  "waiting"
32
31
  ], v = class extends g {
33
32
  $$PROVIDER_TYPE = "VIMEO";
34
- scope = a();
33
+ scope = o();
35
34
  fullscreen;
36
35
  #e;
37
- #t = e("");
38
- #n = e(!1);
36
+ #t = r("");
37
+ #n = r(!1);
39
38
  #r = null;
40
39
  #i = null;
41
40
  #a = !1;
@@ -81,7 +80,7 @@ var _ = [
81
80
  c(this.getOrigin());
82
81
  }
83
82
  setup() {
84
- super.setup(), o(this.#f.bind(this)), o(this.#p.bind(this)), o(this.#m.bind(this)), this.#e.notify("provider-setup", this);
83
+ super.setup(), s(this.#f.bind(this)), s(this.#p.bind(this)), s(this.#m.bind(this)), this.#e.notify("provider-setup", this);
85
84
  }
86
85
  destroy() {
87
86
  this.#R(), this.fullscreen = void 0;
@@ -101,18 +100,18 @@ var _ = [
101
100
  this.#L("seekTo", e), this.#e.notify("seeking", e);
102
101
  }
103
102
  setVolume(e) {
104
- this.#L("setVolume", e), this.#L("setMuted", r(this.#e.$state.muted));
103
+ this.#L("setVolume", e), this.#L("setMuted", n(this.#e.$state.muted));
105
104
  }
106
105
  setPlaybackRate(e) {
107
106
  this.#L("setPlaybackRate", e);
108
107
  }
109
108
  async loadSource(e) {
110
- if (!n(e.src)) {
109
+ if (!t(e.src)) {
111
110
  this.#i = null, this.#r = null, this.#t.set("");
112
111
  return;
113
112
  }
114
- let { videoId: t, hash: r } = u(e.src);
115
- this.#t.set(t ?? ""), this.#r = r ?? null, this.#i = e;
113
+ let { videoId: n, hash: r } = u(e.src);
114
+ this.#t.set(n ?? ""), this.#r = r ?? null, this.#i = e;
116
115
  }
117
116
  #f() {
118
117
  this.#R();
@@ -126,7 +125,7 @@ var _ = [
126
125
  #p() {
127
126
  let e = this.#t();
128
127
  if (!e) return;
129
- let t = i(), n = new AbortController();
128
+ let t = a(), n = new AbortController();
130
129
  return this.#d = t, l(e, n, this.#r).then((e) => {
131
130
  t.resolve(e);
132
131
  }).catch((e) => {
@@ -136,10 +135,10 @@ var _ = [
136
135
  };
137
136
  }
138
137
  #m() {
139
- let e = this.#n(), { $state: n, qualities: r } = this.#e;
140
- if (n.canSetPlaybackRate.set(e), r[f.setReadonly](!e), e) return t(r, "change", () => {
141
- if (r.auto) return;
142
- let e = r.selected?.id;
138
+ let e = this.#n(), { $state: t, qualities: n } = this.#e;
139
+ if (t.canSetPlaybackRate.set(e), n[f.setReadonly](!e), e) return i(n, "change", () => {
140
+ if (n.auto) return;
141
+ let e = n.selected?.id;
143
142
  e && this.#L("setQuality", e);
144
143
  });
145
144
  }
@@ -197,33 +196,34 @@ var _ = [
197
196
  };
198
197
  this.#e.delegate.ready(i, t), r || this.#L("_hideOverlay"), this.#L("getQualities"), this.#L("getChapters");
199
198
  }
200
- #x(e, t, n) {
201
- switch (e) {
199
+ #x(t, r, i) {
200
+ switch (t) {
202
201
  case "getVideoTitle":
203
- let e = t;
204
- this.#e.notify("title-change", e, n);
202
+ let t = r;
203
+ this.#e.notify("title-change", t, i);
205
204
  break;
206
205
  case "getDuration":
207
- let i = t;
208
- this.#e.$state.canPlay() ? this.#e.notify("duration-change", i, n) : this.#b(i, n);
206
+ let a = r;
207
+ this.#e.$state.canPlay() ? this.#e.notify("duration-change", a, i) : this.#b(a, i);
209
208
  break;
210
209
  case "getCurrentTime":
211
- this.#_(t, n);
210
+ this.#_(r, i);
212
211
  break;
213
212
  case "getBuffered":
214
- s(t) && t.length && this.#E(t[t.length - 1][1], n);
213
+ e(r) && r.length && this.#E(r[r.length - 1][1], i);
215
214
  break;
216
215
  case "setMuted":
217
- this.#A(r(this.#e.$state.volume), t, n);
216
+ case "getMuted":
217
+ this.#A(n(this.#e.$state.volume), r, i);
218
218
  break;
219
219
  case "getChapters":
220
- this.#j(t);
220
+ this.#j(r);
221
221
  break;
222
222
  case "getQualities":
223
- this.#N(t, n);
223
+ this.#N(r, i);
224
224
  break;
225
225
  }
226
- this.#z(e)?.resolve();
226
+ this.#z(t)?.resolve();
227
227
  }
228
228
  #S() {
229
229
  for (let e of _) this.#L("addEventListener", e);
@@ -231,8 +231,8 @@ var _ = [
231
231
  #C(e) {
232
232
  this.#s.stop(), this.#e.notify("pause", void 0, e);
233
233
  }
234
- #w(e) {
235
- this.#s.start(), this.#e.notify("play", void 0, e);
234
+ async #w(e) {
235
+ this.#s.start(), await this.#L("getMuted"), this.#e.notify("play", void 0, e);
236
236
  }
237
237
  #T(e) {
238
238
  let { paused: t } = this.#e.$state;
@@ -252,9 +252,9 @@ var _ = [
252
252
  let { paused: t } = this.#e.$state;
253
253
  t() || this.#e.notify("playing", void 0, e);
254
254
  }
255
- #k(e) {
255
+ async #k(e) {
256
256
  let { paused: t } = this.#e.$state;
257
- t() && this.#e.notify("play", void 0, e), this.#e.notify("waiting", void 0, e);
257
+ t() && (await this.#L("getMuted"), this.#e.notify("play", void 0, e)), this.#e.notify("waiting", void 0, e);
258
258
  }
259
259
  #A(e, t, n) {
260
260
  let r = {
@@ -298,65 +298,65 @@ var _ = [
298
298
  let n = e === "auto", r = this.#e.qualities.getById(e);
299
299
  n ? (this.#e.qualities[m.setAuto](n, t), this.#e.qualities[f.select](void 0, !0, t)) : this.#e.qualities[f.select](r ?? void 0, !0, t);
300
300
  }
301
- #F(e, t, n) {
301
+ #F(e, t, r) {
302
302
  switch (e) {
303
303
  case "ready":
304
304
  this.#S();
305
305
  break;
306
306
  case "loaded":
307
- this.#y(n);
307
+ this.#y(r);
308
308
  break;
309
309
  case "play":
310
- this.#w(n);
310
+ this.#w(r);
311
311
  break;
312
312
  case "playProgress":
313
- this.#T(n);
313
+ this.#T(r);
314
314
  break;
315
315
  case "pause":
316
- this.#C(n);
316
+ this.#C(r);
317
317
  break;
318
318
  case "loadProgress":
319
- this.#E(t.seconds, n);
319
+ this.#E(t.seconds, r);
320
320
  break;
321
321
  case "waiting":
322
- this.#k(n);
322
+ this.#k(r);
323
323
  break;
324
324
  case "bufferstart":
325
- this.#D(n);
325
+ this.#D(r);
326
326
  break;
327
327
  case "bufferend":
328
- this.#O(n);
328
+ this.#O(r);
329
329
  break;
330
330
  case "volumechange":
331
- this.#A(t.volume, r(this.#e.$state.muted), n);
331
+ this.#A(t.volume, n(this.#e.$state.muted), r);
332
332
  break;
333
333
  case "durationchange":
334
- this.#o = new h(0, t.duration), this.#e.notify("duration-change", t.duration, n);
334
+ this.#o = new h(0, t.duration), this.#e.notify("duration-change", t.duration, r);
335
335
  break;
336
336
  case "playbackratechange":
337
- this.#e.notify("rate-change", t.playbackRate, n);
337
+ this.#e.notify("rate-change", t.playbackRate, r);
338
338
  break;
339
339
  case "qualitychange":
340
- this.#P(t, n);
340
+ this.#P(t, r);
341
341
  break;
342
342
  case "fullscreenchange":
343
- this.#a = t.fullscreen, this.#e.notify("fullscreen-change", t.fullscreen, n);
343
+ this.#a = t.fullscreen, this.#e.notify("fullscreen-change", t.fullscreen, r);
344
344
  break;
345
345
  case "enterpictureinpicture":
346
- this.#e.notify("picture-in-picture-change", !0, n);
346
+ this.#e.notify("picture-in-picture-change", !0, r);
347
347
  break;
348
348
  case "leavepictureinpicture":
349
- this.#e.notify("picture-in-picture-change", !1, n);
349
+ this.#e.notify("picture-in-picture-change", !1, r);
350
350
  break;
351
351
  case "ended":
352
- this.#e.notify("end", void 0, n);
352
+ this.#e.notify("end", void 0, r);
353
353
  break;
354
354
  case "error":
355
- this.#I(t, n);
355
+ this.#I(t, r);
356
356
  break;
357
357
  case "seek":
358
358
  case "seeked":
359
- this.#v(t.seconds, n);
359
+ this.#v(t.seconds, r);
360
360
  break;
361
361
  }
362
362
  }
@@ -369,7 +369,7 @@ var _ = [
369
369
  }
370
370
  onLoad() {}
371
371
  async #L(e, t) {
372
- let n = i(), r = this.#u.get(e);
372
+ let n = a(), r = this.#u.get(e);
373
373
  return r || this.#u.set(e, r = []), r.push(n), this.postMessage({
374
374
  method: e,
375
375
  value: t