conformtools 0.6.2 → 0.6.3

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 (50) hide show
  1. package/README.md +6 -1
  2. package/dist/browser/timeline_core_bg.wasm +0 -0
  3. package/dist/{chunk-BXFVYGFW.js → chunk-5K56Q5EX.js} +1 -1
  4. package/dist/chunk-6FVGUJ6L.js +3 -0
  5. package/dist/{chunk-FNGHTZ5F.js → chunk-BK62N3ID.js} +1 -1
  6. package/dist/{chunk-RUBNBRUK.js → chunk-CETBLAWM.js} +1 -1
  7. package/dist/{chunk-RULUDOB7.js → chunk-D2RXAX5C.js} +1 -1
  8. package/dist/chunk-EV52G33S.js +354 -0
  9. package/dist/chunk-FMYTLXWN.js +3 -0
  10. package/dist/{chunk-PIEH7J6J.js → chunk-JBSH4AK3.js} +1 -1
  11. package/dist/{chunk-JH3OLTR6.js → chunk-LO4K2ZF3.js} +1 -1
  12. package/dist/{chunk-BTXLTVNK.js → chunk-R7P7WVNI.js} +1 -1
  13. package/dist/{chunk-KP4C2MFM.js → chunk-WE4S4PEA.js} +1 -1
  14. package/dist/cli.js +9 -9
  15. package/dist/conformtools-decode +0 -0
  16. package/dist/{cr3-wasm-YTMVBAFM.js → cr3-wasm-HTRSUBJK.js} +1 -1
  17. package/dist/{dng-wasm-WUUQB7M2.js → dng-wasm-2I7S2SN4.js} +1 -1
  18. package/dist/{dpx-wasm-XBKO4V4W.js → dpx-wasm-AHH7D56L.js} +1 -1
  19. package/dist/{exr-wasm-VE2W6MFW.js → exr-wasm-3TAN64WQ.js} +1 -1
  20. package/dist/{h264-HD7BY5J5.js → h264-2LU2X635.js} +1 -1
  21. package/dist/{h264-mxf-6OOODSAK.js → h264-mxf-5HJUSZLL.js} +1 -1
  22. package/dist/http.js +1 -1
  23. package/dist/i2o-transfer +0 -0
  24. package/dist/{inspect-TDZCNXVW.js → inspect-NY36WVMH.js} +1 -1
  25. package/dist/isobmff-HSF7B3Y7.js +3 -0
  26. package/dist/mcp.js +5 -5
  27. package/dist/{media_core_bg-YBW45HJ2.js → media_core_bg-MEORQOCQ.js} +1 -1
  28. package/dist/mxf-IQBPP3JA.js +3 -0
  29. package/dist/{ops-UPPAG2TI.js → ops-PFEKOSET.js} +1 -1
  30. package/dist/{r3d-KJVC7T2C.js → r3d-QLV4J6YF.js} +1 -1
  31. package/dist/{r3d-EY6FEFKM.js → r3d-YZH6X2D7.js} +1 -1
  32. package/dist/resolve-bridge.py +7 -2
  33. package/dist/still-LORP3E5C.js +3 -0
  34. package/dist/{tiff-wasm-T2V2ICZT.js → tiff-wasm-6XFTTCL4.js} +1 -1
  35. package/dist/wasm/media_core_bg.wasm +0 -0
  36. package/dist/wasm/udf_bg.wasm +0 -0
  37. package/dist/{wav-LFS6OZHJ.js → wav-PMVKVYNP.js} +1 -1
  38. package/package.json +1 -1
  39. package/dist/chunk-CX3USH6A.js +0 -318
  40. package/dist/chunk-JEMLKBH2.js +0 -3
  41. package/dist/chunk-RXHNBSER.js +0 -3
  42. package/dist/isobmff-57HSD6O2.js +0 -3
  43. package/dist/mxf-FAXEK4WR.js +0 -3
  44. package/dist/still-WY7MUR7A.js +0 -3
  45. /package/dist/{arriraw-BEZILZY3.js → arriraw-GUQEZ7CH.js} +0 -0
  46. /package/dist/{chunk-NP53ITN6.js → chunk-GIZIR52D.js} +0 -0
  47. /package/dist/{media_core_bg-5UIQAP7I.js → media_core_bg-5QHIWEZB.js} +0 -0
  48. /package/dist/{prores-BNALPJPS.js → prores-BR2YURFP.js} +0 -0
  49. /package/dist/{timeline_core_bg-XYT26ZTU.js → timeline_core_bg-DFKQ7XOU.js} +0 -0
  50. /package/dist/{udf_bg-R3JEZJAT.js → udf_bg-ZIB3GK52.js} +0 -0
package/README.md CHANGED
@@ -61,7 +61,12 @@ what they do:
61
61
 
62
62
  - **conform**: turnover checks, relink, write, check and report what did not carry,
63
63
  with notes per host (Resolve, Premiere, Avid, Flame, Final Cut, Baselight, Pro Tools).
64
- - **deliver**: consolidate, package (folder or ISO) and QC a delivery before it leaves.
64
+ - **deliver**: consolidate, package (folder or ISO) and QC a delivery before it leaves. A
65
+ delivery is one `.iso` wherever it goes: on disk, in your org's own bucket
66
+ (`destination=bucket`, only bytes no earlier delivery there holds are uploaded), or straight to
67
+ one recipient peer to peer (`destination=p2p`, Iroh). `add_to` grows an earlier delivery with a
68
+ re-cut's new frames only. `delivery_fetch` opens any of them the same way: list it, take the
69
+ `.iso`, cut a folder of trims from it, or mount it live (macOS).
65
70
 
66
71
  The agent loads the playbook for its task with the `conform_learn` tool. Hosts that
67
72
  support the MCP Skills Extension (`io.modelcontextprotocol/skills`) also see them as
Binary file
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{Ca as r,S as s,l as o}from"./chunk-PIEH7J6J.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{d as a,l as b};
3
+ import{Ca as r,S as s,l as o}from"./chunk-JBSH4AK3.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{d as a,l as b};
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
+ var F=new Set(["png","jpg","jpeg","tif","tiff","psd","tga","bmp","gif","webp","avif","heic","heif","exr","dpx","pict","pct"]);function B(t){let n=t.split(/[/\\]/).pop()??"",e=n.lastIndexOf(".");return e>0?n.slice(e+1).toLowerCase():""}function k(t){return!!t&&F.has(B(t))}function N(t){return t.content_kind==="still"?!0:t.content_kind!=null?!1:k(t.source_filename)||k(t.target_url)}function Y(t){return{size:t.length,async read(n,e){let r=Math.max(0,Math.min(n,t.length)),u=Math.max(r,Math.min(r+e,t.length));return t.subarray(r,u)}}}function q(t){return{size:t.fileSize,read:(n,e)=>t.read(n,e)}}var U=class{constructor(n){this.r=n;this.buf=new Uint8Array(0);this.base=0}async at(n,e){if(n<0||e<=0)return new Uint8Array(0);let r=n-this.base;return r>=0&&r+e<=this.buf.length?this.buf.subarray(r,r+e):(this.buf=await this.r.read(n,Math.max(e,65536)),this.base=n,this.buf.subarray(0,Math.min(e,this.buf.length)))}},A=(t,n)=>t[n]<<8|t[n+1],b=(t,n)=>t[n]|t[n+1]<<8,W=(t,n)=>t[n]|t[n+1]<<8|t[n+2]<<16,m=(t,n)=>(t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3])>>>0,p=(t,n)=>(t[n]|t[n+1]<<8|t[n+2]<<16|t[n+3]<<24)>>>0,P=(t,n)=>t[n]|t[n+1]<<8|t[n+2]<<16|t[n+3]<<24,x=(t,n,e)=>String.fromCharCode(...t.subarray(n,n+e));function d(t,n){if(!Number.isFinite(t)||!Number.isFinite(n))return null;let e=Math.round(t),r=Math.round(n);return e<1||r<1||e>1e6||r>1e6?null:{width:e,height:r}}var v=t=>({width:t.height,height:t.width});async function z(t){let n=await t.at(0,24);return n.length<24||n[0]!==137||x(n,1,3)!=="PNG"||x(n,12,4)!=="IHDR"?null:d(m(n,16),m(n,20))}var L=new Set([192,193,194,195,197,198,199,201,202,203,205,206,207]);function O(t){if(t.length<8)return null;let n=t[0]===73&&t[1]===73,e=t[0]===77&&t[1]===77;if(!n&&!e)return null;let r=i=>n?b(t,i):A(t,i),u=i=>n?p(t,i):m(t,i);if(r(2)!==42)return null;let a=u(4);if(a+2>t.length)return null;let c=r(a);for(let i=0;i<c;i++){let s=a+2+i*12;if(s+12>t.length)break;if(r(s)===274)return r(s+8)}return null}async function _(t,n){let e=await t.at(0,2);if(e.length<2||e[0]!==255||e[1]!==216)return null;let r=1,u=null,a=2;for(;a+4<=n;){let c=await t.at(a,4);if(c.length<4)break;if(c[0]!==255){a++;continue}let i=c[1];if(i===255){a++;continue}if(i===1||i>=208&&i<=217){a+=2;continue}if(i===218)break;let s=A(c,2);if(s<2)break;if(L.has(i)){let o=await t.at(a+4,5);o.length>=5&&(u=d(A(o,3),A(o,1)));break}if(i===225){let o=await t.at(a+4,Math.min(s-2,65536));o.length>6&&x(o,0,4)==="Exif"&&(r=O(o.subarray(6))??1)}a+=2+s}return u?r>=5&&r<=8?v(u):u:null}async function E(t){let n=await t.at(0,10);return n.length<10||x(n,0,3)!=="GIF"?null:d(b(n,6),b(n,8))}async function j(t){let n=await t.at(0,26);return n.length<22||x(n,0,2)!=="BM"?null:p(n,14)===12?d(b(n,18),b(n,20)):n.length<26?null:d(P(n,18),Math.abs(P(n,22)))}async function C(t){let n=await t.at(0,30);if(n.length<16||x(n,0,4)!=="RIFF"||x(n,8,4)!=="WEBP")return null;let e=x(n,12,4);if(e==="VP8X")return n.length<30?null:d(W(n,24)+1,W(n,27)+1);if(e==="VP8 ")return n.length<30||n[23]!==157||n[24]!==1||n[25]!==42?null:d(b(n,26)&16383,b(n,28)&16383);if(e==="VP8L"){if(n.length<25||n[20]!==47)return null;let r=p(n,21);return d((r&16383)+1,(r>>>14&16383)+1)}return null}async function S(t,n){let e=[],r=0;async function u(i,s,o){let f=i;for(;f+8<=s&&o<8;){let g=await t.at(f,16);if(g.length<8)return;let l=m(g,0),h=x(g,4,4),y=8;if(l===1){if(g.length<16)return;l=m(g,8)*2**32+m(g,12),y=16}else l===0&&(l=s-f);if(l<y||f+l>s)return;if(h==="meta")await u(f+y+4,f+l,o+1);else if(h==="iprp"||h==="ipco")await u(f+y,f+l,o+1);else if(h==="ispe"){let w=await t.at(f+y+4,8);if(w.length===8){let R=d(m(w,0),m(w,4));R&&e.push(R)}}else if(h==="irot"){let w=await t.at(f+y,1);w.length===1&&(r=w[0]&3)}f+=l}}let a=await t.at(0,12);if(a.length<12||x(a,4,4)!=="ftyp"||(await u(0,n,0),e.length===0))return null;let c=e.reduce((i,s)=>i.width*i.height>=s.width*s.height?i:s);return r===1||r===3?v(c):c}async function I(t){let n=await t.at(0,22);return n.length<22||x(n,0,4)!=="8BPS"?null:d(m(n,18),m(n,14))}var T=new Set([0,1,2,3,9,10,11]);async function X(t){let n=await t.at(0,18);if(n.length<18||n[1]>1||!T.has(n[2]))return null;let e=n[16];return[8,15,16,24,32].includes(e)?d(b(n,12),b(n,14)):null}async function M(t){let n=await t.at(0,8);if(n.length<8)return null;let e=n[0]===73&&n[1]===73,r=n[0]===77&&n[1]===77;if(!e&&!r)return null;let u=(l,h)=>e?b(l,h):A(l,h),a=(l,h)=>e?p(l,h):m(l,h);if(u(n,2)!==42)return null;let c=a(n,4),i=await t.at(c,2);if(i.length<2)return null;let s=u(i,0);if(s<1||s>4096)return null;let o=await t.at(c+2,s*12),f=0,g=0;for(let l=0;l<s;l++){let h=l*12;if(h+12>o.length)break;let y=u(o,h),R=u(o,h+2)===3?u(o,h+8):a(o,h+8);y===256?f=R:y===257&&(g=R)}return d(f,g)}async function D(t,n){let e=await t.at(0,8);if(e.length<8||e[0]!==118||e[1]!==47||e[2]!==49||e[3]!==1)return null;let r=8,u=Math.min(n,1<<20);for(;r<u;){let a=await t.at(r,512);if(a.length===0)return null;let c=a.indexOf(0);if(c<=0)return null;let i=x(a,0,c),s=a.subarray(c+1).indexOf(0);if(s<0)return null;let o=c+1+s+1;if(o+4>a.length)return null;let f=p(a,o),g=r+o+4;if(i==="dataWindow"){if(f<16)return null;let l=await t.at(g,16);return l.length<16?null:d(P(l,8)-P(l,0)+1,P(l,12)-P(l,4)+1)}r=g+f}return null}async function G(t){let n=await t.at(0,4);if(n.length<4)return null;let e=x(n,0,4),r=e==="SDPX";if(!r&&e!=="XPDS")return null;let u=await t.at(772,8);return u.length<8?null:d(r?m(u,0):p(u,0),r?m(u,4):p(u,4))}var H={png:z,jpg:_,jpeg:_,gif:E,bmp:j,webp:C,avif:S,heic:S,heif:S,psd:I,tga:X,tif:M,tiff:M,exr:D,dpx:G};async function J(t,n){let e=H[(t??"").toLowerCase()];if(!e)return null;try{return await e(new U(n),n.size)}catch{return null}}export{B as a,k as b,N as c,Y as d,q as e,J as f};
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- var s={scrub:{output:"rgba8",detail:"coarse"},thumbnail:{output:"rgba8",detail:"coarse"},park:{output:"rgba8",detail:"exact"},render:{output:"rgba8",detail:"exact"},transcode:{output:"rgb16",detail:"exact"}};function p(e){let t=new DataView(e.buffer,e.byteOffset,8),r=t.getUint32(0,!0),n=t.getUint32(4,!0),o=e.slice(8);return{width:r,height:n,rgb16:new Uint16Array(o.buffer,o.byteOffset,r*n*3)}}var a=class extends Error{constructor(r,n){super(`COVERAGE_MISS: frame ${r} not in linked media (${n} frames)`);this.index=r;this.frameCount=n;this.name="CoverageMissError"}},m=/(?:[A-Z0-9]+_)?COVERAGE_MISS\s+(\{[\s\S]*\})/;function u(e){let r=(e instanceof Error?e.message:String(e??"")).match(m);if(!r)return null;try{return JSON.parse(r[1])}catch{return{reason:"coverage_miss"}}}var i=class extends Error{constructor(r){super(`DELIVERY_COVERAGE_MISS: ${r.reason}`+(r.cut_in!=null?` cut [${r.cut_in}..${r.cut_out}] file_frames ${r.file_frames}`:""));this.detail=r;this.name="DeliveryCoverageMissError"}};function l(e){return e instanceof i?e.detail:u(e)}var d={mov:()=>import("./isobmff-57HSD6O2.js").then(e=>e.isobmffFormat),crm:()=>import("./isobmff-57HSD6O2.js").then(e=>e.isobmffFormat),braw:()=>import("./isobmff-57HSD6O2.js").then(e=>e.isobmffFormat),wav:()=>import("./wav-LFS6OZHJ.js").then(e=>e.wavFormat),mxf:()=>import("./mxf-FAXEK4WR.js").then(e=>e.mxfFormat),r3d:()=>import("./r3d-KJVC7T2C.js").then(e=>e.r3dFormat),still:()=>import("./still-WY7MUR7A.js").then(e=>e.stillFormat),avc1:()=>import("./h264-HD7BY5J5.js").then(e=>e.h264Format),avc3:()=>import("./h264-HD7BY5J5.js").then(e=>e.h264Format),h264:()=>import("./h264-HD7BY5J5.js").then(e=>e.h264Format),hvc1:()=>import("./h264-HD7BY5J5.js").then(e=>e.h264Format),hev1:()=>import("./h264-HD7BY5J5.js").then(e=>e.h264Format),hevc:()=>import("./h264-HD7BY5J5.js").then(e=>e.h264Format),h264_mxf:()=>import("./h264-mxf-6OOODSAK.js").then(e=>e.h264MxfFormat)};async function c(e){let t=d[e];return t?await t():null}async function f(e){let t=await c(e.format);if(!t)throw new Error(`extract: no handler for format '${e.format}'`);return t.extract(e)}async function b(e,t){let r=await c(e.format);if(!r){if(t.verb==="inspect")return null;throw new Error(`mediaOp: no handler for format '${e.format}' (verb ${t.verb})`)}switch(t.verb){case"inspect":{let n=await r.inspect(e);return n&&(n.source_facts_origin="probed"),n}case"sparsify":return r.sparsify(e,t.selection);case"trim":return r.trim(e,t.selection);case"decode":{let{output:n,detail:o}=s[t.intent];if(n==="rgb16"){if(!r.decode16)throw new Error(`mediaOp: format '${e.format}' has no 16-bit decoder (intent '${t.intent}')`);return r.decode16(e,t.index)}if(!r.decode)throw new Error(`mediaOp: format '${e.format}' has no decoder (no viewer)`);return r.decode(e,t.index,{detail:o})}}}export{s as a,p as b,a as c,u as d,i as e,l as f,c as g,f as h,b as i};
3
+ var s={scrub:{output:"rgba8",detail:"coarse"},thumbnail:{output:"rgba8",detail:"coarse"},park:{output:"rgba8",detail:"exact"},render:{output:"rgba8",detail:"exact"},transcode:{output:"rgb16",detail:"exact"}};function p(e){let t=new DataView(e.buffer,e.byteOffset,8),r=t.getUint32(0,!0),n=t.getUint32(4,!0),o=e.slice(8);return{width:r,height:n,rgb16:new Uint16Array(o.buffer,o.byteOffset,r*n*3)}}var a=class extends Error{constructor(r,n){super(`COVERAGE_MISS: frame ${r} not in linked media (${n} frames)`);this.index=r;this.frameCount=n;this.name="CoverageMissError"}},m=/(?:[A-Z0-9]+_)?COVERAGE_MISS\s+(\{[\s\S]*\})/;function u(e){let r=(e instanceof Error?e.message:String(e??"")).match(m);if(!r)return null;try{return JSON.parse(r[1])}catch{return{reason:"coverage_miss"}}}var i=class extends Error{constructor(r){super(`DELIVERY_COVERAGE_MISS: ${r.reason}`+(r.cut_in!=null?` cut [${r.cut_in}..${r.cut_out}] file_frames ${r.file_frames}`:""));this.detail=r;this.name="DeliveryCoverageMissError"}};function l(e){return e instanceof i?e.detail:u(e)}var d={mov:()=>import("./isobmff-HSF7B3Y7.js").then(e=>e.isobmffFormat),crm:()=>import("./isobmff-HSF7B3Y7.js").then(e=>e.isobmffFormat),braw:()=>import("./isobmff-HSF7B3Y7.js").then(e=>e.isobmffFormat),wav:()=>import("./wav-PMVKVYNP.js").then(e=>e.wavFormat),mxf:()=>import("./mxf-IQBPP3JA.js").then(e=>e.mxfFormat),r3d:()=>import("./r3d-QLV4J6YF.js").then(e=>e.r3dFormat),still:()=>import("./still-LORP3E5C.js").then(e=>e.stillFormat),avc1:()=>import("./h264-2LU2X635.js").then(e=>e.h264Format),avc3:()=>import("./h264-2LU2X635.js").then(e=>e.h264Format),h264:()=>import("./h264-2LU2X635.js").then(e=>e.h264Format),hvc1:()=>import("./h264-2LU2X635.js").then(e=>e.h264Format),hev1:()=>import("./h264-2LU2X635.js").then(e=>e.h264Format),hevc:()=>import("./h264-2LU2X635.js").then(e=>e.h264Format),h264_mxf:()=>import("./h264-mxf-5HJUSZLL.js").then(e=>e.h264MxfFormat)};async function c(e){let t=d[e];return t?await t():null}async function f(e){let t=await c(e.format);if(!t)throw new Error(`extract: no handler for format '${e.format}'`);return t.extract(e)}async function b(e,t){let r=await c(e.format);if(!r){if(t.verb==="inspect")return null;throw new Error(`mediaOp: no handler for format '${e.format}' (verb ${t.verb})`)}switch(t.verb){case"inspect":{let n=await r.inspect(e);return n&&(n.source_facts_origin="probed"),n}case"sparsify":return r.sparsify(e,t.selection);case"trim":return r.trim(e,t.selection);case"decode":{let{output:n,detail:o}=s[t.intent];if(n==="rgb16"){if(!r.decode16)throw new Error(`mediaOp: format '${e.format}' has no 16-bit decoder (intent '${t.intent}')`);return r.decode16(e,t.index)}if(!r.decode)throw new Error(`mediaOp: format '${e.format}' has no decoder (no viewer)`);return r.decode(e,t.index,{detail:o})}}}export{s as a,p as b,a as c,u as d,i as e,l as f,c as g,f as h,b as i};
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
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{Aa as u,Ca as n,V as c,p as s}from"./chunk-PIEH7J6J.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{y as a,d as b,h as c};
3
+ import{a as m,b as l}from"./chunk-DKGGJM6Z.js";import{Aa as u,Ca as n,V as c,p as s}from"./chunk-JBSH4AK3.js";async function g(r){await n();let e=c(r);return e==="null"?null:JSON.parse(e)}async function d(r){await n();let e;try{e=s(r)}catch{return null}if(e.length<8)return null;let t=new DataView(e.buffer,e.byteOffset,e.byteLength),a=t.getUint32(0,!0),i=t.getUint32(4,!0),o=a*i*4;return e.length<8+o?null:{width:a,height:i,rgba:new Uint8ClampedArray(e.subarray(8,8+o))}}async function y(r,e=8){await n();let t=l(u,"decode_exr_preview");if(!t)return d(r);try{return m(t(r,e))}catch{return null}}export{g as a,d as b,y as c};
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
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{Aa as u,Ca as t,T as s,n as d}from"./chunk-PIEH7J6J.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{h as a,g as b,y as c};
3
+ import{a as c,b as m}from"./chunk-DKGGJM6Z.js";import{Aa as u,Ca as t,T as s,n as d}from"./chunk-JBSH4AK3.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{h as a,g as b,y as c};