fluxkit-player 0.1.0 → 0.1.1

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 (49) hide show
  1. package/CHANGELOG.md +88 -9
  2. package/README.en.md +224 -0
  3. package/README.md +207 -98
  4. package/THIRD-PARTY-NOTICES.md +30 -0
  5. package/dist/fluxkit.js +2052 -479
  6. package/dist/fluxkit.js.map +1 -1
  7. package/dist/fluxkit.umd.cjs +75 -3
  8. package/dist/fluxkit.umd.cjs.map +1 -1
  9. package/dist/types/config.d.ts +21 -1
  10. package/dist/types/crypto/hls-aes.d.ts +13 -0
  11. package/dist/types/demux/flv.d.ts +2 -0
  12. package/dist/types/demux/hls.d.ts +25 -0
  13. package/dist/types/index.d.ts +3 -2
  14. package/dist/types/pipeline/timeline.d.ts +4 -0
  15. package/dist/types/player.d.ts +60 -1
  16. package/dist/types/render/audio.d.ts +13 -0
  17. package/dist/types/render/backlog.d.ts +27 -0
  18. package/dist/types/render/mse.d.ts +7 -0
  19. package/dist/types/render/software.d.ts +34 -1
  20. package/dist/types/render/subtitles.d.ts +36 -0
  21. package/dist/types/render/webcodecs.d.ts +4 -0
  22. package/dist/types/soft/index.d.ts +5 -0
  23. package/dist/types/soft/openh264.d.ts +21 -0
  24. package/dist/types/soft/soft-worker.d.ts +2 -0
  25. package/dist/types/soft/types.d.ts +2 -2
  26. package/dist/types/soft/worker-protocol.d.ts +52 -0
  27. package/dist/types/source/abr.d.ts +22 -0
  28. package/dist/types/source/hls.d.ts +39 -2
  29. package/dist/types/source/stream.d.ts +2 -1
  30. package/dist/types/types.d.ts +108 -0
  31. package/dist/types/ui/controls.d.ts +68 -0
  32. package/docs/PUBLISHING.md +142 -0
  33. package/docs/README.md +42 -0
  34. package/docs/TEST-REPORT.md +370 -0
  35. package/docs/USAGE.md +513 -0
  36. package/docs/architecture.md +213 -0
  37. package/docs/test-logs/build.txt +19 -0
  38. package/docs/test-logs/coverage.txt +64 -0
  39. package/docs/test-logs/e2e-firefox.txt +1667 -0
  40. package/docs/test-logs/e2e.txt +1667 -0
  41. package/docs/test-logs/environment.json +62 -0
  42. package/docs/test-logs/typecheck.txt +1 -0
  43. package/docs/test-logs/unit.txt +81 -0
  44. package/examples/README.md +53 -0
  45. package/examples/minimal.html +49 -0
  46. package/examples/react/FluxPlayer.tsx +48 -0
  47. package/examples/soft-worker.js +6 -0
  48. package/examples/vue/FluxPlayer.vue +47 -0
  49. package/package.json +22 -3
@@ -1,25 +1,62 @@
1
1
  /** HLS source: playlist parsing, segment loading, TS/fMP4 demuxing. */
2
- import type { MediaSourceLike, SourceContext } from '../types';
2
+ import type { AudioTrackInfo, MediaSourceLike, SourceContext, SubtitleTrackInfo } from '../types';
3
3
  import type { ResolvedOptions } from '../config';
4
4
  export declare class HlsSource implements MediaSourceLike {
5
5
  private readonly url;
6
6
  private readonly options;
7
7
  private readonly ctx;
8
8
  private readonly startMs;
9
+ private readonly preferredBandwidth?;
9
10
  readonly protocol: "hls";
10
11
  private tracks;
11
12
  private stopped;
12
13
  private _live;
13
14
  private mediaDuration;
14
15
  private audioOnly;
15
- constructor(url: string, options: ResolvedOptions, ctx: SourceContext, startMs?: number);
16
+ private audioRenditions;
17
+ private subtitleRenditions;
18
+ private activeAudioId;
19
+ private readonly preferredAudioId?;
20
+ private variants;
21
+ private manualBandwidth;
22
+ private switchTarget;
23
+ private lastSwitchAt;
24
+ private throughputBps;
25
+ private readonly keyCache;
26
+ constructor(url: string, options: ResolvedOptions, ctx: SourceContext, startMs?: number, preferredAudioId?: string, preferredBandwidth?: number | undefined);
16
27
  get duration(): number;
17
28
  get live(): boolean;
29
+ get variantBandwidth(): number;
30
+ get audioTracks(): AudioTrackInfo[];
31
+ get subtitleTracks(): SubtitleTrackInfo[];
18
32
  start(): Promise<void>;
33
+ private createSink;
34
+ private createDemuxer;
35
+ private pushInit;
19
36
  private createTrack;
20
37
  private runLoop;
38
+ /** Fetch a new `EXT-X-MAP` init segment when it changes (fMP4 HLS). */
39
+ /** Keep only a small window of played segments so long live streams do not grow forever. */
40
+ private prunePlaylist;
41
+ private refreshMap;
42
+ /** Select a variant manually, or resume automatic switching. */
43
+ setQuality(bandwidth: number | 'auto'): void;
44
+ private abrPool;
45
+ private recordDownload;
46
+ /** Automatic bitrate adaptation at segment boundaries. */
47
+ private maybeAdapt;
48
+ /** Replace the main track's demuxer/playlist at the next media sequence. */
49
+ private switchVariant;
50
+ private assertKeySupported;
51
+ private decrypt;
52
+ private getKey;
21
53
  private fetchSegment;
54
+ private fetchPart;
55
+ private fetchUri;
22
56
  private reload;
57
+ private blockingUrl;
58
+ /** Merge a fresh playlist into the live window, updating in-progress parts. */
59
+ private mergePlaylist;
23
60
  /** VOD: don't read the whole file into memory ahead of playback. */
24
61
  private waitForDemand;
25
62
  private paceLive;
@@ -9,7 +9,8 @@ export declare class StreamSource implements MediaSourceLike {
9
9
  private readonly demuxer;
10
10
  private readonly http;
11
11
  private ws;
12
- private readonly _live;
12
+ private _live;
13
+ private readonly liveOverride?;
13
14
  constructor(protocol: Protocol, url: string, options: ResolvedOptions, ctx: SourceContext, live?: boolean);
14
15
  get live(): boolean;
15
16
  get duration(): number | undefined;
@@ -65,6 +65,14 @@ export interface SourceContext {
65
65
  onSample(sample: Sample): void;
66
66
  onEnd(): void;
67
67
  onError(err: Error): void;
68
+ /** The source discovered that the stream is live or VOD. */
69
+ onLive?(live: boolean): void;
70
+ /** Timestamps jump here (HLS `EXT-X-DISCONTINUITY`); rebase the timeline. */
71
+ onDiscontinuity?(): void;
72
+ /** Active renderer mode, used to decide whether in-place ABR is safe. */
73
+ getRendererMode?(): string;
74
+ /** The source switched variants; useful for UI/diagnostics. */
75
+ onVariantChange?(bandwidth: number): void;
68
76
  /** Seconds of media already buffered ahead of the playhead (used to pace HLS). */
69
77
  getBufferAhead?: () => number;
70
78
  getCurrentTime?: () => number;
@@ -79,6 +87,10 @@ export interface MediaSourceLike {
79
87
  /** Stop reading from the network (backpressure); optional. */
80
88
  pause?(): void;
81
89
  resume?(): void;
90
+ /** Select a variant by bandwidth, or 'auto' to re-enable ABR. */
91
+ setQuality?(bandwidth: number | 'auto'): void;
92
+ /** Active variant bandwidth, when the source exposes one. */
93
+ readonly variantBandwidth?: number;
82
94
  readonly live: boolean;
83
95
  readonly duration?: number;
84
96
  }
@@ -86,6 +98,14 @@ export interface RendererStats {
86
98
  decodedVideoFrames: number;
87
99
  droppedVideoFrames: number;
88
100
  decodedAudioFrames: number;
101
+ /** Peak absolute sample of the last ~1s, 0..1 (Web Audio paths only). */
102
+ audioPeak: number;
103
+ /** AudioContext state: 'running' | 'suspended' | 'closed' | 'none'. */
104
+ audioState: string;
105
+ /** Effective Web Audio gain, 0..1. */
106
+ audioVolume: number;
107
+ /** Where audio is decoded: MSE SourceBuffer, Web Audio, or none. */
108
+ audioPath: 'mse' | 'webaudio' | 'none';
89
109
  }
90
110
  export interface Renderer {
91
111
  readonly mode: 'mse' | 'webcodecs' | 'software' | 'native';
@@ -99,6 +119,11 @@ export interface Renderer {
99
119
  resumeAudio?(): Promise<void> | void;
100
120
  setVolume?(volume: number): void;
101
121
  setPaused?(paused: boolean): void;
122
+ setPlaybackRate?(rate: number): void;
123
+ /** Video stream for MediaRecorder (canvas or <video>). */
124
+ captureStream?(): MediaStream | null;
125
+ /** Separate Web Audio stream (G.711 side channel / WebCodecs). */
126
+ captureAudioStream?(): MediaStream | null;
102
127
  readonly stats: RendererStats;
103
128
  }
104
129
  export interface PlayerStats {
@@ -121,10 +146,19 @@ export interface PlayerStats {
121
146
  decodedVideoFrames: number;
122
147
  droppedVideoFrames: number;
123
148
  decodedAudioFrames: number;
149
+ /** Peak audio sample in the last second (0..1). 0 = silence. */
150
+ audioPeak: number;
151
+ audioState: string;
152
+ audioVolume: number;
153
+ audioPath: 'mse' | 'webaudio' | 'none';
154
+ /** Software decode is running in a Worker. */
155
+ decodeWorker: boolean;
124
156
  /** Seconds of media buffered ahead of the playhead. */
125
157
  bufferAhead: number;
126
158
  /** Live latency estimate in seconds (buffer end - currentTime). */
127
159
  latency: number;
160
+ /** Active HLS variant bandwidth in bits/second (0 when not applicable). */
161
+ variantBandwidth: number;
128
162
  live: boolean;
129
163
  droppedAudioFrames: number;
130
164
  }
@@ -133,6 +167,22 @@ export declare class FluxKitError extends Error {
133
167
  readonly detail?: unknown;
134
168
  constructor(code: string, message: string, detail?: unknown);
135
169
  }
170
+ export interface AudioTrackInfo {
171
+ id: string;
172
+ label: string;
173
+ language?: string;
174
+ default: boolean;
175
+ active: boolean;
176
+ }
177
+ export interface SubtitleTrackInfo {
178
+ id: string;
179
+ label: string;
180
+ language?: string;
181
+ default: boolean;
182
+ active: boolean;
183
+ /** Resolved media playlist URI (present for HLS subtitle renditions). */
184
+ uri?: string;
185
+ }
136
186
  export interface PlayerEvents {
137
187
  /** Tracks discovered and renderer attached. Playback can start. */
138
188
  ready: {
@@ -140,6 +190,11 @@ export interface PlayerEvents {
140
190
  protocol: Protocol;
141
191
  decoder: string;
142
192
  };
193
+ /** A load/seek/reconnect is in progress. */
194
+ loading: {
195
+ loading: boolean;
196
+ url?: string;
197
+ };
143
198
  /** First frames rendered. */
144
199
  loaded: {
145
200
  width: number;
@@ -152,6 +207,24 @@ export interface PlayerEvents {
152
207
  live: boolean;
153
208
  };
154
209
  stats: PlayerStats;
210
+ /** A live stream dropped and a reconnect is scheduled. */
211
+ reconnecting: {
212
+ attempt: number;
213
+ max: number;
214
+ delay: number;
215
+ };
216
+ /** The stream is back after a reconnect. */
217
+ reconnected: void;
218
+ /** HLS ABR / manual quality switch finished. */
219
+ qualitychange: {
220
+ bandwidth: number;
221
+ };
222
+ audiochange: {
223
+ id: string | null;
224
+ };
225
+ subtitlechange: {
226
+ id: string | null;
227
+ };
155
228
  error: FluxKitError | Error;
156
229
  ended: void;
157
230
  seeked: {
@@ -179,6 +252,23 @@ export interface FluxKitOptions {
179
252
  decoder?: DecoderMode;
180
253
  /** Force a protocol instead of sniffing the URL. */
181
254
  protocol?: Protocol | 'auto';
255
+ /**
256
+ * Built-in overlay control bar (play/pause, stop, progress, volume,
257
+ * screenshot, recording, fullscreen). Default false.
258
+ */
259
+ controls?: boolean | {
260
+ /** Auto-hide delay in ms. Default 2500. */
261
+ autoHide?: number;
262
+ screenshot?: boolean;
263
+ record?: boolean;
264
+ fullscreen?: boolean;
265
+ /** Prefix for downloaded files. Default 'fluxkit'. */
266
+ downloadName?: string;
267
+ };
268
+ /** Automatically reconnect live streams after a mid-stream drop. Default true. */
269
+ autoReconnect?: boolean;
270
+ /** Force live/VOD semantics. Default: auto (HTTP Content-Length / HLS ENDLIST). */
271
+ live?: boolean;
182
272
  /** Autoplay after the first frames arrive. */
183
273
  autoplay?: boolean;
184
274
  /** Start muted (required for most autoplay policies). */
@@ -212,6 +302,12 @@ export interface FluxKitOptions {
212
302
  maxBandwidth?: number;
213
303
  /** Reload interval for live playlists, in target durations. */
214
304
  liveReloadFactor?: number;
305
+ /** Automatic variant switching for multi-variant master playlists. */
306
+ abr?: boolean;
307
+ /** Switch down when fewer than this many seconds are buffered. Default 2. */
308
+ abrLowBuffer?: number;
309
+ /** Switch up when more than this many seconds are buffered. Default 8. */
310
+ abrHighBuffer?: number;
215
311
  };
216
312
  /**
217
313
  * WASM software decoding, used when MSE and WebCodecs cannot decode the
@@ -223,8 +319,20 @@ export interface FluxKitOptions {
223
319
  /** Custom module loaders for the bundled WASM backends. */
224
320
  loaders?: {
225
321
  avc?: () => Promise<unknown>;
322
+ openh264?: () => Promise<unknown>;
226
323
  hevc?: () => Promise<unknown>;
227
324
  };
325
+ /**
326
+ * Run decode + YUV→RGBA in a module Worker. Pass a worker URL or a factory
327
+ * returning a Worker. The worker must call `installSoftWorker(self)`.
328
+ */
329
+ worker?: string | (() => Worker);
330
+ /** WASM module URLs passed to the worker (module workers cannot get functions). */
331
+ modules?: {
332
+ avc?: string;
333
+ openh264?: string;
334
+ hevc?: string;
335
+ };
228
336
  /** Decoded frames kept ahead of the presentation clock. Default 4. */
229
337
  maxDecodeAhead?: number;
230
338
  /** Drop late frames when decoding cannot keep up. Default true. */
@@ -0,0 +1,68 @@
1
+ /**
2
+ * Built-in overlay control bar.
3
+ *
4
+ * Enabled with `new FluxKit(el, { controls: true })`. Framework-free: it only
5
+ * touches the container it is given and the public player API.
6
+ */
7
+ import type { FluxKit } from '../player';
8
+ export interface ControlBarOptions {
9
+ autoHide: number;
10
+ screenshot: boolean;
11
+ record: boolean;
12
+ fullscreen: boolean;
13
+ downloadName: string;
14
+ }
15
+ export declare class ControlBar {
16
+ private readonly player;
17
+ private readonly container;
18
+ private readonly options;
19
+ private readonly root;
20
+ private readonly progress;
21
+ private readonly bufferBar;
22
+ private readonly playedBar;
23
+ private readonly thumb;
24
+ private readonly playButton;
25
+ private readonly stopButton;
26
+ private readonly muteButton;
27
+ private readonly volumeInput;
28
+ private readonly timeLabel;
29
+ private readonly recTime;
30
+ private readonly shotButton;
31
+ private readonly recordButton;
32
+ private readonly fullscreenButton;
33
+ private readonly pipButton;
34
+ private readonly rateSelect;
35
+ private readonly spinner;
36
+ private readonly toast;
37
+ private toastTimer;
38
+ private readonly cleanups;
39
+ private timer;
40
+ private hideTimer;
41
+ private dragging;
42
+ private recordStartedAt;
43
+ private destroyed;
44
+ constructor(player: FluxKit, container: HTMLElement, options: ControlBarOptions);
45
+ private query;
46
+ private bind;
47
+ private onKeyDown;
48
+ private togglePlay;
49
+ private updatePlayButton;
50
+ private updateVolume;
51
+ private onPointerDown;
52
+ private onPointerMove;
53
+ private onPointerUp;
54
+ private seekToPointer;
55
+ private bufferedEndMs;
56
+ private updateProgress;
57
+ private takeSnapshot;
58
+ private toggleRecording;
59
+ private updateRecordButton;
60
+ private updateRecordTimer;
61
+ private updateRateVisibility;
62
+ private updatePipButton;
63
+ private showToast;
64
+ private updateFullscreenButton;
65
+ private show;
66
+ private scheduleHide;
67
+ destroy(): void;
68
+ }
@@ -0,0 +1,142 @@
1
+ # 发布到 npm
2
+
3
+ ## 包名
4
+
5
+ `fluxkit` 在 npm 上已被一个无关的通用工具包占用(`fluxkit@0.2.1`),因此本项目发布为:
6
+
7
+ ```
8
+ fluxkit-player
9
+ ```
10
+
11
+ 类名与全局变量仍然是 `FluxKit`。
12
+
13
+ ## 发布前检查
14
+
15
+ ```bash
16
+ npm run typecheck
17
+ npm test
18
+ npm run build
19
+ npm pack --dry-run # 确认包内容与 docs/PUBLISHING.md 的说明一致
20
+ ```
21
+
22
+ `prepublishOnly` 会自动再跑一遍 typecheck、单元测试和构建。
23
+
24
+ ## 登录
25
+
26
+ 本机默认 registry 是 `registry.npmmirror.com`(只读镜像,不能发布)。
27
+ `package.json` 里的 `publishConfig.registry` 已固定为官方 npm,登录时也要指定官方地址:
28
+
29
+ ```bash
30
+ npm login --registry=https://registry.npmjs.org
31
+ npm whoami --registry=https://registry.npmjs.org
32
+ ```
33
+
34
+ > 如果账号开启了 2FA,发布时追加 `--otp=123456`。
35
+
36
+ ## 发布
37
+
38
+ ```bash
39
+ npm publish
40
+ ```
41
+
42
+ `publishConfig` 会保证上传到 `https://registry.npmjs.org`,并且 `access: public`。
43
+
44
+ 发布后验证:
45
+
46
+ ```bash
47
+ npm view fluxkit-player --registry=https://registry.npmjs.org
48
+ npm i fluxkit-player@0.1.1 --registry=https://registry.npmjs.org
49
+ ```
50
+
51
+ ## 版本
52
+
53
+ ```bash
54
+ npm version patch # 0.1.1 -> 0.1.2
55
+ npm version minor # 0.1.1 -> 0.2.0
56
+ npm publish
57
+ ```
58
+
59
+ ## 使用 scope(可选)
60
+
61
+ 如果你更希望用 `@your-name/fluxkit`:
62
+
63
+ 1. 把 `package.json` 的 `name` 改成 `@your-name/fluxkit`;
64
+ 2. 保持 `publishConfig.access = "public"`;
65
+ 3. `npm publish`(scoped 包默认私有,`access: public` 已处理)。
66
+
67
+ ## 发布内容
68
+
69
+ `package.json` 的 `files` 包含:
70
+
71
+ ```
72
+ dist/ ESM + UMD + d.ts
73
+ docs/ 使用指南、架构、测试报告与发布说明
74
+ examples/ React / Vue / Worker 示例
75
+ README.md / README.en.md
76
+ CHANGELOG.md
77
+ THIRD-PARTY-NOTICES.md
78
+ LICENSE
79
+ ```
80
+
81
+ `demo/`、`e2e/`、`test/`、`src/` 不会进入 npm 包;`docs/test-logs/` 会随文档一起发布。
82
+
83
+ ## GitHub Actions 自动发布
84
+
85
+ 仓库包含 `.github/workflows/publish.yml`:
86
+
87
+ - 在 GitHub 创建 **Release**(或手动 workflow_dispatch)触发;
88
+ - 需要仓库 Secret `NPM_TOKEN`(Granular Token,带 **Bypass 2FA**);
89
+ - 使用 `npm publish --provenance --access public`,并生成供应链 provenance。
90
+
91
+ ```bash
92
+ git tag v0.1.1 && git push origin v0.1.1
93
+ # GitHub → Releases → Draft a new release → Publish
94
+ ```
95
+
96
+ ## 回滚
97
+
98
+ npm 允许在 72 小时内 unpublish:
99
+
100
+ ```bash
101
+ npm unpublish fluxkit-player@0.1.1
102
+ ```
103
+
104
+ 更推荐发布一个修复版本(`npm version patch && npm publish`),不要依赖 unpublish。
105
+
106
+ ## 常见问题
107
+
108
+ ### `npm login` 登不上 / 一直转圈
109
+
110
+ 本机 `~/.npmrc` 里可能是 `registry=https://registry.npmmirror.com`(只读镜像)。
111
+ 登录和发布都要显式指定官方 registry:
112
+
113
+ ```bash
114
+ npm login --registry=https://registry.npmjs.org
115
+ npm whoami --registry=https://registry.npmjs.org
116
+ ```
117
+
118
+ ### E403: Two-factor authentication or granular access token with bypass 2fa enabled is required
119
+
120
+ npm 现在要求发布时提供 2FA 或一个带 **Bypass 2FA** 的 Granular Token,
121
+ 即使 `npm profile get` 显示 `tfa: false` 也可能触发。两种解法:
122
+
123
+ 1. **开 2FA**(验证器 App),然后:
124
+
125
+ ```bash
126
+ npm publish --otp=123456
127
+ ```
128
+
129
+ 2. **Granular Access Token**(推荐 CI/自动化):
130
+
131
+ - npmjs.com → Access Tokens → Generate New Token → **Granular Access Token**
132
+ - Permissions:**Read and write**
133
+ - Packages:**All packages**(或只选 `fluxkit-player`)
134
+ - ✅ **Bypass two-factor authentication for automation**
135
+
136
+ ```bash
137
+ npm config set //registry.npmjs.org/:_authToken=npm_你的token
138
+ npm publish
139
+ ```
140
+
141
+ > npm 已预告 Bypass 2FA token 将在 **2027 年 1 月**停用;
142
+ > 长期方案是 2FA + OTP,或 GitHub Actions 的 Trusted Publishing(OIDC)。
package/docs/README.md ADDED
@@ -0,0 +1,42 @@
1
+ # FluxKit 文档
2
+
3
+ | 文档 | 内容 |
4
+ |---|---|
5
+ | [../README.md](../README.md) | 安装、快速开始、API、协议/解码矩阵 |
6
+ | [USAGE.md](./USAGE.md) | 面向业务的使用指南:协议、React/Vue、音频、排错 |
7
+ | [../README.en.md](../README.en.md) | English README |
8
+ | [architecture.md](./architecture.md) | 分层架构、fMP4 封装、时间线、解码协商、WASM 软解 |
9
+ | [TEST-REPORT.md](./TEST-REPORT.md) | 全量测试报告(71 单元 / 28 E2E) |
10
+ | [test-logs/](./test-logs/) | 测试原始日志与环境探测结果 |
11
+ | [PUBLISHING.md](./PUBLISHING.md) | npm 发布流程与包名说明 |
12
+ | [../CONTRIBUTING.md](../CONTRIBUTING.md) | 贡献指南 |
13
+ | [../SECURITY.md](../SECURITY.md) | 安全策略 |
14
+ | [../THIRD-PARTY-NOTICES.md](../THIRD-PARTY-NOTICES.md) | 第三方许可证(LGPL/Apache/BSD/CC-BY) |
15
+
16
+ ## 一分钟上手
17
+
18
+ ```bash
19
+ npm install fluxkit-player
20
+ ```
21
+
22
+ ```ts
23
+ import { FluxKit } from 'fluxkit-player';
24
+
25
+ const player = new FluxKit('#stage', { decoder: 'auto' });
26
+ await player.load('https://example.com/live/room1.flv');
27
+ ```
28
+
29
+ 软解是可选的:
30
+
31
+ ```bash
32
+ npm install @yume-chan/libde265 @yume-chan/h264bsd @enaium/openh264-kmp
33
+ ```
34
+
35
+ ## 包结构
36
+
37
+ ```
38
+ dist/
39
+ fluxkit.js ESM
40
+ fluxkit.umd.cjs UMD / CommonJS
41
+ types/ .d.ts
42
+ ```