PageSourceSearch

https://ffmpegwasm.netlify.app/assets/js/ccc49370.2b3cfb45.js

js ffmpegwasm.netlify.app collected 2026-10-03 10:45:13 UTC 10,477 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[6103],{1385:(e,t,n)=>{n.d(t,{Z:()=>o});var a=n(2784),r=n(8235),s=n(8579);const o={React:a,...a,FFmpeg:r.Cy,fetchFile:s.dc,toBlobURL:s.Wn}},1651:(e,t,n)=>{n.r(t),n.d(t,{default:()=>p});var a=n(2784),r=n(6277),s=n(328),o=n(211),i=n(1375),l=n(3485),c=n(4646),d=n(7896),m=n(1077),E=n(7066);function u(e){const{nextItem:t,prevItem:n}=e;return a.createElement("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,m.I)({id:"theme.blog.post.paginator.navAriaLabel",message:"Blog post page navigation",description:"The ARIA label for the blog posts pagination"})},n&&a.createElement(E.Z,(0,d.Z)({},n,{subLabel:a.createElement(m.Z,{id:"theme.blog.post.paginator.newerPost",description:"The blog post button label to navigate to the newer/previous post"},"Newer Post")})),t&&a.createElement(E.Z,(0,d.Z)({},t,{subLabel:a.createElement(m.Z,{id:"theme.blog.post.paginator.olderPost",description:"The blog post button label to navigate to the older/next post"},"Older Post"),isNext:!0})))}function f(){const{assets:e,metadata:t}=(0,i.C)(),{title:n,description:r,date:o,tags:l,authors:c,frontMatter:d}=t,{keywords:m}=d,E=e.image??d.image;return a.createElement(s.d,{title:n,description:r,keywords:m,image:E},a.createElement("meta",{property:"og:type",content:"article"}),a.createElement("meta",{property:"article:published_time",content:o}),c.some((e=>e.url))&&a.createElement("meta",{property:"article:author",content:c.map((e=>e.url)).filter(Boolean).join(",")}),l.length>0&&a.createElement("meta",{property:"article:tag",content:l.map((e=>e.label)).join(",")}))}var h=n(8188);function g({sidebar:e,children:t}){const{metadata:n,toc:r}=(0,i.C)(),{nextItem:s,prevItem:o,frontMatter:d}=n,{hide_table_of_contents:m,toc_min_heading_level:E,toc_max_heading_level:f}=d;return a.createElement(l.Z,{sidebar:e,toc:!m&&r.length>0?a.createElement(h.Z,{toc:r,minHeadingLevel:E,maxHeadingLevel:f}):void 0},a.createElement(c.Z,null,t),(s||o)&&a.createElement(u,{nextItem:s,prevItem:o}))}function p(e){const t=e.content;return a.createElement(i.n,{content:e.content,isBlogPostPage:!0},a.createElement(s.FG,{className:(0,r.Z)(o.k.wrapper.blogPages,o.k.page.blogPostPage)},a.createElement(f,null),a.createElement(g,{sidebar:e.sidebar},a.createElement(t,null))))}}
1,8188:(e,t,n)=>{n.d(t,{Z:()=>d});var a=n(7896),r=n(2784),s=n(6277),o=n(6986);const i={tableOfContents:"tableOfContents_TN1Q",docItemContainer:"docItemContainer_JtJJ"},l="table-of-contents__link toc-highlight",c="table-of-contents__link--active";function d({className:e,...t}){return r.createElement("div",{className:(0,s.Z)(i.tableOfContents,"thin-scrollbar",e)},r.createElement(o.Z,(0,a.Z)({},t,{linkClassName:l,linkActiveClassName:c})))}},6986:(e,t,n)=>{n.d(t,{Z:()=>f});var a=n(7896),r=n(2784),s=n(7683);function o(e){const t=e.map((e=>({...e,parentIndex:-1,children:[]}))),n=Array(7).fill(-1);t.forEach(((e,t)=>{const a=n.slice(2,e.level);e.parentIndex=Math.max(...a),n[e.level]=t}));const a=[];return t.forEach((e=>{const{parentIndex:n,...r}=e;n>=0?t[n].children.push(r):a.push(r)})),a}function i({toc:e,minHeadingLevel:t,maxHeadingLevel:n}){return e.flatMap((e=>{const a=i({toc:e.children,minHeadingLevel:t,maxHeadingLevel:n});return function(e){return e.level>=t&&e.level<=n}(e)?[{...e,children:a}]:a}))}function l(e){const t=e.getBoundingClientRect();return t.top===t.bottom?l(e.parentNode):t}function c(e,{anchorTopOffset:t}){const n=e.find((e=>l(e).top>=t));if(n){return function(e){return e.top>0&&e.bottom<window.innerHeight/2}(l(n))?n:e[e.indexOf(n)-1]??null}return e[e.length-1]??null}function d(){const e=(0,r.useRef)(0),{navbar:{hideOnScroll:t}}=(0,s.L)();return(0,r.useEffect)((()=>{e.current=t?0:document.querySelector(".navbar").clientHeight}),[t]),e}function m(e){const t=(0,r.useRef)(void 0),n=d();(0,r.useEffect)((()=>{if(!e)return()=>{};const{linkClassName:a,linkActiveClassName:r,minHeadingLevel:s,maxHeadingLevel:o}=e;function i(){const e=function(e){return Array.from(document.getElementsByClassName(e))}(a),i=function({minHeadingLevel:e,maxHeadingLevel:t}){const n=[];for(let a=e;a<=t;a+=1)n.push(`h${a}
1.anchor`);return Array.from(document.querySelectorAll(n.join()))}({minHeadingLevel:s,maxHeadingLevel:o}),l=c(i,{anchorTopOffset:n.current}),d=e.find((e=>l&&l.id===function(e){return decodeURIComponent(e.href.substring(e.href.indexOf("#")+1))}(e)));e.forEach((e=>{!function(e,n){n?(t.current&&t.current!==e&&t.current.classList.remove(r),e.classList.add(r),t.current=e):e.classList.remove(r)}(e,e===d)}))}return document.addEventListener("scroll",i),document.addEventListener("resize",i),i(),()=>{document.removeEventListener("scroll",i),document.removeEventListener("resize",i)}}),[e,n])}function E({toc:e,className:t,linkClassName:n,isChild:a}){return e.length?r.createElement("ul",{className:a?void 0:t},e.map((e=>r.createElement("li",{key:e.id},r.createElement("a",{href:`#${e.id}`,className:n??void 0,dangerouslySetInnerHTML:{__html:e.value}}),r.createElement(E,{isChild:!0,toc:e.children,className:t,linkClassName:n}))))):null}const u=r.memo(E);function f({toc:e,className:t="table-of-contents table-of-contents__left-border",linkClassName:n="table-of-contents__link",linkActiveClassName:l,minHeadingLevel:c,maxHeadingLevel:d,...E}){const f=(0,s.L)(),h=c??f.tableOfContents.minHeadingLevel,g=d??f.tableOfContents.maxHeadingLevel,p=function({toc:e,minHeadingLevel:t,maxHeadingLevel:n}){return(0,r.useMemo)((()=>i({toc:o(e),minHeadingLevel:t,maxHeadingLevel:n})),[e,t,n])}({toc:e,minHeadingLevel:h,maxHeadingLevel:g});return m((0,r.useMemo)((()=>{if(n&&l)return{linkClassName:n,linkActiveClassName:l,minHeadingLevel:h,maxHeadingLevel:g}}),[n,l,h,g])),r.createElement(u,(0,a.Z)({toc:p,className:t,linkClassName:n},E))}},8235:(e,t,n)=>{n.d(t,{Cy:()=>i});var a;!function(e){e.LOAD="LOAD",e.EXEC="EXEC",e.FFPROBE="FFPROBE",e.WRITE_FILE="WRITE_FILE",e.READ_FILE="READ_FILE",e.DELETE_FILE="DELETE_FILE",e.RENAME="RENAME",e.CREATE_DIR="CREATE_DIR",e.LIST_DIR="LIST_DIR",e.DELETE_DIR="DELETE_DIR",e.ERROR="ERROR",e.DOWNLOAD="DOWNLOAD",e.PROGRESS="PROGRESS",e.LOG="LOG",e.MOUNT="MOUNT",e.UNMOUNT="UNMOUNT"}(a||(a={}));const r=(()=>{let e=0;return()=>e++})(),s=(new Error("unknown message type"),new Error("ffmpeg is not loaded, call `await ffmpeg.load()` first")),o=new Error("called FFmpeg.terminate()");new Error("failed to import ffmpeg-core.js");class i{#e=null;#t={};#n={};#a=[];#r=[];loaded=!1;#s=()=>{this.#e&&(this.#e.onmessage=({data:{id:e,type:t,data:n}})=>{switch(t){case a.LOAD:this.loaded=!0,this.#t[e](n);break;case a.MOUNT:case a.UNMOUNT:case a.EXEC:case a.FFPROBE:case a.WRITE_FILE:case a.READ_FILE:case a.DELETE_FILE:case a.RENAME:case a.CREATE_DIR:case a.LIST_DIR:case a.DELETE_DIR:this.#t[e](n);break;case a.LOG:this.#a.forEach((e=>e(n)));break;case a.PROGRESS:this.#r.forEach((e=>e(n)));break;case a.ERROR:this.#n[e](n)}delete this.#t[e],delete this.#n[e]})};#o=({type:e,data:t},n=[],a)=>this.#e?new Promise(((s,o)=>{const i=r();this.#e&&this.#e.postMessage({id:i,type:e,data:t},n),this.#t[i]=s,this.#n[i]=o,a?.addEventListener("abort",(()=>{o(new DOMException(`Message # ${i} was aborted`,"AbortError"))}),{once:!0})})):Promise.reject(s);on(e,t){"log"===e?this.#a.push(t):"progress"===e&&this.#r.push(t)}off(e,t){"log"===e?this.#a=this.#a.filter((e=>e!==t)):"progress"===e&&(this.#r=this.#r.filter((e=>e!==t)))}load=({classWorkerURL:e,...t}={},{signal:r}={})=>(this.#e||(this.#e=e?new Worker(new URL(e,"file:///opt/build/repo/packages/ffmpeg/dist/esm/classes.js"),{type:"module"}):new Worker(new URL(n.p+n.u(7639),n.b),{type:void 0}),this.#s()),this.#o({type:a.LOAD,data:t},void 0,r));exec=(e,t=-1,{signal:n}={})=>this.#o({type:a.EXEC,data:{args:e,timeout:t}},void 0,n);ffprobe=(e,t=-1,{signal:n}={})=>this.#o({type:a.FFPROBE,data:{args:e,timeout:t}},void 0,n);terminate=()=>{const e=Object.keys(this.#n);for(const t of e)this.#n[t](o),delete this.#n[t],delete this.#t[t];this.#e&&(this.#e.terminate(),this.#e=null,this.loaded=!1)};writeFile=(e,t,{signal:n}={})=>{const r=[];return t instanceof Uint8Array&&r.push(t.buffer),this.#o({type:a.WRITE_FILE,data:{path:e,data:t}},r,n)};mount=(e,t,n)=>this.#o({type:a.MOUNT,data:{fsType:e,options:t,mountPoint:n}},[]);unmount=e=>this.#o({type:a.UNMOUNT,data:{mountPoint:e}},[]);readFile=(e,t="binary",{signal:n}={})=>this.#o({type:a.READ_FILE,data:{path:e,encoding:t}},void 0,n);deleteFile=(e,{signal:t}={})=>this.#o({type:a.DELETE_FILE,data:{path:e}},void 0,t);rename=(e,t,{signal:n}={})=>this.#o({type:a.RENAME,data:{oldPath:e,newPath:t}},void 0,n);createDir=(e,{signal:t}={})=>this.#o({type:a.CREATE_DIR,data:{path:e}},void 0,t);listDir=(e,{signal:t}={})=>this.#o({type:a.LIST_DIR,data:{path:e}},void 0,t);deleteDir=(e,{signal:t}={})=>this.#o({type:a.DELETE_DIR,data:{path:e}},void 0,t)}var l;!function(e){e.MEMFS="MEMFS",e.NODEFS="NODEFS",e.NODERAWFS="NODERAWFS",e.IDBFS="IDBFS",e.WORKERFS="WORKERFS",e.PROXYFS="PROXYFS"}(l||(l={}))},8579:(e,t,n)=>{n.d(t,{dc:()=>s,Wn:()=>o});const a=new Error("failed to get response body reader"),r=new Error("failed to complete download"),s=async e=>{let t;if("string"==typeof e)t=/data:_data\/([a-zA-Z]*);base64,([^"]*)/.test(e)?atob(e.split(",")[1]).split("").map((e=>e.charCodeAt(0))):await(await fetch(e)).arrayBuffer();else if(e instanceof URL)t=await(await fetch(e)).arrayBuffer();else{if(!(e instanceof File||e instanceof Blob))return new Uint8Array;t=await(n=e,new Promise(((e,t)=>{const a=new FileReader;a.onload=()=>{const{result:t}=a;t instanceof ArrayBuffer?e(new Uint8Array(t)):e(new Uint8Array)},a.onerror=e=>{t(Error(`File could not be read! Code=${e?.target?.error?.code||-1}`))},a.readAsArrayBuffer(n)})))}var n;return new Uint8Array(t)},o=async(e,t,n=!1,s)=>{const o=n?await(async(e,t)=>{const n=await fetch(e),s=n.clone();let o;try{const s=parseInt(n.headers.get("Content-Length")||"-1"),i=n.body?.getReader();if(!i)throw a;const l=[];let c=0;for(;;){const{done:n,value:a}=await i.read(),o=a?a.length:0;if(n){if(-1!=s&&s!==c)throw r;t&&t({url:e,total:s,received:c,delta:o,done:n});break}l.push(a),c+=o,t&&t({url:e,total:s,received:c,delta:o,done:n})}const d=new Uint8Array(c);let m=0;for(const e of l)d.set(e,m),m+=e.length;o=d.buffer}catch(i){console.log("failed to send download progress event: ",i),o=await s.arrayBuffer(),t&&t({url:e,total:o.byteLength,received:o.byteLength,delta:0,done:!0})}return o}
1)(e,s):await(await fetch(e)).arrayBuffer(),i=new Blob([o],{type:t});return URL.createObjectURL(i)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.