@remotion/studio 4.0.394 → 4.0.396

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.
@@ -29,7 +29,7 @@ import { Internals as Internals66 } from "remotion";
29
29
 
30
30
  // src/components/Editor.tsx
31
31
  import { PlayerInternals as PlayerInternals20 } from "@remotion/player";
32
- import React175, { useCallback as useCallback135, useEffect as useEffect78, useMemo as useMemo135 } from "react";
32
+ import React175, { useCallback as useCallback134, useEffect as useEffect78, useMemo as useMemo135 } from "react";
33
33
  import { Internals as Internals62 } from "remotion";
34
34
 
35
35
  // src/helpers/colors.ts
@@ -17967,6 +17967,10 @@ var TriggerWebRender = () => {
17967
17967
  if (!video?.id) {
17968
17968
  return null;
17969
17969
  }
17970
+ const defaults = window.remotion_renderDefaults;
17971
+ if (!defaults) {
17972
+ throw new TypeError("Expected defaults");
17973
+ }
17970
17974
  const frame2 = getCurrentFrame2();
17971
17975
  setSelectedModal({
17972
17976
  type: "web-render",
@@ -17974,7 +17978,8 @@ var TriggerWebRender = () => {
17974
17978
  compositionId: video.id,
17975
17979
  defaultProps: video.defaultProps,
17976
17980
  inFrameMark: inFrame,
17977
- outFrameMark: outFrame
17981
+ outFrameMark: outFrame,
17982
+ initialLogLevel: defaults.logLevel
17978
17983
  });
17979
17984
  }, [
17980
17985
  getCurrentFrame2,
@@ -20492,7 +20497,7 @@ var getTimelineSequenceLayout = ({
20492
20497
  // src/helpers/use-max-media-duration.ts
20493
20498
  import { getVideoMetadata as getVideoMetadata2 } from "@remotion/media-utils";
20494
20499
 
20495
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/misc.js
20500
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/misc.js
20496
20501
  /*!
20497
20502
  * Copyright (c) 2025-present, Vanilagy and contributors
20498
20503
  *
@@ -20756,6 +20761,19 @@ var getUint24 = (view, byteOffset, littleEndian) => {
20756
20761
  return byte1 << 16 | byte2 << 8 | byte3;
20757
20762
  }
20758
20763
  };
20764
+ var setUint24 = (view, byteOffset, value, littleEndian) => {
20765
+ value = value >>> 0;
20766
+ value = value & 16777215;
20767
+ if (littleEndian) {
20768
+ view.setUint8(byteOffset, value & 255);
20769
+ view.setUint8(byteOffset + 1, value >>> 8 & 255);
20770
+ view.setUint8(byteOffset + 2, value >>> 16 & 255);
20771
+ } else {
20772
+ view.setUint8(byteOffset, value >>> 16 & 255);
20773
+ view.setUint8(byteOffset + 1, value >>> 8 & 255);
20774
+ view.setUint8(byteOffset + 2, value & 255);
20775
+ }
20776
+ };
20759
20777
  var clamp = (value, min, max) => {
20760
20778
  return Math.max(min, Math.min(max, value));
20761
20779
  };
@@ -20909,7 +20927,7 @@ var isNumber = (x) => {
20909
20927
  return typeof x === "number" && !Number.isNaN(x);
20910
20928
  };
20911
20929
 
20912
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/metadata.js
20930
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/metadata.js
20913
20931
  /*!
20914
20932
  * Copyright (c) 2025-present, Vanilagy and contributors
20915
20933
  *
@@ -20960,7 +20978,7 @@ var DEFAULT_TRACK_DISPOSITION = {
20960
20978
  visuallyImpaired: false
20961
20979
  };
20962
20980
 
20963
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/codec.js
20981
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/codec.js
20964
20982
  /*!
20965
20983
  * Copyright (c) 2025-present, Vanilagy and contributors
20966
20984
  *
@@ -21234,7 +21252,7 @@ var parsePcmCodec = (codec) => {
21234
21252
  return { dataType, sampleSize, littleEndian, silentValue };
21235
21253
  };
21236
21254
 
21237
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/codec-data.js
21255
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/codec-data.js
21238
21256
  /*!
21239
21257
  * Copyright (c) 2025-present, Vanilagy and contributors
21240
21258
  *
@@ -21337,6 +21355,45 @@ var removeEmulationPreventionBytes = (data) => {
21337
21355
  }
21338
21356
  return new Uint8Array(result);
21339
21357
  };
21358
+ var ANNEX_B_START_CODE = new Uint8Array([0, 0, 0, 1]);
21359
+ var concatNalUnitsInAnnexB = (nalUnits) => {
21360
+ const totalLength = nalUnits.reduce((a, b) => a + ANNEX_B_START_CODE.byteLength + b.byteLength, 0);
21361
+ const result = new Uint8Array(totalLength);
21362
+ let offset = 0;
21363
+ for (const nalUnit of nalUnits) {
21364
+ result.set(ANNEX_B_START_CODE, offset);
21365
+ offset += ANNEX_B_START_CODE.byteLength;
21366
+ result.set(nalUnit, offset);
21367
+ offset += nalUnit.byteLength;
21368
+ }
21369
+ return result;
21370
+ };
21371
+ var concatNalUnitsInLengthPrefixed = (nalUnits, lengthSize) => {
21372
+ const totalLength = nalUnits.reduce((a, b) => a + lengthSize + b.byteLength, 0);
21373
+ const result = new Uint8Array(totalLength);
21374
+ let offset = 0;
21375
+ for (const nalUnit of nalUnits) {
21376
+ const dataView = new DataView(result.buffer, result.byteOffset, result.byteLength);
21377
+ switch (lengthSize) {
21378
+ case 1:
21379
+ dataView.setUint8(offset, nalUnit.byteLength);
21380
+ break;
21381
+ case 2:
21382
+ dataView.setUint16(offset, nalUnit.byteLength, false);
21383
+ break;
21384
+ case 3:
21385
+ setUint24(dataView, offset, nalUnit.byteLength, false);
21386
+ break;
21387
+ case 4:
21388
+ dataView.setUint32(offset, nalUnit.byteLength, false);
21389
+ break;
21390
+ }
21391
+ offset += lengthSize;
21392
+ result.set(nalUnit, offset);
21393
+ offset += nalUnit.byteLength;
21394
+ }
21395
+ return result;
21396
+ };
21340
21397
  var extractAvcNalUnits = (packetData, decoderConfig) => {
21341
21398
  if (decoderConfig.description) {
21342
21399
  const bytes = toUint8Array(decoderConfig.description);
@@ -21347,6 +21404,16 @@ var extractAvcNalUnits = (packetData, decoderConfig) => {
21347
21404
  return findNalUnitsInAnnexB(packetData);
21348
21405
  }
21349
21406
  };
21407
+ var concatAvcNalUnits = (nalUnits, decoderConfig) => {
21408
+ if (decoderConfig.description) {
21409
+ const bytes = toUint8Array(decoderConfig.description);
21410
+ const lengthSizeMinusOne = bytes[4] & 3;
21411
+ const lengthSize = lengthSizeMinusOne + 1;
21412
+ return concatNalUnitsInLengthPrefixed(nalUnits, lengthSize);
21413
+ } else {
21414
+ return concatNalUnitsInAnnexB(nalUnits);
21415
+ }
21416
+ };
21350
21417
  var extractNalUnitTypeForAvc = (data) => {
21351
21418
  return data[0] & 31;
21352
21419
  };
@@ -22602,7 +22669,7 @@ var readVorbisComments = (bytes, metadataTags) => {
22602
22669
  }
22603
22670
  };
22604
22671
 
22605
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/demuxer.js
22672
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/demuxer.js
22606
22673
  /*!
22607
22674
  * Copyright (c) 2025-present, Vanilagy and contributors
22608
22675
  *
@@ -22617,7 +22684,7 @@ class Demuxer {
22617
22684
  }
22618
22685
  }
22619
22686
 
22620
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/custom-coder.js
22687
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/custom-coder.js
22621
22688
  /*!
22622
22689
  * Copyright (c) 2025-present, Vanilagy and contributors
22623
22690
  *
@@ -22628,7 +22695,7 @@ class Demuxer {
22628
22695
  var customVideoDecoders = [];
22629
22696
  var customAudioDecoders = [];
22630
22697
 
22631
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/packet.js
22698
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/packet.js
22632
22699
  /*!
22633
22700
  * Copyright (c) 2025-present, Vanilagy and contributors
22634
22701
  *
@@ -22760,7 +22827,7 @@ class EncodedPacket {
22760
22827
  }
22761
22828
  }
22762
22829
 
22763
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/sample.js
22830
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/sample.js
22764
22831
  /*!
22765
22832
  * Copyright (c) 2025-present, Vanilagy and contributors
22766
22833
  *
@@ -23436,7 +23503,7 @@ var getPlaneConfigs = (format) => {
23436
23503
  };
23437
23504
  var AUDIO_SAMPLE_FORMATS = new Set(["f32", "f32-planar", "s16", "s16-planar", "s32", "s32-planar", "u8", "u8-planar"]);
23438
23505
 
23439
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/media-sink.js
23506
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/media-sink.js
23440
23507
  /*!
23441
23508
  * Copyright (c) 2025-present, Vanilagy and contributors
23442
23509
  *
@@ -24035,7 +24102,6 @@ class VideoDecoderWrapper extends DecoderWrapper {
24035
24102
  }
24036
24103
  this.raslSkipped = true;
24037
24104
  }
24038
- this.currentPacketIndex++;
24039
24105
  if (this.customDecoder) {
24040
24106
  this.customDecoderQueueSize++;
24041
24107
  this.customDecoderCallSerializer.call(() => this.customDecoder.decode(packet)).then(() => this.customDecoderQueueSize--);
@@ -24044,9 +24110,19 @@ class VideoDecoderWrapper extends DecoderWrapper {
24044
24110
  if (!isWebKit()) {
24045
24111
  insertSorted(this.inputTimestamps, packet.timestamp, (x) => x);
24046
24112
  }
24113
+ if (isChromium() && this.currentPacketIndex === 0 && this.codec === "avc") {
24114
+ const nalUnits = extractAvcNalUnits(packet.data, this.decoderConfig);
24115
+ const filteredNalUnits = nalUnits.filter((x) => {
24116
+ const type = extractNalUnitTypeForAvc(x);
24117
+ return !(type >= 20 && type <= 31);
24118
+ });
24119
+ const newData = concatAvcNalUnits(filteredNalUnits, this.decoderConfig);
24120
+ packet = new EncodedPacket(newData, packet.type, packet.timestamp, packet.duration);
24121
+ }
24047
24122
  this.decoder.decode(packet.toEncodedVideoChunk());
24048
24123
  this.decodeAlphaData(packet);
24049
24124
  }
24125
+ this.currentPacketIndex++;
24050
24126
  }
24051
24127
  decodeAlphaData(packet) {
24052
24128
  if (!packet.sideData.alpha || this.mergerCreationFailed) {
@@ -24381,7 +24457,7 @@ class VideoSampleSink extends BaseMediaSampleSink {
24381
24457
  }
24382
24458
  }
24383
24459
 
24384
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/input-track.js
24460
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/input-track.js
24385
24461
  /*!
24386
24462
  * Copyright (c) 2025-present, Vanilagy and contributors
24387
24463
  *
@@ -24590,7 +24666,7 @@ class InputAudioTrack extends InputTrack {
24590
24666
  }
24591
24667
  }
24592
24668
 
24593
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-misc.js
24669
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-misc.js
24594
24670
  /*!
24595
24671
  * Copyright (c) 2025-present, Vanilagy and contributors
24596
24672
  *
@@ -24608,7 +24684,7 @@ var buildIsobmffMimeType = (info) => {
24608
24684
  return string;
24609
24685
  };
24610
24686
 
24611
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-reader.js
24687
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-reader.js
24612
24688
  /*!
24613
24689
  * Copyright (c) 2025-present, Vanilagy and contributors
24614
24690
  *
@@ -24684,7 +24760,7 @@ var readDataBox = (slice) => {
24684
24760
  }
24685
24761
  };
24686
24762
 
24687
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-demuxer.js
24763
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-demuxer.js
24688
24764
  /*!
24689
24765
  * Copyright (c) 2025-present, Vanilagy and contributors
24690
24766
  *
@@ -26962,7 +27038,7 @@ var sampleTableIsEmpty = (sampleTable) => {
26962
27038
  return sampleTable.sampleSizes.length === 0;
26963
27039
  };
26964
27040
 
26965
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/matroska/ebml.js
27041
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/matroska/ebml.js
26966
27042
  /*!
26967
27043
  * Copyright (c) 2025-present, Vanilagy and contributors
26968
27044
  *
@@ -27277,7 +27353,7 @@ function assertDefinedSize(size4) {
27277
27353
  }
27278
27354
  }
27279
27355
 
27280
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/matroska/matroska-misc.js
27356
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/matroska/matroska-misc.js
27281
27357
  /*!
27282
27358
  * Copyright (c) 2025-present, Vanilagy and contributors
27283
27359
  *
@@ -27295,7 +27371,7 @@ var buildMatroskaMimeType = (info) => {
27295
27371
  return string;
27296
27372
  };
27297
27373
 
27298
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/matroska/matroska-demuxer.js
27374
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/matroska/matroska-demuxer.js
27299
27375
  /*!
27300
27376
  * Copyright (c) 2025-present, Vanilagy and contributors
27301
27377
  *
@@ -29174,7 +29250,7 @@ class MatroskaAudioTrackBacking extends MatroskaTrackBacking {
29174
29250
  }
29175
29251
  }
29176
29252
 
29177
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/shared/mp3-misc.js
29253
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/shared/mp3-misc.js
29178
29254
  /*!
29179
29255
  * Copyright (c) 2025-present, Vanilagy and contributors
29180
29256
  *
@@ -29416,7 +29492,7 @@ var decodeSynchsafe = (synchsafed) => {
29416
29492
  return unsynchsafed;
29417
29493
  };
29418
29494
 
29419
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/id3.js
29495
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/id3.js
29420
29496
  /*!
29421
29497
  * Copyright (c) 2025-present, Vanilagy and contributors
29422
29498
  *
@@ -30116,7 +30192,7 @@ class Id3V2Reader {
30116
30192
  }
30117
30193
  }
30118
30194
 
30119
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/mp3/mp3-reader.js
30195
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/mp3/mp3-reader.js
30120
30196
  /*!
30121
30197
  * Copyright (c) 2025-present, Vanilagy and contributors
30122
30198
  *
@@ -30142,7 +30218,7 @@ var readNextFrameHeader = async (reader, startPos, until) => {
30142
30218
  return null;
30143
30219
  };
30144
30220
 
30145
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/mp3/mp3-demuxer.js
30221
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/mp3/mp3-demuxer.js
30146
30222
  /*!
30147
30223
  * Copyright (c) 2025-present, Vanilagy and contributors
30148
30224
  *
@@ -30407,7 +30483,7 @@ class Mp3AudioTrackBacking {
30407
30483
  }
30408
30484
  }
30409
30485
 
30410
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/ogg/ogg-misc.js
30486
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/ogg/ogg-misc.js
30411
30487
  /*!
30412
30488
  * Copyright (c) 2025-present, Vanilagy and contributors
30413
30489
  *
@@ -30478,7 +30554,7 @@ var buildOggMimeType = (info) => {
30478
30554
  return string;
30479
30555
  };
30480
30556
 
30481
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/ogg/ogg-reader.js
30557
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/ogg/ogg-reader.js
30482
30558
  /*!
30483
30559
  * Copyright (c) 2025-present, Vanilagy and contributors
30484
30560
  *
@@ -30542,7 +30618,7 @@ var findNextPageHeader = (slice, until) => {
30542
30618
  return false;
30543
30619
  };
30544
30620
 
30545
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/ogg/ogg-demuxer.js
30621
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/ogg/ogg-demuxer.js
30546
30622
  /*!
30547
30623
  * Copyright (c) 2025-present, Vanilagy and contributors
30548
30624
  *
@@ -31202,7 +31278,7 @@ var findPreviousPacketEndPosition = (pageList, startPage, startSegmentIndex) =>
31202
31278
  return { page: previousPage, segmentIndex: previousPage.lacingValues.length - 1 };
31203
31279
  };
31204
31280
 
31205
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/wave/wave-demuxer.js
31281
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/wave/wave-demuxer.js
31206
31282
  /*!
31207
31283
  * Copyright (c) 2025-present, Vanilagy and contributors
31208
31284
  *
@@ -31623,7 +31699,7 @@ class WaveAudioTrackBacking {
31623
31699
  }
31624
31700
  }
31625
31701
 
31626
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/adts/adts-reader.js
31702
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/adts/adts-reader.js
31627
31703
  /*!
31628
31704
  * Copyright (c) 2025-present, Vanilagy and contributors
31629
31705
  *
@@ -31684,7 +31760,7 @@ var readFrameHeader2 = (slice) => {
31684
31760
  };
31685
31761
  };
31686
31762
 
31687
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/adts/adts-demuxer.js
31763
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/adts/adts-demuxer.js
31688
31764
  /*!
31689
31765
  * Copyright (c) 2025-present, Vanilagy and contributors
31690
31766
  *
@@ -31905,7 +31981,7 @@ class AdtsAudioTrackBacking {
31905
31981
  }
31906
31982
  }
31907
31983
 
31908
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/flac/flac-misc.js
31984
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/flac/flac-misc.js
31909
31985
  /*!
31910
31986
  * Copyright (c) 2025-present, Vanilagy and contributors
31911
31987
  *
@@ -32040,7 +32116,7 @@ var calculateCrc8 = (data) => {
32040
32116
  return crc;
32041
32117
  };
32042
32118
 
32043
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/flac/flac-demuxer.js
32119
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/flac/flac-demuxer.js
32044
32120
  /*!
32045
32121
  * Copyright (c) 2025-present, Vanilagy and contributors
32046
32122
  *
@@ -32464,7 +32540,7 @@ class FlacAudioTrackBacking {
32464
32540
  }
32465
32541
  }
32466
32542
 
32467
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/input-format.js
32543
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/input-format.js
32468
32544
  /*!
32469
32545
  * Copyright (c) 2025-present, Vanilagy and contributors
32470
32546
  *
@@ -32786,7 +32862,7 @@ var ADTS = /* @__PURE__ */ new AdtsInputFormat;
32786
32862
  var FLAC = /* @__PURE__ */ new FlacInputFormat;
32787
32863
  var ALL_FORMATS = [MP4, QTFF, MATROSKA, WEBM, WAVE, OGG, FLAC, MP3, ADTS];
32788
32864
 
32789
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/source.js
32865
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/source.js
32790
32866
  var nodeAlias = (() => ({}));
32791
32867
  /*!
32792
32868
  * Copyright (c) 2025-present, Vanilagy and contributors
@@ -32953,7 +33029,7 @@ class UrlSource extends Source {
32953
33029
  }
32954
33030
  }
32955
33031
  if (worker.aborted) {
32956
- break;
33032
+ continue;
32957
33033
  }
32958
33034
  const { done, value } = readResult;
32959
33035
  if (done) {
@@ -32967,11 +33043,7 @@ class UrlSource extends Source {
32967
33043
  this.onread?.(worker.currentPos, worker.currentPos + value.length);
32968
33044
  this._orchestrator.supplyWorkerData(worker, value);
32969
33045
  }
32970
- if (worker.aborted) {
32971
- break;
32972
- }
32973
33046
  }
32974
- worker.running = false;
32975
33047
  }
32976
33048
  _getTotalLengthFromRangeResponse(response) {
32977
33049
  const contentRange = response.headers.get("Content-Range");
@@ -33324,7 +33396,7 @@ class ReadOrchestrator {
33324
33396
  }
33325
33397
  }
33326
33398
 
33327
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/input.js
33399
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/input.js
33328
33400
  /*!
33329
33401
  * Copyright (c) 2025-present, Vanilagy and contributors
33330
33402
  *
@@ -33431,7 +33503,7 @@ class InputDisposedError extends Error {
33431
33503
  }
33432
33504
  }
33433
33505
 
33434
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/reader.js
33506
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/reader.js
33435
33507
  /*!
33436
33508
  * Copyright (c) 2025-present, Vanilagy and contributors
33437
33509
  *
@@ -33649,7 +33721,7 @@ var readAscii = (slice, length) => {
33649
33721
  }
33650
33722
  return str;
33651
33723
  };
33652
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/index.js
33724
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/index.js
33653
33725
  /*!
33654
33726
  * Copyright (c) 2025-present, Vanilagy and contributors
33655
33727
  *
@@ -39993,6 +40065,26 @@ var humanReadableCodec = (codec) => {
39993
40065
  throw new TypeError(`Got unexpected codec "${codec}"`);
39994
40066
  };
39995
40067
 
40068
+ // src/components/RenderModal/human-readable-loglevel.ts
40069
+ var humanReadableLogLevel = (logLevel) => {
40070
+ if (logLevel === "trace") {
40071
+ return "Trace";
40072
+ }
40073
+ if (logLevel === "verbose") {
40074
+ return "Verbose";
40075
+ }
40076
+ if (logLevel === "info") {
40077
+ return "Info";
40078
+ }
40079
+ if (logLevel === "warn") {
40080
+ return "Warn";
40081
+ }
40082
+ if (logLevel === "error") {
40083
+ return "Error";
40084
+ }
40085
+ throw new TypeError(`Got unexpected log level "${logLevel}"`);
40086
+ };
40087
+
39996
40088
  // src/components/RenderModal/RenderModalBasic.tsx
39997
40089
  import { jsx as jsx250, jsxs as jsxs129 } from "react/jsx-runtime";
39998
40090
  var container56 = {
@@ -40069,9 +40161,21 @@ var RenderModalBasic = ({
40069
40161
  const onValueChange = useCallback123((e) => {
40070
40162
  setOutName(e.target.value);
40071
40163
  }, [setOutName]);
40072
- const onVerboseLoggingChanged = useCallback123((e) => {
40073
- setVerboseLogging(e.target.checked ? "verbose" : "info");
40074
- }, [setVerboseLogging]);
40164
+ const logLevelOptions = useMemo125(() => {
40165
+ return ["trace", "verbose", "info", "warn", "error"].map((level) => {
40166
+ return {
40167
+ label: humanReadableLogLevel(level),
40168
+ onClick: () => setVerboseLogging(level),
40169
+ leftItem: logLevel === level ? /* @__PURE__ */ jsx250(Checkmark, {}) : null,
40170
+ id: level,
40171
+ keyHint: null,
40172
+ quickSwitcherLabel: null,
40173
+ subMenu: null,
40174
+ type: "item",
40175
+ value: level
40176
+ };
40177
+ });
40178
+ }, [logLevel, setVerboseLogging]);
40075
40179
  return /* @__PURE__ */ jsxs129("div", {
40076
40180
  style: container56,
40077
40181
  children: [
@@ -40179,7 +40283,7 @@ var RenderModalBasic = ({
40179
40283
  /* @__PURE__ */ jsxs129("div", {
40180
40284
  style: label5,
40181
40285
  children: [
40182
- "Verbose logging ",
40286
+ "Log Level ",
40183
40287
  /* @__PURE__ */ jsx250(Spacing, {
40184
40288
  x: 0.5
40185
40289
  }),
@@ -40190,10 +40294,10 @@ var RenderModalBasic = ({
40190
40294
  }),
40191
40295
  /* @__PURE__ */ jsx250("div", {
40192
40296
  style: rightRow,
40193
- children: /* @__PURE__ */ jsx250(Checkbox, {
40194
- checked: logLevel === "verbose",
40195
- onChange: onVerboseLoggingChanged,
40196
- name: "verbose-logging"
40297
+ children: /* @__PURE__ */ jsx250(Combobox, {
40298
+ values: logLevelOptions,
40299
+ selectedId: logLevel,
40300
+ title: "Log Level"
40197
40301
  })
40198
40302
  })
40199
40303
  ]
@@ -41915,7 +42019,7 @@ var RenderModalWithLoader = (props) => {
41915
42019
  // src/components/RenderModal/WebRenderModal.tsx
41916
42020
  import { getDefaultOutLocation as getDefaultOutLocation2 } from "@remotion/studio-shared";
41917
42021
  import { renderMediaOnWeb, renderStillOnWeb } from "@remotion/web-renderer";
41918
- import { useCallback as useCallback131, useContext as useContext83, useMemo as useMemo132, useState as useState80 } from "react";
42022
+ import { useCallback as useCallback130, useContext as useContext83, useMemo as useMemo132, useState as useState80 } from "react";
41919
42023
 
41920
42024
  // src/components/RenderModal/WebRenderModalAdvanced.tsx
41921
42025
  import { useCallback as useCallback128, useMemo as useMemo129 } from "react";
@@ -42057,7 +42161,7 @@ var WebRenderModalAdvanced = ({
42057
42161
  };
42058
42162
 
42059
42163
  // src/components/RenderModal/WebRenderModalBasic.tsx
42060
- import { useCallback as useCallback129, useMemo as useMemo130 } from "react";
42164
+ import { useMemo as useMemo130 } from "react";
42061
42165
  import { jsx as jsx258, jsxs as jsxs136, Fragment as Fragment44 } from "react/jsx-runtime";
42062
42166
  var tabContainer2 = {
42063
42167
  flex: 1
@@ -42106,6 +42210,21 @@ var WebRenderModalBasic = ({
42106
42210
  }
42107
42211
  ];
42108
42212
  }, [imageFormat, setStillFormat]);
42213
+ const logLevelOptions = useMemo130(() => {
42214
+ return ["trace", "verbose", "info", "warn", "error"].map((level) => {
42215
+ return {
42216
+ label: humanReadableLogLevel(level),
42217
+ onClick: () => setLogLevel(level),
42218
+ leftItem: logLevel === level ? /* @__PURE__ */ jsx258(Checkmark, {}) : null,
42219
+ id: level,
42220
+ keyHint: null,
42221
+ quickSwitcherLabel: null,
42222
+ subMenu: null,
42223
+ type: "item",
42224
+ value: level
42225
+ };
42226
+ });
42227
+ }, [logLevel, setLogLevel]);
42109
42228
  const containerOptions = useMemo130(() => {
42110
42229
  return [
42111
42230
  {
@@ -42191,9 +42310,6 @@ var WebRenderModalBasic = ({
42191
42310
  }
42192
42311
  ];
42193
42312
  }, [codec, setCodec]);
42194
- const onVerboseLoggingChanged = useCallback129((e) => {
42195
- setLogLevel(e.target.checked ? "verbose" : "info");
42196
- }, [setLogLevel]);
42197
42313
  return /* @__PURE__ */ jsxs136("div", {
42198
42314
  style: tabContainer2,
42199
42315
  children: [
@@ -42309,7 +42425,7 @@ var WebRenderModalBasic = ({
42309
42425
  /* @__PURE__ */ jsxs136("div", {
42310
42426
  style: label5,
42311
42427
  children: [
42312
- "Verbose logging ",
42428
+ "Log Level ",
42313
42429
  /* @__PURE__ */ jsx258(Spacing, {
42314
42430
  x: 0.5
42315
42431
  }),
@@ -42320,10 +42436,10 @@ var WebRenderModalBasic = ({
42320
42436
  }),
42321
42437
  /* @__PURE__ */ jsx258("div", {
42322
42438
  style: rightRow,
42323
- children: /* @__PURE__ */ jsx258(Checkbox, {
42324
- checked: logLevel === "verbose",
42325
- onChange: onVerboseLoggingChanged,
42326
- name: "verbose-logging"
42439
+ children: /* @__PURE__ */ jsx258(Combobox, {
42440
+ values: logLevelOptions,
42441
+ selectedId: logLevel,
42442
+ title: "Log Level"
42327
42443
  })
42328
42444
  })
42329
42445
  ]
@@ -42333,7 +42449,7 @@ var WebRenderModalBasic = ({
42333
42449
  };
42334
42450
 
42335
42451
  // src/components/RenderModal/WebRenderModalPicture.tsx
42336
- import { useCallback as useCallback130, useMemo as useMemo131 } from "react";
42452
+ import { useCallback as useCallback129, useMemo as useMemo131 } from "react";
42337
42453
  import { jsx as jsx259, jsxs as jsxs137 } from "react/jsx-runtime";
42338
42454
  var tabContainer3 = {
42339
42455
  flex: 1
@@ -42406,7 +42522,7 @@ var WebRenderModalPicture = ({
42406
42522
  }
42407
42523
  ];
42408
42524
  }, [videoBitrate, setVideoBitrate]);
42409
- const onTransparentChanged = useCallback130((e) => {
42525
+ const onTransparentChanged = useCallback129((e) => {
42410
42526
  setTransparent(e.target.checked);
42411
42527
  }, [setTransparent]);
42412
42528
  if (renderMode !== "video") {
@@ -42511,7 +42627,8 @@ var WebRenderModal = ({
42511
42627
  initialFrame,
42512
42628
  defaultProps,
42513
42629
  inFrameMark,
42514
- outFrameMark
42630
+ outFrameMark,
42631
+ initialLogLevel
42515
42632
  }) => {
42516
42633
  const context = useContext83(ResolvedCompositionContext);
42517
42634
  if (!context) {
@@ -42521,11 +42638,14 @@ var WebRenderModal = ({
42521
42638
  resolved: { result: resolvedComposition },
42522
42639
  unresolved: unresolvedComposition
42523
42640
  } = context;
42524
- const [renderMode, setRenderMode] = useState80("video");
42641
+ const [isVideo] = useState80(() => {
42642
+ return typeof resolvedComposition.durationInFrames === "undefined" ? true : resolvedComposition.durationInFrames > 1;
42643
+ });
42644
+ const [renderMode, setRenderMode] = useState80(isVideo ? "video" : "still");
42525
42645
  const [tab, setTab] = useState80("general");
42526
42646
  const [imageFormat, setImageFormat] = useState80("png");
42527
42647
  const [frame2, setFrame] = useState80(() => initialFrame);
42528
- const [logLevel, setLogLevel] = useState80("info");
42648
+ const [logLevel, setLogLevel] = useState80(() => initialLogLevel);
42529
42649
  const [inputProps, setInputProps] = useState80(() => defaultProps);
42530
42650
  const [delayRenderTimeout, setDelayRenderTimeout] = useState80(30000);
42531
42651
  const [mediaCacheSizeInBytes, setMediaCacheSizeInBytes] = useState80(null);
@@ -42560,28 +42680,28 @@ var WebRenderModal = ({
42560
42680
  const [initialOutName] = useState80(() => {
42561
42681
  return getDefaultOutLocation2({
42562
42682
  compositionName: resolvedComposition.id,
42563
- defaultExtension: container60,
42683
+ defaultExtension: renderMode === "still" ? imageFormat : isVideo ? container60 : imageFormat,
42564
42684
  type: "asset",
42565
42685
  compositionDefaultOutName: resolvedComposition.defaultOutName,
42566
42686
  clientSideRender: true
42567
42687
  });
42568
42688
  });
42569
42689
  const [outName, setOutName] = useState80(() => initialOutName);
42570
- const setStillFormat = useCallback131((format) => {
42690
+ const setStillFormat = useCallback130((format) => {
42571
42691
  setImageFormat(format);
42572
42692
  setOutName((prev) => {
42573
42693
  const newFileName = getStringBeforeSuffix(prev) + "." + format;
42574
42694
  return newFileName;
42575
42695
  });
42576
42696
  }, []);
42577
- const setContainerFormat = useCallback131((newContainer) => {
42697
+ const setContainerFormat = useCallback130((newContainer) => {
42578
42698
  setContainer(newContainer);
42579
42699
  setOutName((prev) => {
42580
42700
  const newFileName = getStringBeforeSuffix(prev) + "." + newContainer;
42581
42701
  return newFileName;
42582
42702
  });
42583
42703
  }, []);
42584
- const onRenderModeChange = useCallback131((newMode) => {
42704
+ const onRenderModeChange = useCallback130((newMode) => {
42585
42705
  setRenderMode(newMode);
42586
42706
  if (newMode === "video") {
42587
42707
  setOutName((prev) => {
@@ -42618,10 +42738,10 @@ var WebRenderModal = ({
42618
42738
  }
42619
42739
  return options;
42620
42740
  }, [renderMode, resolvedComposition.durationInFrames, onRenderModeChange]);
42621
- const onFrameSetDirectly = useCallback131((newFrame) => {
42741
+ const onFrameSetDirectly = useCallback130((newFrame) => {
42622
42742
  setFrame(newFrame);
42623
42743
  }, [setFrame]);
42624
- const onFrameChanged = useCallback131((e) => {
42744
+ const onFrameChanged = useCallback130((e) => {
42625
42745
  setFrame((q) => {
42626
42746
  const newFrame = parseFloat(e);
42627
42747
  if (Number.isNaN(newFrame)) {
@@ -42630,7 +42750,7 @@ var WebRenderModal = ({
42630
42750
  return newFrame;
42631
42751
  });
42632
42752
  }, [setFrame]);
42633
- const onOutNameChange = useCallback131((e) => {
42753
+ const onOutNameChange = useCallback130((e) => {
42634
42754
  setOutName(e.target.value);
42635
42755
  }, []);
42636
42756
  const outnameValidation = useMemo132(() => {
@@ -42672,8 +42792,8 @@ var WebRenderModal = ({
42672
42792
  return { valid: false, error: err };
42673
42793
  }
42674
42794
  }, [outName, imageFormat, renderMode, container60]);
42675
- const onRenderStill = useCallback131(async () => {
42676
- const blob = await renderStillOnWeb({
42795
+ const onRenderStill = useCallback130(async () => {
42796
+ const { blob } = await renderStillOnWeb({
42677
42797
  composition: {
42678
42798
  component: unresolvedComposition.component,
42679
42799
  width: resolvedComposition.width,
@@ -42715,7 +42835,7 @@ var WebRenderModal = ({
42715
42835
  unresolvedComposition.calculateMetadata,
42716
42836
  resolvedComposition.id
42717
42837
  ]);
42718
- const onRenderVideo = useCallback131(async () => {
42838
+ const onRenderVideo = useCallback130(async () => {
42719
42839
  setRenderProgress({ renderedFrames: 0, encodedFrames: 0 });
42720
42840
  const { getBlob } = await renderMediaOnWeb({
42721
42841
  composition: {
@@ -42775,7 +42895,7 @@ var WebRenderModal = ({
42775
42895
  resolvedComposition.id,
42776
42896
  unresolvedComposition.calculateMetadata
42777
42897
  ]);
42778
- const onRender = useCallback131(async () => {
42898
+ const onRender = useCallback130(async () => {
42779
42899
  if (renderMode === "still") {
42780
42900
  await onRenderStill();
42781
42901
  } else {
@@ -42945,10 +43065,10 @@ var WebRenderModalWithLoader = (props) => {
42945
43065
  };
42946
43066
 
42947
43067
  // src/components/UpdateModal/UpdateModal.tsx
42948
- import { useCallback as useCallback134, useMemo as useMemo134 } from "react";
43068
+ import { useCallback as useCallback133, useMemo as useMemo134 } from "react";
42949
43069
 
42950
43070
  // src/components/CopyButton.tsx
42951
- import { useCallback as useCallback132, useEffect as useEffect77, useState as useState81 } from "react";
43071
+ import { useCallback as useCallback131, useEffect as useEffect77, useState as useState81 } from "react";
42952
43072
  import { jsx as jsx261, jsxs as jsxs139 } from "react/jsx-runtime";
42953
43073
  var iconStyle8 = {
42954
43074
  width: 16,
@@ -42979,7 +43099,7 @@ var labelStyle5 = {
42979
43099
  };
42980
43100
  var CopyButton = ({ textToCopy, label: label12, labelWhenCopied }) => {
42981
43101
  const [copied, setCopied] = useState81(false);
42982
- const onClick = useCallback132(() => {
43102
+ const onClick = useCallback131(() => {
42983
43103
  copyText(textToCopy).then(() => {
42984
43104
  setCopied(Date.now());
42985
43105
  }).catch((err) => {
@@ -43011,7 +43131,7 @@ var CopyButton = ({ textToCopy, label: label12, labelWhenCopied }) => {
43011
43131
  };
43012
43132
 
43013
43133
  // src/components/UpdateModal/OpenIssueButton.tsx
43014
- import { useCallback as useCallback133, useMemo as useMemo133, useState as useState82 } from "react";
43134
+ import { useCallback as useCallback132, useMemo as useMemo133, useState as useState82 } from "react";
43015
43135
  import { jsx as jsx262 } from "react/jsx-runtime";
43016
43136
  var svgStyle3 = {
43017
43137
  width: "11px",
@@ -43028,7 +43148,7 @@ var buttonStyle8 = {
43028
43148
  var OpenIssueButton = ({ link: link3 }) => {
43029
43149
  const [hovered, setHovered] = useState82(false);
43030
43150
  const buttonTooltip = `Open GitHub issue in new Tab`;
43031
- const handleClick = useCallback133(() => {
43151
+ const handleClick = useCallback132(() => {
43032
43152
  window.open(link3, "_blank");
43033
43153
  }, [link3]);
43034
43154
  const svgFillColor = useMemo133(() => {
@@ -43042,10 +43162,10 @@ var OpenIssueButton = ({ link: link3 }) => {
43042
43162
  d: "M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32h82.7L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3V192c0 17.7 14.3 32 32 32s32-14.3 32-32V32c0-17.7-14.3-32-32-32H320zM80 32C35.8 32 0 67.8 0 112V432c0 44.2 35.8 80 80 80H400c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32V432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16H192c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z"
43043
43163
  })
43044
43164
  });
43045
- const onPointerEnter = useCallback133(() => {
43165
+ const onPointerEnter = useCallback132(() => {
43046
43166
  setHovered(true);
43047
43167
  }, []);
43048
- const onPointerLeave = useCallback133(() => {
43168
+ const onPointerLeave = useCallback132(() => {
43049
43169
  setHovered(false);
43050
43170
  }, []);
43051
43171
  return /* @__PURE__ */ jsx262("button", {
@@ -43132,7 +43252,7 @@ var UpdateModal = ({ info, knownBugs }) => {
43132
43252
  return knownBugs && knownBugs?.length > 0;
43133
43253
  }, [knownBugs]);
43134
43254
  const command = commands[info.packageManager];
43135
- const onClick = useCallback134(() => {
43255
+ const onClick = useCallback133(() => {
43136
43256
  copyText(command).catch((err) => {
43137
43257
  showNotification(`Could not copy: ${err.message}`, 2000);
43138
43258
  });
@@ -43248,7 +43368,8 @@ var Modals = ({ readOnlyStudio }) => {
43248
43368
  compositionId: modalContextType.compositionId,
43249
43369
  defaultProps: modalContextType.defaultProps,
43250
43370
  inFrameMark: modalContextType.inFrameMark,
43251
- outFrameMark: modalContextType.outFrameMark
43371
+ outFrameMark: modalContextType.outFrameMark,
43372
+ initialLogLevel: modalContextType.initialLogLevel
43252
43373
  }),
43253
43374
  modalContextType && canRender && modalContextType.type === "server-render" && /* @__PURE__ */ jsx265(RenderModalWithLoader, {
43254
43375
  initialFrame: modalContextType.initialFrame,
@@ -43351,7 +43472,7 @@ var Editor = ({ Root, readOnlyStudio }) => {
43351
43472
  };
43352
43473
  }, [readOnlyStudio]);
43353
43474
  const [canvasMounted, setCanvasMounted] = React175.useState(false);
43354
- const onMounted = useCallback135(() => {
43475
+ const onMounted = useCallback134(() => {
43355
43476
  setCanvasMounted(true);
43356
43477
  }, []);
43357
43478
  const value = useMemo135(() => {
@@ -43407,7 +43528,7 @@ var Editor = ({ Root, readOnlyStudio }) => {
43407
43528
  import { PlayerInternals as PlayerInternals21 } from "@remotion/player";
43408
43529
 
43409
43530
  // src/state/preview-size.tsx
43410
- import { useCallback as useCallback136, useContext as useContext85, useMemo as useMemo136, useState as useState83 } from "react";
43531
+ import { useCallback as useCallback135, useContext as useContext85, useMemo as useMemo136, useState as useState83 } from "react";
43411
43532
  import { Internals as Internals63 } from "remotion";
43412
43533
  import { jsx as jsx267 } from "react/jsx-runtime";
43413
43534
  var key5 = "remotion.previewSize";
@@ -43436,7 +43557,7 @@ var PreviewSizeProvider = ({ children }) => {
43436
43557
  };
43437
43558
  });
43438
43559
  const { editorZoomGestures } = useContext85(EditorZoomGesturesContext);
43439
- const setSize = useCallback136((newValue) => {
43560
+ const setSize = useCallback135((newValue) => {
43440
43561
  setSizeState((prevState) => {
43441
43562
  const newVal = newValue(prevState);
43442
43563
  persistPreviewSizeOption(newVal);
@@ -43464,11 +43585,11 @@ var PreviewSizeProvider = ({ children }) => {
43464
43585
  };
43465
43586
 
43466
43587
  // src/components/CheckerboardProvider.tsx
43467
- import { useCallback as useCallback137, useMemo as useMemo137, useState as useState84 } from "react";
43588
+ import { useCallback as useCallback136, useMemo as useMemo137, useState as useState84 } from "react";
43468
43589
  import { jsx as jsx268 } from "react/jsx-runtime";
43469
43590
  var CheckerboardProvider = ({ children }) => {
43470
43591
  const [checkerboard, setCheckerboardState] = useState84(() => loadCheckerboardOption());
43471
- const setCheckerboard = useCallback137((newValue) => {
43592
+ const setCheckerboard = useCallback136((newValue) => {
43472
43593
  setCheckerboardState((prevState) => {
43473
43594
  const newVal = newValue(prevState);
43474
43595
  persistCheckerboardOption(newVal);
@@ -43570,7 +43691,7 @@ var SetTimelineInOutProvider = ({ children }) => {
43570
43691
  };
43571
43692
 
43572
43693
  // src/components/ShowGuidesProvider.tsx
43573
- import { useCallback as useCallback138, useMemo as useMemo141, useRef as useRef42, useState as useState88 } from "react";
43694
+ import { useCallback as useCallback137, useMemo as useMemo141, useRef as useRef42, useState as useState88 } from "react";
43574
43695
  import { jsx as jsx272 } from "react/jsx-runtime";
43575
43696
  var ShowGuidesProvider = ({ children }) => {
43576
43697
  const [guidesList, setGuidesList] = useState88(() => loadGuidesList());
@@ -43579,7 +43700,7 @@ var ShowGuidesProvider = ({ children }) => {
43579
43700
  const [editorShowGuides, setEditorShowGuidesState] = useState88(() => loadEditorShowGuidesOption());
43580
43701
  const shouldCreateGuideRef = useRef42(false);
43581
43702
  const shouldDeleteGuideRef = useRef42(false);
43582
- const setEditorShowGuides = useCallback138((newValue) => {
43703
+ const setEditorShowGuides = useCallback137((newValue) => {
43583
43704
  setEditorShowGuidesState((prevState) => {
43584
43705
  const newVal = newValue(prevState);
43585
43706
  persistEditorShowGuidesOption(newVal);
@@ -43613,11 +43734,11 @@ var ShowGuidesProvider = ({ children }) => {
43613
43734
  };
43614
43735
 
43615
43736
  // src/components/ShowRulersProvider.tsx
43616
- import { useCallback as useCallback139, useMemo as useMemo142, useState as useState89 } from "react";
43737
+ import { useCallback as useCallback138, useMemo as useMemo142, useState as useState89 } from "react";
43617
43738
  import { jsx as jsx273 } from "react/jsx-runtime";
43618
43739
  var ShowRulersProvider = ({ children }) => {
43619
43740
  const [editorShowRulers, setEditorShowRulersState] = useState89(() => loadEditorShowRulersOption());
43620
- const setEditorShowRulers = useCallback139((newValue) => {
43741
+ const setEditorShowRulers = useCallback138((newValue) => {
43621
43742
  setEditorShowRulersState((prevState) => {
43622
43743
  const newVal = newValue(prevState);
43623
43744
  persistEditorShowRulersOption(newVal);
@@ -43637,11 +43758,11 @@ var ShowRulersProvider = ({ children }) => {
43637
43758
  };
43638
43759
 
43639
43760
  // src/components/ZoomGesturesProvider.tsx
43640
- import { useCallback as useCallback140, useMemo as useMemo143, useState as useState90 } from "react";
43761
+ import { useCallback as useCallback139, useMemo as useMemo143, useState as useState90 } from "react";
43641
43762
  import { jsx as jsx274 } from "react/jsx-runtime";
43642
43763
  var ZoomGesturesProvider = ({ children }) => {
43643
43764
  const [editorZoomGestures, setEditorZoomGesturesState] = useState90(() => loadEditorZoomGesturesOption());
43644
- const setEditorZoomGestures = useCallback140((newValue) => {
43765
+ const setEditorZoomGestures = useCallback139((newValue) => {
43645
43766
  setEditorZoomGesturesState((prevState) => {
43646
43767
  const newVal = newValue(prevState);
43647
43768
  persistEditorZoomGesturesOption(newVal);