conformtools 0.5.1 → 0.6.2

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 (93) hide show
  1. package/README.md +69 -6
  2. package/dist/browser/timeline_core_bg.wasm +0 -0
  3. package/dist/chunk-6TM32YIJ.js +7 -0
  4. package/dist/chunk-BTXLTVNK.js +3 -0
  5. package/dist/{chunk-AHNDJFQR.js → chunk-BUEIRRNY.js} +1 -1
  6. package/dist/chunk-BXFVYGFW.js +3 -0
  7. package/dist/chunk-CX3USH6A.js +318 -0
  8. package/dist/chunk-D5DEQ467.js +3 -0
  9. package/dist/{chunk-YPRTUS5W.js → chunk-FNGHTZ5F.js} +1 -1
  10. package/dist/chunk-GXEVALBL.js +3 -0
  11. package/dist/chunk-JH3OLTR6.js +3 -0
  12. package/dist/chunk-KP4C2MFM.js +3 -0
  13. package/dist/chunk-PIEH7J6J.js +3 -0
  14. package/dist/chunk-RUBNBRUK.js +3 -0
  15. package/dist/chunk-RULUDOB7.js +3 -0
  16. package/dist/chunk-Y2BEEOPB.js +3 -0
  17. package/dist/claude-setup-XSNTKEU7.js +5 -0
  18. package/dist/cli.js +11 -5
  19. package/dist/conformtools-decode +0 -0
  20. package/dist/cr3-wasm-YTMVBAFM.js +3 -0
  21. package/dist/dng-wasm-WUUQB7M2.js +3 -0
  22. package/dist/dpx-wasm-XBKO4V4W.js +3 -0
  23. package/dist/exr-wasm-VE2W6MFW.js +3 -0
  24. package/dist/{h264-JHQCJTWP.js → h264-HD7BY5J5.js} +1 -1
  25. package/dist/{h264-mxf-4M63NBQK.js → h264-mxf-6OOODSAK.js} +1 -1
  26. package/dist/http.js +2 -2
  27. package/dist/{inspect-6OM4FTVW.js → inspect-TDZCNXVW.js} +2 -2
  28. package/dist/isobmff-57HSD6O2.js +3 -0
  29. package/dist/mcp.js +10 -9
  30. package/dist/media_core-R5PPN3AY.js +9 -0
  31. package/dist/{media_core_bg-XIM7Y4R3.js → media_core_bg-YBW45HJ2.js} +1 -1
  32. package/dist/mxf-FAXEK4WR.js +3 -0
  33. package/dist/{ops-7HVBBXUQ.js → ops-UPPAG2TI.js} +1 -1
  34. package/dist/premiere-uxp/icons/panel.png +0 -0
  35. package/dist/premiere-uxp/icons/panel@2x.png +0 -0
  36. package/dist/premiere-uxp/icons/plugin.png +0 -0
  37. package/dist/premiere-uxp/icons/plugin@2x.png +0 -0
  38. package/dist/premiere-uxp/index.html +38 -0
  39. package/dist/premiere-uxp/index.js +93 -0
  40. package/dist/premiere-uxp/lib/clipmeta.js +170 -0
  41. package/dist/premiere-uxp/lib/ctx.js +62 -0
  42. package/dist/premiere-uxp/lib/handles.js +57 -0
  43. package/dist/premiere-uxp/lib/markers.js +198 -0
  44. package/dist/premiere-uxp/lib/pairing.js +58 -0
  45. package/dist/premiere-uxp/lib/premiere.js +82 -0
  46. package/dist/premiere-uxp/lib/probe.js +139 -0
  47. package/dist/premiere-uxp/lib/protocol.js +165 -0
  48. package/dist/premiere-uxp/lib/render.js +38 -0
  49. package/dist/premiere-uxp/lib/session.js +85 -0
  50. package/dist/premiere-uxp/lib/sizing.js +312 -0
  51. package/dist/premiere-uxp/lib/time.js +82 -0
  52. package/dist/premiere-uxp/lib/timeline.js +336 -0
  53. package/dist/premiere-uxp/lib/verbs.js +20 -0
  54. package/dist/premiere-uxp/lib/write.js +97 -0
  55. package/dist/premiere-uxp/manifest.json +102 -0
  56. package/dist/{r3d-AT6NNIY3.js → r3d-EY6FEFKM.js} +1 -1
  57. package/dist/r3d-KJVC7T2C.js +3 -0
  58. package/dist/resolve-bridge.py +974 -0
  59. package/dist/resolve-presets/conform.tools.xml +127 -0
  60. package/dist/sscd-embed-DHFTEIOC.js +3 -0
  61. package/dist/sscd-sweep-OYS4XAID.js +3 -0
  62. package/dist/statusline-GMMCFMOA.js +4 -0
  63. package/dist/statusline.js +3 -0
  64. package/dist/{still-E4HLCCST.js → still-WY7MUR7A.js} +1 -1
  65. package/dist/tiff-wasm-T2V2ICZT.js +3 -0
  66. package/dist/wasm/media_core_bg.wasm +0 -0
  67. package/dist/wasm/udf_bg.wasm +0 -0
  68. package/dist/wasm-threads/media_core_bg.wasm +0 -0
  69. package/dist/{wav-DXF73Y56.js → wav-LFS6OZHJ.js} +1 -1
  70. package/package.json +1 -1
  71. package/dist/chunk-35U7WGES.js +0 -3
  72. package/dist/chunk-3XTUTEKJ.js +0 -102
  73. package/dist/chunk-HJXRLQOI.js +0 -3
  74. package/dist/chunk-IDDQR56R.js +0 -7
  75. package/dist/chunk-UUMHVA7R.js +0 -3
  76. package/dist/chunk-WWGQFOB2.js +0 -64
  77. package/dist/cr3-wasm-X6Q4YMUU.js +0 -3
  78. package/dist/dng-wasm-EAB24KDN.js +0 -3
  79. package/dist/dpx-wasm-OX2D24ZB.js +0 -3
  80. package/dist/exr-wasm-Z6BBPJSN.js +0 -3
  81. package/dist/isobmff-XL33CVJR.js +0 -3
  82. package/dist/media_core-VSTO6CS4.js +0 -9
  83. package/dist/mxf-VIANACTI.js +0 -3
  84. package/dist/r3d-2QCFX7UX.js +0 -3
  85. package/dist/sscd-sweep-IXM4OD7O.js +0 -3
  86. package/dist/tiff-wasm-XYTQNL2F.js +0 -3
  87. package/dist/zod-IPSV75LP.js +0 -3
  88. /package/dist/{arriraw-Y5VXHXNX.js → arriraw-BEZILZY3.js} +0 -0
  89. /package/dist/{chunk-NYB4ISL3.js → chunk-NP53ITN6.js} +0 -0
  90. /package/dist/{media_core_bg-BKXQLNFA.js → media_core_bg-5UIQAP7I.js} +0 -0
  91. /package/dist/{prores-TQEZ3KFH.js → prores-BNALPJPS.js} +0 -0
  92. /package/dist/{timeline_core_bg-QEOVAIWP.js → timeline_core_bg-XYT26ZTU.js} +0 -0
  93. /package/dist/{udf_bg-UTQ6BVXX.js → udf_bg-R3JEZJAT.js} +0 -0
@@ -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{N as s,l as o,ua as r}from"./chunk-UUMHVA7R.js";import"./chunk-PSANHDZM.js";async function d(t){await r();let e=s(t);return e==="null"?null:JSON.parse(e)}async function l(t){await r();let e;try{e=o(t)}catch{return null}if(e.length<8)return null;let n=new DataView(e.buffer,e.byteOffset,e.byteLength),a=n.getUint32(0,!0),i=n.getUint32(4,!0),u=a*i*4;return e.length<8+u?null:{width:a,height:i,rgba:new Uint8ClampedArray(e.subarray(8,8+u))}}export{l as decodeCr3Wasm,d as inspectCr3Wasm};
@@ -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{O as s,n as d,sa as u,ua as t}from"./chunk-UUMHVA7R.js";import"./chunk-PSANHDZM.js";async function h(r){await t();let e=s(r);return e==="null"?null:JSON.parse(e)}async function g(r){await t();let e;try{e=d(r)}catch{return null}if(e.length<8)return null;let n=new DataView(e.buffer,e.byteOffset,e.byteLength),i=n.getUint32(0,!0),a=n.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 y(r,e=8){await t();let n=m(u,"decode_dng_preview");if(!n)return g(r);try{return c(n(r,e))}catch{return null}}export{y as decodeDngPreviewWasm,g as decodeDngWasm,h as inspectDngWasm};
@@ -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 s,b as m}from"./chunk-DKGGJM6Z.js";import{P as c,o as u,sa as d,ua as n}from"./chunk-UUMHVA7R.js";import"./chunk-PSANHDZM.js";async function x(r){await n();let e=c(r);return e==="null"?null:JSON.parse(e)}async function p(r){await n();let e;try{e=u(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=m(d,"decode_dpx_preview");if(!t)return p(r);try{return s(t(r,e))}catch{return null}}export{y as decodeDpxPreviewWasm,p as decodeDpxWasm,x as inspectDpxWasm};
@@ -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{Q as c,p as s,sa as u,ua as n}from"./chunk-UUMHVA7R.js";import"./chunk-PSANHDZM.js";async function y(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 h(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{h as decodeExrPreviewWasm,d as decodeExrWasm,y as inspectExrWasm};
@@ -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 T,b as J}from"./chunk-SP5RGDAM.js";import{a as U,b as E}from"./chunk-AACY2V3L.js";import{b as p,c as k}from"./chunk-AHNDJFQR.js";import{a as O}from"./chunk-TK55FA56.js";import{a as I}from"./chunk-JEMLKBH2.js";import{b as N,c as _}from"./chunk-YPRTUS5W.js";import{I as F,J as z,R as l,Z as D,fa as A,h,ia as x,j as b,k as g,m as w,s as S,t as v,ua as c,v as y,w as M,x as P,y as R}from"./chunk-UUMHVA7R.js";import"./chunk-PSANHDZM.js";function u(r){return(e,a)=>r.read(e,a)}function C(r){let e=r.toLowerCase().trim();return e==="aprn"||e==="aprh"?"prores_raw":e==="apch"||e==="apcn"||e==="apcs"||e==="apco"||e==="ap4h"||e==="ap4x"?"prores":e==="avdn"?"dnxhd":e==="dnxh"?"dnxhr":e==="avc1"||e==="avc3"?"h264":e==="hev1"||e==="hvc1"?"h265":e==="braw"?"braw":r}function G(r,e){let a=[];for(let t of r){if(t.kind!=="clip"||!t.source_range)continue;let o=t.source_range.start.value,n=t.source_range.duration.value,s=Math.max(0,Math.floor(o)-e),i=Math.floor(o+n-1)+e;i>=s&&a.push({first_frame:s,last_frame:i})}return a}var te={async inspect(r){await c();let e=r.parts[0],a=await l(u(e),e.fileSize,r.format),t=JSON.parse(a);if(!t)return null;let o=t.timecode&&t.timecode.fps_denominator>0?t.timecode.fps_numerator/t.timecode.fps_denominator:null,n=C(t.codec_fourcc),s=[{kind:"video",codec:n,width:t.width??void 0,height:t.height??void 0,rate:o??void 0,bit_depth:p(t.codec_fourcc)??p(n)??k(n,t.video_profile)??void 0,codec_specific:{fourcc:t.codec_fourcc}}];return t.audio&&s.push({kind:"audio",codec:t.audio.codec_fourcc,channels:t.audio.channels??void 0,rate:t.audio.sample_rate??void 0,bit_depth:t.audio.bit_depth??void 0,codec_specific:{fourcc:t.audio.codec_fourcc}}),{id:e.filename,kind:"external",target_url:e.filename,available_range:o&&t.duration_seconds?{start:{value:0,rate:o},duration:{value:Math.round(t.duration_seconds*o),rate:o}}:null,reel_name:null,source_timecode:t.timecode?.display??null,container:r.format==="mov"?"mov":r.format,codec:n,size_bytes:e.fileSize,source_fps:o,source_resolution_w:t.width??null,source_resolution_h:t.height??null,streams:s,decode_provenance:t.decode_provenance??null,vendor_metadata:t.timecode?{drop_frame:t.timecode.drop_frame}:{},binding_state:"unbound",raw_extraction:{mov_probe:t},metadata:{}}},async extract(r){await c();let e=r.parts[0],a=JSON.parse(await D(u(e),e.fileSize,r.format));if(a.length===0)return null;let t=JSON.parse(await l(u(e),e.fileSize,r.format)),o=t?C(t.codec_fourcc):r.format,n=t?.timecode&&t.timecode.fps_denominator>0?t.timecode.fps_numerator/t.timecode.fps_denominator:void 0;return{v:1,container:r.format==="mov"?"mov":r.format,codec:o,width:t?.width??void 0,height:t?.height??void 0,fps:n,frame_count:U(a),timecode:t?.timecode?.display??void 0,granularity:E(a),segments:a}},async sparsify(r,e){await c();let a=r.parts[0],t=G(e.items,e.handles),o=await x(u(a),a.fileSize,JSON.stringify(t),r.format),n=JSON.parse(o);return[{filename:a.filename,fileSize:n.fileSize,structuralRanges:n.structuralRanges,essenceRanges:n.essenceRanges,trimInputs:n.trimInputs}]},async trim(r,e){await c();let a=r.parts[0],t=G(e.items,e.handles);if(t.length===0)throw new Error("isobmff trim: no usable trim ranges in items");let o=I(t),n=[];for(let[s,i]of o.entries()){let f=await A(u(a),a.fileSize,i.first_frame,i.last_frame+1,r.format),d=JSON.parse(f);o.length>1&&(d.output_clip_number=s+1,d.output_clip_count=o.length,d.output_part_number=1),n.push(d)}return n},async decode(r,e,a){await c();let t=a.detail==="coarse",o=r.parts[0];if(r.format==="crm"){let d=await w(u(o),o.fileSize,e,t?"preview":"full");return m(d)}let n=await L(r);if(e<0||e>=n.length)throw new _(e,n.length);let s=n[e],i=await o.read(s.offset,s.size);if(r.format==="braw")return m(t?b(i,0):g(i));if(B(i))return m(t?y(i,0):M(i));if(j(i))return m(t?F(i,0):z(i));if(t)return m(S(i,0));let f=await q(i);return f||m(R(i))},async decode16(r,e){await c();let a=r.parts[0];if(r.format==="crm")throw new Error("crm: no 16-bit decoder");let t=await L(r);if(e<0||e>=t.length)throw new _(e,t.length);let o=t[e],n=await a.read(o.offset,o.size),s=r.format==="braw"?h(n):B(n)?v(n):j(n)?(()=>{throw new Error("vc3: no 16-bit decoder")})():P(n);return N(s)}};async function q(r){if(!!0)return null;try{let e=await import("./prores-TQEZ3KFH.js");if(!await e.proresGpuAvailable())return null;let a=await e.decodeProResRgbaGpu(r);return a?{width:a.width,height:a.height,rgba:a.rgba}:null}catch{return null}}function j(r){return r.length>=4&&r[0]===0&&r[1]===0&&r[2]===2&&r[3]===128}function B(r){return r.length>=8&&r[4]===112&&r[5]===114&&r[6]===114&&r[7]===102}function m(r){let e=new DataView(r.buffer,r.byteOffset,8);return{width:e.getUint32(0,!0),height:e.getUint32(4,!0),rgba:r.slice(8)}}var W=new WeakMap;async function L(r){let e=W.get(r);if(!e){let a=r.parts[0];e=J(T(await O({fileSize:a.fileSize,read:a.read}))),W.set(r,e)}return e}export{te as isobmffFormat};
@@ -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(r,n){return new Promise(e=>{r.addEventListener("message",function _({data:o}){o?.type===n&&(r.removeEventListener("message",_),e(o))})})}wt(self,"wasm_bindgen_worker_init").then(async({init:r,receiver:n})=>{let e=await import("./media_core-VSTO6CS4.js");await e.default(r),postMessage({type:"wasm_bindgen_worker_ready"}),e.wbg_rayon_start_worker(n)});var Tt;async function bt(r,n,e){if(e.numThreads()===0)throw new Error("num_threads must be > 0.");let _={type:"wasm_bindgen_worker_init",init:{module_or_path:r,memory:n},receiver:e.receiver()};Tt=await Promise.all(Array.from({length:e.numThreads()},async()=>{let o=new Worker(new URL("./workerHelpers.js",import.meta.url),{type:"module"});return o.postMessage(_),await wt(o,"wasm_bindgen_worker_ready"),o})),e.build()}var tt=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){try{let d=t.__wbindgen_add_to_stack_pointer(-16),g=y(o,t.__wbindgen_export4,t.__wbindgen_export5),w=p;t.exrbench_new(d,n,e,_,g,w);var c=i().getInt32(d+0,!0),a=i().getInt32(d+4,!0),s=i().getInt32(d+8,!0);if(s)throw u(a);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=i().getFloat64(c+0,!0),_=i().getInt32(c+8,!0),o=i().getInt32(c+12,!0);if(o)throw u(_);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=i().getFloat64(c+0,!0),_=i().getInt32(c+8,!0),o=i().getInt32(c+12,!0);if(o)throw u(_);return e}finally{t.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(tt.prototype[Symbol.dispose]=tt.prototype.free);var et=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 a=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_finish(a,this.__wbg_ptr);var n=i().getInt32(a+0,!0),e=i().getInt32(a+4,!0),_=i().getInt32(a+8,!0),o=i().getInt32(a+12,!0);if(o)throw u(_);var c=v(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}header(){try{let o=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_header(o,this.__wbg_ptr);var n=i().getInt32(o+0,!0),e=i().getInt32(o+4,!0),_=v(n,e).slice();return t.__wbindgen_export3(n,e*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}n_blocks(){return t.exrstreamencoder_n_blocks(this.__wbg_ptr)>>>0}constructor(n,e,_,o,c,a,s,d,g,w){try{let I=t.__wbindgen_add_to_stack_pointer(-16),k=y(_,t.__wbindgen_export4,t.__wbindgen_export5),A=p,F=y(o,t.__wbindgen_export4,t.__wbindgen_export5),W=p,j=y(c,t.__wbindgen_export4,t.__wbindgen_export5),R=p,z=y(a,t.__wbindgen_export4,t.__wbindgen_export5),U=p,O=y(d,t.__wbindgen_export4,t.__wbindgen_export5),L=p;t.exrstreamencoder_new(I,n,e,k,A,F,W,j,R,z,U,s,O,L,g,w);var b=i().getInt32(I+0,!0),x=i().getInt32(I+4,!0),h=i().getInt32(I+8,!0);if(h)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 s=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_push_block(s,this.__wbg_ptr,n);var e=i().getInt32(s+0,!0),_=i().getInt32(s+4,!0),o=i().getInt32(s+8,!0),c=i().getInt32(s+12,!0);if(c)throw u(o);var a=v(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}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&&(et.prototype[Symbol.dispose]=et.prototype.free);var nt=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){try{let d=t.__wbindgen_add_to_stack_pointer(-16),g=y(_,t.__wbindgen_export4,t.__wbindgen_export5),w=p;t.proresbench_new(d,n,e,g,w,o);var c=i().getInt32(d+0,!0),a=i().getInt32(d+4,!0),s=i().getInt32(d+8,!0);if(s)throw u(a);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=i().getFloat64(c+0,!0),_=i().getInt32(c+8,!0),o=i().getInt32(c+12,!0);if(o)throw u(_);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&&(nt.prototype[Symbol.dispose]=nt.prototype.free);var rt=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_proresmovencoder_free(n,0)}add_frame_rgba(n){try{let o=t.__wbindgen_add_to_stack_pointer(-16),c=l(n,t.__wbindgen_export4),a=p;t.proresmovencoder_add_frame_rgba(o,this.__wbg_ptr,c,a);var e=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0);if(_)throw u(e)}finally{t.__wbindgen_add_to_stack_pointer(16)}}finish(){try{let o=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovencoder_finish(o,this.__wbg_ptr);var n=i().getInt32(o+0,!0),e=i().getInt32(o+4,!0),_=v(n,e).slice();return t.__wbindgen_export3(n,e*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}frame_count(){return t.proresmovencoder_frame_count(this.__wbg_ptr)>>>0}constructor(n,e,_,o){let c=t.proresmovencoder_new(n,e,_,o);return this.__wbg_ptr=c,yt.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&&(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_proresmovwriter_free(n,0)}finish(){try{let o=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_finish(o,this.__wbg_ptr);var n=i().getInt32(o+0,!0),e=i().getInt32(o+4,!0),_=v(n,e).slice();return t.__wbindgen_export3(n,e*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}frame_count(){return t.proresmovwriter_frame_count(this.__wbg_ptr)>>>0}header(){try{let o=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_header(o,this.__wbg_ptr);var n=i().getInt32(o+0,!0),e=i().getInt32(o+4,!0),_=v(n,e).slice();return t.__wbindgen_export3(n,e*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}mdat_box_header(){try{let o=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_mdat_box_header(o,this.__wbg_ptr);var n=i().getInt32(o+0,!0),e=i().getInt32(o+4,!0),_=v(n,e).slice();return t.__wbindgen_export3(n,e*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}mdat_box_offset(){return t.proresmovwriter_mdat_box_offset(this.__wbg_ptr)}constructor(n,e,_,o){let c=t.proresmovwriter_new(n,e,_,o);return this.__wbg_ptr=c,It.register(this,this.__wbg_ptr,this),this}push_frame(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_push_frame(a,this.__wbg_ptr);var n=i().getInt32(a+0,!0),e=i().getInt32(a+4,!0),_=i().getInt32(a+8,!0),o=i().getInt32(a+12,!0);if(o)throw u(_);var c=v(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 o=t.__wbindgen_add_to_stack_pointer(-16),c=l(n,t.__wbindgen_export4),a=p;t.proresmovwriter_push_sample(o,this.__wbg_ptr,c,a);var e=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0);if(_)throw u(e)}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_sample_len(n){try{let o=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_push_sample_len(o,this.__wbg_ptr,n);var e=i().getInt32(o+0,!0),_=i().getInt32(o+4,!0);if(_)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),_=p;t.proresmovwriter_set_profile(this.__wbg_ptr,e,_)}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&&(_t.prototype[Symbol.dispose]=_t.prototype.free);function Nt(r){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),a=l(r,t.__wbindgen_export4),s=p;t.arriraw12_clip_info(c,a,s);var _=i().getInt32(c+0,!0),o=i().getInt32(c+4,!0);return n=_,e=o,M(_,o)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function Gt(r,n,e,_){var o=E(_)?0:y(_,t.__wbindgen_export4,t.__wbindgen_export5),c=p;let a=t.arriraw_mxf_gpu_frame(f(r),n,e,o,c);return u(a)}function Xt(r,n,e){let _=t.audio_aac_au(f(r),n,e);return u(_)}function Yt(r,n){let e=t.audio_aac_config(f(r),n);return u(e)}function Jt(r,n){let e=t.audio_info(f(r),n);return u(e)}function Kt(r){let n=ut(r,t.__wbindgen_export4),e=p;return t.bench_f32_boundary(n,e)}function Qt(r,n,e,_){let o=ut(r,t.__wbindgen_export4),c=p;return t.bench_piz_no_huffman(o,c,n,e,_)}function Zt(r,n,e){let _=T(r,t.__wbindgen_export4),o=p;return t.dci_code_full_depth(_,o,n,e)}function $t(r,n,e){return t.dci_frame_cap(r,n,e)>>>0}function te(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p,w=y(n,t.__wbindgen_export4,t.__wbindgen_export5),b=p;t.dci_gpu_colour_patch(s,d,g,w,b);var e=i().getInt32(s+0,!0),_=i().getInt32(s+4,!0),o=i().getInt32(s+8,!0),c=i().getInt32(s+12,!0);if(c)throw u(o);var a=gt(e,_).slice();return t.__wbindgen_export3(e,_*2,2),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ee(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=y(r,t.__wbindgen_export4,t.__wbindgen_export5),d=p;t.dci_gpu_colour_tables(a,s,d);var n=i().getInt32(a+0,!0),e=i().getInt32(a+4,!0),_=i().getInt32(a+8,!0),o=i().getInt32(a+12,!0);if(o)throw u(_);var c=v(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ne(){try{let _=t.__wbindgen_add_to_stack_pointer(-16);t.dci_last_pass_caps(_);var r=i().getInt32(_+0,!0),n=i().getInt32(_+4,!0),e=ot(r,n).slice();return t.__wbindgen_export3(r,n*4,4),e}finally{t.__wbindgen_add_to_stack_pointer(16)}}function re(r,n){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.dci_legal_rates(c,r,n);var e=i().getInt32(c+0,!0),_=i().getInt32(c+4,!0),o=ot(e,_).slice();return t.__wbindgen_export3(e,_*4,4),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function _e(r){return t.dci_mq_bench(r)>>>0}function oe(r,n,e,_,o,c,a,s,d,g,w){try{let A=t.__wbindgen_add_to_stack_pointer(-16),F=S(r,t.__wbindgen_export4),W=p,j=l(n,t.__wbindgen_export4),R=p,z=S(e,t.__wbindgen_export4),U=p,O=S(_,t.__wbindgen_export4),L=p,P=S(o,t.__wbindgen_export4),B=p,it=S(c,t.__wbindgen_export4),at=p,ct=S(a,t.__wbindgen_export4),st=p,jt=S(s,t.__wbindgen_export4),zt=p;t.dci_pack_tier1(A,F,W,j,R,z,U,O,L,P,B,it,at,ct,st,jt,zt,d,g,w);var b=i().getInt32(A+0,!0),x=i().getInt32(A+4,!0),h=i().getInt32(A+8,!0),I=i().getInt32(A+12,!0);if(I)throw u(h);var k=v(b,x).slice();return t.__wbindgen_export3(b,x*1,1),k}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ie(r,n){let e=t.dci_stage_rgba8(r,n);return u(e)}function ae(r,n,e){let _=T(r,t.__wbindgen_export4),o=p;return t.dci_transform_only(_,o,n,e)}function ce(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p,w=l(n,t.__wbindgen_export4),b=p;t.decode_arriraw12_luma(s,d,g,w,b);var e=i().getInt32(s+0,!0),_=i().getInt32(s+4,!0),o=i().getInt32(s+8,!0),c=i().getInt32(s+12,!0);if(c)throw u(o);var a=v(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function se(r,n,e,_){let o=y(_,t.__wbindgen_export4,t.__wbindgen_export5),c=p,a=t.decode_arriraw12_mxf(f(r),n,e,o,c);return u(a)}function de(r,n,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),w=p,b=l(n,t.__wbindgen_export4),x=p;t.decode_arriraw12_preview(d,g,w,b,x,e);var _=i().getInt32(d+0,!0),o=i().getInt32(d+4,!0),c=i().getInt32(d+8,!0),a=i().getInt32(d+12,!0);if(a)throw u(c);var s=v(_,o).slice();return t.__wbindgen_export3(_,o*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function pe(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p,w=l(n,t.__wbindgen_export4),b=p;t.decode_arriraw12_rgba(s,d,g,w,b);var e=i().getInt32(s+0,!0),_=i().getInt32(s+4,!0),o=i().getInt32(s+8,!0),c=i().getInt32(s+12,!0);if(c)throw u(o);var a=v(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ge(r,n,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),w=p;t.decode_arriraw_luma(d,g,w,n,e);var _=i().getInt32(d+0,!0),o=i().getInt32(d+4,!0),c=i().getInt32(d+8,!0),a=i().getInt32(d+12,!0);if(a)throw u(c);var s=v(_,o).slice();return t.__wbindgen_export3(_,o*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ue(r,n,e,_){let o=y(_,t.__wbindgen_export4,t.__wbindgen_export5),c=p,a=t.decode_arriraw_mxf(f(r),n,e,o,c);return u(a)}function we(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(r,t.__wbindgen_export4),b=p;t.decode_arriraw_preview(g,w,b,n,e,_);var o=i().getInt32(g+0,!0),c=i().getInt32(g+4,!0),a=i().getInt32(g+8,!0),s=i().getInt32(g+12,!0);if(s)throw u(a);var d=v(o,c).slice();return t.__wbindgen_export3(o,c*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function be(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(r,t.__wbindgen_export4),b=p;t.decode_arriraw_preview_gray(g,w,b,n,e,_);var o=i().getInt32(g+0,!0),c=i().getInt32(g+4,!0),a=i().getInt32(g+8,!0),s=i().getInt32(g+12,!0);if(s)throw u(a);var d=v(o,c).slice();return t.__wbindgen_export3(o,c*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function le(r,n,e,_,o,c,a,s,d){try{let A=t.__wbindgen_add_to_stack_pointer(-16),F=l(r,t.__wbindgen_export4),W=p;var g=E(d)?0:J(d,t.__wbindgen_export4),w=p;t.decode_arriraw_preview_meta(A,F,W,n,e,_,o,c,a,s,g,w);var b=i().getInt32(A+0,!0),x=i().getInt32(A+4,!0),h=i().getInt32(A+8,!0),I=i().getInt32(A+12,!0);if(I)throw u(h);var k=v(b,x).slice();return t.__wbindgen_export3(b,x*1,1),k}finally{t.__wbindgen_add_to_stack_pointer(16)}}function fe(r,n,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),w=p;t.decode_arriraw_rgba(d,g,w,n,e);var _=i().getInt32(d+0,!0),o=i().getInt32(d+4,!0),c=i().getInt32(d+8,!0),a=i().getInt32(d+12,!0);if(a)throw u(c);var s=v(_,o).slice();return t.__wbindgen_export3(_,o*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ve(r,n,e,_,o,c,a,s){try{let k=t.__wbindgen_add_to_stack_pointer(-16),A=l(r,t.__wbindgen_export4),F=p;var d=E(s)?0:J(s,t.__wbindgen_export4),g=p;t.decode_arriraw_rgba_meta(k,A,F,n,e,_,o,c,a,d,g);var w=i().getInt32(k+0,!0),b=i().getInt32(k+4,!0),x=i().getInt32(k+8,!0),h=i().getInt32(k+12,!0);if(h)throw u(x);var I=v(w,b).slice();return t.__wbindgen_export3(w,b*1,1),I}finally{t.__wbindgen_add_to_stack_pointer(16)}}function xe(r,n,e,_){let o=t.decode_audio_pcm(f(r),n,e,_);return u(o)}function ye(r){try{let o=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),a=p;t.decode_braw_gen5log(o,c,a);var n=i().getInt32(o+0,!0),e=i().getInt32(o+4,!0),_=v(n,e).slice();return t.__wbindgen_export3(n,e*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ie(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_braw_luma(a,s,d);var n=i().getInt32(a+0,!0),e=i().getInt32(a+4,!0),_=i().getInt32(a+8,!0),o=i().getInt32(a+12,!0);if(o)throw u(_);var c=v(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function me(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p;t.decode_braw_preview(s,d,g,n);var e=i().getInt32(s+0,!0),_=i().getInt32(s+4,!0),o=i().getInt32(s+8,!0),c=i().getInt32(s+12,!0);if(c)throw u(o);var a=v(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function he(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_braw_rgba(a,s,d);var n=i().getInt32(a+0,!0),e=i().getInt32(a+4,!0),_=i().getInt32(a+8,!0),o=i().getInt32(a+12,!0);if(o)throw u(_);var c=v(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ke(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_cr3_rgba(a,s,d);var n=i().getInt32(a+0,!0),e=i().getInt32(a+4,!0),_=i().getInt32(a+8,!0),o=i().getInt32(a+12,!0);if(o)throw u(_);var c=v(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ae(r,n,e,_){let o=y(_,t.__wbindgen_export4,t.__wbindgen_export5),c=p,a=t.decode_crm(f(r),n,e,o,c);return u(a)}function Fe(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p;t.decode_dng_preview(s,d,g,n);var e=i().getInt32(s+0,!0),_=i().getInt32(s+4,!0),o=i().getInt32(s+8,!0),c=i().getInt32(s+12,!0);if(c)throw u(o);var a=v(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Me(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_dng_rgba(a,s,d);var n=i().getInt32(a+0,!0),e=i().getInt32(a+4,!0),_=i().getInt32(a+8,!0),o=i().getInt32(a+12,!0);if(o)throw u(_);var c=v(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Re(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p;t.decode_dpx_preview(s,d,g,n);var e=i().getInt32(s+0,!0),_=i().getInt32(s+4,!0),o=i().getInt32(s+8,!0),c=i().getInt32(s+12,!0);if(c)throw u(o);var a=v(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function We(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_dpx_rgba(a,s,d);var n=i().getInt32(a+0,!0),e=i().getInt32(a+4,!0),_=i().getInt32(a+8,!0),o=i().getInt32(a+12,!0);if(o)throw u(_);var c=v(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function je(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_exr_linear(a,s,d);var n=i().getInt32(a+0,!0),e=i().getInt32(a+4,!0),_=i().getInt32(a+8,!0),o=i().getInt32(a+12,!0);if(o)throw u(_);var c=v(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ze(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p;t.decode_exr_preview(s,d,g,n);var e=i().getInt32(s+0,!0),_=i().getInt32(s+4,!0),o=i().getInt32(s+8,!0),c=i().getInt32(s+12,!0);if(c)throw u(o);var a=v(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Te(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_exr_rgba(a,s,d);var n=i().getInt32(a+0,!0),e=i().getInt32(a+4,!0),_=i().getInt32(a+8,!0),o=i().getInt32(a+12,!0);if(o)throw u(_);var c=v(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Se(r,n,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),w=p;t.decode_prores_band_rgba(d,g,w,n,e);var _=i().getInt32(d+0,!0),o=i().getInt32(d+4,!0),c=i().getInt32(d+8,!0),a=i().getInt32(d+12,!0);if(a)throw u(c);var s=v(_,o).slice();return t.__wbindgen_export3(_,o*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ue(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_prores_luma(a,s,d);var n=i().getInt32(a+0,!0),e=i().getInt32(a+4,!0),_=i().getInt32(a+8,!0),o=i().getInt32(a+12,!0);if(o)throw u(_);var c=v(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Oe(r,n,e,_){let o=y(_,t.__wbindgen_export4,t.__wbindgen_export5),c=p,a=t.decode_prores_mxf(f(r),n,e,o,c);return u(a)}function qe(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p;t.decode_prores_preview(s,d,g,n);var e=i().getInt32(s+0,!0),_=i().getInt32(s+4,!0),o=i().getInt32(s+8,!0),c=i().getInt32(s+12,!0);if(c)throw u(o);var a=v(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Le(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_prores_raw_acescct(a,s,d);var n=i().getInt32(a+0,!0),e=i().getInt32(a+4,!0),_=i().getInt32(a+8,!0),o=i().getInt32(a+12,!0);if(o)throw u(_);var c=v(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ee(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_prores_raw_luma(a,s,d);var n=i().getInt32(a+0,!0),e=i().getInt32(a+4,!0),_=i().getInt32(a+8,!0),o=i().getInt32(a+12,!0);if(o)throw u(_);var c=v(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function De(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p;t.decode_prores_raw_preview(s,d,g,n);var e=i().getInt32(s+0,!0),_=i().getInt32(s+4,!0),o=i().getInt32(s+8,!0),c=i().getInt32(s+12,!0);if(c)throw u(o);var a=v(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Pe(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_prores_raw_rec2020(a,s,d);var n=i().getInt32(a+0,!0),e=i().getInt32(a+4,!0),_=i().getInt32(a+8,!0),o=i().getInt32(a+12,!0);if(o)throw u(_);var c=v(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Be(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_prores_raw_rgba(a,s,d);var n=i().getInt32(a+0,!0),e=i().getInt32(a+4,!0),_=i().getInt32(a+8,!0),o=i().getInt32(a+12,!0);if(o)throw u(_);var c=v(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ce(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_prores_rgb16(a,s,d);var n=i().getInt32(a+0,!0),e=i().getInt32(a+4,!0),_=i().getInt32(a+8,!0),o=i().getInt32(a+12,!0);if(o)throw u(_);var c=v(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ve(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_prores_rgba(a,s,d);var n=i().getInt32(a+0,!0),e=i().getInt32(a+4,!0),_=i().getInt32(a+8,!0),o=i().getInt32(a+12,!0);if(o)throw u(_);var c=v(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function He(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_prores_thumb_dc32(a,s,d);var n=i().getInt32(a+0,!0),e=i().getInt32(a+4,!0),_=i().getInt32(a+8,!0),o=i().getInt32(a+12,!0);if(o)throw u(_);var c=v(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ne(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_r3d_luma(a,s,d);var n=i().getInt32(a+0,!0),e=i().getInt32(a+4,!0),_=i().getInt32(a+8,!0),o=i().getInt32(a+12,!0);if(o)throw u(_);var c=v(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ge(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p;t.decode_r3d_preview(s,d,g,n);var e=i().getInt32(s+0,!0),_=i().getInt32(s+4,!0),o=i().getInt32(s+8,!0),c=i().getInt32(s+12,!0);if(c)throw u(o);var a=v(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Xe(r,n,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),w=p,b=l(n,t.__wbindgen_export4),x=p;t.decode_r3d_preview_clip(d,g,w,b,x,e);var _=i().getInt32(d+0,!0),o=i().getInt32(d+4,!0),c=i().getInt32(d+8,!0),a=i().getInt32(d+12,!0);if(a)throw u(c);var s=v(_,o).slice();return t.__wbindgen_export3(_,o*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ye(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_r3d_rgb16(a,s,d);var n=i().getInt32(a+0,!0),e=i().getInt32(a+4,!0),_=i().getInt32(a+8,!0),o=i().getInt32(a+12,!0);if(o)throw u(_);var c=v(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Je(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_r3d_rgba(a,s,d);var n=i().getInt32(a+0,!0),e=i().getInt32(a+4,!0),_=i().getInt32(a+8,!0),o=i().getInt32(a+12,!0);if(o)throw u(_);var c=v(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ke(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p,w=l(n,t.__wbindgen_export4),b=p;t.decode_r3d_rgba_clip(s,d,g,w,b);var e=i().getInt32(s+0,!0),_=i().getInt32(s+4,!0),o=i().getInt32(s+8,!0),c=i().getInt32(s+12,!0);if(c)throw u(o);var a=v(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Qe(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p;t.decode_tiff_preview(s,d,g,n);var e=i().getInt32(s+0,!0),_=i().getInt32(s+4,!0),o=i().getInt32(s+8,!0),c=i().getInt32(s+12,!0);if(c)throw u(o);var a=v(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ze(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_tiff_rgba(a,s,d);var n=i().getInt32(a+0,!0),e=i().getInt32(a+4,!0),_=i().getInt32(a+8,!0),o=i().getInt32(a+12,!0);if(o)throw u(_);var c=v(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function $e(r,n,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),w=p;t.decode_vc3_band_rgba(d,g,w,n,e);var _=i().getInt32(d+0,!0),o=i().getInt32(d+4,!0),c=i().getInt32(d+8,!0),a=i().getInt32(d+12,!0);if(a)throw u(c);var s=v(_,o).slice();return t.__wbindgen_export3(_,o*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function tn(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_vc3_luma(a,s,d);var n=i().getInt32(a+0,!0),e=i().getInt32(a+4,!0),_=i().getInt32(a+8,!0),o=i().getInt32(a+12,!0);if(o)throw u(_);var c=v(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function en(r,n,e,_){let o=y(_,t.__wbindgen_export4,t.__wbindgen_export5),c=p,a=t.decode_vc3_mxf(f(r),n,e,o,c);return u(a)}function nn(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p;t.decode_vc3_preview(s,d,g,n);var e=i().getInt32(s+0,!0),_=i().getInt32(s+4,!0),o=i().getInt32(s+8,!0),c=i().getInt32(s+12,!0);if(c)throw u(o);var a=v(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function rn(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_vc3_rgba(a,s,d);var n=i().getInt32(a+0,!0),e=i().getInt32(a+4,!0),_=i().getInt32(a+8,!0),o=i().getInt32(a+12,!0);if(o)throw u(_);var c=v(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function _n(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_xocn_luma(a,s,d);var n=i().getInt32(a+0,!0),e=i().getInt32(a+4,!0),_=i().getInt32(a+8,!0),o=i().getInt32(a+12,!0);if(o)throw u(_);var c=v(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function on(r,n,e,_){let o=y(_,t.__wbindgen_export4,t.__wbindgen_export5),c=p,a=t.decode_xocn_mxf(f(r),n,e,o,c);return u(a)}function an(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p;t.decode_xocn_preview(s,d,g,n);var e=i().getInt32(s+0,!0),_=i().getInt32(s+4,!0),o=i().getInt32(s+8,!0),c=i().getInt32(s+12,!0);if(c)throw u(o);var a=v(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function cn(r){try{let o=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),a=p;t.decode_xocn_rgb16(o,c,a);var n=i().getInt32(o+0,!0),e=i().getInt32(o+4,!0),_=v(n,e).slice();return t.__wbindgen_export3(n,e*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function sn(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_xocn_rgba(a,s,d);var n=i().getInt32(a+0,!0),e=i().getInt32(a+4,!0),_=i().getInt32(a+8,!0),o=i().getInt32(a+12,!0);if(o)throw u(_);var c=v(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function dn(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=T(r,t.__wbindgen_export4),b=p;t.encode_dci_j2c(g,w,b,n,e,_);var o=i().getInt32(g+0,!0),c=i().getInt32(g+4,!0),a=i().getInt32(g+8,!0),s=i().getInt32(g+12,!0);if(s)throw u(a);var d=v(o,c).slice();return t.__wbindgen_export3(o,c*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function pn(r,n,e,_,o,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=T(r,t.__wbindgen_export4),h=p,I=y(e,t.__wbindgen_export4,t.__wbindgen_export5),k=p;t.encode_dci_j2c_rgb(b,x,h,n,I,k,_,o,c);var a=i().getInt32(b+0,!0),s=i().getInt32(b+4,!0),d=i().getInt32(b+8,!0),g=i().getInt32(b+12,!0);if(g)throw u(d);var w=v(a,s).slice();return t.__wbindgen_export3(a,s*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function gn(r,n,e,_,o){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p,h=y(n,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.encode_dci_j2c_rgba8(w,b,x,h,I,e,_,o);var c=i().getInt32(w+0,!0),a=i().getInt32(w+4,!0),s=i().getInt32(w+8,!0),d=i().getInt32(w+12,!0);if(d)throw u(s);var g=v(c,a).slice();return t.__wbindgen_export3(c,a*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function un(r,n,e,_,o){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=y(_,t.__wbindgen_export4,t.__wbindgen_export5),x=p;t.encode_dci_j2c_staged(w,r,n,e,b,x,o);var c=i().getInt32(w+0,!0),a=i().getInt32(w+4,!0),s=i().getInt32(w+8,!0),d=i().getInt32(w+12,!0);if(d)throw u(s);var g=v(c,a).slice();return t.__wbindgen_export3(c,a*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function wn(r,n,e,_,o){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=y(_,t.__wbindgen_export4,t.__wbindgen_export5),x=p;t.encode_dci_j2c_staged_modelled(w,r,n,e,b,x,o);var c=i().getInt32(w+0,!0),a=i().getInt32(w+4,!0),s=i().getInt32(w+8,!0),d=i().getInt32(w+12,!0);if(d)throw u(s);var g=v(c,a).slice();return t.__wbindgen_export3(c,a*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function bn(r,n,e,_,o,c,a,s,d,g,w,b,x,h,I){try{let R=t.__wbindgen_add_to_stack_pointer(-16),z=ut(r,t.__wbindgen_export4),U=p,O=y(o,t.__wbindgen_export4,t.__wbindgen_export5),L=p,P=y(c,t.__wbindgen_export4,t.__wbindgen_export5),B=p,it=y(a,t.__wbindgen_export4,t.__wbindgen_export5),at=p,ct=y(x,t.__wbindgen_export4,t.__wbindgen_export5),st=p;t.encode_exr(R,z,U,n,e,_,O,L,P,B,it,at,s,d,g,w,b,ct,st,h,I);var k=i().getInt32(R+0,!0),A=i().getInt32(R+4,!0),F=i().getInt32(R+8,!0),W=i().getInt32(R+12,!0);if(W)throw u(F);var j=v(k,A).slice();return t.__wbindgen_export3(k,A*1,1),j}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ln(r,n,e,_,o){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p;t.encode_prores_4444_alpha_mov_rgba(w,b,x,n,e,_,o);var c=i().getInt32(w+0,!0),a=i().getInt32(w+4,!0),s=i().getInt32(w+8,!0),d=i().getInt32(w+12,!0);if(d)throw u(s);var g=v(c,a).slice();return t.__wbindgen_export3(c,a*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function fn(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(r,t.__wbindgen_export4),b=p;t.encode_prores_4444_alpha_sample_q(g,w,b,n,e,_);var o=i().getInt32(g+0,!0),c=i().getInt32(g+4,!0),a=i().getInt32(g+8,!0),s=i().getInt32(g+12,!0);if(s)throw u(a);var d=v(o,c).slice();return t.__wbindgen_export3(o,c*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function vn(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(r,t.__wbindgen_export4),b=p;t.encode_prores_444_sample_cbr(g,w,b,n,e,_);var o=i().getInt32(g+0,!0),c=i().getInt32(g+4,!0),a=i().getInt32(g+8,!0),s=i().getInt32(g+12,!0);if(s)throw u(a);var d=v(o,c).slice();return t.__wbindgen_export3(o,c*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function xn(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=T(r,t.__wbindgen_export4),b=p;t.encode_prores_444_sample_cbr_rgb16(g,w,b,n,e,_);var o=i().getInt32(g+0,!0),c=i().getInt32(g+4,!0),a=i().getInt32(g+8,!0),s=i().getInt32(g+12,!0);if(s)throw u(a);var d=v(o,c).slice();return t.__wbindgen_export3(o,c*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function yn(r,n,e,_,o){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=T(r,t.__wbindgen_export4),x=p,h=T(o,t.__wbindgen_export4),I=p;t.encode_prores_444_sample_cbr_rgb16_lut(w,b,x,n,e,_,h,I);var c=i().getInt32(w+0,!0),a=i().getInt32(w+4,!0),s=i().getInt32(w+8,!0),d=i().getInt32(w+12,!0);if(d)throw u(s);var g=v(c,a).slice();return t.__wbindgen_export3(c,a*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function In(r,n,e,_,o){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p;t.encode_prores_mov_rgba(w,b,x,n,e,_,o);var c=i().getInt32(w+0,!0),a=i().getInt32(w+4,!0),s=i().getInt32(w+8,!0),d=i().getInt32(w+12,!0);if(d)throw u(s);var g=v(c,a).slice();return t.__wbindgen_export3(c,a*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function mn(r,n,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),w=p;t.encode_prores_rgba(d,g,w,n,e);var _=i().getInt32(d+0,!0),o=i().getInt32(d+4,!0),c=i().getInt32(d+8,!0),a=i().getInt32(d+12,!0);if(a)throw u(c);var s=v(_,o).slice();return t.__wbindgen_export3(_,o*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function hn(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(r,t.__wbindgen_export4),b=p;t.encode_prores_sample_cbr(g,w,b,n,e,_);var o=i().getInt32(g+0,!0),c=i().getInt32(g+4,!0),a=i().getInt32(g+8,!0),s=i().getInt32(g+12,!0);if(s)throw u(a);var d=v(o,c).slice();return t.__wbindgen_export3(o,c*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function kn(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=T(r,t.__wbindgen_export4),b=p;t.encode_prores_sample_cbr_rgb16(g,w,b,n,e,_);var o=i().getInt32(g+0,!0),c=i().getInt32(g+4,!0),a=i().getInt32(g+8,!0),s=i().getInt32(g+12,!0);if(s)throw u(a);var d=v(o,c).slice();return t.__wbindgen_export3(o,c*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function An(r,n,e,_,o){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=T(r,t.__wbindgen_export4),x=p,h=T(o,t.__wbindgen_export4),I=p;t.encode_prores_sample_cbr_rgb16_lut(w,b,x,n,e,_,h,I);var c=i().getInt32(w+0,!0),a=i().getInt32(w+4,!0),s=i().getInt32(w+8,!0),d=i().getInt32(w+12,!0);if(d)throw u(s);var g=v(c,a).slice();return t.__wbindgen_export3(c,a*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Fn(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(r,t.__wbindgen_export4),b=p;t.encode_prores_sample_q(g,w,b,n,e,_);var o=i().getInt32(g+0,!0),c=i().getInt32(g+4,!0),a=i().getInt32(g+8,!0),s=i().getInt32(g+12,!0);if(s)throw u(a);var d=v(o,c).slice();return t.__wbindgen_export3(o,c*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Mn(r,n,e,_){let o,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),h=y(r,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.exr_sequence_filename(x,h,I,n,e,_);var a=i().getInt32(x+0,!0),s=i().getInt32(x+4,!0),d=i().getInt32(x+8,!0),g=i().getInt32(x+12,!0),w=a,b=s;if(g)throw w=0,b=0,u(d);return o=w,c=b,M(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(o,c,1)}}function Rn(r){let n=t.initThreadPool(r);return u(n)}function Wn(r){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),a=l(r,t.__wbindgen_export4),s=p;t.inspect_cr3(c,a,s);var _=i().getInt32(c+0,!0),o=i().getInt32(c+4,!0);return n=_,e=o,M(_,o)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function jn(r){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),a=l(r,t.__wbindgen_export4),s=p;t.inspect_dng(c,a,s);var _=i().getInt32(c+0,!0),o=i().getInt32(c+4,!0);return n=_,e=o,M(_,o)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function zn(r){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),a=l(r,t.__wbindgen_export4),s=p;t.inspect_dpx(c,a,s);var _=i().getInt32(c+0,!0),o=i().getInt32(c+4,!0);return n=_,e=o,M(_,o)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function Tn(r){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),a=l(r,t.__wbindgen_export4),s=p;t.inspect_exr(c,a,s);var _=i().getInt32(c+0,!0),o=i().getInt32(c+4,!0);return n=_,e=o,M(_,o)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function Sn(r,n,e){let _=y(e,t.__wbindgen_export4,t.__wbindgen_export5),o=p,c=t.inspect_isobmff(f(r),n,_,o);return u(c)}function Un(r){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),a=l(r,t.__wbindgen_export4),s=p;t.inspect_tiff(c,a,s);var _=i().getInt32(c+0,!0),o=i().getInt32(c+4,!0);return n=_,e=o,M(_,o)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function On(r,n){let e=t.inspect_wav(f(r),n);return u(e)}function qn(r,n){let e=t.is_arriraw12_mxf(f(r),n);return u(e)}function Ln(r,n){let e=t.is_arriraw_mxf(f(r),n);return u(e)}function En(r,n){let e=t.is_crm(f(r),n);return u(e)}function Dn(r,n){let e=t.is_prores_mxf(f(r),n);return u(e)}function Pn(r,n){let e=t.is_vc3_mxf(f(r),n);return u(e)}function Bn(r,n){let e=t.is_xavc_mxf(f(r),n);return u(e)}function Cn(r,n){let e=t.is_xocn_mxf(f(r),n);return u(e)}function Vn(r,n,e){let _=y(e,t.__wbindgen_export4,t.__wbindgen_export5),o=p,c=t.list_isobmff_segments(f(r),n,_,o);return u(c)}function Hn(r,n){let e=t.list_mxf_segments(f(r),n);return u(e)}function Nn(r,n){let e=y(n,t.__wbindgen_export4,t.__wbindgen_export5),_=p,o=t.list_r3d_frames(f(r),e,_);return u(o)}function Gn(r,n){let e=y(n,t.__wbindgen_export4,t.__wbindgen_export5),_=p,o=t.list_r3d_segments(f(r),e,_);return u(o)}function Xn(r,n){let e=t.list_wav_segments(f(r),n);return u(e)}function Yn(r,n,e,_,o,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(r,t.__wbindgen_export4),h=p,I=S(n,t.__wbindgen_export4),k=p;t.mux_prores_4444_alpha_samples(b,x,h,I,k,e,_,o,c);var a=i().getInt32(b+0,!0),s=i().getInt32(b+4,!0),d=i().getInt32(b+8,!0),g=i().getInt32(b+12,!0);if(g)throw u(d);var w=v(a,s).slice();return t.__wbindgen_export3(a,s*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Jn(r,n,e,_,o,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(r,t.__wbindgen_export4),h=p,I=S(n,t.__wbindgen_export4),k=p;t.mux_prores_samples(b,x,h,I,k,e,_,o,c);var a=i().getInt32(b+0,!0),s=i().getInt32(b+4,!0),d=i().getInt32(b+8,!0),g=i().getInt32(b+12,!0);if(g)throw u(d);var w=v(a,s).slice();return t.__wbindgen_export3(a,s*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Kn(r,n,e,_,o,c,a,s,d,g,w,b){try{let F=t.__wbindgen_add_to_stack_pointer(-16),W=l(r,t.__wbindgen_export4),j=p,R=S(n,t.__wbindgen_export4),z=p,U=y(a,t.__wbindgen_export4,t.__wbindgen_export5),O=p;t.mux_prores_samples_full(F,W,j,R,z,e,_,o,c,U,O,s,d,g,w,b);var x=i().getInt32(F+0,!0),h=i().getInt32(F+4,!0),I=i().getInt32(F+8,!0),k=i().getInt32(F+12,!0);if(k)throw u(I);var A=v(x,h).slice();return t.__wbindgen_export3(x,h*1,1),A}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Qn(r,n,e,_){let o=t.mxf_au_run(f(r),n,e,_);return u(o)}function Zn(r,n){let e=t.mxf_frame_index(f(r),n);return u(e)}function $n(r,n){let e=t.mxf_gop_map(f(r),n);return u(e)}function tr(r,n){let e=t.mxf_h264_kind(f(r),n);return u(e)}function er(r,n){let e,_;try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p,h=y(n,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.plan_isobmff_trim(w,b,x,h,I);var o=i().getInt32(w+0,!0),c=i().getInt32(w+4,!0),a=i().getInt32(w+8,!0),s=i().getInt32(w+12,!0),d=o,g=c;if(s)throw d=0,g=0,u(a);return e=d,_=g,M(d,g)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,_,1)}}function nr(r,n,e,_,o){let c=y(o,t.__wbindgen_export4,t.__wbindgen_export5),a=p,s=t.plan_isobmff_trim_reader(f(r),n,e,_,c,a);return u(s)}function rr(r){let n,e;try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=y(r,t.__wbindgen_export4,t.__wbindgen_export5),b=p;t.plan_mxf_compact_trim(g,w,b);var _=i().getInt32(g+0,!0),o=i().getInt32(g+4,!0),c=i().getInt32(g+8,!0),a=i().getInt32(g+12,!0),s=_,d=o;if(a)throw s=0,d=0,u(c);return n=s,e=d,M(s,d)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function _r(r,n,e,_){let o=t.plan_mxf_trim(f(r),n,e,_);return u(o)}function or(r,n,e,_,o,c,a,s){let d,g;try{let x=t.__wbindgen_add_to_stack_pointer(-16),h=l(r,t.__wbindgen_export4),I=p,k=l(n,t.__wbindgen_export4),A=p,F=l(e,t.__wbindgen_export4),W=p,j=l(_,t.__wbindgen_export4),R=p,z=J(o,t.__wbindgen_export4),U=p,O=J(c,t.__wbindgen_export4),L=p,P=J(a,t.__wbindgen_export4),B=p;t.plan_r3d_compact(x,h,I,k,A,F,W,j,R,z,U,O,L,P,B,s);var w=i().getInt32(x+0,!0),b=i().getInt32(x+4,!0);return d=w,g=b,M(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(d,g,1)}}function ir(r,n,e,_){let o,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),h=l(r,t.__wbindgen_export4),I=p;t.plan_wav_trim(x,h,I,n,e,_);var a=i().getInt32(x+0,!0),s=i().getInt32(x+4,!0),d=i().getInt32(x+8,!0),g=i().getInt32(x+12,!0),w=a,b=s;if(g)throw w=0,b=0,u(d);return o=w,c=b,M(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(o,c,1)}}function ar(r,n,e,_,o){let c=t.plan_wav_trim_reader(f(r),n,e,_,o);return u(c)}function cr(r,n,e,_){let o=y(e,t.__wbindgen_export4,t.__wbindgen_export5),c=p,a=y(_,t.__wbindgen_export4,t.__wbindgen_export5),s=p,d=t.prepare_isobmff(f(r),n,o,c,a,s);return u(d)}function sr(r,n,e){let _=y(e,t.__wbindgen_export4,t.__wbindgen_export5),o=p,c=t.prepare_mxf(f(r),n,_,o);return u(c)}function dr(r,n,e){let _=y(n,t.__wbindgen_export4,t.__wbindgen_export5),o=p,c=y(e,t.__wbindgen_export4,t.__wbindgen_export5),a=p,s=t.prepare_r3d(f(r),_,o,c,a);return u(s)}function pr(r,n,e,_){let o=y(e,t.__wbindgen_export4,t.__wbindgen_export5),c=p,a=t.prepare_wav(f(r),n,o,c,_);return u(a)}function gr(r){let n,e;try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(r,t.__wbindgen_export4),b=p;t.probe_mov(g,w,b);var _=i().getInt32(g+0,!0),o=i().getInt32(g+4,!0),c=i().getInt32(g+8,!0),a=i().getInt32(g+12,!0),s=_,d=o;if(a)throw s=0,d=0,u(c);return n=s,e=d,M(s,d)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function ur(r,n){let e=t.probe_mxf(f(r),n);return u(e)}function wr(r,n){let e=y(n,t.__wbindgen_export4,t.__wbindgen_export5),_=p,o=t.probe_r3d(f(r),e,_);return u(o)}function br(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.prores_band_info(a,s,d);var n=i().getInt32(a+0,!0),e=i().getInt32(a+4,!0),_=i().getInt32(a+8,!0),o=i().getInt32(a+12,!0);if(o)throw u(_);var c=ot(n,e).slice();return t.__wbindgen_export3(n,e*4,4),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function lr(){t.prores_reset_rate_control()}function fr(r){try{let o=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),a=p;t.r3d_gpu_develop_params(o,c,a);var n=i().getInt32(o+0,!0),e=i().getInt32(o+4,!0),_=v(n,e).slice();return t.__wbindgen_export3(n,e*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function vr(r){let n=l(r,t.__wbindgen_export4),e=p;return t.r3d_is_helium(n,e)!==0}function xr(r){let n,e;try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(r,t.__wbindgen_export4),b=p;t.read_arriraw_fcs(g,w,b);var _=i().getInt32(g+0,!0),o=i().getInt32(g+4,!0),c=i().getInt32(g+8,!0),a=i().getInt32(g+12,!0),s=_,d=o;if(a)throw s=0,d=0,u(c);return n=s,e=d,M(s,d)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function yr(r,n){try{let c=t.__wbindgen_add_to_stack_pointer(-16),a=l(r,t.__wbindgen_export4),s=p;t.read_arriraw_unit_correction(c,a,s,n);var e=i().getInt32(c+0,!0),_=i().getInt32(c+4,!0),o=Lt(e,_).slice();return t.__wbindgen_export3(e,_*8,8),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ir(r,n,e,_,o,c,a){let s,d;try{let k=t.__wbindgen_add_to_stack_pointer(-16),A=l(r,t.__wbindgen_export4),F=p,W=l(_,t.__wbindgen_export4),j=p,R=y(a,t.__wbindgen_export4,t.__wbindgen_export5),z=p;t.recover_reframe(k,A,F,n,e,W,j,o,c,R,z);var g=i().getInt32(k+0,!0),w=i().getInt32(k+4,!0),b=i().getInt32(k+8,!0),x=i().getInt32(k+12,!0),h=g,I=w;if(x)throw h=0,I=0,u(b);return s=h,d=I,M(h,I)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(s,d,1)}}function mr(r,n,e,_,o,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=T(r,t.__wbindgen_export4),h=p,I=y(c,t.__wbindgen_export4,t.__wbindgen_export5),k=p;t.resample_rgba16(b,x,h,n,e,_,o,I,k);var a=i().getInt32(b+0,!0),s=i().getInt32(b+4,!0),d=i().getInt32(b+8,!0),g=i().getInt32(b+12,!0);if(g)throw u(d);var w=gt(a,s).slice();return t.__wbindgen_export3(a,s*2,2),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function hr(r,n,e,_,o,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(r,t.__wbindgen_export4),h=p,I=y(c,t.__wbindgen_export4,t.__wbindgen_export5),k=p;t.resample_rgba8(b,x,h,n,e,_,o,I,k);var a=i().getInt32(b+0,!0),s=i().getInt32(b+4,!0),d=i().getInt32(b+8,!0),g=i().getInt32(b+12,!0);if(g)throw u(d);var w=v(a,s).slice();return t.__wbindgen_export3(a,s*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function kr(){t.reset_dci_rate_state()}function Ar(r,n,e,_,o){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p,h=y(o,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.rgba8_to_xyz12(w,b,x,n,e,_,h,I);var c=i().getInt32(w+0,!0),a=i().getInt32(w+4,!0),s=i().getInt32(w+8,!0),d=i().getInt32(w+12,!0);if(d)throw u(s);var g=gt(c,a).slice();return t.__wbindgen_export3(c,a*2,2),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Fr(r,n,e,_){let o=y(n,t.__wbindgen_export4,t.__wbindgen_export5),c=p,a=y(e,t.__wbindgen_export4,t.__wbindgen_export5),s=p,d=y(_,t.__wbindgen_export4,t.__wbindgen_export5),g=p,w=t.trim_r3d(f(r),o,c,a,s,d,g);return u(w)}function Mr(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.vc3_band_info(a,s,d);var n=i().getInt32(a+0,!0),e=i().getInt32(a+4,!0),_=i().getInt32(a+8,!0),o=i().getInt32(a+12,!0);if(o)throw u(_);var c=ot(n,e).slice();return t.__wbindgen_export3(n,e*4,4),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Rr(r,n,e){let _=y(e,t.__wbindgen_export4,t.__wbindgen_export5),o=p,c=t.video_frame_index_isobmff_reader(f(r),n,_,o);return u(c)}var Z=class r{static __wrap(n){let e=Object.create(r.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 Wr(r){t.wbg_rayon_start_worker(r)}function jr(r,n,e){let _=t.xavc_au(f(r),n,e);return u(_)}function zr(r,n){let e=t.xavc_frame_count(f(r),n);return u(e)}function Tr(r,n){let e=t.xocn_frame_count(f(r),n);return u(e)}function kt(r){return{__proto__:null,"./media_core_bg.js":{__proto__:null,__wbg___wbindgen_is_function_acc5528be2b923f2:function(e){return typeof m(e)=="function"},__wbg___wbindgen_is_undefined_721f8decd50c87a3:function(e){return m(e)===void 0},__wbg___wbindgen_memory_9751d9a3017e7c25:function(){let e=t.memory;return f(e)},__wbg___wbindgen_module_f86f28f0f85995dd:function(){return f(Rt)},__wbg___wbindgen_rethrow_858623e73c3311dc:function(e){throw u(e)},__wbg___wbindgen_throw_ea4887a5f8f9a9db:function(e,_){throw new Error(M(e,_))},__wbg__wbg_cb_unref_33c39e13d73b25f6:function(e){m(e)._wbg_cb_unref()},__wbg_async_4ec36f08efecafdc:function(e){return m(e).async},__wbg_buffer_49b4f592d8036785:function(e){let _=m(e).buffer;return f(_)},__wbg_call_0e855b388e315e17:function(){return $(function(e,_,o,c){let a=m(e).call(m(_),m(o),m(c));return f(a)},arguments)},__wbg_call_5575218572ead796:function(){return $(function(e,_,o){let c=m(e).call(m(_),m(o));return f(c)},arguments)},__wbg_call_dd0f909cbc9405d0:function(){return $(function(e,_,o,c,a){let s=m(e).call(m(_),m(o),m(c),m(a));return f(s)},arguments)},__wbg_data_23c14f7d1102d077:function(e){let _=m(e).data;return f(_)},__wbg_instanceof_Window_0d356b88a2f77c42:function(e){let _;try{_=m(e)instanceof Window}catch{_=!1}return _},__wbg_length_589238bdcf171f0e:function(e){return m(e).length},__wbg_new_476e05fb84d8e4f3:function(e){let _=new Int32Array(m(e));return f(_)},__wbg_new_81880fb5002cb255:function(e){let _=new Uint8Array(m(e));return f(_)},__wbg_new_f85beb941dc6d8aa:function(e,_){try{var o={a:e,b:_},c=(s,d)=>{let g=o.a;o.a=0;try{return lt(g,o.b,s,d)}finally{o.a=g}};let a=new Promise(c);return f(a)}finally{o.a=0}},__wbg_new_typed_00a409eb4ec4f2d9:function(e,_){try{var o={a:e,b:_},c=(s,d)=>{let g=o.a;o.a=0;try{return lt(g,o.b,s,d)}finally{o.a=g}};let a=new Promise(c);return f(a)}finally{o.a=0}},__wbg_new_worker_e68fc8188cc230b5:function(e,_){let o=new Worker(M(e,_));return f(o)},__wbg_of_8737c43050b5546e:function(e,_,o){let c=Array.of(m(e),m(_),m(o));return f(c)},__wbg_postMessage_0162be6e48cf631e:function(){return $(function(e,_){m(e).postMessage(m(_))},arguments)},__wbg_prototypesetcall_d721637c7ca66eb8:function(e,_,o){Uint8Array.prototype.set.call(v(e,_),m(o))},__wbg_queueMicrotask_1c9b3800e321a967:function(e){let _=m(e).queueMicrotask;return f(_)},__wbg_queueMicrotask_311744e534a929a3:function(e){queueMicrotask(m(e))},__wbg_resolve_d82363d90af6928a:function(e){let _=Promise.resolve(m(e));return f(_)},__wbg_set_onmessage_d05709471e546dca:function(e,_){m(e).onmessage=m(_)},__wbg_startWorkers_8b582d57e92bd2d4:function(e,_,o){let c=bt(u(e),u(_),Z.__wrap(o));return f(c)},__wbg_static_accessor_GLOBAL_THIS_2fee5048bcca5938:function(){let e=typeof globalThis>"u"?null:globalThis;return E(e)?0:f(e)},__wbg_static_accessor_GLOBAL_ce44e66a4935da8c:function(){let e=typeof global>"u"?null:global;return E(e)?0:f(e)},__wbg_static_accessor_SELF_44f6e0cb5e67cdad:function(){let e=typeof self>"u"?null:self;return E(e)?0:f(e)},__wbg_static_accessor_WINDOW_168f178805d978fe:function(){let e=typeof window>"u"?null:window;return E(e)?0:f(e)},__wbg_then_05edfc8a4fea5106:function(e,_,o){let c=m(e).then(m(_),m(o));return f(c)},__wbg_then_591b6b3a75ee817a:function(e,_){let o=m(e).then(m(_));return f(o)},__wbg_then_c768c7c3e60c20ef:function(e,_){let o=m(e).then(m(_));return f(o)},__wbg_value_2f34afb824ffcd9a:function(e){let _=m(e).value;return f(_)},__wbg_waitAsync_134f0b4abc50f1f2:function(e,_,o){let c=Atomics.waitAsync(m(e),_>>>0,o);return f(c)},__wbg_waitAsync_485a8d512901fd53:function(){let e=Atomics.waitAsync;return f(e)},__wbindgen_cast_0000000000000001:function(e,_){let o=dt(e,_,St);return f(o)},__wbindgen_cast_0000000000000002:function(e,_){let o=dt(e,_,Ot);return f(o)},__wbindgen_cast_0000000000000003:function(e,_){let o=dt(e,_,Ut);return f(o)},__wbindgen_cast_0000000000000004:function(e){return f(e)},__wbindgen_cast_0000000000000005:function(e,_){let o=v(e,_);return f(o)},__wbindgen_cast_0000000000000006:function(e,_){let o=M(e,_);return f(o)},__wbindgen_cast_0000000000000007:function(e,_){var o=v(e,_).slice();return t.__wbindgen_export3(e,_*1,1),f(o)},__wbindgen_link_ec60efd85dcca315:function(e){let _=`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
- `,o=typeof URL.createObjectURL>"u"?"data:application/javascript,"+encodeURIComponent(_):URL.createObjectURL(new Blob([_],{type:"text/javascript"})),c=y(o,t.__wbindgen_export4,t.__wbindgen_export5),a=p;i().setInt32(e+4,a,!0),i().setInt32(e+0,c,!0)},__wbindgen_object_clone_ref:function(e){let _=m(e);return f(_)},__wbindgen_object_drop_ref:function(e){u(e)},memory:r||new WebAssembly.Memory({initial:77,maximum:65536,shared:!0})}}}function St(r,n,e){t.__wasm_bindgen_func_elem_475(r,n,f(e))}function Ut(r,n,e){t.__wasm_bindgen_func_elem_1997(r,n,f(e))}function Ot(r,n,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.__wasm_bindgen_func_elem_1995(c,r,n,f(e));var _=i().getInt32(c+0,!0),o=i().getInt32(c+4,!0);if(o)throw u(_)}finally{t.__wbindgen_add_to_stack_pointer(16)}}function lt(r,n,e,_){t.__wasm_bindgen_func_elem_2012(r,n,f(e),f(_))}var ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_exrbench_free(r,1)),vt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_exrstreamencoder_free(r,1)),xt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_proresbench_free(r,1)),yt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_proresmovencoder_free(r,1)),It=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_proresmovwriter_free(r,1)),mt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_wbg_rayon_poolbuilder_free(r,1));function f(r){Y===q.length&&q.push(q.length+1);let n=Y;return Y=q[n],q[n]=r,n}var ht=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbindgen_export2(r.a,r.b));function qt(r){r<1028||(q[r]=Y,Y=r)}function Lt(r,n){return r=r>>>0,At().subarray(r/8,r/8+n)}function gt(r,n){return r=r>>>0,Ft().subarray(r/2,r/2+n)}function ot(r,n){return r=r>>>0,Mt().subarray(r/4,r/4+n)}function v(r,n){return r=r>>>0,D().subarray(r/1,r/1+n)}var C=null;function i(){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 M(r,n){return Pt(r>>>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 Mt(){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 m(r){return q[r]}function $(r,n){try{return r.apply(this,n)}catch(e){t.__wbindgen_export(f(e))}}var q=new Array(1024).fill(void 0);q.push(void 0,null,!0,!1);var Y=q.length;function E(r){return r==null}function dt(r,n,e){let _={a:r,b:n,cnt:1},o=(...c)=>{_.cnt++;let a=_.a;_.a=0;try{return e(a,_.b,...c)}finally{_.a=a,o._wbg_cb_unref()}};return o._wbg_cb_unref=()=>{--_.cnt===0&&(t.__wbindgen_export2(_.a,_.b),_.a=0,ht.unregister(_))},ht.register(o,_,_),o}function T(r,n){let e=n(r.length*2,2)>>>0;return Ft().set(r,e/2),p=r.length,e}function S(r,n){let e=n(r.length*4,4)>>>0;return Mt().set(r,e/4),p=r.length,e}function l(r,n){let e=n(r.length*1,1)>>>0;return D().set(r,e/1),p=r.length,e}function ut(r,n){let e=n(r.length*4,4)>>>0;return Et().set(r,e/4),p=r.length,e}function J(r,n){let e=n(r.length*8,8)>>>0;return At().set(r,e/8),p=r.length,e}function y(r,n,e){if(e===void 0){let s=Q.encode(r),d=n(s.length,1)>>>0;return D().subarray(d,d+s.length).set(s),p=s.length,d}let _=r.length,o=n(_,1)>>>0,c=D(),a=0;for(;a<_;a++){let s=r.charCodeAt(a);if(s>127)break;c[o+a]=s}if(a!==_){a!==0&&(r=r.slice(a)),o=e(o,_,_=a+r.length*3,1)>>>0;let s=D().subarray(o+a,o+_),d=Q.encodeInto(r,s);a+=d.written,o=e(o,_,a,1)>>>0}return p=a,o}function u(r){let n=m(r);return qt(r),n}var K=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):void 0;K&&K.decode();var Dt=2146435072,pt=0;function Pt(r,n){return pt+=n,pt>=Dt&&(K=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),K.decode(),pt=n),K.decode(D().slice(r,r+n))}var Q=typeof TextEncoder<"u"?new TextEncoder:void 0;Q&&(Q.encodeInto=function(r,n){let e=Q.encode(r);return n.set(e),{read:r.length,written:e.length}});var p=0,Rt,Bt,t;function Wt(r,n,e){if(Bt=r,t=r.exports,Rt=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(r,n){if(typeof Response=="function"&&r instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(r,n)}catch(o){if(r.ok&&e(r.type)&&r.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",o);else throw o}let _=await r.arrayBuffer();return await WebAssembly.instantiate(_,n)}else{let _=await WebAssembly.instantiate(r,n);return _ instanceof WebAssembly.Instance?{instance:_,module:r}:_}function e(_){switch(_){case"basic":case"cors":case"default":return!0}return!1}}function Sr(r,n){if(t!==void 0)return t;let e;r!==void 0&&(Object.getPrototypeOf(r)===Object.prototype?{module:r,memory:n,thread_stack_size:e}=r:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let _=kt(n);r instanceof WebAssembly.Module||(r=new WebAssembly.Module(r));let o=new WebAssembly.Instance(r,_);return Wt(o,r,e)}async function Ur(r,n){if(t!==void 0)return t;let e;r!==void 0&&(Object.getPrototypeOf(r)===Object.prototype?{module_or_path:r,memory:n,thread_stack_size:e}=r:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),r===void 0&&(r=new URL("media_core_bg.wasm",import.meta.url));let _=kt(n);(typeof r=="string"||typeof Request=="function"&&r instanceof Request||typeof URL=="function"&&r instanceof URL)&&(r=fetch(r));let{instance:o,module:c}=await Ct(await r,_);return Wt(o,c,e)}export{tt as ExrBench,et as ExrStreamEncoder,nt as ProResBench,rt as ProResMovEncoder,_t 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 dci_code_full_depth,$t as dci_frame_cap,te as dci_gpu_colour_patch,ee as dci_gpu_colour_tables,ne as dci_last_pass_caps,re as dci_legal_rates,_e as dci_mq_bench,oe as dci_pack_tier1,ie as dci_stage_rgba8,ae as dci_transform_only,ce as decode_arriraw12_luma,se as decode_arriraw12_mxf,de as decode_arriraw12_preview,pe as decode_arriraw12_rgba,ge as decode_arriraw_luma,ue as decode_arriraw_mxf,we as decode_arriraw_preview,be as decode_arriraw_preview_gray,le as decode_arriraw_preview_meta,fe as decode_arriraw_rgba,ve as decode_arriraw_rgba_meta,xe as decode_audio_pcm,ye as decode_braw_gen5log,Ie as decode_braw_luma,me as decode_braw_preview,he as decode_braw_rgba,ke as decode_cr3_rgba,Ae as decode_crm,Fe as decode_dng_preview,Me as decode_dng_rgba,Re as decode_dpx_preview,We as decode_dpx_rgba,je as decode_exr_linear,ze as decode_exr_preview,Te as decode_exr_rgba,Se as decode_prores_band_rgba,Ue as decode_prores_luma,Oe as decode_prores_mxf,qe as decode_prores_preview,Le as decode_prores_raw_acescct,Ee as decode_prores_raw_luma,De as decode_prores_raw_preview,Pe as decode_prores_raw_rec2020,Be as decode_prores_raw_rgba,Ce as decode_prores_rgb16,Ve as decode_prores_rgba,He as decode_prores_thumb_dc32,Ne as decode_r3d_luma,Ge as decode_r3d_preview,Xe as decode_r3d_preview_clip,Ye as decode_r3d_rgb16,Je as decode_r3d_rgba,Ke as decode_r3d_rgba_clip,Qe as decode_tiff_preview,Ze as decode_tiff_rgba,$e as decode_vc3_band_rgba,tn as decode_vc3_luma,en as decode_vc3_mxf,nn as decode_vc3_preview,rn as decode_vc3_rgba,_n as decode_xocn_luma,on as decode_xocn_mxf,an as decode_xocn_preview,cn as decode_xocn_rgb16,sn as decode_xocn_rgba,Ur as default,dn as encode_dci_j2c,pn as encode_dci_j2c_rgb,gn as encode_dci_j2c_rgba8,un as encode_dci_j2c_staged,wn as encode_dci_j2c_staged_modelled,bn as encode_exr,ln as encode_prores_4444_alpha_mov_rgba,fn as encode_prores_4444_alpha_sample_q,vn as encode_prores_444_sample_cbr,xn as encode_prores_444_sample_cbr_rgb16,yn as encode_prores_444_sample_cbr_rgb16_lut,In as encode_prores_mov_rgba,mn as encode_prores_rgba,hn as encode_prores_sample_cbr,kn as encode_prores_sample_cbr_rgb16,An as encode_prores_sample_cbr_rgb16_lut,Fn as encode_prores_sample_q,Mn as exr_sequence_filename,Sr as initSync,Rn as initThreadPool,Wn as inspect_cr3,jn as inspect_dng,zn as inspect_dpx,Tn as inspect_exr,Sn as inspect_isobmff,Un as inspect_tiff,On as inspect_wav,qn as is_arriraw12_mxf,Ln as is_arriraw_mxf,En as is_crm,Dn as is_prores_mxf,Pn as is_vc3_mxf,Bn as is_xavc_mxf,Cn as is_xocn_mxf,Vn as list_isobmff_segments,Hn as list_mxf_segments,Nn as list_r3d_frames,Gn as list_r3d_segments,Xn as list_wav_segments,Yn as mux_prores_4444_alpha_samples,Jn as mux_prores_samples,Kn as mux_prores_samples_full,Qn as mxf_au_run,Zn as mxf_frame_index,$n as mxf_gop_map,tr as mxf_h264_kind,er as plan_isobmff_trim,nr as plan_isobmff_trim_reader,rr as plan_mxf_compact_trim,_r as plan_mxf_trim,or as plan_r3d_compact,ir as plan_wav_trim,ar as plan_wav_trim_reader,cr as prepare_isobmff,sr as prepare_mxf,dr as prepare_r3d,pr as prepare_wav,gr as probe_mov,ur as probe_mxf,wr as probe_r3d,br as prores_band_info,lr as prores_reset_rate_control,fr as r3d_gpu_develop_params,vr as r3d_is_helium,xr as read_arriraw_fcs,yr as read_arriraw_unit_correction,Ir as recover_reframe,mr as resample_rgba16,hr as resample_rgba8,kr as reset_dci_rate_state,Ar as rgba8_to_xyz12,Fr as trim_r3d,Mr as vc3_band_info,Rr as video_frame_index_isobmff_reader,Z as wbg_rayon_PoolBuilder,Wr as wbg_rayon_start_worker,jr as xavc_au,zr as xavc_frame_count,Tr as xocn_frame_count};
@@ -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{a as J}from"./chunk-JEMLKBH2.js";import{b as j}from"./chunk-YPRTUS5W.js";import{H as P,L as z,U as D,V as E,W as L,X as C,Y as O,_ as V,a as I,c as k,e as M,ga as W,ja as G,la as N,r as T,ua as u}from"./chunk-UUMHVA7R.js";import"./chunk-PSANHDZM.js";var F=new Uint8Array([6,14,43,52,2,5,1,1,13,1,2,1,1,17,1,0]);function oe(t){e:for(let r=t.length-F.length;r>=0;r--){for(let e=0;e<F.length;e++)if(t[r+e]!==F[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 w(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=oe(o);if(s<0)return e;let f=new DataView(o.buffer,o.byteOffset,o.byteLength),[c,d]=Z(f,s+16);if(c===null||c<16||c>65536)return e;let A=s+16+d;if(A+c>o.length)return e;let R=[],te=new DataView(o.buffer,o.byteOffset+A,c),y=Math.floor((c-4)/12);if(y<1||y>4096)return e;for(let l=0;l<y;l++){let p=w(te,l*12+4);p>=0&&p<r&&R.push(p)}for(let l of R){let p=Math.min(256,r-l),b=await t.read(l,p);if(b.length<80)continue;let x=new DataView(b.buffer,b.byteOffset,b.byteLength),[v,U]=Z(x,16);if(v===null)continue;let m=16+U,_,S;if(b.length<m+64){let ie=Math.min(m+64,r-l),h=await t.read(l,ie);if(h.length<m+64)continue;let B=new DataView(h.buffer,h.byteOffset,h.byteLength);_=w(B,m+32),S=w(B,m+40)}else _=w(x,m+32),S=w(x,m+40);let ne=l+16+U+v+_+S,ae=Math.min(ne+65536,r)-l;e.push({offset:l,length:ae})}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 se(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,e);if(n.length===0)throw new Error("planMxfTrimsFromItems: no usable trim ranges in items");await u();let a=(s,f)=>t.read(s,f),i=J(n),o=[];for(let[s,f]of i.entries()){let c=await W(a,t.fileSize,f.first_frame,f.last_frame+1),d=JSON.parse(c);i.length>1&&(d.output_clip_number=s+1,d.output_clip_count=i.length,d.output_part_number=1),o.push(d)}return o}async function Q(t,r,e){await u();let n=q(r,e),i=await G((s,f)=>t.read(s,f),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:se(o,t.fileSize),trimInputs:n,wholeFileFallback:!0}}async function X(t){await u();let e=await N((n,a)=>t.read(n,a),t.fileSize);return JSON.parse(e)}function g(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}]:[],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 u();let r=t.parts[0],e=JSON.parse(await V(g(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 u();let n=t.parts[0],a=g(n),i=await re(t),o=e.detail==="coarse",s;if(i==="arriraw")s=await M(a,n.fileSize,r,o?"preview:4":"full");else if(i==="arriraw-alev3")s=await k(a,n.fileSize,r,o?"preview:4":"full");else if(i==="dnxhr")s=await P(a,n.fileSize,r,o?"preview":"full");else if(i==="xocn")s=await z(a,n.fileSize,r,o?"preview":"full");else if(i==="prores")s=await T(a,n.fileSize,r,o?"preview":"full");else throw new Error(`mxf decode: no decoder for inner codec '${i}'`);let f=new DataView(s.buffer,s.byteOffset,8);return{width:f.getUint32(0,!0),height:f.getUint32(4,!0),rgba:s.slice(8)}},async decode16(t,r){await u();let e=t.parts[0],n=g(e),a=await re(t),i;try{if(a==="arriraw"){let o=await le(t,r);if(o)return o;i=await M(n,e.fileSize,r,"rgb16")}else if(a==="dnxhr")i=await P(n,e.fileSize,r,"rgb16");else if(a==="xocn")i=await z(n,e.fileSize,r,"rgb16");else throw new Error(`mxf decode16: no decoder for inner codec '${a}'`)}catch(o){throw ce(o,a)}return j(i)}};function ce(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 le(t,r){if(!!0)return null;try{let e=await import("./arriraw-Y5VXHXNX.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 I(g(i),i.fileSize,r,o?.key),f=n(s,o);if(!f)return null;Y.set(t,{key:f.key,state:f.state});let c=await e.decodeArrirawFrameGpu(f.essence,f.state);return c?{width:c.width,height:c.height,rgb16:a(c)}:null}catch{return null}}var ee=new WeakMap;async function re(t){let r=ee.get(t);if(r)return r;await u();let e=t.parts[0],n=g(e),a="mxf";return await E(n,e.fileSize)?a="arriraw":await D(n,e.fileSize)?a="arriraw-alev3":await C(n,e.fileSize)?a="dnxhr":await O(n,e.fileSize)?a="xocn":await L(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{c as l}from"./chunk-YPRTUS5W.js";import{$ as b,C as _,D as S,E as P,aa as R,ma as w,oa as v,qa as F,ua as f}from"./chunk-UUMHVA7R.js";import"./chunk-PSANHDZM.js";var g=class{constructor(e=[]){this.ranges=[];for(let[r,n]of e)this.add(r,n)}add(e,r){if(r<=e)return;let n=[],[s,o]=[e,r];for(let[i,a]of this.ranges)a<s||i>o?n.push([i,a]):(s=Math.min(s,i),o=Math.max(o,a));n.push([s,o]),n.sort((i,a)=>i[0]-a[0]),this.ranges=n}has(e,r){return r<=e?!0:this.ranges.some(([n,s])=>n<=e&&s>=r)}missing(e,r){if(r<=e)return[];let n=[],s=e;for(let[o,i]of this.ranges)if(!(i<=s)&&(o>=r||(o>s&&n.push([s,Math.min(o,r)]),s=Math.max(s,i),s>=r)))break;return s<r&&n.push([s,r]),n}count(){return this.ranges.reduce((e,[r,n])=>e+(n-r),0)}toJSON(){return this.ranges.map(([e,r])=>[e,r])}};function N(t,e){let r=new g;for(let n of t){if(n.kind!=="clip"||!n.source_range)continue;let s=n.source_range.start.value,o=n.source_range.duration.value,i=Math.max(0,Math.max(0,Math.floor(s))-e),a=Math.floor(s+o)+e;a>i&&r.add(i,a)}return r.toJSON()}function O(t,e,r){let n=N(e,r),s=a=>n.some(([c,u])=>a>=c&&a<u),o=new Map,i=a=>{let c=o.get(a);return c||(c={part:a,structuralRanges:[],essenceRanges:[]},o.set(a,c)),c};for(let a of t.segments){let c=a.part??0;a.kind==="structural"?i(c).structuralRanges.push({offset:a.offset,length:a.length}):(a.kind==="frame"||a.kind==="gop")&&a.frame_in!=null&&s(a.frame_in)&&i(c).essenceRanges.push({offset:a.offset,length:a.length})}return[...o.values()].sort((a,c)=>a.part-c.part)}async function A(t,e){if(!!0)return null;try{let n=await(await import("./r3d-AT6NNIY3.js")).decodeR3dRgbaGpu(t,e);return n?{width:n.width,height:n.height,rgba:n.rgba}:null}catch{return null}}function p(t){return(e,r,n)=>t.parts[e].read(r,n)}function d(t){return JSON.stringify(t.parts.map(e=>({name:e.filename,size:e.fileSize})))}function L(t,e){let r=[];for(let n of t){if(n.kind!=="clip"||!n.source_range)continue;let s=n.source_range.start.value,o=n.source_range.duration.value;r.push({frame_in:Math.max(0,Math.floor(s)),frame_out:Math.floor(s+o),handles:e})}return JSON.stringify(r)}var k=16,h=new WeakMap,J=new WeakMap;function x(t){let e=J.get(t);return e||(e=t.parts[0].read(0,Math.min(16*1024,t.parts[0].fileSize)),J.set(t,e)),e}async function D(t){let e=h.get(t);return e||(await f(),e=JSON.parse(await b(p(t),d(t))),h.set(t,e)),e}async function G(t){await f();let e=await b(p(t),d(t));return h.set(t,JSON.parse(e)),e}function B(t,e){h.set(t,JSON.parse(e))}async function C(t,e){let r=JSON.parse(await R(p(t),d(t)));return{v:1,container:"r3d",codec:"redcode",frame_count:e.frame_count,granularity:"frame",...t.parts.length>1?{part_names:t.parts.map(n=>n.filename.split(/[/\\]/).pop()??n.filename)}:{},segments:r}}var V={async inspect(t){await f();let e=await w(p(t),d(t)),r=JSON.parse(e);if(!r||r.frame_count===0)return null;let n=t.parts[0],s=r.timecode??null,o=s&&s.fps_denominator>0?s.fps_numerator/s.fps_denominator:null,i=r.width??null,a=r.height??null;return{id:n.filename,kind:"external",target_url:n.filename,available_range:o&&r.frame_count?{start:{value:0,rate:o},duration:{value:r.frame_count,rate:o}}:null,reel_name:r.reel??null,source_timecode:s?.display??null,source_fps:o,source_resolution_w:i,source_resolution_h:a,container:"r3d",codec:"redcode",size_bytes:r.file_size,streams:[{kind:"video",codec:"redcode",width:i??void 0,height:a??void 0,rate:o??void 0,bit_depth:k,codec_specific:{fourcc:r.codec_fourcc??"REDCODE"}}],decode_provenance:r.decode_provenance??null,vendor_metadata:{frame_count:r.frame_count,...s?{drop_frame:s.drop_frame}:{}},binding_state:"unbound",raw_extraction:{r3d_probe:r},metadata:{}}},async extract(t){await f();let e=JSON.parse(await w(p(t),d(t)));return!e||e.frame_count===0?null:C(t,e)},async sparsify(t,e){await f();let r=JSON.parse(await R(p(t),d(t))),n={v:1,container:"r3d",codec:"redcode",frame_count:r.filter(o=>o.kind==="frame").length,granularity:"frame",segments:r},s=new Map;for(let o of r)o.kind==="frame"&&s.set(o.part??0,(s.get(o.part??0)??0)+1);return O(n,e.items,e.handles).map(o=>({filename:t.parts[o.part].filename,fileSize:t.parts[o.part].fileSize,structuralRanges:o.structuralRanges,essenceRanges:o.essenceRanges,frameCount:s.get(o.part)??0,keptFrames:o.essenceRanges.length}))},async trim(t,e){await f();let r=t.parts.some(a=>a.dataRanges!==void 0),n=r?JSON.stringify(t.parts.map(a=>a.dataRanges??[])):"[]",s=r?"[]":L(e.items,e.handles),o=await F(p(t),d(t),s,n);return JSON.parse(o).parts.map(a=>a.trim_plan)},async decode(t,e,r){await f();let n=await D(t);if(e<0||e>=n.length)throw new l(e,n.length);let s=n[e],o=s.part??0,i=t.parts[o];if(!i)throw new l(e,n.length);let a=await i.read(s.essenceOffset,s.essenceLength),c=2,u=await x(t),m;if(r.detail==="coarse")m=_(a,u,0);else if(v(a))m=_(a,u,c);else{let y=await A(a,u);if(y)return y;m=P(a,u)}let M=new DataView(m.buffer,m.byteOffset,8);return{width:M.getUint32(0,!0),height:M.getUint32(4,!0),rgba:m.slice(8)}},async decode16(t,e){await f();let r=await D(t);if(e<0||e>=r.length)throw new l(e,r.length);let n=r[e],s=t.parts[n.part??0];if(!s)throw new l(e,r.length);let o=await s.read(n.essenceOffset,n.essenceLength),i=S(o),a=new DataView(i.buffer,i.byteOffset,8),c=a.getUint32(0,!0),u=a.getUint32(4,!0),m=i.slice(8);return{width:c,height:u,rgb16:new Uint16Array(m.buffer,m.byteOffset,c*u*3)}}};export{G as listR3dFramesJson,V as r3dFormat,B as seedR3dFramesJson};
@@ -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{k as a,l as b,m as c,n as d}from"./chunk-HJXRLQOI.js";import"./chunk-DRHOPOC7.js";import"./chunk-QDWB7QU7.js";import"./chunk-AHNDJFQR.js";import"./chunk-TK55FA56.js";import"./chunk-UUMHVA7R.js";import"./chunk-NYB4ISL3.js";import"./chunk-PSANHDZM.js";export{a as MAX_EMBED_STRIDE,b as desaturate,c as squareRgba,d as sweepClipEmbeddings};
@@ -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{F as f,S as s,sa as u,ua as n}from"./chunk-UUMHVA7R.js";import"./chunk-PSANHDZM.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{b as decodeTiffPreviewWasm,d as decodeTiffWasm,y as inspectTiffWasm};
@@ -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 R,$a as Ra,$b as Rb,$c as Rc,A as q,Aa as qa,Ab as qb,Ac as qc,Ad as qd,B as r,Ba as ra,Bb as rb,Bc as rc,Bd as rd,C as s,Ca as sa,Cb as sb,Cc as sc,Cd as sd,D as t,Da as ta,Db as tb,Dc as tc,Dd as td,E as u,Ea as ua,Eb as ub,Ec as uc,Ed as ud,F as v,Fa as va,Fb as vb,Fc as vc,Fd as vd,G as w,Ga as wa,Gb as wb,Gc as wc,Gd as wd,H as x,Ha as xa,Hb as xb,Hc as xc,Hd as xd,I as y,Ia as ya,Ib as yb,Ic as yc,Id as yd,J as z,Ja as za,Jb as zb,Jc as zc,Jd as zd,K as A,Ka as Aa,Kb as Ab,Kc as Ac,Kd as Ad,L as B,La as Ba,Lb as Bb,Lc as Bc,Ld as Bd,M as C,Ma as Ca,Mb as Cb,Mc as Cc,Md as Cd,N as D,Na as Da,Nb as Db,Nc as Dc,Nd as Dd,O as E,Oa as Ea,Ob as Eb,Oc as Ec,Od as Ed,P as F,Pa as Fa,Pb as Fb,Pc as Fc,Pd as Fd,Q as G,Qa as Ga,Qb as Gb,Qc as Gc,Qd as Gd,R as H,Ra as Ha,Rb as Hb,Rc as Hc,Rd as Hd,S as I,Sa as Ia,Sb as Ib,Sc as Ic,Sd as Id,T as J,Ta as Ja,Tb as Jb,Tc as Jc,Td as Jd,U as K,Ua as Ka,Ub as Kb,Uc as Kc,Ud as Kd,V as L,Va as La,Vb as Lb,Vc as Lc,Vd as Ld,W as M,Wa as Ma,Wb as Mb,Wc as Mc,Wd as Md,X as N,Xa as Na,Xb as Nb,Xc as Nc,Xd as Nd,Y as O,Ya as Oa,Yb as Ob,Yc as Oc,Yd as Od,Z as P,Za as Pa,Zb as Pb,Zc as Pc,Zd as Pd,_ as Q,_a as Qa,_b as Qb,_c as Qc,a,aa as S,ab as Sa,ac as Sb,ad as Sc,b,ba as T,bb as Ta,bc as Tb,bd as Tc,ca as U,cb as Ua,cc as Ub,cd as Uc,da as V,db as Va,dc as Vb,dd as Vc,ea as W,eb as Wa,ec as Wb,ed as Wc,f as c,fa as X,fb as Xa,fc as Xb,fd as Xc,g as d,ga as Y,gb as Ya,gc as Yb,gd as Yc,ha as Z,hb as Za,hc as Zb,hd as Zc,i as e,ia as _,ib as _a,ic as _b,id as _c,j as f,ja as $,jb as $a,jc as $b,jd as $c,k as g,ka as aa,kb as ab,kc as ac,kd as ad,l as h,la as ba,lb as bb,lc as bc,ld as bd,m as i,ma as ca,mb as cb,mc as cc,md as cd,n as j,na as da,nb as db,nc as dc,nd as dd,oa as ea,ob as eb,oc as ec,od as ed,pa as fa,pb as fb,pc as fc,pd as fd,qa as ga,qb as gb,qc as gc,qd as gd,ra as ha,rb as hb,rc as hc,rd as hd,s as k,sa as ia,sb as ib,sc as ic,sd as id,t as l,ta as ja,tb as jb,tc as jc,td as jd,u as m,ua as ka,ub as kb,uc as kc,ud as kd,va as la,vb as lb,vc as lc,vd as ld,wa as ma,wb as mb,wc as mc,wd as md,x as n,xa as na,xb as nb,xc as nc,xd as nd,y as o,ya as oa,yb as ob,yc as oc,yd as od,z as p,za as pa,zb as pb,zc as pc,zd as pd}from"./chunk-WWGQFOB2.js";import"./chunk-PSANHDZM.js";export{e as $brand,r as $input,q as $output,u as INVALID,d as NEVER,z as TimePrecision,Wb as ZodAny,ec as ZodArray,jb as ZodBase64,lb as ZodBase64URL,Lb as ZodBigInt,Nb as ZodBigIntFormat,Jb as ZodBoolean,fb as ZodCIDRv4,hb as ZodCIDRv6,Ra as ZodCUID,Ta as ZodCUID2,$c as ZodCatch,fd as ZodCodec,v as ZodCompileAsyncError,w as ZodCompileUnsupportedError,pb as ZodCreditCard,td as ZodCustom,vb as ZodCustomStringFormat,cc as ZodDate,Tc as ZodDefault,pc as ZodDiscriminatedUnion,nb as ZodE164,Ba as ZodEmail,Na as ZodEmoji,Dc as ZodEnum,ea as ZodError,Oc as ZodExactOptional,Ic as ZodFile,Id as ZodFirstPartyTypeKind,rd as ZodFunction,Da as ZodGUID,rb as ZodIBAN,$a as ZodIPv4,db as ZodIPv6,ya as ZodISODate,xa as ZodISODateTime,Aa as ZodISODuration,za as ZodISOTime,Ad as ZodInstanceOf,rc as ZodIntersection,Fd as ZodIssueCode,tb as ZodJWT,Za as ZodKSUID,nd as ZodLazy,Gc as ZodLiteral,bb as ZodMAC,zc as ZodMap,bd as ZodNaN,Pa as ZodNanoID,_b as ZodNever,Xc as ZodNonOptional,Ub as ZodNull,Qc as ZodNullable,Bb as ZodNumber,Db as ZodNumberFormat,hc as ZodObject,Mc as ZodOptional,dd as ZodPipe,Vc as ZodPrefault,id as ZodPreprocess,pd as ZodPromise,jd as ZodReadonly,fa as ZodRealError,vc as ZodRecord,Bc as ZodSet,ua as ZodString,wa as ZodStringFormat,Zc as ZodSuccess,Qb as ZodSymbol,ld as ZodTemplateLiteral,Kc as ZodTransform,tc as ZodTuple,sa as ZodType,Va as ZodULID,Ka as ZodURL,Fa as ZodUUID,Sb as ZodUndefined,lc as ZodUnion,Yb as ZodUnknown,ac as ZodVoid,Xa as ZodXID,nc as ZodXor,ta as _ZodString,Uc as _default,sd as _function,Xb as any,fc as array,kb as base64,mb as base64url,Mb as bigint,Kb as boolean,ad as catch,ud as check,gb as cidrv4,ib as cidrv6,b as clone,gd as codec,Od as coerce,x as compile,f as config,da as core,qb as creditCard,Sa as cuid,Ua as cuid2,zb as currencyCode,vd as custom,dc as date,la as decode,na as decodeAsync,Ld as deepPartial,Pd as default,yd as describe,qc as discriminatedUnion,ob as e164,Ca as email,Oa as emoji,ka as encode,ma as encodeAsync,U as endsWith,Ec as enum,Pc as exactOptional,Jc as file,g as flattenError,Fb as float32,Gb as float64,h as formatError,Kd as fromJSONSchema,sd as function,n as getDiscriminatedOption,Hd as getErrorMap,t as globalRegistry,C as gt,D as gte,Ea as guid,Ab as hash,yb as hex,xb as hostname,Ma as httpUrl,sb as iban,S as includes,Md as input,Bd as instanceof,Eb as int,Hb as int32,Ob as int64,sc as intersection,hd as invertCodec,ab as ipv4,eb as ipv6,Jd as iso,Dd as json,ub as jwt,gc as keyof,_a as ksuid,od as lazy,O as length,Hc as literal,p as locales,kc as looseObject,yc as looseRecord,Q as lowercase,A as lt,B as lte,cb as mac,Ac as map,M as maxLength,J as maxSize,o as memoizer,zd as meta,X as mime,N as minLength,K as minSize,I as multipleOf,cd as nan,Qa as nanoid,Fc as nativeEnum,F as negative,$b as never,H as nonnegative,Yc as nonoptional,G as nonpositive,Z as normalize,Vb as null,Rc as nullable,Sc as nullish,Cb as number,ic as object,Nc as optional,Nd as output,Y as overwrite,ga as parse,ha as parseAsync,xc as partialRecord,ed as pipe,E as positive,Wc as prefault,Ed as preprocess,j as prettifyError,qd as promise,W as properties,V as property,kd as readonly,wc as record,wd as refine,P as regex,m as regexes,s as registry,pa as safeDecode,ra as safeDecodeAsync,oa as safeEncode,qa as safeEncodeAsync,ia as safeParse,ja as safeParseAsync,Cc as set,Gd as setErrorMap,L as size,ba as slugify,T as startsWith,jc as strictObject,va as string,wb as stringFormat,Cd as stringbool,_c as success,xd as superRefine,Rb as symbol,md as templateLiteral,ca as toJSONSchema,$ as toLowerCase,aa as toUpperCase,a as toZod,Lc as transform,i as treeifyError,_ as trim,uc as tuple,Ib as uint32,Pb as uint64,Wa as ulid,Tb as undefined,mc as union,Zb as unknown,R as uppercase,La as url,c as util,Ga as uuid,Ha as uuidv4,Ia as uuidv6,Ja as uuidv7,k as validate,l as validateAsync,bc as void,y as withParser,Ya as xid,oc as xor,Pd as z};
File without changes
File without changes
File without changes