conformtools 0.6.5 → 0.6.6
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.
- package/README.md +3 -3
- package/dist/account-HDXVTS5T.js +3 -0
- package/dist/arriraw-YIJ3BYNN.js +525 -0
- package/dist/avid-panel/MANIFEST.json +11 -0
- package/dist/avid-panel/avid-manifest.json +46 -0
- package/dist/avid-panel/icon.svg +4 -0
- package/dist/avid-panel/icons/conformtools.svg +4 -0
- package/dist/avid-panel/index.html +26 -0
- package/dist/avid-panel/panel.css +12 -0
- package/dist/avid-panel/panel.js +7 -0
- package/dist/bridge-D5KPIUSY.js +3 -0
- package/dist/browser/timeline_core_bg.wasm +0 -0
- package/dist/chunk-3OCQA33E.js +3 -0
- package/dist/chunk-3XD6NC4G.js +10 -0
- package/dist/chunk-5JBUCVRI.js +20 -0
- package/dist/chunk-5RSNFPED.js +8 -0
- package/dist/chunk-5SUGU2YR.js +3 -0
- package/dist/chunk-6ML26TIK.js +3 -0
- package/dist/chunk-7D7H6VFW.js +3 -0
- package/dist/chunk-7MC7M2Y5.js +3 -0
- package/dist/chunk-AACY2V3L.js +3 -0
- package/dist/chunk-AS7IXHYM.js +19 -0
- package/dist/chunk-BL6L5ZBP.js +39 -0
- package/dist/chunk-C2ESM27Z.js +3 -0
- package/dist/chunk-C5IX63YF.js +3 -0
- package/dist/chunk-D6YDLKSA.js +3 -0
- package/dist/chunk-DKGGJM6Z.js +3 -0
- package/dist/chunk-EJGVNQ3E.js +8 -0
- package/dist/chunk-HGDO3OED.js +3 -0
- package/dist/chunk-JV7TZDKJ.js +3 -0
- package/dist/chunk-LFJLRLEP.js +3 -0
- package/dist/chunk-NFJHWZJX.js +3 -0
- package/dist/chunk-NQHQKEP5.js +3 -0
- package/dist/chunk-NU3X7P4N.js +3 -0
- package/dist/chunk-OJWIBQK4.js +376 -0
- package/dist/chunk-OVUCL3YY.js +5 -0
- package/dist/chunk-P7OVDUA5.js +3 -0
- package/dist/chunk-PFISREY4.js +3 -0
- package/dist/chunk-PFZVET7S.js +3 -0
- package/dist/chunk-PLRB2YXJ.js +3 -0
- package/dist/chunk-PSANHDZM.js +3 -0
- package/dist/chunk-RFIPLBQ4.js +5 -0
- package/dist/chunk-SZD4C5MB.js +6 -0
- package/dist/chunk-TK55FA56.js +3 -0
- package/dist/chunk-TXQR2HI2.js +4 -0
- package/dist/chunk-UCMNH6Q6.js +3 -0
- package/dist/chunk-UKKRZ574.js +7 -0
- package/dist/chunk-VS3MKKJ5.js +3 -0
- package/dist/chunk-X53BNWNV.js +3 -0
- package/dist/chunk-XNR7M4VX.js +3 -0
- package/dist/claude-setup-IIWUB4CE.js +5 -0
- package/dist/cli.js +17 -0
- package/dist/clip-state-B6JOX3JE.js +3 -0
- package/dist/conformtools-analyze +0 -0
- package/dist/conformtools-decode +0 -0
- package/dist/cr3-wasm-L2LFY3LM.js +3 -0
- package/dist/dng-wasm-U6NC3MDK.js +3 -0
- package/dist/dpx-wasm-RMKEUKED.js +3 -0
- package/dist/engine-P6H5P6HP.js +5 -0
- package/dist/esm-SFFBP7PS.js +3 -0
- package/dist/exr-wasm-LBAOMOZD.js +3 -0
- package/dist/flame/hook/conformtools_flame/__init__.py +10 -0
- package/dist/flame/hook/conformtools_flame/building.py +191 -0
- package/dist/flame/hook/conformtools_flame/hook.py +177 -0
- package/dist/flame/hook/conformtools_flame/render.py +622 -0
- package/dist/flame/hook/conformtools_flame/util.py +33 -0
- package/dist/flame/hook/conformtools_flame/verbs.py +1037 -0
- package/dist/flame/hook/conformtools_flame_hook.py +42 -0
- package/dist/fonts/gfx/BarlowCondensed-Bold.ttf +0 -0
- package/dist/fonts/gfx/BarlowCondensed-Regular.ttf +0 -0
- package/dist/fonts/gfx/InstrumentSerif-Regular.ttf +0 -0
- package/dist/fonts/gfx/Inter-Bold.ttf +0 -0
- package/dist/fonts/gfx/Inter-Regular.ttf +0 -0
- package/dist/fonts/gfx/JetBrainsMono-Bold.ttf +0 -0
- package/dist/fonts/gfx/JetBrainsMono-Regular.ttf +0 -0
- package/dist/fonts/gfx/OFL.txt +100 -0
- package/dist/framing-SRCJKAYO.js +3 -0
- package/dist/gfx-worker.js +3 -0
- package/dist/h264-3ESGVT6G.js +3 -0
- package/dist/h264-mxf-NPFS7NGH.js +3 -0
- package/dist/host-relink-D6CB2VOQ.js +10 -0
- package/dist/hosts-W4AD2MYH.js +3 -0
- package/dist/http.js +5 -0
- package/dist/i2o-transfer +0 -0
- package/dist/inspect-7ASUPU73.js +68 -0
- package/dist/isobmff-SIOE67WL.js +3 -0
- package/dist/mcp.js +13 -0
- package/dist/media-7AUNRKHF.js +3 -0
- package/dist/media_core-Q2PIEV7D.js +9 -0
- package/dist/media_core_bg-FDL7GJZP.js +3 -0
- package/dist/media_core_bg-XRBVKQZH.js +3 -0
- package/dist/mxf-74TTDICM.js +3 -0
- package/dist/nuke/panel/python/Startup/conformtools_nuke_startup.py +44 -0
- package/dist/nuke/panel/python/conformtools_nuke/__init__.py +10 -0
- package/dist/nuke/panel/python/conformtools_nuke/panel.py +217 -0
- package/dist/nuke/panel/python/conformtools_nuke/verbs.py +837 -0
- package/dist/ops-FSOOBXMV.js +3 -0
- package/dist/peer-kit/ctpeer/__init__.py +21 -0
- package/dist/peer-kit/ctpeer/client.py +247 -0
- package/dist/peer-kit/ctpeer/neutral.py +178 -0
- package/dist/peer-kit/ctpeer/pairing.py +139 -0
- package/dist/peer-kit/ctpeer/protocol.py +209 -0
- package/dist/peer-kit/ctpeer/websocket.py +289 -0
- package/dist/premiere-uxp/icons/panel.png +0 -0
- package/dist/premiere-uxp/icons/panel@2x.png +0 -0
- package/dist/premiere-uxp/icons/plugin.png +0 -0
- package/dist/premiere-uxp/icons/plugin@2x.png +0 -0
- package/dist/premiere-uxp/index.html +38 -0
- package/dist/premiere-uxp/index.js +93 -0
- package/dist/premiere-uxp/lib/clipmeta.js +170 -0
- package/dist/premiere-uxp/lib/ctx.js +68 -0
- package/dist/premiere-uxp/lib/edit.js +516 -0
- package/dist/premiere-uxp/lib/handles.js +57 -0
- package/dist/premiere-uxp/lib/markers.js +198 -0
- package/dist/premiere-uxp/lib/pairing.js +67 -0
- package/dist/premiere-uxp/lib/premiere.js +91 -0
- package/dist/premiere-uxp/lib/probe.js +241 -0
- package/dist/premiere-uxp/lib/protocol.js +165 -0
- package/dist/premiere-uxp/lib/render.js +45 -0
- package/dist/premiere-uxp/lib/session.js +85 -0
- package/dist/premiere-uxp/lib/sizing.js +325 -0
- package/dist/premiere-uxp/lib/time.js +88 -0
- package/dist/premiere-uxp/lib/timeline.js +336 -0
- package/dist/premiere-uxp/lib/verbs.js +21 -0
- package/dist/premiere-uxp/lib/write.js +97 -0
- package/dist/premiere-uxp/manifest.json +102 -0
- package/dist/probe-F7WQHMIA.js +3 -0
- package/dist/prores-RIG37OIH.js +526 -0
- package/dist/r3d-YTLOMC7C.js +3 -0
- package/dist/r3d-ZDJ3WURS.js +1025 -0
- package/dist/resolve-bridge.py +2286 -0
- package/dist/resolve-presets/conform.tools.xml +127 -0
- package/dist/source-BDJAUQVR.js +3 -0
- package/dist/statusline-GMMCFMOA.js +4 -0
- package/dist/statusline.js +3 -0
- package/dist/still-ZG2RUQAL.js +3 -0
- package/dist/store-ZHXLQCGN.js +3 -0
- package/dist/tiff-wasm-D2FJ3L56.js +3 -0
- package/dist/timeline-6DYFDVEH.js +3 -0
- package/dist/timeline_core-IOENXK4Z.js +3 -0
- package/dist/timeline_core_bg-JW42YM3G.js +3 -0
- package/dist/udf_bg-B37GKRIH.js +3 -0
- package/dist/wasm/media_core_bg.wasm +0 -0
- package/dist/wasm/udf_bg.wasm +0 -0
- package/dist/wasm-threads/media_core_bg.wasm +0 -0
- package/dist/wav-OWMUGQMM.js +3 -0
- package/package.json +6 -4
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
|
|
3
|
+
import{createRequire as Xn}from"module";var $n=Xn("/"),Nr,dn=";var __w=require('worker_threads');__w.parentPort.on('message',function(m){onmessage({data:m})}),postMessage=function(m,t){__w.parentPort.postMessage(m,t)},close=process.exit;self=global";try{Nr=$n("worker_threads").Worker}catch{}var jn=Nr?function(n,r,t,e,i){var a=!1,o=new Nr(n+dn,{eval:!0}).on("error",function(s){return i(s,null)}).on("message",function(s){return i(null,s)}).on("exit",function(s){s&&!a&&i(new Error("exited with code "+s),null)});return o.postMessage(t,e),o.terminate=function(){return a=!0,Nr.prototype.terminate.call(o)},o}:function(n,r,t,e,i){setImmediate(function(){return i(new Error("async operations unsupported - update to Node 12+ (or Node 10-11 with the --experimental-worker CLI flag)"),null)});var a=function(){};return{terminate:a,postMessage:a}},S=Uint8Array,Y=Uint16Array,Zr=Int32Array,mr=new S([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),xr=new S([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Ur=new S([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),An=function(n,r){for(var t=new Y(31),e=0;e<31;++e)t[e]=r+=1<<n[e-1];for(var i=new Zr(t[30]),e=1;e<30;++e)for(var a=t[e];a<t[e+1];++a)i[a]=a-t[e]<<5|e;return{b:t,r:i}},Mn=An(mr,2),en=Mn.b,Wr=Mn.r;en[28]=258,Wr[258]=28;var Sn=An(xr,0),Fn=Sn.b,$r=Sn.r,Ir=new Y(32768);for(I=0;I<32768;++I)tr=(I&43690)>>1|(I&21845)<<1,tr=(tr&52428)>>2|(tr&13107)<<2,tr=(tr&61680)>>4|(tr&3855)<<4,Ir[I]=((tr&65280)>>8|(tr&255)<<8)>>1;var tr,I,$=(function(n,r,t){for(var e=n.length,i=0,a=new Y(r);i<e;++i)n[i]&&++a[n[i]-1];var o=new Y(r);for(i=1;i<r;++i)o[i]=o[i-1]+a[i-1]<<1;var s;if(t){s=new Y(1<<r);var l=15-r;for(i=0;i<e;++i)if(n[i])for(var h=i<<4|n[i],f=r-n[i],u=o[n[i]-1]++<<f,v=u|(1<<f)-1;u<=v;++u)s[Ir[u]>>l]=h}else for(s=new Y(e),i=0;i<e;++i)n[i]&&(s[i]=Ir[o[n[i]-1]++]>>15-n[i]);return s}),er=new S(288);for(I=0;I<144;++I)er[I]=8;var I;for(I=144;I<256;++I)er[I]=9;var I;for(I=256;I<280;++I)er[I]=7;var I;for(I=280;I<288;++I)er[I]=8;var I,yr=new S(32);for(I=0;I<32;++I)yr[I]=5;var I,Cn=$(er,9,0),Dn=$(er,9,1),Tn=$(yr,5,0),Un=$(yr,5,1),kr=function(n){for(var r=n[0],t=1;t<n.length;++t)n[t]>r&&(r=n[t]);return r},X=function(n,r,t){var e=r/8|0;return(n[e]|n[e+1]<<8)>>(r&7)&t},Hr=function(n,r){var t=r/8|0;return(n[t]|n[t+1]<<8|n[t+2]<<16)>>(r&7)},zr=function(n){return(n+7)/8|0},d=function(n,r,t){return(r==null||r<0)&&(r=0),(t==null||t>n.length)&&(t=n.length),new S(n.subarray(r,t))},st={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},In=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],c=function(n,r,t){var e=new Error(r||In[n]);if(e.code=n,Error.captureStackTrace&&Error.captureStackTrace(e,c),!t)throw e;return e},Br=function(n,r,t,e){var i=n.length,a=e?e.length:0;if(!i||r.f&&!r.l)return t||new S(0);var o=!t,s=o||r.i!=2,l=r.i;o&&(t=new S(i*3));var h=function(Dr){var Tr=t.length;if(Dr>Tr){var cr=new S(Math.max(Tr*2,Dr));cr.set(t),t=cr}},f=r.f||0,u=r.p||0,v=r.b||0,M=r.l,m=r.d,z=r.m,p=r.n,x=i*8;do{if(!M){f=X(n,u,1);var F=X(n,u+1,3);if(u+=3,F)if(F==1)M=Dn,m=Un,z=9,p=5;else if(F==2){var B=X(n,u,31)+257,D=X(n,u+10,15)+4,w=B+X(n,u+5,31)+1;u+=14;for(var g=new S(w),C=new S(19),T=0;T<D;++T)C[Ur[T]]=X(n,u+T*3,7);u+=D*3;for(var G=kr(C),H=(1<<G)-1,q=$(C,G,1),T=0;T<w;){var P=q[X(n,u,H)];u+=P&15;var A=P>>4;if(A<16)g[T++]=A;else{var O=0,E=0;for(A==16?(E=3+X(n,u,3),u+=2,O=g[T-1]):A==17?(E=3+X(n,u,7),u+=3):A==18&&(E=11+X(n,u,127),u+=7);E--;)g[T++]=O}}var W=g.subarray(0,B),L=g.subarray(B);z=kr(W),p=kr(L),M=$(W,z,1),m=$(L,p,1)}else c(1);else{var A=zr(u)+4,y=n[A-4]|n[A-3]<<8,Z=A+y;if(Z>i){l&&c(0);break}s&&h(v+y),t.set(n.subarray(A,Z),v),r.b=v+=y,r.p=u=Z*8,r.f=f;continue}if(u>x){l&&c(0);break}}s&&h(v+131072);for(var sr=(1<<z)-1,J=(1<<p)-1,nr=u;;nr=u){var O=M[Hr(n,u)&sr],K=O>>4;if(u+=O&15,u>x){l&&c(0);break}if(O||c(2),K<256)t[v++]=K;else if(K==256){nr=u,M=null;break}else{var Q=K-254;if(K>264){var T=K-257,N=mr[T];Q=X(n,u,(1<<N)-1)+en[T],u+=N}var _=m[Hr(n,u)&J],lr=_>>4;_||c(3),u+=_&15;var L=Fn[lr];if(lr>3){var N=xr[lr];L+=Hr(n,u)&(1<<N)-1,u+=N}if(u>x){l&&c(0);break}s&&h(v+131072);var vr=v+Q;if(v<L){var Gr=a-L,Or=Math.min(L,vr);for(Gr+v<0&&c(3);v<Or;++v)t[v]=e[Gr+v]}for(;v<vr;++v)t[v]=t[v-L]}}r.l=M,r.p=nr,r.b=v,r.f=f,M&&(f=1,r.m=z,r.d=m,r.n=p)}while(!f);return v!=t.length&&o?d(t,0,v):t.subarray(0,v)},rr=function(n,r,t){t<<=r&7;var e=r/8|0;n[e]|=t,n[e+1]|=t>>8},pr=function(n,r,t){t<<=r&7;var e=r/8|0;n[e]|=t,n[e+1]|=t>>8,n[e+2]|=t>>16},Lr=function(n,r){for(var t=[],e=0;e<n.length;++e)n[e]&&t.push({s:e,f:n[e]});var i=t.length,a=t.slice();if(!i)return{t:ir,l:0};if(i==1){var o=new S(t[0].s+1);return o[t[0].s]=1,{t:o,l:1}}t.sort(function(Z,B){return Z.f-B.f}),t.push({s:-1,f:25001});var s=t[0],l=t[1],h=0,f=1,u=2;for(t[0]={s:-1,f:s.f+l.f,l:s,r:l};f!=i-1;)s=t[t[h].f<t[u].f?h++:u++],l=t[h!=f&&t[h].f<t[u].f?h++:u++],t[f++]={s:-1,f:s.f+l.f,l:s,r:l};for(var v=a[0].s,e=1;e<i;++e)a[e].s>v&&(v=a[e].s);var M=new Y(v+1),m=Rr(t[f-1],M,0);if(m>r){var e=0,z=0,p=m-r,x=1<<p;for(a.sort(function(B,D){return M[D.s]-M[B.s]||B.f-D.f});e<i;++e){var F=a[e].s;if(M[F]>r)z+=x-(1<<m-M[F]),M[F]=r;else break}for(z>>=p;z>0;){var A=a[e].s;M[A]<r?z-=1<<r-M[A]++-1:++e}for(;e>=0&&z;--e){var y=a[e].s;M[y]==r&&(--M[y],++z)}m=r}return{t:new S(M),l:m}},Rr=function(n,r,t){return n.s==-1?Math.max(Rr(n.l,r,t+1),Rr(n.r,r,t+1)):r[n.s]=t},dr=function(n){for(var r=n.length;r&&!n[--r];);for(var t=new Y(++r),e=0,i=n[0],a=1,o=function(l){t[e++]=l},s=1;s<=r;++s)if(n[s]==i&&s!=r)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=n[s]}return{c:t.subarray(0,e),n:r}},gr=function(n,r){for(var t=0,e=0;e<r.length;++e)t+=n[e]*r[e];return t},an=function(n,r,t){var e=t.length,i=zr(r+2);n[i]=e&255,n[i+1]=e>>8,n[i+2]=n[i]^255,n[i+3]=n[i+1]^255;for(var a=0;a<e;++a)n[i+a+4]=t[a];return(i+4+e)*8},jr=function(n,r,t,e,i,a,o,s,l,h,f){rr(r,f++,t),++i[256];for(var u=Lr(i,15),v=u.t,M=u.l,m=Lr(a,15),z=m.t,p=m.l,x=dr(v),F=x.c,A=x.n,y=dr(z),Z=y.c,B=y.n,D=new Y(19),w=0;w<F.length;++w)++D[F[w]&31];for(var w=0;w<Z.length;++w)++D[Z[w]&31];for(var g=Lr(D,7),C=g.t,T=g.l,G=19;G>4&&!C[Ur[G-1]];--G);var H=h+5<<3,q=gr(i,er)+gr(a,yr)+o,P=gr(i,v)+gr(a,z)+o+14+3*G+gr(D,C)+2*D[16]+3*D[17]+7*D[18];if(l>=0&&H<=q&&H<=P)return an(r,f,n.subarray(l,l+h));var O,E,W,L;if(rr(r,f,1+(P<q)),f+=2,P<q){O=$(v,M,0),E=v,W=$(z,p,0),L=z;var sr=$(C,T,0);rr(r,f,A-257),rr(r,f+5,B-1),rr(r,f+10,G-4),f+=14;for(var w=0;w<G;++w)rr(r,f+3*w,C[Ur[w]]);f+=3*G;for(var J=[F,Z],nr=0;nr<2;++nr)for(var K=J[nr],w=0;w<K.length;++w){var Q=K[w]&31;rr(r,f,sr[Q]),f+=C[Q],Q>15&&(rr(r,f,K[w]>>5&127),f+=K[w]>>12)}}else O=Cn,E=er,W=Tn,L=yr;for(var w=0;w<s;++w){var N=e[w];if(N>255){var Q=N>>18&31;pr(r,f,O[Q+257]),f+=E[Q+257],Q>7&&(rr(r,f,N>>23&31),f+=mr[Q]);var _=N&31;pr(r,f,W[_]),f+=L[_],_>3&&(pr(r,f,N>>5&8191),f+=xr[_])}else pr(r,f,O[N]),f+=E[N]}return pr(r,f,O[256]),f+E[256]},Zn=new Zr([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),ir=new S(0),Bn=function(n,r,t,e,i,a){var o=a.z||n.length,s=new S(e+o+5*(1+Math.ceil(o/7e3))+i),l=s.subarray(e,s.length-i),h=a.l,f=(a.r||0)&7;if(r){f&&(l[0]=a.r>>3);for(var u=Zn[r-1],v=u>>13,M=u&8191,m=(1<<t)-1,z=a.p||new Y(32768),p=a.h||new Y(m+1),x=Math.ceil(t/3),F=2*x,A=function(Vr){return(n[Vr]^n[Vr+1]<<x^n[Vr+2]<<F)&m},y=new Zr(25e3),Z=new Y(288),B=new Y(32),D=0,w=0,g=a.i||0,C=0,T=a.w||0,G=0;g+2<o;++g){var H=A(g),q=g&32767,P=p[H];if(z[q]=P,p[H]=q,T<=g){var O=o-g;if((D>7e3||C>24576)&&(O>423||!h)){f=jr(n,l,0,y,Z,B,w,C,G,g-G,f),C=D=w=0,G=g;for(var E=0;E<286;++E)Z[E]=0;for(var E=0;E<30;++E)B[E]=0}var W=2,L=0,sr=M,J=q-P&32767;if(O>2&&H==A(g-J))for(var nr=Math.min(v,O)-1,K=Math.min(32767,g),Q=Math.min(258,O);J<=K&&--sr&&q!=P;){if(n[g+W]==n[g+W-J]){for(var N=0;N<Q&&n[g+N]==n[g+N-J];++N);if(N>W){if(W=N,L=J,N>nr)break;for(var _=Math.min(J,N-2),lr=0,E=0;E<_;++E){var vr=g-J+E&32767,Gr=z[vr],Or=vr-Gr&32767;Or>lr&&(lr=Or,P=vr)}}}q=P,P=z[q],J+=q-P&32767}if(L){y[C++]=268435456|Wr[W]<<18|$r[L];var Dr=Wr[W]&31,Tr=$r[L]&31;w+=mr[Dr]+xr[Tr],++Z[257+Dr],++B[Tr],T=g+W,++D}else y[C++]=n[g],++Z[n[g]]}}for(g=Math.max(g,T);g<o;++g)y[C++]=n[g],++Z[n[g]];f=jr(n,l,h,y,Z,B,w,C,G,g-G,f),h||(a.r=f&7|l[f/8|0]<<3,f-=7,a.h=p,a.p=z,a.i=g,a.w=T)}else{for(var g=a.w||0;g<o+h;g+=65535){var cr=g+65535;cr>=o&&(l[f/8|0]=h,cr=o),f=an(l,f+1,n.subarray(g,cr))}a.i=o}return d(s,0,e+zr(f)+i)},En=(function(){for(var n=new Int32Array(256),r=0;r<256;++r){for(var t=r,e=9;--e;)t=(t&1&&-306674912)^t>>>1;n[r]=t}return n})(),Ar=function(){var n=-1;return{p:function(r){for(var t=n,e=0;e<r.length;++e)t=En[t&255^r[e]]^t>>>8;n=t},d:function(){return~n}}},Kr=function(){var n=1,r=0;return{p:function(t){for(var e=n,i=r,a=t.length|0,o=0;o!=a;){for(var s=Math.min(o+2655,a);o<s;++o)i+=e+=t[o];e=(e&65535)+15*(e>>16),i=(i&65535)+15*(i>>16)}n=e,r=i},d:function(){return n%=65521,r%=65521,(n&255)<<24|(n&65280)<<8|(r&255)<<8|r>>8}}},hr=function(n,r,t,e,i){if(!i&&(i={l:1},r.dictionary)){var a=r.dictionary.subarray(-32768),o=new S(a.length+n.length);o.set(a),o.set(n,a.length),n=o,i.w=a.length}return Bn(n,r.level==null?6:r.level,r.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(n.length)))*1.5):20:12+r.mem,t,e,i)},Er=function(n,r){var t={};for(var e in n)t[e]=n[e];for(var e in r)t[e]=r[e];return t},pn=function(n,r,t){for(var e=n(),i=n.toString(),a=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/\s+/g,"").split(","),o=0;o<e.length;++o){var s=e[o],l=a[o];if(typeof s=="function"){r+=";"+l+"=";var h=s.toString();if(s.prototype)if(h.indexOf("[native code]")!=-1){var f=h.indexOf(" ",8)+1;r+=h.slice(f,h.indexOf("(",f))}else{r+=h;for(var u in s.prototype)r+=";"+l+".prototype."+u+"="+s.prototype[u].toString()}else r+=h}else t[l]=s}return r},Pr=[],bn=function(n){var r=[];for(var t in n)n[t].buffer&&r.push((n[t]=new n[t].constructor(n[t])).buffer);return r},qn=function(n,r,t,e){if(!Pr[t]){for(var i="",a={},o=n.length-1,s=0;s<o;++s)i=pn(n[s],i,a);Pr[t]={c:pn(n[o],i,a),e:a}}var l=Er({},Pr[t].e);return jn(Pr[t].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+r.toString()+"}",t,l,bn(l),e)},Mr=function(){return[S,Y,Zr,mr,xr,Ur,en,Fn,Dn,Un,Ir,In,$,kr,X,Hr,zr,d,c,Br,qr,or,on]},Sr=function(){return[S,Y,Zr,mr,xr,Ur,Wr,$r,Cn,er,Tn,yr,Ir,Zn,ir,$,rr,pr,Lr,Rr,dr,gr,an,jr,zr,d,Bn,hr,Qr,or]},Gn=function(){return[sn,hn,U,Ar,En]},On=function(){return[fn,kn]},Pn=function(){return[un,U,Kr]},Nn=function(){return[ln]},or=function(n){return postMessage(n,[n.buffer])},on=function(n){return n&&{out:n.size&&new S(n.size),dictionary:n.dictionary}},Fr=function(n,r,t,e,i,a){var o=qn(t,e,i,function(s,l){o.terminate(),a(s,l)});return o.postMessage([n,r],r.consume?[n.buffer]:[]),function(){o.terminate()}},j=function(n){return n.ondata=function(r,t){return postMessage([r,t],[r.buffer])},function(r){r.data.length?(n.push(r.data[0],r.data[1]),postMessage([r.data[0].length])):n.flush()}},Cr=function(n,r,t,e,i,a,o){var s,l=qn(n,e,i,function(h,f){h?(l.terminate(),r.ondata.call(r,h)):Array.isArray(f)?f.length==1?(r.queuedSize-=f[0],r.ondrain&&r.ondrain(f[0])):(f[1]&&l.terminate(),r.ondata.call(r,h,f[0],f[1])):o(f)});l.postMessage(t),r.queuedSize=0,r.push=function(h,f){r.ondata||c(5),s&&r.ondata(c(4,0,1),null,!!f),r.queuedSize+=h.length,l.postMessage([h,s=f],[h.buffer])},r.terminate=function(){l.terminate()},a&&(r.flush=function(){l.postMessage([])})},R=function(n,r){return n[r]|n[r+1]<<8},k=function(n,r){return(n[r]|n[r+1]<<8|n[r+2]<<16|n[r+3]<<24)>>>0},Xr=function(n,r){return k(n,r)+k(n,r+4)*4294967296},U=function(n,r,t){for(;t;++r)n[r]=t,t>>>=8},sn=function(n,r){var t=r.filename;if(n[0]=31,n[1]=139,n[2]=8,n[8]=r.level<2?4:r.level==9?2:0,n[9]=3,r.mtime!=0&&U(n,4,Math.floor(new Date(r.mtime||Date.now())/1e3)),t){n[3]=8;for(var e=0;e<=t.length;++e)n[e+10]=t.charCodeAt(e)}},fn=function(n){(n[0]!=31||n[1]!=139||n[2]!=8)&&c(6,"invalid gzip data");var r=n[3],t=10;r&4&&(t+=(n[10]|n[11]<<8)+2);for(var e=(r>>3&1)+(r>>4&1);e>0;e-=!n[t++]);return t+(r&2)},kn=function(n){var r=n.length;return(n[r-4]|n[r-3]<<8|n[r-2]<<16|n[r-1]<<24)>>>0},hn=function(n){return 10+(n.filename?n.filename.length+1:0)},un=function(n,r){var t=r.level,e=t==0?0:t<6?1:t==9?3:2;if(n[0]=120,n[1]=e<<6|(r.dictionary&&32),n[1]|=31-(n[0]<<8|n[1])%31,r.dictionary){var i=Kr();i.p(r.dictionary),U(n,2,i.d())}},ln=function(n,r){return((n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31)&&c(6,"invalid zlib data"),(n[1]>>5&1)==+!r&&c(6,"invalid zlib data: "+(n[1]&32?"need":"unexpected")+" dictionary"),(n[1]>>3&4)+2};function ur(n,r){return typeof n=="function"&&(r=n,n={}),this.ondata=r,n}var b=(function(){function n(r,t){if(typeof r=="function"&&(t=r,r={}),this.ondata=t,this.o=r||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new S(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(r,t){this.ondata(hr(r,this.o,0,0,this.s),t)},n.prototype.push=function(r,t){this.ondata||c(5),this.s.l&&c(4);var e=r.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new S(e&-32768);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;this.b.set(r.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(r.subarray(a),32768),this.s.z=r.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(r,this.s.z),this.s.z+=r.length;this.s.l=t&1,(this.s.z>this.s.w+8191||t)&&(this.p(this.b,t||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||c(5),this.s.l&&c(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n})();var _n=(function(){function n(r,t){Cr([Sr,function(){return[j,b]}],this,ur.call(this,r,t),function(e){var i=new b(e.data);onmessage=j(i)},6,1)}return n})();function rt(n,r,t){return t||(t=r,r={}),typeof t!="function"&&c(7),Fr(n,r,[Sr],function(e){return or(Qr(e.data[0],e.data[1]))},0,t)}function Qr(n,r){return hr(n,r||{},0,0)}var V=(function(){function n(r,t){typeof r=="function"&&(t=r,r={}),this.ondata=t;var e=r&&r.dictionary&&r.dictionary.subarray(-32768);this.s={i:0,b:e?e.length:0},this.o=new S(32768),this.p=new S(0),e&&this.o.set(e)}return n.prototype.e=function(r){if(this.ondata||c(5),this.d&&c(4),!this.p.length)this.p=r;else if(r.length){var t=new S(this.p.length+r.length);t.set(this.p),t.set(r,this.p.length),this.p=t}},n.prototype.c=function(r){this.s.i=+(this.d=r||!1);var t=this.s.b,e=Br(this.p,this.s,this.o);this.ondata(d(e,t,this.s.b),this.d),this.o=d(e,this.s.b-32768),this.s.b=this.o.length,this.p=d(this.p,this.s.p/8|0),this.s.p&=7},n.prototype.push=function(r,t){this.e(r),this.c(t)},n})();var Hn=(function(){function n(r,t){Cr([Mr,function(){return[j,V]}],this,ur.call(this,r,t),function(e){var i=new V(e.data);onmessage=j(i)},7,0)}return n})();function Ln(n,r,t){return t||(t=r,r={}),typeof t!="function"&&c(7),Fr(n,r,[Mr],function(e){return or(qr(e.data[0],on(e.data[1])))},1,t)}function qr(n,r){return Br(n,{i:2},r&&r.out,r&&r.dictionary)}var gn=(function(){function n(r,t){this.c=Ar(),this.l=0,this.v=1,b.call(this,r,t)}return n.prototype.push=function(r,t){this.c.p(r),this.l+=r.length,b.prototype.push.call(this,r,t)},n.prototype.p=function(r,t){var e=hr(r,this.o,this.v&&hn(this.o),t&&8,this.s);this.v&&(sn(e,this.o),this.v=0),t&&(U(e,e.length-8,this.c.d()),U(e,e.length-4,this.l)),this.ondata(e,t)},n.prototype.flush=function(){b.prototype.flush.call(this)},n})();var ft=(function(){function n(r,t){Cr([Sr,Gn,function(){return[j,b,gn]}],this,ur.call(this,r,t),function(e){var i=new gn(e.data);onmessage=j(i)},8,1)}return n})();function ht(n,r,t){return t||(t=r,r={}),typeof t!="function"&&c(7),Fr(n,r,[Sr,Gn,function(){return[yn]}],function(e){return or(yn(e.data[0],e.data[1]))},2,t)}function yn(n,r){r||(r={});var t=Ar(),e=n.length;t.p(n);var i=hr(n,r,hn(r),8),a=i.length;return sn(i,r),U(i,a-8,t.d()),U(i,a-4,e),i}var br=(function(){function n(r,t){this.v=1,this.r=0,V.call(this,r,t)}return n.prototype.push=function(r,t){if(V.prototype.e.call(this,r),this.r+=r.length,this.v){var e=this.p.subarray(this.v-1),i=e.length>3?fn(e):4;if(i>e.length){if(!t)return}else this.v>1&&this.onmember&&this.onmember(this.r-e.length);this.p=e.subarray(i),this.v=0}V.prototype.c.call(this,t),this.s.f&&!this.s.l&&!t&&(this.v=zr(this.s.p)+9,this.s={i:0},this.o=new S(0),this.push(new S(0),t))},n})();var nt=(function(){function n(r,t){var e=this;Cr([Mr,On,function(){return[j,V,br]}],this,ur.call(this,r,t),function(i){var a=new br(i.data);a.onmember=function(o){return postMessage(o)},onmessage=j(a)},9,0,function(i){return e.onmember&&e.onmember(i)})}return n})();function tt(n,r,t){return t||(t=r,r={}),typeof t!="function"&&c(7),Fr(n,r,[Mr,On,function(){return[_r]}],function(e){return or(_r(e.data[0],e.data[1]))},3,t)}function _r(n,r){var t=fn(n);return t+8>n.length&&c(6,"invalid gzip data"),Br(n.subarray(t,-8),{i:2},r&&r.out||new S(kn(n)),r&&r.dictionary)}var wn=(function(){function n(r,t){this.c=Kr(),this.v=1,b.call(this,r,t)}return n.prototype.push=function(r,t){this.c.p(r),b.prototype.push.call(this,r,t)},n.prototype.p=function(r,t){var e=hr(r,this.o,this.v&&(this.o.dictionary?6:2),t&&4,this.s);this.v&&(un(e,this.o),this.v=0),t&&U(e,e.length-4,this.c.d()),this.ondata(e,t)},n.prototype.flush=function(){b.prototype.flush.call(this)},n})();var ut=(function(){function n(r,t){Cr([Sr,Pn,function(){return[j,b,wn]}],this,ur.call(this,r,t),function(e){var i=new wn(e.data);onmessage=j(i)},10,1)}return n})();function lt(n,r,t){return t||(t=r,r={}),typeof t!="function"&&c(7),Fr(n,r,[Sr,Pn,function(){return[mn]}],function(e){return or(mn(e.data[0],e.data[1]))},4,t)}function mn(n,r){r||(r={});var t=Kr();t.p(n);var e=hr(n,r,r.dictionary?6:2,4);return un(e,r),U(e,e.length-4,t.d()),e}var rn=(function(){function n(r,t){V.call(this,r,t),this.v=r&&r.dictionary?2:1}return n.prototype.push=function(r,t){if(V.prototype.e.call(this,r),this.v){if(this.p.length<6&&!t)return;this.p=this.p.subarray(ln(this.p,this.v-1)),this.v=0}t&&(this.p.length<4&&c(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),V.prototype.c.call(this,t)},n})();var et=(function(){function n(r,t){Cr([Mr,Nn,function(){return[j,V,rn]}],this,ur.call(this,r,t),function(e){var i=new rn(e.data);onmessage=j(i)},11,0)}return n})();function it(n,r,t){return t||(t=r,r={}),typeof t!="function"&&c(7),Fr(n,r,[Mr,Nn,function(){return[nn]}],function(e){return or(nn(e.data[0],on(e.data[1])))},5,t)}function nn(n,r){return Br(n.subarray(ln(n,r&&r.dictionary),-4),{i:2},r&&r.out,r&&r.dictionary)}var xn=(function(){function n(r,t){this.o=ur.call(this,r,t)||{},this.G=br,this.I=V,this.Z=rn}return n.prototype.i=function(){var r=this;this.s.ondata=function(t,e){r.ondata(t,e)}},n.prototype.push=function(r,t){if(this.ondata||c(5),this.s)this.s.push(r,t);else{if(this.p&&this.p.length){var e=new S(this.p.length+r.length);e.set(this.p),e.set(r,this.p.length)}else this.p=r;this.p.length>2&&(this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(this.o):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,t),this.p=null)}},n})();var vt=(function(){function n(r,t){xn.call(this,r,t),this.queuedSize=0,this.G=nt,this.I=Hn,this.Z=et}return n.prototype.i=function(){var r=this;this.s.ondata=function(t,e,i){r.ondata(t,e,i)},this.s.ondrain=function(t){r.queuedSize-=t,r.ondrain&&r.ondrain(t)}},n.prototype.push=function(r,t){this.queuedSize+=r.length,xn.prototype.push.call(this,r,t)},n})();function ct(n,r,t){return t||(t=r,r={}),typeof t!="function"&&c(7),n[0]==31&&n[1]==139&&n[2]==8?tt(n,r,t):(n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31?Ln(n,r,t):it(n,r,t)}function pt(n,r){return n[0]==31&&n[1]==139&&n[2]==8?_r(n,r):(n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31?qr(n,r):nn(n,r)}var vn=function(n,r,t,e){for(var i in n){var a=n[i],o=r+i,s=e;Array.isArray(a)&&(s=Er(e,a[1]),a=a[0]),a instanceof S?t[o]=[a,s]:(t[o+="/"]=[new S(0),s],vn(a,o,t,e))}},zn=typeof TextEncoder<"u"&&new TextEncoder,tn=typeof TextDecoder<"u"&&new TextDecoder,Wn=0;try{tn.decode(ir,{stream:!0}),Wn=1}catch{}var Rn=function(n){for(var r="",t=0;;){var e=n[t++],i=(e>127)+(e>223)+(e>239);if(t+i>n.length)return{s:r,r:d(n,t-1)};i?i==3?(e=((e&15)<<18|(n[t++]&63)<<12|(n[t++]&63)<<6|n[t++]&63)-65536,r+=String.fromCharCode(55296|e>>10,56320|e&1023)):i&1?r+=String.fromCharCode((e&31)<<6|n[t++]&63):r+=String.fromCharCode((e&15)<<12|(n[t++]&63)<<6|n[t++]&63):r+=String.fromCharCode(e)}},gt=(function(){function n(r){this.ondata=r,Wn?this.t=new TextDecoder:this.p=ir}return n.prototype.push=function(r,t){if(this.ondata||c(5),t=!!t,this.t){this.ondata(this.t.decode(r,{stream:!0}),t),t&&(this.t.decode().length&&c(8),this.t=null);return}this.p||c(4);var e=new S(this.p.length+r.length);e.set(this.p),e.set(r,this.p.length);var i=Rn(e),a=i.s,o=i.r;t?(o.length&&c(8),this.p=null):this.p=o,this.ondata(a,t)},n})();var yt=(function(){function n(r){this.ondata=r}return n.prototype.push=function(r,t){this.ondata||c(5),this.d&&c(4),this.ondata(fr(r),this.d=t||!1)},n})();function fr(n,r){if(r){for(var t=new S(n.length),e=0;e<n.length;++e)t[e]=n.charCodeAt(e);return t}if(zn)return zn.encode(n);for(var i=n.length,a=new S(n.length+(n.length>>1)),o=0,s=function(f){a[o++]=f},e=0;e<i;++e){if(o+5>a.length){var l=new S(o+8+(i-e<<1));l.set(a),a=l}var h=n.charCodeAt(e);h<128||r?s(h):h<2048?(s(192|h>>6),s(128|h&63)):h>55295&&h<57344?(h=65536+(h&1047552)|n.charCodeAt(++e)&1023,s(240|h>>18),s(128|h>>12&63),s(128|h>>6&63),s(128|h&63)):(s(224|h>>12),s(128|h>>6&63),s(128|h&63))}return d(a,0,o)}function Yn(n,r){if(r){for(var t="",e=0;e<n.length;e+=16384)t+=String.fromCharCode.apply(null,n.subarray(e,e+16384));return t}else{if(tn)return tn.decode(n);var i=Rn(n),a=i.s,t=i.r;return t.length&&c(8),a}}var Jn=function(n){return n==1?3:n<6?2:n==9?1:0},Kn=function(n,r){return r+30+R(n,r+26)+R(n,r+28)},Qn=function(n,r,t){var e=R(n,r+28),i=Yn(n.subarray(r+46,r+46+e),!(R(n,r+8)&2048)),a=r+46+e,o=k(n,r+20),s=t&&o==4294967295?Vn(n,a):[o,k(n,r+24),k(n,r+42)],l=s[0],h=s[1],f=s[2];return[R(n,r+10),l,h,i,a+R(n,r+30)+R(n,r+32),f]},Vn=function(n,r){for(;R(n,r)!=1;r+=4+R(n,r+2));return[Xr(n,r+12),Xr(n,r+4),Xr(n,r+20)]},ar=function(n){var r=0;if(n)for(var t in n){var e=n[t].length;e>65535&&c(9),r+=e+4}return r},wr=function(n,r,t,e,i,a,o,s){var l=e.length,h=t.extra,f=s&&s.length,u=ar(h);U(n,r,o!=null?33639248:67324752),r+=4,o!=null&&(n[r++]=20,n[r++]=t.os),n[r]=20,r+=2,n[r++]=t.flag<<1|(a<0&&8),n[r++]=i&&8,n[r++]=t.compression&255,n[r++]=t.compression>>8;var v=new Date(t.mtime==null?Date.now():t.mtime),M=v.getFullYear()-1980;if((M<0||M>119)&&c(10),U(n,r,M<<25|v.getMonth()+1<<21|v.getDate()<<16|v.getHours()<<11|v.getMinutes()<<5|v.getSeconds()>>1),r+=4,a!=-1&&(U(n,r,t.crc),U(n,r+4,a<0?-a-2:a),U(n,r+8,t.size)),U(n,r+12,l),U(n,r+14,u),r+=16,o!=null&&(U(n,r,f),U(n,r+6,t.attrs),U(n,r+10,o),r+=14),n.set(e,r),r+=l,u)for(var m in h){var z=h[m],p=z.length;U(n,r,+m),U(n,r+2,p),n.set(z,r+4),r+=4+p}return f&&(n.set(s,r),r+=f),r},cn=function(n,r,t,e,i){U(n,r,101010256),U(n,r+8,t),U(n,r+10,t),U(n,r+12,e),U(n,r+16,i)},Yr=(function(){function n(r){this.filename=r,this.c=Ar(),this.size=0,this.compression=0}return n.prototype.process=function(r,t){this.ondata(null,r,t)},n.prototype.push=function(r,t){this.ondata||c(5),this.c.p(r),this.size+=r.length,t&&(this.crc=this.c.d()),this.process(r,t||!1)},n})();var wt=(function(){function n(r,t){var e=this;t||(t={}),Yr.call(this,r),this.d=new b(t,function(i,a){e.ondata(null,i,a)}),this.compression=8,this.flag=Jn(t.level)}return n.prototype.process=function(r,t){try{this.d.push(r,t)}catch(e){this.ondata(e,null,t)}},n.prototype.push=function(r,t){Yr.prototype.push.call(this,r,t)},n})();var mt=(function(){function n(r,t){var e=this;t||(t={}),Yr.call(this,r),this.d=new _n(t,function(i,a,o){e.ondata(i,a,o)}),this.compression=8,this.flag=Jn(t.level),this.terminate=this.d.terminate}return n.prototype.process=function(r,t){this.d.push(r,t)},n.prototype.push=function(r,t){Yr.prototype.push.call(this,r,t)},n})();var xt=(function(){function n(r){this.ondata=r,this.u=[],this.d=1}return n.prototype.add=function(r){var t=this;if(this.ondata||c(5),this.d&2)this.ondata(c(4+(this.d&1)*8,0,1),null,!1);else{var e=fr(r.filename),i=e.length,a=r.comment,o=a&&fr(a),s=i!=r.filename.length||o&&a.length!=o.length,l=i+ar(r.extra)+30;i>65535&&this.ondata(c(11,0,1),null,!1);var h=new S(l);wr(h,0,r,e,s,-1);var f=[h],u=function(){for(var p=0,x=f;p<x.length;p++){var F=x[p];t.ondata(null,F,!1)}f=[]},v=this.d;this.d=0;var M=this.u.length,m=Er(r,{f:e,u:s,o,t:function(){r.terminate&&r.terminate()},r:function(){if(u(),v){var p=t.u[M+1];p?p.r():t.d=1}v=1}}),z=0;r.ondata=function(p,x,F){if(p)t.ondata(p,x,F),t.terminate();else if(z+=x.length,f.push(x),F){var A=new S(16);U(A,0,134695760),U(A,4,r.crc),U(A,8,z),U(A,12,r.size),f.push(A),m.c=z,m.b=l+z+16,m.crc=r.crc,m.size=r.size,v&&m.r(),v=1}else v&&u()},this.u.push(m)}},n.prototype.end=function(){var r=this;if(this.d&2){this.ondata(c(4+(this.d&1)*8,0,1),null,!0);return}this.d?this.e():this.u.push({r:function(){r.d&1&&(r.u.splice(-1,1),r.e())},t:function(){}}),this.d=3},n.prototype.e=function(){for(var r=0,t=0,e=0,i=0,a=this.u;i<a.length;i++){var o=a[i];e+=46+o.f.length+ar(o.extra)+(o.o?o.o.length:0)}for(var s=new S(e+22),l=0,h=this.u;l<h.length;l++){var o=h[l];wr(s,r,o,o.f,o.u,-o.c-2,t,o.o),r+=46+o.f.length+ar(o.extra)+(o.o?o.o.length:0),t+=o.b}cn(s,r,this.u.length,e,t),this.ondata(null,s,!0),this.d=2},n.prototype.terminate=function(){for(var r=0,t=this.u;r<t.length;r++){var e=t[r];e.t()}this.d=2},n})();function zt(n,r,t){t||(t=r,r={}),typeof t!="function"&&c(7);var e={};vn(n,"",e,r);var i=Object.keys(e),a=i.length,o=0,s=0,l=a,h=new Array(a),f=[],u=function(){for(var p=0;p<f.length;++p)f[p]()},v=function(p,x){Jr(function(){t(p,x)})};Jr(function(){v=t});var M=function(){var p=new S(s+22),x=o,F=s-o;s=0;for(var A=0;A<l;++A){var y=h[A];try{var Z=y.c.length;wr(p,s,y,y.f,y.u,Z);var B=30+y.f.length+ar(y.extra),D=s+B;p.set(y.c,D),wr(p,o,y,y.f,y.u,Z,s,y.m),o+=16+B+(y.m?y.m.length:0),s=D+Z}catch(w){return v(w,null)}}cn(p,o,h.length,F,x),v(null,p)};a||M();for(var m=function(p){var x=i[p],F=e[x],A=F[0],y=F[1],Z=Ar(),B=A.length;Z.p(A);var D=fr(x),w=D.length,g=y.comment,C=g&&fr(g),T=C&&C.length,G=ar(y.extra),H=y.level==0?0:8,q=function(P,O){if(P)u(),v(P,null);else{var E=O.length;h[p]=Er(y,{size:B,crc:Z.d(),c:O,f:D,m:C,u:w!=x.length||C&&g.length!=T,compression:H}),o+=30+w+G+E,s+=76+2*(w+G)+(T||0)+E,--a||M()}};if(w>65535&&q(c(11,0,1),null),!H)q(null,A);else if(B<16e4)try{q(null,Qr(A,y))}catch(P){q(P,null)}else f.push(rt(A,y,q))},z=0;z<l;++z)m(z);return u}function At(n,r){r||(r={});var t={},e=[];vn(n,"",t,r);var i=0,a=0;for(var o in t){var s=t[o],l=s[0],h=s[1],f=h.level==0?0:8,u=fr(o),v=u.length,M=h.comment,m=M&&fr(M),z=m&&m.length,p=ar(h.extra);v>65535&&c(11);var x=f?Qr(l,h):l,F=x.length,A=Ar();A.p(l),e.push(Er(h,{size:l.length,crc:A.d(),c:x,f:u,m,u:v!=o.length||m&&M.length!=z,o:i,compression:f})),i+=30+v+p+F,a+=76+2*(v+p)+(z||0)+F}for(var y=new S(a+22),Z=i,B=a-i,D=0;D<e.length;++D){var u=e[D];wr(y,u.o,u,u.f,u.u,u.c.length);var w=30+u.f.length+ar(u.extra);y.set(u.c,u.o+w),wr(y,i,u,u.f,u.u,u.c.length,u.o,u.m),i+=16+w+(u.m?u.m.length:0)}return cn(y,i,e.length,B,Z),y}var at=(function(){function n(){}return n.prototype.push=function(r,t){this.ondata(null,r,t)},n.compression=0,n})();var Mt=(function(){function n(){var r=this;this.i=new V(function(t,e){r.ondata(null,t,e)})}return n.prototype.push=function(r,t){try{this.i.push(r,t)}catch(e){this.ondata(e,null,t)}},n.compression=8,n})();var St=(function(){function n(r,t){var e=this;t<32e4?this.i=new V(function(i,a){e.ondata(null,i,a)}):(this.i=new Hn(function(i,a,o){e.ondata(i,a,o)}),this.terminate=this.i.terminate)}return n.prototype.push=function(r,t){this.i.terminate&&(r=d(r,0)),this.i.push(r,t)},n.compression=8,n})();var Ft=(function(){function n(r){this.onfile=r,this.k=[],this.o={0:at},this.p=ir}return n.prototype.push=function(r,t){var e=this;if(this.onfile||c(5),this.p||c(4),this.c>0){var i=Math.min(this.c,r.length),a=r.subarray(0,i);if(this.c-=i,this.d?this.d.push(a,!this.c):this.k[0].push(a),r=r.subarray(i),r.length)return this.push(r,t)}else{var o=0,s=0,l=void 0,h=void 0;this.p.length?r.length?(h=new S(this.p.length+r.length),h.set(this.p),h.set(r,this.p.length)):h=this.p:h=r;for(var f=h.length,u=this.c,v=u&&this.d,M=function(){var x,F=k(h,s);if(F==67324752){o=1,l=s,m.d=null,m.c=0;var A=R(h,s+6),y=R(h,s+8),Z=A&2048,B=A&8,D=R(h,s+26),w=R(h,s+28);if(f>s+30+D+w){var g=[];m.k.unshift(g),o=2;var C=k(h,s+18),T=k(h,s+22),G=Yn(h.subarray(s+30,s+=30+D),!Z);C==4294967295?(x=B?[-2]:Vn(h,s),C=x[0],T=x[1]):B&&(C=-1),s+=w,m.c=C;var H,q={name:G,compression:y,start:function(){if(q.ondata||c(5),!C)q.ondata(null,ir,!0);else{var P=e.o[y];P||q.ondata(c(14,"unknown compression type "+y,1),null,!1),H=C<0?new P(G):new P(G,C,T),H.ondata=function(L,sr,J){q.ondata(L,sr,J)};for(var O=0,E=g;O<E.length;O++){var W=E[O];H.push(W,!1)}e.k[0]==g&&e.c?e.d=H:H.push(ir,!0)}},terminate:function(){H&&H.terminate&&H.terminate()}};C>=0&&(q.size=C,q.originalSize=T),m.onfile(q)}return"break"}else if(u){if(F==134695760)return l=s+=12+(u==-2&&8),o=3,m.c=0,"break";if(F==33639248)return l=s-=4,o=3,m.c=0,"break"}},m=this;s<f-4;++s){var z=M();if(z==="break")break}if(this.p=ir,u<0){var p=o?h.subarray(0,l-12-(u==-2&&8)-(k(h,l-16)==134695760&&4)):h.subarray(0,s);v?v.push(p,!!o):this.k[+(o==2)].push(p)}if(o&2)return this.push(h.subarray(s),t);this.p=h.subarray(s)}t&&(this.c&&c(13),this.p=null)},n.prototype.register=function(r){this.o[r.compression]=r},n})();var Jr=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(n){n()};function Ct(n,r,t){t||(t=r,r={}),typeof t!="function"&&c(7);var e=[],i=function(){for(var p=0;p<e.length;++p)e[p]()},a={},o=function(p,x){Jr(function(){t(p,x)})};Jr(function(){o=t});for(var s=n.length-22;k(n,s)!=101010256;--s)if(!s||n.length-s>65558)return o(c(13,0,1),null),i;var l=R(n,s+8);if(l){var h=l,f=k(n,s+16),u=f==4294967295||h==65535;if(u){var v=k(n,s-12);u=k(n,v)==101075792,u&&(h=l=k(n,v+32),f=k(n,v+48))}for(var M=r&&r.filter,m=function(p){var x=Qn(n,f,u),F=x[0],A=x[1],y=x[2],Z=x[3],B=x[4],D=x[5],w=Kn(n,D);f=B;var g=function(T,G){T?(i(),o(T,null)):(G&&(a[Z]=G),--l||o(null,a))};if(!M||M({name:Z,size:A,originalSize:y,compression:F}))if(!F)g(null,d(n,w,w+A));else if(F==8){var C=n.subarray(w,w+A);if(y<524288||A>.8*y)try{g(null,qr(C,{out:new S(y)}))}catch(T){g(T,null)}else e.push(Ln(C,{size:y},g))}else g(c(14,"unknown compression type "+F,1),null);else g(null,null)},z=0;z<h;++z)m(z)}else o(null,{});return i}function Dt(n,r){for(var t={},e=n.length-22;k(n,e)!=101010256;--e)(!e||n.length-e>65558)&&c(13);var i=R(n,e+8);if(!i)return{};var a=k(n,e+16),o=a==4294967295||i==65535;if(o){var s=k(n,e-12);o=k(n,s)==101075792,o&&(i=k(n,s+32),a=k(n,s+48))}for(var l=r&&r.filter,h=0;h<i;++h){var f=Qn(n,a,o),u=f[0],v=f[1],M=f[2],m=f[3],z=f[4],p=f[5],x=Kn(n,p);a=z,(!l||l({name:m,size:v,originalSize:M,compression:u}))&&(u?u==8?t[m]=qr(n.subarray(x,x+v),{out:new S(M)}):c(14,"unknown compression type "+u):t[m]=d(n,x,x+v))}return t}export{st as a,b,_n as c,rt as d,Qr as e,V as f,Hn as g,Ln as h,qr as i,gn as j,ft as k,ht as l,yn as m,br as n,nt as o,tt as p,_r as q,wn as r,ut as s,lt as t,mn as u,rn as v,et as w,it as x,nn as y,xn as z,vt as A,ct as B,pt as C,gt as D,yt as E,fr as F,Yn as G,Yr as H,wt as I,mt as J,xt as K,zt as L,At as M,at as N,Mt as O,St as P,Ft as Q,Ct as R,Dt as S};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
|
|
3
|
+
import{d as Tt}from"./chunk-PSANHDZM.js";var At={};Tt(At,{ExrBench:()=>J,ExrStreamEncoder:()=>Q,ProResBench:()=>Z,ProResMovEncoder:()=>tt,ProResMovWriter:()=>et,arriraw12_clip_info:()=>Ot,arriraw_mxf_gpu_frame:()=>Wt,audio_aac_au:()=>Ft,audio_aac_config:()=>St,audio_info:()=>Rt,bench_f32_boundary:()=>Lt,bench_piz_no_huffman:()=>zt,color_cst:()=>Dt,dci_code_full_depth:()=>Ut,dci_frame_cap:()=>jt,dci_gpu_colour_patch:()=>Pt,dci_gpu_colour_tables:()=>Bt,dci_last_pass_caps:()=>Ct,dci_legal_rates:()=>qt,dci_mq_bench:()=>Nt,dci_pack_tier1:()=>Ht,dci_stage_rgba8:()=>Gt,dci_transform_only:()=>Vt,decode_arriraw12_luma:()=>Kt,decode_arriraw12_mxf:()=>Xt,decode_arriraw12_preview:()=>Yt,decode_arriraw12_rgba:()=>$t,decode_arriraw_luma:()=>Jt,decode_arriraw_mxf:()=>Qt,decode_arriraw_preview:()=>Zt,decode_arriraw_preview_gray:()=>te,decode_arriraw_preview_meta:()=>ee,decode_arriraw_rgba:()=>ne,decode_arriraw_rgba_meta:()=>re,decode_audio_pcm:()=>_e,decode_braw_gen5log:()=>oe,decode_braw_luma:()=>ie,decode_braw_preview:()=>ae,decode_braw_rgba:()=>ce,decode_cr3_rgba:()=>de,decode_crm:()=>se,decode_dng_preview:()=>pe,decode_dng_rgba:()=>ge,decode_dpx_preview:()=>ue,decode_dpx_rgba:()=>we,decode_exr_linear:()=>be,decode_exr_preview:()=>le,decode_exr_rgba:()=>fe,decode_jpeg_rgba:()=>xe,decode_png_rgba:()=>ve,decode_prores_band_rgba:()=>Ie,decode_prores_luma:()=>ye,decode_prores_mxf:()=>me,decode_prores_preview:()=>he,decode_prores_raw_acescct:()=>ke,decode_prores_raw_luma:()=>Ae,decode_prores_raw_preview:()=>Me,decode_prores_raw_rec2020:()=>Ee,decode_prores_raw_rgba:()=>Te,decode_prores_raw_tier:()=>Oe,decode_prores_rgb16:()=>We,decode_prores_rgba:()=>Fe,decode_prores_thumb_dc32:()=>Se,decode_r3d_luma:()=>Re,decode_r3d_preview:()=>Le,decode_r3d_preview_clip:()=>ze,decode_r3d_rgb16:()=>De,decode_r3d_rgba:()=>Ue,decode_r3d_rgba_clip:()=>je,decode_tiff_preview:()=>Pe,decode_tiff_rgba:()=>Be,decode_vc3_band_rgba:()=>Ce,decode_vc3_luma:()=>qe,decode_vc3_mxf:()=>Ne,decode_vc3_preview:()=>He,decode_vc3_rgba:()=>Ge,decode_xocn_index_luma:()=>Ve,decode_xocn_luma:()=>Ke,decode_xocn_mxf:()=>Xe,decode_xocn_preview:()=>Ye,decode_xocn_preview_rec709:()=>$e,decode_xocn_rgb16:()=>Je,decode_xocn_rgba:()=>Qe,default:()=>rt,encode_dci_j2c:()=>Ze,encode_dci_j2c_rgb:()=>tn,encode_dci_j2c_rgba8:()=>en,encode_dci_j2c_staged:()=>nn,encode_dci_j2c_staged_modelled:()=>rn,encode_exr:()=>_n,encode_prores_4444_alpha_mov_rgba:()=>on,encode_prores_4444_alpha_sample_q:()=>an,encode_prores_444_sample_cbr:()=>cn,encode_prores_444_sample_cbr_rgb16:()=>dn,encode_prores_444_sample_cbr_rgb16_lut:()=>sn,encode_prores_mov_rgba:()=>pn,encode_prores_rgba:()=>gn,encode_prores_sample_cbr:()=>un,encode_prores_sample_cbr_rgb16:()=>wn,encode_prores_sample_cbr_rgb16_lut:()=>bn,encode_prores_sample_q:()=>ln,exr_sequence_filename:()=>fn,fit_sizing:()=>xn,initSync:()=>Cr,inspect_cr3:()=>vn,inspect_dng:()=>In,inspect_dpx:()=>yn,inspect_exr:()=>mn,inspect_isobmff:()=>hn,inspect_tiff:()=>kn,inspect_wav:()=>An,is_arriraw12_mxf:()=>Mn,is_arriraw_mxf:()=>En,is_crm:()=>Tn,is_prores_mxf:()=>On,is_vc3_mxf:()=>Wn,is_xavc_mxf:()=>Fn,is_xocn_mxf:()=>Sn,list_isobmff_segments:()=>Rn,list_mxf_segments:()=>Ln,list_r3d_frames:()=>zn,list_r3d_segments:()=>Dn,list_wav_segments:()=>Un,mux_prores_4444_alpha_samples:()=>jn,mux_prores_samples:()=>Pn,mux_prores_samples_full:()=>Bn,mxf_au_run:()=>Cn,mxf_frame_index:()=>qn,mxf_gop_map:()=>Nn,mxf_h264_kind:()=>Hn,plan_isobmff_trim:()=>Gn,plan_isobmff_trim_reader:()=>Vn,plan_mxf_compact_trim:()=>Kn,plan_mxf_trim:()=>Xn,plan_r3d_compact:()=>Yn,plan_wav_trim:()=>$n,plan_wav_trim_reader:()=>Jn,prepare_isobmff:()=>Qn,prepare_mxf:()=>Zn,prepare_r3d:()=>tr,prepare_wav:()=>er,probe_mov:()=>nr,probe_mxf:()=>rr,probe_r3d:()=>_r,prores_band_info:()=>or,prores_raw_container_color:()=>ir,prores_reset_rate_control:()=>ar,r3d_gpu_develop_params:()=>cr,r3d_index_ranges:()=>dr,r3d_is_helium:()=>sr,read_arriraw_fcs:()=>pr,read_arriraw_unit_correction:()=>gr,recover_reframe:()=>ur,resample_rgba16:()=>wr,resample_rgba8:()=>br,reset_dci_rate_state:()=>lr,resize_luma_area:()=>fr,rgba8_to_xyz12:()=>xr,shot_crop:()=>vr,shot_ramp:()=>Ir,shot_scan:()=>yr,trim_r3d:()=>mr,vc3_band_info:()=>hr,video_frame_index_isobmff_reader:()=>kr,xavc_au:()=>Ar,xavc_frame_count:()=>Mr,xocn_frame_count:()=>Er,xocn_index_prefix_len:()=>Tr,xocn_preview_prefix_len:()=>Or});var J=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,wt.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_exrbench_free(e,0)}block_rows(){return t.exrbench_block_rows(this.__wbg_ptr)>>>0}f32_to_half_block(){return t.exrbench_f32_to_half_block(this.__wbg_ptr)}n_blocks(){return t.exrbench_n_blocks(this.__wbg_ptr)>>>0}constructor(e,n,o,a){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=y(a,t.__wbindgen_export4,t.__wbindgen_export5),u=p;t.exrbench_new(s,e,n,o,g,u);var c=_().getInt32(s+0,!0),i=_().getInt32(s+4,!0),d=_().getInt32(s+8,!0);if(d)throw w(i);return this.__wbg_ptr=c,wt.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}piz_stage_block(e){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.exrbench_piz_stage_block(c,this.__wbg_ptr,e);var n=_().getFloat64(c+0,!0),o=_().getInt32(c+8,!0),a=_().getInt32(c+12,!0);if(a)throw w(o);return n}finally{t.__wbindgen_add_to_stack_pointer(16)}}staging_f32_ptr(){return t.exrbench_staging_f32_ptr(this.__wbg_ptr)>>>0}staging_f32_samples(){return t.exrbench_staging_f32_samples(this.__wbg_ptr)>>>0}staging_half_len(){return t.exrbench_staging_half_len(this.__wbg_ptr)>>>0}staging_half_ptr(){return t.exrbench_staging_half_ptr(this.__wbg_ptr)>>>0}zip_stage_block(e){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.exrbench_zip_stage_block(c,this.__wbg_ptr,e);var n=_().getFloat64(c+0,!0),o=_().getInt32(c+8,!0),a=_().getInt32(c+12,!0);if(a)throw w(o);return n}finally{t.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(J.prototype[Symbol.dispose]=J.prototype.free);var Q=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,bt.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_exrstreamencoder_free(e,0)}block_rows(){return t.exrstreamencoder_block_rows(this.__wbg_ptr)>>>0}finish(){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_finish(i,this.__wbg_ptr);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}header(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_header(a,this.__wbg_ptr);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}n_blocks(){return t.exrstreamencoder_n_blocks(this.__wbg_ptr)>>>0}constructor(e,n,o,a,c,i,d,s,g,u){try{let I=t.__wbindgen_add_to_stack_pointer(-16),h=y(o,t.__wbindgen_export4,t.__wbindgen_export5),k=p,M=y(a,t.__wbindgen_export4,t.__wbindgen_export5),O=p,W=y(c,t.__wbindgen_export4,t.__wbindgen_export5),E=p,S=y(i,t.__wbindgen_export4,t.__wbindgen_export5),L=p,z=y(s,t.__wbindgen_export4,t.__wbindgen_export5),U=p;t.exrstreamencoder_new(I,e,n,h,k,M,O,W,E,S,L,d,z,U,g,u);var b=_().getInt32(I+0,!0),x=_().getInt32(I+4,!0),m=_().getInt32(I+8,!0);if(m)throw w(x);return this.__wbg_ptr=b,bt.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_block(e){try{let d=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_push_block(d,this.__wbg_ptr,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}rows_remaining(){return t.exrstreamencoder_rows_remaining(this.__wbg_ptr)>>>0}staging_ptr(){return t.exrstreamencoder_staging_ptr(this.__wbg_ptr)>>>0}staging_samples(){return t.exrstreamencoder_staging_samples(this.__wbg_ptr)>>>0}};Symbol.dispose&&(Q.prototype[Symbol.dispose]=Q.prototype.free);var Z=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,lt.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_proresbench_free(e,0)}constructor(e,n,o,a){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=y(o,t.__wbindgen_export4,t.__wbindgen_export5),u=p;t.proresbench_new(s,e,n,g,u,a);var c=_().getInt32(s+0,!0),i=_().getInt32(s+4,!0),d=_().getInt32(s+8,!0);if(d)throw w(i);return this.__wbg_ptr=c,lt.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}stage(e){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.proresbench_stage(c,this.__wbg_ptr,e);var n=_().getFloat64(c+0,!0),o=_().getInt32(c+8,!0),a=_().getInt32(c+12,!0);if(a)throw w(o);return n}finally{t.__wbindgen_add_to_stack_pointer(16)}}staging_len(){return t.proresbench_staging_len(this.__wbg_ptr)>>>0}staging_ptr(){return t.proresbench_staging_ptr(this.__wbg_ptr)>>>0}};Symbol.dispose&&(Z.prototype[Symbol.dispose]=Z.prototype.free);var tt=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ft.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_proresmovencoder_free(e,0)}add_frame_rgba(e){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(e,t.__wbindgen_export4),i=p;t.proresmovencoder_add_frame_rgba(a,this.__wbg_ptr,c,i);var n=_().getInt32(a+0,!0),o=_().getInt32(a+4,!0);if(o)throw w(n)}finally{t.__wbindgen_add_to_stack_pointer(16)}}finish(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovencoder_finish(a,this.__wbg_ptr);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}frame_count(){return t.proresmovencoder_frame_count(this.__wbg_ptr)>>>0}constructor(e,n,o,a){let c=t.proresmovencoder_new(e,n,o,a);return this.__wbg_ptr=c,ft.register(this,this.__wbg_ptr,this),this}set_alpha(e){t.proresmovencoder_set_alpha(this.__wbg_ptr,e)}set_bitrate_mbps(e){t.proresmovencoder_set_bitrate_mbps(this.__wbg_ptr,e)}set_qscale(e){t.proresmovencoder_set_qscale(this.__wbg_ptr,e)}};Symbol.dispose&&(tt.prototype[Symbol.dispose]=tt.prototype.free);var et=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,xt.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_proresmovwriter_free(e,0)}finish(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_finish(a,this.__wbg_ptr);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}frame_count(){return t.proresmovwriter_frame_count(this.__wbg_ptr)>>>0}header(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_header(a,this.__wbg_ptr);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}mdat_box_header(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_mdat_box_header(a,this.__wbg_ptr);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}mdat_box_offset(){return t.proresmovwriter_mdat_box_offset(this.__wbg_ptr)}constructor(e,n,o,a){let c=t.proresmovwriter_new(e,n,o,a);return this.__wbg_ptr=c,xt.register(this,this.__wbg_ptr,this),this}push_frame(){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_push_frame(i,this.__wbg_ptr);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_sample(e){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(e,t.__wbindgen_export4),i=p;t.proresmovwriter_push_sample(a,this.__wbg_ptr,c,i);var n=_().getInt32(a+0,!0),o=_().getInt32(a+4,!0);if(o)throw w(n)}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_sample_len(e){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_push_sample_len(a,this.__wbg_ptr,e);var n=_().getInt32(a+0,!0),o=_().getInt32(a+4,!0);if(o)throw w(n)}finally{t.__wbindgen_add_to_stack_pointer(16)}}reserve_large_mdat(e){t.proresmovwriter_reserve_large_mdat(this.__wbg_ptr,e)}set_alpha(e){t.proresmovwriter_set_alpha(this.__wbg_ptr,e)}set_bitrate_mbps(e){t.proresmovwriter_set_bitrate_mbps(this.__wbg_ptr,e)}set_par(e,n){t.proresmovwriter_set_par(this.__wbg_ptr,e,n)}set_profile(e){let n=y(e,t.__wbindgen_export4,t.__wbindgen_export5),o=p;t.proresmovwriter_set_profile(this.__wbg_ptr,n,o)}set_qscale(e){t.proresmovwriter_set_qscale(this.__wbg_ptr,e)}set_start_timecode(e,n){t.proresmovwriter_set_start_timecode(this.__wbg_ptr,e,n)}staging_len(){return t.proresmovwriter_staging_len(this.__wbg_ptr)>>>0}staging_ptr(){return t.proresmovwriter_staging_ptr(this.__wbg_ptr)>>>0}total_len(){return t.proresmovwriter_total_len(this.__wbg_ptr)}};Symbol.dispose&&(et.prototype[Symbol.dispose]=et.prototype.free);function Ot(r){let e,n;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.arriraw12_clip_info(c,i,d);var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);return e=o,n=a,T(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Wt(r,e,n,o){var a=P(o)?0:y(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p;let i=t.arriraw_mxf_gpu_frame(v(r),e,n,a,c);return w(i)}function Ft(r,e,n){let o=t.audio_aac_au(v(r),e,n);return w(o)}function St(r,e){let n=t.audio_aac_config(v(r),e);return w(n)}function Rt(r,e){let n=t.audio_info(v(r),e);return w(n)}function Lt(r){let e=ot(r,t.__wbindgen_export4),n=p;return t.bench_f32_boundary(e,n)}function zt(r,e,n,o){let a=ot(r,t.__wbindgen_export4),c=p;return t.bench_piz_no_huffman(a,c,e,n,o)}function Dt(r,e){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=y(r,t.__wbindgen_export4,t.__wbindgen_export5),s=p;var n=ot(e,t.__wbindgen_export4),o=p;t.color_cst(i,d,s,n,o,v(e));var a=_().getInt32(i+0,!0),c=_().getInt32(i+4,!0);if(c)throw w(a)}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ut(r,e,n){let o=F(r,t.__wbindgen_export4),a=p;return t.dci_code_full_depth(o,a,e,n)}function jt(r,e,n){return t.dci_frame_cap(r,e,n)>>>0}function Pt(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p,u=y(e,t.__wbindgen_export4,t.__wbindgen_export5),b=p;t.dci_gpu_colour_patch(d,s,g,u,b);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=gt(n,o).slice();return t.__wbindgen_export3(n,o*2,2),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Bt(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=y(r,t.__wbindgen_export4,t.__wbindgen_export5),s=p;t.dci_gpu_colour_tables(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ct(){try{let o=t.__wbindgen_add_to_stack_pointer(-16);t.dci_last_pass_caps(o);var r=_().getInt32(o+0,!0),e=_().getInt32(o+4,!0),n=nt(r,e).slice();return t.__wbindgen_export3(r,e*4,4),n}finally{t.__wbindgen_add_to_stack_pointer(16)}}function qt(r,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.dci_legal_rates(c,r,e);var n=_().getInt32(c+0,!0),o=_().getInt32(c+4,!0),a=nt(n,o).slice();return t.__wbindgen_export3(n,o*4,4),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Nt(r){return t.dci_mq_bench(r)>>>0}function Ht(r,e,n,o,a,c,i,d,s,g,u){try{let k=t.__wbindgen_add_to_stack_pointer(-16),M=R(r,t.__wbindgen_export4),O=p,W=l(e,t.__wbindgen_export4),E=p,S=R(n,t.__wbindgen_export4),L=p,z=R(o,t.__wbindgen_export4),U=p,C=R(a,t.__wbindgen_export4),q=p,it=R(c,t.__wbindgen_export4),at=p,ct=R(i,t.__wbindgen_export4),dt=p,Mt=R(d,t.__wbindgen_export4),Et=p;t.dci_pack_tier1(k,M,O,W,E,S,L,z,U,C,q,it,at,ct,dt,Mt,Et,s,g,u);var b=_().getInt32(k+0,!0),x=_().getInt32(k+4,!0),m=_().getInt32(k+8,!0),I=_().getInt32(k+12,!0);if(I)throw w(m);var h=f(b,x).slice();return t.__wbindgen_export3(b,x*1,1),h}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Gt(r,e){let n=t.dci_stage_rgba8(r,e);return w(n)}function Vt(r,e,n){let o=F(r,t.__wbindgen_export4),a=p;return t.dci_transform_only(o,a,e,n)}function Kt(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p,u=l(e,t.__wbindgen_export4),b=p;t.decode_arriraw12_luma(d,s,g,u,b);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Xt(r,e,n,o){let a=y(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_arriraw12_mxf(v(r),e,n,a,c);return w(i)}function Yt(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p,b=l(e,t.__wbindgen_export4),x=p;t.decode_arriraw12_preview(s,g,u,b,x,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function $t(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p,u=l(e,t.__wbindgen_export4),b=p;t.decode_arriraw12_rgba(d,s,g,u,b);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Jt(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p;t.decode_arriraw_luma(s,g,u,e,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Qt(r,e,n,o){let a=y(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_arriraw_mxf(v(r),e,n,a,c);return w(i)}function Zt(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.decode_arriraw_preview(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function te(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.decode_arriraw_preview_gray(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ee(r,e,n,o,a,c,i,d,s){try{let k=t.__wbindgen_add_to_stack_pointer(-16),M=l(r,t.__wbindgen_export4),O=p;var g=P(s)?0:Y(s,t.__wbindgen_export4),u=p;t.decode_arriraw_preview_meta(k,M,O,e,n,o,a,c,i,d,g,u);var b=_().getInt32(k+0,!0),x=_().getInt32(k+4,!0),m=_().getInt32(k+8,!0),I=_().getInt32(k+12,!0);if(I)throw w(m);var h=f(b,x).slice();return t.__wbindgen_export3(b,x*1,1),h}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ne(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p;t.decode_arriraw_rgba(s,g,u,e,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function re(r,e,n,o,a,c,i,d){try{let h=t.__wbindgen_add_to_stack_pointer(-16),k=l(r,t.__wbindgen_export4),M=p;var s=P(d)?0:Y(d,t.__wbindgen_export4),g=p;t.decode_arriraw_rgba_meta(h,k,M,e,n,o,a,c,i,s,g);var u=_().getInt32(h+0,!0),b=_().getInt32(h+4,!0),x=_().getInt32(h+8,!0),m=_().getInt32(h+12,!0);if(m)throw w(x);var I=f(u,b).slice();return t.__wbindgen_export3(u,b*1,1),I}finally{t.__wbindgen_add_to_stack_pointer(16)}}function _e(r,e,n,o){let a=t.decode_audio_pcm(v(r),e,n,o);return w(a)}function oe(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),i=p;t.decode_braw_gen5log(a,c,i);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ie(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_braw_luma(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ae(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_braw_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ce(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_braw_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function de(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_cr3_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function se(r,e,n,o){let a=y(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_crm(v(r),e,n,a,c);return w(i)}function pe(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_dng_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ge(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_dng_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ue(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_dpx_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function we(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_dpx_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function be(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_exr_linear(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function le(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_exr_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function fe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_exr_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function xe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_jpeg_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ve(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_png_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ie(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p;t.decode_prores_band_rgba(s,g,u,e,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ye(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_luma(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function me(r,e,n,o){let a=y(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_prores_mxf(v(r),e,n,a,c);return w(i)}function he(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_prores_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ke(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_raw_acescct(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ae(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_raw_luma(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Me(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_prores_raw_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ee(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_raw_rec2020(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Te(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_raw_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Oe(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p,b=y(e,t.__wbindgen_export4,t.__wbindgen_export5),x=p,m=l(n,t.__wbindgen_export4),I=p;t.decode_prores_raw_tier(s,g,u,b,x,m,I);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function We(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_rgb16(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Fe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Se(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_thumb_dc32(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Re(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_r3d_luma(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Le(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_r3d_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ze(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p,b=l(e,t.__wbindgen_export4),x=p;t.decode_r3d_preview_clip(s,g,u,b,x,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function De(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_r3d_rgb16(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ue(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_r3d_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function je(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p,u=l(e,t.__wbindgen_export4),b=p;t.decode_r3d_rgba_clip(d,s,g,u,b);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Pe(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_tiff_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Be(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_tiff_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ce(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p;t.decode_vc3_band_rgba(s,g,u,e,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function qe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_vc3_luma(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ne(r,e,n,o){let a=y(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_vc3_mxf(v(r),e,n,a,c);return w(i)}function He(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_vc3_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ge(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_vc3_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ve(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),i=p;t.decode_xocn_index_luma(a,c,i);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ke(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_xocn_luma(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Xe(r,e,n,o){let a=y(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_xocn_mxf(v(r),e,n,a,c);return w(i)}function Ye(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_xocn_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function $e(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_xocn_preview_rec709(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Je(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),i=p;t.decode_xocn_rgb16(a,c,i);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Qe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_xocn_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ze(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=F(r,t.__wbindgen_export4),b=p;t.encode_dci_j2c(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function tn(r,e,n,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=F(r,t.__wbindgen_export4),m=p,I=y(n,t.__wbindgen_export4,t.__wbindgen_export5),h=p;t.encode_dci_j2c_rgb(b,x,m,e,I,h,o,a,c);var i=_().getInt32(b+0,!0),d=_().getInt32(b+4,!0),s=_().getInt32(b+8,!0),g=_().getInt32(b+12,!0);if(g)throw w(s);var u=f(i,d).slice();return t.__wbindgen_export3(i,d*1,1),u}finally{t.__wbindgen_add_to_stack_pointer(16)}}function en(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p,m=y(e,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.encode_dci_j2c_rgba8(u,b,x,m,I,n,o,a);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function nn(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=y(o,t.__wbindgen_export4,t.__wbindgen_export5),x=p;t.encode_dci_j2c_staged(u,r,e,n,b,x,a);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function rn(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=y(o,t.__wbindgen_export4,t.__wbindgen_export5),x=p;t.encode_dci_j2c_staged_modelled(u,r,e,n,b,x,a);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function _n(r,e,n,o,a,c,i,d,s,g,u,b,x,m,I){try{let E=t.__wbindgen_add_to_stack_pointer(-16),S=ot(r,t.__wbindgen_export4),L=p,z=y(a,t.__wbindgen_export4,t.__wbindgen_export5),U=p,C=y(c,t.__wbindgen_export4,t.__wbindgen_export5),q=p,it=y(i,t.__wbindgen_export4,t.__wbindgen_export5),at=p,ct=y(x,t.__wbindgen_export4,t.__wbindgen_export5),dt=p;t.encode_exr(E,S,L,e,n,o,z,U,C,q,it,at,d,s,g,u,b,ct,dt,m,I);var h=_().getInt32(E+0,!0),k=_().getInt32(E+4,!0),M=_().getInt32(E+8,!0),O=_().getInt32(E+12,!0);if(O)throw w(M);var W=f(h,k).slice();return t.__wbindgen_export3(h,k*1,1),W}finally{t.__wbindgen_add_to_stack_pointer(16)}}function on(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p;t.encode_prores_4444_alpha_mov_rgba(u,b,x,e,n,o,a);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function an(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.encode_prores_4444_alpha_sample_q(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function cn(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.encode_prores_444_sample_cbr(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function dn(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=F(r,t.__wbindgen_export4),b=p;t.encode_prores_444_sample_cbr_rgb16(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function sn(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=F(r,t.__wbindgen_export4),x=p,m=F(a,t.__wbindgen_export4),I=p;t.encode_prores_444_sample_cbr_rgb16_lut(u,b,x,e,n,o,m,I);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function pn(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p;t.encode_prores_mov_rgba(u,b,x,e,n,o,a);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function gn(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p;t.encode_prores_rgba(s,g,u,e,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function un(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.encode_prores_sample_cbr(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function wn(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=F(r,t.__wbindgen_export4),b=p;t.encode_prores_sample_cbr_rgb16(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function bn(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=F(r,t.__wbindgen_export4),x=p,m=F(a,t.__wbindgen_export4),I=p;t.encode_prores_sample_cbr_rgb16_lut(u,b,x,e,n,o,m,I);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ln(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.encode_prores_sample_q(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function fn(r,e,n,o){let a,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=y(r,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.exr_sequence_filename(x,m,I,e,n,o);var i=_().getInt32(x+0,!0),d=_().getInt32(x+4,!0),s=_().getInt32(x+8,!0),g=_().getInt32(x+12,!0),u=i,b=d;if(g)throw u=0,b=0,w(s);return a=u,c=b,T(u,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,c,1)}}function xn(r,e,n,o,a,c,i,d){let s,g;try{let k=t.__wbindgen_add_to_stack_pointer(-16),M=l(r,t.__wbindgen_export4),O=p,W=l(o,t.__wbindgen_export4),E=p,S=y(d,t.__wbindgen_export4,t.__wbindgen_export5),L=p;t.fit_sizing(k,M,O,e,n,W,E,a,c,i,S,L);var u=_().getInt32(k+0,!0),b=_().getInt32(k+4,!0),x=_().getInt32(k+8,!0),m=_().getInt32(k+12,!0),I=u,h=b;if(m)throw I=0,h=0,w(x);return s=I,g=h,T(I,h)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(s,g,1)}}function vn(r){let e,n;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.inspect_cr3(c,i,d);var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);return e=o,n=a,T(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function In(r){let e,n;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.inspect_dng(c,i,d);var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);return e=o,n=a,T(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function yn(r){let e,n;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.inspect_dpx(c,i,d);var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);return e=o,n=a,T(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function mn(r){let e,n;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.inspect_exr(c,i,d);var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);return e=o,n=a,T(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function hn(r,e,n){let o=y(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.inspect_isobmff(v(r),e,o,a);return w(c)}function kn(r){let e,n;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.inspect_tiff(c,i,d);var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);return e=o,n=a,T(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function An(r,e){let n=t.inspect_wav(v(r),e);return w(n)}function Mn(r,e){let n=t.is_arriraw12_mxf(v(r),e);return w(n)}function En(r,e){let n=t.is_arriraw_mxf(v(r),e);return w(n)}function Tn(r,e){let n=t.is_crm(v(r),e);return w(n)}function On(r,e){let n=t.is_prores_mxf(v(r),e);return w(n)}function Wn(r,e){let n=t.is_vc3_mxf(v(r),e);return w(n)}function Fn(r,e){let n=t.is_xavc_mxf(v(r),e);return w(n)}function Sn(r,e){let n=t.is_xocn_mxf(v(r),e);return w(n)}function Rn(r,e,n){let o=y(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.list_isobmff_segments(v(r),e,o,a);return w(c)}function Ln(r,e){let n=t.list_mxf_segments(v(r),e);return w(n)}function zn(r,e){let n=y(e,t.__wbindgen_export4,t.__wbindgen_export5),o=p,a=t.list_r3d_frames(v(r),n,o);return w(a)}function Dn(r,e){let n=y(e,t.__wbindgen_export4,t.__wbindgen_export5),o=p,a=t.list_r3d_segments(v(r),n,o);return w(a)}function Un(r,e){let n=t.list_wav_segments(v(r),e);return w(n)}function jn(r,e,n,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(r,t.__wbindgen_export4),m=p,I=R(e,t.__wbindgen_export4),h=p;t.mux_prores_4444_alpha_samples(b,x,m,I,h,n,o,a,c);var i=_().getInt32(b+0,!0),d=_().getInt32(b+4,!0),s=_().getInt32(b+8,!0),g=_().getInt32(b+12,!0);if(g)throw w(s);var u=f(i,d).slice();return t.__wbindgen_export3(i,d*1,1),u}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Pn(r,e,n,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(r,t.__wbindgen_export4),m=p,I=R(e,t.__wbindgen_export4),h=p;t.mux_prores_samples(b,x,m,I,h,n,o,a,c);var i=_().getInt32(b+0,!0),d=_().getInt32(b+4,!0),s=_().getInt32(b+8,!0),g=_().getInt32(b+12,!0);if(g)throw w(s);var u=f(i,d).slice();return t.__wbindgen_export3(i,d*1,1),u}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Bn(r,e,n,o,a,c,i,d,s,g,u,b){try{let M=t.__wbindgen_add_to_stack_pointer(-16),O=l(r,t.__wbindgen_export4),W=p,E=R(e,t.__wbindgen_export4),S=p,L=y(i,t.__wbindgen_export4,t.__wbindgen_export5),z=p;t.mux_prores_samples_full(M,O,W,E,S,n,o,a,c,L,z,d,s,g,u,b);var x=_().getInt32(M+0,!0),m=_().getInt32(M+4,!0),I=_().getInt32(M+8,!0),h=_().getInt32(M+12,!0);if(h)throw w(I);var k=f(x,m).slice();return t.__wbindgen_export3(x,m*1,1),k}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Cn(r,e,n,o){let a=t.mxf_au_run(v(r),e,n,o);return w(a)}function qn(r,e){let n=t.mxf_frame_index(v(r),e);return w(n)}function Nn(r,e){let n=t.mxf_gop_map(v(r),e);return w(n)}function Hn(r,e){let n=t.mxf_h264_kind(v(r),e);return w(n)}function Gn(r,e){let n,o;try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p,m=y(e,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.plan_isobmff_trim(u,b,x,m,I);var a=_().getInt32(u+0,!0),c=_().getInt32(u+4,!0),i=_().getInt32(u+8,!0),d=_().getInt32(u+12,!0),s=a,g=c;if(d)throw s=0,g=0,w(i);return n=s,o=g,T(s,g)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,o,1)}}function Vn(r,e,n,o,a){let c=y(a,t.__wbindgen_export4,t.__wbindgen_export5),i=p,d=t.plan_isobmff_trim_reader(v(r),e,n,o,c,i);return w(d)}function Kn(r){let e,n;try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=y(r,t.__wbindgen_export4,t.__wbindgen_export5),b=p;t.plan_mxf_compact_trim(g,u,b);var o=_().getInt32(g+0,!0),a=_().getInt32(g+4,!0),c=_().getInt32(g+8,!0),i=_().getInt32(g+12,!0),d=o,s=a;if(i)throw d=0,s=0,w(c);return e=d,n=s,T(d,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Xn(r,e,n,o){let a=t.plan_mxf_trim(v(r),e,n,o);return w(a)}function Yn(r,e,n,o,a,c,i,d){let s,g;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=l(r,t.__wbindgen_export4),I=p,h=l(e,t.__wbindgen_export4),k=p,M=l(n,t.__wbindgen_export4),O=p,W=l(o,t.__wbindgen_export4),E=p,S=Y(a,t.__wbindgen_export4),L=p,z=Y(c,t.__wbindgen_export4),U=p,C=Y(i,t.__wbindgen_export4),q=p;t.plan_r3d_compact(x,m,I,h,k,M,O,W,E,S,L,z,U,C,q,d);var u=_().getInt32(x+0,!0),b=_().getInt32(x+4,!0);return s=u,g=b,T(u,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(s,g,1)}}function $n(r,e,n,o){let a,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=l(r,t.__wbindgen_export4),I=p;t.plan_wav_trim(x,m,I,e,n,o);var i=_().getInt32(x+0,!0),d=_().getInt32(x+4,!0),s=_().getInt32(x+8,!0),g=_().getInt32(x+12,!0),u=i,b=d;if(g)throw u=0,b=0,w(s);return a=u,c=b,T(u,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,c,1)}}function Jn(r,e,n,o,a){let c=t.plan_wav_trim_reader(v(r),e,n,o,a);return w(c)}function Qn(r,e,n,o){let a=y(n,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=y(o,t.__wbindgen_export4,t.__wbindgen_export5),d=p,s=t.prepare_isobmff(v(r),e,a,c,i,d);return w(s)}function Zn(r,e,n){let o=y(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.prepare_mxf(v(r),e,o,a);return w(c)}function tr(r,e,n){let o=y(e,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=y(n,t.__wbindgen_export4,t.__wbindgen_export5),i=p,d=t.prepare_r3d(v(r),o,a,c,i);return w(d)}function er(r,e,n,o){let a=y(n,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.prepare_wav(v(r),e,a,c,o);return w(i)}function nr(r){let e,n;try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.probe_mov(g,u,b);var o=_().getInt32(g+0,!0),a=_().getInt32(g+4,!0),c=_().getInt32(g+8,!0),i=_().getInt32(g+12,!0),d=o,s=a;if(i)throw d=0,s=0,w(c);return e=d,n=s,T(d,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function rr(r,e){let n=t.probe_mxf(v(r),e);return w(n)}function _r(r,e){let n=y(e,t.__wbindgen_export4,t.__wbindgen_export5),o=p,a=t.probe_r3d(v(r),n,o);return w(a)}function or(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.prores_band_info(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=nt(e,n).slice();return t.__wbindgen_export3(e,n*4,4),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ir(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),i=p;t.prores_raw_container_color(a,c,i);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ar(){t.prores_reset_rate_control()}function cr(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),i=p;t.r3d_gpu_develop_params(a,c,i);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function dr(r,e,n){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.r3d_index_ranges(i,d,s,e,n);var o=_().getInt32(i+0,!0),a=_().getInt32(i+4,!0),c=nt(o,a).slice();return t.__wbindgen_export3(o,a*4,4),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function sr(r){let e=l(r,t.__wbindgen_export4),n=p;return t.r3d_is_helium(e,n)!==0}function pr(r){let e,n;try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.read_arriraw_fcs(g,u,b);var o=_().getInt32(g+0,!0),a=_().getInt32(g+4,!0),c=_().getInt32(g+8,!0),i=_().getInt32(g+12,!0),d=o,s=a;if(i)throw d=0,s=0,w(c);return e=d,n=s,T(d,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function gr(r,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.read_arriraw_unit_correction(c,i,d,e);var n=_().getInt32(c+0,!0),o=_().getInt32(c+4,!0),a=Rr(n,o).slice();return t.__wbindgen_export3(n,o*8,8),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ur(r,e,n,o,a,c,i){let d,s;try{let h=t.__wbindgen_add_to_stack_pointer(-16),k=l(r,t.__wbindgen_export4),M=p,O=l(o,t.__wbindgen_export4),W=p,E=y(i,t.__wbindgen_export4,t.__wbindgen_export5),S=p;t.recover_reframe(h,k,M,e,n,O,W,a,c,E,S);var g=_().getInt32(h+0,!0),u=_().getInt32(h+4,!0),b=_().getInt32(h+8,!0),x=_().getInt32(h+12,!0),m=g,I=u;if(x)throw m=0,I=0,w(b);return d=m,s=I,T(m,I)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(d,s,1)}}function wr(r,e,n,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=F(r,t.__wbindgen_export4),m=p,I=y(c,t.__wbindgen_export4,t.__wbindgen_export5),h=p;t.resample_rgba16(b,x,m,e,n,o,a,I,h);var i=_().getInt32(b+0,!0),d=_().getInt32(b+4,!0),s=_().getInt32(b+8,!0),g=_().getInt32(b+12,!0);if(g)throw w(s);var u=gt(i,d).slice();return t.__wbindgen_export3(i,d*2,2),u}finally{t.__wbindgen_add_to_stack_pointer(16)}}function br(r,e,n,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(r,t.__wbindgen_export4),m=p,I=y(c,t.__wbindgen_export4,t.__wbindgen_export5),h=p;t.resample_rgba8(b,x,m,e,n,o,a,I,h);var i=_().getInt32(b+0,!0),d=_().getInt32(b+4,!0),s=_().getInt32(b+8,!0),g=_().getInt32(b+12,!0);if(g)throw w(s);var u=f(i,d).slice();return t.__wbindgen_export3(i,d*1,1),u}finally{t.__wbindgen_add_to_stack_pointer(16)}}function lr(){t.reset_dci_rate_state()}function fr(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.resize_luma_area(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function xr(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p,m=y(a,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.rgba8_to_xyz12(u,b,x,e,n,o,m,I);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=gt(c,i).slice();return t.__wbindgen_export3(c,i*2,2),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function vr(r,e,n,o){let a,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=F(r,t.__wbindgen_export4),I=p,h=l(e,t.__wbindgen_export4),k=p,M=R(n,t.__wbindgen_export4),O=p,W=y(o,t.__wbindgen_export4,t.__wbindgen_export5),E=p;t.shot_crop(x,m,I,h,k,M,O,W,E);var i=_().getInt32(x+0,!0),d=_().getInt32(x+4,!0),s=_().getInt32(x+8,!0),g=_().getInt32(x+12,!0),u=i,b=d;if(g)throw u=0,b=0,w(s);return a=u,c=b,T(u,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,c,1)}}function Ir(r,e,n){let o,a;try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=F(r,t.__wbindgen_export4),m=p,I=l(e,t.__wbindgen_export4),h=p,k=y(n,t.__wbindgen_export4,t.__wbindgen_export5),M=p;t.shot_ramp(b,x,m,I,h,k,M);var c=_().getInt32(b+0,!0),i=_().getInt32(b+4,!0),d=_().getInt32(b+8,!0),s=_().getInt32(b+12,!0),g=c,u=i;if(s)throw g=0,u=0,w(d);return o=g,a=u,T(g,u)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(o,a,1)}}function yr(r,e,n,o){let a,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=F(r,t.__wbindgen_export4),I=p,h=l(e,t.__wbindgen_export4),k=p,M=R(n,t.__wbindgen_export4),O=p,W=y(o,t.__wbindgen_export4,t.__wbindgen_export5),E=p;t.shot_scan(x,m,I,h,k,M,O,W,E);var i=_().getInt32(x+0,!0),d=_().getInt32(x+4,!0),s=_().getInt32(x+8,!0),g=_().getInt32(x+12,!0),u=i,b=d;if(g)throw u=0,b=0,w(s);return a=u,c=b,T(u,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,c,1)}}function mr(r,e,n,o){let a=y(e,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=y(n,t.__wbindgen_export4,t.__wbindgen_export5),d=p,s=y(o,t.__wbindgen_export4,t.__wbindgen_export5),g=p,u=t.trim_r3d(v(r),a,c,i,d,s,g);return w(u)}function hr(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.vc3_band_info(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=nt(e,n).slice();return t.__wbindgen_export3(e,n*4,4),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function kr(r,e,n){let o=y(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.video_frame_index_isobmff_reader(v(r),e,o,a);return w(c)}function Ar(r,e,n){let o=t.xavc_au(v(r),e,n);return w(o)}function Mr(r,e){let n=t.xavc_frame_count(v(r),e);return w(n)}function Er(r,e){let n=t.xocn_frame_count(v(r),e);return w(n)}function Tr(r){let e=l(r,t.__wbindgen_export4),n=p;return t.xocn_index_prefix_len(e,n)>>>0}function Or(r){let e=l(r,t.__wbindgen_export4),n=p;return t.xocn_preview_prefix_len(e,n)>>>0}function It(){return{__proto__:null,"./media_core_bg.js":{__proto__:null,__wbg___wbindgen_copy_to_typed_array_c5728021fabd0236:function(e,n,o){new Uint8Array(A(o).buffer,A(o).byteOffset,A(o).byteLength).set(f(e,n))},__wbg___wbindgen_is_function_acc5528be2b923f2:function(e){return typeof A(e)=="function"},__wbg___wbindgen_is_undefined_721f8decd50c87a3:function(e){return A(e)===void 0},__wbg___wbindgen_throw_ea4887a5f8f9a9db:function(e,n){throw new Error(T(e,n))},__wbg__wbg_cb_unref_33c39e13d73b25f6:function(e){A(e)._wbg_cb_unref()},__wbg_call_0e855b388e315e17:function(){return st(function(e,n,o,a){let c=A(e).call(A(n),A(o),A(a));return v(c)},arguments)},__wbg_call_5575218572ead796:function(){return st(function(e,n,o){let a=A(e).call(A(n),A(o));return v(a)},arguments)},__wbg_call_dd0f909cbc9405d0:function(){return st(function(e,n,o,a,c){let i=A(e).call(A(n),A(o),A(a),A(c));return v(i)},arguments)},__wbg_length_589238bdcf171f0e:function(e){return A(e).length},__wbg_new_81880fb5002cb255:function(e){let n=new Uint8Array(A(e));return v(n)},__wbg_new_typed_00a409eb4ec4f2d9:function(e,n){try{var o={a:e,b:n},a=(i,d)=>{let s=o.a;o.a=0;try{return Fr(s,o.b,i,d)}finally{o.a=s}};let c=new Promise(a);return v(c)}finally{o.a=0}},__wbg_prototypesetcall_d721637c7ca66eb8:function(e,n,o){Uint8Array.prototype.set.call(f(e,n),A(o))},__wbg_queueMicrotask_1c9b3800e321a967:function(e){let n=A(e).queueMicrotask;return v(n)},__wbg_queueMicrotask_311744e534a929a3:function(e){queueMicrotask(A(e))},__wbg_resolve_d82363d90af6928a:function(e){let n=Promise.resolve(A(e));return v(n)},__wbg_static_accessor_GLOBAL_THIS_2fee5048bcca5938:function(){let e=typeof globalThis>"u"?null:globalThis;return P(e)?0:v(e)},__wbg_static_accessor_GLOBAL_ce44e66a4935da8c:function(){let e=typeof global>"u"?null:global;return P(e)?0:v(e)},__wbg_static_accessor_SELF_44f6e0cb5e67cdad:function(){let e=typeof self>"u"?null:self;return P(e)?0:v(e)},__wbg_static_accessor_WINDOW_168f178805d978fe:function(){let e=typeof window>"u"?null:window;return P(e)?0:v(e)},__wbg_then_05edfc8a4fea5106:function(e,n,o){let a=A(e).then(A(n),A(o));return v(a)},__wbg_then_591b6b3a75ee817a:function(e,n){let o=A(e).then(A(n));return v(o)},__wbindgen_cast_0000000000000001:function(e,n){let o=zr(e,n,Wr);return v(o)},__wbindgen_cast_0000000000000002:function(e){return v(e)},__wbindgen_cast_0000000000000003:function(e,n){let o=f(e,n);return v(o)},__wbindgen_cast_0000000000000004:function(e,n){let o=T(e,n);return v(o)},__wbindgen_cast_0000000000000005:function(e,n){var o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),v(o)},__wbindgen_object_clone_ref:function(e){let n=A(e);return v(n)},__wbindgen_object_drop_ref:function(e){w(e)}}}}function Wr(r,e,n){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.__wasm_bindgen_func_elem_1903(c,r,e,v(n));var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);if(a)throw w(o)}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Fr(r,e,n,o){t.__wasm_bindgen_func_elem_1918(r,e,v(n),v(o))}var wt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_exrbench_free(r,1)),bt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_exrstreamencoder_free(r,1)),lt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_proresbench_free(r,1)),ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_proresmovencoder_free(r,1)),xt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_proresmovwriter_free(r,1));function v(r){X===D.length&&D.push(D.length+1);let e=X;return X=D[e],D[e]=r,e}var vt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbindgen_export2(r.a,r.b));function Sr(r){r<1028||(D[r]=X,X=r)}function Rr(r,e){return r=r>>>0,yt().subarray(r/8,r/8+e)}function gt(r,e){return r=r>>>0,mt().subarray(r/2,r/2+e)}function nt(r,e){return r=r>>>0,ht().subarray(r/4,r/4+e)}function f(r,e){return r=r>>>0,B().subarray(r/1,r/1+e)}var j=null;function _(){return(j===null||j.buffer.detached===!0||j.buffer.detached===void 0&&j.buffer!==t.memory.buffer)&&(j=new DataView(t.memory.buffer)),j}var N=null;function Lr(){return(N===null||N.byteLength===0)&&(N=new Float32Array(t.memory.buffer)),N}var H=null;function yt(){return(H===null||H.byteLength===0)&&(H=new Float64Array(t.memory.buffer)),H}function T(r,e){return Ur(r>>>0,e)}var G=null;function mt(){return(G===null||G.byteLength===0)&&(G=new Uint16Array(t.memory.buffer)),G}var V=null;function ht(){return(V===null||V.byteLength===0)&&(V=new Uint32Array(t.memory.buffer)),V}var K=null;function B(){return(K===null||K.byteLength===0)&&(K=new Uint8Array(t.memory.buffer)),K}function A(r){return D[r]}function st(r,e){try{return r.apply(this,e)}catch(n){t.__wbindgen_export(v(n))}}var D=new Array(1024).fill(void 0);D.push(void 0,null,!0,!1);var X=D.length;function P(r){return r==null}function zr(r,e,n){let o={a:r,b:e,cnt:1},a=(...c)=>{o.cnt++;let i=o.a;o.a=0;try{return n(i,o.b,...c)}finally{o.a=i,a._wbg_cb_unref()}};return a._wbg_cb_unref=()=>{--o.cnt===0&&(t.__wbindgen_export2(o.a,o.b),o.a=0,vt.unregister(o))},vt.register(a,o,o),a}function F(r,e){let n=e(r.length*2,2)>>>0;return mt().set(r,n/2),p=r.length,n}function R(r,e){let n=e(r.length*4,4)>>>0;return ht().set(r,n/4),p=r.length,n}function l(r,e){let n=e(r.length*1,1)>>>0;return B().set(r,n/1),p=r.length,n}function ot(r,e){let n=e(r.length*4,4)>>>0;return Lr().set(r,n/4),p=r.length,n}function Y(r,e){let n=e(r.length*8,8)>>>0;return yt().set(r,n/8),p=r.length,n}function y(r,e,n){if(n===void 0){let d=$.encode(r),s=e(d.length,1)>>>0;return B().subarray(s,s+d.length).set(d),p=d.length,s}let o=r.length,a=e(o,1)>>>0,c=B(),i=0;for(;i<o;i++){let d=r.charCodeAt(i);if(d>127)break;c[a+i]=d}if(i!==o){i!==0&&(r=r.slice(i)),a=n(a,o,o=i+r.length*3,1)>>>0;let d=B().subarray(a+i,a+o),s=$.encodeInto(r,d);i+=s.written,a=n(a,o,i,1)>>>0}return p=i,a}function w(r){let e=A(r);return Sr(r),e}var _t=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});_t.decode();var Dr=2146435072,pt=0;function Ur(r,e){return pt+=e,pt>=Dr&&(_t=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),_t.decode(),pt=e),_t.decode(B().subarray(r,r+e))}var $=new TextEncoder;"encodeInto"in $||($.encodeInto=function(r,e){let n=$.encode(r);return e.set(n),{read:r.length,written:n.length}});var p=0,jr,Pr,t;function kt(r,e){return Pr=r,t=r.exports,jr=e,j=null,N=null,H=null,G=null,V=null,K=null,t}async function Br(r,e){if(typeof Response=="function"&&r instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(r,e)}catch(a){if(r.ok&&n(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",a);else throw a}let o=await r.arrayBuffer();return await WebAssembly.instantiate(o,e)}else{let o=await WebAssembly.instantiate(r,e);return o instanceof WebAssembly.Instance?{instance:o,module:r}:o}function n(o){switch(o){case"basic":case"cors":case"default":return!0}return!1}}function Cr(r){if(t!==void 0)return t;r!==void 0&&(Object.getPrototypeOf(r)===Object.prototype?{module:r}=r:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let e=It();r instanceof WebAssembly.Module||(r=new WebAssembly.Module(r));let n=new WebAssembly.Instance(r,e);return kt(n,r)}async function rt(r){if(t!==void 0)return t;r!==void 0&&(Object.getPrototypeOf(r)===Object.prototype?{module_or_path:r}=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 e=It();(typeof r=="string"||typeof Request=="function"&&r instanceof Request||typeof URL=="function"&&r instanceof URL)&&(r=fetch(r));let{instance:n,module:o}=await Br(await r,e);return kt(n,o)}var Hr=import.meta.env?.VITE_TE_WORKSPACE==="1";var Gr=!0,Vr=import.meta.env?.MODE==="development"?["conform.tools","localhost"]:["conform.tools"];var ut=null,qr=!1;function Nr(r){return ut||(ut=(async()=>{if(r!==void 0)return rt(r);if(typeof process<"u"&&process.versions?.node){let n="node:fs/promises",{readFile:o}=await import(n),a=await o(new URL("./wasm/media_core_bg.wasm",import.meta.url));return rt({module_or_path:a})}let{default:e}=await import("./media_core_bg-FDL7GJZP.js");return rt({module_or_path:e})})().then(e=>(qr=!0,e))),ut}function Jr(){return Nr()}export{et as a,Wt as b,Rt as c,Dt as d,Xt as e,Jt as f,Qt as g,te as h,_e as i,oe as j,ie as k,ae as l,ce as m,de as n,se as o,ge as p,we as q,fe as r,xe as s,ve as t,ye as u,me as v,he as w,ke as x,Ae as y,Me as z,Te as A,We as B,Fe as C,Se as D,Re as E,Le as F,ze as G,De as H,je as I,Be as J,qe as K,Ne as L,He as M,Ge as N,Ve as O,Ke as P,Xe as Q,Ye as R,$e as S,an as T,gn as U,ln as V,vn as W,In as X,yn as Y,mn as Z,hn as _,kn as $,An as aa,Mn as ba,En as ca,On as da,Wn as ea,Sn as fa,Rn as ga,Ln as ha,zn as ia,Dn as ja,Un as ka,Bn as la,Cn as ma,qn as na,Nn as oa,Vn as pa,Xn as qa,Jn as ra,Qn as sa,Zn as ta,er as ua,rr as va,_r as wa,cr as xa,dr as ya,sr as za,mr as Aa,kr as Ba,Tr as Ca,Or as Da,At as Ea,Gr as Fa,Jr as Ga};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
|
|
3
|
+
function a(e){if(e.length<8)return null;let t=new DataView(e.buffer,e.byteOffset,e.byteLength),n=t.getUint32(0,!0),r=t.getUint32(4,!0),u=n*r*4;return e.length<8+u?null:{width:n,height:r,rgba:new Uint8ClampedArray(e.subarray(8,8+u))}}function i(e,t){let n=e[t];return typeof n=="function"?n:void 0}export{a,i as b};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
|
|
3
|
+
import{d as K,g as pt}from"./chunk-5RSNFPED.js";import{a as j}from"./chunk-3OCQA33E.js";import{I as gt,Y as y,k as R,v as S,x as T,y as P}from"./chunk-PLRB2YXJ.js";import{createHash as Yt}from"node:crypto";import{open as qt}from"node:fs/promises";var Dt=new Uint16Array(256);for(let e=0;e<256;e++){let t=0,n=e<<8;for(let r=0;r<8;r++)(t^n)&32768?t=t<<1^4129:t=t<<1,n=n<<1;Dt[e]=t&65535}var Q=0,mt=2;var ee=Date.UTC(2020,0,1,0,0,0);function yt(e,t,n,r,o,s,i,a,g,c,u,_,p,w,d,b){let F=z(o,l.__wbindgen_export3,l.__wbindgen_export4),A=x,v=nt(i,l.__wbindgen_export3),W=x,Ot=l.udf_add_file_stream(f(e),f(t),f(n),f(r),F,A,s,v,W,a,g,c,u,_,p,w,d,b);return M(Ot)}function re(e,t,n,r){let o,s;try{let p=l.__wbindgen_add_to_stack_pointer(-16),w=z(e,l.__wbindgen_export3,l.__wbindgen_export4),d=x,b=z(t,l.__wbindgen_export3,l.__wbindgen_export4),F=x,A=z(n,l.__wbindgen_export3,l.__wbindgen_export4),v=x;l.udf_build_layout(p,w,d,b,F,A,v,r);var i=h().getInt32(p+0,!0),a=h().getInt32(p+4,!0),g=h().getInt32(p+8,!0),c=h().getInt32(p+12,!0),u=i,_=a;if(c)throw u=0,_=0,M(g);return o=u,s=_,C(u,_)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_export5(o,s,1)}}function ht(e,t,n,r,o,s,i){let a=z(o,l.__wbindgen_export3,l.__wbindgen_export4),g=x,c=nt(i,l.__wbindgen_export3),u=x,_=l.udf_fill_sparse_stream(f(e),f(t),f(n),f(r),a,g,s,c,u);return M(_)}function oe(){let e,t;try{let o=l.__wbindgen_add_to_stack_pointer(-16);l.udf_last_panic(o);var n=h().getInt32(o+0,!0),r=h().getInt32(o+4,!0);return e=n,t=r,C(n,r)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_export5(e,t,1)}}function xt(e,t){let n=l.udf_parse_stream(f(e),f(t));return M(n)}function ie(e){let t,n;try{let s=l.__wbindgen_add_to_stack_pointer(-16),i=nt(e,l.__wbindgen_export3),a=x;l.udf_read_conform_iuvd(s,i,a);var r=h().getInt32(s+0,!0),o=h().getInt32(s+4,!0);return t=r,n=o,C(r,o)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_export5(t,n,1)}}function Mt(){return{__proto__:null,"./udf_bg.js":{__proto__:null,__wbg___wbindgen_is_function_acc5528be2b923f2:function(t){return typeof m(t)=="function"},__wbg___wbindgen_is_undefined_721f8decd50c87a3:function(t){return m(t)===void 0},__wbg___wbindgen_number_get_1cc01dd708740256:function(t,n){let r=m(n),o=typeof r=="number"?r:void 0;h().setFloat64(t+8,O(o)?0:o,!0),h().setInt32(t+0,!O(o),!0)},__wbg___wbindgen_throw_ea4887a5f8f9a9db:function(t,n){throw new Error(C(t,n))},__wbg__wbg_cb_unref_33c39e13d73b25f6:function(t){m(t)._wbg_cb_unref()},__wbg_call_0e855b388e315e17:function(){return tt(function(t,n,r,o){let s=m(t).call(m(n),m(r),m(o));return f(s)},arguments)},__wbg_call_5575218572ead796:function(){return tt(function(t,n,r){let o=m(t).call(m(n),m(r));return f(o)},arguments)},__wbg_call_8e98ed2f3c86c4b5:function(){return tt(function(t,n){let r=m(t).call(m(n));return f(r)},arguments)},__wbg_error_2b5d73c4c4804cfd:function(t,n){console.error(C(t,n))},__wbg_length_589238bdcf171f0e:function(t){return m(t).length},__wbg_new_81880fb5002cb255:function(t){let n=new Uint8Array(m(t));return f(n)},__wbg_new_from_slice_543b875b27789a8f:function(t,n){let r=new Uint8Array(bt(t,n));return f(r)},__wbg_new_no_args_2d7333de60de5ac7:function(t,n){let r=new Function(C(t,n));return f(r)},__wbg_new_typed_00a409eb4ec4f2d9:function(t,n){try{var r={a:t,b:n},o=(i,a)=>{let g=r.a;r.a=0;try{return jt(g,r.b,i,a)}finally{r.a=g}};let s=new Promise(o);return f(s)}finally{r.a=0}},__wbg_prototypesetcall_d721637c7ca66eb8:function(t,n,r){Uint8Array.prototype.set.call(bt(t,n),m(r))},__wbg_queueMicrotask_1c9b3800e321a967:function(t){let n=m(t).queueMicrotask;return f(n)},__wbg_queueMicrotask_311744e534a929a3:function(t){queueMicrotask(m(t))},__wbg_resolve_d82363d90af6928a:function(t){let n=Promise.resolve(m(t));return f(n)},__wbg_static_accessor_GLOBAL_THIS_2fee5048bcca5938:function(){let t=typeof globalThis>"u"?null:globalThis;return O(t)?0:f(t)},__wbg_static_accessor_GLOBAL_ce44e66a4935da8c:function(){let t=typeof global>"u"?null:global;return O(t)?0:f(t)},__wbg_static_accessor_SELF_44f6e0cb5e67cdad:function(){let t=typeof self>"u"?null:self;return O(t)?0:f(t)},__wbg_static_accessor_WINDOW_168f178805d978fe:function(){let t=typeof window>"u"?null:window;return O(t)?0:f(t)},__wbg_then_05edfc8a4fea5106:function(t,n,r){let o=m(t).then(m(n),m(r));return f(o)},__wbg_then_591b6b3a75ee817a:function(t,n){let r=m(t).then(m(n));return f(r)},__wbindgen_cast_0000000000000001:function(t,n){let r=Nt(t,n,Lt);return f(r)},__wbindgen_cast_0000000000000002:function(t){return f(t)},__wbindgen_cast_0000000000000003:function(t,n){let r=C(t,n);return f(r)},__wbindgen_object_clone_ref:function(t){let n=m(t);return f(n)},__wbindgen_object_drop_ref:function(t){M(t)}}}}function Lt(e,t,n){try{let s=l.__wbindgen_add_to_stack_pointer(-16);l.__wasm_bindgen_func_elem_252(s,e,t,f(n));var r=h().getInt32(s+0,!0),o=h().getInt32(s+4,!0);if(o)throw M(r)}finally{l.__wbindgen_add_to_stack_pointer(16)}}function jt(e,t,n,r){l.__wasm_bindgen_func_elem_266(e,t,f(n),f(r))}function f(e){N===E.length&&E.push(E.length+1);let t=N;return N=E[t],E[t]=e,t}var wt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>l.__wbindgen_export2(e.a,e.b));function $t(e){e<1028||(E[e]=N,N=e)}function bt(e,t){return e=e>>>0,D().subarray(e/1,e/1+t)}var U=null;function h(){return(U===null||U.buffer.detached===!0||U.buffer.detached===void 0&&U.buffer!==l.memory.buffer)&&(U=new DataView(l.memory.buffer)),U}function C(e,t){return Bt(e>>>0,t)}var $=null;function D(){return($===null||$.byteLength===0)&&($=new Uint8Array(l.memory.buffer)),$}function m(e){return E[e]}function tt(e,t){try{return e.apply(this,t)}catch(n){l.__wbindgen_export(f(n))}}var E=new Array(1024).fill(void 0);E.push(void 0,null,!0,!1);var N=E.length;function O(e){return e==null}function Nt(e,t,n){let r={a:e,b:t,cnt:1},o=(...s)=>{r.cnt++;let i=r.a;r.a=0;try{return n(i,r.b,...s)}finally{r.a=i,o._wbg_cb_unref()}};return o._wbg_cb_unref=()=>{--r.cnt===0&&(l.__wbindgen_export2(r.a,r.b),r.a=0,wt.unregister(r))},wt.register(o,r,r),o}function nt(e,t){let n=t(e.length*1,1)>>>0;return D().set(e,n/1),x=e.length,n}function z(e,t,n){if(n===void 0){let a=B.encode(e),g=t(a.length,1)>>>0;return D().subarray(g,g+a.length).set(a),x=a.length,g}let r=e.length,o=t(r,1)>>>0,s=D(),i=0;for(;i<r;i++){let a=e.charCodeAt(i);if(a>127)break;s[o+i]=a}if(i!==r){i!==0&&(e=e.slice(i)),o=n(o,r,r=i+e.length*3,1)>>>0;let a=D().subarray(o+i,o+r),g=B.encodeInto(e,a);i+=g.written,o=n(o,r,i,1)>>>0}return x=i,o}function M(e){let t=m(e);return $t(e),t}var H=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});H.decode();var zt=2146435072,et=0;function Bt(e,t){return et+=t,et>=zt&&(H=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),H.decode(),et=t),H.decode(D().subarray(e,e+t))}var B=new TextEncoder;"encodeInto"in B||(B.encodeInto=function(e,t){let n=B.encode(e);return t.set(n),{read:e.length,written:n.length}});var x=0,Wt,Ht,l;function Gt(e,t){return Ht=e,l=e.exports,Wt=t,U=null,$=null,l.__wbindgen_start(),l}async function Jt(e,t){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,t)}catch(o){if(e.ok&&n(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",o);else throw o}let r=await e.arrayBuffer();return await WebAssembly.instantiate(r,t)}else{let r=await WebAssembly.instantiate(e,t);return r instanceof WebAssembly.Instance?{instance:r,module:e}:r}function n(r){switch(r){case"basic":case"cors":case"default":return!0}return!1}}async function G(e){if(l!==void 0)return l;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("udf_bg.wasm",import.meta.url));let t=Mt();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));let{instance:n,module:r}=await Jt(await e,t);return Gt(n,r)}var rt=null;function Vt(e){return rt||(rt=(async()=>{if(e!==void 0)return G(e);if(typeof process<"u"&&process.versions?.node){let n="node:fs/promises",{readFile:r}=await import(n),o=await r(new URL("./wasm/udf_bg.wasm",import.meta.url));return G({module_or_path:o})}let{default:t}=await import("./udf_bg-B37GKRIH.js");return G({module_or_path:t})})()),rt}function J(){return Vt()}function V(e){return(t,n)=>e.read(t,n)}function ot(e){return(t,n)=>e.write(t,n)}function X(e){return()=>e.getSize()}function it(e){return t=>e.setSize?e.setSize(t):Promise.resolve()}async function St(e){await J();let t=JSON.parse(await xt(V(e),X(e)));if(t.error)throw new Error(t.error);let n=null;if(t.iuvdPayload)try{n=JSON.parse(t.iuvdPayload)}catch{}let r=null,o=t.files.find(s=>s.name===".i2o-manifest.json");if(o&&o.extents.length>0&&o.extents[0].type===Q){let s=o.extents[0].position,i=await e.read((t.partitionStartSector+s)*2048,o.totalSize);try{r=JSON.parse(new TextDecoder().decode(i))}catch{}}return{totalSectors:t.totalSectors,partitionStartSector:t.partitionStartSector,partitionLength:t.partitionLength,volumeName:t.volumeName,files:t.files,manifest:r,iuvdPayload:n,rootIcbSector:t.rootIcbSector,rootDataSector:t.rootDataSector,rootDataLength:t.rootDataLength,rootDataSectors:t.rootDataSectors,vdsStartSector:t.vdsStartSector,partitionDescVdsSector:t.partitionDescVdsSector}}function pe(e){let t=[],n=0;for(let r of e.extents)r.type===mt&&t.push({offset:n,length:r.length}),n+=r.length;return t}function It(e){let t=[],n=0;for(let r of e.extents)r.type===Q&&t.push({offset:n,length:r.length,imageSector:r.position}),n+=r.length;return t}async function me(e,t,n,r,o){return await J(),await ht(V(e),ot(e),X(e),it(e),n,r,o),St(e)}async function we(e,t,n,r,o,s=0){await J();let i=new Date,a=!!(o&&o.length>0);return await yt(V(e),ot(e),X(e),it(e),n,r,a?o:new Uint8Array(0),a,s,i.getFullYear(),i.getMonth()+1,i.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),-i.getTimezoneOffset()),St(e)}var Y=1<<20,k=5*Y,At=5*1024*Y,st=1e4,at=8*Y,Zt=2048;function Ie(e,t,n=Math.max(16*Y,Math.ceil(e/(st-500)))){let r=[...t].filter(c=>c.len>0).sort((c,u)=>c.at-u.at),o=[];for(let c of r){let u=o[o.length-1];u&&c.at<u.at+u.len||(u&&u.at+u.len===c.at&&u.key===c.key&&u.offset+u.len===c.offset?u.len+=c.len:o.push({...c}))}let s=[],i=0;for(let c of o.filter(u=>u.len>=k))c.at>i&&s.push({at:i,len:c.at-i}),s.push({at:c.at,len:c.len,copy:c}),i=c.at+c.len;i<e&&s.push({at:i,len:e-i});let a=c=>c.reduce((u,_)=>{let p=u[u.length-1];return p&&!p.copy&&!_.copy?p.len+=_.len:u.push({..._}),u},[]);for(let c=!0;c;){c=!1,s=a(s);for(let u=0;u<s.length-1;u++){let _=s[u];if(_.len>=k)continue;let p=k-_.len,w=s[u+1],d=s[u-1];if(_.copy){delete _.copy,c=!0;break}w?.copy&&w.len-p>=k?(_.len+=p,w.at+=p,w.len-=p,w.copy={...w.copy,at:w.at,len:w.len,offset:w.copy.offset+p}):d?.copy&&d.len-p>=k?(d.len-=p,d.copy={...d.copy,len:d.len},_.at-=p,_.len+=p):w?.copy?delete w.copy:d?.copy&&delete d.copy,c=!0;break}}let g=[];for(let c of s){let u=c.copy?Math.min(At,Math.max(n,k)):n;for(let _=c.at,p=c.at+c.len;_<p;){let w=Math.min(u,p-_);p-(_+w)>0&&p-(_+w)<k&&(w=p-_<=At?p-_:w-k),g.push(c.copy?{kind:"copy",at:_,len:w,key:c.copy.key,offset:c.copy.offset+(_-c.at)}:{kind:"upload",at:_,len:w}),_+=w}}if(g.length>st)throw new Error(`the image needs ${g.length} pieces (S3 allows ${st})`);return g}function Ae(e,t,n,r){let o=[...r].sort((a,g)=>a.offset-g.offset),s=[],i=0;for(let a of o){let g=Math.min(a.offset,t);g>i&&s.push({at:i,len:g-i,key:e,offset:i}),i=Math.max(i,a.offset+a.length)}return i<Math.min(t,n)&&s.push({at:i,len:Math.min(t,n)-i,key:e,offset:i}),s}async function Ee(e,t,n,r,o){let s=[];for(let i of t.files)for(let a of It(i)){let g=(t.partitionStartSector+a.imageSector)*Zt;for(let c=a.offset;c<a.offset+a.length;){let u=Math.min(a.offset+a.length,(Math.floor(c/at)+1)*at),_=g+(c-a.offset);s.push(o?.(_,u-c)??[Yt("sha256").update(await e.read(_,u-c)).digest("hex"),_,u-c]),r?.(u-c),c=u}}return{v:1,block:at,size:n,blocks:s}}function ve(e,t){let n=new Map;for(let o of t)for(let[s,i,a]of o.index.blocks)n.set(`${s}:${a}`,{key:o.key,offset:i});let r=[];for(let[o,s,i]of e.blocks){let a=n.get(`${o}:${i}`);a&&r.push({at:s,len:i,key:a.key,offset:a.offset})}return r}var Et=(e,t)=>`${K().supabaseUrl}/functions/v1/${e}${t}`;async function ut(e,t,n={}){let r=await pt();if(!r)throw new Error("not signed in to conform.tools \u2014 run account_login");let o=await fetch(Et(e,t),{method:n.method??(n.body?"POST":"GET"),headers:{authorization:`Bearer ${r}`,apikey:K().anonKey,...n.body?{"content-type":"application/json"}:{}},...n.body?{body:JSON.stringify(n.body)}:{},signal:AbortSignal.timeout(2e4)}),s=await o.text();if(!o.ok){let i=s;try{let a=JSON.parse(s);i=a.error?.message??a.message??a.error??s}catch{}throw o.status===404&&/Requested function was not found/i.test(String(i))?new Error(`${e} isn't deployed on ${new URL(Et(e,t)).host}: this server doesn't have that feature yet (an older server, or a staging/production mismatch)`):new Error(`${n.method??"GET"} ${t}: ${o.status} ${i}`)}return s?JSON.parse(s):{}}function Te(e,t="org"){let n=`/v1/sessions/${e}/storage/multipart`,r=(o,s,i)=>ut("v1-sessions",o,{body:s,method:i});return{start:async o=>String((await r(`${n}/start`,{key:o,content_type:"application/x-iso9660-image"})).upload_id),partUrls:async(o,s,i,a)=>(await r(`${n}/${s}/part-urls`,{key:o,first_part:i,count:a})).parts,copyPart:async(o,s,i,a)=>String((await r(`${n}/${s}/copy-part`,{key:o,part_number:i,source_ref:{scheme:t,bucket:"i2o",key:a.key},byte_range:{offset:a.offset,length:a.length}})).etag),complete:async(o,s,i)=>{await r(`${n}/${s}/complete`,{key:o,parts:i})},abort:async(o,s)=>{await r(`${n}/${encodeURIComponent(s)}?key=${encodeURIComponent(o)}`,void 0,"DELETE")},readUrl:async o=>String((await r(`/v1/sessions/${e}/download-url`,{storage_path:o})).download_url)}}async function ct(e,t,n=4){for(let r=1;;r++)try{return await t()}catch(o){if(r>=n)throw new Error(`${e} failed after ${n} tries: ${o instanceof Error?o.message:o}`);await new Promise(s=>setTimeout(s,500*2**r))}}async function Pe(e,t,n,r,o={}){let s=o.fetchFn??fetch,i=await e.start(t),a=n.reduce((d,b)=>d+b.len,0),g=new Array(n.length),c=0,u=0,_=new Map,p=async d=>(_.has(d)||(await e.partUrls(t,i,d+1,Math.min(100,n.length-d))).forEach((F,A)=>_.set(d+A,F)),_.get(d)),w=async d=>{let b=n[d];if(b.kind==="copy")g[d]=await ct(`copy piece ${d+1}`,()=>e.copyPart(t,i,d+1,{key:b.key,offset:b.offset,length:b.len}));else{let F=await r(b.at,b.len);g[d]=await ct(`upload piece ${d+1}`,async()=>{let A=await p(d),v=await s(A.upload_url,{method:A.method,headers:A.headers,body:F,signal:o.signal});if(!v.ok)throw _.delete(d),new Error(`${v.status} ${(await v.text()).slice(0,200)}`);let W=v.headers.get("etag");if(!W)throw new Error("the bucket returned no ETag (expose it in the bucket's CORS / response headers)");return W})}c+=b.len,o.onProgress?.(c,a)};try{await Promise.all(Array.from({length:Math.min(6,n.length)},async()=>{for(;u<n.length;)o.signal?.throwIfAborted(),await w(u++)})),await ct("complete",()=>e.complete(t,i,g.map((d,b)=>({part_number:b+1,etag:d}))))}catch(d){throw await e.abort(t,i).catch(()=>{}),d}return{uploaded:n.filter(d=>d.kind==="upload").reduce((d,b)=>d+b.len,0),copied:n.filter(d=>d.kind==="copy").reduce((d,b)=>d+b.len,0),pieces:n.length}}function ke(e){let t=qt(e,"r");return{read:async(n,r)=>{let o=new Uint8Array(r);return await(await t).read(o,0,r,n),o},close:async()=>{await(await t).close()}}}var ft="local",Tt=/^[A-Za-z0-9_-]{1,64}$/,I=e=>{if(!Tt.test(e))throw new j("invalid_args",`bad project_id '${e}'`);return y(R(),"projects",e)},lt=(e,t={})=>ut("v1-projects",e,t),Pt=e=>Number(/: (\d{3}) /.exec(String(e?.message))?.[1]??0);async function kt(e){let t="",n={base:null,by:null};try{t=await S(y(I(e),"CONTEXT.md"))}catch{}try{n=JSON.parse(await S(y(I(e),"context.json")))}catch{}return{text:t,meta:n}}async function dt(e,t,n){await P(I(e)),await T(y(I(e),"CONTEXT.md"),t),await T(y(I(e),"context.json"),JSON.stringify(n))}var _t=async(e,t)=>(await dt(e,t.context,{base:t.context_updated_at,by:t.context_updated_by_name??null}),{text:t.context,updated_at:t.context_updated_at,updated_by:t.context_updated_by_name??null});async function De(e){I(e);let t=await kt(e);if(e===ft)return{text:t.text,updated_at:null,updated_by:null};if(t.meta.pending)try{return await vt(e,t.text,t.meta.base)}catch(n){if(!(n instanceof j&&n.code==="context_conflict"))return{text:t.text,updated_at:t.meta.base,updated_by:t.meta.by,offline:!0,pending:!0};let r=n.data?.current??{context:"",context_updated_at:null},o=`${r.context.trimEnd()}
|
|
4
|
+
|
|
5
|
+
## Saved offline on this machine (merge into the notes above)
|
|
6
|
+
|
|
7
|
+
${t.text.trim()}
|
|
8
|
+
`;return await vt(e,o,r.context_updated_at).catch(()=>_t(e,r))}try{return await _t(e,(await lt(`/v1/projects/${e}`)).project)}catch(n){if(Pt(n))throw n;return{text:t.text,updated_at:t.meta.base,updated_by:t.meta.by,offline:!0}}}async function vt(e,t,n){if(I(e),e===ft)return await dt(e,t,{base:null,by:null}),{text:t,updated_at:null,updated_by:null};let r=await kt(e),o=n===void 0?r.meta.base:n;try{return await _t(e,(await lt(`/v1/projects/${e}`,{method:"PATCH",body:{context:t,context_base:o}})).project)}catch(s){let i=Pt(s);if(i===409){let a=(await lt(`/v1/projects/${e}`)).project;throw new j("context_conflict",`someone saved this project's context${a.context_updated_by_name?` (${a.context_updated_by_name})`:""} since it was read; read it again and save on top of theirs`,{current:a})}if(i)throw s;return await dt(e,t,{...r.meta,base:o,pending:!0}),{text:t,updated_at:o,updated_by:r.meta.by,offline:!0,pending:!0}}}var Ft=()=>y(R(),"current-project.json");async function Ut(){try{let e=JSON.parse(await S(Ft()));return e?.id?e:null}catch{return null}}async function Me(e){await P(R()),await T(Ft(),JSON.stringify(e&&e.id!==ft?e:{}))}async function Le(e,t){if(!Tt.test(t))throw new j("invalid_args",`bad session_id '${t}'`);let n=y(I(e),"sessions.json"),r=[];try{r=JSON.parse(await S(n))}catch{}await P(I(e)),await T(n,JSON.stringify([...r.filter(o=>o!==t),t]))}async function je(e){let t=new Set,n=[];try{n=JSON.parse(await S(y(I(e),"sessions.json")))}catch{}for(let r of n.toReversed())t.add(r);for(let r of await Ct().catch(()=>[]))r.project_id===e&&t.add(r.id);return[...t]}var Kt=R(),L=y(Kt,"sessions"),q=new Map,Qt=/^[0-9a-f]{8}$/;function Z(e,t){if(!Qt.test(e))throw new Error(`not a session id: ${JSON.stringify(e).slice(0,40)}`);if(t!==void 0&&!/^[a-z0-9_-]{1,32}$/.test(t))throw new Error(`bad session extra kind: ${t}`);return y(L,t===void 0?`${e}.json`:`${e}.${t}.json`)}function te(){let e=new Uint8Array(4);return crypto.getRandomValues(e),Array.from(e,t=>t.toString(16).padStart(2,"0")).join("")}async function Be(e,t,n){let r=new Date().toISOString(),o=await Ut(),s={id:te(),source_path:t,source_format:n,created_at:r,updated_at:r,history:[],...o?{project_id:o.id}:{},session:e};return q.set(s.id,s),await Rt(s),s}async function We(e){let t=q.get(e);if(t)return t;try{let n=await S(Z(e)),r=JSON.parse(n);return r.id=e,q.set(e,r),r}catch{throw new Error(`unknown session_id '${e}' \u2014 call timeline_read first, or timeline_sessions to list`)}}async function He(e,t){e.updated_at=new Date().toISOString(),e.history.push(t),q.set(e.id,e),await Rt(e)}async function Ct(){await P(L);let e=[];for await(let t of gt(L))if(!(!t.name.endsWith(".json")||t.name.split(".").length>2))try{let n=JSON.parse(await S(y(L,t.name))),{session:r,...o}=n;e.push(o)}catch{}return e.sort((t,n)=>n.updated_at.localeCompare(t.updated_at))}async function Rt(e){await P(L),await T(Z(e.id),JSON.stringify(e))}async function Ge(e,t,n){await P(L),await T(Z(e,t),JSON.stringify(n))}async function Je(e,t){try{return JSON.parse(await S(Z(e,t)))}catch{return null}}export{ee as a,re as b,oe as c,ie as d,J as e,St as f,pe as g,It as h,me as i,we as j,at as k,Ie as l,Ae as m,Ee as n,ve as o,ut as p,Te as q,Pe as r,ke as s,ft as t,De as u,vt as v,Ut as w,Me as x,Le as y,je as z,Be as A,We as B,He as C,Ct as D,Ge as E,Je as F};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
|
|
3
|
+
import{Ga as r,W as s,n as o}from"./chunk-C5IX63YF.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 V(t){return t.content_kind==="still"?!0:t.content_kind!=null?!1:k(t.source_filename)||k(t.target_url)}var U=/\[\d+-\d+\]|%0?\d*d|#{3,}/;function q(t){return t.content_kind==="still"?!1:t.bundle?.kind==="image-sequence"?!0:U.test(t.target_url??"")||U.test(t.display_name??"")}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 J(t){return{size:t.fileSize,read:(n,e)=>t.read(n,e)}}var _=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,M=(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,w=(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,g=(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 E=t=>({width:t.height,height:t.width});async function L(t){let n=await t.at(0,24);return n.length<24||n[0]!==137||g(n,1,3)!=="PNG"||g(n,12,4)!=="IHDR"?null:d(m(n,16),m(n,20))}var z=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?w(t,i):m(t,i);if(r(2)!==42)return null;let l=u(4);if(l+2>t.length)return null;let c=r(l);for(let i=0;i<c;i++){let s=l+2+i*12;if(s+12>t.length)break;if(r(s)===274)return r(s+8)}return null}async function W(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,l=2;for(;l+4<=n;){let c=await t.at(l,4);if(c.length<4)break;if(c[0]!==255){l++;continue}let i=c[1];if(i===255){l++;continue}if(i===1||i>=208&&i<=217){l+=2;continue}if(i===218)break;let s=A(c,2);if(s<2)break;if(z.has(i)){let o=await t.at(l+4,5);o.length>=5&&(u=d(A(o,3),A(o,1)));break}if(i===225){let o=await t.at(l+4,Math.min(s-2,65536));o.length>6&&g(o,0,4)==="Exif"&&(r=O(o.subarray(6))??1)}l+=2+s}return u?r>=5&&r<=8?E(u):u:null}async function C(t){let n=await t.at(0,10);return n.length<10||g(n,0,3)!=="GIF"?null:d(b(n,6),b(n,8))}async function I(t){let n=await t.at(0,26);return n.length<22||g(n,0,2)!=="BM"?null:w(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 j(t){let n=await t.at(0,30);if(n.length<16||g(n,0,4)!=="RIFF"||g(n,8,4)!=="WEBP")return null;let e=g(n,12,4);if(e==="VP8X")return n.length<30?null:d(M(n,24)+1,M(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=w(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 x=await t.at(f,16);if(x.length<8)return;let a=m(x,0),h=g(x,4,4),y=8;if(a===1){if(x.length<16)return;a=m(x,8)*2**32+m(x,12),y=16}else a===0&&(a=s-f);if(a<y||f+a>s)return;if(h==="meta")await u(f+y+4,f+a,o+1);else if(h==="iprp"||h==="ipco")await u(f+y,f+a,o+1);else if(h==="ispe"){let p=await t.at(f+y+4,8);if(p.length===8){let R=d(m(p,0),m(p,4));R&&e.push(R)}}else if(h==="irot"){let p=await t.at(f+y,1);p.length===1&&(r=p[0]&3)}f+=a}}let l=await t.at(0,12);if(l.length<12||g(l,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?E(c):c}async function N(t){let n=await t.at(0,22);return n.length<22||g(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 v(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=(a,h)=>e?b(a,h):A(a,h),l=(a,h)=>e?w(a,h):m(a,h);if(u(n,2)!==42)return null;let c=l(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,x=0;for(let a=0;a<s;a++){let h=a*12;if(h+12>o.length)break;let y=u(o,h),R=u(o,h+2)===3?u(o,h+8):l(o,h+8);y===256?f=R:y===257&&(x=R)}return d(f,x)}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 l=await t.at(r,512);if(l.length===0)return null;let c=l.indexOf(0);if(c<=0)return null;let i=g(l,0,c),s=l.subarray(c+1).indexOf(0);if(s<0)return null;let o=c+1+s+1;if(o+4>l.length)return null;let f=w(l,o),x=r+o+4;if(i==="dataWindow"){if(f<16)return null;let a=await t.at(x,16);return a.length<16?null:d(P(a,8)-P(a,0)+1,P(a,12)-P(a,4)+1)}r=x+f}return null}async function G(t){let n=await t.at(0,4);if(n.length<4)return null;let e=g(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):w(u,0),r?m(u,4):w(u,4))}var H={png:L,jpg:W,jpeg:W,gif:C,bmp:I,webp:j,avif:S,heic:S,heif:S,psd:N,tga:X,tif:v,tiff:v,exr:D,dpx:G};async function K(t,n){let e=H[(t??"").toLowerCase()];if(!e)return null;try{return await e(new _(n),n.size)}catch{return null}}export{B as a,k as b,V as c,q as d,Y as e,J as f,K as g};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
|
|
3
|
+
import{c as r,d as n}from"./chunk-P7OVDUA5.js";import{i as t}from"./chunk-XNR7M4VX.js";async function d(e){if(!r(e.name))return null;try{return await t(n(e),{verb:"inspect"})}catch(i){return console.warn(`[probeMedia] ${e.name} probe failed:`,i),null}}export{d as a};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
|
|
3
|
+
import{A as d,Y as f,k as u,v as c,x as l,y as p}from"./chunk-PLRB2YXJ.js";import o from"node:process";import{readFileSync as y,rmSync as g}from"node:fs";import{createConnection as h}from"node:net";var w=new Set(["tool_run","app","tool"]),s=()=>f(u(),"engine.json");async function k(e,r){await p(u()),await l(s(),JSON.stringify({port:e,token:r||void 0,pid:o.pid})),await d(s(),384);for(let t of["SIGINT","SIGTERM"])o.on(t,()=>o.exit(0));o.on("exit",()=>{try{JSON.parse(y(s(),"utf8")).pid===o.pid&&g(s())}catch{}})}function S(e,r=1500){return new Promise(t=>{let n=h({host:"127.0.0.1",port:e}),i=m=>{clearTimeout(a),n.destroy(),t(m)},a=setTimeout(()=>i(!1),r);n.once("connect",()=>i(!0)).once("error",()=>i(!1))})}async function I(e,r){if(!w.has(e))return null;let t;try{t=JSON.parse(await c(s()))}catch{return null}if(t.pid===o.pid||!await S(t.port))return null;let n;try{n=await fetch(`http://127.0.0.1:${t.port}/verbs/${e}`,{method:"POST",body:JSON.stringify(r),headers:{"content-type":"application/json",...t.token?{authorization:`Bearer ${t.token}`}:{}}})}catch{return null}if(n.status===401||n.status===404)return null;let{text:i,...a}=await n.json();return{content:[{type:"text",text:i??""}],structuredContent:a,isError:!n.ok}}export{k as a,I 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
|
+
import{a as m,b as l}from"./chunk-DKGGJM6Z.js";import{Ea as u,Ga as n,Z as c,r as s}from"./chunk-C5IX63YF.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};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
|
|
3
|
+
function f(n){let r=n>0?Math.round(n):0;return Math.max(r,1)}function c(n,r){let e=f(n);return r&&(e===30||e===60)}var x=n=>Math.floor(n/15),g=(n,r)=>(n%r+r)%r,l=(n,r)=>Math.floor(n/r);function M(n,r,e){let t=f(r),o=g(Math.round(Number.isFinite(n)?n:0),t*3600*24);if(c(r,e)){let u=x(t),s=t*60-u,m=t*600-u*9,a=l(o,m),p=o%m,d=o+u*9*a;p>u&&(d+=u*l(p-u,s)),o=d}return[l(o,t*3600)%24,l(o,t*60)%60,l(o,t)%60,o%t]}var b=n=>String(n).padStart(2,"0");function T(n,r,e=!1){let[t,o,u,s]=M(n,r,e),m=c(r,e)?";":":";return`${b(t)}:${b(o)}:${b(u)}${m}${b(s)}`}function $(n){let r=n.split(/[:;]/).map(e=>e.trim());return r.length!==4||!r.every(e=>/^[+-]?\d+$/.test(e))?null:r.map(Number)}function F([n,r,e,t],o,u){let s=f(o),m=((n*60+r)*60+e)*s+t;if(!c(o,u))return m;let a=n*60+r;return m-x(s)*(a-Math.trunc(a/10))}function h(n){return!!n&&n.includes(";")}function i(n,r,e=h(n)){if(!n)return null;let t=$(n);return t?F(t,r,e):null}function H(n,r){let e=i(n,r);return e==null?null:{frames:e,drop:h(n)}}function w(n,r,e){if(typeof n=="number")return n;if(/^\d+$/.test(n.trim()))return parseInt(n,10);let t=i(n,r);if(t==null)throw new Error(`cannot parse timecode '${n}' at ${r} fps`);let o=e?i(e,r)??0:0;return t-o}export{c as a,T as b,h as c,i as d,H as e,w as f};
|