Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/wa.picotech.app/public_html/node_modules/@wasm-audio-decoders/flac/dist/ drwxr-xr-x |
Viewing file: Select action/file-type: /* Copyright 2021-2022 Ethan Halsall. This file is part of wasm-audio-decoders. https://github.com/eshaz/wasm-audio-decoders */ var t,s;t=this,s=function(t,s){function e(){const t=Uint8Array,s=Float32Array;e.t||Object.defineProperties(e,{t:{value:new WeakMap},o:{value(t,s){e.t.set(t,Promise.resolve(s))}},u:{value(t,s){let i=e.t.get(t);return i||(s?i=WebAssembly.compile(e.U(s)):(s=t.p,i=e.M(s).then((t=>WebAssembly.compile(t)))),e.t.set(t,i)),i}},T:{value(t,e){let i=new s(e),r=0,n=0;for(;r<t.length;)i.set(t[r],n),n+=t[r++].length;return i}},$:{value:(t,s,e,i,r)=>({P:t,channelData:s,samplesDecoded:e,sampleRate:i,bitDepth:r})},A:{value(t,s,i,r,n,h){let o,a,l=[];for(o=0;o<i;o++){const t=[];for(a=0;a<s.length;)t.push(s[a++][o]||[]);l.push(e.T(t,r))}return e.$(t,l,r,n,h)}},C:{value:(()=>{let t,s,e,i=new Int32Array(256);for(t=0;t<256;t++){for(e=t<<24,s=8;s>0;--s)e=2147483648&e?e<<1^79764919:e<<1;i[t]=e}return i})()},U:{value(s){let i,r,n,h=new t(s.length),o=parseInt(s.substring(11,13),16),a=256-o,l=!1,c=0,u=21,U=4294967295;for(;u<s.length;)r=s.charCodeAt(u++),61!==r||l?(l&&(l=!1,r-=64),h[c]=r<o&&r>0?r+a:r-o,U=U<<8^e.C[255&(U>>24^h[c++])]):l=!0;for(i=0;i<=8;i+=2)n|=parseInt(s.substring(13+i,15+i),16)<<4*i;if(n!==U)throw Error("WASM string decode failed crc32 validation");return h.subarray(0,c)}},M:{value(s){return s=e.U(s),new Promise((i=>{const r=String.raw`dynEncode0114db91da9bu*ttt$#U¤¤U¤¤3yzzss|yusvuyÚ&4<054<,5T44^T44<(6U~J(44< ~A544U~6J0444545 444J0444J,4U4U Ò7U454U4Z4U4U^/6545T4T44BU~64CU~O4U54U~5 U5T4B4Z!4U~5U5U5T4U~6U4ZTU5U5T44~4O4U2ZTU5T44Z!4B6T44U~64B6U~O44U~4O4U~54U~5 44~C4~54U~5 44~5454U4B6Ub!444~UO4U~5 U54U4ZTU#44U$464<4~B6^4<444~U~B4U~54U544~544~U5 µUä#UJUè#5TT4U0ZTTUX5U5T4T4Uà#~4OU4U $~C4~54U~5 T44$6U\!TTT4UaT4<6T4<64<Z!44~4N4<U~5 4UZ!4U±_TU#44UU6UÔ~B$544$6U\!4U6U¤#~B44Uä#~B$~64<6_TU#444U~B~6~54<Y!44<_!T4Y!4<64~444~AN44<U~6J4U5 44J4U[!U#44UO4U~54U~5 U54 7U6844J44J 4UJ4UJ04VK(44<J44<J$4U´~54U~5 4U¤~5!TTT4U$5"U5TTTTTTT4U$"4VK,U54<(6U~64<$6_!4< 64~6A54A544U~6#J(U54A4U[!44J(44#~A4U6UUU [!4464~64_!4<64~54<6T4<4]TU5 T4Y!44~44~AN4U~54U~54U5 44J(44J UÄA!U5U#UôJU"UÔJU#UÔ"JU#U´"JT4U´ZTU5T4UôZTU5T4UDZTU5T4U$[T44~UO4U~5 UÔUô4U~U´$.U5T4UP[T4U~4~UO4U~5 U#<U#<4U~U2$.UÄUN 44 ~UO4U~5 44!~UO4U~5 4U~4~UO4U~5 44J44J(U5 44U¤~J@44Uä~J<44UD~J844U~J44U$54U$5U54U$54U1^4U1^!4U~54U~5U54U~6U4U^/65T4T4U$54U~4BU~4O4U54U~5 UU'464U'_/54UU~5T4T4U~4BU~UO4U54U~5 U54Uä~4U¤~4U~U'$!44~5U5T44\T44U<~$6U\!4U#aT4U~4U~4O4U~5 U5U5U5TTT4U$"4YTU5 4U4~C5U5 U5U5444$4~64~\TU5 4U~4U~5T4Y!44O4U~54U~54U5 4CYTU5 4Uä~4U¤~4U~4$6TU54U\!44Bæ4Bä~[!4U~4UD~4U~4U~4$6TU54U\!44B4B~[!44U<~4U4~$5 4U"U#$544"Y!454U^!44<J44<(J454U~84UN!#%'+/37?GOWgw·×÷Uä;U9$%& !"#`;e.u(e,r).then((t=>WebAssembly.instantiate(t,{}))).then((({exports:e})=>{const r=new Map(Object.entries(e)),n=r.get("puff"),h=r.get("memory").buffer,o=new t(h),a=new DataView(h);let l=r.get("__heap_base");const c=s.length,u=l;l+=4,a.setInt32(u,c,!0);const U=l;l+=c,o.set(s,U);const d=l;l+=4,a.setInt32(d,o.byteLength-l,!0),n(l,d,U,u),i(o.slice(l,l+a.getInt32(d,!0)))}))}))}}}),Object.defineProperty(this,"p",{enumerable:!0,get:()=>this.S}),this.v=(t,s,e)=>{let i=[],r=0;for(;r<s;)i.push(t.slice(r*e,r++*e+e));return i},this.O=(t,s,e=!0)=>{const i=this.S.F(s.BYTES_PER_ELEMENT*t);return e&&this.I.add(i),{D:i,_:t,q:new s(this.S.B,i,t)}},this.free=()=>{this.I.forEach((t=>{this.S.free(t)})),this.I.clear()},this.G=t=>{const s=[],e=new Uint8Array(this.S.B);for(let i=e[t];0!==i;i=e[++t])s.push(i);return String.fromCharCode.apply(null,s)},this.J=(t,s,e,i,r,n)=>{t.push({message:s,frameLength:e,frameNumber:i,inputBytes:r,outputSamples:n})},this.instantiate=(t,s)=>(s&&e.o(t,s),this.S=new t(e).instantiate(),this.I=new Set,this.S.ready.then((()=>this)))}class i extends((()=>globalThis.Worker||s)()){constructor(t,s,i,r){e.t||new e;let n=e.t.get(i);if(!n){let t,s="text/javascript",h=`'use strict';(${""+((t,s,e)=>{let i,r,n=new Promise((t=>{r=t}));self.onmessage=({data:{id:h,command:o,data:a}})=>{let l,c=n,u={id:h};"init"===o?(Object.defineProperties(t,{V:{value:s},X:{value:e},module:{value:a.module},L:{value:!0}}),i=new t(a.options),r()):"free"===o?i.free():"ready"===o?c=c.then((()=>i.ready)):"reset"===o?c=c.then((()=>i.reset())):(Object.assign(u,i[o](Array.isArray(a)?a.map((t=>new Uint8Array(t))):new Uint8Array(a))),l=u.channelData?u.channelData.map((t=>t.buffer)):[]),c.then((()=>self.postMessage(u,l)))}})})(${i}, ${e}, ${r})`;try{t=void 0!==process.versions.node}catch{}n=t?`data:${s};base64,${Buffer.from(h).toString("base64")}`:URL.createObjectURL(new Blob([h],{type:s})),e.t.set(i,n)}super(n,{name:s}),this.N=Number.MIN_SAFE_INTEGER,this.H=new Map,this.onmessage=({data:t})=>{const{id:s,...e}=t;this.H.get(s)(e),this.H.delete(s)},new r(e).u().then((s=>{this.K("init",{module:s,options:t})}))}async K(t,s){return new Promise((e=>{this.postMessage({command:t,id:this.N,data:s}),this.H.set(this.N++,e)}))}get ready(){return this.K("ready")}async free(){await this.K("free").finally((()=>{this.terminate()}))}async reset(){await this.K("reset")}}const r=(t,s)=>{Object.defineProperty(t,"name",{value:s})},n=Symbol,h=(()=>{const t="left",s="center",e="right";return["","front ","side ","rear "].map((i=>[[t,e],[t,e,s],[t,s,e],[s,t,e],[s]].flatMap((t=>t.map((t=>i+t)).join(", ")))))})(),o="LFE",a="monophonic (mono)",l="stereo",c="surround",u=(t,...s)=>`${[a,l,"linear "+c,"quadraphonic","5.0 "+c,"5.1 "+c,"6.1 "+c,"7.1 "+c][t-1]} (${s.join(", ")})`,U=[a,u(2,h[0][0]),u(3,h[0][2]),u(4,h[1][0],h[3][0]),u(5,h[1][2],h[3][0]),u(6,h[1][2],h[3][0],o),u(7,h[1][2],h[2][0],h[3][4],o),u(8,h[1][2],h[2][0],h[3][0],o)],d=48e3,f=44100,y=32e3,p=24e3,M=22050,m=16e3,g=8e3,w="absoluteGranulePosition",b="bandwidth",T="bitDepth",$="bitrate",P=$+"Maximum",A=$+"Minimum",C=$+"Nominal",S="buffer",v=S+"Fullness",O="codec",F=O+"Frames",I="coupledStreamCount",E="crc",z=E+"16",D=E+"32",x="data",_="description",q="duration",B="emphasis",G="hasOpusPadding",J="header",V="isContinuedPacket",X="isCopyrighted",L="isFirstPage",N="isHome",k="isLastPage",H="isOriginal",K="isPrivate",Y="isVbr",R="layer",W="length",Z="mode",j=Z+"Extension",Q="mpeg",tt=Q+"Version",st="numberAACFrames",et="outputGain",it="preSkip",rt="profile",nt=n(),ht="protection",ot="segments",at="subarray",lt="version",ct="vorbis",ut=ct+"Comments",Ut=ct+"Setup",dt="block",ft=dt+"ingStrategy",yt=n(),pt=dt+"Size",Mt=dt+"size0",mt=dt+"size1",gt=n(),wt="channel",bt=wt+"MappingFamily",Tt=wt+"MappingTable",$t=wt+"Mode",Pt=n(),At=wt+"s",Ct="copyright",St=Ct+"Id",vt=Ct+"IdStart",Ot="frame",Ft=Ot+"Count",It=Ot+"Length",Et="Number",zt=Ot+Et,Dt=Ot+"Padding",xt=Ot+"Size",_t="Rate",qt="inputSample"+_t,Bt="page",Gt=Bt+"Checksum",Jt=n(),Vt=Bt+"SegmentTable",Xt=Bt+"Sequence"+Et,Lt="sample",Nt=Lt+Et,kt=Lt+_t,Ht=n(),Kt=Lt+"s",Yt="stream",Rt=Yt+"Count",Wt=Yt+"Info",Zt=Yt+"Serial"+Et,jt=Yt+"StructureVersion",Qt="total",ts=Qt+"BytesOut",ss=Qt+"Duration",es=Qt+"Samples",is=n(),rs=n(),ns=n(),hs=n(),os=n(),as=n(),ls=n(),cs=n(),us=n(),Us=n(),ds=n(),fs=n(),ys=n(),ps=n(),Ms=n(),ms=n(),gs=n(),ws=n(),bs=Uint8Array,Ts=DataView,$s="reserved",Ps="bad",As="free",Cs="none",Ss="16bit CRC",vs=(t,s,e)=>{for(let i=0;i<t[W];i++){let r=s(i);for(let t=8;t>0;t--)r=e(r);t[i]=r}return t},Os=vs(new bs(256),(t=>t),(t=>128&t?7^t<<1:t<<1)),Fs=[vs(new Uint16Array(256),(t=>t<<8),(t=>t<<1^(32768&t?32773:0)))],Is=[vs(new Uint32Array(256),(t=>t),(t=>t>>>1^3988292384*(1&t)))];for(let Ui=0;Ui<15;Ui++){Fs.push(new Uint16Array(256)),Is.push(new Uint32Array(256));for(let t=0;t<=255;t++)Fs[Ui+1][t]=Fs[0][Fs[Ui][t]>>>8]^Fs[Ui][t]<<8,Is[Ui+1][t]=Is[Ui][t]>>>8^Is[0][255&Is[Ui][t]]}const Es=t=>{const s=t[W],e=s-16;let i=0,r=0;for(;r<=e;)i=Is[15][255&(t[r++]^i)]^Is[14][255&(t[r++]^i>>>8)]^Is[13][255&(t[r++]^i>>>16)]^Is[12][t[r++]^i>>>24]^Is[11][t[r++]]^Is[10][t[r++]]^Is[9][t[r++]]^Is[8][t[r++]]^Is[7][t[r++]]^Is[6][t[r++]]^Is[5][t[r++]]^Is[4][t[r++]]^Is[3][t[r++]]^Is[2][t[r++]]^Is[1][t[r++]]^Is[0][t[r++]];for(;r!==s;)i=Is[0][255&(i^t[r++])]^i>>>8;return-1^i},zs=(...t)=>{const s=new bs(t.reduce(((t,s)=>t+s[W]),0));return t.reduce(((t,e)=>(s.set(e,t),t+e[W])),0),s},Ds=t=>String.fromCharCode(...t),xs=[0,8,4,12,2,10,6,14,1,9,5,13,3,11,7,15],_s=t=>xs[15&t]<<4|xs[t>>4];class qs{constructor(t){this.Y=t,this.R=8*t[W]}set position(t){this.R=t}get position(){return this.R}read(t){const s=Math.floor(this.R/8),e=this.R%8;return this.R-=t,(_s(this.Y[s-1])<<8)+_s(this.Y[s])>>7-e&255}}class Bs{constructor(t,s){this.W=t,this.Z=s,this[Ms]()}[ms](){this.tt=!0}[Ms](){this.st=new Map,this.et=new WeakMap,this.it=!1,this.rt=!1,this.nt=null,this.tt=!1}[ps](t,s){if(this.Z){this.nt!==t&&(this.nt=t,this.rt=!0);const e=this.et.get(this.st.get(this.ot));this.rt&&e&&this.Z({lt:t,...e},s),this.rt=!1}}[us](t){const s=this.st.get(t);return s&&this.ut(t),s}[Us](t,s,e){this.tt&&(this.it||(this.W({...s}),this.it=!0),this.ut(t),this.st.set(t,s),this.et.set(s,e))}ut(t){this.Z&&t!==this.ot&&(this.rt=!0,this.ot=t)}}const Gs=new WeakMap,Js=new WeakMap;class Vs{constructor(t,s){this.dt=t,this.st=s}*[ls](){let t;for(;;){if(t=yield*this.yt[ds](this.dt,this.st,0),t)return t;this.dt[rs](1)}}*[cs](t){let s=yield*this[ls]();const e=Js.get(s)[W];if(t||this.dt.gt||(yield*this.wt[us](this.dt,this.st,e)))return this.st[ms](),this.dt[rs](e),this.dt[hs](s),s;this.dt[os](`Missing ${Ot} at ${e} bytes from current position.`,`Dropping current ${Ot} and trying again.`),this.st[Ms](),this.dt[rs](1)}}class Xs{constructor(t,s){Js.set(this,{[J]:t}),this[x]=s}}class Ls extends Xs{static*[ds](t,s,e,i,r){const n=yield*t[us](e,i,r);if(n){const t=Gs.get(n)[It],i=Gs.get(n)[Kt];return new s(n,(yield*e[is](t,r))[at](0,t),i)}return null}constructor(t,s,e){super(t,s),this[J]=t,this[Kt]=e,this[q]=e/t[kt]*1e3,this[zt]=null,this[ts]=null,this[es]=null,this[ss]=null,Js.get(this)[W]=s[W]}}const Ns="unsynchronizationFlag",ks="extendedHeaderFlag",Hs="experimentalFlag",Ks="footerPresent";class Ys{static*Tt(t,s,e){const i={};let r=yield*t[is](3,e);if(73!==r[0]||68!==r[1]||51!==r[2])return null;if(r=yield*t[is](10,e),i[lt]=`id3v2.${r[3]}.${r[4]}`,15&r[5])return null;if(i[Ns]=!!(128&r[5]),i[ks]=!!(64&r[5]),i[Hs]=!!(32&r[5]),i[Ks]=!!(16&r[5]),128&r[6]||128&r[7]||128&r[8]||128&r[9])return null;const n=r[6]<<21|r[7]<<14|r[8]<<7|r[9];return i[W]=10+n,new Ys(i)}constructor(t){this[lt]=t[lt],this[Ns]=t[Ns],this[ks]=t[ks],this[Hs]=t[Hs],this[Ks]=t[Ks],this[W]=t[W]}}class Rs{constructor(t){Gs.set(this,t),this[T]=t[T],this[$]=null,this[At]=t[At],this[$t]=t[$t],this[kt]=t[kt]}}const Ws={0:[As,As,As,As,As],16:[32,32,32,32,8],240:[Ps,Ps,Ps,Ps,Ps]},Zs=(t,s,e)=>8*((t+e)%s+s)*(1<<(t+e)/s)-8*s*(s/8|0);for(let Ui=2;Ui<15;Ui++)Ws[Ui<<4]=[32*Ui,Zs(Ui,4,0),Zs(Ui,4,-1),Zs(Ui,8,4),Zs(Ui,8,0)];const js="bands ",Qs=" to 31",te={0:js+4+Qs,16:js+8+Qs,32:js+12+Qs,48:js+16+Qs},se="bitrateIndex",ee="v2",ie="v1",re="Intensity stereo ",ne=", MS stereo ",he="on",oe="off",ae={0:{[_]:$s},2:{[_]:"Layer III",[Dt]:1,[j]:{0:re+oe+ne+oe,16:re+he+ne+oe,32:re+oe+ne+he,48:re+he+ne+he},[ie]:{[se]:2,[Kt]:1152},[ee]:{[se]:4,[Kt]:576}},4:{[_]:"Layer II",[Dt]:1,[j]:te,[Kt]:1152,[ie]:{[se]:1},[ee]:{[se]:4}},6:{[_]:"Layer I",[Dt]:4,[j]:te,[Kt]:384,[ie]:{[se]:0},[ee]:{[se]:3}}},le="MPEG Version ",ce="ISO/IEC ",ue={0:{[_]:le+"2.5 (later extension of MPEG 2)",[R]:ee,[kt]:{0:11025,4:12e3,8:g,12:$s}},8:{[_]:$s},16:{[_]:`${le}2 (${ce}13818-3)`,[R]:ee,[kt]:{0:M,4:p,8:m,12:$s}},24:{[_]:`${le}1 (${ce}11172-3)`,[R]:ie,[kt]:{0:f,4:d,8:y,12:$s}},length:W},Ue={0:Ss,1:Cs},de={0:Cs,1:"50/15 ms",2:$s,3:"CCIT J.17"},fe={0:{[At]:2,[_]:l},64:{[At]:2,[_]:"joint "+l},128:{[At]:2,[_]:"dual channel"},192:{[At]:1,[_]:a}};class ye extends Rs{static*[us](t,s,e){const i={},r=yield*Ys.Tt(t,s,e);r&&(yield*t[is](r[W],e),t[rs](r[W]));const n=yield*t[is](4,e),h=Ds(n[at](0,4)),o=s[us](h);if(o)return new ye(o);if(255!==n[0]||n[1]<224)return null;const a=ue[24&n[1]];if(a[_]===$s)return null;const l=6&n[1];if(ae[l][_]===$s)return null;const c={...ae[l],...ae[l][a[R]]};if(i[tt]=a[_],i[R]=c[_],i[Kt]=c[Kt],i[ht]=Ue[1&n[1]],i[W]=4,i[$]=Ws[240&n[2]][c[se]],i[$]===Ps)return null;if(i[kt]=a[kt][12&n[2]],i[kt]===$s)return null;if(i[Dt]=2&n[2]&&c[Dt],i[K]=!!(1&n[2]),i[It]=Math.floor(125*i[$]*i[Kt]/i[kt]+i[Dt]),!i[It])return null;const u=192&n[3];if(i[$t]=fe[u][_],i[At]=fe[u][At],i[j]=c[j][48&n[3]],i[X]=!!(8&n[3]),i[H]=!!(4&n[3]),i[B]=de[3&n[3]],i[B]===$s)return null;i[T]=16;{const{length:t,frameLength:e,$t:r,...n}=i;s[Us](h,i,n)}return new ye(i)}constructor(t){super(t),this[$]=t[$],this[B]=t[B],this[Dt]=t[Dt],this[X]=t[X],this[H]=t[H],this[K]=t[K],this[R]=t[R],this[j]=t[j],this[tt]=t[tt],this[ht]=t[ht]}}class pe extends Ls{static*[ds](t,s,e){return yield*super[ds](ye,pe,t,s,e)}constructor(t,s,e){super(t,s,e)}}class Me extends Vs{constructor(t,s,e){super(t,s),this.yt=pe,this.wt=ye,e(this[O])}get[O](){return Q}*[fs](){return yield*this[cs]()}}const me={0:"MPEG-4",8:"MPEG-2"},ge={0:"valid",2:Ps,4:Ps,6:Ps},we={0:Ss,1:Cs},be={0:"AAC Main",64:"AAC LC (Low Complexity)",128:"AAC SSR (Scalable Sample Rate)",192:"AAC LTP (Long Term Prediction)"},Te={0:96e3,4:88200,8:64e3,12:d,16:f,20:y,24:p,28:M,32:m,36:12e3,40:11025,44:g,48:7350,52:$s,56:$s,60:"frequency is written explicitly"},$e={0:{[At]:0,[_]:"Defined in AOT Specific Config"},64:{[At]:1,[_]:a},128:{[At]:2,[_]:u(2,h[0][0])},192:{[At]:3,[_]:u(3,h[1][3])},256:{[At]:4,[_]:u(4,h[1][3],h[3][4])},320:{[At]:5,[_]:u(5,h[1][3],h[3][0])},384:{[At]:6,[_]:u(6,h[1][3],h[3][0],o)},448:{[At]:8,[_]:u(8,h[1][3],h[2][0],h[3][0],o)}};class Pe extends Rs{static*[us](t,s,e){const i={},r=yield*t[is](7,e),n=Ds([r[0],r[1],r[2],252&r[3]|3&r[6]]),h=s[us](n);if(h)Object.assign(i,h);else{if(255!==r[0]||r[1]<240)return null;if(i[tt]=me[8&r[1]],i[R]=ge[6&r[1]],i[R]===Ps)return null;const t=1&r[1];i[ht]=we[t],i[W]=t?7:9,i[nt]=192&r[2],i[Ht]=60&r[2];const e=2&r[2];if(i[rt]=be[i[nt]],i[kt]=Te[i[Ht]],i[kt]===$s)return null;i[K]=!!e,i[Pt]=448&(r[2]<<8|r[3]),i[$t]=$e[i[Pt]][_],i[At]=$e[i[Pt]][At],i[H]=!!(32&r[3]),i[N]=!!(8&r[3]),i[St]=!!(8&r[3]),i[vt]=!!(4&r[3]),i[T]=16,i[Kt]=1024,i[st]=3&r[6];{const{length:t,Ct:e,St:r,vt:h,frameLength:o,$t:a,Ot:l,...c}=i;s[Us](n,i,c)}}if(i[It]=8191&(r[3]<<11|r[4]<<3|r[5]>>5),!i[It])return null;const o=2047&(r[5]<<6|r[6]>>2);return i[v]=2047===o?"VBR":o,new Pe(i)}constructor(t){super(t),this[St]=t[St],this[vt]=t[vt],this[v]=t[v],this[N]=t[N],this[H]=t[H],this[K]=t[K],this[R]=t[R],this[W]=t[W],this[tt]=t[tt],this[st]=t[st],this[rt]=t[rt],this[ht]=t[ht]}get Ft(){const t=Gs.get(this),s=t[nt]+64<<5|t[Ht]<<5|t[Pt]>>3,e=new bs(2);return new Ts(e[S]).setUint16(0,s,!1),e}}class Ae extends Ls{static*[ds](t,s,e){return yield*super[ds](Pe,Ae,t,s,e)}constructor(t,s,e){super(t,s,e)}}class Ce extends Vs{constructor(t,s,e){super(t,s),this.yt=Ae,this.wt=Pe,e(this[O])}get[O](){return"aac"}*[fs](){return yield*this[cs]()}}class Se extends Ls{static It(t){return(t[t[W]-2]<<8)+t[t[W]-1]}static[ws](t){const s=Se.It(t),e=(t=>{const s=t[W],e=s-16;let i=0,r=0;for(;r<=e;)i^=t[r++]<<8|t[r++],i=Fs[15][i>>8]^Fs[14][255&i]^Fs[13][t[r++]]^Fs[12][t[r++]]^Fs[11][t[r++]]^Fs[10][t[r++]]^Fs[9][t[r++]]^Fs[8][t[r++]]^Fs[7][t[r++]]^Fs[6][t[r++]]^Fs[5][t[r++]]^Fs[4][t[r++]]^Fs[3][t[r++]]^Fs[2][t[r++]]^Fs[1][t[r++]]^Fs[0][t[r++]];for(;r!==s;)i=(255&i)<<8^Fs[0][i>>8^t[r++]];return i})(t[at](0,-2));return s===e}constructor(t,s,e){s[Wt]=e,s[z]=Se.It(t),super(s,t,Gs.get(s)[Kt])}}const ve="get from STREAMINFO metadata block",Oe={0:"Fixed",1:"Variable"},Fe={0:$s,16:192};for(let Ui=2;Ui<16;Ui++)Fe[Ui<<4]=Ui<6?576*2**(Ui-2):2**Ui;const Ie={0:ve,1:88200,2:176400,3:192e3,4:g,5:m,6:M,7:p,8:y,9:f,10:d,11:96e3,15:Ps},Ee={0:{[At]:1,[_]:a},16:{[At]:2,[_]:u(2,h[0][0])},32:{[At]:3,[_]:u(3,h[0][1])},48:{[At]:4,[_]:u(4,h[1][0],h[3][0])},64:{[At]:5,[_]:u(5,h[1][1],h[3][0])},80:{[At]:6,[_]:u(6,h[1][1],o,h[3][0])},96:{[At]:7,[_]:u(7,h[1][1],o,h[3][4],h[2][0])},112:{[At]:8,[_]:u(8,h[1][1],o,h[3][0],h[2][0])},128:{[At]:2,[_]:l+" (left, diff)"},144:{[At]:2,[_]:l+" (diff, right)"},160:{[At]:2,[_]:l+" (avg, diff)"},176:$s,192:$s,208:$s,224:$s,240:$s},ze={0:ve,2:8,4:12,6:$s,8:16,10:20,12:24,14:$s};class De extends Rs{static zt(t){if(t[0]>254)return null;if(t[0]<128)return{value:t[0],length:1};let s=1;for(let n=64;n&t[0];n>>=1)s++;let e=s-1,i=0,r=0;for(;e>0;r+=6,e--){if(128!=(192&t[e]))return null;i|=(63&t[e])<<r}return i|=(t[e]&127>>s)<<r,{value:i,length:s}}static[gs](t,s){const e={*[is](){return t}};return De[us](e,s,0).next().value}static*[us](t,s,e){let i=yield*t[is](6,e);if(255!==i[0]||248!==i[1]&&249!==i[1])return null;const r={},n=Ds(i[at](0,4)),h=s[us](n);if(h)Object.assign(r,h);else{if(r[yt]=1&i[1],r[ft]=Oe[r[yt]],r[gt]=240&i[2],r[Ht]=15&i[2],r[pt]=Fe[r[gt]],r[pt]===$s)return null;if(r[kt]=Ie[r[Ht]],r[kt]===Ps)return null;if(1&i[3])return null;const t=Ee[240&i[3]];if(t===$s)return null;if(r[At]=t[At],r[$t]=t[_],r[T]=ze[14&i[3]],r[T]===$s)return null}r[W]=5,i=yield*t[is](r[W]+8,e);const o=De.zt(i[at](4));if(!o)return null;if(r[yt]?r[Nt]=o.value:r[zt]=o.value,r[W]+=o[W],96===r[gt]?(i[W]<r[W]&&(i=yield*t[is](r[W],e)),r[pt]=i[r[W]-1]+1,r[W]+=1):112===r[gt]&&(i[W]<r[W]&&(i=yield*t[is](r[W],e)),r[pt]=(i[r[W]-1]<<8)+i[r[W]]+1,r[W]+=2),r[Kt]=r[pt],12===r[Ht]?(i[W]<r[W]&&(i=yield*t[is](r[W],e)),r[kt]=1e3*i[r[W]-1],r[W]+=1):13===r[Ht]?(i[W]<r[W]&&(i=yield*t[is](r[W],e)),r[kt]=(i[r[W]-1]<<8)+i[r[W]],r[W]+=2):14===r[Ht]&&(i[W]<r[W]&&(i=yield*t[is](r[W],e)),r[kt]=10*((i[r[W]-1]<<8)+i[r[W]]),r[W]+=2),i[W]<r[W]&&(i=yield*t[is](r[W],e)),r[E]=i[r[W]-1],r[E]!==(t=>{let s=0;const e=t[W];for(let i=0;i!==e;i++)s=Os[s^t[i]];return s})(i[at](0,r[W]-1)))return null;if(!h){const{_t:t,frameNumber:e,qt:i,$t:h,vt:o,Bt:a,Gt:l,length:c,...u}=r;s[Us](n,r,u)}return new De(r)}constructor(t){super(t),this[z]=null,this[ft]=t[ft],this[pt]=t[pt],this[zt]=t[zt],this[Nt]=t[Nt],this[Wt]=null}}class xe extends Vs{constructor(t,s,e){super(t,s),this.yt=Se,this.wt=De,e(this[O])}get[O](){return"flac"}*Jt(t){const s=yield*this.dt[is](2,0),e=s[W]-2;for(;t<e;){if(255===s[t]){const e=s[t+1];if(248===e||249===e)break;255!==e&&t++}t++}return t}*[fs](){for(;;){const t=yield*De[us](this.dt,this.st,0);if(t){let s=Gs.get(t)[W]+2;for(;s<=524288;){if(this.dt.gt||(yield*De[us](this.dt,this.st,s))){let e=yield*this.dt[is](s);if(this.dt.gt||(e=e[at](0,s)),Se[ws](e)){const i=new Se(e,t);return this.st[ms](),this.dt[rs](s),this.dt[hs](i),i}}s=yield*this.Jt(s+1)}this.dt[os](`Unable to sync FLAC frame after searching ${s} bytes.`),this.dt[rs](s)}else this.dt[rs](yield*this.Jt(1))}}[ys](t){return 0===t[Xt]?(this.st[ms](),this.Xt=t[x][at](13)):1===t[Xt]||(t[F]=Js.get(t)[ot].map((t=>{const s=De[gs](t,this.st);if(s)return new Se(t,s,this.Xt);this.dt[os]("Failed to parse Ogg FLAC frame","Skipping invalid FLAC frame")})).filter((t=>!!t))),t}}class _e{static*[us](t,s,e){const i={};let r=yield*t[is](28,e);if(79!==r[0]||103!==r[1]||103!==r[2]||83!==r[3])return null;if(i[jt]=r[4],248&r[5])return null;i[k]=!!(4&r[5]),i[L]=!!(2&r[5]),i[V]=!!(1&r[5]);const n=new Ts(bs.from(r[at](0,28))[S]);try{i[w]=n.getBigInt64(6,!0)}catch{}i[Zt]=n.getInt32(14,!0),i[Xt]=n.getInt32(18,!0),i[Gt]=n.getInt32(22,!0);const h=r[26];i[W]=h+27,r=yield*t[is](i[W],e),i[It]=0,i[Vt]=[],i[Jt]=bs.from(r[at](27,i[W]));for(let o=0,a=0;o<h;o++){const t=i[Jt][o];i[It]+=t,a+=t,255===t&&o!==h-1||(i[Vt].push(a),a=0)}return new _e(i)}constructor(t){Gs.set(this,t),this[w]=t[w],this[V]=t[V],this[L]=t[L],this[k]=t[k],this[Vt]=t[Vt],this[Xt]=t[Xt],this[Gt]=t[Gt],this[Zt]=t[Zt]}}class qe extends Xs{static*[ds](t,s,e){const i=yield*_e[us](t,s,e);if(i){const s=Gs.get(i)[It],e=Gs.get(i)[W],r=e+s,n=(yield*t[is](r,0))[at](0,r),h=n[at](e,r);return new qe(i,h,n)}return null}constructor(t,s,e){super(t,s),Js.get(this)[W]=e[W],this[F]=[],this.Lt=e,this[w]=t[w],this[D]=t[Gt],this[q]=0,this[V]=t[V],this[L]=t[L],this[k]=t[k],this[Xt]=t[Xt],this[Kt]=0,this[Zt]=t[Zt]}}class Be extends Ls{constructor(t,s){super(s,t,s[xt]*s[Ft]/1e3*s[kt])}}const Ge={0:U.slice(0,2),1:U},Je="SILK-only",Ve="CELT-only",Xe="Hybrid",Le="narrowband",Ne="medium-band",ke="wideband",He="super-wideband",Ke="fullband",Ye={0:{[Z]:Je,[b]:Le,[xt]:10},8:{[Z]:Je,[b]:Le,[xt]:20},16:{[Z]:Je,[b]:Le,[xt]:40},24:{[Z]:Je,[b]:Le,[xt]:60},32:{[Z]:Je,[b]:Ne,[xt]:10},40:{[Z]:Je,[b]:Ne,[xt]:20},48:{[Z]:Je,[b]:Ne,[xt]:40},56:{[Z]:Je,[b]:Ne,[xt]:60},64:{[Z]:Je,[b]:ke,[xt]:10},72:{[Z]:Je,[b]:ke,[xt]:20},80:{[Z]:Je,[b]:ke,[xt]:40},88:{[Z]:Je,[b]:ke,[xt]:60},96:{[Z]:Xe,[b]:He,[xt]:10},104:{[Z]:Xe,[b]:He,[xt]:20},112:{[Z]:Xe,[b]:Ke,[xt]:10},120:{[Z]:Xe,[b]:Ke,[xt]:20},128:{[Z]:Ve,[b]:Le,[xt]:2.5},136:{[Z]:Ve,[b]:Le,[xt]:5},144:{[Z]:Ve,[b]:Le,[xt]:10},152:{[Z]:Ve,[b]:Le,[xt]:20},160:{[Z]:Ve,[b]:ke,[xt]:2.5},168:{[Z]:Ve,[b]:ke,[xt]:5},176:{[Z]:Ve,[b]:ke,[xt]:10},184:{[Z]:Ve,[b]:ke,[xt]:20},192:{[Z]:Ve,[b]:He,[xt]:2.5},200:{[Z]:Ve,[b]:He,[xt]:5},208:{[Z]:Ve,[b]:He,[xt]:10},216:{[Z]:Ve,[b]:He,[xt]:20},224:{[Z]:Ve,[b]:Ke,[xt]:2.5},232:{[Z]:Ve,[b]:Ke,[xt]:5},240:{[Z]:Ve,[b]:Ke,[xt]:10},248:{[Z]:Ve,[b]:Ke,[xt]:20}};class Re extends Rs{static[gs](t,s,e){const i={};if(i[At]=t[9],i[bt]=t[18],i[W]=0!==i[bt]?21+i[At]:19,t[W]<i[W])throw Error("Out of data while inside an Ogg Page");const r=3&s[0],n=3===r?2:1,h=Ds(t[at](0,i[W]))+Ds(s[at](0,n)),o=e[us](h);if(o)return new Re(o);if("OpusHead"!==h.substr(0,8))return null;if(1!==t[8])return null;i[x]=bs.from(t[at](0,i[W]));const a=new Ts(i[x][S]);if(i[T]=16,i[it]=a.getUint16(10,!0),i[qt]=a.getUint32(12,!0),i[kt]=d,i[et]=a.getInt16(16,!0),i[bt]in Ge&&(i[$t]=Ge[i[bt]][i[At]-1],!i[$t]))return null;0!==i[bt]&&(i[Rt]=t[19],i[I]=t[20],i[Tt]=[...t[at](21,i[At]+21)]);const l=Ye[248&s[0]];switch(i[Z]=l[Z],i[b]=l[b],i[xt]=l[xt],r){case 0:i[Ft]=1;break;case 1:case 2:i[Ft]=2;break;case 3:i[Y]=!!(128&s[1]),i[G]=!!(64&s[1]),i[Ft]=63&s[1];break;default:return null}{const{length:t,data:s,Nt:r,...n}=i;e[Us](h,i,n)}return new Re(i)}constructor(t){super(t),this[x]=t[x],this[b]=t[b],this[bt]=t[bt],this[Tt]=t[Tt],this[I]=t[I],this[Ft]=t[Ft],this[xt]=t[xt],this[G]=t[G],this[qt]=t[qt],this[Y]=t[Y],this[Z]=t[Z],this[et]=t[et],this[it]=t[it],this[Rt]=t[Rt]}}class We extends Vs{constructor(t,s,e){super(t,s),this.yt=Be,this.wt=Re,e(this[O]),this.kt=null}get[O](){return"opus"}[ys](t){return 0===t[Xt]?(this.st[ms](),this.kt=t[x]):1===t[Xt]||(t[F]=Js.get(t)[ot].map((t=>{const s=Re[gs](this.kt,t,this.st);if(s)return new Be(t,s);this.dt[as]("Failed to parse Ogg Opus Header","Not a valid Ogg Opus file")}))),t}}class Ze extends Ls{constructor(t,s,e){super(s,t,e)}}const je={};for(let Ui=0;Ui<8;Ui++)je[Ui+6]=2**(6+Ui);class Qe extends Rs{static[gs](t,s,e,i){if(t[W]<30)throw Error("Out of data while inside an Ogg Page");const r=Ds(t[at](0,30)),n=s[us](r);if(n)return new Qe(n);const h={[W]:30};if("vorbis"!==r.substr(0,7))return null;h[x]=bs.from(t[at](0,30));const o=new Ts(h[x][S]);if(h[lt]=o.getUint32(7,!0),0!==h[lt])return null;if(h[At]=t[11],h[$t]=U[h[At]-1]||"application defined",h[kt]=o.getUint32(12,!0),h[P]=o.getInt32(16,!0),h[C]=o.getInt32(20,!0),h[A]=o.getInt32(24,!0),h[mt]=je[(240&t[28])>>4],h[Mt]=je[15&t[28]],h[Mt]>h[mt])return null;if(1!==t[29])return null;h[T]=32,h[Ut]=i,h[ut]=e;{const{length:t,data:e,version:i,Ht:n,Kt:o,...a}=h;s[Us](r,h,a)}return new Qe(h)}constructor(t){super(t),this[P]=t[P],this[A]=t[A],this[C]=t[C],this[Mt]=t[Mt],this[mt]=t[mt],this[x]=t[x],this[ut]=t[ut],this[Ut]=t[Ut]}}class ti extends Vs{constructor(t,s,e){super(t,s),this.yt=Ze,e(this[O]),this.kt=null,this.Yt=!1,this.Rt=null}get[O](){return ct}[ys](t){t[F]=[];for(const s of Js.get(t)[ot])if(1===s[0])this.st[ms](),this.kt=t[x],this.Yt=!1;else if(3===s[0])this.Wt=s;else if(5===s[0])this.Zt=s,this.jt=this.Qt(s),this.Yt=!0;else if(this.Yt){const e=Qe[gs](this.kt,this.st,this.Wt,this.Zt);e?t[F].push(new Ze(s,e,this.ts(s,e))):this.dt[logError]("Failed to parse Ogg Vorbis Header","Not a valid Ogg Vorbis file")}return t}ts(t,s){const e=this.jt.ss[t[0]>>1&this.jt.mask]?s[mt]:s[Mt],i=null===this.Rt?0:(this.Rt+e)/4;return this.Rt=e,i}Qt(t){const s=new qs(t),e={count:0,ss:[]};for(;1!=(1&s.read(1)););let i;for(;e.count<64&&s.position>0;){_s(s.read(8));let t=0;for(;0===s.read(8)&&t++<3;);if(4!==t){1+((126&_s(i))>>1)!==e.count&&this.dt[os]("vorbis derived mode count did not match actual mode count");break}i=s.read(7),e.ss.unshift(1&i),s.position+=6,e.count++}return e.mask=(1<<Math.log2(e.count))-1,e}}class si{constructor(t,s,e){this.dt=t,this.st=s,this.es=e,this.rs=new bs,this.ns=null,this.hs=null}get[O](){return this.ns||""}os(t,s){this.ns!==t&&(this.st[Ms](),this.ls=new s(this.dt,this.st,this.es),this.ns=t)}cs({data:t}){const s=Ds(t[at](0,8));switch(s){case"fishead\0":return!1;case"OpusHead":return this.os("opus",We),!0;case/^\x7fFLAC/.test(s)&&s:return this.os("flac",xe),!0;case/^\x01vorbis/.test(s)&&s:return this.os(ct,ti),!0;default:return!1}}us(t){t[Xt]!==this.Us+1&&this.Us>1&&t[Xt]>1&&this.dt[os]("Unexpected gap in Ogg Page Sequence Number.",`Expected: ${this.Us+1}, Got: ${t[Xt]}`),this.Us=t[Xt]}ds(t){null===this.hs&&(this.Us=t[Xt],this.hs=this.cs(t)),this.us(t);const s=Js.get(t),e=Gs.get(s[J]);let i=0;if(s[ot]=e[Vt].map((s=>t[x][at](i,i+=s))),this.rs[W]&&(s[ot][0]=zs(this.rs,s[ot][0]),this.rs=new bs),255===e[Jt][e[Jt][W]-1]&&(this.rs=zs(this.rs,s[ot].pop())),this.hs){const s=this.ls[ys](t);return this.dt[hs](s),s}return t}}class ei extends Vs{constructor(t,s,e){super(t,s),this.es=e,this.yt=qe,this.wt=_e,this.fs=new Map,this.ys=null}get[O](){const t=this.fs.get(this.ys);return t?t.Pt:""}*[fs](){const t=yield*this[cs](!0);this.ys=t[Zt];let s=this.fs.get(this.ys);return s||(s=new si(this.dt,this.st,this.es),this.fs.set(this.ys,s)),t[k]&&this.fs.delete(this.ys),s.ds(t)}}const ii=()=>{};class ri{constructor(t,{ps:s,Ms:e,gs:i,ws:r=!1,bs:n=!0}={}){this.Ts=t,this.es=s||ii,this.W=e||ii,this.Z=i,this.$s=r,this.Ps=n?Es:ii,this[Ms]()}get[O](){return this.ls?this.ls[O]:""}[Ms](){this.st=new Bs(this.W,this.Z),this.As=this.Cs(),this.As.next()}*flush(){this.gt=!0;for(let t=this.As.next();t.value;t=this.As.next())yield t.value;this.gt=!1,this[Ms]()}*Ss(t){for(let s=this.As.next(t);s.value;s=this.As.next())yield s.value}parseAll(t){return[...this.Ss(t),...this.flush()]}*Cs(){if(this.Ts.match(/aac/))this.ls=new Ce(this,this.st,this.es);else if(this.Ts.match(/mpeg/))this.ls=new Me(this,this.st,this.es);else if(this.Ts.match(/flac/))this.ls=new xe(this,this.st,this.es);else{if(!this.Ts.match(/ogg/))throw Error("Unsupported Codec "+mimeType);this.ls=new ei(this,this.st,this.es)}for(this.vs=0,this.Os=0,this.Fs=0,this.Is=0,this.Es=0,this.zs=void 0,this.Ds=new Uint8Array(0);;){const t=yield*this.ls[fs]();t&&(yield t)}}*[is](t=0,s=0){let e;for(;this.Ds[W]<=t+s;){if(e=yield,this.gt)return this.Ds[at](s);e&&(this.Fs+=e[W],this.Ds=zs(this.Ds,e))}return this.Ds[at](s)}[rs](t){this.Os+=t,this.Ds=this.Ds[at](t)}[ns](t){this.zs=t[J][kt],t[J][$]=t[q]>0?8*Math.round(t[x][W]/t[q]):0,t[zt]=this.vs++,t[ts]=this.Is,t[es]=this.Es,t[ss]=this.Es/this.zs*1e3,t[D]=this.Ps(t[x]),this.st[ps](t[J][$],t[ss]),this.Is+=t[x][W],this.Es+=t[Kt]}[hs](t){t[F]?(t[F].forEach((s=>{t[q]+=s[q],t[Kt]+=s[Kt],this[ns](s)})),t[es]=this.Es,t[ss]=this.Es/this.zs*1e3||0,t[ts]=this.Is):this[ns](t)}Bs(t,s){if(this.$s){const e=[`${O}: ${this[O]}`,"inputMimeType: "+this.Ts,"readPosition: "+this.Os,"totalBytesIn: "+this.Fs,`${ts}: ${this.Is}`],i=Math.max(...e.map((t=>t[W])));s.push("--stats--"+"-".repeat(i-9),...e,"-".repeat(i)),t("codec-parser",s.reduce(((t,s)=>t+"\n "+s),""))}}[os](...t){this.Bs(console.warn,t)}[as](...t){this.Bs(console.error,t)}}const ni=x;function hi(t){var s,e,i,r=t=>console.log(t),n=t=>console.error(t);function h(){}for(var o=new Uint8Array(123),a=25;a>=0;--a)o[48+a]=52+a,o[65+a]=a,o[97+a]=26+a;o[43]=62,o[47]=63,hi.p||Object.defineProperty(hi,"p",{get:()=>String.raw`dynEncode017dd8192f6eÁÈB¾½V5±ý8ËkíTü³¢m!°·>jEäùl« ý. '² Rç!Ã"¨D±µùî|¼ã?< =MLE ¡YÆ5Ôím]ãàË©ÞØSÕ3¸ÈO +fÂùL·Û0PîEÁùGNz j±¹m¸¹>¹Ì®H°©p¨9=}§¬S=M.PØÕÙWÙXU×\ë¼¹Hw8Òv)µi7ÿm¶d;ôh;¨»é1ø7UAÊ)Å[Ö³.ߪR|Íkìp©*Gê¨z¢| ½¾Î<WKôC8+ÊLùtIIIùðc0»¨î·#(ñþõ|5£E ePsß|¡%§ê¸»Åñ*¬¹e7uiÑCÞÅBíy#Õü RË%æç'ïBCqÞ3_¬ÃÉïï:JÎ¥K¡¡[qXÁyº¹T¶úñíðíPoï«^;= b?ÔßÖûȰåÐ R I¶qMÁ*_ñpÖ±.uÊH @NWGIÕî«Ám6Ò]²Ìïå ,©«ÕçfãK¥²dmÕu¥¾9²ôéê2tò9HaªNââÙrÚ.Gع½;ò7Ïu«O0ò¡¦d±ÁêÆ%¥¸«0= }ºb¢q «æÞ·ô K¾¶ÀÇý°É7If2µ5§ñ6&4Å7"üê!!= "qMÎ#mÑõ°!<%²:ö×Pf?÷[&{ÔO¿òv^Vr§w³ur r~ìÙ&µ~3½:vm|QP|glk÷''L3y©ê] =}DÌço(!±¢!oq÷I _4&áGôðÃIÚÂI®´ð_ <÷H w¹]Ïûd¬WHyâ9ºEß8×ä3\¾%ÖC«aGêô¯@üÐÄzU-}Ñb7@Ï6ÇèW¼*aR\ç|y;GB_÷ò¸Dò±Lhy(ÀÊèëÚS¼TÜu#qKlëo5[ç´" |