mattebox 0.17.2 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/dist/cdn/mattebox.dash-drm.min.js +1 -1
  2. package/dist/cdn/mattebox.dual-drm.min.js +3 -3
  3. package/dist/cdn/mattebox.dual-ll.min.js +1 -1
  4. package/dist/cdn/mattebox.dual-ts-drm.min.js +1 -1
  5. package/dist/cdn/mattebox.dual-ts.min.js +1 -1
  6. package/dist/cdn/mattebox.dual.min.js +1 -1
  7. package/dist/cdn/mattebox.hls-drm.min.js +1 -1
  8. package/dist/cdn/mattebox.hls-ll.min.js +1 -1
  9. package/dist/cdn/mattebox.hls-ts-drm.min.js +1 -1
  10. package/dist/cdn/mattebox.hls-ts.min.js +1 -1
  11. package/dist/cdn/mattebox.hls.min.js +2 -2
  12. package/dist/cdn/mattebox.min.js +1 -1
  13. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.157.0 → _@oxc-project_runtime@0.158.0}/helpers/esm/asyncToGenerator.js +1 -1
  14. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.157.0 → _@oxc-project_runtime@0.158.0}/helpers/esm/defineProperty.js +1 -1
  15. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.157.0 → _@oxc-project_runtime@0.158.0}/helpers/esm/objectSpread2.js +1 -1
  16. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.157.0 → _@oxc-project_runtime@0.158.0}/helpers/esm/objectWithoutProperties.js +1 -1
  17. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.157.0 → _@oxc-project_runtime@0.158.0}/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
  18. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.157.0 → _@oxc-project_runtime@0.158.0}/helpers/esm/toPrimitive.js +1 -1
  19. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.157.0 → _@oxc-project_runtime@0.158.0}/helpers/esm/toPropertyKey.js +1 -1
  20. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.157.0 → _@oxc-project_runtime@0.158.0}/helpers/esm/typeof.js +1 -1
  21. package/dist/es2015/containers/fmp4/fit.js +1 -1
  22. package/dist/es2015/containers/id3.js +1 -1
  23. package/dist/es2015/containers/scte35.js +1 -1
  24. package/dist/es2015/containers/ts-transmux/h264.js +1 -1
  25. package/dist/es2015/containers/ts-transmux/h265.js +1 -1
  26. package/dist/es2015/containers/ts-transmux/index.js +1 -1
  27. package/dist/es2015/containers/ts-transmux/runner.js +2 -2
  28. package/dist/es2015/containers/ts-transmux/transmux.js +1 -1
  29. package/dist/es2015/containers/webvtt.js +1 -1
  30. package/dist/es2015/containers/wvtt.js +1 -1
  31. package/dist/es2015/eme/index.js +3 -3
  32. package/dist/es2015/index.js +2 -2
  33. package/dist/es2015/kernel/append-queue.js +1 -1
  34. package/dist/es2015/kernel/dry-run.js +1 -1
  35. package/dist/es2015/kernel/mse.js +1 -1
  36. package/dist/es2015/kernel/prepare.js +2 -2
  37. package/dist/es2015/kernel/reducer.js +2 -2
  38. package/dist/es2015/kernel/refresh.js +1 -1
  39. package/dist/es2015/kernel/rendition-select.js +4 -4
  40. package/dist/es2015/kernel/scheduler.js +1 -1
  41. package/dist/es2015/kernel/timeline.js +1 -1
  42. package/dist/es2015/kernel/trace.js +1 -1
  43. package/dist/es2015/kernel/transport.js +2 -2
  44. package/dist/es2015/presets/define.js +2 -2
  45. package/dist/es2015/presets/tiers/drm.js +4 -2
  46. package/dist/es2015/protocols/dash-cmaf/index.js +1 -1
  47. package/dist/es2015/protocols/dash-cmaf/parse.js +1 -1
  48. package/dist/es2015/protocols/dash-cmaf/periods-runtime.js +1 -1
  49. package/dist/es2015/protocols/dash-cmaf/periods.js +1 -1
  50. package/dist/es2015/protocols/dash-live/index.js +1 -1
  51. package/dist/es2015/protocols/hls-cmaf/index.js +1 -1
  52. package/dist/es2015/protocols/hls-cmaf/parse.js +6 -4
  53. package/dist/es2015/protocols/hls-cmaf/unavailable.js +1 -1
  54. package/dist/es2015/protocols/hls-live/index.js +1 -1
  55. package/dist/es2015/protocols/hls-ll/parse.js +2 -2
  56. package/dist/es2015/stages/abr/index.js +1 -1
  57. package/dist/es2015/stages/aes-128/index.js +1 -1
  58. package/dist/es2015/stages/chapters/index.js +2 -2
  59. package/dist/es2015/stages/chapters/parse.js +2 -2
  60. package/dist/es2015/stages/codec-probe/index.js +1 -1
  61. package/dist/es2015/stages/content-steering/index.js +1 -1
  62. package/dist/es2015/stages/eme-core/index.js +4 -4
  63. package/dist/es2015/stages/eme-fairplay/index.js +1 -1
  64. package/dist/es2015/stages/eme-wiseplay/index.js +24 -0
  65. package/dist/es2015/stages/hdr/index.js +1 -1
  66. package/dist/es2015/stages/interstitials/breaks.js +1 -1
  67. package/dist/es2015/stages/interstitials/index.js +2 -2
  68. package/dist/es2015/stages/qoe/index.js +1 -1
  69. package/dist/es2015/stages/recovery/index.js +1 -1
  70. package/dist/es2015/stages/rendition-names/index.js +1 -1
  71. package/dist/es2015/stages/text-cea608/decode.js +1 -1
  72. package/dist/es2015/stages/text-cea708/decode.js +2 -2
  73. package/dist/es2015/stages/text-cea708/index.js +1 -1
  74. package/dist/es2015/stages/text-ttml/index.js +1 -1
  75. package/dist/es2015/stages/text-ttml/parse.js +1 -1
  76. package/dist/es2015/stages/thumbnails/index.js +1 -1
  77. package/dist/es2015/stages/timed-metadata/index.js +1 -1
  78. package/dist/es2015/stages/trick-play/index.js +1 -1
  79. package/dist/presets/tiers/drm.d.ts +1 -1
  80. package/dist/presets/tiers/drm.d.ts.map +1 -1
  81. package/dist/presets/tiers/drm.js +3 -2
  82. package/dist/presets/tiers/drm.js.map +1 -1
  83. package/dist/protocols/hls-cmaf/parse.d.ts.map +1 -1
  84. package/dist/protocols/hls-cmaf/parse.js +8 -0
  85. package/dist/protocols/hls-cmaf/parse.js.map +1 -1
  86. package/dist/stages/drm-shared.d.ts +1 -1
  87. package/dist/stages/drm-shared.js +1 -1
  88. package/dist/stages/eme-core/index.js +2 -2
  89. package/dist/stages/eme-wiseplay/index.d.ts +26 -0
  90. package/dist/stages/eme-wiseplay/index.d.ts.map +1 -0
  91. package/dist/stages/eme-wiseplay/index.js +29 -0
  92. package/dist/stages/eme-wiseplay/index.js.map +1 -0
  93. package/dist/types/ir.d.ts +7 -0
  94. package/dist/types/ir.d.ts.map +1 -1
  95. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- // \0@oxc-project+runtime@0.157.0/helpers/esm/asyncToGenerator.js
1
+ // \0@oxc-project+runtime@0.158.0/helpers/esm/asyncToGenerator.js
2
2
  function asyncGeneratorStep(n, t, e, r, o, a, c) {
3
3
  try {
4
4
  var i = n[a](c), u = i.value;
@@ -1,5 +1,5 @@
1
1
  import toPropertyKey from "./toPropertyKey.js";
2
- // \0@oxc-project+runtime@0.157.0/helpers/esm/defineProperty.js
2
+ // \0@oxc-project+runtime@0.158.0/helpers/esm/defineProperty.js
3
3
  function _defineProperty(e, r, t) {
4
4
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
5
5
  value: t,
@@ -1,5 +1,5 @@
1
1
  import _defineProperty from "./defineProperty.js";
2
- // \0@oxc-project+runtime@0.157.0/helpers/esm/objectSpread2.js
2
+ // \0@oxc-project+runtime@0.158.0/helpers/esm/objectSpread2.js
3
3
  function ownKeys(e, r) {
4
4
  var t = Object.keys(e);
5
5
  if (Object.getOwnPropertySymbols) {
@@ -1,5 +1,5 @@
1
1
  import _objectWithoutPropertiesLoose from "./objectWithoutPropertiesLoose.js";
2
- // \0@oxc-project+runtime@0.157.0/helpers/esm/objectWithoutProperties.js
2
+ // \0@oxc-project+runtime@0.158.0/helpers/esm/objectWithoutProperties.js
3
3
  function _objectWithoutProperties(e, t) {
4
4
  if (null == e) return {};
5
5
  var o, r, i = _objectWithoutPropertiesLoose(e, t);
@@ -1,4 +1,4 @@
1
- // \0@oxc-project+runtime@0.157.0/helpers/esm/objectWithoutPropertiesLoose.js
1
+ // \0@oxc-project+runtime@0.158.0/helpers/esm/objectWithoutPropertiesLoose.js
2
2
  function _objectWithoutPropertiesLoose(r, e) {
3
3
  if (null == r) return {};
4
4
  var t = {};
@@ -1,5 +1,5 @@
1
1
  import _typeof from "./typeof.js";
2
- // \0@oxc-project+runtime@0.157.0/helpers/esm/toPrimitive.js
2
+ // \0@oxc-project+runtime@0.158.0/helpers/esm/toPrimitive.js
3
3
  function toPrimitive(t, e) {
4
4
  if ("object" != _typeof(t) || !t) return t;
5
5
  var r;
@@ -1,6 +1,6 @@
1
1
  import _typeof from "./typeof.js";
2
2
  import toPrimitive from "./toPrimitive.js";
3
- // \0@oxc-project+runtime@0.157.0/helpers/esm/toPropertyKey.js
3
+ // \0@oxc-project+runtime@0.158.0/helpers/esm/toPropertyKey.js
4
4
  function toPropertyKey(t) {
5
5
  var i = toPrimitive(t, "string");
6
6
  return "symbol" == _typeof(i) ? i : i + "";
@@ -1,4 +1,4 @@
1
- // \0@oxc-project+runtime@0.157.0/helpers/esm/typeof.js
1
+ // \0@oxc-project+runtime@0.158.0/helpers/esm/typeof.js
2
2
  function _typeof(o) {
3
3
  "@babel/helpers - typeof";
4
4
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -1,6 +1,6 @@
1
1
  import { findBox, fragmentSamples, fullBox, viewOf } from "../mp4-box/index.js";
2
2
  import { writeMediaSegment } from "./writer.js";
3
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
3
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
4
4
  // src/containers/fmp4/fit.ts
5
5
  /**
6
6
  * The first traf's per-sample encryption entries, null for a clear
@@ -1,5 +1,5 @@
1
1
  import { fourcc } from "./mp4-box/index.js";
2
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
2
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
3
3
  // src/containers/id3.ts
4
4
  const HEADER_SIZE = 10;
5
5
  function isId3(data, offset) {
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
2
2
  // src/containers/scte35.ts
3
3
  const TABLE_ID = 252;
4
4
  const SPLICE_INSERT = 5;
@@ -1,5 +1,5 @@
1
1
  import { toRbsp } from "../sei.js";
2
- import _defineProperty from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/defineProperty.js";
2
+ import _defineProperty from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/defineProperty.js";
3
3
  // src/containers/ts-transmux/h264.ts
4
4
  /**
5
5
  * H.264 Annex B to AVCC. The elementary stream separates NAL units with
@@ -1,5 +1,5 @@
1
1
  import { toRbsp } from "../sei.js";
2
- import _defineProperty from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/defineProperty.js";
2
+ import _defineProperty from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/defineProperty.js";
3
3
  // src/containers/ts-transmux/h265.ts
4
4
  /**
5
5
  * H.265 Annex B to the hvc1 sample format. The NAL units split on start
@@ -4,7 +4,7 @@ import { deliverMetadata, metadataWanted } from "../metadata.js";
4
4
  import { createTransmuxRunner } from "./runner.js";
5
5
  import { looksLikeTransportStream } from "./sniff.js";
6
6
  import { transmuxSource } from "./source.js";
7
- import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/asyncToGenerator.js";
7
+ import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/asyncToGenerator.js";
8
8
  // src/containers/ts-transmux/index.ts
9
9
  /** Runs after decrypt-class steps (lower order) and before caption extraction. */
10
10
  const TRANSMUX_ORDER = 100;
@@ -1,5 +1,5 @@
1
- import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/asyncToGenerator.js";
2
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
1
+ import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/asyncToGenerator.js";
2
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
3
3
  // src/containers/ts-transmux/runner.ts
4
4
  function createTransmuxRunner(options, source) {
5
5
  let worker = null;
@@ -4,7 +4,7 @@ import { ccTriplesFromSei } from "../sei.js";
4
4
  import { STREAM_TYPE, demux, unrollTimestamps } from "./demux.js";
5
5
  import { NAL_TYPE, accessUnitFromNals, nalType, splitNalUnits, spsDimensions, toAccessUnit } from "./h264.js";
6
6
  import { HEVC_NAL_TYPE, hevcAccessUnitFromNals, hevcDecoderConfiguration, hevcNalType, hevcSpsInfo } from "./h265.js";
7
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
7
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
8
8
  // src/containers/ts-transmux/transmux.ts
9
9
  /**
10
10
  * The transmux core: MPEG-TS bytes to a self-contained fragmented MP4. Each
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
2
2
  // src/containers/webvtt.ts
3
3
  /** `HH:MM:SS.mmm` or `MM:SS.mmm` to seconds, or null. */
4
4
  function parseTimestamp(text) {
@@ -1,5 +1,5 @@
1
1
  import { fourcc, viewOf } from "./mp4-box/index.js";
2
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
2
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
3
3
  // src/containers/wvtt.ts
4
4
  /** The child boxes of `bytes`, as type and payload. */
5
5
  function boxes(bytes) {
@@ -1,8 +1,8 @@
1
1
  import { fetchWithin } from "../kernel/transport.js";
2
2
  import emeCore from "../stages/eme-core/index.js";
3
- import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectWithoutProperties.js";
4
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
5
- import _asyncToGenerator from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/asyncToGenerator.js";
3
+ import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectWithoutProperties.js";
4
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
5
+ import _asyncToGenerator from "../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/asyncToGenerator.js";
6
6
  // src/eme/index.ts
7
7
  /**
8
8
  * The engine's DRM on an element the engine does not drive. On Safari a
@@ -12,8 +12,8 @@ import { activeAudio, availableGroups, canSwitchTo, createArbiter, exclusionsOf
12
12
  import { createMseSink } from "./kernel/sinks/mse-sink.js";
13
13
  import { createTrackRegistry } from "./kernel/track-registry.js";
14
14
  import { createTransport } from "./kernel/transport.js";
15
- import _objectSpread2 from "./_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
16
- import _asyncToGenerator from "./_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/asyncToGenerator.js";
15
+ import _objectSpread2 from "./_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
16
+ import _asyncToGenerator from "./_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/asyncToGenerator.js";
17
17
  import { isAudioDescription, isEnhancedSpeech, isOriginal, isSdh, videoKind } from "./kernel/characteristics.js";
18
18
  import { exportTrace, replay } from "./kernel/trace.js";
19
19
  // src/index.ts
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
2
2
  // src/kernel/append-queue.ts
3
3
  function isQuotaError(err) {
4
4
  return err instanceof DOMException && err.name === "QuotaExceededError";
@@ -2,7 +2,7 @@ import { createBus } from "./bus.js";
2
2
  import { createEffectRunner } from "./effects.js";
3
3
  import { createSegmentPreparer } from "./prepare.js";
4
4
  import { createReducer, initialState } from "./reducer.js";
5
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
5
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
6
6
  // src/kernel/dry-run.ts
7
7
  /** The whole run ends here, whatever it has fetched: a preload must not outlive its use. */
8
8
  const LIMIT_MS = 1e4;
@@ -1,6 +1,6 @@
1
1
  import { createAppendQueue } from "./append-queue.js";
2
2
  import { createEvictor } from "./evictor.js";
3
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
3
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
4
4
  // src/kernel/mse.ts
5
5
  function managedMediaSource() {
6
6
  return globalThis.ManagedMediaSource;
@@ -1,5 +1,5 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
2
- import _asyncToGenerator from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/asyncToGenerator.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
2
+ import _asyncToGenerator from "../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/asyncToGenerator.js";
3
3
  // src/kernel/prepare.ts
4
4
  /**
5
5
  * The boundary meta a transform and the probe receive. The content type
@@ -6,8 +6,8 @@ import { activeAudio, audioGroup, audioInGroup, availableGroups, canSwitchTo, co
6
6
  import { bufferedEndFrom, reachesEnd, schedule } from "./scheduler.js";
7
7
  import { sbIdFor } from "./sinks/mse-sink.js";
8
8
  import { reconciledOffset, segmentAtTime } from "./timeline.js";
9
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
10
- import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectWithoutProperties.js";
9
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
10
+ import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectWithoutProperties.js";
11
11
  // src/kernel/reducer.ts
12
12
  const _excluded = ["pendingInit"];
13
13
  const _excluded2 = ["repeat"];
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
2
2
  // src/kernel/refresh.ts
3
3
  /** The presentation with the refresh merged, or null when it names no rendition the presentation holds. */
4
4
  function applyRefresh(presentation, refresh) {
@@ -1,8 +1,8 @@
1
1
  import { findRendition, findTrackSite } from "./presentation.js";
2
2
  import { bufferedEndFrom } from "./scheduler.js";
3
3
  import { segmentAtTime } from "./timeline.js";
4
- import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectWithoutProperties.js";
5
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
4
+ import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectWithoutProperties.js";
5
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
6
6
  // src/kernel/rendition-select.ts
7
7
  const _excluded = [
8
8
  "maxHeight",
@@ -413,7 +413,7 @@ function planPinApply(input) {
413
413
  kind: "remove",
414
414
  sbId: input.sbId,
415
415
  start: safePoint,
416
- end: Infinity
416
+ end: 1e400
417
417
  });
418
418
  }
419
419
  return {
@@ -428,7 +428,7 @@ function planPinApply(input) {
428
428
  kind: "remove",
429
429
  sbId: input.sbId,
430
430
  start: from,
431
- end: Infinity
431
+ end: 1e400
432
432
  });
433
433
  effects.push({
434
434
  kind: "seekElement",
@@ -1,5 +1,5 @@
1
1
  import { buildEpochs, epochForSeq, epochKey, isIndexed, segmentAtTime, timestampOffsetFor } from "./timeline.js";
2
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
2
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
3
3
  // src/kernel/scheduler.ts
4
4
  const DEFAULT_GAP_TOLERANCE = .25;
5
5
  /**
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
2
2
  // src/kernel/timeline.ts
3
3
  function isIndexed(addressing) {
4
4
  return !Array.isArray(addressing) && addressing.kind === "indexed";
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
2
2
  function isBytes(value) {
3
3
  return value instanceof ArrayBuffer || ArrayBuffer.isView(value);
4
4
  }
@@ -1,5 +1,5 @@
1
- import _asyncToGenerator from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/asyncToGenerator.js";
2
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
1
+ import _asyncToGenerator from "../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/asyncToGenerator.js";
2
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
3
3
  // src/kernel/transport.ts
4
4
  const DEFAULT_RETRY_POLICY = {
5
5
  maxAttempts: 3,
@@ -1,6 +1,6 @@
1
1
  import { mattebox } from "../index.js";
2
- import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectWithoutProperties.js";
3
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
2
+ import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectWithoutProperties.js";
3
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
4
4
  // src/presets/define.ts
5
5
  const _excluded = ["stages", "without"];
6
6
  /** Applies the merge rule. Exported for tests; presets call it through `stages`. */
@@ -1,6 +1,7 @@
1
1
  import emeCenc from "../../stages/eme-cenc/index.js";
2
2
  import emeCore from "../../stages/eme-core/index.js";
3
3
  import emeFairplay from "../../stages/eme-fairplay/index.js";
4
+ import emeWiseplay from "../../stages/eme-wiseplay/index.js";
4
5
  // src/presets/tiers/drm.ts
5
6
  /**
6
7
  * One group of the preset matrix. Each group is its own module so a preset
@@ -8,12 +9,13 @@ import emeFairplay from "../../stages/eme-fairplay/index.js";
8
9
  * lazy chunks then gives each preset its stages and no others. Each group is
9
10
  * a function so a preset gets fresh stage instances.
10
11
  */
11
- /** The EME stages: sessions, CENC (Widevine, PlayReady, ClearKey), FairPlay. */
12
+ /** The EME stages: sessions, CENC (Widevine, PlayReady, ClearKey), FairPlay, WisePlay. */
12
13
  function drmTier() {
13
14
  return [
14
15
  emeCore(),
15
16
  emeCenc(),
16
- emeFairplay()
17
+ emeFairplay(),
18
+ emeWiseplay()
17
19
  ];
18
20
  }
19
21
  export { drmTier };
@@ -6,7 +6,7 @@ import { isUnresolved } from "../../kernel/timeline.js";
6
6
  import { manifestFact } from "../adapter-shared.js";
7
7
  import { parse, sidxToSegments } from "./parse.js";
8
8
  import { installPeriods } from "./periods-runtime.js";
9
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
9
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
10
10
  // src/protocols/dash-cmaf/index.ts
11
11
  /**
12
12
  * The dash-cmaf protocol adapter as a stage. Inert module: exports a
@@ -4,7 +4,7 @@ import { resolveUrl } from "../../kernel/url.js";
4
4
  import { manifestError } from "../adapter-shared.js";
5
5
  import { dimensions } from "../dimensions.js";
6
6
  import { flattenPeriods } from "./periods.js";
7
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
7
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
8
8
  // src/protocols/dash-cmaf/parse.ts
9
9
  /**
10
10
  * MPD into the IR. Pure: no fetching, no state, no side effects. DOMParser
@@ -1,6 +1,6 @@
1
1
  import { findRendition } from "../../kernel/presentation.js";
2
2
  import { segmentAt } from "../../kernel/timeline.js";
3
- import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/asyncToGenerator.js";
3
+ import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/asyncToGenerator.js";
4
4
  // src/protocols/dash-cmaf/periods-runtime.ts
5
5
  /**
6
6
  * What a flattened multi-period presentation needs at playback time, kept
@@ -1,5 +1,5 @@
1
1
  import { isIndexed, isUnresolved, segmentAt } from "../../kernel/timeline.js";
2
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
2
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
3
3
  // src/protocols/dash-cmaf/periods.ts
4
4
  /**
5
5
  * Several DASH Periods as one continuous presentation, the way Shaka
@@ -1,7 +1,7 @@
1
1
  import { scheduled, tickAfter } from "../../kernel/effects.js";
2
2
  import { parse } from "../dash-cmaf/parse.js";
3
3
  import { registerLiveNamespace } from "../live-shared.js";
4
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
4
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
5
5
  // src/protocols/dash-live/index.ts
6
6
  /**
7
7
  * DASH live: the edge is computed, never read. Wall clock enters only as
@@ -4,7 +4,7 @@ import { activeRenditions } from "../../kernel/rendition-select.js";
4
4
  import { manifestFact } from "../adapter-shared.js";
5
5
  import { parse, parseMediaPlaylist, refreshFor } from "./parse.js";
6
6
  import { LOAD_FAILED, readmitMessage, unavailableMessages } from "./unavailable.js";
7
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
7
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
8
8
  // src/protocols/hls-cmaf/index.ts
9
9
  /**
10
10
  * The hls-cmaf protocol adapter as a stage. Inert module: exports a
@@ -3,7 +3,7 @@ import { resolveUrl } from "../../kernel/url.js";
3
3
  import { manifestError } from "../adapter-shared.js";
4
4
  import { dimensions } from "../dimensions.js";
5
5
  import { lex } from "./lexer.js";
6
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
6
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
7
7
  // src/protocols/hls-cmaf/parse.ts
8
8
  /**
9
9
  * m3u8 into the IR. Pure: no fetching, no state, no side effects. URLs are
@@ -608,7 +608,7 @@ function parse(text, baseUrl, parseMedia = parseMediaPlaylist) {
608
608
  const alternateVideos = /* @__PURE__ */ new Map();
609
609
  let mainVideo;
610
610
  for (const variant of variants) {
611
- var _dimensions, _variant$attributes$V;
611
+ var _dimensions, _split$0$split, _split$, _variant$attributes$R, _variant$attributes$V;
612
612
  const bandwidth = Number(variant.attributes.BANDWIDTH) || 0;
613
613
  const [width, height] = (_dimensions = dimensions(variant.attributes.RESOLUTION)) !== null && _dimensions !== void 0 ? _dimensions : [];
614
614
  const { video, audio } = splitCodecs(variant.attributes.CODECS);
@@ -621,6 +621,8 @@ function parse(text, baseUrl, parseMedia = parseMediaPlaylist) {
621
621
  const frameRate = Number(variant.attributes["FRAME-RATE"]);
622
622
  const range = variant.attributes["VIDEO-RANGE"];
623
623
  const videoRange = range === "SDR" || range === "PQ" || range === "HLG" ? range : video !== null && /^dv(h1|he|a1|av)/.test(video) ? "PQ" : void 0;
624
+ const layout = (_split$0$split = (_split$ = ((_variant$attributes$R = variant.attributes["REQ-VIDEO-LAYOUT"]) !== null && _variant$attributes$R !== void 0 ? _variant$attributes$R : "").split(",")[0]) === null || _split$ === void 0 ? void 0 : _split$.split("/")) !== null && _split$0$split !== void 0 ? _split$0$split : [];
625
+ const projection = layout.includes("PROJ-EQUI") ? "equirectangular" : layout.includes("PROJ-HEQU") ? "half-equirectangular" : void 0;
624
626
  const pathway = variant.attributes["PATHWAY-ID"];
625
627
  let id = pathway !== void 0 ? `v-${bandwidth}-${pathway}` : `v-${bandwidth}`;
626
628
  const taken = declared.get(id);
@@ -631,14 +633,14 @@ function parse(text, baseUrl, parseMedia = parseMediaPlaylist) {
631
633
  declared.set(id, variant.attributes);
632
634
  const average = Number(variant.attributes["AVERAGE-BANDWIDTH"]);
633
635
  const supplemental = variant.attributes["SUPPLEMENTAL-CODECS"];
634
- const base = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
636
+ const base = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
635
637
  id,
636
638
  bitrate: bandwidth,
637
639
  codecs,
638
640
  mimeType: "video/mp4",
639
641
  segments: [],
640
642
  playlistUrl: variant.uri
641
- }, average > 0 ? { averageBitrate: average } : {}), supplemental !== void 0 ? { supplementalCodecs: supplemental } : {}), pathway !== void 0 ? { pathway } : {}), width !== void 0 ? { width } : {}), height !== void 0 ? { height } : {}), Number.isFinite(frameRate) ? { frameRate } : {}), videoRange !== void 0 ? { videoRange } : {});
643
+ }, average > 0 ? { averageBitrate: average } : {}), supplemental !== void 0 ? { supplementalCodecs: supplemental } : {}), pathway !== void 0 ? { pathway } : {}), width !== void 0 ? { width } : {}), height !== void 0 ? { height } : {}), Number.isFinite(frameRate) ? { frameRate } : {}), videoRange !== void 0 ? { videoRange } : {}), projection !== void 0 ? { projection } : {});
642
644
  const requires = {};
643
645
  if (variant.attributes.AUDIO !== void 0) requires.audio = variant.attributes.AUDIO;
644
646
  if (variant.attributes.SUBTITLES !== void 0) requires.text = variant.attributes.SUBTITLES;
@@ -1,6 +1,6 @@
1
1
  import { isTrick } from "../../kernel/presentation.js";
2
2
  import { withDeadGroups } from "../../kernel/rendition-select.js";
3
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
3
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
4
4
  // src/protocols/hls-cmaf/unavailable.ts
5
5
  /**
6
6
  * What a playlist that cannot be used means for playback. Pure; shared by
@@ -4,7 +4,7 @@ import { activeRenditions } from "../../kernel/rendition-select.js";
4
4
  import { parseMediaPlaylist, refreshFor } from "../hls-cmaf/parse.js";
5
5
  import { RELOAD_FAILED, readmitMessage, unavailableMessages } from "../hls-cmaf/unavailable.js";
6
6
  import { registerLiveNamespace } from "../live-shared.js";
7
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
7
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
8
8
  // src/protocols/hls-live/index.ts
9
9
  /**
10
10
  * HLS live: the edge is read, never computed. A slice reducer reloads the
@@ -2,7 +2,7 @@ import { resolveUrl } from "../../kernel/url.js";
2
2
  import { manifestError } from "../adapter-shared.js";
3
3
  import { lex } from "../hls-cmaf/lexer.js";
4
4
  import { parseByteRange, parseMediaLines } from "../hls-cmaf/parse.js";
5
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
5
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
6
6
  // src/protocols/hls-ll/parse.ts
7
7
  /**
8
8
  * Low-latency HLS media playlists (RFC 8216bis §4.4.3.7, §4.4.3.8,
@@ -155,7 +155,7 @@ function parseLowLatency(text, baseUrl, previous = [], previousRanges = []) {
155
155
  const length = Number(attributes["BYTERANGE-LENGTH"]);
156
156
  hint = _objectSpread2({ url: resolveUrl(uri, baseUrl) }, Number.isFinite(start) ? { byteRange: {
157
157
  start,
158
- end: length > 0 ? start + length - 1 : Infinity
158
+ end: length > 0 ? start + length - 1 : 1e400
159
159
  } } : {});
160
160
  break;
161
161
  }
@@ -1,7 +1,7 @@
1
1
  import { scheduled } from "../../kernel/effects.js";
2
2
  import { findRendition, isTrick } from "../../kernel/presentation.js";
3
3
  import { canSwitchTo } from "../../kernel/rendition-select.js";
4
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
4
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
5
5
  // src/stages/abr/index.ts
6
6
  /**
7
7
  * Adaptive bitrate as a stage, not kernel. It registers one chooser
@@ -1,5 +1,5 @@
1
1
  import { findRendition } from "../../kernel/presentation.js";
2
- import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/asyncToGenerator.js";
2
+ import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/asyncToGenerator.js";
3
3
  // src/stages/aes-128/index.ts
4
4
  /**
5
5
  * aes-128 as a stage: full-segment AES-CBC decryption for HLS EXT-X-KEY
@@ -1,7 +1,7 @@
1
1
  import { findTrackSite } from "../../kernel/presentation.js";
2
2
  import { chaptersFromInput, parseAppleChapters, parseChapterTrack } from "./parse.js";
3
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
4
- import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/asyncToGenerator.js";
3
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
4
+ import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/asyncToGenerator.js";
5
5
  // src/stages/chapters/index.ts
6
6
  /**
7
7
  * Chapters: named spans of the presentation, answered through
@@ -1,7 +1,7 @@
1
1
  import { parseVtt } from "../../containers/webvtt.js";
2
2
  import { resolveUrl } from "../../kernel/url.js";
3
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
4
- import _objectWithoutProperties from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectWithoutProperties.js";
3
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
4
+ import _objectWithoutProperties from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectWithoutProperties.js";
5
5
  // src/stages/chapters/parse.ts
6
6
  /**
7
7
  * Chapter files into one record shape. Pure. A WebVTT file serves two
@@ -1,6 +1,6 @@
1
1
  import { codecMismatch, probeInitSegment } from "../../containers/codec-probe/index.js";
2
2
  import { findRendition } from "../../kernel/presentation.js";
3
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
3
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
4
4
  // src/stages/codec-probe/index.ts
5
5
  /**
6
6
  * codec-probe as a loadable stage. The derivation itself lives in the
@@ -1,5 +1,5 @@
1
1
  import { scheduled, tickAfter } from "../../kernel/effects.js";
2
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
2
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
3
3
  // src/stages/content-steering/index.ts
4
4
  /**
5
5
  * Content steering: pathway switching from a steering manifest, plus
@@ -1,7 +1,7 @@
1
1
  import { bytesToBase64 } from "../../kernel/base64.js";
2
2
  import { keySystemHandlers, normalizeSystemId } from "../drm-shared.js";
3
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
4
- import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/asyncToGenerator.js";
3
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
4
+ import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/asyncToGenerator.js";
5
5
  // src/stages/eme-core/index.ts
6
6
  /**
7
7
  * The generic EME handshake, entanglement #3 resolved: DRM lands without
@@ -23,8 +23,8 @@ import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.157.0/help
23
23
  * its own (Widevine `license-renewal`) takes the normal license path.
24
24
  *
25
25
  * ClearKey is built in — it is the only key system testable headlessly.
26
- * Widevine, PlayReady, and FairPlay arrive as handlers eme-cenc and
27
- * eme-fairplay register through drm-shared.
26
+ * Widevine, PlayReady, FairPlay, and WisePlay arrive as handlers eme-cenc,
27
+ * eme-fairplay, and eme-wiseplay register through drm-shared.
28
28
  *
29
29
  * A license request follows hls.js's key-load policy: a network error or
30
30
  * an HTTP status outside 4xx retries up to 8 times, a timeout (20 s) once,
@@ -1,6 +1,6 @@
1
1
  import { base64ToBytes, bytesToBase64 } from "../../kernel/base64.js";
2
2
  import { registerKeySystem } from "../drm-shared.js";
3
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
3
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/objectSpread2.js";
4
4
  // src/stages/eme-fairplay/index.ts
5
5
  /**
6
6
  * FairPlay Streaming: the non-standard SPC/CKC flow. Safari only, and it
@@ -0,0 +1,24 @@
1
+ import { registerKeySystem } from "../drm-shared.js";
2
+ // src/stages/eme-wiseplay/index.ts
3
+ /** ChinaDRM's system id, which WisePlay signals. */
4
+ const WISEPLAY_SYSTEM_ID = "3d5e6d35-9b9a-41e8-b843-dd3c6e72c42c";
5
+ /** The key system strings, in the order eme-core asks for them. */
6
+ const WISEPLAY_KEY_SYSTEMS = ["com.huawei.wiseplay", "com.wiseplay.drm"];
7
+ /** The WisePlay handlers for eme-core, under both key system strings. */
8
+ function emeWiseplay() {
9
+ return {
10
+ name: "eme-wiseplay",
11
+ provides: ["eme-wiseplay"],
12
+ requires: ["eme-core"],
13
+ install() {
14
+ for (const keySystem of WISEPLAY_KEY_SYSTEMS) registerKeySystem({
15
+ keySystem,
16
+ systemIds: [WISEPLAY_SYSTEM_ID],
17
+ initDataTypes: ["cenc"],
18
+ buildLicenseRequest: (message) => message,
19
+ parseLicenseResponse: (response) => response
20
+ });
21
+ }
22
+ };
23
+ }
24
+ export { WISEPLAY_KEY_SYSTEMS, WISEPLAY_SYSTEM_ID, emeWiseplay as default };
@@ -1,4 +1,4 @@
1
- import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/asyncToGenerator.js";
1
+ import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/asyncToGenerator.js";
2
2
  // src/stages/hdr/index.ts
3
3
  const SOURCE = "hdr";
4
4
  /** The display's answer, or null when the browser does not know `dynamic-range`. */