conformtools 0.6.9 → 0.6.10

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 (103) hide show
  1. package/dist/account-GFIQC77T.js +3 -0
  2. package/dist/analysis-engine-4K5K6L53.js +3 -0
  3. package/dist/{bridge-SX5TW4LC.js → bridge-73XMEZLH.js} +1 -1
  4. package/dist/browser/timeline_core_bg.wasm +0 -0
  5. package/dist/chunk-2MJAQROY.js +5 -0
  6. package/dist/{chunk-TXQR2HI2.js → chunk-56EEBHP2.js} +1 -1
  7. package/dist/{chunk-GM6QKY7W.js → chunk-6HZP2OJA.js} +1 -1
  8. package/dist/{chunk-VIBEEWPC.js → chunk-7QUSVHO2.js} +2 -2
  9. package/dist/chunk-CJYLQ3UM.js +5 -0
  10. package/dist/chunk-DFDXSIMI.js +39 -0
  11. package/dist/{chunk-3D3Z4TBR.js → chunk-DGXZB7MO.js} +1 -1
  12. package/dist/{chunk-PLRB2YXJ.js → chunk-DNS4ZYIO.js} +1 -1
  13. package/dist/chunk-DPA26AOI.js +3 -0
  14. package/dist/chunk-E5ENIKNR.js +7 -0
  15. package/dist/{chunk-A7FNR3T5.js → chunk-EEDLRRKU.js} +1 -1
  16. package/dist/{chunk-GTJ3EM6H.js → chunk-GM262EDM.js} +1 -1
  17. package/dist/{chunk-D4WPRRBT.js → chunk-ISKNIQVO.js} +1 -1
  18. package/dist/chunk-JHTMYXJM.js +20 -0
  19. package/dist/chunk-JKOB3U54.js +3 -0
  20. package/dist/{chunk-2BPR6LK6.js → chunk-JXTRQ3UG.js} +1 -1
  21. package/dist/chunk-NQNS4Y2B.js +3 -0
  22. package/dist/chunk-QHXX5GDD.js +440 -0
  23. package/dist/{chunk-NFJHWZJX.js → chunk-TDIY4NRQ.js} +1 -1
  24. package/dist/chunk-UGVGRL5M.js +3 -0
  25. package/dist/chunk-WJ5EWXP2.js +3 -0
  26. package/dist/chunk-XDI6CPPV.js +3 -0
  27. package/dist/chunk-XJNWAQON.js +7 -0
  28. package/dist/chunk-Y2QHZUGL.js +5 -0
  29. package/dist/{chunk-GK4YYKJ6.js → chunk-YC7QDS5U.js} +2 -2
  30. package/dist/chunk-YUO3UWPH.js +3 -0
  31. package/dist/chunk-ZVUKOFUX.js +6 -0
  32. package/dist/{claude-setup-IIWUB4CE.js → claude-setup-OKOPPDMB.js} +1 -1
  33. package/dist/cli.js +2 -2
  34. package/dist/conformtools-analyze +0 -0
  35. package/dist/conformtools-decode +0 -0
  36. package/dist/{cr3-wasm-HLJWEV2S.js → cr3-wasm-NYCB34ND.js} +1 -1
  37. package/dist/{dng-wasm-CQDLPM5V.js → dng-wasm-XCPPBXPZ.js} +1 -1
  38. package/dist/{dpx-wasm-TLGMM7BO.js → dpx-wasm-XACWNFPB.js} +1 -1
  39. package/dist/engine-274GQLUB.js +5 -0
  40. package/dist/{exr-wasm-2NPKPTVB.js → exr-wasm-FQBUR6QT.js} +1 -1
  41. package/dist/flame/hook/conformtools_flame/verbs.py +9 -9
  42. package/dist/framing-BKTUEUZO.js +3 -0
  43. package/dist/gfx-worker.js +1 -1
  44. package/dist/{h264-JJMZSUWW.js → h264-B2TLLEMI.js} +1 -1
  45. package/dist/{h264-mxf-DCUOGLDU.js → h264-mxf-3GED5PBT.js} +1 -1
  46. package/dist/host-relink-PTV44KXF.js +10 -0
  47. package/dist/hosts-D3TR2QEV.js +3 -0
  48. package/dist/http.js +2 -2
  49. package/dist/{inspect-FJKYPEXL.js → inspect-D3WEYL2W.js} +3 -3
  50. package/dist/{isobmff-VJOWP4MH.js → isobmff-C5A2EFKH.js} +1 -1
  51. package/dist/{mc-video-5MGGOQN4.js → mc-video-ARKIHPA7.js} +1 -1
  52. package/dist/mcp.js +1 -1
  53. package/dist/{media-NZYVREUF.js → media-3YMIZSSF.js} +1 -1
  54. package/dist/media_core-XOKN7UUF.js +9 -0
  55. package/dist/mxf-CQSI6H5T.js +3 -0
  56. package/dist/nuke/panel/python/conformtools_nuke/verbs.py +5 -5
  57. package/dist/{ops-X7NAREC4.js → ops-BCTGDBXT.js} +1 -1
  58. package/dist/peer-kit/ctpeer/__init__.py +1 -1
  59. package/dist/peer-kit/ctpeer/neutral.py +10 -10
  60. package/dist/premiere-uxp/lib/edit.js +94 -9
  61. package/dist/premiere-uxp/lib/markers.js +12 -11
  62. package/dist/premiere-uxp/lib/probe.js +6 -3
  63. package/dist/premiere-uxp/lib/verbs.js +1 -1
  64. package/dist/premiere-uxp/manifest.json +1 -1
  65. package/dist/{probe-F7WQHMIA.js → probe-COWUTQGN.js} +1 -1
  66. package/dist/{r3d-T5O6IIZZ.js → r3d-FX7V4BIE.js} +1 -1
  67. package/dist/{r3d-CXUNG6VS.js → r3d-I6EYEYX7.js} +1 -1
  68. package/dist/resolve-bridge.py +725 -88
  69. package/dist/sequence-patch-JVEZW24V.js +3 -0
  70. package/dist/{still-P4JJNTEO.js → still-WUCFH2WX.js} +1 -1
  71. package/dist/{still-wasm-DN5LPASS.js → still-wasm-RTPOMH7S.js} +1 -1
  72. package/dist/store-SZKXADGI.js +3 -0
  73. package/dist/{tiff-wasm-BPRDR6EB.js → tiff-wasm-N2S267IA.js} +1 -1
  74. package/dist/timeline-PEUC3G7K.js +3 -0
  75. package/dist/timeline_core-ZKQQHUA2.js +3 -0
  76. package/dist/wasm/media_core_bg.wasm +0 -0
  77. package/dist/wasm-threads/media_core_bg.wasm +0 -0
  78. package/dist/{wav-64SC6P7U.js → wav-HSCUCY4U.js} +1 -1
  79. package/package.json +1 -1
  80. package/dist/account-M53GEV7P.js +0 -3
  81. package/dist/chunk-5BSXYKLN.js +0 -20
  82. package/dist/chunk-623EA3TK.js +0 -6
  83. package/dist/chunk-AMRJXYL4.js +0 -3
  84. package/dist/chunk-DQGINJDV.js +0 -5
  85. package/dist/chunk-GRQJGEGV.js +0 -378
  86. package/dist/chunk-HNBA43BF.js +0 -5
  87. package/dist/chunk-J2JXLEAI.js +0 -3
  88. package/dist/chunk-MWDF2R26.js +0 -7
  89. package/dist/chunk-PFISREY4.js +0 -3
  90. package/dist/chunk-QVH44I66.js +0 -39
  91. package/dist/chunk-RJ6JA2LZ.js +0 -3
  92. package/dist/chunk-SGLQY53R.js +0 -3
  93. package/dist/chunk-WN53ARHJ.js +0 -3
  94. package/dist/chunk-XCKQHL4G.js +0 -9
  95. package/dist/engine-P6H5P6HP.js +0 -5
  96. package/dist/framing-3XIVHSUZ.js +0 -3
  97. package/dist/host-relink-UWML4C7W.js +0 -10
  98. package/dist/hosts-SRS5TEM6.js +0 -3
  99. package/dist/media_core-YZ3PABEG.js +0 -9
  100. package/dist/mxf-FJSRFLJC.js +0 -3
  101. package/dist/store-53BBZBND.js +0 -3
  102. package/dist/timeline-C3OZJBCZ.js +0 -3
  103. package/dist/timeline_core-IOENXK4Z.js +0 -3
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{d as Tt}from"./chunk-PSANHDZM.js";var At={};Tt(At,{ExrBench:()=>J,ExrStreamEncoder:()=>Q,ProResBench:()=>Z,ProResMovEncoder:()=>tt,ProResMovWriter:()=>et,arriraw12_clip_info:()=>Ot,arriraw_mxf_gpu_frame:()=>Wt,audio_aac_au:()=>Ft,audio_aac_config:()=>St,audio_info:()=>Rt,bench_f32_boundary:()=>Lt,bench_piz_no_huffman:()=>jt,color_cst:()=>zt,dci_code_full_depth:()=>Dt,dci_frame_cap:()=>Ut,dci_gpu_colour_patch:()=>Pt,dci_gpu_colour_tables:()=>Bt,dci_last_pass_caps:()=>Ct,dci_legal_rates:()=>qt,dci_mq_bench:()=>Nt,dci_pack_tier1:()=>Ht,dci_stage_rgba8:()=>Gt,dci_transform_only:()=>Vt,decode_arriraw12_luma:()=>Kt,decode_arriraw12_mxf:()=>Xt,decode_arriraw12_preview:()=>Yt,decode_arriraw12_rgba:()=>$t,decode_arriraw_luma:()=>Jt,decode_arriraw_mxf:()=>Qt,decode_arriraw_preview:()=>Zt,decode_arriraw_preview_gray:()=>te,decode_arriraw_preview_meta:()=>ee,decode_arriraw_rgba:()=>ne,decode_arriraw_rgba_meta:()=>re,decode_arw_preview:()=>_e,decode_arw_rgba:()=>oe,decode_audio_pcm:()=>ie,decode_bmp_rgba:()=>ae,decode_braw_gen5log:()=>de,decode_braw_luma:()=>ce,decode_braw_preview:()=>se,decode_braw_rgba:()=>pe,decode_cr2_preview:()=>ge,decode_cr2_rgba:()=>ue,decode_cr3_rgba:()=>we,decode_crm:()=>be,decode_dng_preview:()=>le,decode_dng_rgba:()=>fe,decode_dpx_preview:()=>ve,decode_dpx_rgba:()=>xe,decode_dv_luma:()=>Ie,decode_dv_preview:()=>ye,decode_dv_rgba:()=>me,decode_exr_linear:()=>he,decode_exr_preview:()=>ke,decode_exr_rgba:()=>Ae,decode_gif_rgba:()=>Me,decode_heic_rgba:()=>Ee,decode_j2k_luma:()=>Te,decode_j2k_preview:()=>Oe,decode_j2k_rgba:()=>We,decode_jpeg_rgba:()=>Fe,decode_mpeg2_luma:()=>Se,decode_mpeg2_preview:()=>Re,decode_mpeg2_rgba:()=>Le,decode_png_rgba:()=>je,decode_prores_band_rgba:()=>ze,decode_prores_luma:()=>De,decode_prores_mxf:()=>Ue,decode_prores_preview:()=>Pe,decode_prores_raw_acescct:()=>Be,decode_prores_raw_luma:()=>Ce,decode_prores_raw_preview:()=>qe,decode_prores_raw_rec2020:()=>Ne,decode_prores_raw_rgba:()=>He,decode_prores_raw_tier:()=>Ge,decode_prores_rgb16:()=>Ve,decode_prores_rgba:()=>Ke,decode_prores_thumb_dc32:()=>Xe,decode_psd_rgba:()=>Ye,decode_r3d_luma:()=>$e,decode_r3d_preview:()=>Je,decode_r3d_preview_clip:()=>Qe,decode_r3d_rgb16:()=>Ze,decode_r3d_rgba:()=>tn,decode_r3d_rgba_clip:()=>en,decode_tga_rgba:()=>nn,decode_tiff_preview:()=>rn,decode_tiff_rgba:()=>_n,decode_vc3_band_rgba:()=>on,decode_vc3_luma:()=>an,decode_vc3_mxf:()=>dn,decode_vc3_preview:()=>cn,decode_vc3_rgba:()=>sn,decode_webp_rgba:()=>pn,decode_xocn_index_luma:()=>gn,decode_xocn_luma:()=>un,decode_xocn_mxf:()=>wn,decode_xocn_preview:()=>bn,decode_xocn_preview_rec709:()=>ln,decode_xocn_rgb16:()=>fn,decode_xocn_rgba:()=>vn,default:()=>rt,encode_dci_j2c:()=>xn,encode_dci_j2c_rgb:()=>In,encode_dci_j2c_rgba8:()=>yn,encode_dci_j2c_staged:()=>mn,encode_dci_j2c_staged_modelled:()=>hn,encode_exr:()=>kn,encode_prores_4444_alpha_mov_rgba:()=>An,encode_prores_4444_alpha_sample_q:()=>Mn,encode_prores_444_sample_cbr:()=>En,encode_prores_444_sample_cbr_rgb16:()=>Tn,encode_prores_444_sample_cbr_rgb16_lut:()=>On,encode_prores_mov_rgba:()=>Wn,encode_prores_rgba:()=>Fn,encode_prores_sample_cbr:()=>Sn,encode_prores_sample_cbr_rgb16:()=>Rn,encode_prores_sample_cbr_rgb16_lut:()=>Ln,encode_prores_sample_q:()=>jn,exr_sequence_filename:()=>zn,fit_sizing:()=>Dn,initSync:()=>p_,inspect_arw:()=>Un,inspect_cr2:()=>Pn,inspect_cr3:()=>Bn,inspect_dng:()=>Cn,inspect_dpx:()=>qn,inspect_exr:()=>Nn,inspect_isobmff:()=>Hn,inspect_tiff:()=>Gn,inspect_wav:()=>Vn,is_arriraw12_mxf:()=>Kn,is_arriraw_mxf:()=>Xn,is_crm:()=>Yn,is_prores_mxf:()=>$n,is_vc3_mxf:()=>Jn,is_xavc_mxf:()=>Qn,is_xocn_mxf:()=>Zn,list_isobmff_segments:()=>tr,list_mxf_segments:()=>er,list_r3d_frames:()=>nr,list_r3d_segments:()=>rr,list_wav_segments:()=>_r,mux_prores_4444_alpha_samples:()=>or,mux_prores_samples:()=>ir,mux_prores_samples_full:()=>ar,mxf_au_run:()=>dr,mxf_frame_index:()=>cr,mxf_gop_map:()=>sr,mxf_h264_kind:()=>pr,plan_isobmff_trim:()=>gr,plan_isobmff_trim_reader:()=>ur,plan_mxf_compact_trim:()=>wr,plan_mxf_trim:()=>br,plan_r3d_compact:()=>lr,plan_wav_trim:()=>fr,plan_wav_trim_reader:()=>vr,prepare_isobmff:()=>xr,prepare_mxf:()=>Ir,prepare_r3d:()=>yr,prepare_wav:()=>mr,probe_mov:()=>hr,probe_mxf:()=>kr,probe_r3d:()=>Ar,prores_band_info:()=>Mr,prores_raw_container_color:()=>Er,prores_reset_rate_control:()=>Tr,r3d_gpu_develop_params:()=>Or,r3d_index_ranges:()=>Wr,r3d_is_helium:()=>Fr,read_arriraw_fcs:()=>Sr,read_arriraw_unit_correction:()=>Rr,recover_reframe:()=>Lr,resample_rgba16:()=>jr,resample_rgba8:()=>zr,reset_dci_rate_state:()=>Dr,resize_luma_area:()=>Ur,rgba8_to_xyz12:()=>Pr,shot_crop:()=>Br,shot_ramp:()=>Cr,shot_scan:()=>qr,trim_r3d:()=>Nr,vc3_band_info:()=>Hr,video_close:()=>Gr,video_decode:()=>Vr,video_frame_index_isobmff_reader:()=>Kr,video_open:()=>Xr,xavc_au:()=>Yr,xavc_frame_count:()=>$r,xocn_frame_count:()=>Jr,xocn_index_prefix_len:()=>Qr,xocn_preview_prefix_len:()=>Zr});var J=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,wt.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_exrbench_free(e,0)}block_rows(){return t.exrbench_block_rows(this.__wbg_ptr)>>>0}f32_to_half_block(){return t.exrbench_f32_to_half_block(this.__wbg_ptr)}n_blocks(){return t.exrbench_n_blocks(this.__wbg_ptr)>>>0}constructor(e,n,i,a){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=y(a,t.__wbindgen_export4,t.__wbindgen_export5),w=p;t.exrbench_new(s,e,n,i,g,w);var d=r().getInt32(s+0,!0),_=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0);if(c)throw u(_);return this.__wbg_ptr=d,wt.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}piz_stage_block(e){try{let d=t.__wbindgen_add_to_stack_pointer(-16);t.exrbench_piz_stage_block(d,this.__wbg_ptr,e);var n=r().getFloat64(d+0,!0),i=r().getInt32(d+8,!0),a=r().getInt32(d+12,!0);if(a)throw u(i);return n}finally{t.__wbindgen_add_to_stack_pointer(16)}}staging_f32_ptr(){return t.exrbench_staging_f32_ptr(this.__wbg_ptr)>>>0}staging_f32_samples(){return t.exrbench_staging_f32_samples(this.__wbg_ptr)>>>0}staging_half_len(){return t.exrbench_staging_half_len(this.__wbg_ptr)>>>0}staging_half_ptr(){return t.exrbench_staging_half_ptr(this.__wbg_ptr)>>>0}zip_stage_block(e){try{let d=t.__wbindgen_add_to_stack_pointer(-16);t.exrbench_zip_stage_block(d,this.__wbg_ptr,e);var n=r().getFloat64(d+0,!0),i=r().getInt32(d+8,!0),a=r().getInt32(d+12,!0);if(a)throw u(i);return n}finally{t.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(J.prototype[Symbol.dispose]=J.prototype.free);var Q=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,bt.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_exrstreamencoder_free(e,0)}block_rows(){return t.exrstreamencoder_block_rows(this.__wbg_ptr)>>>0}finish(){try{let _=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_finish(_,this.__wbg_ptr);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}header(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_header(a,this.__wbg_ptr);var e=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}n_blocks(){return t.exrstreamencoder_n_blocks(this.__wbg_ptr)>>>0}constructor(e,n,i,a,d,_,c,s,g,w){try{let I=t.__wbindgen_add_to_stack_pointer(-16),h=y(i,t.__wbindgen_export4,t.__wbindgen_export5),k=p,M=y(a,t.__wbindgen_export4,t.__wbindgen_export5),O=p,W=y(d,t.__wbindgen_export4,t.__wbindgen_export5),T=p,S=y(_,t.__wbindgen_export4,t.__wbindgen_export5),L=p,j=y(s,t.__wbindgen_export4,t.__wbindgen_export5),D=p;t.exrstreamencoder_new(I,e,n,h,k,M,O,W,T,S,L,c,j,D,g,w);var b=r().getInt32(I+0,!0),v=r().getInt32(I+4,!0),m=r().getInt32(I+8,!0);if(m)throw u(v);return this.__wbg_ptr=b,bt.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_block(e){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_push_block(c,this.__wbg_ptr,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}rows_remaining(){return t.exrstreamencoder_rows_remaining(this.__wbg_ptr)>>>0}staging_ptr(){return t.exrstreamencoder_staging_ptr(this.__wbg_ptr)>>>0}staging_samples(){return t.exrstreamencoder_staging_samples(this.__wbg_ptr)>>>0}};Symbol.dispose&&(Q.prototype[Symbol.dispose]=Q.prototype.free);var Z=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,lt.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_proresbench_free(e,0)}constructor(e,n,i,a){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=y(i,t.__wbindgen_export4,t.__wbindgen_export5),w=p;t.proresbench_new(s,e,n,g,w,a);var d=r().getInt32(s+0,!0),_=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0);if(c)throw u(_);return this.__wbg_ptr=d,lt.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}stage(e){try{let d=t.__wbindgen_add_to_stack_pointer(-16);t.proresbench_stage(d,this.__wbg_ptr,e);var n=r().getFloat64(d+0,!0),i=r().getInt32(d+8,!0),a=r().getInt32(d+12,!0);if(a)throw u(i);return n}finally{t.__wbindgen_add_to_stack_pointer(16)}}staging_len(){return t.proresbench_staging_len(this.__wbg_ptr)>>>0}staging_ptr(){return t.proresbench_staging_ptr(this.__wbg_ptr)>>>0}};Symbol.dispose&&(Z.prototype[Symbol.dispose]=Z.prototype.free);var tt=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ft.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_proresmovencoder_free(e,0)}add_frame_rgba(e){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(e,t.__wbindgen_export4),_=p;t.proresmovencoder_add_frame_rgba(a,this.__wbg_ptr,d,_);var n=r().getInt32(a+0,!0),i=r().getInt32(a+4,!0);if(i)throw u(n)}finally{t.__wbindgen_add_to_stack_pointer(16)}}finish(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovencoder_finish(a,this.__wbg_ptr);var e=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}frame_count(){return t.proresmovencoder_frame_count(this.__wbg_ptr)>>>0}constructor(e,n,i,a){let d=t.proresmovencoder_new(e,n,i,a);return this.__wbg_ptr=d,ft.register(this,this.__wbg_ptr,this),this}set_alpha(e){t.proresmovencoder_set_alpha(this.__wbg_ptr,e)}set_bitrate_mbps(e){t.proresmovencoder_set_bitrate_mbps(this.__wbg_ptr,e)}set_qscale(e){t.proresmovencoder_set_qscale(this.__wbg_ptr,e)}};Symbol.dispose&&(tt.prototype[Symbol.dispose]=tt.prototype.free);var et=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,vt.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_proresmovwriter_free(e,0)}finish(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_finish(a,this.__wbg_ptr);var e=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}frame_count(){return t.proresmovwriter_frame_count(this.__wbg_ptr)>>>0}header(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_header(a,this.__wbg_ptr);var e=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}mdat_box_header(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_mdat_box_header(a,this.__wbg_ptr);var e=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}mdat_box_offset(){return t.proresmovwriter_mdat_box_offset(this.__wbg_ptr)}constructor(e,n,i,a){let d=t.proresmovwriter_new(e,n,i,a);return this.__wbg_ptr=d,vt.register(this,this.__wbg_ptr,this),this}push_frame(){try{let _=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_push_frame(_,this.__wbg_ptr);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_sample(e){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(e,t.__wbindgen_export4),_=p;t.proresmovwriter_push_sample(a,this.__wbg_ptr,d,_);var n=r().getInt32(a+0,!0),i=r().getInt32(a+4,!0);if(i)throw u(n)}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_sample_len(e){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_push_sample_len(a,this.__wbg_ptr,e);var n=r().getInt32(a+0,!0),i=r().getInt32(a+4,!0);if(i)throw u(n)}finally{t.__wbindgen_add_to_stack_pointer(16)}}reserve_large_mdat(e){t.proresmovwriter_reserve_large_mdat(this.__wbg_ptr,e)}set_alpha(e){t.proresmovwriter_set_alpha(this.__wbg_ptr,e)}set_bitrate_mbps(e){t.proresmovwriter_set_bitrate_mbps(this.__wbg_ptr,e)}set_par(e,n){t.proresmovwriter_set_par(this.__wbg_ptr,e,n)}set_profile(e){let n=y(e,t.__wbindgen_export4,t.__wbindgen_export5),i=p;t.proresmovwriter_set_profile(this.__wbg_ptr,n,i)}set_qscale(e){t.proresmovwriter_set_qscale(this.__wbg_ptr,e)}set_start_timecode(e,n){t.proresmovwriter_set_start_timecode(this.__wbg_ptr,e,n)}staging_len(){return t.proresmovwriter_staging_len(this.__wbg_ptr)>>>0}staging_ptr(){return t.proresmovwriter_staging_ptr(this.__wbg_ptr)>>>0}total_len(){return t.proresmovwriter_total_len(this.__wbg_ptr)}};Symbol.dispose&&(et.prototype[Symbol.dispose]=et.prototype.free);function Ot(o){let e,n;try{let d=t.__wbindgen_add_to_stack_pointer(-16),_=l(o,t.__wbindgen_export4),c=p;t.arriraw12_clip_info(d,_,c);var i=r().getInt32(d+0,!0),a=r().getInt32(d+4,!0);return e=i,n=a,E(i,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Wt(o,e,n,i){var a=P(i)?0:y(i,t.__wbindgen_export4,t.__wbindgen_export5),d=p;let _=t.arriraw_mxf_gpu_frame(x(o),e,n,a,d);return u(_)}function Ft(o,e,n){let i=t.audio_aac_au(x(o),e,n);return u(i)}function St(o,e){let n=t.audio_aac_config(x(o),e);return u(n)}function Rt(o,e){let n=t.audio_info(x(o),e);return u(n)}function Lt(o){let e=ot(o,t.__wbindgen_export4),n=p;return t.bench_f32_boundary(e,n)}function jt(o,e,n,i){let a=ot(o,t.__wbindgen_export4),d=p;return t.bench_piz_no_huffman(a,d,e,n,i)}function zt(o,e){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=y(o,t.__wbindgen_export4,t.__wbindgen_export5),s=p;var n=ot(e,t.__wbindgen_export4),i=p;t.color_cst(_,c,s,n,i,x(e));var a=r().getInt32(_+0,!0),d=r().getInt32(_+4,!0);if(d)throw u(a)}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Dt(o,e,n){let i=F(o,t.__wbindgen_export4),a=p;return t.dci_code_full_depth(i,a,e,n)}function Ut(o,e,n){return t.dci_frame_cap(o,e,n)>>>0}function Pt(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p,w=y(e,t.__wbindgen_export4,t.__wbindgen_export5),b=p;t.dci_gpu_colour_patch(c,s,g,w,b);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=gt(n,i).slice();return t.__wbindgen_export3(n,i*2,2),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Bt(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=y(o,t.__wbindgen_export4,t.__wbindgen_export5),s=p;t.dci_gpu_colour_tables(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ct(){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.dci_last_pass_caps(i);var o=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),n=nt(o,e).slice();return t.__wbindgen_export3(o,e*4,4),n}finally{t.__wbindgen_add_to_stack_pointer(16)}}function qt(o,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16);t.dci_legal_rates(d,o,e);var n=r().getInt32(d+0,!0),i=r().getInt32(d+4,!0),a=nt(n,i).slice();return t.__wbindgen_export3(n,i*4,4),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Nt(o){return t.dci_mq_bench(o)>>>0}function Ht(o,e,n,i,a,d,_,c,s,g,w){try{let k=t.__wbindgen_add_to_stack_pointer(-16),M=R(o,t.__wbindgen_export4),O=p,W=l(e,t.__wbindgen_export4),T=p,S=R(n,t.__wbindgen_export4),L=p,j=R(i,t.__wbindgen_export4),D=p,C=R(a,t.__wbindgen_export4),q=p,it=R(d,t.__wbindgen_export4),at=p,dt=R(_,t.__wbindgen_export4),ct=p,Mt=R(c,t.__wbindgen_export4),Et=p;t.dci_pack_tier1(k,M,O,W,T,S,L,j,D,C,q,it,at,dt,ct,Mt,Et,s,g,w);var b=r().getInt32(k+0,!0),v=r().getInt32(k+4,!0),m=r().getInt32(k+8,!0),I=r().getInt32(k+12,!0);if(I)throw u(m);var h=f(b,v).slice();return t.__wbindgen_export3(b,v*1,1),h}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Gt(o,e){let n=t.dci_stage_rgba8(o,e);return u(n)}function Vt(o,e,n){let i=F(o,t.__wbindgen_export4),a=p;return t.dci_transform_only(i,a,e,n)}function Kt(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p,w=l(e,t.__wbindgen_export4),b=p;t.decode_arriraw12_luma(c,s,g,w,b);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Xt(o,e,n,i){let a=y(i,t.__wbindgen_export4,t.__wbindgen_export5),d=p,_=t.decode_arriraw12_mxf(x(o),e,n,a,d);return u(_)}function Yt(o,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(o,t.__wbindgen_export4),w=p,b=l(e,t.__wbindgen_export4),v=p;t.decode_arriraw12_preview(s,g,w,b,v,n);var i=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0),_=r().getInt32(s+12,!0);if(_)throw u(d);var c=f(i,a).slice();return t.__wbindgen_export3(i,a*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function $t(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p,w=l(e,t.__wbindgen_export4),b=p;t.decode_arriraw12_rgba(c,s,g,w,b);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Jt(o,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(o,t.__wbindgen_export4),w=p;t.decode_arriraw_luma(s,g,w,e,n);var i=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0),_=r().getInt32(s+12,!0);if(_)throw u(d);var c=f(i,a).slice();return t.__wbindgen_export3(i,a*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Qt(o,e,n,i){let a=y(i,t.__wbindgen_export4,t.__wbindgen_export5),d=p,_=t.decode_arriraw_mxf(x(o),e,n,a,d);return u(_)}function Zt(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(o,t.__wbindgen_export4),b=p;t.decode_arriraw_preview(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function te(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(o,t.__wbindgen_export4),b=p;t.decode_arriraw_preview_gray(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ee(o,e,n,i,a,d,_,c,s){try{let k=t.__wbindgen_add_to_stack_pointer(-16),M=l(o,t.__wbindgen_export4),O=p;var g=P(s)?0:Y(s,t.__wbindgen_export4),w=p;t.decode_arriraw_preview_meta(k,M,O,e,n,i,a,d,_,c,g,w);var b=r().getInt32(k+0,!0),v=r().getInt32(k+4,!0),m=r().getInt32(k+8,!0),I=r().getInt32(k+12,!0);if(I)throw u(m);var h=f(b,v).slice();return t.__wbindgen_export3(b,v*1,1),h}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ne(o,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(o,t.__wbindgen_export4),w=p;t.decode_arriraw_rgba(s,g,w,e,n);var i=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0),_=r().getInt32(s+12,!0);if(_)throw u(d);var c=f(i,a).slice();return t.__wbindgen_export3(i,a*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function re(o,e,n,i,a,d,_,c){try{let h=t.__wbindgen_add_to_stack_pointer(-16),k=l(o,t.__wbindgen_export4),M=p;var s=P(c)?0:Y(c,t.__wbindgen_export4),g=p;t.decode_arriraw_rgba_meta(h,k,M,e,n,i,a,d,_,s,g);var w=r().getInt32(h+0,!0),b=r().getInt32(h+4,!0),v=r().getInt32(h+8,!0),m=r().getInt32(h+12,!0);if(m)throw u(v);var I=f(w,b).slice();return t.__wbindgen_export3(w,b*1,1),I}finally{t.__wbindgen_add_to_stack_pointer(16)}}function _e(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_arw_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function oe(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_arw_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ie(o,e,n,i){let a=t.decode_audio_pcm(x(o),e,n,i);return u(a)}function ae(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_bmp_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function de(o){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(o,t.__wbindgen_export4),_=p;t.decode_braw_gen5log(a,d,_);var e=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ce(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_braw_luma(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function se(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_braw_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function pe(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_braw_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ge(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_cr2_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ue(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_cr2_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function we(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_cr3_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function be(o,e,n,i){let a=y(i,t.__wbindgen_export4,t.__wbindgen_export5),d=p,_=t.decode_crm(x(o),e,n,a,d);return u(_)}function le(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_dng_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function fe(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_dng_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ve(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_dpx_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function xe(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_dpx_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ie(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_dv_luma(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ye(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_dv_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function me(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_dv_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function he(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_exr_linear(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ke(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_exr_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ae(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_exr_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Me(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_gif_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ee(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_heic_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Te(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_j2k_luma(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Oe(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_j2k_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function We(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_j2k_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Fe(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_jpeg_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Se(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_mpeg2_luma(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Re(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_mpeg2_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Le(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_mpeg2_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function je(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_png_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ze(o,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(o,t.__wbindgen_export4),w=p;t.decode_prores_band_rgba(s,g,w,e,n);var i=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0),_=r().getInt32(s+12,!0);if(_)throw u(d);var c=f(i,a).slice();return t.__wbindgen_export3(i,a*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function De(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_prores_luma(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ue(o,e,n,i){let a=y(i,t.__wbindgen_export4,t.__wbindgen_export5),d=p,_=t.decode_prores_mxf(x(o),e,n,a,d);return u(_)}function Pe(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_prores_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Be(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_prores_raw_acescct(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ce(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_prores_raw_luma(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function qe(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_prores_raw_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ne(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_prores_raw_rec2020(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function He(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_prores_raw_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ge(o,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(o,t.__wbindgen_export4),w=p,b=y(e,t.__wbindgen_export4,t.__wbindgen_export5),v=p,m=l(n,t.__wbindgen_export4),I=p;t.decode_prores_raw_tier(s,g,w,b,v,m,I);var i=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0),_=r().getInt32(s+12,!0);if(_)throw u(d);var c=f(i,a).slice();return t.__wbindgen_export3(i,a*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ve(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_prores_rgb16(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ke(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_prores_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Xe(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_prores_thumb_dc32(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ye(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_psd_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function $e(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_r3d_luma(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Je(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_r3d_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Qe(o,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(o,t.__wbindgen_export4),w=p,b=l(e,t.__wbindgen_export4),v=p;t.decode_r3d_preview_clip(s,g,w,b,v,n);var i=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0),_=r().getInt32(s+12,!0);if(_)throw u(d);var c=f(i,a).slice();return t.__wbindgen_export3(i,a*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ze(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_r3d_rgb16(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function tn(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_r3d_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function en(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p,w=l(e,t.__wbindgen_export4),b=p;t.decode_r3d_rgba_clip(c,s,g,w,b);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function nn(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_tga_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function rn(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_tiff_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function _n(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_tiff_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function on(o,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(o,t.__wbindgen_export4),w=p;t.decode_vc3_band_rgba(s,g,w,e,n);var i=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0),_=r().getInt32(s+12,!0);if(_)throw u(d);var c=f(i,a).slice();return t.__wbindgen_export3(i,a*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function an(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_vc3_luma(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function dn(o,e,n,i){let a=y(i,t.__wbindgen_export4,t.__wbindgen_export5),d=p,_=t.decode_vc3_mxf(x(o),e,n,a,d);return u(_)}function cn(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_vc3_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function sn(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_vc3_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function pn(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_webp_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function gn(o){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(o,t.__wbindgen_export4),_=p;t.decode_xocn_index_luma(a,d,_);var e=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function un(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_xocn_luma(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function wn(o,e,n,i){let a=y(i,t.__wbindgen_export4,t.__wbindgen_export5),d=p,_=t.decode_xocn_mxf(x(o),e,n,a,d);return u(_)}function bn(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_xocn_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ln(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_xocn_preview_rec709(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function fn(o){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(o,t.__wbindgen_export4),_=p;t.decode_xocn_rgb16(a,d,_);var e=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function vn(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_xocn_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function xn(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=F(o,t.__wbindgen_export4),b=p;t.encode_dci_j2c(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function In(o,e,n,i,a,d){try{let b=t.__wbindgen_add_to_stack_pointer(-16),v=F(o,t.__wbindgen_export4),m=p,I=y(n,t.__wbindgen_export4,t.__wbindgen_export5),h=p;t.encode_dci_j2c_rgb(b,v,m,e,I,h,i,a,d);var _=r().getInt32(b+0,!0),c=r().getInt32(b+4,!0),s=r().getInt32(b+8,!0),g=r().getInt32(b+12,!0);if(g)throw u(s);var w=f(_,c).slice();return t.__wbindgen_export3(_,c*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function yn(o,e,n,i,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(o,t.__wbindgen_export4),v=p,m=y(e,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.encode_dci_j2c_rgba8(w,b,v,m,I,n,i,a);var d=r().getInt32(w+0,!0),_=r().getInt32(w+4,!0),c=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(c);var g=f(d,_).slice();return t.__wbindgen_export3(d,_*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function mn(o,e,n,i,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=y(i,t.__wbindgen_export4,t.__wbindgen_export5),v=p;t.encode_dci_j2c_staged(w,o,e,n,b,v,a);var d=r().getInt32(w+0,!0),_=r().getInt32(w+4,!0),c=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(c);var g=f(d,_).slice();return t.__wbindgen_export3(d,_*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function hn(o,e,n,i,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=y(i,t.__wbindgen_export4,t.__wbindgen_export5),v=p;t.encode_dci_j2c_staged_modelled(w,o,e,n,b,v,a);var d=r().getInt32(w+0,!0),_=r().getInt32(w+4,!0),c=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(c);var g=f(d,_).slice();return t.__wbindgen_export3(d,_*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function kn(o,e,n,i,a,d,_,c,s,g,w,b,v,m,I){try{let T=t.__wbindgen_add_to_stack_pointer(-16),S=ot(o,t.__wbindgen_export4),L=p,j=y(a,t.__wbindgen_export4,t.__wbindgen_export5),D=p,C=y(d,t.__wbindgen_export4,t.__wbindgen_export5),q=p,it=y(_,t.__wbindgen_export4,t.__wbindgen_export5),at=p,dt=y(v,t.__wbindgen_export4,t.__wbindgen_export5),ct=p;t.encode_exr(T,S,L,e,n,i,j,D,C,q,it,at,c,s,g,w,b,dt,ct,m,I);var h=r().getInt32(T+0,!0),k=r().getInt32(T+4,!0),M=r().getInt32(T+8,!0),O=r().getInt32(T+12,!0);if(O)throw u(M);var W=f(h,k).slice();return t.__wbindgen_export3(h,k*1,1),W}finally{t.__wbindgen_add_to_stack_pointer(16)}}function An(o,e,n,i,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(o,t.__wbindgen_export4),v=p;t.encode_prores_4444_alpha_mov_rgba(w,b,v,e,n,i,a);var d=r().getInt32(w+0,!0),_=r().getInt32(w+4,!0),c=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(c);var g=f(d,_).slice();return t.__wbindgen_export3(d,_*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Mn(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(o,t.__wbindgen_export4),b=p;t.encode_prores_4444_alpha_sample_q(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function En(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(o,t.__wbindgen_export4),b=p;t.encode_prores_444_sample_cbr(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Tn(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=F(o,t.__wbindgen_export4),b=p;t.encode_prores_444_sample_cbr_rgb16(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function On(o,e,n,i,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=F(o,t.__wbindgen_export4),v=p,m=F(a,t.__wbindgen_export4),I=p;t.encode_prores_444_sample_cbr_rgb16_lut(w,b,v,e,n,i,m,I);var d=r().getInt32(w+0,!0),_=r().getInt32(w+4,!0),c=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(c);var g=f(d,_).slice();return t.__wbindgen_export3(d,_*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Wn(o,e,n,i,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(o,t.__wbindgen_export4),v=p;t.encode_prores_mov_rgba(w,b,v,e,n,i,a);var d=r().getInt32(w+0,!0),_=r().getInt32(w+4,!0),c=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(c);var g=f(d,_).slice();return t.__wbindgen_export3(d,_*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Fn(o,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(o,t.__wbindgen_export4),w=p;t.encode_prores_rgba(s,g,w,e,n);var i=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0),_=r().getInt32(s+12,!0);if(_)throw u(d);var c=f(i,a).slice();return t.__wbindgen_export3(i,a*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Sn(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(o,t.__wbindgen_export4),b=p;t.encode_prores_sample_cbr(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Rn(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=F(o,t.__wbindgen_export4),b=p;t.encode_prores_sample_cbr_rgb16(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ln(o,e,n,i,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=F(o,t.__wbindgen_export4),v=p,m=F(a,t.__wbindgen_export4),I=p;t.encode_prores_sample_cbr_rgb16_lut(w,b,v,e,n,i,m,I);var d=r().getInt32(w+0,!0),_=r().getInt32(w+4,!0),c=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(c);var g=f(d,_).slice();return t.__wbindgen_export3(d,_*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function jn(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(o,t.__wbindgen_export4),b=p;t.encode_prores_sample_q(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function zn(o,e,n,i){let a,d;try{let v=t.__wbindgen_add_to_stack_pointer(-16),m=y(o,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.exr_sequence_filename(v,m,I,e,n,i);var _=r().getInt32(v+0,!0),c=r().getInt32(v+4,!0),s=r().getInt32(v+8,!0),g=r().getInt32(v+12,!0),w=_,b=c;if(g)throw w=0,b=0,u(s);return a=w,d=b,E(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,d,1)}}function Dn(o,e,n,i,a,d,_,c){let s,g;try{let k=t.__wbindgen_add_to_stack_pointer(-16),M=l(o,t.__wbindgen_export4),O=p,W=l(i,t.__wbindgen_export4),T=p,S=y(c,t.__wbindgen_export4,t.__wbindgen_export5),L=p;t.fit_sizing(k,M,O,e,n,W,T,a,d,_,S,L);var w=r().getInt32(k+0,!0),b=r().getInt32(k+4,!0),v=r().getInt32(k+8,!0),m=r().getInt32(k+12,!0),I=w,h=b;if(m)throw I=0,h=0,u(v);return s=I,g=h,E(I,h)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(s,g,1)}}function Un(o){let e,n;try{let d=t.__wbindgen_add_to_stack_pointer(-16),_=l(o,t.__wbindgen_export4),c=p;t.inspect_arw(d,_,c);var i=r().getInt32(d+0,!0),a=r().getInt32(d+4,!0);return e=i,n=a,E(i,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Pn(o){let e,n;try{let d=t.__wbindgen_add_to_stack_pointer(-16),_=l(o,t.__wbindgen_export4),c=p;t.inspect_cr2(d,_,c);var i=r().getInt32(d+0,!0),a=r().getInt32(d+4,!0);return e=i,n=a,E(i,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Bn(o){let e,n;try{let d=t.__wbindgen_add_to_stack_pointer(-16),_=l(o,t.__wbindgen_export4),c=p;t.inspect_cr3(d,_,c);var i=r().getInt32(d+0,!0),a=r().getInt32(d+4,!0);return e=i,n=a,E(i,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Cn(o){let e,n;try{let d=t.__wbindgen_add_to_stack_pointer(-16),_=l(o,t.__wbindgen_export4),c=p;t.inspect_dng(d,_,c);var i=r().getInt32(d+0,!0),a=r().getInt32(d+4,!0);return e=i,n=a,E(i,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function qn(o){let e,n;try{let d=t.__wbindgen_add_to_stack_pointer(-16),_=l(o,t.__wbindgen_export4),c=p;t.inspect_dpx(d,_,c);var i=r().getInt32(d+0,!0),a=r().getInt32(d+4,!0);return e=i,n=a,E(i,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Nn(o){let e,n;try{let d=t.__wbindgen_add_to_stack_pointer(-16),_=l(o,t.__wbindgen_export4),c=p;t.inspect_exr(d,_,c);var i=r().getInt32(d+0,!0),a=r().getInt32(d+4,!0);return e=i,n=a,E(i,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Hn(o,e,n){let i=y(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,d=t.inspect_isobmff(x(o),e,i,a);return u(d)}function Gn(o){let e,n;try{let d=t.__wbindgen_add_to_stack_pointer(-16),_=l(o,t.__wbindgen_export4),c=p;t.inspect_tiff(d,_,c);var i=r().getInt32(d+0,!0),a=r().getInt32(d+4,!0);return e=i,n=a,E(i,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Vn(o,e){let n=t.inspect_wav(x(o),e);return u(n)}function Kn(o,e){let n=t.is_arriraw12_mxf(x(o),e);return u(n)}function Xn(o,e){let n=t.is_arriraw_mxf(x(o),e);return u(n)}function Yn(o,e){let n=t.is_crm(x(o),e);return u(n)}function $n(o,e){let n=t.is_prores_mxf(x(o),e);return u(n)}function Jn(o,e){let n=t.is_vc3_mxf(x(o),e);return u(n)}function Qn(o,e){let n=t.is_xavc_mxf(x(o),e);return u(n)}function Zn(o,e){let n=t.is_xocn_mxf(x(o),e);return u(n)}function tr(o,e,n){let i=y(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,d=t.list_isobmff_segments(x(o),e,i,a);return u(d)}function er(o,e){let n=t.list_mxf_segments(x(o),e);return u(n)}function nr(o,e){let n=y(e,t.__wbindgen_export4,t.__wbindgen_export5),i=p,a=t.list_r3d_frames(x(o),n,i);return u(a)}function rr(o,e){let n=y(e,t.__wbindgen_export4,t.__wbindgen_export5),i=p,a=t.list_r3d_segments(x(o),n,i);return u(a)}function _r(o,e){let n=t.list_wav_segments(x(o),e);return u(n)}function or(o,e,n,i,a,d){try{let b=t.__wbindgen_add_to_stack_pointer(-16),v=l(o,t.__wbindgen_export4),m=p,I=R(e,t.__wbindgen_export4),h=p;t.mux_prores_4444_alpha_samples(b,v,m,I,h,n,i,a,d);var _=r().getInt32(b+0,!0),c=r().getInt32(b+4,!0),s=r().getInt32(b+8,!0),g=r().getInt32(b+12,!0);if(g)throw u(s);var w=f(_,c).slice();return t.__wbindgen_export3(_,c*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ir(o,e,n,i,a,d){try{let b=t.__wbindgen_add_to_stack_pointer(-16),v=l(o,t.__wbindgen_export4),m=p,I=R(e,t.__wbindgen_export4),h=p;t.mux_prores_samples(b,v,m,I,h,n,i,a,d);var _=r().getInt32(b+0,!0),c=r().getInt32(b+4,!0),s=r().getInt32(b+8,!0),g=r().getInt32(b+12,!0);if(g)throw u(s);var w=f(_,c).slice();return t.__wbindgen_export3(_,c*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ar(o,e,n,i,a,d,_,c,s,g,w,b){try{let M=t.__wbindgen_add_to_stack_pointer(-16),O=l(o,t.__wbindgen_export4),W=p,T=R(e,t.__wbindgen_export4),S=p,L=y(_,t.__wbindgen_export4,t.__wbindgen_export5),j=p;t.mux_prores_samples_full(M,O,W,T,S,n,i,a,d,L,j,c,s,g,w,b);var v=r().getInt32(M+0,!0),m=r().getInt32(M+4,!0),I=r().getInt32(M+8,!0),h=r().getInt32(M+12,!0);if(h)throw u(I);var k=f(v,m).slice();return t.__wbindgen_export3(v,m*1,1),k}finally{t.__wbindgen_add_to_stack_pointer(16)}}function dr(o,e,n,i){let a=t.mxf_au_run(x(o),e,n,i);return u(a)}function cr(o,e){let n=t.mxf_frame_index(x(o),e);return u(n)}function sr(o,e){let n=t.mxf_gop_map(x(o),e);return u(n)}function pr(o,e){let n=t.mxf_h264_kind(x(o),e);return u(n)}function gr(o,e){let n,i;try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(o,t.__wbindgen_export4),v=p,m=y(e,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.plan_isobmff_trim(w,b,v,m,I);var a=r().getInt32(w+0,!0),d=r().getInt32(w+4,!0),_=r().getInt32(w+8,!0),c=r().getInt32(w+12,!0),s=a,g=d;if(c)throw s=0,g=0,u(_);return n=s,i=g,E(s,g)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,i,1)}}function ur(o,e,n,i,a){let d=y(a,t.__wbindgen_export4,t.__wbindgen_export5),_=p,c=t.plan_isobmff_trim_reader(x(o),e,n,i,d,_);return u(c)}function wr(o){let e,n;try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=y(o,t.__wbindgen_export4,t.__wbindgen_export5),b=p;t.plan_mxf_compact_trim(g,w,b);var i=r().getInt32(g+0,!0),a=r().getInt32(g+4,!0),d=r().getInt32(g+8,!0),_=r().getInt32(g+12,!0),c=i,s=a;if(_)throw c=0,s=0,u(d);return e=c,n=s,E(c,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function br(o,e,n,i){let a=t.plan_mxf_trim(x(o),e,n,i);return u(a)}function lr(o,e,n,i,a,d,_,c){let s,g;try{let v=t.__wbindgen_add_to_stack_pointer(-16),m=l(o,t.__wbindgen_export4),I=p,h=l(e,t.__wbindgen_export4),k=p,M=l(n,t.__wbindgen_export4),O=p,W=l(i,t.__wbindgen_export4),T=p,S=Y(a,t.__wbindgen_export4),L=p,j=Y(d,t.__wbindgen_export4),D=p,C=Y(_,t.__wbindgen_export4),q=p;t.plan_r3d_compact(v,m,I,h,k,M,O,W,T,S,L,j,D,C,q,c);var w=r().getInt32(v+0,!0),b=r().getInt32(v+4,!0);return s=w,g=b,E(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(s,g,1)}}function fr(o,e,n,i){let a,d;try{let v=t.__wbindgen_add_to_stack_pointer(-16),m=l(o,t.__wbindgen_export4),I=p;t.plan_wav_trim(v,m,I,e,n,i);var _=r().getInt32(v+0,!0),c=r().getInt32(v+4,!0),s=r().getInt32(v+8,!0),g=r().getInt32(v+12,!0),w=_,b=c;if(g)throw w=0,b=0,u(s);return a=w,d=b,E(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,d,1)}}function vr(o,e,n,i,a){let d=t.plan_wav_trim_reader(x(o),e,n,i,a);return u(d)}function xr(o,e,n,i){let a=y(n,t.__wbindgen_export4,t.__wbindgen_export5),d=p,_=y(i,t.__wbindgen_export4,t.__wbindgen_export5),c=p,s=t.prepare_isobmff(x(o),e,a,d,_,c);return u(s)}function Ir(o,e,n){let i=y(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,d=t.prepare_mxf(x(o),e,i,a);return u(d)}function yr(o,e,n){let i=y(e,t.__wbindgen_export4,t.__wbindgen_export5),a=p,d=y(n,t.__wbindgen_export4,t.__wbindgen_export5),_=p,c=t.prepare_r3d(x(o),i,a,d,_);return u(c)}function mr(o,e,n,i){let a=y(n,t.__wbindgen_export4,t.__wbindgen_export5),d=p,_=t.prepare_wav(x(o),e,a,d,i);return u(_)}function hr(o){let e,n;try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(o,t.__wbindgen_export4),b=p;t.probe_mov(g,w,b);var i=r().getInt32(g+0,!0),a=r().getInt32(g+4,!0),d=r().getInt32(g+8,!0),_=r().getInt32(g+12,!0),c=i,s=a;if(_)throw c=0,s=0,u(d);return e=c,n=s,E(c,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function kr(o,e){let n=t.probe_mxf(x(o),e);return u(n)}function Ar(o,e){let n=y(e,t.__wbindgen_export4,t.__wbindgen_export5),i=p,a=t.probe_r3d(x(o),n,i);return u(a)}function Mr(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.prores_band_info(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=nt(e,n).slice();return t.__wbindgen_export3(e,n*4,4),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Er(o){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(o,t.__wbindgen_export4),_=p;t.prores_raw_container_color(a,d,_);var e=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Tr(){t.prores_reset_rate_control()}function Or(o){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(o,t.__wbindgen_export4),_=p;t.r3d_gpu_develop_params(a,d,_);var e=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Wr(o,e,n){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.r3d_index_ranges(_,c,s,e,n);var i=r().getInt32(_+0,!0),a=r().getInt32(_+4,!0),d=nt(i,a).slice();return t.__wbindgen_export3(i,a*4,4),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Fr(o){let e=l(o,t.__wbindgen_export4),n=p;return t.r3d_is_helium(e,n)!==0}function Sr(o){let e,n;try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(o,t.__wbindgen_export4),b=p;t.read_arriraw_fcs(g,w,b);var i=r().getInt32(g+0,!0),a=r().getInt32(g+4,!0),d=r().getInt32(g+8,!0),_=r().getInt32(g+12,!0),c=i,s=a;if(_)throw c=0,s=0,u(d);return e=c,n=s,E(c,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Rr(o,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),_=l(o,t.__wbindgen_export4),c=p;t.read_arriraw_unit_correction(d,_,c,e);var n=r().getInt32(d+0,!0),i=r().getInt32(d+4,!0),a=r_(n,i).slice();return t.__wbindgen_export3(n,i*8,8),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Lr(o,e,n,i,a,d,_){let c,s;try{let h=t.__wbindgen_add_to_stack_pointer(-16),k=l(o,t.__wbindgen_export4),M=p,O=l(i,t.__wbindgen_export4),W=p,T=y(_,t.__wbindgen_export4,t.__wbindgen_export5),S=p;t.recover_reframe(h,k,M,e,n,O,W,a,d,T,S);var g=r().getInt32(h+0,!0),w=r().getInt32(h+4,!0),b=r().getInt32(h+8,!0),v=r().getInt32(h+12,!0),m=g,I=w;if(v)throw m=0,I=0,u(b);return c=m,s=I,E(m,I)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(c,s,1)}}function jr(o,e,n,i,a,d){try{let b=t.__wbindgen_add_to_stack_pointer(-16),v=F(o,t.__wbindgen_export4),m=p,I=y(d,t.__wbindgen_export4,t.__wbindgen_export5),h=p;t.resample_rgba16(b,v,m,e,n,i,a,I,h);var _=r().getInt32(b+0,!0),c=r().getInt32(b+4,!0),s=r().getInt32(b+8,!0),g=r().getInt32(b+12,!0);if(g)throw u(s);var w=gt(_,c).slice();return t.__wbindgen_export3(_,c*2,2),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function zr(o,e,n,i,a,d){try{let b=t.__wbindgen_add_to_stack_pointer(-16),v=l(o,t.__wbindgen_export4),m=p,I=y(d,t.__wbindgen_export4,t.__wbindgen_export5),h=p;t.resample_rgba8(b,v,m,e,n,i,a,I,h);var _=r().getInt32(b+0,!0),c=r().getInt32(b+4,!0),s=r().getInt32(b+8,!0),g=r().getInt32(b+12,!0);if(g)throw u(s);var w=f(_,c).slice();return t.__wbindgen_export3(_,c*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Dr(){t.reset_dci_rate_state()}function Ur(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(o,t.__wbindgen_export4),b=p;t.resize_luma_area(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Pr(o,e,n,i,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(o,t.__wbindgen_export4),v=p,m=y(a,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.rgba8_to_xyz12(w,b,v,e,n,i,m,I);var d=r().getInt32(w+0,!0),_=r().getInt32(w+4,!0),c=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(c);var g=gt(d,_).slice();return t.__wbindgen_export3(d,_*2,2),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Br(o,e,n,i){let a,d;try{let v=t.__wbindgen_add_to_stack_pointer(-16),m=F(o,t.__wbindgen_export4),I=p,h=l(e,t.__wbindgen_export4),k=p,M=R(n,t.__wbindgen_export4),O=p,W=y(i,t.__wbindgen_export4,t.__wbindgen_export5),T=p;t.shot_crop(v,m,I,h,k,M,O,W,T);var _=r().getInt32(v+0,!0),c=r().getInt32(v+4,!0),s=r().getInt32(v+8,!0),g=r().getInt32(v+12,!0),w=_,b=c;if(g)throw w=0,b=0,u(s);return a=w,d=b,E(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,d,1)}}function Cr(o,e,n){let i,a;try{let b=t.__wbindgen_add_to_stack_pointer(-16),v=F(o,t.__wbindgen_export4),m=p,I=l(e,t.__wbindgen_export4),h=p,k=y(n,t.__wbindgen_export4,t.__wbindgen_export5),M=p;t.shot_ramp(b,v,m,I,h,k,M);var d=r().getInt32(b+0,!0),_=r().getInt32(b+4,!0),c=r().getInt32(b+8,!0),s=r().getInt32(b+12,!0),g=d,w=_;if(s)throw g=0,w=0,u(c);return i=g,a=w,E(g,w)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(i,a,1)}}function qr(o,e,n,i){let a,d;try{let v=t.__wbindgen_add_to_stack_pointer(-16),m=F(o,t.__wbindgen_export4),I=p,h=l(e,t.__wbindgen_export4),k=p,M=R(n,t.__wbindgen_export4),O=p,W=y(i,t.__wbindgen_export4,t.__wbindgen_export5),T=p;t.shot_scan(v,m,I,h,k,M,O,W,T);var _=r().getInt32(v+0,!0),c=r().getInt32(v+4,!0),s=r().getInt32(v+8,!0),g=r().getInt32(v+12,!0),w=_,b=c;if(g)throw w=0,b=0,u(s);return a=w,d=b,E(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,d,1)}}function Nr(o,e,n,i){let a=y(e,t.__wbindgen_export4,t.__wbindgen_export5),d=p,_=y(n,t.__wbindgen_export4,t.__wbindgen_export5),c=p,s=y(i,t.__wbindgen_export4,t.__wbindgen_export5),g=p,w=t.trim_r3d(x(o),a,d,_,c,s,g);return u(w)}function Hr(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.vc3_band_info(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=nt(e,n).slice();return t.__wbindgen_export3(e,n*4,4),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Gr(o){t.video_close(o)}function Vr(o,e,n,i){let a=t.video_decode(o,e,n,i);return u(a)}function Kr(o,e,n){let i=y(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,d=t.video_frame_index_isobmff_reader(x(o),e,i,a);return u(d)}function Xr(o,e){let n=t.video_open(x(o),e);return u(n)}function Yr(o,e,n){let i=t.xavc_au(x(o),e,n);return u(i)}function $r(o,e){let n=t.xavc_frame_count(x(o),e);return u(n)}function Jr(o,e){let n=t.xocn_frame_count(x(o),e);return u(n)}function Qr(o){let e=l(o,t.__wbindgen_export4),n=p;return t.xocn_index_prefix_len(e,n)>>>0}function Zr(o){let e=l(o,t.__wbindgen_export4),n=p;return t.xocn_preview_prefix_len(e,n)>>>0}function It(){return{__proto__:null,"./media_core_bg.js":{__proto__:null,__wbg___wbindgen_copy_to_typed_array_c5728021fabd0236:function(e,n,i){new Uint8Array(A(i).buffer,A(i).byteOffset,A(i).byteLength).set(f(e,n))},__wbg___wbindgen_is_function_acc5528be2b923f2:function(e){return typeof A(e)=="function"},__wbg___wbindgen_is_undefined_721f8decd50c87a3:function(e){return A(e)===void 0},__wbg___wbindgen_throw_ea4887a5f8f9a9db:function(e,n){throw new Error(E(e,n))},__wbg__wbg_cb_unref_33c39e13d73b25f6:function(e){A(e)._wbg_cb_unref()},__wbg_call_0e855b388e315e17:function(){return st(function(e,n,i,a){let d=A(e).call(A(n),A(i),A(a));return x(d)},arguments)},__wbg_call_5575218572ead796:function(){return st(function(e,n,i){let a=A(e).call(A(n),A(i));return x(a)},arguments)},__wbg_call_dd0f909cbc9405d0:function(){return st(function(e,n,i,a,d){let _=A(e).call(A(n),A(i),A(a),A(d));return x(_)},arguments)},__wbg_length_589238bdcf171f0e:function(e){return A(e).length},__wbg_new_81880fb5002cb255:function(e){let n=new Uint8Array(A(e));return x(n)},__wbg_new_typed_00a409eb4ec4f2d9:function(e,n){try{var i={a:e,b:n},a=(_,c)=>{let s=i.a;i.a=0;try{return e_(s,i.b,_,c)}finally{i.a=s}};let d=new Promise(a);return x(d)}finally{i.a=0}},__wbg_prototypesetcall_d721637c7ca66eb8:function(e,n,i){Uint8Array.prototype.set.call(f(e,n),A(i))},__wbg_queueMicrotask_1c9b3800e321a967:function(e){let n=A(e).queueMicrotask;return x(n)},__wbg_queueMicrotask_311744e534a929a3:function(e){queueMicrotask(A(e))},__wbg_resolve_d82363d90af6928a:function(e){let n=Promise.resolve(A(e));return x(n)},__wbg_static_accessor_GLOBAL_THIS_2fee5048bcca5938:function(){let e=typeof globalThis>"u"?null:globalThis;return P(e)?0:x(e)},__wbg_static_accessor_GLOBAL_ce44e66a4935da8c:function(){let e=typeof global>"u"?null:global;return P(e)?0:x(e)},__wbg_static_accessor_SELF_44f6e0cb5e67cdad:function(){let e=typeof self>"u"?null:self;return P(e)?0:x(e)},__wbg_static_accessor_WINDOW_168f178805d978fe:function(){let e=typeof window>"u"?null:window;return P(e)?0:x(e)},__wbg_then_05edfc8a4fea5106:function(e,n,i){let a=A(e).then(A(n),A(i));return x(a)},__wbg_then_591b6b3a75ee817a:function(e,n){let i=A(e).then(A(n));return x(i)},__wbindgen_cast_0000000000000001:function(e,n){let i=o_(e,n,t_);return x(i)},__wbindgen_cast_0000000000000002:function(e){return x(e)},__wbindgen_cast_0000000000000003:function(e,n){let i=f(e,n);return x(i)},__wbindgen_cast_0000000000000004:function(e,n){let i=E(e,n);return x(i)},__wbindgen_cast_0000000000000005:function(e,n){var i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),x(i)},__wbindgen_object_clone_ref:function(e){let n=A(e);return x(n)},__wbindgen_object_drop_ref:function(e){u(e)}}}}function t_(o,e,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16);t.__wasm_bindgen_func_elem_3136(d,o,e,x(n));var i=r().getInt32(d+0,!0),a=r().getInt32(d+4,!0);if(a)throw u(i)}finally{t.__wbindgen_add_to_stack_pointer(16)}}function e_(o,e,n,i){t.__wasm_bindgen_func_elem_3151(o,e,x(n),x(i))}var wt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(o=>t.__wbg_exrbench_free(o,1)),bt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(o=>t.__wbg_exrstreamencoder_free(o,1)),lt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(o=>t.__wbg_proresbench_free(o,1)),ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(o=>t.__wbg_proresmovencoder_free(o,1)),vt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(o=>t.__wbg_proresmovwriter_free(o,1));function x(o){X===z.length&&z.push(z.length+1);let e=X;return X=z[e],z[e]=o,e}var xt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(o=>t.__wbindgen_export2(o.a,o.b));function n_(o){o<1028||(z[o]=X,X=o)}function r_(o,e){return o=o>>>0,yt().subarray(o/8,o/8+e)}function gt(o,e){return o=o>>>0,mt().subarray(o/2,o/2+e)}function nt(o,e){return o=o>>>0,ht().subarray(o/4,o/4+e)}function f(o,e){return o=o>>>0,B().subarray(o/1,o/1+e)}var U=null;function r(){return(U===null||U.buffer.detached===!0||U.buffer.detached===void 0&&U.buffer!==t.memory.buffer)&&(U=new DataView(t.memory.buffer)),U}var N=null;function __(){return(N===null||N.byteLength===0)&&(N=new Float32Array(t.memory.buffer)),N}var H=null;function yt(){return(H===null||H.byteLength===0)&&(H=new Float64Array(t.memory.buffer)),H}function E(o,e){return a_(o>>>0,e)}var G=null;function mt(){return(G===null||G.byteLength===0)&&(G=new Uint16Array(t.memory.buffer)),G}var V=null;function ht(){return(V===null||V.byteLength===0)&&(V=new Uint32Array(t.memory.buffer)),V}var K=null;function B(){return(K===null||K.byteLength===0)&&(K=new Uint8Array(t.memory.buffer)),K}function A(o){return z[o]}function st(o,e){try{return o.apply(this,e)}catch(n){t.__wbindgen_export(x(n))}}var z=new Array(1024).fill(void 0);z.push(void 0,null,!0,!1);var X=z.length;function P(o){return o==null}function o_(o,e,n){let i={a:o,b:e,cnt:1},a=(...d)=>{i.cnt++;let _=i.a;i.a=0;try{return n(_,i.b,...d)}finally{i.a=_,a._wbg_cb_unref()}};return a._wbg_cb_unref=()=>{--i.cnt===0&&(t.__wbindgen_export2(i.a,i.b),i.a=0,xt.unregister(i))},xt.register(a,i,i),a}function F(o,e){let n=e(o.length*2,2)>>>0;return mt().set(o,n/2),p=o.length,n}function R(o,e){let n=e(o.length*4,4)>>>0;return ht().set(o,n/4),p=o.length,n}function l(o,e){let n=e(o.length*1,1)>>>0;return B().set(o,n/1),p=o.length,n}function ot(o,e){let n=e(o.length*4,4)>>>0;return __().set(o,n/4),p=o.length,n}function Y(o,e){let n=e(o.length*8,8)>>>0;return yt().set(o,n/8),p=o.length,n}function y(o,e,n){if(n===void 0){let c=$.encode(o),s=e(c.length,1)>>>0;return B().subarray(s,s+c.length).set(c),p=c.length,s}let i=o.length,a=e(i,1)>>>0,d=B(),_=0;for(;_<i;_++){let c=o.charCodeAt(_);if(c>127)break;d[a+_]=c}if(_!==i){_!==0&&(o=o.slice(_)),a=n(a,i,i=_+o.length*3,1)>>>0;let c=B().subarray(a+_,a+i),s=$.encodeInto(o,c);_+=s.written,a=n(a,i,_,1)>>>0}return p=_,a}function u(o){let e=A(o);return n_(o),e}var _t=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});_t.decode();var i_=2146435072,pt=0;function a_(o,e){return pt+=e,pt>=i_&&(_t=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),_t.decode(),pt=e),_t.decode(B().subarray(o,o+e))}var $=new TextEncoder;"encodeInto"in $||($.encodeInto=function(o,e){let n=$.encode(o);return e.set(n),{read:o.length,written:n.length}});var p=0,d_,c_,t;function kt(o,e){return c_=o,t=o.exports,d_=e,U=null,N=null,H=null,G=null,V=null,K=null,t}async function s_(o,e){if(typeof Response=="function"&&o instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(o,e)}catch(a){if(o.ok&&n(o.type)&&o.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",a);else throw a}let i=await o.arrayBuffer();return await WebAssembly.instantiate(i,e)}else{let i=await WebAssembly.instantiate(o,e);return i instanceof WebAssembly.Instance?{instance:i,module:o}:i}function n(i){switch(i){case"basic":case"cors":case"default":return!0}return!1}}function p_(o){if(t!==void 0)return t;o!==void 0&&(Object.getPrototypeOf(o)===Object.prototype?{module:o}=o:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let e=It();o instanceof WebAssembly.Module||(o=new WebAssembly.Module(o));let n=new WebAssembly.Instance(o,e);return kt(n,o)}async function rt(o){if(t!==void 0)return t;o!==void 0&&(Object.getPrototypeOf(o)===Object.prototype?{module_or_path:o}=o:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),o===void 0&&(o=new URL("media_core_bg.wasm",import.meta.url));let e=It();(typeof o=="string"||typeof Request=="function"&&o instanceof Request||typeof URL=="function"&&o instanceof URL)&&(o=fetch(o));let{instance:n,module:i}=await s_(await o,e);return kt(n,i)}var w_=import.meta.env?.VITE_TE_WORKSPACE==="1";var b_=!0,l_=import.meta.env?.MODE==="development"?["conform.tools","localhost"]:["conform.tools"];var ut=null,g_=!1;function u_(o){return ut||(ut=(async()=>{if(o!==void 0)return rt(o);if(typeof process<"u"&&process.versions?.node){let n="node:fs/promises",{readFile:i}=await import(n),a=await i(new URL("./wasm/media_core_bg.wasm",import.meta.url));return rt({module_or_path:a})}let{default:e}=await import("./media_core_bg-FDL7GJZP.js");return rt({module_or_path:e})})().then(e=>(g_=!0,e))),ut}function y_(){return u_()}export{et as a,Wt as b,Rt as c,zt as d,Xt as e,Jt as f,Qt as g,te as h,ie as i,de as j,ce as k,se as l,pe as m,we as n,be as o,fe as p,xe as q,Ae as r,Fe as s,je as t,De as u,Ue as v,Pe as w,Be as x,Ce as y,qe as z,He as A,Ve as B,Ke as C,Xe as D,$e as E,Je as F,Qe as G,Ze as H,en as I,_n as J,an as K,dn as L,cn as M,sn as N,gn as O,un as P,wn as Q,bn as R,ln as S,Mn as T,Fn as U,jn as V,Bn as W,Cn as X,qn as Y,Nn as Z,Hn as _,Gn as $,Vn as aa,Kn as ba,Xn as ca,$n as da,Jn as ea,Zn as fa,tr as ga,er as ha,nr as ia,rr as ja,_r as ka,ar as la,dr as ma,cr as na,sr as oa,ur as pa,br as qa,vr as ra,xr as sa,Ir as ta,mr as ua,kr as va,Ar as wa,Or as xa,Wr as ya,Fr as za,Nr as Aa,Gr as Ba,Kr as Ca,Qr as Da,Zr as Ea,At as Fa,b_ as Ga,y_ as Ha};
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{a as c,b as m}from"./chunk-DKGGJM6Z.js";import{$ as s,Fa as u,Ha as n,J as f}from"./chunk-RJ6JA2LZ.js";async function y(r){await n();let e=s(r);return e==="null"?null:JSON.parse(e)}async function d(r){await n();let e;try{e=f(r)}catch{return null}if(e.length<8)return null;let t=new DataView(e.buffer,e.byteOffset,e.byteLength),i=t.getUint32(0,!0),a=t.getUint32(4,!0),o=i*a*4;return e.length<8+o?null:{width:i,height:a,rgba:new Uint8ClampedArray(e.subarray(8,8+o))}}async function b(r,e=8){await n();let t=m(u,"decode_tiff_preview");if(!t)return d(r);try{return c(t(r,e))}catch{return null}}export{y as a,d as b,b as c};
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{a as m,b as l}from"./chunk-DKGGJM6Z.js";import{Fa as u,Ha as n,Z as c,r as s}from"./chunk-RJ6JA2LZ.js";async function g(r){await n();let e=c(r);return e==="null"?null:JSON.parse(e)}async function d(r){await n();let e;try{e=s(r)}catch{return null}if(e.length<8)return null;let t=new DataView(e.buffer,e.byteOffset,e.byteLength),a=t.getUint32(0,!0),i=t.getUint32(4,!0),o=a*i*4;return e.length<8+o?null:{width:a,height:i,rgba:new Uint8ClampedArray(e.subarray(8,8+o))}}async function y(r,e=8){await n();let t=l(u,"decode_exr_preview");if(!t)return d(r);try{return m(t(r,e))}catch{return null}}export{g as a,d as b,y as c};
@@ -1,9 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{a as h}from"./chunk-PHAMF4JF.js";import{A as K,I as X,L as Y,O as H,P as q,Q as V,Y as u,b as l,f as F,g as x,k as g,l as J,p as N,r as G,s as z,v as y,x as $,y as C,z as v}from"./chunk-PLRB2YXJ.js";var _={payg:{id:"payg",name:"Pay As You Go",monthly:0,yearly:0,stripe:{},includes:{web:!0,mcp:!1,app:!1}},web:{id:"web",name:"Web",monthly:10,yearly:100,stripe:{},includes:{web:!0,mcp:!1,app:!1}},indie:{id:"indie",name:"MCP",monthly:49,yearly:490,stripe:{monthly:"price_1T5XDXJ5lnla0aaLasKq49tm",yearly:"price_1T5XDXJ5lnla0aaL2MdMSuI9"},includes:{web:!0,mcp:!0,app:!1}},pro:{id:"pro",name:"App",monthly:199,yearly:1990,stripe:{monthly:"price_1T5X8oJ5lnla0aaLyNJa93H0",yearly:"price_1T5X8oJ5lnla0aaL3dh7b1el"},includes:{web:!0,mcp:!0,app:!0}},studio:{id:"studio",name:"Studio",monthly:"custom",yearly:"custom",stripe:{monthly:"price_1T5X7xJ5lnla0aaLoeE1aBlL",yearly:"price_1T5X7xJ5lnla0aaLeBiYo3Di"},includes:{web:!0,mcp:!0,app:!0}}},Z={web:!0,mcp:!1,app:!1};var Ne=Object.fromEntries(Object.values(_).flatMap(e=>Object.values(e.stripe).map(n=>[n,e.id])));import{createPrivateKey as De,createPublicKey as fe,sign as Te,verify as ge}from"node:crypto";import{Buffer as w}from"node:buffer";var he="CONFORMTOOLS_LICENSE_V1",W=/^[0-9A-F]{8}(-[0-9A-F]{8}){3}$/,Q=e=>JSON.stringify({dev_mode:e.dev_mode??!1,email:e.email,expires_at:e.expires_at,features:e.features,issued_at:e.issued_at,machine_fingerprint:e.machine_fingerprint,tier:e.tier});function ee(e){let n=e.split(/\r?\n/).map(r=>r.trim()).filter(r=>r&&!r.startsWith("#")&&!r.startsWith("-----")).join(""),t=JSON.parse(w.from(n,"base64").toString("utf8"));if(t?.magic!==he||!t.payload?.data)throw new Error("not a conform.tools licence");return t.payload}function ne(e,n){let t=w.from(e.signature,"base64"),r=w.from(Q(e.data));return t.length!==64?!1:n.some(i=>ge(null,r,fe({key:w.concat([w.from("302a300506032b6570032100","hex"),w.from(i)]),format:"der",type:"spki"}),t))}async function D(){let e=x()==="win32"?"conformtools-analyze.exe":"conformtools-analyze",n=[l("CONFORM_ANALYZE"),N(new URL(`./${e}`,import.meta.url)),N(new URL(`../../rust/target/release/${e}`,import.meta.url))].filter(Boolean);for(let t of n)if(await z(t))return t;return null}var te=e=>e.code==="not_entitled"?new h("not_entitled",String(e.why)):void 0;async function Be(e){let n=await re(),t=await n.ask({op:"job",reference:e.reference,clips:e.clips,lite:e.lite??!0,display:!!e.display});if(!t.ok)throw n.close(),te(t)??new Error(`analysis engine: ${t.why}`);return n}async function Fe(e,n,t){let r=await re(),i=()=>r.close();t?.addEventListener("abort",i);let o;try{o=await r.ask(e,n)}finally{t?.removeEventListener("abort",i),r.close()}if(t?.aborted)throw new Error("cancelled");if(!o.ok)throw te(o)??new Error(o.why??`the analysis engine could not run ${e.op}`);return o}async function re(){let e=await D();if(!e)throw new Error("the analysis engine (conformtools-analyze) is not installed");let n="",t=null,r=H(e,["serve"],s=>{n+=new TextDecoder().decode(s);let d;for(;(d=n.indexOf(`
4
- `))>=0;){let m=n.slice(0,d);n=n.slice(d+1);let c=JSON.parse(m);if(c.progress){t?.progress?.(c.progress[0],c.progress[1],c.phase??"");continue}let p=t;t=null,p?.done(c)}},s=>console.error(s.trimEnd()));r.exited.then(()=>t?.done({ok:!1,why:"the analysis engine exited"}));let i=Promise.resolve();return{ask:(s,d)=>{let m=i.then(async()=>{r.hold(!0);try{let c=new Promise(f=>{t={done:f,progress:d}});await r.write(new TextEncoder().encode(JSON.stringify(s)+`
5
- `));let p=await c;return p.miss&&(console.error(`[mirror] MISS \u2014 ${p.miss} is not in the mirror. Replay never reads the source drive; record this case again with the drive mounted (CONFORM_MIRROR_MODE=record).`),F(75)),p}finally{r.hold(!1)}});return i=m.catch(()=>{}),m},close:()=>r.close()}}var ye=["cMwVBrEYKMzlG6pC7FF2lNKIoEqGz2xB5yph6clNnTg=","qnheqkkDU09l1oI6h2CFh4uQ97bY/hkTA5niGKH0+X8="],_e=ye.map(e=>Uint8Array.from(atob(e),n=>n.charCodeAt(0)));function A(){let e=l("CONFORM_RECORDS_DIR");if(e)return e;let n=J(),t=x()==="darwin"?u(n,"Library/Application Support"):x()==="win32"?l("LOCALAPPDATA")??u(n,"AppData/Local"):l("XDG_DATA_HOME")??u(n,".local/share");return u(t,"conform.tools")}var we=()=>l("CONFORM_LICENSE_PATH")??u(A(),"license.lic"),k=()=>u(A(),"grant.lic"),be=null;function T(){return be??=(async()=>{let e=await D();if(!e)return[];let n=await Y(e,["machine"],{timeoutMs:15e3}).catch(()=>null);try{return JSON.parse(n?.stdout??"").machines.filter(t=>W.test(t))}catch{return[]}})()}function xe(e,n,t=Date.now()){if(!ne(e,_e))return{ok:!1,reason:"invalid licence signature"};let r=Date.parse(e.data.expires_at);return!Number.isFinite(r)||r<t?{ok:!1,reason:`licence expired ${e.data.expires_at}`}:[n??[]].flat().includes(e.data.machine_fingerprint)?{ok:!0,data:e.data}:{ok:!1,reason:"licence is for another machine"}}async function ie(){let e;try{e=await y(we())}catch{return null}try{return xe(ee(e),await T())}catch(n){return{ok:!1,reason:n.message}}}var ve={production:{supabaseUrl:"https://sttpwvjbpsetzbhrkohl.supabase.co",anonKey:"sb_publishable_cyuIPsrQa5Ye7lqFxjnknQ_ozDuwwzp",appBase:"https://conform.tools"},staging:{supabaseUrl:"https://slxggvbvgzkiwojcgykx.supabase.co",anonKey:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InNseGdndmJ2Z3praXdvamNneWt4Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzEyODUzMTksImV4cCI6MjA4Njg2MTMxOX0.b18iDsWftny0k9VmOCcbN6kLlyZsZ7GULn_jRH9CE9I",appBase:"https://beta.conform.tools"}};function a(){let e=l("CONFORM_ENV")==="staging"?"staging":"production",n=ve[e];return{env:e,supabaseUrl:l("CONFORM_SUPABASE_URL")??n.supabaseUrl,anonKey:l("CONFORM_SUPABASE_ANON_KEY")??n.anonKey,appBase:l("CONFORM_APP_BASE")??n.appBase}}var Se=600*1e3,oe=72*3600*1e3,Pe=300*1e3,P=()=>u(g(),a().env==="production"?"auth.json":`auth-${a().env}.json`);async function M(){for(let e of new Set([P(),u(g(),"auth.json")]))try{let n=JSON.parse(await y(e));if(n.env===a().env&&n.access_token)return n}catch{}return null}async function Ee(){try{for await(let e of X(g())){if(!/^auth(?:-(\w+))?\.json$/.exec(e.name))continue;let t=JSON.parse(await y(u(g(),e.name)));if(t.access_token&&t.env&&t.env!==a().env)return{other_env:t.env}}}catch{}return{}}async function R(e){await C(g()),await $(P(),JSON.stringify(e)),await K(P(),384)}var se=6e3,E=0,ce=()=>Date.now()<E,le=()=>{E=Date.now()+6e4};function We(){E=0}async function ue(e){if(e.expires_at-60>Date.now()/1e3)return e.access_token;if(ce())return null;let n=a();try{let t=await fetch(`${n.supabaseUrl}/auth/v1/token?grant_type=refresh_token`,{method:"POST",headers:{apikey:n.anonKey,"content-type":"application/json"},body:JSON.stringify({refresh_token:e.refresh_token}),signal:AbortSignal.timeout(se)}).catch(i=>{throw le(),i});if(!t.ok)return t.status===400||t.status===401?"":null;let r=await t.json();return e.access_token=r.access_token,r.refresh_token&&(e.refresh_token=r.refresh_token),e.expires_at=r.expires_at??Math.floor(Date.now()/1e3)+(r.expires_in??3600),await R(e),e.access_token}catch{return null}}async function Qe(){let e=await M();return e&&await ue(e)||null}var b=null;function ae(e,n){return{signed_in:!0,entitled:e.entitled,env:a().env,email:e.email,access:e.access,tier:e.tier,trial_days_remaining:e.trial_days_remaining,source:n,...e.entitled?{}:{reason:"not_entitled"},...e.invite_only?{invite_only:!0}:{}}}async function pe(e={}){let n=await ie();if(n?.ok)return{signed_in:!!await M().catch(()=>null),entitled:!0,env:a().env,email:n.data.email,access:"licence",tier:n.data.tier,source:"licence"};let t=await Ae(e);return n&&!t.entitled?{...t,licence_error:n.reason}:t}async function Ae(e){if(!e.force&&b&&Date.now()-b.at<Se)return{...b.status,source:"cache"};let n=a(),t=await M();if(!t)return{signed_in:!1,entitled:!1,env:n.env,reason:"not_signed_in",...await Ee()};let r=await ue(t);if(r==="")return{signed_in:!0,entitled:!1,env:n.env,reason:"auth_rejected"};if(r&&!ce())try{let i=(await T())[0],o=await fetch(`${n.supabaseUrl}/functions/v1/v1-billing/v1/billing/entitlement${i?`?machine=${i}`:""}`,{headers:{authorization:`Bearer ${r}`,apikey:n.anonKey},signal:AbortSignal.timeout(se)}).catch(s=>{throw le(),s});if(o.status===401||o.status===403)return{signed_in:!0,entitled:!1,env:n.env,reason:"auth_rejected"};if(o.ok){let{grant:s,...d}=(await o.json()).data;i&&await ke(s),t.last_entitlement=d,t.last_entitlement_at=Date.now(),await R(t);let m=ae(d,"live");return b={at:Date.now(),status:m},m}}catch{}if(t.last_entitlement&&t.last_entitlement_at&&Date.now()-t.last_entitlement_at<oe){let i=oe-(Date.now()-t.last_entitlement_at);return{...ae(t.last_entitlement,"grace"),grace_remaining_h:Math.round(i/36e4)/10}}return{signed_in:!0,entitled:!1,env:n.env,reason:"offline_grace_expired"}}async function ke(e){try{if(!e)return await v(k());await C(A()),await $(k(),e)}catch{}}function Oe(e){return e.source==="licence"?`${e.email} \xB7 machine licence (${e.tier}) \u2014 runs offline, no account check`:Le(e)+(e.licence_error?`
6
- (the machine licence was not used: ${e.licence_error})`:"")}function Le(e){let n=a();if(!e.signed_in)return`not signed in (${n.env})${e.other_env?`; you are signed in to ${e.other_env} only (each server keeps its own sign-in)`:""}. Run the account_login tool, or \`npx -y conformtools@latest login\` in a terminal.`;if(e.reason==="auth_rejected")return"signed-in session was rejected (expired or revoked) \u2014 sign in again with account_login.";if(e.reason==="offline_grace_expired")return"offline for more than 72 h since the last account check \u2014 reconnect and run account_status.";let t=`${e.email??"(unknown email)"} \xB7 ${n.env}`;if(!e.entitled&&e.invite_only)return`${t}
7
- the conform.tools engine (the MCP and the app) is invite-only for now, and ${e.email??"this account"} is not on the list. If that is the wrong Google account, run account_logout, then account_login with the invited one.`;if(!e.entitled)return`${t}
8
- no active plan on ${e.email??"this account"}: the trial has ended and there is no subscription. If that is the wrong Google account, run account_logout, then account_login and pick the account with the plan; otherwise choose a plan at ${n.appBase}/pricing, then run account_status.`;let r=e.access==="trial"?`trial, ${e.trial_days_remaining??"?"} day(s) left`:e.access==="allowlist"?"invited (early access)":`subscribed${e.tier?` (${e.tier})`:""}`,i=O(e),o=i?` \xB7 includes ${[i.web&&"the web tools",i.mcp&&"the MCP",i.app&&"the app"].filter(Boolean).join(", ")||"the web tools"}`:"";return`${t}
9
- ${r}${o}${e.source==="grace"?` \u2014 offline, using the last check (${e.grace_remaining_h} h of grace left)`:""}`}function O(e){if(e.access==="trial")return Z;let n=(e.tier??"").toLowerCase();return(n==="enterprise"?_.studio:_[n])?.includes??null}var de=()=>pe();function en(e){de=e}async function me(){let e=await de();if(e.entitled)return e;let n=e.signed_in&&e.reason==="not_entitled"?"not_entitled":"not_signed_in";throw new h(n,Oe(e),{account:e})}async function nn(){let e=await me();if(e.source==="licence"||O(e)?.mcp!==!1)return e;throw new h("not_entitled",`The conform.tools MCP is in the MCP plan ($${_.indie.monthly}/mo) and up. ${e.access==="trial"?"Your trial":`Your plan${e.tier?` (${e.tier})`:""}`} includes Timeline Exchange and Conform Connect on ${a().appBase}, but not the engine on this machine. Upgrade at ${a().appBase}/pricing, then run account_status.`,{account:e,needs:"mcp"})}async function tn(){let e=await me();if(e.source==="licence"||O(e)?.app)return e;throw new h("not_entitled",`The conform.tools app is in the App plan ($${_.pro.monthly}/mo). ${e.access==="trial"?"Your trial":`Your plan${e.tier?` (${e.tier})`:""}`} does not include the app${O(e)?.mcp?" \u2014 it includes the conform.tools MCP: use it from Claude, Claude Code or any MCP client":""}. Upgrade at ${a().appBase}/pricing, then reopen the app.`,{account:e,needs:"app"})}var S=null;function rn(e={}){if(S)return S;let n=a(),t=crypto.randomUUID().replaceAll("-","");return S=new Promise((r,i)=>{let o=!1,s=c=>{o||(o=!0,clearTimeout(m),setTimeout(()=>d.close(),250),S=null,c())},d=V({hostname:"127.0.0.1",port:0,onListen:async c=>{let p=`${n.appBase}/plugin-auth?client=engine&port=${c}&state=${t}`,f=await q(p);e.onUrl?.(p,f)}},async c=>{let p=new URL(c.url);if(p.pathname!=="/callback")return new Response("not found",{status:404});let f=p.searchParams,U=f.get("access_token")??"",j=f.get("refresh_token")??"",L=!!U&&!!j&&f.get("state")===t;if(L){let B=Number(f.get("expires_at"));await R({env:n.env,access_token:U,refresh_token:j,expires_at:B>0?B:Math.floor(Date.now()/1e3)+3600}),b=null,E=0,pe({force:!0}).then(I=>s(()=>r(I)),I=>s(()=>i(I)))}return new Response(Ie(L),{status:L?200:400,headers:{"content-type":"text/html; charset=utf-8"}})}),m=setTimeout(()=>s(()=>i(new h("not_signed_in","sign-in was not completed within 5 minutes"))),e.timeoutMs??Pe)}),S}async function on(){b=null,E=0,await G(P())&&await v(P()),await v(k()).catch(()=>{});let e=u(g(),"auth.json");try{JSON.parse(await y(e)).env===a().env&&await v(e)}catch{}}function Ie(e){let[n,t]=e?["Connected","You're signed in \u2014 you can close this tab."]:["Sign-in failed","Please try again."];return`<!doctype html><meta charset=utf-8><title>conform.tools</title><body style='font:16px -apple-system,Helvetica,Arial,sans-serif;display:flex;align-items:center;justify-content:center;height:100vh;margin:0;background:#f5f5f7;color:#1d1d1f'><div style='text-align:center'><div style='font-size:22px;font-weight:700'>conform<span style='color:#ff3c00'>.tools</span></div><div style='margin-top:14px;font-size:20px;font-weight:600'>${n}</div><div style='margin-top:6px;color:#6e6e73'>${t}</div></div></body>`}export{Be as a,Fe as b,re as c,a as d,se as e,We as f,Qe as g,pe as h,Oe as i,O as j,en as k,me as l,nn as m,tn as n,rn as o,on as p};
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import"./chunk-PSANHDZM.js";function S(){let e=window.__CONFORM_ENGINE__;if(e?.base)return e;let t=new URLSearchParams(window.location.search),r=l=>{try{return sessionStorage.getItem(`conform.engine.${l}`)}catch{return null}},i=(l,c)=>{try{sessionStorage.setItem(`conform.engine.${l}`,c)}catch{}},n=t.get("engine"),o=t.get("token");return n?i("url",n):n=r("url"),o?i("token",o):o=r("token"),{base:n?/^\d+$/.test(n)?`http://127.0.0.1:${n}`:n.replace(/\/$/,""):"http://127.0.0.1:7791",token:o??""}}var g=typeof window>"u"?{base:"http://127.0.0.1:7791",token:""}:S(),f=(e=!0)=>({...e?{"content-type":"application/json"}:{},...g.token?{authorization:`Bearer ${g.token}`}:{}}),y=class extends Error{constructor(r,i){super(i);this.code=r}};async function s(e,t,r,i=[]){let n;try{n=await fetch(`${g.base}${t}`,{method:e,headers:f(),body:r===void 0?void 0:JSON.stringify(r)})}catch{throw new y("engine_down",`the conform.tools engine is not running at ${g.base}`)}let o=await n.json().catch(()=>({}));if(!n.ok&&!("text"in o)&&!i.includes(n.status))throw new y(o.code??String(n.status),o.message??`HTTP ${n.status}`);return o}async function _(e,t,r,i){let n;try{n=await fetch(`${g.base}${e}`,{...t,headers:f(),signal:i})}catch{i?.aborted||r({type:"error",code:"engine_down",message:`the conform.tools engine is not running at ${g.base}`});return}if(!n.ok||!n.body){let c=await n.json().catch(()=>({}));r({type:"error",code:c.code??String(n.status),message:c.message??`HTTP ${n.status}`});return}let o=n.body.getReader(),b=new TextDecoder,l="";for(;;){let{value:c,done:h}=await o.read();if(h)break;l+=b.decode(c,{stream:!0});let u;for(;(u=l.indexOf(`
4
-
5
- `))>=0;){let m=l.slice(0,u);l=l.slice(u+2),m.startsWith("data: ")&&r(JSON.parse(m.slice(6)))}}}var w=new Set,k=null;function P(){if(k)return;let e=k=new AbortController;(async()=>{for(;!e.signal.aborted;)await _("/app/events",{method:"GET"},t=>{for(let r of w)r(t)},e.signal).catch(()=>{}),e.signal.aborted||await new Promise(t=>setTimeout(t,2e3))})()}var j={base:g.base,health:()=>s("GET","/health"),verb:(e,t={})=>s("POST",`/verbs/${e}`,t),job:e=>s("GET",`/jobs/${e}`),cancelJob:e=>s("DELETE",`/jobs/${e}`),front:e=>s("POST","/app/front",e),account:()=>s("GET","/app/account"),projects:()=>s("GET","/app/projects"),createProject:e=>s("POST","/app/projects",e),project:e=>s("GET",`/app/projects/${e}`),attachSession:(e,t)=>s("PUT",`/app/projects/${e}/sessions`,{session_id:t}),saveContext:(e,t,r)=>s("PUT",`/app/projects/${e}/context`,{text:t,base:r},[409]),frame:async(e,t,r,i,n,o,b)=>{let l=new URLSearchParams({f:String(t),w:String(r),...n?{timeline:n}:{},...o?{track:String(o)}:{},...b?{grade:"resolve",...b.host_timeline?{host_timeline:b.host_timeline}:{}}:{}}),c=await fetch(`${g.base}/app/sessions/${e}/frame?${l}`,{headers:f(!1),signal:i}).catch(()=>null);if(!c?.ok)return null;if(c.headers.get("content-type")!=="application/x-conform-pixels")return createImageBitmap(await c.blob()).catch(()=>null);let h=new Uint8Array(await c.arrayBuffer()),u=new DataView(h.buffer),m=u.getUint32(0,!0),v=u.getUint32(4,!0),T=u.getUint32(8,!0)===1,p=new Uint8ClampedArray(h.buffer,12,m*v*4);for(let d=0;d<p.length;d+=4){if(T){let R=p[d];p[d]=p[d+2],p[d+2]=R}p[d+3]=255}return createImageBitmap(new ImageData(p,m,v)).catch(()=>null)},tools:()=>s("POST","/verbs/tool",{action:"list"}).then(e=>e.tools??[]),blocks:()=>s("POST","/verbs/tool",{action:"blocks"}).then(e=>e.blocks??[]),saveTool:e=>s("POST","/verbs/tool",{action:"save",spec:e},[422]),deleteTool:e=>s("POST","/verbs/tool",{action:"delete",id:e},[422]),toolLayout:()=>s("POST","/verbs/tool",{action:"layout"}).then(e=>e.layout),arrangeTools:e=>s("POST","/verbs/tool",{action:"arrange",layout:e}).then(t=>t.layout),hideTool:(e,t)=>s("POST","/verbs/tool",{action:t?"hide":"show_tool",id:e}).then(r=>r.layout),workspace:e=>s("POST","/verbs/tool",{action:"workspace",project_id:e}).then(t=>t.workspace),saveWorkspace:(e,t)=>s("POST","/verbs/tool",{action:"workspace_save",project_id:e,workspace:t},[422]),exportTools:(e,t)=>s("POST","/verbs/tool",{action:"export",ids:e,path:t},[422]),importTools:e=>s("POST","/verbs/tool",{action:"import",path:e},[422]),hostSetup:(e,t="status")=>s("POST","/verbs/host_setup",{host:e,action:t},[422]),convert:async(e,t)=>{let r=new URLSearchParams({name:e.fileName,out:t,targets:JSON.stringify(e.targets.map(({target:n,ext:o})=>({target:n,ext:o}))),sequences:JSON.stringify(e.sequences)}),i=await fetch(`${g.base}/app/convert?${r}`,{method:"POST",headers:{...f(!1),"content-type":"application/octet-stream"},body:e.bytes});return await i.json().catch(()=>({ok:!1,error:`the engine said ${i.status}`}))},canonicalize:async(e,t=[],r=[])=>{let i=new URLSearchParams({name:e.name,sequences:JSON.stringify(t),previous:JSON.stringify(r)}),n=await fetch(`${g.base}/app/canonicalize?${i}`,{method:"POST",headers:{...f(!1),"content-type":"application/octet-stream"},body:await e.arrayBuffer()}),o=await n.json().catch(()=>({ok:!1,error:`the engine said ${n.status}`}));if(!o.ok)throw new Error(o.error??o.message??`the engine said ${n.status}`);return o},policy:()=>s("GET","/app/policy"),session:e=>s("GET",`/app/sessions/${e}`),onEvent:e=>(w.add(e),P(),()=>{w.delete(e),w.size||(k?.abort(),k=null)}),runs:(e,t)=>s("POST","/verbs/tool_run",{action:"list",project_id:e,...t?{id:t}:{}}).then(r=>r.runs??[])};async function x(e,t){let r=await fetch(`${g.base}/app/fs`,{method:"POST",headers:f(),body:JSON.stringify({op:e,...t})});if(e==="readFile"){if(!r.ok)throw Object.assign(new Error(`could not read ${String(t.path)}`),{name:"NotReadableError"});let n=await r.arrayBuffer();return{result:{byteLength:n.byteLength},bytes:n}}let i=await r.json().catch(()=>({ok:!1}));if(!i.ok)throw Object.assign(new Error(i.message??`the engine said ${r.status}`),{name:"NotFoundError"});return{result:i.result}}var a=()=>typeof window<"u"?window.__TAURI__:void 0,$={available:()=>!!a()?.core?.invoke,licenseStatus:()=>a().core.invoke("license_status"),fingerprint:()=>a().core.invoke("machine_fingerprint"),version:()=>a().app.getVersion(),installUpdate:()=>a().core.invoke("install_update"),importLicense:async()=>{let e=await a().dialog.open({multiple:!1,filters:[{name:"conform.tools licence",extensions:["lic","json"]}]});return typeof e=="string"?a().core.invoke("import_license",{path:e}):null},pickFolder:async()=>{let e=await a().dialog.open({directory:!0,multiple:!1});return typeof e=="string"?e:null},pickFiles:async()=>{let e=await a().dialog.open({directory:!1,multiple:!0});return Array.isArray(e)?e:typeof e=="string"?[e]:[]},pickFile:async()=>{let e=await a().dialog.open({directory:!1,multiple:!1});return typeof e=="string"?e:null},saveFile:async e=>{try{let t=await a().dialog.save({defaultPath:e,filters:[{name:"Recipe",extensions:["json"]}]});return typeof t=="string"?t:null}catch{let t=await a().dialog.open({directory:!0,multiple:!1});return typeof t=="string"?`${t.replace(/[\\/]$/,"")}/${e}`:null}}};export{y as EngineError,j as engine,x as engineFs,$ as shell};
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{f as a,g as b,h as c,i as d,j as e,k as f,l as g,m as h,n as i,o as j,p as k,q as l}from"./chunk-HNBA43BF.js";import"./chunk-QVH44I66.js";import"./chunk-PFISREY4.js";import"./chunk-JV7TZDKJ.js";import"./chunk-VIBEEWPC.js";import"./chunk-PFZVET7S.js";import"./chunk-6V4OEOOX.js";import"./chunk-RGMTLNMF.js";import"./chunk-D4WPRRBT.js";import"./chunk-WN53ARHJ.js";import"./chunk-A7FNR3T5.js";import"./chunk-J2JXLEAI.js";import"./chunk-SGLQY53R.js";import"./chunk-DKGGJM6Z.js";import"./chunk-AMRJXYL4.js";import"./chunk-3D3Z4TBR.js";import"./chunk-2BPR6LK6.js";import"./chunk-NU3X7P4N.js";import"./chunk-RJ6JA2LZ.js";import"./chunk-XCKQHL4G.js";import"./chunk-PHAMF4JF.js";import"./chunk-PLRB2YXJ.js";import"./chunk-C2ESM27Z.js";import"./chunk-PSANHDZM.js";export{i as ASPECTS,a as INPUT_SCALING,e as SIZING_TARGETS,h as alignText,g as alignTimeline,j as aspectOf,k as blankingQc,l as blankingText,c as inputFitRatio,f as offlineLane,d as resolveProps,b as scalingOf};
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{a as C}from"./chunk-DQGINJDV.js";import{c as D}from"./chunk-623EA3TK.js";import{L as A,O as P,V as N,Y as q}from"./chunk-QVH44I66.js";import"./chunk-5BSXYKLN.js";import"./chunk-PFISREY4.js";import"./chunk-JV7TZDKJ.js";import{k as M}from"./chunk-VIBEEWPC.js";import"./chunk-PFZVET7S.js";import"./chunk-6V4OEOOX.js";import"./chunk-RGMTLNMF.js";import"./chunk-D4WPRRBT.js";import"./chunk-WN53ARHJ.js";import"./chunk-A7FNR3T5.js";import"./chunk-J2JXLEAI.js";import"./chunk-SGLQY53R.js";import"./chunk-DKGGJM6Z.js";import"./chunk-AMRJXYL4.js";import"./chunk-3D3Z4TBR.js";import"./chunk-2BPR6LK6.js";import{b as F}from"./chunk-NU3X7P4N.js";import"./chunk-RJ6JA2LZ.js";import"./chunk-XCKQHL4G.js";import"./chunk-PHAMF4JF.js";import{H as x,I as E,V as U,W as R,Y as k,m as O,q as S}from"./chunk-PLRB2YXJ.js";import"./chunk-C2ESM27Z.js";import"./chunk-PSANHDZM.js";var y=s=>{let i=s?.target_url??s?.local_path??"";return i.startsWith("file://")?O(i):i};async function H(s,i){let a=await s.items({timeline:i,kind:"video"}),r=a.items.map(m=>`${m.kind}:${m.track}:${m.start}:${m.end-m.start}`),c=async m=>{let l=await D(m,a.timeline).catch(()=>null);if(!l||!r.every(p=>l.has(p)))return null;let{session:h}=await P(m,"prproj"),u=h.timelines.find(p=>p.name===a.timeline);return u?z(h,u):null};if(a.project_path){let m=await c(a.project_path);if(m)return await T(m),{session:m,from:"the saved project (matches the live sequence)",path:a.project_path};let l=k(R(a.project_path),"Adobe Premiere Pro Auto-Save"),h=U(a.project_path).replace(/\.prproj$/i,""),u=[];try{for await(let p of E(l))p.isFile&&p.name.startsWith(`${h}--`)&&p.name.endsWith(".prproj")&&u.push({path:k(l,p.name),mtime:(await S(k(l,p.name))).mtime?.getTime()??0})}catch{}for(let p of u.sort((g,_)=>_.mtime-g.mtime).slice(0,3)){let g=await c(p.path);if(g&&await T(g),g)return{session:g,from:`Premiere's auto-save of ${new Date(p.mtime).toLocaleTimeString()} (matches the live sequence; the project itself is not saved)`,path:p.path}}}let e=k(await x("conform-ppro-"),"live.otio"),t=await s.export({timeline:i,out_path:e}),{session:n}=await P(t.path,t.format);if(await Z(s,n),await I(n),typeof a.drop_frame=="boolean")for(let m of n.timelines)m.is_drop_frame=a.drop_frame;await T(n);for(let m of n.timelines)for(let l of m.tracks)for(let h of l.items){let u=h;u.scale=null,u.position_x=null,u.position_y=null,u.rotation=null}let o=await s.model(i).then(m=>m.items.filter(l=>Object.keys(l.sizing??{}).length).map(l=>`${l.name??l.file_path.split("/").pop()} (V${l.track} @${l.start-m.start_frame})`)).catch(()=>[]),f=`Premiere's OTIO export carries the cut, not the clips' Motion / Opacity / effects / retimes${o.length?` \u2014 ${o.length} clip(s) here have Motion that will not carry: ${o.slice(0,6).join(", ")}${o.length>6?"\u2026":""}`:""}; save the project (or wait for its auto-save) and run it again for every one of them`;return{session:n,from:"Premiere's OTIO export of the live sequence (no saved or auto-saved copy matches it yet)",path:t.path,lossy:f}}async function T(s){let i=new Set;for(let r of s.media_references??[]){if(r.binding_state==="linked")continue;let c=y(r);c&&await S(c).then(e=>e.isFile,()=>!1)&&i.add(R(c))}let a=s;for(let r of i){let c=await C(a,{media_root:r,gather:"path",criteria:{file_name:!0,file_name_mode:"tight"},lane:"both",reset:!1,dry_run:!1,compare:!1,cap:2e3,remember:!1}).catch(()=>null);c?.changed&&(a=c.session)}return a!==s&&Object.assign(s,a),(s.media_references??[]).filter(r=>r.binding_state==="linked").length}async function I(s){let i=0;for(let a of s.media_references??[]){if(a.source_resolution_w)continue;let r=y(a),c=r?await M(r).catch(()=>null):null;if(!c)continue;let e=c;for(let t of["source_resolution_w","source_resolution_h","source_pixel_aspect","codec","container","streams"])e[t]!=null&&a[t]==null&&(a[t]=e[t]);a.source_fps??=e.source_fps??null,a.source_timecode??=e.source_timecode??null,!a.available_range&&e.available_range&&(a.available_range=e.available_range),i++}return i}async function ie(s,i){let a=i.timelines.filter(t=>t.offline_reference?.clip_id);if(!a.length)return 0;let r=t=>[...t?.clip_list??[],...(t?.folders??[]).flatMap(r)],c=new Map(r((await s.project({clips:!0})).pool).map(t=>[t.id,t])),e=0;for(let t of a){let n=c.get(t.offline_reference.clip_id);if(n?.file){let o=i.media_references.find(f=>y(f)===n.file);o||(o={id:`offline-ref-${t.id??e}`,kind:"external",name:n.name,target_url:`file://${n.file}`,local_path:n.file},i.media_references.push(o)),t.offline_reference.media_reference_id=o.id,e++}else if(n&&n.name!==t.name&&(n.type==="Timeline"||/compound/i.test(n.type??""))){let{createSession:o}=await import("./store-53BBZBND.js"),f=k(await x("conform-offline-ref-"),`${n.name.replace(/[^\w.-]+/g,"_")}.drt`),m=await s.export(n.type==="Timeline"?{timeline:n.name,out_path:f}:{clip_id:n.id,out_path:f}),{session:l}=await P(m.path,"drt");l=(await A(l))?.session??l,t.offline_reference.session_id=(await o(l,m.path,"drt")).id,e++}else t.offline_reference=null}return e}async function Z(s,i){let a=(await s.projectClips()).clips,r=new Map(a.filter(e=>e.start_frame!=null&&e.fps).map(e=>[e.file,e])),c=0;for(let e of i.media_references??[]){if(e.source_timecode)continue;let t=r.get(y(e));if(t){e.source_timecode=F(t.start_frame,t.fps),e.source_fps??=t.fps,c++;continue}let n=y(e),o=n?await M(n).catch(()=>null):null;o?.source_timecode&&(e.source_timecode=o.source_timecode,e.source_fps??=o.source_fps??null,c++)}return c}function z(s,i){let a=new Map(s.timelines.map(c=>[c.id,c])),r=[i];for(let c=0;c<r.length;c++)for(let e of r[c].tracks)for(let t of e.items){let n=t.nested_timeline_id,o=n?a.get(n):void 0;o&&!r.includes(o)&&r.push(o)}return{...s,timelines:r}}function V(s,i){let a=new Map((s.media_references??[]).map(n=>[n.id,y(n)])),r=[];for(let n of i.media_references??[]){let o=a.get(n.id),f=y(n);o!==void 0&&f&&f!==o&&r.push({ref_id:n.id,old:o,new:f})}let c=new Map(r.map(n=>[n.ref_id,n])),e=[],t=i.timelines.find(n=>n.kind==="primary")??i.timelines[0];for(let n of t?.tracks??[])if(n.kind==="Video")for(let o of n.items){let f=o.media_reference_id?c.get(o.media_reference_id):void 0;!f||o.kind!=="clip"||!o.source_range||e.push({track:n.track_index,start:o.timeline_range.start.value,duration:o.timeline_range.duration.value,src_in:o.source_range.start.value,path:f.new,name:o.name??""})}return{media:r,cuts:e}}async function se(s,i){let{session:a,from:r,lossy:c}=await H(s,i.timeline),e=await C(structuredClone(a),{media_root:i.media_root,gather:"walk",reset:!0,lane:"video",dry_run:!1,cap:2e3,criteria:i.criteria??(i.mode==="cut_in"?{file_name:!1,reel_name:!0}:{file_name:!0,file_name_mode:"loose"}),tolerances:i.tolerances}),{media:t,cuts:n}=V(a,e.session),o=[`read from ${r}`,...c&&i.mode==="new_version"?[`\u26A0 ${c}`]:[],`matched ${t.length} medi${t.length===1?"um":"a"} under ${i.media_root} (${n.length} clip use${n.length===1?"":"s"} in the sequence)`],f=t.map(u=>` ${u.old.split("/").pop()} \u2192 ${u.new}`);if(i.dry_run||!t.length)return{text:[...o,...f,i.dry_run?"(dry run \u2014 nothing changed in Premiere)":"",e.text.split(`
4
- `).slice(-6).join(`
5
- `)].filter(Boolean).join(`
6
- `),data:{media:t,cuts:n,from:r}};if(i.mode==="replace"||i.mode==="hires"||i.mode==="proxy"){let p=(await s.projectClips()).clips.flatMap(w=>t.filter(v=>v.old===w.file).map(v=>({clip:w.id,path:v.new,mode:i.mode}))),g=i.mode==="replace"?W(a,e.session,t):new Map,_=g.size?await X(s,new Set(g.keys())):[],b=await s.relinkClips(p),d=b.results.filter(w=>w.ok).length,$=[...o,`${i.mode==="hires"?"attached full-res behind":i.mode==="proxy"?"attached as proxies to":"repointed"} ${d}/${p.length} project clip(s)${i.mode==="proxy"?" (Toggle Proxies in Premiere switches)":""}`,...f,...b.results.filter(w=>!w.ok).map(w=>` refused: ${w.detail??"Premiere refused"}`)],j=_.length?await Y(s,_,g):null;return j&&$.push(...j.lines),{text:$.join(`
7
- `),data:{media:t,results:b.results,undo_relink:b.undo,...j?{refit:j.data}:{},from:r}}}if(i.mode==="cut_in"){let u=await s.items({timeline:i.timeline,kind:"video"}),p=Math.max(0,...u.items.map(d=>d.track)),g=i.track??p+1,_=await s.cutIn(i.timeline,n.map(d=>({path:d.path,track:g,start:d.start,src_in:d.src_in,duration:d.duration,copy_from:{track:d.track,start:d.start}}))),b=_.results.filter(d=>d.ok).length;return{text:[...o,`cut in ${b}/${n.length} on V${g} (video only, the originals untouched underneath; Edit > Undo ${_.undo_steps}\xD7 in Premiere takes the cuts${_.undo_steps>1?" and the carried sizing":""} back; each return clip keeps its in/out marks)`,...n.map((d,$)=>` V${d.track} @${d.start} ${d.name} \u2192 ${d.path.split("/").pop()} src ${d.src_in}${_.results[$]?.ok?"":` REFUSED: ${_.results[$]?.detail??""}`}`)].join(`
8
- `),data:{media:t,cuts:n,results:_.results,track:g,from:r}}}let m=e.session.timelines.find(u=>u.kind==="primary")??e.session.timelines[0];m&&(m.name=i.name??`${m.name}_CONFORMED`);let l=await q(e.session,"premiere-prproj",k(await x("conform-ppro-"),"/"),""),h=await s.open({path:l.path});return{text:[...o,`new sequence "${h.timeline}" in ${h.project} (the open sequence is untouched)`,...f,...h.notes,...l.issues.slice(0,10).map(u=>` note: ${u.message}`)].join(`
9
- `),data:{media:t,path:l.path,sequence:h.timeline,issues:l.issues,from:r}}}function W(s,i,a){let r=new Map,c=(e,t)=>(e.media_references??[]).find(n=>n.id===t);for(let e of a){let t=c(s,e.ref_id),n=c(i,e.ref_id),o=t?.source_resolution_w,f=t?.source_resolution_h,m=n?.source_resolution_w,l=n?.source_resolution_h;!o||!f||!m||!l||o===m||Math.abs(o/f-m/l)>.01||r.set(e.old,o/m)}return r}async function X(s,i){let a=[];for(let r of(await s.current()).timelines){let c=await s.model(r).catch(()=>null);for(let e of c?.items??[])i.has(e.file_path)&&a.push({sequence:r,track:e.track,start:e.start-c.start_frame,file:e.file_path,zx:e.sizing.ZoomX??1,zy:e.sizing.ZoomY??e.sizing.ZoomX??1,keyframed:!!e.sizing_keyframed})}return a}async function Y(s,i,a){let r=[],c={},e=new Map;for(let t of i)(e.get(t.sequence)??e.set(t.sequence,[]).get(t.sequence)).push(t);for(let[t,n]of e){let o=n.filter(l=>l.keyframed),f=n.filter(l=>!l.keyframed).map(l=>{let h=a.get(l.file);return{op:"properties",item:{kind:"video",track:l.track,start:l.start},set:{ZoomX:+(l.zx*h).toFixed(6),ZoomY:+(l.zy*h).toFixed(6)}}}),m=f.length?await s.apply({timeline:t,ops:f}):null;c[t]={rescaled:m?.applied??0,keyframed:o.length,undo:m?.undo??[]},r.push(` "${t}": ${m?.applied??0}/${f.length} use(s) rescaled to keep their framing on the new raster (one Edit > Undo)${o.length?`; ${o.length} with keyframed scale left as they are \u2014 check them`:""}`)}return{lines:["framing kept through the raster change (Premiere's Scale is a percent of the media's pixels):",...r],data:c}}async function B(s){let i=new Set;for(let e of s.timelines)for(let t of e.tracks)for(let n of t.items)n.is_adjustment&&(i.add(n.id),n.is_adjustment=!1);let a=s.timelines.flatMap(e=>e.tracks.flatMap(t=>t.items)).filter(e=>e.kind==="nested").length,r=await A(s);if(!r)throw new Error("un-nesting needs the conform.tools engine on this machine");for(let e of r.session.timelines)for(let t of e.tracks)for(let n of t.items)i.has(n.id)&&(n.is_adjustment=!0);let c=s.timelines[0]?.id;return Object.assign(s,r.session),s.timelines=s.timelines.filter(e=>e.id===c),{summary:`un-nested ${a} nest${a===1?"":"s"}`,issues:r.issues}}async function re(s,i){let{session:a,from:r,lossy:c}=await H(s,i.timeline),e=await L(a,i.ops,i.name),t=await q(e.session,"premiere-prproj",k(await x("conform-ppro-"),"/"),""),n=await s.open({path:t.path}),o=[...e.issues,...t.issues.map(f=>f.message)];return{text:[`read from ${r}`,...c?[`\u26A0 ${c}`]:[],...e.lines,`new sequence "${n.timeline}" in ${n.project} (the open sequence is untouched)`,...o.slice(0,12).map(f=>` note: ${f}`),...o.length>12?[` \u2026and ${o.length-12} more notes`]:[]].join(`
10
- `),data:{sequence:n.timeline,path:t.path,notes:o,from:r}}}async function L(s,i,a){let r=[],c=[],e=()=>s.timelines[0];for(let n of i){if(n.kind==="unnest"){let l=await B(s);r.push(l.summary),c.push(...l.issues);continue}let o=new Set(s.timelines.map(l=>l.id)),f=N(s,n.kind,{timeline_id:e()?.id,...n.args??{}});r.push(f.summary);let m=s.timelines.find(l=>!o.has(l.id)&&l.kind!=="compound");m&&(s.timelines=z(s,m).timelines)}let t=e();if(!t)throw new Error("nothing to write: the operations left no timeline");return t.name=a??(i.length===1?`${t.name}_${i[0].kind.toUpperCase()}`:`${t.name}_EDIT`),{session:z(s,t),lines:r,issues:c}}export{T as bindAtRecordedPaths,V as changes,L as editSession,re as hostEdit,se as hostRelink,H as premiereSession,I as probeRefs,W as rasterRatios,z as withNests,ie as withOfflineReference,Z as withPremiereTimecodes};
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{f as a,g as b,h as c,i as d,j as e}from"./chunk-MWDF2R26.js";import"./chunk-623EA3TK.js";import"./chunk-TXQR2HI2.js";import"./chunk-QVH44I66.js";import"./chunk-5BSXYKLN.js";import"./chunk-PFISREY4.js";import"./chunk-JV7TZDKJ.js";import"./chunk-VIBEEWPC.js";import"./chunk-PFZVET7S.js";import"./chunk-6V4OEOOX.js";import"./chunk-RGMTLNMF.js";import"./chunk-D4WPRRBT.js";import"./chunk-WN53ARHJ.js";import"./chunk-A7FNR3T5.js";import"./chunk-J2JXLEAI.js";import"./chunk-SGLQY53R.js";import"./chunk-DKGGJM6Z.js";import"./chunk-AMRJXYL4.js";import"./chunk-3D3Z4TBR.js";import"./chunk-2BPR6LK6.js";import"./chunk-NU3X7P4N.js";import"./chunk-RJ6JA2LZ.js";import"./chunk-XCKQHL4G.js";import"./chunk-PHAMF4JF.js";import"./chunk-PLRB2YXJ.js";import"./chunk-C2ESM27Z.js";import"./chunk-PSANHDZM.js";export{a as AVID_SETUP,b as FLAME_SETUP,c as NUKE_SETUP,e as adapter,d as setAdapter};
@@ -1,9 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import"./chunk-PSANHDZM.js";function wt(_,n){return new Promise(e=>{_.addEventListener("message",function o({data:a}){a?.type===n&&(_.removeEventListener("message",o),e(a))})})}wt(self,"wasm_bindgen_worker_init").then(async({init:_,receiver:n})=>{let e=await import("./media_core-YZ3PABEG.js");await e.default(_),postMessage({type:"wasm_bindgen_worker_ready"}),e.wbg_rayon_start_worker(n)});var Tt;async function bt(_,n,e){if(e.numThreads()===0)throw new Error("num_threads must be > 0.");let o={type:"wasm_bindgen_worker_init",init:{module_or_path:_,memory:n},receiver:e.receiver()};Tt=await Promise.all(Array.from({length:e.numThreads()},async()=>{let a=new Worker(new URL("./workerHelpers.js",import.meta.url),{type:"module"});return a.postMessage(o),await wt(a,"wasm_bindgen_worker_ready"),a})),e.build()}var et=class{__destroy_into_raw(){let n=this.__wbg_ptr;return this.__wbg_ptr=0,ft.unregister(this),n}free(){let n=this.__destroy_into_raw();t.__wbg_exrbench_free(n,0)}block_rows(){return t.exrbench_block_rows(this.__wbg_ptr)>>>0}f32_to_half_block(){return t.exrbench_f32_to_half_block(this.__wbg_ptr)}n_blocks(){return t.exrbench_n_blocks(this.__wbg_ptr)>>>0}constructor(n,e,o,a){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=y(a,t.__wbindgen_export4,t.__wbindgen_export5),w=p;t.exrbench_new(s,n,e,o,g,w);var c=r().getInt32(s+0,!0),i=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0);if(d)throw u(i);return this.__wbg_ptr=c,ft.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}piz_stage_block(n){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.exrbench_piz_stage_block(c,this.__wbg_ptr,n);var e=r().getFloat64(c+0,!0),o=r().getInt32(c+8,!0),a=r().getInt32(c+12,!0);if(a)throw u(o);return e}finally{t.__wbindgen_add_to_stack_pointer(16)}}staging_f32_ptr(){return t.exrbench_staging_f32_ptr(this.__wbg_ptr)>>>0}staging_f32_samples(){return t.exrbench_staging_f32_samples(this.__wbg_ptr)>>>0}staging_half_len(){return t.exrbench_staging_half_len(this.__wbg_ptr)>>>0}staging_half_ptr(){return t.exrbench_staging_half_ptr(this.__wbg_ptr)>>>0}zip_stage_block(n){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.exrbench_zip_stage_block(c,this.__wbg_ptr,n);var e=r().getFloat64(c+0,!0),o=r().getInt32(c+8,!0),a=r().getInt32(c+12,!0);if(a)throw u(o);return e}finally{t.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(et.prototype[Symbol.dispose]=et.prototype.free);var nt=class{__destroy_into_raw(){let n=this.__wbg_ptr;return this.__wbg_ptr=0,vt.unregister(this),n}free(){let n=this.__destroy_into_raw();t.__wbg_exrstreamencoder_free(n,0)}block_rows(){return t.exrstreamencoder_block_rows(this.__wbg_ptr)>>>0}finish(){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_finish(i,this.__wbg_ptr);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}header(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_header(a,this.__wbg_ptr);var n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}n_blocks(){return t.exrstreamencoder_n_blocks(this.__wbg_ptr)>>>0}constructor(n,e,o,a,c,i,d,s,g,w){try{let I=t.__wbindgen_add_to_stack_pointer(-16),k=y(o,t.__wbindgen_export4,t.__wbindgen_export5),A=p,F=y(a,t.__wbindgen_export4,t.__wbindgen_export5),R=p,z=y(c,t.__wbindgen_export4,t.__wbindgen_export5),M=p,T=y(i,t.__wbindgen_export4,t.__wbindgen_export5),U=p,O=y(s,t.__wbindgen_export4,t.__wbindgen_export5),q=p;t.exrstreamencoder_new(I,n,e,k,A,F,R,z,M,T,U,d,O,q,g,w);var b=r().getInt32(I+0,!0),x=r().getInt32(I+4,!0),m=r().getInt32(I+8,!0);if(m)throw u(x);return this.__wbg_ptr=b,vt.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_block(n){try{let d=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_push_block(d,this.__wbg_ptr,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}rows_remaining(){return t.exrstreamencoder_rows_remaining(this.__wbg_ptr)>>>0}staging_ptr(){return t.exrstreamencoder_staging_ptr(this.__wbg_ptr)>>>0}staging_samples(){return t.exrstreamencoder_staging_samples(this.__wbg_ptr)>>>0}};Symbol.dispose&&(nt.prototype[Symbol.dispose]=nt.prototype.free);var rt=class{__destroy_into_raw(){let n=this.__wbg_ptr;return this.__wbg_ptr=0,xt.unregister(this),n}free(){let n=this.__destroy_into_raw();t.__wbg_proresbench_free(n,0)}constructor(n,e,o,a){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=y(o,t.__wbindgen_export4,t.__wbindgen_export5),w=p;t.proresbench_new(s,n,e,g,w,a);var c=r().getInt32(s+0,!0),i=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0);if(d)throw u(i);return this.__wbg_ptr=c,xt.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}stage(n){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.proresbench_stage(c,this.__wbg_ptr,n);var e=r().getFloat64(c+0,!0),o=r().getInt32(c+8,!0),a=r().getInt32(c+12,!0);if(a)throw u(o);return e}finally{t.__wbindgen_add_to_stack_pointer(16)}}staging_len(){return t.proresbench_staging_len(this.__wbg_ptr)>>>0}staging_ptr(){return t.proresbench_staging_ptr(this.__wbg_ptr)>>>0}};Symbol.dispose&&(rt.prototype[Symbol.dispose]=rt.prototype.free);var _t=class{__destroy_into_raw(){let n=this.__wbg_ptr;return this.__wbg_ptr=0,It.unregister(this),n}free(){let n=this.__destroy_into_raw();t.__wbg_proresmovencoder_free(n,0)}add_frame_rgba(n){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(n,t.__wbindgen_export4),i=p;t.proresmovencoder_add_frame_rgba(a,this.__wbg_ptr,c,i);var e=r().getInt32(a+0,!0),o=r().getInt32(a+4,!0);if(o)throw u(e)}finally{t.__wbindgen_add_to_stack_pointer(16)}}finish(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovencoder_finish(a,this.__wbg_ptr);var n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}frame_count(){return t.proresmovencoder_frame_count(this.__wbg_ptr)>>>0}constructor(n,e,o,a){let c=t.proresmovencoder_new(n,e,o,a);return this.__wbg_ptr=c,It.register(this,this.__wbg_ptr,this),this}set_alpha(n){t.proresmovencoder_set_alpha(this.__wbg_ptr,n)}set_bitrate_mbps(n){t.proresmovencoder_set_bitrate_mbps(this.__wbg_ptr,n)}set_qscale(n){t.proresmovencoder_set_qscale(this.__wbg_ptr,n)}};Symbol.dispose&&(_t.prototype[Symbol.dispose]=_t.prototype.free);var ot=class{__destroy_into_raw(){let n=this.__wbg_ptr;return this.__wbg_ptr=0,yt.unregister(this),n}free(){let n=this.__destroy_into_raw();t.__wbg_proresmovwriter_free(n,0)}finish(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_finish(a,this.__wbg_ptr);var n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}frame_count(){return t.proresmovwriter_frame_count(this.__wbg_ptr)>>>0}header(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_header(a,this.__wbg_ptr);var n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}mdat_box_header(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_mdat_box_header(a,this.__wbg_ptr);var n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}mdat_box_offset(){return t.proresmovwriter_mdat_box_offset(this.__wbg_ptr)}constructor(n,e,o,a){let c=t.proresmovwriter_new(n,e,o,a);return this.__wbg_ptr=c,yt.register(this,this.__wbg_ptr,this),this}push_frame(){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_push_frame(i,this.__wbg_ptr);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_sample(n){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(n,t.__wbindgen_export4),i=p;t.proresmovwriter_push_sample(a,this.__wbg_ptr,c,i);var e=r().getInt32(a+0,!0),o=r().getInt32(a+4,!0);if(o)throw u(e)}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_sample_len(n){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_push_sample_len(a,this.__wbg_ptr,n);var e=r().getInt32(a+0,!0),o=r().getInt32(a+4,!0);if(o)throw u(e)}finally{t.__wbindgen_add_to_stack_pointer(16)}}reserve_large_mdat(n){t.proresmovwriter_reserve_large_mdat(this.__wbg_ptr,n)}set_alpha(n){t.proresmovwriter_set_alpha(this.__wbg_ptr,n)}set_bitrate_mbps(n){t.proresmovwriter_set_bitrate_mbps(this.__wbg_ptr,n)}set_par(n,e){t.proresmovwriter_set_par(this.__wbg_ptr,n,e)}set_profile(n){let e=y(n,t.__wbindgen_export4,t.__wbindgen_export5),o=p;t.proresmovwriter_set_profile(this.__wbg_ptr,e,o)}set_qscale(n){t.proresmovwriter_set_qscale(this.__wbg_ptr,n)}set_start_timecode(n,e){t.proresmovwriter_set_start_timecode(this.__wbg_ptr,n,e)}staging_len(){return t.proresmovwriter_staging_len(this.__wbg_ptr)>>>0}staging_ptr(){return t.proresmovwriter_staging_ptr(this.__wbg_ptr)>>>0}total_len(){return t.proresmovwriter_total_len(this.__wbg_ptr)}};Symbol.dispose&&(ot.prototype[Symbol.dispose]=ot.prototype.free);function Nt(_){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(_,t.__wbindgen_export4),d=p;t.arriraw12_clip_info(c,i,d);var o=r().getInt32(c+0,!0),a=r().getInt32(c+4,!0);return n=o,e=a,j(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function Gt(_,n,e,o){var a=E(o)?0:y(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p;let i=t.arriraw_mxf_gpu_frame(v(_),n,e,a,c);return u(i)}function Xt(_,n,e){let o=t.audio_aac_au(v(_),n,e);return u(o)}function Yt(_,n){let e=t.audio_aac_config(v(_),n);return u(e)}function Jt(_,n){let e=t.audio_info(v(_),n);return u(e)}function Kt(_){let n=it(_,t.__wbindgen_export4),e=p;return t.bench_f32_boundary(n,e)}function Qt(_,n,e,o){let a=it(_,t.__wbindgen_export4),c=p;return t.bench_piz_no_huffman(a,c,n,e,o)}function Zt(_,n){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=y(_,t.__wbindgen_export4,t.__wbindgen_export5),s=p;var e=it(n,t.__wbindgen_export4),o=p;t.color_cst(i,d,s,e,o,v(n));var a=r().getInt32(i+0,!0),c=r().getInt32(i+4,!0);if(c)throw u(a)}finally{t.__wbindgen_add_to_stack_pointer(16)}}function $t(_,n,e){let o=W(_,t.__wbindgen_export4),a=p;return t.dci_code_full_depth(o,a,n,e)}function te(_,n,e){return t.dci_frame_cap(_,n,e)>>>0}function ee(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p,w=y(n,t.__wbindgen_export4,t.__wbindgen_export5),b=p;t.dci_gpu_colour_patch(d,s,g,w,b);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=ut(e,o).slice();return t.__wbindgen_export3(e,o*2,2),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ne(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=y(_,t.__wbindgen_export4,t.__wbindgen_export5),s=p;t.dci_gpu_colour_tables(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function re(){try{let o=t.__wbindgen_add_to_stack_pointer(-16);t.dci_last_pass_caps(o);var _=r().getInt32(o+0,!0),n=r().getInt32(o+4,!0),e=$(_,n).slice();return t.__wbindgen_export3(_,n*4,4),e}finally{t.__wbindgen_add_to_stack_pointer(16)}}function _e(_,n){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.dci_legal_rates(c,_,n);var e=r().getInt32(c+0,!0),o=r().getInt32(c+4,!0),a=$(e,o).slice();return t.__wbindgen_export3(e,o*4,4),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function oe(_){return t.dci_mq_bench(_)>>>0}function ie(_,n,e,o,a,c,i,d,s,g,w){try{let A=t.__wbindgen_add_to_stack_pointer(-16),F=S(_,t.__wbindgen_export4),R=p,z=l(n,t.__wbindgen_export4),M=p,T=S(e,t.__wbindgen_export4),U=p,O=S(o,t.__wbindgen_export4),q=p,P=S(a,t.__wbindgen_export4),B=p,at=S(c,t.__wbindgen_export4),ct=p,dt=S(i,t.__wbindgen_export4),st=p,zt=S(d,t.__wbindgen_export4),Wt=p;t.dci_pack_tier1(A,F,R,z,M,T,U,O,q,P,B,at,ct,dt,st,zt,Wt,s,g,w);var b=r().getInt32(A+0,!0),x=r().getInt32(A+4,!0),m=r().getInt32(A+8,!0),I=r().getInt32(A+12,!0);if(I)throw u(m);var k=f(b,x).slice();return t.__wbindgen_export3(b,x*1,1),k}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ae(_,n){let e=t.dci_stage_rgba8(_,n);return u(e)}function ce(_,n,e){let o=W(_,t.__wbindgen_export4),a=p;return t.dci_transform_only(o,a,n,e)}function de(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p,w=l(n,t.__wbindgen_export4),b=p;t.decode_arriraw12_luma(d,s,g,w,b);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function se(_,n,e,o){let a=y(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_arriraw12_mxf(v(_),n,e,a,c);return u(i)}function pe(_,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(_,t.__wbindgen_export4),w=p,b=l(n,t.__wbindgen_export4),x=p;t.decode_arriraw12_preview(s,g,w,b,x,e);var o=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0),i=r().getInt32(s+12,!0);if(i)throw u(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ge(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p,w=l(n,t.__wbindgen_export4),b=p;t.decode_arriraw12_rgba(d,s,g,w,b);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ue(_,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(_,t.__wbindgen_export4),w=p;t.decode_arriraw_luma(s,g,w,n,e);var o=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0),i=r().getInt32(s+12,!0);if(i)throw u(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function we(_,n,e,o){let a=y(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_arriraw_mxf(v(_),n,e,a,c);return u(i)}function be(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(_,t.__wbindgen_export4),b=p;t.decode_arriraw_preview(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function le(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(_,t.__wbindgen_export4),b=p;t.decode_arriraw_preview_gray(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function fe(_,n,e,o,a,c,i,d,s){try{let A=t.__wbindgen_add_to_stack_pointer(-16),F=l(_,t.__wbindgen_export4),R=p;var g=E(s)?0:J(s,t.__wbindgen_export4),w=p;t.decode_arriraw_preview_meta(A,F,R,n,e,o,a,c,i,d,g,w);var b=r().getInt32(A+0,!0),x=r().getInt32(A+4,!0),m=r().getInt32(A+8,!0),I=r().getInt32(A+12,!0);if(I)throw u(m);var k=f(b,x).slice();return t.__wbindgen_export3(b,x*1,1),k}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ve(_,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(_,t.__wbindgen_export4),w=p;t.decode_arriraw_rgba(s,g,w,n,e);var o=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0),i=r().getInt32(s+12,!0);if(i)throw u(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function xe(_,n,e,o,a,c,i,d){try{let k=t.__wbindgen_add_to_stack_pointer(-16),A=l(_,t.__wbindgen_export4),F=p;var s=E(d)?0:J(d,t.__wbindgen_export4),g=p;t.decode_arriraw_rgba_meta(k,A,F,n,e,o,a,c,i,s,g);var w=r().getInt32(k+0,!0),b=r().getInt32(k+4,!0),x=r().getInt32(k+8,!0),m=r().getInt32(k+12,!0);if(m)throw u(x);var I=f(w,b).slice();return t.__wbindgen_export3(w,b*1,1),I}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ie(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_arw_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ye(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_arw_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function me(_,n,e,o){let a=t.decode_audio_pcm(v(_),n,e,o);return u(a)}function he(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_bmp_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ke(_){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(_,t.__wbindgen_export4),i=p;t.decode_braw_gen5log(a,c,i);var n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ae(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_braw_luma(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Fe(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_braw_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function je(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_braw_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Me(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_cr2_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Re(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_cr2_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ze(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_cr3_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function We(_,n,e,o){let a=y(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_crm(v(_),n,e,a,c);return u(i)}function Te(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_dng_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Se(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_dng_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ue(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_dpx_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Oe(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_dpx_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Le(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_dv_luma(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function qe(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_dv_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ee(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_dv_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function De(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_exr_linear(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Pe(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_exr_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Be(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_exr_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ce(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_gif_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ve(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_heic_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function He(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_j2k_luma(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ne(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_j2k_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ge(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_j2k_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Xe(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_jpeg_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ye(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_mpeg2_luma(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Je(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_mpeg2_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ke(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_mpeg2_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Qe(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_png_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ze(_,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(_,t.__wbindgen_export4),w=p;t.decode_prores_band_rgba(s,g,w,n,e);var o=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0),i=r().getInt32(s+12,!0);if(i)throw u(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function $e(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_prores_luma(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function tn(_,n,e,o){let a=y(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_prores_mxf(v(_),n,e,a,c);return u(i)}function en(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_prores_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function nn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_prores_raw_acescct(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function rn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_prores_raw_luma(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function _n(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_prores_raw_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function on(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_prores_raw_rec2020(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function an(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_prores_raw_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function cn(_,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(_,t.__wbindgen_export4),w=p,b=y(n,t.__wbindgen_export4,t.__wbindgen_export5),x=p,m=l(e,t.__wbindgen_export4),I=p;t.decode_prores_raw_tier(s,g,w,b,x,m,I);var o=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0),i=r().getInt32(s+12,!0);if(i)throw u(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function dn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_prores_rgb16(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function sn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_prores_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function pn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_prores_thumb_dc32(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function gn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_psd_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function un(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_r3d_luma(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function wn(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_r3d_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function bn(_,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(_,t.__wbindgen_export4),w=p,b=l(n,t.__wbindgen_export4),x=p;t.decode_r3d_preview_clip(s,g,w,b,x,e);var o=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0),i=r().getInt32(s+12,!0);if(i)throw u(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ln(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_r3d_rgb16(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function fn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_r3d_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function vn(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p,w=l(n,t.__wbindgen_export4),b=p;t.decode_r3d_rgba_clip(d,s,g,w,b);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function xn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_tga_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function In(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_tiff_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function yn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_tiff_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function mn(_,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(_,t.__wbindgen_export4),w=p;t.decode_vc3_band_rgba(s,g,w,n,e);var o=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0),i=r().getInt32(s+12,!0);if(i)throw u(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function hn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_vc3_luma(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function kn(_,n,e,o){let a=y(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_vc3_mxf(v(_),n,e,a,c);return u(i)}function An(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_vc3_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Fn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_vc3_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function jn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_webp_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Mn(_){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(_,t.__wbindgen_export4),i=p;t.decode_xocn_index_luma(a,c,i);var n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Rn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_xocn_luma(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function zn(_,n,e,o){let a=y(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_xocn_mxf(v(_),n,e,a,c);return u(i)}function Wn(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_xocn_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Tn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_xocn_preview_rec709(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Sn(_){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(_,t.__wbindgen_export4),i=p;t.decode_xocn_rgb16(a,c,i);var n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Un(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_xocn_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function On(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=W(_,t.__wbindgen_export4),b=p;t.encode_dci_j2c(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ln(_,n,e,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=W(_,t.__wbindgen_export4),m=p,I=y(e,t.__wbindgen_export4,t.__wbindgen_export5),k=p;t.encode_dci_j2c_rgb(b,x,m,n,I,k,o,a,c);var i=r().getInt32(b+0,!0),d=r().getInt32(b+4,!0),s=r().getInt32(b+8,!0),g=r().getInt32(b+12,!0);if(g)throw u(s);var w=f(i,d).slice();return t.__wbindgen_export3(i,d*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function qn(_,n,e,o,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(_,t.__wbindgen_export4),x=p,m=y(n,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.encode_dci_j2c_rgba8(w,b,x,m,I,e,o,a);var c=r().getInt32(w+0,!0),i=r().getInt32(w+4,!0),d=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function En(_,n,e,o,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=y(o,t.__wbindgen_export4,t.__wbindgen_export5),x=p;t.encode_dci_j2c_staged(w,_,n,e,b,x,a);var c=r().getInt32(w+0,!0),i=r().getInt32(w+4,!0),d=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Dn(_,n,e,o,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=y(o,t.__wbindgen_export4,t.__wbindgen_export5),x=p;t.encode_dci_j2c_staged_modelled(w,_,n,e,b,x,a);var c=r().getInt32(w+0,!0),i=r().getInt32(w+4,!0),d=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Pn(_,n,e,o,a,c,i,d,s,g,w,b,x,m,I){try{let M=t.__wbindgen_add_to_stack_pointer(-16),T=it(_,t.__wbindgen_export4),U=p,O=y(a,t.__wbindgen_export4,t.__wbindgen_export5),q=p,P=y(c,t.__wbindgen_export4,t.__wbindgen_export5),B=p,at=y(i,t.__wbindgen_export4,t.__wbindgen_export5),ct=p,dt=y(x,t.__wbindgen_export4,t.__wbindgen_export5),st=p;t.encode_exr(M,T,U,n,e,o,O,q,P,B,at,ct,d,s,g,w,b,dt,st,m,I);var k=r().getInt32(M+0,!0),A=r().getInt32(M+4,!0),F=r().getInt32(M+8,!0),R=r().getInt32(M+12,!0);if(R)throw u(F);var z=f(k,A).slice();return t.__wbindgen_export3(k,A*1,1),z}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Bn(_,n,e,o,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(_,t.__wbindgen_export4),x=p;t.encode_prores_4444_alpha_mov_rgba(w,b,x,n,e,o,a);var c=r().getInt32(w+0,!0),i=r().getInt32(w+4,!0),d=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Cn(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(_,t.__wbindgen_export4),b=p;t.encode_prores_4444_alpha_sample_q(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Vn(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(_,t.__wbindgen_export4),b=p;t.encode_prores_444_sample_cbr(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Hn(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=W(_,t.__wbindgen_export4),b=p;t.encode_prores_444_sample_cbr_rgb16(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Nn(_,n,e,o,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=W(_,t.__wbindgen_export4),x=p,m=W(a,t.__wbindgen_export4),I=p;t.encode_prores_444_sample_cbr_rgb16_lut(w,b,x,n,e,o,m,I);var c=r().getInt32(w+0,!0),i=r().getInt32(w+4,!0),d=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Gn(_,n,e,o,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(_,t.__wbindgen_export4),x=p;t.encode_prores_mov_rgba(w,b,x,n,e,o,a);var c=r().getInt32(w+0,!0),i=r().getInt32(w+4,!0),d=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Xn(_,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(_,t.__wbindgen_export4),w=p;t.encode_prores_rgba(s,g,w,n,e);var o=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0),i=r().getInt32(s+12,!0);if(i)throw u(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Yn(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(_,t.__wbindgen_export4),b=p;t.encode_prores_sample_cbr(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Jn(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=W(_,t.__wbindgen_export4),b=p;t.encode_prores_sample_cbr_rgb16(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Kn(_,n,e,o,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=W(_,t.__wbindgen_export4),x=p,m=W(a,t.__wbindgen_export4),I=p;t.encode_prores_sample_cbr_rgb16_lut(w,b,x,n,e,o,m,I);var c=r().getInt32(w+0,!0),i=r().getInt32(w+4,!0),d=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Qn(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(_,t.__wbindgen_export4),b=p;t.encode_prores_sample_q(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Zn(_,n,e,o){let a,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=y(_,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.exr_sequence_filename(x,m,I,n,e,o);var i=r().getInt32(x+0,!0),d=r().getInt32(x+4,!0),s=r().getInt32(x+8,!0),g=r().getInt32(x+12,!0),w=i,b=d;if(g)throw w=0,b=0,u(s);return a=w,c=b,j(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,c,1)}}function $n(_,n,e,o,a,c,i,d){let s,g;try{let A=t.__wbindgen_add_to_stack_pointer(-16),F=l(_,t.__wbindgen_export4),R=p,z=l(o,t.__wbindgen_export4),M=p,T=y(d,t.__wbindgen_export4,t.__wbindgen_export5),U=p;t.fit_sizing(A,F,R,n,e,z,M,a,c,i,T,U);var w=r().getInt32(A+0,!0),b=r().getInt32(A+4,!0),x=r().getInt32(A+8,!0),m=r().getInt32(A+12,!0),I=w,k=b;if(m)throw I=0,k=0,u(x);return s=I,g=k,j(I,k)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(s,g,1)}}function tr(_){let n=t.initThreadPool(_);return u(n)}function er(_){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(_,t.__wbindgen_export4),d=p;t.inspect_arw(c,i,d);var o=r().getInt32(c+0,!0),a=r().getInt32(c+4,!0);return n=o,e=a,j(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function nr(_){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(_,t.__wbindgen_export4),d=p;t.inspect_cr2(c,i,d);var o=r().getInt32(c+0,!0),a=r().getInt32(c+4,!0);return n=o,e=a,j(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function rr(_){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(_,t.__wbindgen_export4),d=p;t.inspect_cr3(c,i,d);var o=r().getInt32(c+0,!0),a=r().getInt32(c+4,!0);return n=o,e=a,j(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function _r(_){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(_,t.__wbindgen_export4),d=p;t.inspect_dng(c,i,d);var o=r().getInt32(c+0,!0),a=r().getInt32(c+4,!0);return n=o,e=a,j(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function or(_){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(_,t.__wbindgen_export4),d=p;t.inspect_dpx(c,i,d);var o=r().getInt32(c+0,!0),a=r().getInt32(c+4,!0);return n=o,e=a,j(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function ir(_){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(_,t.__wbindgen_export4),d=p;t.inspect_exr(c,i,d);var o=r().getInt32(c+0,!0),a=r().getInt32(c+4,!0);return n=o,e=a,j(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function ar(_,n,e){let o=y(e,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.inspect_isobmff(v(_),n,o,a);return u(c)}function cr(_){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(_,t.__wbindgen_export4),d=p;t.inspect_tiff(c,i,d);var o=r().getInt32(c+0,!0),a=r().getInt32(c+4,!0);return n=o,e=a,j(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function dr(_,n){let e=t.inspect_wav(v(_),n);return u(e)}function sr(_,n){let e=t.is_arriraw12_mxf(v(_),n);return u(e)}function pr(_,n){let e=t.is_arriraw_mxf(v(_),n);return u(e)}function gr(_,n){let e=t.is_crm(v(_),n);return u(e)}function ur(_,n){let e=t.is_prores_mxf(v(_),n);return u(e)}function wr(_,n){let e=t.is_vc3_mxf(v(_),n);return u(e)}function br(_,n){let e=t.is_xavc_mxf(v(_),n);return u(e)}function lr(_,n){let e=t.is_xocn_mxf(v(_),n);return u(e)}function fr(_,n,e){let o=y(e,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.list_isobmff_segments(v(_),n,o,a);return u(c)}function vr(_,n){let e=t.list_mxf_segments(v(_),n);return u(e)}function xr(_,n){let e=y(n,t.__wbindgen_export4,t.__wbindgen_export5),o=p,a=t.list_r3d_frames(v(_),e,o);return u(a)}function Ir(_,n){let e=y(n,t.__wbindgen_export4,t.__wbindgen_export5),o=p,a=t.list_r3d_segments(v(_),e,o);return u(a)}function yr(_,n){let e=t.list_wav_segments(v(_),n);return u(e)}function mr(_,n,e,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(_,t.__wbindgen_export4),m=p,I=S(n,t.__wbindgen_export4),k=p;t.mux_prores_4444_alpha_samples(b,x,m,I,k,e,o,a,c);var i=r().getInt32(b+0,!0),d=r().getInt32(b+4,!0),s=r().getInt32(b+8,!0),g=r().getInt32(b+12,!0);if(g)throw u(s);var w=f(i,d).slice();return t.__wbindgen_export3(i,d*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function hr(_,n,e,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(_,t.__wbindgen_export4),m=p,I=S(n,t.__wbindgen_export4),k=p;t.mux_prores_samples(b,x,m,I,k,e,o,a,c);var i=r().getInt32(b+0,!0),d=r().getInt32(b+4,!0),s=r().getInt32(b+8,!0),g=r().getInt32(b+12,!0);if(g)throw u(s);var w=f(i,d).slice();return t.__wbindgen_export3(i,d*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function kr(_,n,e,o,a,c,i,d,s,g,w,b){try{let F=t.__wbindgen_add_to_stack_pointer(-16),R=l(_,t.__wbindgen_export4),z=p,M=S(n,t.__wbindgen_export4),T=p,U=y(i,t.__wbindgen_export4,t.__wbindgen_export5),O=p;t.mux_prores_samples_full(F,R,z,M,T,e,o,a,c,U,O,d,s,g,w,b);var x=r().getInt32(F+0,!0),m=r().getInt32(F+4,!0),I=r().getInt32(F+8,!0),k=r().getInt32(F+12,!0);if(k)throw u(I);var A=f(x,m).slice();return t.__wbindgen_export3(x,m*1,1),A}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ar(_,n,e,o){let a=t.mxf_au_run(v(_),n,e,o);return u(a)}function Fr(_,n){let e=t.mxf_frame_index(v(_),n);return u(e)}function jr(_,n){let e=t.mxf_gop_map(v(_),n);return u(e)}function Mr(_,n){let e=t.mxf_h264_kind(v(_),n);return u(e)}function Rr(_,n){let e,o;try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(_,t.__wbindgen_export4),x=p,m=y(n,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.plan_isobmff_trim(w,b,x,m,I);var a=r().getInt32(w+0,!0),c=r().getInt32(w+4,!0),i=r().getInt32(w+8,!0),d=r().getInt32(w+12,!0),s=a,g=c;if(d)throw s=0,g=0,u(i);return e=s,o=g,j(s,g)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,o,1)}}function zr(_,n,e,o,a){let c=y(a,t.__wbindgen_export4,t.__wbindgen_export5),i=p,d=t.plan_isobmff_trim_reader(v(_),n,e,o,c,i);return u(d)}function Wr(_){let n,e;try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=y(_,t.__wbindgen_export4,t.__wbindgen_export5),b=p;t.plan_mxf_compact_trim(g,w,b);var o=r().getInt32(g+0,!0),a=r().getInt32(g+4,!0),c=r().getInt32(g+8,!0),i=r().getInt32(g+12,!0),d=o,s=a;if(i)throw d=0,s=0,u(c);return n=d,e=s,j(d,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function Tr(_,n,e,o){let a=t.plan_mxf_trim(v(_),n,e,o);return u(a)}function Sr(_,n,e,o,a,c,i,d){let s,g;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=l(_,t.__wbindgen_export4),I=p,k=l(n,t.__wbindgen_export4),A=p,F=l(e,t.__wbindgen_export4),R=p,z=l(o,t.__wbindgen_export4),M=p,T=J(a,t.__wbindgen_export4),U=p,O=J(c,t.__wbindgen_export4),q=p,P=J(i,t.__wbindgen_export4),B=p;t.plan_r3d_compact(x,m,I,k,A,F,R,z,M,T,U,O,q,P,B,d);var w=r().getInt32(x+0,!0),b=r().getInt32(x+4,!0);return s=w,g=b,j(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(s,g,1)}}function Ur(_,n,e,o){let a,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=l(_,t.__wbindgen_export4),I=p;t.plan_wav_trim(x,m,I,n,e,o);var i=r().getInt32(x+0,!0),d=r().getInt32(x+4,!0),s=r().getInt32(x+8,!0),g=r().getInt32(x+12,!0),w=i,b=d;if(g)throw w=0,b=0,u(s);return a=w,c=b,j(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,c,1)}}function Or(_,n,e,o,a){let c=t.plan_wav_trim_reader(v(_),n,e,o,a);return u(c)}function Lr(_,n,e,o){let a=y(e,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=y(o,t.__wbindgen_export4,t.__wbindgen_export5),d=p,s=t.prepare_isobmff(v(_),n,a,c,i,d);return u(s)}function qr(_,n,e){let o=y(e,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.prepare_mxf(v(_),n,o,a);return u(c)}function Er(_,n,e){let o=y(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=y(e,t.__wbindgen_export4,t.__wbindgen_export5),i=p,d=t.prepare_r3d(v(_),o,a,c,i);return u(d)}function Dr(_,n,e,o){let a=y(e,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.prepare_wav(v(_),n,a,c,o);return u(i)}function Pr(_){let n,e;try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(_,t.__wbindgen_export4),b=p;t.probe_mov(g,w,b);var o=r().getInt32(g+0,!0),a=r().getInt32(g+4,!0),c=r().getInt32(g+8,!0),i=r().getInt32(g+12,!0),d=o,s=a;if(i)throw d=0,s=0,u(c);return n=d,e=s,j(d,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function Br(_,n){let e=t.probe_mxf(v(_),n);return u(e)}function Cr(_,n){let e=y(n,t.__wbindgen_export4,t.__wbindgen_export5),o=p,a=t.probe_r3d(v(_),e,o);return u(a)}function Vr(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.prores_band_info(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=$(n,e).slice();return t.__wbindgen_export3(n,e*4,4),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Hr(_){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(_,t.__wbindgen_export4),i=p;t.prores_raw_container_color(a,c,i);var n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Nr(){t.prores_reset_rate_control()}function Gr(_){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(_,t.__wbindgen_export4),i=p;t.r3d_gpu_develop_params(a,c,i);var n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Xr(_,n,e){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.r3d_index_ranges(i,d,s,n,e);var o=r().getInt32(i+0,!0),a=r().getInt32(i+4,!0),c=$(o,a).slice();return t.__wbindgen_export3(o,a*4,4),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Yr(_){let n=l(_,t.__wbindgen_export4),e=p;return t.r3d_is_helium(n,e)!==0}function Jr(_){let n,e;try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(_,t.__wbindgen_export4),b=p;t.read_arriraw_fcs(g,w,b);var o=r().getInt32(g+0,!0),a=r().getInt32(g+4,!0),c=r().getInt32(g+8,!0),i=r().getInt32(g+12,!0),d=o,s=a;if(i)throw d=0,s=0,u(c);return n=d,e=s,j(d,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function Kr(_,n){try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(_,t.__wbindgen_export4),d=p;t.read_arriraw_unit_correction(c,i,d,n);var e=r().getInt32(c+0,!0),o=r().getInt32(c+4,!0),a=qt(e,o).slice();return t.__wbindgen_export3(e,o*8,8),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Qr(_,n,e,o,a,c,i){let d,s;try{let k=t.__wbindgen_add_to_stack_pointer(-16),A=l(_,t.__wbindgen_export4),F=p,R=l(o,t.__wbindgen_export4),z=p,M=y(i,t.__wbindgen_export4,t.__wbindgen_export5),T=p;t.recover_reframe(k,A,F,n,e,R,z,a,c,M,T);var g=r().getInt32(k+0,!0),w=r().getInt32(k+4,!0),b=r().getInt32(k+8,!0),x=r().getInt32(k+12,!0),m=g,I=w;if(x)throw m=0,I=0,u(b);return d=m,s=I,j(m,I)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(d,s,1)}}function Zr(_,n,e,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=W(_,t.__wbindgen_export4),m=p,I=y(c,t.__wbindgen_export4,t.__wbindgen_export5),k=p;t.resample_rgba16(b,x,m,n,e,o,a,I,k);var i=r().getInt32(b+0,!0),d=r().getInt32(b+4,!0),s=r().getInt32(b+8,!0),g=r().getInt32(b+12,!0);if(g)throw u(s);var w=ut(i,d).slice();return t.__wbindgen_export3(i,d*2,2),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function $r(_,n,e,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(_,t.__wbindgen_export4),m=p,I=y(c,t.__wbindgen_export4,t.__wbindgen_export5),k=p;t.resample_rgba8(b,x,m,n,e,o,a,I,k);var i=r().getInt32(b+0,!0),d=r().getInt32(b+4,!0),s=r().getInt32(b+8,!0),g=r().getInt32(b+12,!0);if(g)throw u(s);var w=f(i,d).slice();return t.__wbindgen_export3(i,d*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function t_(){t.reset_dci_rate_state()}function e_(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(_,t.__wbindgen_export4),b=p;t.resize_luma_area(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function n_(_,n,e,o,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(_,t.__wbindgen_export4),x=p,m=y(a,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.rgba8_to_xyz12(w,b,x,n,e,o,m,I);var c=r().getInt32(w+0,!0),i=r().getInt32(w+4,!0),d=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(d);var g=ut(c,i).slice();return t.__wbindgen_export3(c,i*2,2),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function r_(_,n,e,o){let a,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=W(_,t.__wbindgen_export4),I=p,k=l(n,t.__wbindgen_export4),A=p,F=S(e,t.__wbindgen_export4),R=p,z=y(o,t.__wbindgen_export4,t.__wbindgen_export5),M=p;t.shot_crop(x,m,I,k,A,F,R,z,M);var i=r().getInt32(x+0,!0),d=r().getInt32(x+4,!0),s=r().getInt32(x+8,!0),g=r().getInt32(x+12,!0),w=i,b=d;if(g)throw w=0,b=0,u(s);return a=w,c=b,j(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,c,1)}}function __(_,n,e){let o,a;try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=W(_,t.__wbindgen_export4),m=p,I=l(n,t.__wbindgen_export4),k=p,A=y(e,t.__wbindgen_export4,t.__wbindgen_export5),F=p;t.shot_ramp(b,x,m,I,k,A,F);var c=r().getInt32(b+0,!0),i=r().getInt32(b+4,!0),d=r().getInt32(b+8,!0),s=r().getInt32(b+12,!0),g=c,w=i;if(s)throw g=0,w=0,u(d);return o=g,a=w,j(g,w)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(o,a,1)}}function o_(_,n,e,o){let a,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=W(_,t.__wbindgen_export4),I=p,k=l(n,t.__wbindgen_export4),A=p,F=S(e,t.__wbindgen_export4),R=p,z=y(o,t.__wbindgen_export4,t.__wbindgen_export5),M=p;t.shot_scan(x,m,I,k,A,F,R,z,M);var i=r().getInt32(x+0,!0),d=r().getInt32(x+4,!0),s=r().getInt32(x+8,!0),g=r().getInt32(x+12,!0),w=i,b=d;if(g)throw w=0,b=0,u(s);return a=w,c=b,j(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,c,1)}}function i_(_,n,e,o){let a=y(n,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=y(e,t.__wbindgen_export4,t.__wbindgen_export5),d=p,s=y(o,t.__wbindgen_export4,t.__wbindgen_export5),g=p,w=t.trim_r3d(v(_),a,c,i,d,s,g);return u(w)}function a_(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.vc3_band_info(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=$(n,e).slice();return t.__wbindgen_export3(n,e*4,4),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function c_(_){t.video_close(_)}function d_(_,n,e,o){let a=t.video_decode(_,n,e,o);return u(a)}function s_(_,n,e){let o=y(e,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.video_frame_index_isobmff_reader(v(_),n,o,a);return u(c)}function p_(_,n){let e=t.video_open(v(_),n);return u(e)}var Z=class _{static __wrap(n){let e=Object.create(_.prototype);return e.__wbg_ptr=n,mt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let n=this.__wbg_ptr;return this.__wbg_ptr=0,mt.unregister(this),n}free(){let n=this.__destroy_into_raw();t.__wbg_wbg_rayon_poolbuilder_free(n,0)}build(){t.wbg_rayon_poolbuilder_build(this.__wbg_ptr)}numThreads(){return t.wbg_rayon_poolbuilder_numThreads(this.__wbg_ptr)>>>0}receiver(){return t.wbg_rayon_poolbuilder_receiver(this.__wbg_ptr)>>>0}};Symbol.dispose&&(Z.prototype[Symbol.dispose]=Z.prototype.free);function g_(_){t.wbg_rayon_start_worker(_)}function u_(_,n,e){let o=t.xavc_au(v(_),n,e);return u(o)}function w_(_,n){let e=t.xavc_frame_count(v(_),n);return u(e)}function b_(_,n){let e=t.xocn_frame_count(v(_),n);return u(e)}function l_(_){let n=l(_,t.__wbindgen_export4),e=p;return t.xocn_index_prefix_len(n,e)>>>0}function f_(_){let n=l(_,t.__wbindgen_export4),e=p;return t.xocn_preview_prefix_len(n,e)>>>0}function kt(_){return{__proto__:null,"./media_core_bg.js":{__proto__:null,__wbg___wbindgen_copy_to_typed_array_c5728021fabd0236:function(e,o,a){new Uint8Array(h(a).buffer,h(a).byteOffset,h(a).byteLength).set(f(e,o))},__wbg___wbindgen_is_function_acc5528be2b923f2:function(e){return typeof h(e)=="function"},__wbg___wbindgen_is_undefined_721f8decd50c87a3:function(e){return h(e)===void 0},__wbg___wbindgen_memory_9751d9a3017e7c25:function(){let e=t.memory;return v(e)},__wbg___wbindgen_module_f86f28f0f85995dd:function(){return v(Mt)},__wbg___wbindgen_rethrow_858623e73c3311dc:function(e){throw u(e)},__wbg___wbindgen_throw_ea4887a5f8f9a9db:function(e,o){throw new Error(j(e,o))},__wbg__wbg_cb_unref_33c39e13d73b25f6:function(e){h(e)._wbg_cb_unref()},__wbg_async_4ec36f08efecafdc:function(e){return h(e).async},__wbg_buffer_49b4f592d8036785:function(e){let o=h(e).buffer;return v(o)},__wbg_call_0e855b388e315e17:function(){return tt(function(e,o,a,c){let i=h(e).call(h(o),h(a),h(c));return v(i)},arguments)},__wbg_call_5575218572ead796:function(){return tt(function(e,o,a){let c=h(e).call(h(o),h(a));return v(c)},arguments)},__wbg_call_dd0f909cbc9405d0:function(){return tt(function(e,o,a,c,i){let d=h(e).call(h(o),h(a),h(c),h(i));return v(d)},arguments)},__wbg_data_23c14f7d1102d077:function(e){let o=h(e).data;return v(o)},__wbg_instanceof_Window_0d356b88a2f77c42:function(e){let o;try{o=h(e)instanceof Window}catch{o=!1}return o},__wbg_length_589238bdcf171f0e:function(e){return h(e).length},__wbg_new_476e05fb84d8e4f3:function(e){let o=new Int32Array(h(e));return v(o)},__wbg_new_81880fb5002cb255:function(e){let o=new Uint8Array(h(e));return v(o)},__wbg_new_f85beb941dc6d8aa:function(e,o){try{var a={a:e,b:o},c=(d,s)=>{let g=a.a;a.a=0;try{return lt(g,a.b,d,s)}finally{a.a=g}};let i=new Promise(c);return v(i)}finally{a.a=0}},__wbg_new_typed_00a409eb4ec4f2d9:function(e,o){try{var a={a:e,b:o},c=(d,s)=>{let g=a.a;a.a=0;try{return lt(g,a.b,d,s)}finally{a.a=g}};let i=new Promise(c);return v(i)}finally{a.a=0}},__wbg_new_worker_e68fc8188cc230b5:function(e,o){let a=new Worker(j(e,o));return v(a)},__wbg_of_8737c43050b5546e:function(e,o,a){let c=Array.of(h(e),h(o),h(a));return v(c)},__wbg_postMessage_0162be6e48cf631e:function(){return tt(function(e,o){h(e).postMessage(h(o))},arguments)},__wbg_prototypesetcall_d721637c7ca66eb8:function(e,o,a){Uint8Array.prototype.set.call(f(e,o),h(a))},__wbg_queueMicrotask_1c9b3800e321a967:function(e){let o=h(e).queueMicrotask;return v(o)},__wbg_queueMicrotask_311744e534a929a3:function(e){queueMicrotask(h(e))},__wbg_resolve_d82363d90af6928a:function(e){let o=Promise.resolve(h(e));return v(o)},__wbg_set_onmessage_d05709471e546dca:function(e,o){h(e).onmessage=h(o)},__wbg_startWorkers_8b582d57e92bd2d4:function(e,o,a){let c=bt(u(e),u(o),Z.__wrap(a));return v(c)},__wbg_static_accessor_GLOBAL_THIS_2fee5048bcca5938:function(){let e=typeof globalThis>"u"?null:globalThis;return E(e)?0:v(e)},__wbg_static_accessor_GLOBAL_ce44e66a4935da8c:function(){let e=typeof global>"u"?null:global;return E(e)?0:v(e)},__wbg_static_accessor_SELF_44f6e0cb5e67cdad:function(){let e=typeof self>"u"?null:self;return E(e)?0:v(e)},__wbg_static_accessor_WINDOW_168f178805d978fe:function(){let e=typeof window>"u"?null:window;return E(e)?0:v(e)},__wbg_then_05edfc8a4fea5106:function(e,o,a){let c=h(e).then(h(o),h(a));return v(c)},__wbg_then_591b6b3a75ee817a:function(e,o){let a=h(e).then(h(o));return v(a)},__wbg_then_c768c7c3e60c20ef:function(e,o){let a=h(e).then(h(o));return v(a)},__wbg_value_2f34afb824ffcd9a:function(e){let o=h(e).value;return v(o)},__wbg_waitAsync_134f0b4abc50f1f2:function(e,o,a){let c=Atomics.waitAsync(h(e),o>>>0,a);return v(c)},__wbg_waitAsync_485a8d512901fd53:function(){let e=Atomics.waitAsync;return v(e)},__wbindgen_cast_0000000000000001:function(e,o){let a=pt(e,o,St);return v(a)},__wbindgen_cast_0000000000000002:function(e,o){let a=pt(e,o,Ot);return v(a)},__wbindgen_cast_0000000000000003:function(e,o){let a=pt(e,o,Ut);return v(a)},__wbindgen_cast_0000000000000004:function(e){return v(e)},__wbindgen_cast_0000000000000005:function(e,o){let a=f(e,o);return v(a)},__wbindgen_cast_0000000000000006:function(e,o){let a=j(e,o);return v(a)},__wbindgen_cast_0000000000000007:function(e,o){var a=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),v(a)},__wbindgen_link_ec60efd85dcca315:function(e){let o=`onmessage = function (ev) {
4
- let [ia, index, value] = ev.data;
5
- ia = new Int32Array(ia.buffer);
6
- let result = Atomics.wait(ia, index, value);
7
- postMessage(result);
8
- };
9
- `,a=typeof URL.createObjectURL>"u"?"data:application/javascript,"+encodeURIComponent(o):URL.createObjectURL(new Blob([o],{type:"text/javascript"})),c=y(a,t.__wbindgen_export4,t.__wbindgen_export5),i=p;r().setInt32(e+4,i,!0),r().setInt32(e+0,c,!0)},__wbindgen_object_clone_ref:function(e){let o=h(e);return v(o)},__wbindgen_object_drop_ref:function(e){u(e)},memory:_||new WebAssembly.Memory({initial:85,maximum:65536,shared:!0})}}}function St(_,n,e){t.__wasm_bindgen_func_elem_868(_,n,v(e))}function Ut(_,n,e){t.__wasm_bindgen_func_elem_3536(_,n,v(e))}function Ot(_,n,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.__wasm_bindgen_func_elem_3534(c,_,n,v(e));var o=r().getInt32(c+0,!0),a=r().getInt32(c+4,!0);if(a)throw u(o)}finally{t.__wbindgen_add_to_stack_pointer(16)}}function lt(_,n,e,o){t.__wasm_bindgen_func_elem_3551(_,n,v(e),v(o))}var ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>t.__wbg_exrbench_free(_,1)),vt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>t.__wbg_exrstreamencoder_free(_,1)),xt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>t.__wbg_proresbench_free(_,1)),It=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>t.__wbg_proresmovencoder_free(_,1)),yt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>t.__wbg_proresmovwriter_free(_,1)),mt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>t.__wbg_wbg_rayon_poolbuilder_free(_,1));function v(_){Y===L.length&&L.push(L.length+1);let n=Y;return Y=L[n],L[n]=_,n}var ht=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>t.__wbindgen_export2(_.a,_.b));function Lt(_){_<1028||(L[_]=Y,Y=_)}function qt(_,n){return _=_>>>0,At().subarray(_/8,_/8+n)}function ut(_,n){return _=_>>>0,Ft().subarray(_/2,_/2+n)}function $(_,n){return _=_>>>0,jt().subarray(_/4,_/4+n)}function f(_,n){return _=_>>>0,D().subarray(_/1,_/1+n)}var C=null;function r(){return(C===null||C.buffer!==t.memory.buffer)&&(C=new DataView(t.memory.buffer)),C}var V=null;function Et(){return(V===null||V.buffer!==t.memory.buffer)&&(V=new Float32Array(t.memory.buffer)),V}var H=null;function At(){return(H===null||H.buffer!==t.memory.buffer)&&(H=new Float64Array(t.memory.buffer)),H}function j(_,n){return Pt(_>>>0,n)}var N=null;function Ft(){return(N===null||N.buffer!==t.memory.buffer)&&(N=new Uint16Array(t.memory.buffer)),N}var G=null;function jt(){return(G===null||G.buffer!==t.memory.buffer)&&(G=new Uint32Array(t.memory.buffer)),G}var X=null;function D(){return(X===null||X.buffer!==t.memory.buffer)&&(X=new Uint8Array(t.memory.buffer)),X}function h(_){return L[_]}function tt(_,n){try{return _.apply(this,n)}catch(e){t.__wbindgen_export(v(e))}}var L=new Array(1024).fill(void 0);L.push(void 0,null,!0,!1);var Y=L.length;function E(_){return _==null}function pt(_,n,e){let o={a:_,b:n,cnt:1},a=(...c)=>{o.cnt++;let i=o.a;o.a=0;try{return e(i,o.b,...c)}finally{o.a=i,a._wbg_cb_unref()}};return a._wbg_cb_unref=()=>{--o.cnt===0&&(t.__wbindgen_export2(o.a,o.b),o.a=0,ht.unregister(o))},ht.register(a,o,o),a}function W(_,n){let e=n(_.length*2,2)>>>0;return Ft().set(_,e/2),p=_.length,e}function S(_,n){let e=n(_.length*4,4)>>>0;return jt().set(_,e/4),p=_.length,e}function l(_,n){let e=n(_.length*1,1)>>>0;return D().set(_,e/1),p=_.length,e}function it(_,n){let e=n(_.length*4,4)>>>0;return Et().set(_,e/4),p=_.length,e}function J(_,n){let e=n(_.length*8,8)>>>0;return At().set(_,e/8),p=_.length,e}function y(_,n,e){if(e===void 0){let d=Q.encode(_),s=n(d.length,1)>>>0;return D().subarray(s,s+d.length).set(d),p=d.length,s}let o=_.length,a=n(o,1)>>>0,c=D(),i=0;for(;i<o;i++){let d=_.charCodeAt(i);if(d>127)break;c[a+i]=d}if(i!==o){i!==0&&(_=_.slice(i)),a=e(a,o,o=i+_.length*3,1)>>>0;let d=D().subarray(a+i,a+o),s=Q.encodeInto(_,d);i+=s.written,a=e(a,o,i,1)>>>0}return p=i,a}function u(_){let n=h(_);return Lt(_),n}var K=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):void 0;K&&K.decode();var Dt=2146435072,gt=0;function Pt(_,n){return gt+=n,gt>=Dt&&(K=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),K.decode(),gt=n),K.decode(D().slice(_,_+n))}var Q=typeof TextEncoder<"u"?new TextEncoder:void 0;Q&&(Q.encodeInto=function(_,n){let e=Q.encode(_);return n.set(e),{read:_.length,written:e.length}});var p=0,Mt,Bt,t;function Rt(_,n,e){if(Bt=_,t=_.exports,Mt=n,C=null,V=null,H=null,N=null,G=null,X=null,typeof e<"u"&&(typeof e!="number"||e===0||e%65536!==0))throw new Error("invalid stack size");return t.__wbindgen_start(e),t}async function Ct(_,n){if(typeof Response=="function"&&_ instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(_,n)}catch(a){if(_.ok&&e(_.type)&&_.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",a);else throw a}let o=await _.arrayBuffer();return await WebAssembly.instantiate(o,n)}else{let o=await WebAssembly.instantiate(_,n);return o instanceof WebAssembly.Instance?{instance:o,module:_}:o}function e(o){switch(o){case"basic":case"cors":case"default":return!0}return!1}}function v_(_,n){if(t!==void 0)return t;let e;_!==void 0&&(Object.getPrototypeOf(_)===Object.prototype?{module:_,memory:n,thread_stack_size:e}=_:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let o=kt(n);_ instanceof WebAssembly.Module||(_=new WebAssembly.Module(_));let a=new WebAssembly.Instance(_,o);return Rt(a,_,e)}async function x_(_,n){if(t!==void 0)return t;let e;_!==void 0&&(Object.getPrototypeOf(_)===Object.prototype?{module_or_path:_,memory:n,thread_stack_size:e}=_:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),_===void 0&&(_=new URL("media_core_bg.wasm",import.meta.url));let o=kt(n);(typeof _=="string"||typeof Request=="function"&&_ instanceof Request||typeof URL=="function"&&_ instanceof URL)&&(_=fetch(_));let{instance:a,module:c}=await Ct(await _,o);return Rt(a,c,e)}export{et as ExrBench,nt as ExrStreamEncoder,rt as ProResBench,_t as ProResMovEncoder,ot as ProResMovWriter,Nt as arriraw12_clip_info,Gt as arriraw_mxf_gpu_frame,Xt as audio_aac_au,Yt as audio_aac_config,Jt as audio_info,Kt as bench_f32_boundary,Qt as bench_piz_no_huffman,Zt as color_cst,$t as dci_code_full_depth,te as dci_frame_cap,ee as dci_gpu_colour_patch,ne as dci_gpu_colour_tables,re as dci_last_pass_caps,_e as dci_legal_rates,oe as dci_mq_bench,ie as dci_pack_tier1,ae as dci_stage_rgba8,ce as dci_transform_only,de as decode_arriraw12_luma,se as decode_arriraw12_mxf,pe as decode_arriraw12_preview,ge as decode_arriraw12_rgba,ue as decode_arriraw_luma,we as decode_arriraw_mxf,be as decode_arriraw_preview,le as decode_arriraw_preview_gray,fe as decode_arriraw_preview_meta,ve as decode_arriraw_rgba,xe as decode_arriraw_rgba_meta,Ie as decode_arw_preview,ye as decode_arw_rgba,me as decode_audio_pcm,he as decode_bmp_rgba,ke as decode_braw_gen5log,Ae as decode_braw_luma,Fe as decode_braw_preview,je as decode_braw_rgba,Me as decode_cr2_preview,Re as decode_cr2_rgba,ze as decode_cr3_rgba,We as decode_crm,Te as decode_dng_preview,Se as decode_dng_rgba,Ue as decode_dpx_preview,Oe as decode_dpx_rgba,Le as decode_dv_luma,qe as decode_dv_preview,Ee as decode_dv_rgba,De as decode_exr_linear,Pe as decode_exr_preview,Be as decode_exr_rgba,Ce as decode_gif_rgba,Ve as decode_heic_rgba,He as decode_j2k_luma,Ne as decode_j2k_preview,Ge as decode_j2k_rgba,Xe as decode_jpeg_rgba,Ye as decode_mpeg2_luma,Je as decode_mpeg2_preview,Ke as decode_mpeg2_rgba,Qe as decode_png_rgba,Ze as decode_prores_band_rgba,$e as decode_prores_luma,tn as decode_prores_mxf,en as decode_prores_preview,nn as decode_prores_raw_acescct,rn as decode_prores_raw_luma,_n as decode_prores_raw_preview,on as decode_prores_raw_rec2020,an as decode_prores_raw_rgba,cn as decode_prores_raw_tier,dn as decode_prores_rgb16,sn as decode_prores_rgba,pn as decode_prores_thumb_dc32,gn as decode_psd_rgba,un as decode_r3d_luma,wn as decode_r3d_preview,bn as decode_r3d_preview_clip,ln as decode_r3d_rgb16,fn as decode_r3d_rgba,vn as decode_r3d_rgba_clip,xn as decode_tga_rgba,In as decode_tiff_preview,yn as decode_tiff_rgba,mn as decode_vc3_band_rgba,hn as decode_vc3_luma,kn as decode_vc3_mxf,An as decode_vc3_preview,Fn as decode_vc3_rgba,jn as decode_webp_rgba,Mn as decode_xocn_index_luma,Rn as decode_xocn_luma,zn as decode_xocn_mxf,Wn as decode_xocn_preview,Tn as decode_xocn_preview_rec709,Sn as decode_xocn_rgb16,Un as decode_xocn_rgba,x_ as default,On as encode_dci_j2c,Ln as encode_dci_j2c_rgb,qn as encode_dci_j2c_rgba8,En as encode_dci_j2c_staged,Dn as encode_dci_j2c_staged_modelled,Pn as encode_exr,Bn as encode_prores_4444_alpha_mov_rgba,Cn as encode_prores_4444_alpha_sample_q,Vn as encode_prores_444_sample_cbr,Hn as encode_prores_444_sample_cbr_rgb16,Nn as encode_prores_444_sample_cbr_rgb16_lut,Gn as encode_prores_mov_rgba,Xn as encode_prores_rgba,Yn as encode_prores_sample_cbr,Jn as encode_prores_sample_cbr_rgb16,Kn as encode_prores_sample_cbr_rgb16_lut,Qn as encode_prores_sample_q,Zn as exr_sequence_filename,$n as fit_sizing,v_ as initSync,tr as initThreadPool,er as inspect_arw,nr as inspect_cr2,rr as inspect_cr3,_r as inspect_dng,or as inspect_dpx,ir as inspect_exr,ar as inspect_isobmff,cr as inspect_tiff,dr as inspect_wav,sr as is_arriraw12_mxf,pr as is_arriraw_mxf,gr as is_crm,ur as is_prores_mxf,wr as is_vc3_mxf,br as is_xavc_mxf,lr as is_xocn_mxf,fr as list_isobmff_segments,vr as list_mxf_segments,xr as list_r3d_frames,Ir as list_r3d_segments,yr as list_wav_segments,mr as mux_prores_4444_alpha_samples,hr as mux_prores_samples,kr as mux_prores_samples_full,Ar as mxf_au_run,Fr as mxf_frame_index,jr as mxf_gop_map,Mr as mxf_h264_kind,Rr as plan_isobmff_trim,zr as plan_isobmff_trim_reader,Wr as plan_mxf_compact_trim,Tr as plan_mxf_trim,Sr as plan_r3d_compact,Ur as plan_wav_trim,Or as plan_wav_trim_reader,Lr as prepare_isobmff,qr as prepare_mxf,Er as prepare_r3d,Dr as prepare_wav,Pr as probe_mov,Br as probe_mxf,Cr as probe_r3d,Vr as prores_band_info,Hr as prores_raw_container_color,Nr as prores_reset_rate_control,Gr as r3d_gpu_develop_params,Xr as r3d_index_ranges,Yr as r3d_is_helium,Jr as read_arriraw_fcs,Kr as read_arriraw_unit_correction,Qr as recover_reframe,Zr as resample_rgba16,$r as resample_rgba8,t_ as reset_dci_rate_state,e_ as resize_luma_area,n_ as rgba8_to_xyz12,r_ as shot_crop,__ as shot_ramp,o_ as shot_scan,i_ as trim_r3d,a_ as vc3_band_info,c_ as video_close,d_ as video_decode,s_ as video_frame_index_isobmff_reader,p_ as video_open,Z as wbg_rayon_PoolBuilder,g_ as wbg_rayon_start_worker,u_ as xavc_au,w_ as xavc_frame_count,b_ as xocn_frame_count,l_ as xocn_index_prefix_len,f_ as xocn_preview_prefix_len};
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{a as $}from"./chunk-AACY2V3L.js";import{b as J}from"./chunk-3D3Z4TBR.js";import{b as j}from"./chunk-2BPR6LK6.js";import{Ga as N,Ha as l,L as M,Q as P,b as B,ba as D,ca as T,da as E,e as I,ea as L,fa as C,g as S,ha as O,qa as V,ta as W,v as k,va as G}from"./chunk-RJ6JA2LZ.js";import"./chunk-PSANHDZM.js";var z=new Uint8Array([6,14,43,52,2,5,1,1,13,1,2,1,1,17,1,0]);function se(t){e:for(let r=t.length-z.length;r>=0;r--){for(let e=0;e<z.length;e++)if(t[r+e]!==z[e])continue e;return r}return-1}function Z(t,r){if(r>=t.byteLength)return[null,0];let e=t.getUint8(r);if(e<128)return[e,1];let n=e&127;if(n===0||n>8||r+1+n>t.byteLength)return[null,1];let a=0;for(let i=0;i<n;i++)a=a*256+t.getUint8(r+1+i);return[a,1+n]}function b(t,r){let e=t.getUint32(r,!1),n=t.getUint32(r+4,!1);return e*4294967296+n}async function H(t){let r=t.fileSize,e=[];if(r<1024)return e;let a=Math.max(0,r-65536),i=r-a,o=await t.read(a,i);e.push({offset:a,length:i});let s=se(o);if(s<0)return e;let c=new DataView(o.buffer,o.byteOffset,o.byteLength),[f,te]=Z(c,s+16);if(f===null||f<16||f>65536)return e;let F=s+16+te;if(F+f>o.length)return e;let A=[],ne=new DataView(o.buffer,o.byteOffset+F,f),g=Math.floor((f-4)/12);if(g<1||g>4096)return e;for(let u=0;u<g;u++){let d=b(ne,u*12+4);d>=0&&d<r&&A.push(d)}for(let u of A){let d=Math.min(256,r-u),p=await t.read(u,d);if(p.length<80)continue;let y=new DataView(p.buffer,p.byteOffset,p.byteLength),[R,v]=Z(y,16);if(R===null)continue;let m=16+v,_,x;if(p.length<m+64){let oe=Math.min(m+64,r-u),h=await t.read(u,oe);if(h.length<m+64)continue;let U=new DataView(h.buffer,h.byteOffset,h.byteLength);_=b(U,m+32),x=b(U,m+40)}else _=b(y,m+32),x=b(y,m+40);let ae=u+16+v+R+_+x,ie=Math.min(ae+65536,r)-u;e.push({offset:u,length:ie})}return e}function q(t,r){let e=[];for(let n of t){if(n.kind!=="clip"||!n.source_range)continue;let a=n.source_range.start.value,i=n.source_range.duration.value,o=Math.max(0,Math.floor(a)-r),s=Math.floor(a+i-1)+r;s>=o&&e.push({first_frame:o,last_frame:s})}return e}function ce(t,r){let e=[...t].sort((i,o)=>i.offset-o.offset),n=[],a=0;for(let i of e)i.offset>a&&n.push({offset:a,length:i.offset-a}),a=Math.max(a,i.offset+i.length);return a<r&&n.push({offset:a,length:r-a}),n}async function K(t,r,e){let n=q(r,0);if(n.length===0)throw new Error("planMxfTrimsFromItems: no usable trim ranges in items");await l();let a=(o,s)=>t.read(o,s),i=await J(n,e,(o,s)=>V(a,t.fileSize,o,s));return i.map((o,s)=>{let c=JSON.parse(o);return i.length>1&&(c.output_clip_number=s+1,c.output_clip_count=i.length,c.output_part_number=1),c})}async function Q(t,r,e){await l();let n=q(r,e),i=await W((s,c)=>t.read(s,c),t.fileSize,JSON.stringify(n));if(i!=="null")return JSON.parse(i);console.warn(`[mxf] no parseable index \u2014 shipping the WHOLE file (${t.fileSize} bytes). The cut's ${n.length} range(s) cannot be addressed; nothing is trimmed.`);let o=(await H(t)).map(s=>({offset:s.offset,length:s.length}));return{fileSize:t.fileSize,structuralRanges:o,essenceRanges:ce(o,t.fileSize),trimInputs:n,wholeFileFallback:!0}}async function X(t){await l();let e=await G((n,a)=>t.read(n,a),t.fileSize);return JSON.parse(e)}function w(t){return(r,e)=>t.read(r,e)}var Me={async inspect(t){let r=t.parts[0],e=await X(r);if(!e)return null;let n=e.timecode??null,a=n&&n.fps_denominator>0?n.fps_numerator/n.fps_denominator:null,i=e.width??null,o=e.height??null;return{id:r.filename,kind:"external",target_url:r.filename,available_range:a&&e.frame_count?{start:{value:0,rate:a},duration:{value:e.frame_count,rate:a}}:null,reel_name:null,source_timecode:n?.display??null,source_fps:a,source_resolution_w:i,source_resolution_h:o,container:"mxf",codec:null,size_bytes:r.fileSize,streams:[...i||o||a?[{kind:"video",codec:null,width:i??void 0,height:o??void 0,rate:a??void 0,codec_specific:null}]:[],...e.audio?[{kind:"audio",codec:e.audio.codec_fourcc,channels:e.audio.channels??void 0,rate:e.audio.sample_rate??void 0,bit_depth:e.audio.bit_depth??void 0,codec_specific:{fourcc:e.audio.codec_fourcc}}]:[]],decode_provenance:e.decode_provenance??null,vendor_metadata:{frame_count:e.frame_count,...n?{drop_frame:n.drop_frame}:{},...e.inner_codec?{inner_codec:e.inner_codec}:{},...e.truncated?{truncated:!0}:{}},binding_state:"unbound",raw_extraction:{mxf_probe:e},metadata:{}}},async extract(t){await l();let r=t.parts[0],e=JSON.parse(await O(w(r),r.fileSize));return e.length===0?null:{v:1,container:"mxf",codec:"mxf",frame_count:$(e),granularity:"frame",segments:e}},async sparsify(t,r){let e=t.parts[0],n=await Q(e,r.items,r.handles);return[{filename:e.filename,fileSize:n.fileSize,structuralRanges:n.structuralRanges,essenceRanges:n.essenceRanges,trimInputs:n.trimInputs,wholeFileFallback:n.wholeFileFallback}]},async trim(t,r){let e=t.parts[0];return K(e,r.items,r.handles)},async decode(t,r,e){await l();let n=t.parts[0],a=w(n),i=await re(t),o=e.detail==="coarse",s;if(i==="arriraw")s=await S(a,n.fileSize,r,o?"preview:4":"full");else if(i==="arriraw-alev3")s=await I(a,n.fileSize,r,o?"preview:4":"full");else if(i==="dnxhr")s=await M(a,n.fileSize,r,o?"preview":"full");else if(i==="xocn")s=await P(a,n.fileSize,r,o?"preview":"full");else if(i==="prores")s=await k(a,n.fileSize,r,o?"preview":"full");else throw new Error(`mxf decode: no decoder for inner codec '${i}'`);let c=new DataView(s.buffer,s.byteOffset,8);return{width:c.getUint32(0,!0),height:c.getUint32(4,!0),rgba:s.slice(8)}},async decode16(t,r){await l();let e=t.parts[0],n=w(e),a=await re(t),i;try{if(a==="arriraw"){let o=await ue(t,r);if(o)return o;i=await S(n,e.fileSize,r,"rgb16")}else if(a==="dnxhr")i=await M(n,e.fileSize,r,"rgb16");else if(a==="xocn")i=await P(n,e.fileSize,r,"rgb16");else throw new Error(`mxf decode16: no decoder for inner codec '${a}'`)}catch(o){throw fe(o,a)}return j(i)}};function fe(t,r){let e=typeof t=="string"?t:t instanceof Error?t.message:"";return/has no 16-bit decoder|no rgb16 tier/.test(e)?new Error(`mxf ${r}: has no 16-bit decoder \u2014 ${e}`):t}var Y=new WeakMap;async function ue(t,r){if(!N)return null;try{let e=await import("./arriraw-YIJ3BYNN.js");if(!await e.arrirawGpuAvailable())return null;let{parseArrirawGpuPayload:n,arrirawFrameToRgb16:a}=await import("./clip-state-B6JOX3JE.js"),i=t.parts[0],o=Y.get(t)??null,s=await B(w(i),i.fileSize,r,o?.key),c=n(s,o);if(!c)return null;Y.set(t,{key:c.key,state:c.state});let f=await e.decodeArrirawFrameGpu(c.essence,c.state);return f?{width:f.width,height:f.height,rgb16:a(f)}:null}catch{return null}}var ee=new WeakMap;async function re(t){let r=ee.get(t);if(r)return r;await l();let e=t.parts[0],n=w(e),a="mxf";return await T(n,e.fileSize)?a="arriraw":await D(n,e.fileSize)?a="arriraw-alev3":await L(n,e.fileSize)?a="dnxhr":await C(n,e.fileSize)?a="xocn":await E(n,e.fileSize)&&(a="prores"),ee.set(t,a),a}export{Me as mxfFormat};
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{A as a,B as b,C as c,D as d,E as e,F as f}from"./chunk-GTJ3EM6H.js";import"./chunk-XCKQHL4G.js";import"./chunk-PHAMF4JF.js";import"./chunk-PLRB2YXJ.js";import"./chunk-PSANHDZM.js";export{a as createSession,f as getExtra,b as getSession,d as listSessions,e as saveExtra,c as updateSession};
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{$ as p,M as a,N as b,O as c,P as d,Q as e,R as f,S as g,T as h,U as i,V as j,W as k,X as l,Y as m,Z as n,_ as o,aa as q,ba as r}from"./chunk-QVH44I66.js";import"./chunk-PFISREY4.js";import"./chunk-JV7TZDKJ.js";import"./chunk-VIBEEWPC.js";import"./chunk-PFZVET7S.js";import"./chunk-6V4OEOOX.js";import"./chunk-RGMTLNMF.js";import"./chunk-D4WPRRBT.js";import"./chunk-WN53ARHJ.js";import"./chunk-A7FNR3T5.js";import"./chunk-J2JXLEAI.js";import"./chunk-SGLQY53R.js";import"./chunk-DKGGJM6Z.js";import"./chunk-AMRJXYL4.js";import"./chunk-3D3Z4TBR.js";import"./chunk-2BPR6LK6.js";import"./chunk-NU3X7P4N.js";import"./chunk-RJ6JA2LZ.js";import"./chunk-XCKQHL4G.js";import"./chunk-PHAMF4JF.js";import"./chunk-PLRB2YXJ.js";import"./chunk-C2ESM27Z.js";import"./chunk-PSANHDZM.js";export{i as OPERATION_KINDS,a as READ_FORMATS,j as applyOperation,k as applyOperationWithSources,q as consolidate,g as countFlags,b as detectFormat,r as judge,p as linkText,e as listClips,h as listFlags,f as listMedia,c as readTimeline,l as resolveTarget,o as routesText,d as summarize,n as writeDestination,m as writeTimeline};
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import"./chunk-PSANHDZM.js";function O(e,r){let o,t;try{let s=u(e,n.__wbindgen_malloc,n.__wbindgen_realloc),c=l,f=u(r,n.__wbindgen_malloc,n.__wbindgen_realloc),w=l,a=n.capability_issues_json(s,c,f,w);var _=a[0],i=a[1];if(a[3])throw _=0,i=0,b(a[2]);return o=_,t=i,d(_,i)}finally{n.__wbindgen_free(o,t,1)}}function S(e){let r=g(e,n.__wbindgen_malloc),o=l,t=n.deobfuscate_ptx(r,o);if(t[3])throw b(t[2]);var _=A(t[0],t[1]).slice();return n.__wbindgen_free(t[0],t[1]*1,1),_}function I(e){let r,o;try{let t=u(e,n.__wbindgen_malloc,n.__wbindgen_realloc),_=l,i=n.drx_grade_tree(t,_);return r=i[0],o=i[1],d(i[0],i[1])}finally{n.__wbindgen_free(r,o,1)}}function U(e){let r,o;try{let i=g(e,n.__wbindgen_malloc),s=l,c=n.extract_aaf_json(i,s);var t=c[0],_=c[1];if(c[3])throw t=0,_=0,b(c[2]);return r=t,o=_,d(t,_)}finally{n.__wbindgen_free(r,o,1)}}function D(e,r){let o,t;try{let s=g(e,n.__wbindgen_malloc),c=l,f=u(r,n.__wbindgen_malloc,n.__wbindgen_realloc),w=l,a=n.extract_avb_json(s,c,f,w);var _=a[0],i=a[1];if(a[3])throw _=0,i=0,b(a[2]);return o=_,t=i,d(_,i)}finally{n.__wbindgen_free(o,t,1)}}function F(e){let r,o;try{let i=u(e,n.__wbindgen_malloc,n.__wbindgen_realloc),s=l,c=n.extract_drt_json(i,s);var t=c[0],_=c[1];if(c[3])throw t=0,_=0,b(c[2]);return r=t,o=_,d(t,_)}finally{n.__wbindgen_free(r,o,1)}}function B(e){let r,o;try{let i=g(e,n.__wbindgen_malloc),s=l,c=n.extract_flame_json(i,s);var t=c[0],_=c[1];if(c[3])throw t=0,_=0,b(c[2]);return r=t,o=_,d(t,_)}finally{n.__wbindgen_free(r,o,1)}}function L(e,r){let o,t;try{let s=g(e,n.__wbindgen_malloc),c=l,f=u(r,n.__wbindgen_malloc,n.__wbindgen_realloc),w=l,a=n.extract_prproj_json(s,c,f,w);var _=a[0],i=a[1];if(a[3])throw _=0,i=0,b(a[2]);return o=_,t=i,d(_,i)}finally{n.__wbindgen_free(o,t,1)}}function k(e){let r,o;try{let i=g(e,n.__wbindgen_malloc),s=l,c=n.extract_ptx_json(i,s);var t=c[0],_=c[1];if(c[3])throw t=0,_=0,b(c[2]);return r=t,o=_,d(t,_)}finally{n.__wbindgen_free(r,o,1)}}function C(e){let r,o;try{let i=g(e,n.__wbindgen_malloc),s=l,c=n.inspect_aaf_json(i,s);var t=c[0],_=c[1];if(c[3])throw t=0,_=0,b(c[2]);return r=t,o=_,d(t,_)}finally{n.__wbindgen_free(r,o,1)}}function q(e){let r,o;try{let i=g(e,n.__wbindgen_malloc),s=l,c=n.inspect_avb_json(i,s);var t=c[0],_=c[1];if(c[3])throw t=0,_=0,b(c[2]);return r=t,o=_,d(t,_)}finally{n.__wbindgen_free(r,o,1)}}function z(e,r){let o,t;try{let s=u(e,n.__wbindgen_malloc,n.__wbindgen_realloc),c=l,f=u(r,n.__wbindgen_malloc,n.__wbindgen_realloc),w=l,a=n.inspect_capcut_json(s,c,f,w);var _=a[0],i=a[1];if(a[3])throw _=0,i=0,b(a[2]);return o=_,t=i,d(_,i)}finally{n.__wbindgen_free(o,t,1)}}function P(e){let r,o;try{let i=u(e,n.__wbindgen_malloc,n.__wbindgen_realloc),s=l,c=n.inspect_drt_json(i,s);var t=c[0],_=c[1];if(c[3])throw t=0,_=0,b(c[2]);return r=t,o=_,d(t,_)}finally{n.__wbindgen_free(r,o,1)}}function N(e,r){let o,t;try{let s=u(e,n.__wbindgen_malloc,n.__wbindgen_realloc),c=l,f=u(r,n.__wbindgen_malloc,n.__wbindgen_realloc),w=l,a=n.inspect_fcpxml_json(s,c,f,w);var _=a[0],i=a[1];if(a[3])throw _=0,i=0,b(a[2]);return o=_,t=i,d(_,i)}finally{n.__wbindgen_free(o,t,1)}}function V(e,r){let o,t;try{let s=g(e,n.__wbindgen_malloc),c=l,f=u(r,n.__wbindgen_malloc,n.__wbindgen_realloc),w=l,a=n.inspect_flame_json(s,c,f,w);var _=a[0],i=a[1];if(a[3])throw _=0,i=0,b(a[2]);return o=_,t=i,d(_,i)}finally{n.__wbindgen_free(o,t,1)}}function X(e,r){let o,t;try{let s=u(e,n.__wbindgen_malloc,n.__wbindgen_realloc),c=l,f=u(r,n.__wbindgen_malloc,n.__wbindgen_realloc),w=l,a=n.inspect_otio_json(s,c,f,w);var _=a[0],i=a[1];if(a[3])throw _=0,i=0,b(a[2]);return o=_,t=i,d(_,i)}finally{n.__wbindgen_free(o,t,1)}}function Y(e){let r,o;try{let i=g(e,n.__wbindgen_malloc),s=l,c=n.inspect_prproj_json(i,s);var t=c[0],_=c[1];if(c[3])throw t=0,_=0,b(c[2]);return r=t,o=_,d(t,_)}finally{n.__wbindgen_free(r,o,1)}}function G(e,r){let o,t;try{let s=g(e,n.__wbindgen_malloc),c=l,f=u(r,n.__wbindgen_malloc,n.__wbindgen_realloc),w=l,a=n.inspect_ptx_json(s,c,f,w);var _=a[0],i=a[1];if(a[3])throw _=0,i=0,b(a[2]);return o=_,t=i,d(_,i)}finally{n.__wbindgen_free(o,t,1)}}function H(e,r){let o,t;try{let s=u(e,n.__wbindgen_malloc,n.__wbindgen_realloc),c=l,f=u(r,n.__wbindgen_malloc,n.__wbindgen_realloc),w=l,a=n.inspect_xmeml_json(s,c,f,w);var _=a[0],i=a[1];if(a[3])throw _=0,i=0,b(a[2]);return o=_,t=i,d(_,i)}finally{n.__wbindgen_free(o,t,1)}}function j(){return{__proto__:null,"./timeline_core_bg.js":{__proto__:null,__wbg_Error_fdd633d4bb5dd76a:function(r,o){return Error(d(r,o))},__wbindgen_cast_0000000000000001:function(r,o){return d(r,o)},__wbindgen_init_externref_table:function(){let r=n.__wbindgen_externrefs,o=r.grow(4);r.set(0,void 0),r.set(o+0,void 0),r.set(o+1,null),r.set(o+2,!0),r.set(o+3,!1)}}}}function A(e,r){return e=e>>>0,y().subarray(e/1,e/1+r)}function d(e,r){return T(e>>>0,r)}var p=null;function y(){return(p===null||p.byteLength===0)&&(p=new Uint8Array(n.memory.buffer)),p}function g(e,r){let o=r(e.length*1,1)>>>0;return y().set(e,o/1),l=e.length,o}function u(e,r,o){if(o===void 0){let c=x.encode(e),f=r(c.length,1)>>>0;return y().subarray(f,f+c.length).set(c),l=c.length,f}let t=e.length,_=r(t,1)>>>0,i=y(),s=0;for(;s<t;s++){let c=e.charCodeAt(s);if(c>127)break;i[_+s]=c}if(s!==t){s!==0&&(e=e.slice(s)),_=o(_,t,t=s+e.length*3,1)>>>0;let c=y().subarray(_+s,_+t),f=x.encodeInto(e,c);s+=f.written,_=o(_,t,s,1)>>>0}return l=s,_}function b(e){let r=n.__wbindgen_externrefs.get(e);return n.__externref_table_dealloc(e),r}var m=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});m.decode();var W=2146435072,v=0;function T(e,r){return v+=r,v>=W&&(m=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),m.decode(),v=r),m.decode(y().subarray(e,e+r))}var x=new TextEncoder;"encodeInto"in x||(x.encodeInto=function(e,r){let o=x.encode(e);return r.set(o),{read:e.length,written:o.length}});var l=0,R,E,n;function h(e,r){return E=e,n=e.exports,R=r,p=null,n.__wbindgen_start(),n}async function M(e,r){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,r)}catch(_){if(e.ok&&o(e.type)&&e.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",_);else throw _}let t=await e.arrayBuffer();return await WebAssembly.instantiate(t,r)}else{let t=await WebAssembly.instantiate(e,r);return t instanceof WebAssembly.Instance?{instance:t,module:e}:t}function o(t){switch(t){case"basic":case"cors":case"default":return!0}return!1}}function J(e){if(n!==void 0)return n;e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module:e}=e:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let r=j();e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e));let o=new WebAssembly.Instance(e,r);return h(o,e)}async function K(e){if(n!==void 0)return n;e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),e===void 0&&(e=new URL("timeline_core_bg.wasm",import.meta.url));let r=j();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));let{instance:o,module:t}=await M(await e,r);return h(o,t)}export{O as capability_issues_json,K as default,S as deobfuscate_ptx,I as drx_grade_tree,U as extract_aaf_json,D as extract_avb_json,F as extract_drt_json,B as extract_flame_json,L as extract_prproj_json,k as extract_ptx_json,J as initSync,C as inspect_aaf_json,q as inspect_avb_json,z as inspect_capcut_json,P as inspect_drt_json,N as inspect_fcpxml_json,V as inspect_flame_json,X as inspect_otio_json,Y as inspect_prproj_json,G as inspect_ptx_json,H as inspect_xmeml_json};