conformtools 0.6.18 → 0.6.19

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 (61) hide show
  1. package/README.md +3 -2
  2. package/dist/{account-O3J732QJ.js → account-KSE6H6DJ.js} +1 -1
  3. package/dist/{agent-hook-setup-HBT2LTVR.js → agent-hook-setup-SHZOVJYL.js} +1 -1
  4. package/dist/{analysis-engine-BZUEBW55.js → analysis-engine-KUGSWNQB.js} +1 -1
  5. package/dist/{bridge-25FGN67G.js → bridge-REYIYXUU.js} +1 -1
  6. package/dist/browser/timeline_core_bg.wasm +0 -0
  7. package/dist/{chunk-ANQZKVDD.js → chunk-3J2FARFO.js} +1 -1
  8. package/dist/{chunk-LP2MR4ZH.js → chunk-4KMSOMLG.js} +227 -219
  9. package/dist/chunk-4PV2UTKG.js +10 -0
  10. package/dist/{chunk-PIM3PV5N.js → chunk-BD54PRSN.js} +1 -1
  11. package/dist/{chunk-NN444GPH.js → chunk-BZQAUU3D.js} +1 -1
  12. package/dist/chunk-COALWMI7.js +4 -0
  13. package/dist/{chunk-6B3IELRW.js → chunk-CUZVK2JJ.js} +1 -1
  14. package/dist/{chunk-34JO3JNC.js → chunk-GTN62ZQV.js} +1 -1
  15. package/dist/{chunk-S5AOIOTT.js → chunk-HKHEL4MZ.js} +1 -1
  16. package/dist/chunk-HZG55H3B.js +3 -0
  17. package/dist/{chunk-UIX3TT72.js → chunk-MJKISVPS.js} +2 -2
  18. package/dist/{chunk-DIW5X4GI.js → chunk-NHVH373D.js} +1 -1
  19. package/dist/chunk-NQD6H7SY.js +7 -0
  20. package/dist/chunk-PY6HS3EP.js +10 -0
  21. package/dist/chunk-UWEM5YEM.js +161 -0
  22. package/dist/{chunk-AYUKWSCR.js → chunk-WM7ESQLY.js} +1 -1
  23. package/dist/{chunk-MHBNMYZP.js → chunk-WNDA7QSY.js} +1 -1
  24. package/dist/{chunk-2V5PY4P5.js → chunk-XQON6ASI.js} +1 -1
  25. package/dist/chunk-Y7PFSVRX.js +3 -0
  26. package/dist/{claude-setup-W27DLJIO.js → claude-setup-ZOEQ5NXE.js} +1 -1
  27. package/dist/cli.js +2 -2
  28. package/dist/demo-engine-ZX24TAXA.js +3 -0
  29. package/dist/engine-K6QYU5KJ.js +5 -0
  30. package/dist/framing-B6LP7MS2.js +3 -0
  31. package/dist/gfx-worker.js +1 -1
  32. package/dist/hook.js +3 -2
  33. package/dist/host-relink-VYEOE3NE.js +10 -0
  34. package/dist/hosted-NLYSTYYN.js +3 -0
  35. package/dist/hosts-47EW33NY.js +3 -0
  36. package/dist/http.js +4 -3
  37. package/dist/{inspect-7XEE32P5.js → inspect-QRHOFMC2.js} +17 -17
  38. package/dist/mcp.js +8 -8
  39. package/dist/media-TPGEESEU.js +3 -0
  40. package/dist/{probe-YDOFGCGD.js → probe-CHT266NN.js} +1 -1
  41. package/dist/resolve-bridge.py +173 -27
  42. package/dist/{sequence-patch-2S7IPE52.js → sequence-patch-6FSMBG7O.js} +1 -1
  43. package/dist/{store-A5AKWOSX.js → store-CFQHKBGL.js} +1 -1
  44. package/dist/{timeline-ZHDJXDZJ.js → timeline-MZ6A3PQX.js} +1 -1
  45. package/dist/timeline_core-6BRZG4LP.js +3 -0
  46. package/package.json +5 -5
  47. package/dist/chunk-AAJRTGEP.js +0 -10
  48. package/dist/chunk-GTPTZRO6.js +0 -3
  49. package/dist/chunk-IDEKLW7C.js +0 -3
  50. package/dist/chunk-QBQJDV2F.js +0 -161
  51. package/dist/chunk-ROGMKTND.js +0 -4
  52. package/dist/chunk-RXRBRR3E.js +0 -10
  53. package/dist/chunk-T7S2UBNN.js +0 -7
  54. package/dist/demo-engine-JAQPM4EV.js +0 -3
  55. package/dist/engine-ZGBF3SQN.js +0 -5
  56. package/dist/framing-PGFJZIBU.js +0 -3
  57. package/dist/host-relink-M2VWUZW5.js +0 -10
  58. package/dist/hosted-4CNQYNX5.js +0 -3
  59. package/dist/hosts-R4BHIZJS.js +0 -3
  60. package/dist/media-4VUWQJLQ.js +0 -3
  61. package/dist/timeline_core-ZKQQHUA2.js +0 -3
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import"./chunk-PSANHDZM.js";function P(){let e=window.__CONFORM_ENGINE__;if(e?.base)return e;let t=new URLSearchParams(window.location.search),n=l=>{try{return sessionStorage.getItem(`conform.engine.${l}`)}catch{return null}},s=(l,u)=>{try{sessionStorage.setItem(`conform.engine.${l}`,u)}catch{}},i=t.get("engine"),o=t.get("token");return i?s("url",i):i=n("url"),o?s("token",o):o=n("token"),{base:i?/^\d+$/.test(i)?`http://127.0.0.1:${i}`:i.replace(/\/$/,""):"http://127.0.0.1:7791",token:o??""}}var d=typeof window>"u"?{base:"http://127.0.0.1:7791",token:""}:P(),w=(e=!0)=>({...e?{"content-type":"application/json"}:{},"x-conform-client":"app",...d.token?{authorization:`Bearer ${d.token}`}:{}}),b=typeof window<"u"&&new URLSearchParams(window.location.search).has("demo")?import("./demo-engine-JAQPM4EV.js").then(e=>e.answer):null,O=b!==null,v=class extends Error{constructor(n,s){super(s);this.code=n}};async function r(e,t,n,s=[],i={},o=0){if(b)return(await b)(e,t,n);let a;try{a=await fetch(`${d.base}${t}`,{method:e,headers:{...w(),...i},body:n===void 0?void 0:JSON.stringify(n),...o?{signal:AbortSignal.timeout(o)}:{}})}catch{throw new v("engine_down",`the conform.tools engine is not running at ${d.base}`)}let l=await a.json().catch(()=>({}));if((l?.code==="not_signed_in"||l?.structuredContent?.code==="not_signed_in")&&window.dispatchEvent(new Event(S)),!a.ok&&!("text"in l)&&!s.includes(a.status))throw new v(l.code??String(a.status),l.message??`HTTP ${a.status}`);return l}var S="conformtools:signed-out";async function x(e,t,n,s,i=0){if(b)return new Promise(()=>{});let o;try{o=await fetch(`${d.base}${e}`,{...t,headers:w(),signal:s})}catch{s?.aborted||n({type:"error",code:"engine_down",message:`the conform.tools engine is not running at ${d.base}`});return}if(!o.ok||!o.body){let f=await o.json().catch(()=>({}));n({type:"error",code:f.code??String(o.status),message:f.message??`HTTP ${o.status}`});return}let a=o.body.getReader(),l=new TextDecoder,u="";for(;;){let f,m=i?new Promise(g=>{f=setTimeout(()=>g(null),i)}):null,h=await(m?Promise.race([a.read(),m]):a.read());if(clearTimeout(f),!h){a.cancel().catch(()=>{});break}let{value:y,done:_}=h;if(_)break;u+=l.decode(y,{stream:!0});let p;for(;(p=u.indexOf(`
4
-
5
- `))>=0;){let g=u.slice(0,p);u=u.slice(p+2),g.startsWith("data: ")&&n(JSON.parse(g.slice(6)))}}}var k=new Set,T=null;function j(){if(T)return;let e=T=new AbortController;(async()=>{for(;!e.signal.aborted;)await x("/app/events",{method:"GET"},t=>{for(let n of k)n(t)},e.signal,45e3).catch(()=>{}),e.signal.aborted||await new Promise(t=>setTimeout(t,2e3))})()}var E={base:d.base,health:()=>r("GET","/health"),verb:(e,t={})=>r("POST",`/verbs/${e}`,t),poll:(e,t={})=>r("POST",`/verbs/${e}`,t,[],{"x-conform-poll":"1"},2e4),job:e=>r("GET",`/jobs/${e}`),cancelJob:e=>r("DELETE",`/jobs/${e}`),front:e=>r("POST","/app/front",e),account:()=>r("GET","/app/account"),projects:()=>r("GET","/app/projects"),createProject:e=>r("POST","/app/projects",e),project:e=>r("GET",`/app/projects/${e}`),attachSession:(e,t)=>r("PUT",`/app/projects/${e}/sessions`,{session_id:t}),saveContext:(e,t,n)=>r("PUT",`/app/projects/${e}/context`,{text:t,base:n},[409]),frame:async(e,t,n,s,i,o,a)=>{let l=new URLSearchParams({f:String(t),w:String(n),...i?{timeline:i}:{},...o?{track:String(o)}:{},...a?{grade:"resolve",...a.host_timeline?{host_timeline:a.host_timeline}:{}}:{}});if(b)return null;let u=await fetch(`${d.base}/app/sessions/${e}/frame?${l}`,{headers:w(!1),signal:s}).catch(()=>null);if(!u?.ok)return null;if(u.headers.get("content-type")!=="application/x-conform-pixels")return createImageBitmap(await u.blob()).catch(()=>null);let f=new Uint8Array(await u.arrayBuffer()),m=new DataView(f.buffer),h=m.getUint32(0,!0),y=m.getUint32(4,!0),_=m.getUint32(8,!0)===1,p=new Uint8ClampedArray(f.buffer,12,h*y*4);for(let g=0;g<p.length;g+=4){if(_){let R=p[g];p[g]=p[g+2],p[g+2]=R}p[g+3]=255}return createImageBitmap(new ImageData(p,h,y)).catch(()=>null)},tools:()=>r("POST","/verbs/tool",{action:"list"}).then(e=>e.tools??[]),blocks:()=>r("POST","/verbs/tool",{action:"blocks"}).then(e=>e.blocks??[]),saveTool:e=>r("POST","/verbs/tool",{action:"save",spec:e},[422]),deleteTool:e=>r("POST","/verbs/tool",{action:"delete",id:e},[422]),toolLayout:()=>r("POST","/verbs/tool",{action:"layout"}).then(e=>e.layout),arrangeTools:e=>r("POST","/verbs/tool",{action:"arrange",layout:e}).then(t=>t.layout),hideTool:(e,t)=>r("POST","/verbs/tool",{action:t?"hide":"show_tool",id:e}).then(n=>n.layout),workspace:e=>r("POST","/verbs/tool",{action:"workspace",project_id:e}).then(t=>t.workspace),saveWorkspace:(e,t)=>r("POST","/verbs/tool",{action:"workspace_save",project_id:e,workspace:t},[422]),exportTools:(e,t)=>r("POST","/verbs/tool",{action:"export",ids:e,path:t},[422]),importTools:e=>r("POST","/verbs/tool",{action:"import",path:e},[422]),hostSetup:(e,t="status")=>r("POST","/verbs/host_setup",{host:e,action:t},[422]),convert:async(e,t)=>{let n=new URLSearchParams({name:e.fileName,out:t,targets:JSON.stringify(e.targets.map(({target:i,ext:o})=>({target:i,ext:o}))),sequences:JSON.stringify(e.sequences)});if(b)return{ok:!1,error:(await import("./demo-engine-JAQPM4EV.js")).DEMO_TEXT};let s=await fetch(`${d.base}/app/convert?${n}`,{method:"POST",headers:{...w(!1),"content-type":"application/octet-stream"},body:e.bytes});return await s.json().catch(()=>({ok:!1,error:`the engine said ${s.status}`}))},canonicalize:async(e,t=[],n=[])=>{let s=new URLSearchParams({name:e.name,sequences:JSON.stringify(t),previous:JSON.stringify(n)});if(b)throw new Error((await import("./demo-engine-JAQPM4EV.js")).DEMO_TEXT);let i=await fetch(`${d.base}/app/canonicalize?${s}`,{method:"POST",headers:{...w(!1),"content-type":"application/octet-stream"},body:await e.arrayBuffer()}),o=await i.json().catch(()=>({ok:!1,error:`the engine said ${i.status}`}));if(!o.ok)throw new Error(o.error??o.message??`the engine said ${i.status}`);return o},policy:()=>r("GET","/app/policy"),session:e=>r("GET",`/app/sessions/${e}`),onEvent:e=>(k.add(e),j(),()=>{k.delete(e),k.size||(T?.abort(),T=null)}),saveRunCsv:(e,t,n,s)=>r("POST","/verbs/tool_run",{action:"csv",project_id:e,path:t,id:n,table:s}),runs:(e,t)=>r("POST","/verbs/tool_run",{action:"list",project_id:e,...t?{id:t}:{}}).then(n=>n.runs??[])};async function $(e,t){if(b)throw Object.assign(new Error((await import("./demo-engine-JAQPM4EV.js")).DEMO_TEXT),{name:"NotFoundError"});let n=await fetch(`${d.base}/app/fs`,{method:"POST",headers:w(),body:JSON.stringify({op:e,...t})});if(e==="readFile"){if(!n.ok)throw Object.assign(new Error(`could not read ${String(t.path)}`),{name:"NotReadableError"});let i=await n.arrayBuffer();return{result:{byteLength:i.byteLength},bytes:i}}let s=await n.json().catch(()=>({ok:!1}));if(!s.ok)throw Object.assign(new Error(s.message??`the engine said ${n.status}`),{name:"NotFoundError"});return{result:s.result}}var c=()=>typeof window<"u"?window.__TAURI__:void 0,V={available:()=>!!c()?.core?.invoke,licenseStatus:()=>c().core.invoke("license_status"),fingerprint:()=>c().core.invoke("machine_fingerprint"),version:()=>c().app.getVersion(),installUpdate:()=>c().core.invoke("install_update"),float:(e,t,n,s)=>c().core.invoke("open_float",{path:e,title:t,width:n,height:s}),importLicense:async()=>{let e=await c().dialog.open({multiple:!1,filters:[{name:"conform.tools licence",extensions:["lic","json"]}]});return typeof e=="string"?c().core.invoke("import_license",{path:e}):null},pickFolder:async()=>{let e=await c().dialog.open({directory:!0,multiple:!1});return typeof e=="string"?e:null},pickFiles:async()=>{let e=await c().dialog.open({directory:!1,multiple:!0});return Array.isArray(e)?e:typeof e=="string"?[e]:[]},pickFile:async()=>{let e=await c().dialog.open({directory:!1,multiple:!1});return typeof e=="string"?e:null},saveFile:async e=>{try{let t=e.split(".").pop()??"json",n=await c().dialog.save({defaultPath:e,filters:[{name:t==="csv"?"Table":"Recipe",extensions:[t]}]});return typeof n=="string"?n:null}catch{let t=await c().dialog.open({directory:!0,multiple:!1});return typeof t=="string"?`${t.replace(/[\\/]$/,"")}/${e}`:null}}};export{v as EngineError,S as SIGNED_OUT,E as engine,$ as engineFs,O as isDemo,V as shell};
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{jc as a,kc as b,lc as c,mc as d,nc as e,oc as f,pc as g,qc as h,rc as i,sc as j,tc as k,uc as l,vc as m,wc as n}from"./chunk-QBQJDV2F.js";import"./chunk-IN6XVTUS.js";import"./chunk-RXRBRR3E.js";import"./chunk-3PVQ5QP4.js";import"./chunk-VFXMP7IF.js";import"./chunk-PIM3PV5N.js";import"./chunk-LUKA7UUJ.js";import"./chunk-ATEWMIY5.js";import"./chunk-2GRXBIJB.js";import"./chunk-EWW5KWAO.js";import"./chunk-567IWIX6.js";import"./chunk-OSUIS4JU.js";import"./chunk-JV7TZDKJ.js";import"./chunk-BBCQMZQN.js";import"./chunk-2DEUYEQD.js";import"./chunk-TD3ZHREE.js";import"./chunk-ND2YUUUH.js";import"./chunk-T7S2UBNN.js";import"./chunk-ANQZKVDD.js";import"./chunk-IDEKLW7C.js";import"./chunk-C2ESM27Z.js";import"./chunk-N34DQ6MH.js";import"./chunk-NU3X7P4N.js";import"./chunk-L2RTMZCN.js";import"./chunk-34JO3JNC.js";import"./chunk-UIX3TT72.js";import"./chunk-NN444GPH.js";import"./chunk-ROGMKTND.js";import"./chunk-GTPTZRO6.js";import"./chunk-PSANHDZM.js";export{j as ASPECTS,a as INPUT_SCALING,f as SIZING_TARGETS,i as alignText,h as alignTimeline,k as aspectOf,l as blankingForAspect,m as blankingQc,n as blankingText,c as inputFitRatio,g as offlineLane,d as resolveProps,b as scalingOf,e as underRef};
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{a as T}from"./chunk-2V5PY4P5.js";import{c as D}from"./chunk-6B3IELRW.js";import{$b as N,R as M,Vb as P,dc as q}from"./chunk-QBQJDV2F.js";import"./chunk-IN6XVTUS.js";import{k as A}from"./chunk-RXRBRR3E.js";import"./chunk-3PVQ5QP4.js";import"./chunk-VFXMP7IF.js";import"./chunk-MHBNMYZP.js";import"./chunk-PIM3PV5N.js";import"./chunk-LUKA7UUJ.js";import"./chunk-ATEWMIY5.js";import"./chunk-2GRXBIJB.js";import"./chunk-EWW5KWAO.js";import"./chunk-567IWIX6.js";import"./chunk-OSUIS4JU.js";import"./chunk-JV7TZDKJ.js";import"./chunk-BBCQMZQN.js";import"./chunk-2DEUYEQD.js";import"./chunk-TD3ZHREE.js";import"./chunk-ND2YUUUH.js";import"./chunk-T7S2UBNN.js";import"./chunk-ANQZKVDD.js";import"./chunk-IDEKLW7C.js";import"./chunk-C2ESM27Z.js";import"./chunk-N34DQ6MH.js";import{b as F}from"./chunk-NU3X7P4N.js";import"./chunk-L2RTMZCN.js";import"./chunk-34JO3JNC.js";import"./chunk-UIX3TT72.js";import"./chunk-NN444GPH.js";import"./chunk-ROGMKTND.js";import{$ as R,L as x,M as E,_ as U,ba as k,p as O,t as S}from"./chunk-GTPTZRO6.js";import"./chunk-PSANHDZM.js";var y=s=>{let i=s?.target_url??s?.local_path??"";return i.startsWith("file://")?O(i):i};async function H(s,i){let o=await V(s,i);return await I(s,o.session,i),o}async function I(s,i,o){let r=await s.liveMarkers(o).catch(()=>null);if(!r)return;let l=i.timelines,e=l.find(m=>m.kind!=="compound")??l[0];if(!e)return;let t=(m,f,a,p)=>({id:`live-${p??"tl"}-${m}`,time:{value:m},duration:{value:Math.max(1,f)},color:a.color,name:a.name,note:a.note,...p?{item_id:p}:{}}),n=r.timeline.map(m=>t(m.frame,m.duration,m)),c=e.tracks.filter(m=>m.kind==="Video");for(let m of r.clips){let f=c[m.track-1]?.items.find(a=>a.timeline_range?.start?.value===m.start);if(f)for(let a of m.markers)n.push(t(a.frame,a.duration,a,f.id))}e.markers=n}async function V(s,i){let o=await s.items({timeline:i,kind:"video"}),r=o.items.map(f=>`${f.kind}:${f.track}:${f.start}:${f.end-f.start}`),l=async f=>{let a=await D(f,o.timeline).catch(()=>null);if(!a||!r.every(d=>a.has(d)))return null;let{session:p}=await P(f,"prproj"),u=p.timelines.find(d=>d.name===o.timeline);return u?z(p,u):null};if(o.project_path){let f=await l(o.project_path);if(f)return await C(f),{session:f,from:"the saved project (matches the live sequence)",path:o.project_path};let a=k(R(o.project_path),"Adobe Premiere Pro Auto-Save"),p=U(o.project_path).replace(/\.prproj$/i,""),u=[];try{for await(let d of E(a))d.isFile&&d.name.startsWith(`${p}--`)&&d.name.endsWith(".prproj")&&u.push({path:k(a,d.name),mtime:(await S(k(a,d.name))).mtime?.getTime()??0})}catch{}for(let d of u.sort((g,_)=>_.mtime-g.mtime).slice(0,3)){let g=await l(d.path);if(g&&await C(g),g)return{session:g,from:`Premiere's auto-save of ${new Date(d.mtime).toLocaleTimeString()} (matches the live sequence; the project itself is not saved)`,path:d.path}}}let e=k(await x("conform-ppro-"),"live.otio"),t=await s.export({timeline:i,out_path:e}),{session:n}=await P(t.path,t.format);if(await W(s,n),await Z(n),typeof o.drop_frame=="boolean")for(let f of n.timelines)f.is_drop_frame=o.drop_frame;await C(n);for(let f of n.timelines)for(let a of f.tracks)for(let p of a.items){let u=p;u.scale=null,u.position_x=null,u.position_y=null,u.rotation=null}let c=await s.model(i).then(f=>f.items.filter(a=>Object.keys(a.sizing??{}).length).map(a=>`${a.name??a.file_path.split("/").pop()} (V${a.track} @${a.start-f.start_frame})`)).catch(()=>[]),m=`Premiere's OTIO export carries the cut, not the clips' Motion / Opacity / effects / retimes${c.length?` \u2014 ${c.length} clip(s) here have Motion that will not carry: ${c.slice(0,6).join(", ")}${c.length>6?"\u2026":""}`:""}; save the project (or wait for its auto-save) and run it again for every one of them`;return{session:n,from:"Premiere's OTIO export of the live sequence (no saved or auto-saved copy matches it yet)",path:t.path,lossy:m}}async function C(s){let i=new Set;for(let r of s.media_references??[]){if(r.binding_state==="linked")continue;let l=y(r);l&&await S(l).then(e=>e.isFile,()=>!1)&&i.add(R(l))}let o=s;for(let r of i){let l=await T(o,{media_root:r,gather:"path",criteria:{file_name:!0,file_name_mode:"tight"},lane:"both",reset:!1,dry_run:!1,compare:!1,cap:2e3,remember:!1}).catch(()=>null);l?.changed&&(o=l.session)}return o!==s&&Object.assign(s,o),(s.media_references??[]).filter(r=>r.binding_state==="linked").length}async function Z(s){let i=0;for(let o of s.media_references??[]){if(o.source_resolution_w)continue;let r=y(o),l=r?await A(r).catch(()=>null):null;if(!l)continue;let e=l;for(let t of["source_resolution_w","source_resolution_h","source_pixel_aspect","codec","container","streams"])e[t]!=null&&o[t]==null&&(o[t]=e[t]);o.source_fps??=e.source_fps??null,o.source_timecode??=e.source_timecode??null,!o.available_range&&e.available_range&&(o.available_range=e.available_range),i++}return i}async function re(s,i){let o=i.timelines.filter(t=>t.offline_reference?.clip_id);if(!o.length)return 0;let r=t=>[...t?.clip_list??[],...(t?.folders??[]).flatMap(r)],l=new Map(r((await s.project({clips:!0})).pool).map(t=>[t.id,t])),e=0;for(let t of o){let n=l.get(t.offline_reference.clip_id);if(n?.file){let c=i.media_references.find(m=>y(m)===n.file);c||(c={id:`offline-ref-${t.id??e}`,kind:"external",name:n.name,target_url:`file://${n.file}`,local_path:n.file},i.media_references.push(c)),t.offline_reference.media_reference_id=c.id,e++}else if(n&&n.name!==t.name&&(n.type==="Timeline"||/compound/i.test(n.type??""))){let{createSession:c}=await import("./store-A5AKWOSX.js"),m=k(await x("conform-offline-ref-"),`${n.name.replace(/[^\w.-]+/g,"_")}.drt`),f=await s.export(n.type==="Timeline"?{timeline:n.name,out_path:m}:{clip_id:n.id,out_path:m}),{session:a}=await P(f.path,"drt");a=(await M(a))?.session??a,t.offline_reference.session_id=(await c(a,f.path,"drt")).id,e++}else t.offline_reference=null}return e}async function W(s,i){let o=(await s.projectClips()).clips,r=new Map(o.filter(e=>e.start_frame!=null&&e.fps).map(e=>[e.file,e])),l=0;for(let e of i.media_references??[]){if(e.source_timecode)continue;let t=r.get(y(e));if(t){e.source_timecode=F(t.start_frame,t.fps),e.source_fps??=t.fps,l++;continue}let n=y(e),c=n?await A(n).catch(()=>null):null;c?.source_timecode&&(e.source_timecode=c.source_timecode,e.source_fps??=c.source_fps??null,l++)}return l}function z(s,i){let o=new Map(s.timelines.map(l=>[l.id,l])),r=[i];for(let l=0;l<r.length;l++)for(let e of r[l].tracks)for(let t of e.items){let n=t.nested_timeline_id,c=n?o.get(n):void 0;c&&!r.includes(c)&&r.push(c)}return{...s,timelines:r}}function X(s,i){let o=new Map((s.media_references??[]).map(n=>[n.id,y(n)])),r=[];for(let n of i.media_references??[]){let c=o.get(n.id),m=y(n);c!==void 0&&m&&m!==c&&r.push({ref_id:n.id,old:c,new:m})}let l=new Map(r.map(n=>[n.ref_id,n])),e=[],t=i.timelines.find(n=>n.kind==="primary")??i.timelines[0];for(let n of t?.tracks??[])if(n.kind==="Video")for(let c of n.items){let m=c.media_reference_id?l.get(c.media_reference_id):void 0;!m||c.kind!=="clip"||!c.source_range||e.push({track:n.track_index,start:c.timeline_range.start.value,duration:c.timeline_range.duration.value,src_in:c.source_range.start.value,path:m.new,name:c.name??""})}return{media:r,cuts:e}}async function oe(s,i){let{session:o,from:r,lossy:l}=await H(s,i.timeline),e=await T(structuredClone(o),{media_root:i.media_root,gather:"walk",reset:!0,lane:"video",dry_run:!1,cap:2e3,criteria:i.criteria??(i.mode==="cut_in"?{file_name:!1,reel_name:!0}:{file_name:!0,file_name_mode:"loose"}),tolerances:i.tolerances}),{media:t,cuts:n}=X(o,e.session),c=[`read from ${r}`,...l&&i.mode==="new_version"?[`\u26A0 ${l}`]:[],`matched ${t.length} medi${t.length===1?"um":"a"} under ${i.media_root} (${n.length} clip use${n.length===1?"":"s"} in the sequence)`],m=t.map(u=>` ${u.old.split("/").pop()} \u2192 ${u.new}`);if(i.dry_run||!t.length)return{text:[...c,...m,i.dry_run?"(dry run \u2014 nothing changed in Premiere)":"",e.text.split(`
4
- `).slice(-6).join(`
5
- `)].filter(Boolean).join(`
6
- `),data:{media:t,cuts:n,from:r}};if(i.mode==="replace"||i.mode==="hires"||i.mode==="proxy"){let d=(await s.projectClips()).clips.flatMap(w=>t.filter(j=>j.old===w.file).map(j=>({clip:w.id,path:j.new,mode:i.mode}))),g=i.mode==="replace"?L(o,e.session,t):new Map,_=g.size?await Y(s,new Set(g.keys())):[],b=await s.relinkClips(d),h=b.results.filter(w=>w.ok).length,$=[...c,`${i.mode==="hires"?"attached full-res behind":i.mode==="proxy"?"attached as proxies to":"repointed"} ${h}/${d.length} project clip(s)${i.mode==="proxy"?" (Toggle Proxies in Premiere switches)":""}`,...m,...b.results.filter(w=>!w.ok).map(w=>` refused: ${w.detail??"Premiere refused"}`)],v=_.length?await B(s,_,g):null;return v&&$.push(...v.lines),{text:$.join(`
7
- `),data:{media:t,results:b.results,undo_relink:b.undo,...v?{refit:v.data}:{},from:r}}}if(i.mode==="cut_in"){let u=await s.items({timeline:i.timeline,kind:"video"}),d=Math.max(0,...u.items.map(h=>h.track)),g=i.track??d+1,_=await s.cutIn(i.timeline,n.map(h=>({path:h.path,track:g,start:h.start,src_in:h.src_in,duration:h.duration,copy_from:{track:h.track,start:h.start}}))),b=_.results.filter(h=>h.ok).length;return{text:[...c,`cut in ${b}/${n.length} on V${g} (video only, the originals untouched underneath; Edit > Undo ${_.undo_steps}\xD7 in Premiere takes the cuts${_.undo_steps>1?" and the carried sizing":""} back; each return clip keeps its in/out marks)`,...n.map((h,$)=>` V${h.track} @${h.start} ${h.name} \u2192 ${h.path.split("/").pop()} src ${h.src_in}${_.results[$]?.ok?"":` REFUSED: ${_.results[$]?.detail??""}`}`)].join(`
8
- `),data:{media:t,cuts:n,results:_.results,track:g,from:r}}}let f=e.session.timelines.find(u=>u.kind==="primary")??e.session.timelines[0];f&&(f.name=i.name??`${f.name}_CONFORMED`);let a=await q(e.session,"premiere-prproj",k(await x("conform-ppro-"),"/"),""),p=await s.open({path:a.path});return{text:[...c,`new sequence "${p.timeline}" in ${p.project} (the open sequence is untouched)`,...m,...p.notes,...a.issues.slice(0,10).map(u=>` note: ${u.message}`)].join(`
9
- `),data:{media:t,path:a.path,sequence:p.timeline,issues:a.issues,from:r}}}function L(s,i,o){let r=new Map,l=(e,t)=>(e.media_references??[]).find(n=>n.id===t);for(let e of o){let t=l(s,e.ref_id),n=l(i,e.ref_id),c=t?.source_resolution_w,m=t?.source_resolution_h,f=n?.source_resolution_w,a=n?.source_resolution_h;!c||!m||!f||!a||c===f||Math.abs(c/m-f/a)>.01||r.set(e.old,c/f)}return r}async function Y(s,i){let o=[];for(let r of(await s.current()).timelines){let l=await s.model(r).catch(()=>null);for(let e of l?.items??[])i.has(e.file_path)&&o.push({sequence:r,track:e.track,start:e.start-l.start_frame,file:e.file_path,zx:e.sizing.ZoomX??1,zy:e.sizing.ZoomY??e.sizing.ZoomX??1,keyframed:!!e.sizing_keyframed})}return o}async function B(s,i,o){let r=[],l={},e=new Map;for(let t of i)(e.get(t.sequence)??e.set(t.sequence,[]).get(t.sequence)).push(t);for(let[t,n]of e){let c=n.filter(a=>a.keyframed),m=n.filter(a=>!a.keyframed).map(a=>{let p=o.get(a.file);return{op:"properties",item:{kind:"video",track:a.track,start:a.start},set:{ZoomX:+(a.zx*p).toFixed(6),ZoomY:+(a.zy*p).toFixed(6)}}}),f=m.length?await s.apply({timeline:t,ops:m}):null;l[t]={rescaled:f?.applied??0,keyframed:c.length,undo:f?.undo??[]},r.push(` "${t}": ${f?.applied??0}/${m.length} use(s) rescaled to keep their framing on the new raster (one Edit > Undo)${c.length?`; ${c.length} with keyframed scale left as they are \u2014 check them`:""}`)}return{lines:["framing kept through the raster change (Premiere's Scale is a percent of the media's pixels):",...r],data:l}}async function G(s){let i=new Set;for(let e of s.timelines)for(let t of e.tracks)for(let n of t.items)n.is_adjustment&&(i.add(n.id),n.is_adjustment=!1);let o=s.timelines.flatMap(e=>e.tracks.flatMap(t=>t.items)).filter(e=>e.kind==="nested").length,r=await M(s);if(!r)throw new Error("un-nesting needs the conform.tools engine on this machine");for(let e of r.session.timelines)for(let t of e.tracks)for(let n of t.items)i.has(n.id)&&(n.is_adjustment=!0);let l=s.timelines[0]?.id;return Object.assign(s,r.session),s.timelines=s.timelines.filter(e=>e.id===l),{summary:`un-nested ${o} nest${o===1?"":"s"}`,issues:r.issues}}async function ae(s,i){let{session:o,from:r,lossy:l}=await H(s,i.timeline),e=await J(o,i.ops,i.name),t=await q(e.session,"premiere-prproj",k(await x("conform-ppro-"),"/"),""),n=await s.open({path:t.path}),c=[...e.issues,...t.issues.map(m=>m.message)];return{text:[`read from ${r}`,...l?[`\u26A0 ${l}`]:[],...e.lines,`new sequence "${n.timeline}" in ${n.project} (the open sequence is untouched)`,...c.slice(0,12).map(m=>` note: ${m}`),...c.length>12?[` \u2026and ${c.length-12} more notes`]:[]].join(`
10
- `),data:{sequence:n.timeline,path:t.path,notes:c,from:r}}}async function J(s,i,o){let r=[],l=[],e=()=>s.timelines[0];for(let n of i){if(n.kind==="unnest"){let a=await G(s);r.push(a.summary),l.push(...a.issues);continue}let c=new Set(s.timelines.map(a=>a.id)),m=N(s,n.kind,{timeline_id:e()?.id,...n.args??{}});r.push(m.summary);let f=s.timelines.find(a=>!c.has(a.id)&&a.kind!=="compound");f&&(s.timelines=z(s,f).timelines)}let t=e();if(!t)throw new Error("nothing to write: the operations left no timeline");return t.name=o??(i.length===1?`${t.name}_${i[0].kind.toUpperCase()}`:`${t.name}_EDIT`),{session:z(s,t),lines:r,issues:l}}export{C as bindAtRecordedPaths,X as changes,J as editSession,ae as hostEdit,oe as hostRelink,H as premiereSession,Z as probeRefs,L as rasterRatios,I as withLiveMarkers,z as withNests,re as withOfflineReference,W as withPremiereTimecodes};
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{a,b,c,d}from"./chunk-ANQZKVDD.js";import"./chunk-IDEKLW7C.js";import"./chunk-C2ESM27Z.js";import"./chunk-UIX3TT72.js";import"./chunk-NN444GPH.js";import"./chunk-ROGMKTND.js";import"./chunk-GTPTZRO6.js";import"./chunk-PSANHDZM.js";export{a as HOSTED_READ_KEYS,b as readHosted,d as shareOriginal,c as writeHosted};
@@ -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{g as a,h as b,i as c,j as d}from"./chunk-AAJRTGEP.js";import"./chunk-6B3IELRW.js";import"./chunk-QBQJDV2F.js";import"./chunk-IN6XVTUS.js";import"./chunk-RXRBRR3E.js";import"./chunk-3PVQ5QP4.js";import"./chunk-VFXMP7IF.js";import"./chunk-MHBNMYZP.js";import"./chunk-PIM3PV5N.js";import"./chunk-LUKA7UUJ.js";import"./chunk-ATEWMIY5.js";import"./chunk-2GRXBIJB.js";import"./chunk-EWW5KWAO.js";import"./chunk-567IWIX6.js";import"./chunk-OSUIS4JU.js";import"./chunk-JV7TZDKJ.js";import"./chunk-BBCQMZQN.js";import"./chunk-2DEUYEQD.js";import"./chunk-TD3ZHREE.js";import"./chunk-ND2YUUUH.js";import"./chunk-T7S2UBNN.js";import"./chunk-ANQZKVDD.js";import"./chunk-IDEKLW7C.js";import"./chunk-C2ESM27Z.js";import"./chunk-N34DQ6MH.js";import"./chunk-NU3X7P4N.js";import"./chunk-L2RTMZCN.js";import"./chunk-34JO3JNC.js";import"./chunk-UIX3TT72.js";import"./chunk-NN444GPH.js";import"./chunk-ROGMKTND.js";import"./chunk-GTPTZRO6.js";import"./chunk-PSANHDZM.js";export{a as AVID_SETUP,b as FLAME_SETUP,d as adapter,c as setAdapter};
@@ -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{g as a,h as b,i as c,j as d,k as e,l as f,m as g,n as h,o as i,p as j,q as k,r as l,s as m,t as n,u as o,v as p}from"./chunk-RXRBRR3E.js";import"./chunk-3PVQ5QP4.js";import"./chunk-VFXMP7IF.js";import"./chunk-BBCQMZQN.js";import"./chunk-2DEUYEQD.js";import"./chunk-TD3ZHREE.js";import"./chunk-ND2YUUUH.js";import"./chunk-NU3X7P4N.js";import"./chunk-L2RTMZCN.js";import"./chunk-ROGMKTND.js";import"./chunk-GTPTZRO6.js";import"./chunk-PSANHDZM.js";export{a as MEDIA_EXTS,f as bwfAt,p as coverage,d as decodeFrameRgba,n as factsLine,g as factsText,m as findMedia,o as findText,h as islandsFor,l as nameMatch,k as normName,c as openSource,e as probeMedia,b as siblingParts,j as trimMedia,i as trimSource};
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import"./chunk-PSANHDZM.js";function O(e,_){let o,t;try{let i=u(e,n.__wbindgen_malloc,n.__wbindgen_realloc),c=l,f=u(_,n.__wbindgen_malloc,n.__wbindgen_realloc),w=l,a=n.capability_issues_json(i,c,f,w);var r=a[0],s=a[1];if(a[3])throw r=0,s=0,b(a[2]);return o=r,t=s,d(r,s)}finally{n.__wbindgen_free(o,t,1)}}function S(e){let _=g(e,n.__wbindgen_malloc),o=l,t=n.deobfuscate_ptx(_,o);if(t[3])throw b(t[2]);var r=A(t[0],t[1]).slice();return n.__wbindgen_free(t[0],t[1]*1,1),r}function I(e){let _,o;try{let t=u(e,n.__wbindgen_malloc,n.__wbindgen_realloc),r=l,s=n.drx_grade_tree(t,r);return _=s[0],o=s[1],d(s[0],s[1])}finally{n.__wbindgen_free(_,o,1)}}function U(e){let _,o;try{let s=g(e,n.__wbindgen_malloc),i=l,c=n.extract_aaf_json(s,i);var t=c[0],r=c[1];if(c[3])throw t=0,r=0,b(c[2]);return _=t,o=r,d(t,r)}finally{n.__wbindgen_free(_,o,1)}}function D(e,_){let o,t;try{let i=g(e,n.__wbindgen_malloc),c=l,f=u(_,n.__wbindgen_malloc,n.__wbindgen_realloc),w=l,a=n.extract_avb_json(i,c,f,w);var r=a[0],s=a[1];if(a[3])throw r=0,s=0,b(a[2]);return o=r,t=s,d(r,s)}finally{n.__wbindgen_free(o,t,1)}}function F(e){let _,o;try{let s=g(e,n.__wbindgen_malloc),i=l,c=n.extract_blscene_json(s,i);var t=c[0],r=c[1];if(c[3])throw t=0,r=0,b(c[2]);return _=t,o=r,d(t,r)}finally{n.__wbindgen_free(_,o,1)}}function B(e){let _,o;try{let s=u(e,n.__wbindgen_malloc,n.__wbindgen_realloc),i=l,c=n.extract_drt_json(s,i);var t=c[0],r=c[1];if(c[3])throw t=0,r=0,b(c[2]);return _=t,o=r,d(t,r)}finally{n.__wbindgen_free(_,o,1)}}function L(e){let _,o;try{let s=g(e,n.__wbindgen_malloc),i=l,c=n.extract_flame_json(s,i);var t=c[0],r=c[1];if(c[3])throw t=0,r=0,b(c[2]);return _=t,o=r,d(t,r)}finally{n.__wbindgen_free(_,o,1)}}function k(e,_){let o,t;try{let i=g(e,n.__wbindgen_malloc),c=l,f=u(_,n.__wbindgen_malloc,n.__wbindgen_realloc),w=l,a=n.extract_prproj_json(i,c,f,w);var r=a[0],s=a[1];if(a[3])throw r=0,s=0,b(a[2]);return o=r,t=s,d(r,s)}finally{n.__wbindgen_free(o,t,1)}}function C(e){let _,o;try{let s=g(e,n.__wbindgen_malloc),i=l,c=n.extract_ptx_json(s,i);var t=c[0],r=c[1];if(c[3])throw t=0,r=0,b(c[2]);return _=t,o=r,d(t,r)}finally{n.__wbindgen_free(_,o,1)}}function q(e){let _,o;try{let s=g(e,n.__wbindgen_malloc),i=l,c=n.inspect_aaf_json(s,i);var t=c[0],r=c[1];if(c[3])throw t=0,r=0,b(c[2]);return _=t,o=r,d(t,r)}finally{n.__wbindgen_free(_,o,1)}}function z(e){let _,o;try{let s=g(e,n.__wbindgen_malloc),i=l,c=n.inspect_avb_json(s,i);var t=c[0],r=c[1];if(c[3])throw t=0,r=0,b(c[2]);return _=t,o=r,d(t,r)}finally{n.__wbindgen_free(_,o,1)}}function P(e,_){let o,t;try{let i=g(e,n.__wbindgen_malloc),c=l,f=u(_,n.__wbindgen_malloc,n.__wbindgen_realloc),w=l,a=n.inspect_blscene_json(i,c,f,w);var r=a[0],s=a[1];if(a[3])throw r=0,s=0,b(a[2]);return o=r,t=s,d(r,s)}finally{n.__wbindgen_free(o,t,1)}}function N(e,_){let o,t;try{let i=u(e,n.__wbindgen_malloc,n.__wbindgen_realloc),c=l,f=u(_,n.__wbindgen_malloc,n.__wbindgen_realloc),w=l,a=n.inspect_capcut_json(i,c,f,w);var r=a[0],s=a[1];if(a[3])throw r=0,s=0,b(a[2]);return o=r,t=s,d(r,s)}finally{n.__wbindgen_free(o,t,1)}}function V(e){let _,o;try{let s=u(e,n.__wbindgen_malloc,n.__wbindgen_realloc),i=l,c=n.inspect_drt_json(s,i);var t=c[0],r=c[1];if(c[3])throw t=0,r=0,b(c[2]);return _=t,o=r,d(t,r)}finally{n.__wbindgen_free(_,o,1)}}function X(e,_){let o,t;try{let i=u(e,n.__wbindgen_malloc,n.__wbindgen_realloc),c=l,f=u(_,n.__wbindgen_malloc,n.__wbindgen_realloc),w=l,a=n.inspect_fcpxml_json(i,c,f,w);var r=a[0],s=a[1];if(a[3])throw r=0,s=0,b(a[2]);return o=r,t=s,d(r,s)}finally{n.__wbindgen_free(o,t,1)}}function Y(e,_){let o,t;try{let i=g(e,n.__wbindgen_malloc),c=l,f=u(_,n.__wbindgen_malloc,n.__wbindgen_realloc),w=l,a=n.inspect_flame_json(i,c,f,w);var r=a[0],s=a[1];if(a[3])throw r=0,s=0,b(a[2]);return o=r,t=s,d(r,s)}finally{n.__wbindgen_free(o,t,1)}}function G(e,_){let o,t;try{let i=u(e,n.__wbindgen_malloc,n.__wbindgen_realloc),c=l,f=u(_,n.__wbindgen_malloc,n.__wbindgen_realloc),w=l,a=n.inspect_otio_json(i,c,f,w);var r=a[0],s=a[1];if(a[3])throw r=0,s=0,b(a[2]);return o=r,t=s,d(r,s)}finally{n.__wbindgen_free(o,t,1)}}function H(e){let _,o;try{let s=g(e,n.__wbindgen_malloc),i=l,c=n.inspect_prproj_json(s,i);var t=c[0],r=c[1];if(c[3])throw t=0,r=0,b(c[2]);return _=t,o=r,d(t,r)}finally{n.__wbindgen_free(_,o,1)}}function J(e,_){let o,t;try{let i=g(e,n.__wbindgen_malloc),c=l,f=u(_,n.__wbindgen_malloc,n.__wbindgen_realloc),w=l,a=n.inspect_ptx_json(i,c,f,w);var r=a[0],s=a[1];if(a[3])throw r=0,s=0,b(a[2]);return o=r,t=s,d(r,s)}finally{n.__wbindgen_free(o,t,1)}}function K(e,_){let o,t;try{let i=u(e,n.__wbindgen_malloc,n.__wbindgen_realloc),c=l,f=u(_,n.__wbindgen_malloc,n.__wbindgen_realloc),w=l,a=n.inspect_xmeml_json(i,c,f,w);var r=a[0],s=a[1];if(a[3])throw r=0,s=0,b(a[2]);return o=r,t=s,d(r,s)}finally{n.__wbindgen_free(o,t,1)}}function j(){return{__proto__:null,"./timeline_core_bg.js":{__proto__:null,__wbg_Error_fdd633d4bb5dd76a:function(_,o){return Error(d(_,o))},__wbindgen_cast_0000000000000001:function(_,o){return d(_,o)},__wbindgen_init_externref_table:function(){let _=n.__wbindgen_externrefs,o=_.grow(4);_.set(0,void 0),_.set(o+0,void 0),_.set(o+1,null),_.set(o+2,!0),_.set(o+3,!1)}}}}function A(e,_){return e=e>>>0,y().subarray(e/1,e/1+_)}function d(e,_){return T(e>>>0,_)}var p=null;function y(){return(p===null||p.byteLength===0)&&(p=new Uint8Array(n.memory.buffer)),p}function g(e,_){let o=_(e.length*1,1)>>>0;return y().set(e,o/1),l=e.length,o}function u(e,_,o){if(o===void 0){let c=x.encode(e),f=_(c.length,1)>>>0;return y().subarray(f,f+c.length).set(c),l=c.length,f}let t=e.length,r=_(t,1)>>>0,s=y(),i=0;for(;i<t;i++){let c=e.charCodeAt(i);if(c>127)break;s[r+i]=c}if(i!==t){i!==0&&(e=e.slice(i)),r=o(r,t,t=i+e.length*3,1)>>>0;let c=y().subarray(r+i,r+t),f=x.encodeInto(e,c);i+=f.written,r=o(r,t,i,1)>>>0}return l=i,r}function b(e){let _=n.__wbindgen_externrefs.get(e);return n.__externref_table_dealloc(e),_}var m=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});m.decode();var W=2146435072,v=0;function T(e,_){return v+=_,v>=W&&(m=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),m.decode(),v=_),m.decode(y().subarray(e,e+_))}var x=new TextEncoder;"encodeInto"in x||(x.encodeInto=function(e,_){let o=x.encode(e);return _.set(o),{read:e.length,written:o.length}});var l=0,R,E,n;function h(e,_){return E=e,n=e.exports,R=_,p=null,n.__wbindgen_start(),n}async function M(e,_){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,_)}catch(r){if(e.ok&&o(e.type)&&e.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r);else throw r}let t=await e.arrayBuffer();return await WebAssembly.instantiate(t,_)}else{let t=await WebAssembly.instantiate(e,_);return t instanceof WebAssembly.Instance?{instance:t,module:e}:t}function o(t){switch(t){case"basic":case"cors":case"default":return!0}return!1}}function Q(e){if(n!==void 0)return n;e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module:e}=e:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let _=j();e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e));let o=new WebAssembly.Instance(e,_);return h(o,e)}async function Z(e){if(n!==void 0)return n;e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),e===void 0&&(e=new URL("timeline_core_bg.wasm",import.meta.url));let _=j();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));let{instance:o,module:t}=await M(await e,_);return h(o,t)}export{O as capability_issues_json,Z as default,S as deobfuscate_ptx,I as drx_grade_tree,U as extract_aaf_json,D as extract_avb_json,F as extract_blscene_json,B as extract_drt_json,L as extract_flame_json,k as extract_prproj_json,C as extract_ptx_json,Q as initSync,q as inspect_aaf_json,z as inspect_avb_json,P as inspect_blscene_json,N as inspect_capcut_json,V as inspect_drt_json,X as inspect_fcpxml_json,Y as inspect_flame_json,G as inspect_otio_json,H as inspect_prproj_json,J as inspect_ptx_json,K as inspect_xmeml_json};