1159cl/lib/icecast-metadata-player-1.17.3.synaudio.min.js
Mario1159 5b6b79892c
Some checks failed
Release / test (push) Failing after 51s
Release / push-docker-image (push) Has been skipped
2024 new version
2024-12-06 20:38:18 -03:00

22 lines
17 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*!
* Copyright 2021-2023 Ethan Halsall
* https://github.com/eshaz/icecast-metadata-js
*
* This file is part of icecast-metadata-player.
*
* icecast-metadata-player free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* icecast-metadata-player distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>
*/
(self.webpackChunkIcecastMetadataPlayer=self.webpackChunkIcecastMetadataPlayer||[]).push([[731],{469:e=>{e.exports=Worker},178:(e,g,f)=>{"use strict";f.d(g,{D4:()=>b});const r=(e,g=4294967295,f=79764919)=>{const r=new Int32Array(256);let b,t,i,s=g;for(b=0;b<256;b++){for(i=b<<24,t=8;t>0;--t)i=2147483648&i?i<<1^f:i<<1;r[b]=i}for(b=0;b<e.length;b++)s=s<<8^r[255&(s>>24^e[b])];return s},b=(e,g=r)=>{const f=e=>new Uint8Array(e.length/2).map(((g,f)=>parseInt(e.substring(2*f,2*(f+1)),16))),b=e=>f(e)[0],t=new Map;[,8364,,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,,381,,,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,,382,376].forEach(((e,g)=>t.set(e,g)));const i=new Uint8Array(e.length);let s,p,o,h=!1,q=0,n=42,O=e.length>13&&"dynEncode"===e.substring(0,9),c=0;O&&(c=11,p=b(e.substring(9,c)),p<=1&&(c+=2,n=b(e.substring(11,c))),1===p&&(c+=8,o=(e=>new DataView(f(e).buffer).getInt32(0,!0))(e.substring(13,c))));const u=256-n;for(let g=c;g<e.length;g++)if(s=e.charCodeAt(g),61!==s||h){if(92===s&&g<e.length-5&&O){const f=e.charCodeAt(g+1);117!==f&&85!==f||(s=parseInt(e.substring(g+2,g+6),16),g+=5)}if(s>255){const e=t.get(s);e&&(s=e+127)}h&&(h=!1,s-=64),i[q++]=s<n&&s>0?s+u:s-n}else h=!0;const x=i.subarray(0,q);if(O&&1===p){const e=g(x);if(e!==o){const g="Decode failed crc32 validation";throw console.error("`simple-yenc`\n",g+"\n","Expected: "+o+"; Got: "+e+"\n","Visit https://github.com/eshaz/simple-yenc for more information"),Error(g)}}return x}},875:(e,g,f)=>{"use strict";f.r(g),f.d(g,{default:()=>o});var r=f(178),b=f(469);const t=new WeakMap,i=String.raw`dynEncode01658cce3922eÆØÒfeeefsfÅoääääääääääegtfhÊÓÛkÒÊÒÔ×Þgeghgfekmfäe¦åíipl€gnÈÔ××ÊÑÆÙÊeepÄÄÍÊÆÕÄÇÆØÊheoŒfŒivälànâiá©eeeeeeee†“g¥g¥…g¦g­re…g¦fІ|…f¦v³i¥…f¦uІz¦e…†}…e…f¦gه†~…e¦¥Ð‡u†th¥…f…f…‡†{…t†p…u†o¦e†qh¥…e…q‡g¦gÙχq…qbeee…e…g…vϦgÙÏbeeebIfbpee…e…g¦iׇq¦gÙχr…rbeee…e…q…vϦgÙÏbeeebIfbpee…e…g¦mׇq¦gÙχr…rbeee…e…q…vϦgÙÏbeeebIfbpee…e…g¦qׇq¦gÙχr…rbeee…e…q…vϦgÙÏbeeebIfbpee…p‡r¦¥Ð†p…o‡s¦¥Ð†o…g¦uχq…z­repg¥…f…q±reg¥…f…‡o¦i®re…e…q…vϦgÙυ~®iä…e…q¦gÙυe…{¦gÙÏ®j¦epre…o¦áև{¦iЇp¦gÛ¦fϦfֆ…pªi¥¦e†gqfp…z…gЦáÖ¦iЦgÛ¦fϦcdddlֆp¦e†gh¥…s…rbege…sbegebIfbpge…s…rbegu…sbegubIfbpgu……φr……φs…g¦mφg…p¦gЇprepp……e…g…‡g¦gÙχp…e…g…vϦgÙÏbege…pbegebIfbpgep…o…{«rf…f…q…‡†op…q¦ä؆g…o¦fÖiä…e…q¦gÙχo…e…q…vϦgÙϏge…oge÷ge…q¦fÏj…qp†q…g…}«re…f…†p…y…q¦gه†r…e†gh¥…g…‡q…g…‡sge…qge÷ge…q…sgi…qgi÷gi…g¦mφg…p¦gЇprepp…x…†y…t…†t…w¦fχw…|¬repqfp…f¦e±re¦e…†t…f¦fֆu…e…f¦gه†w…f¦i®†y…f¦áևo¦q«†zh¥…f…†s¦e†gg¥g¥…yre…e…e…f…sϦgÙÏ®…w…e…s¦gÙχq°Öre…e…qbege…ebegebIfbpgeg¥…o¦i«re…e…qbegu…ebegubIfbpgu…o¦m«re…e…qbeg……ebeg…bIfbpg……zre…e…qbeg•…ebeg•bIfbpg•p…f…o‡g«rfp…g¦ä؆q…uiä…e…g¦gÙχx…e…g…sϦgÙϏge…xge÷ge…g¦f×j…gp†g…q…t«re…f…†q…p…g¦gه†{…e†gh¥…g…‡s…g…{χ}ge…sge÷ge…s…}gi…sgi÷gi…g¦mφg…q¦gЇqrepp…p…†p…r¦fχr…|¬reppg¥…j¦g­re…j¦fІv…i¦v³i¥…i¦uІ|¦e†y¦e…†{…h…i¦gه†}…h¦¥Ð‡j†t¦e†wh¥…i…i…‡†x…t†p…j†o¦e†qh¥…h…q‡g¦gÙχq…qbeee…h…g…uϦgÙÏbeeebIfbpee…h…g¦iׇq¦gÙχr…rbeee…h…q…uϦgÙÏbeeebIfbpee…h…g¦mׇq¦gÙχr…rbeee…h…q…uϦgÙÏbeeebIfbpee…h…g¦qׇq¦gÙχr…rbeee…h…q…uϦgÙÏbeeebIfbpee…p‡r¦¥Ð†p…o‡s¦¥Ð†o…g¦uχq…|­repg¥…i…q±reg¥…i…‡o¦i®re…h…q…uϦgÙυ}®iä…h…q¦gÙυh…x¦gÙÏ®j¦epre…o¦áևx¦iЇp¦gÛ¦fϦfֆ~g¥…pªi¥¦e†gqfp…|…gЦáÖ¦iЦgÛ¦fϦcdddlֆp¦e†gh¥…s…rbege…sbegebIfbpge…s…rbegu…sbegubIfbpgu……φr……φs…g¦mφg…p¦gЇprepp…~i¥…h…g…‡g¦gÙχp…h…g…uϦgÙÏbege…pbegebIfbpgep…o…x«rf…i…q…‡†op…q¦ä؆g…o¦fÖiä…h…q¦gÙχo…h…q…uϦgÙϏge…oge÷ge…q¦fÏj…qp†q…g…{«re…i…†p…y…q¦gه†r…h†gh¥…g…‡q…g…‡sge…qge÷ge…q…sgi…qgi÷gi…g¦mφg…p¦gЇprepp…y…†y…t…†t…w¦fχw…v¬repqfp…i¦e±re¦e†p¦e…†s…i¦fֆt…h…i¦gه†w…i¦i®†y…i¦áևj¦q«†|¦e†rh¥…i…†o¦e†gg¥g¥…yre…h…h…i…oϦgÙÏ®…w…h…o¦gÙχq°Öre…h…qbege…hbegebIfbpgeg¥…j¦i«re…h…qbegu…hbegubIfbpgu…j¦m«re…h…qbeg……hbeg…bIfbpg……|re…h…qbeg•…hbeg•bIfbpg•p…j‡g…i«rfp…g¦ä؆q…tiä…h…g¦gÙχz…h…g…oϦgÙϏge…zge÷ge…g¦f×j…gp†g…q…s«re…i…†q…p…g¦gه†x…h†gh¥…g…‡o…g…‡{ge…oge÷ge…o…{gi…ogi÷gi…g¦mφg…q¦gЇqrepp…p…†p…r¦fχr…v¬repp¦e†i…n¦e›ge…m¦e›geg¥…k¦e¯i¥…k¦hֆjg¥…k¦fЇi¦h®i¥¦e†oqfp…e†g…k¦áևo†qh¥……gge …ggi …ggm …ggq †…g¦uφg…q¦iЇqrepp…ji¥…e…o¦gÙφg…j†qh¥……gge †…g¦iφg…q¦fЇqreppg¥…i¦h®i¥¦e†oqfp…h†g…k¦áևo†qh¥…‘…gge …ggi …ggm …ggq †‘…g¦uφg…q¦iЇqrepp…ji¥…h…o¦gÙφgh¥…‘…gge †‘…g¦iφg…j¦fЇjrepp…k¦uІs…‘…k‡‘†‡…k¦v­i¥¦e†i¦e†qqgp…‡bx†¦e†j…h†gh¥…€…gbeee…bJf‡€…€bKfbIf…gbeeu…bJf‡€…€bKfbIf…gbee……bJf‡€…€bKfbIf…gbee•…bJf‡€…€bKfbIf†€…g¦¥Ð†g…j¦uχj…s­rep…i¦Õֆq¦f†iqfp…k¦uІs…“…k‡‘†‡¦e†qp…€b„h…€b„g…€b„e…€b„f÷÷÷†ˆ…k…q±re…q¦ä؅†p…k¦hևoiä…h…q¦gÙφg…o†jh¥…gge…‡ø‡‰…‰ù…ˆ÷†ˆ…g¦iφg…j¦fЇjrep…o…q×j…qp†q…p¦h®re…k…†j…h…q¦gÙφgh¥…ggq…‡ø‡‰…‰ù…ggm…‡ø‡‰…‰ù…ggi…‡ø‡‰…‰ù…gge…‡ø‡‰…‰ù…ˆ÷÷÷÷†ˆ…g¦uφg…j¦iЇjrepp¦e†j…ii¥…‡bx†€…h†gh¥…g…gbeee…€bJfbpee…g…gbeeu…€bJfbpeu…g…gbee……€bJfbpe……g…gbee•…€bJfbpe•…g¦¥Ð†g…j¦uχj…s­repp…ˆ…k¨eeå$÷‡‰ú†ˆ…f…†tg¥…j…k³re…k…k…‡f¦h°iä…f¦áևr¦iЇg¦gÛ¦fχo¦hֆq…‡bx†€¦e†p…g¦q´…o¦adddlֆo…h…j¦gÙφgh¥…g…gbege…€bJfbpge…g…gbegu…€bJfbpgu…g…gbeg……€bJfbpg……g…gbeg•…€bJfbpg•…g¦¥Ð†g…p¦uφp…o¦iЇorepp…qi¥…h…j…pϦgÙφgh¥…g…gbege…€bJfbpge…g¦uφg…q¦fЇqrepp…f…r«rf…j…rÏj…jp‡†q…h…j¦gÙφgh¥…g…gge…‡øge…g¦iφg…q¦fЇqrepp…ˆö†‹…t¦e¯i¥…l¦gنu¦e†r¦e…†v…k¦fֆw…k¦fЦÕֆq…‹ †’…e†oh¥…e…r¦gÙχyge†Ž…e…k…rϦgÙφ|……‘†Š…iªi¥bqeeeeeeeeeeeeeeee†€bqeeeeeeeeeeeeeeee†¦eqfp…Šbx†‚¦e†g¦e†pbqeeeeeeeeeeeeeeee†bqeeeeeeeeeeeeeeee†€……g…‡fbeee…‚bJf‡ƒ…g…‡jbeeebKfbIf…fbeeu…‚bJf‡„…jbeeubKfbIf…fbee……‚bJf‡……jbee…bKfbIf…fbee•…‚bJf‡†…jbee•bKfbIf†…€…ƒ…ƒbKfbIf…„…„bKfbIf…………bKfbIf…†…†bKfbIf†€…g¦¥Ð†g…p¦uχp…s­rep…qp†f…|ge†…€b„h…€b„g…€b„e…€b„f÷÷÷†‡…b„h…b„g…b„e…b„f÷÷÷†ˆ…f…k³re…f¦ä؆g…wiä…y…f¦gهge…Šø‡Œ…h…geù…ˆ÷†ˆ…Œ…Œù…‡÷†‡…f¦f×j…fp†f…g…v«re…f¦gنg…k…†jh¥…g…‡fgi…Šø‡Œ…g…‡pgiù…fge…Šø‡…pgeù…ˆ÷÷†ˆ…Œ…Œù……ù…‡÷÷†‡…g¦mφg…j¦gЇjrepp…ˆ…‰ú …‡…‰ú …’‡‡…mgeÃi¥…n…r›ge…m…‡gep……Ž … †…o…†o…l…‡r…t­reppg¥…l¦f±re…nge‡f…l…‡‡j…t…j…t­€†t¦e†p…f…‡f¦e…f¦e¯€†rg¥…k¦e±i¥…“†qfp…k¦hֆjg¥…k¦fЦh®i¥…“†qfp…e…r¦gÙφg…“†…k¦áևp†qh¥……gge …ggi …ggm …ggq †…g¦uφg…q¦iЇqrepp…jªre…e…p…rϦgÙφgh¥……gge †…g¦iφg…j¦fЇjrepp…r…t³re¦e…†p…k¦fֆu…e…r¦gÙφo…k¦fЦÕֆl…‹ †’…e…r¦gÙχvge†…e…k…rϦgÙφw……‘†Š…iªi¥bqeeeeeeeeeeeeeeee†€bqeeeeeeeeeeeeeeee†¦eqfp…Šbx†‚¦e†q…o†g…h†jbqeeeeeeeeeeeeeeee†bqeeeeeeeeeeeeeeee†€……gbeee…‚bJf‡ƒ…jbeeebKfbIf…gbeeu…‚bJf‡„…jbeeubKfbIf…gbee……‚bJf‡……jbee…bKfbIf…gbee•…‚bJf‡†…jbee•bKfbIf†…€…ƒ…ƒbKfbIf…„…„bKfbIf…………bKfbIf…†…†bKfbIf†€…g¦¥Ð†g…j¦¥Ð†j…q¦uχq…s­rep…lp†f…wge†Ž…€b„h…€b„g…€b„e…€b„f÷÷÷†‡…b„h…b„g…b„e…b„f÷÷÷†ˆ…f…k³re…f¦ä؆g…uiä…v…f¦gهge…Šø‡‹…h…geù…ˆ÷†ˆ…‹…‹ù…‡÷†‡…f¦f×j…fp†f…g…p«re…f¦gنg…k…†jh¥…g…‡fgi…Šø‡‹…g…‡qgiù…fge…Šø‡Œ…qgeù…ˆ÷÷†ˆ…‹…‹ù…Œ…Œù…‡÷÷†‡…g¦mφg…j¦gЇjrepp…ˆ…‰ú …‡…‰ú …’‡‡…mgeÃi¥…n…r›ge…m…‡gep…… …Ž †…o¦iφo…r¦fχr…t¬reppppetÙÆ×ÌÊÙÄËÊÆÙÚ×ÊØflØÎÒɖ—`,s=String.raw`dynEncode010e15d7b662o{+nn‹‹‹ns|„{s{}€‡OŽ–)q}€€szo‚smmvso~mpos  ڍ‹N.OV.Oy/.O\N.Oy/.O‚/.O/N./O/N...x08.8 F..8.8 F..8.8 F..8.8 F.Ox/.Ox/.Ox/..VN..Oy0Z....x8.8 F../..T..y/..O‚0x/./N..x0..x08.8 F..8.8 F.Ox/.Oy0..x/..Ox0U.OZ.O‚/.8/.OT/.OT/./N..8. 0FN...8.8 F.OT..8.8 F...8.8 F..x/.Oy0‘‹N.0OVO.Oy/N..x08.¡0..x08¢.8.¡0.8¢.8.¡0.8¢.8.¡0.8¢.    /..¢..¢..¢..¢.    /.Ox/.Ox0.V.OyOŠ0.\.O/.O..O‚0x8.¡0..x8¢. /..¢. /.O€./O.y.T..y/..O‚0x/..x/N.8.¡0.¢.8.¡0.¢.  /..8¢..8¢.  /.Ox/.Ox/.Oy0..ÀQŽÍ 0£É..£É­.É°±Äʍ‹ŠR/$N.......OD.ODN.OXN.O/.Oy0O]N./.OŠ0/N. .8É®.8É®.8É®.8É®/ .Ox/.Oy0.N.O‚.x/./N. .8É®/ .Ox/.Oy0N.OWNO/./.OŠ0/N.!.8É®.8É®.8É®.8É®/!.Ox/.Oy0.N.O‚.x/N.!.8É®/!.Ox/.Oy0.Oy/.À/.OVNO/O/.!Ä.£/O/./N.8.¡0.¢.8.¡0.¢.8.¡0.¢.8.¡0.¢.    /.Ox/.Ox0.V.OŠ/O/.Oy/.À/O/.!.Å0!±Ä/N..\..Ox/.O0.O‚.x/./N.8.¡0.¢. /.Ox/.Oy0..€./.OW..y/.O‚.x/N.8.¡0.¢.8.¡0.¢.8.¡0.¢.8.¡0.¢.    /.Ox/.Oy0O/.N./N..8.¡F..8.¡F..8.¡F..8.¡F.Ox/.Ox0.V..QŽÍ £/..y/N..\..Ox/..yO0N.O‚.x/N..8.¡F.Ox/.Ox/.Oy0.OW..y/.O‚.x/N..8.¡F..8.¡F..8.¡F..8.¡F.Ox/.Oy0.Ÿ/N.OZNO/.O‚/.O‚/O/./O/N. .8ɯ/"..x8É/#.8/... .!±Ä..0.l..D..F../.".#®/ ..x/..x0.VN.OZ...z0x0...V)/O/..y0O.OX)/N.OZN.$/ .O/N.OyOWN.$/ .O‚.x/.$/ .OŠ0/N. .8É®.8É®.8É®.8É®/ .Ox/.Oy0.S..xO‚.x/N. .8É®/ .Ox/.Oy0..\.O‚.x/..xO‚.x/N. .8ɯ/".8É/#.8/... .!±Ä..0.lN..D..F.".#®/ .Ox/.Ox/.Ox0.U`;class p{constructor(e={}){this.t=e.correlationSampleSize>0?e.correlationSampleSize:11025,this.i=e.initialGranularity>0?e.initialGranularity:16,this.p=e.correlationThreshold>=0?e.correlationThreshold:.5,this.o=t.get(p),this.o||(this.o=(async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11])))().then((e=>e?WebAssembly.compile((0,r.D4)(i)):WebAssembly.compile((0,r.D4)(s)))),t.set(this.o)),this.SynAudioWorker=function e(g,f,r){this.h=new Map,this.q=(e,g)=>Math.min(e.samplesDecoded,g.samplesDecoded,this.t),this.O=(e,g)=>Math.min(e.samplesDecoded,g.samplesDecoded,this.i),this.u=(e,g,f)=>{const r=g.BYTES_PER_ELEMENT;let b=f/r;for(let t=0;t<e.length;t++)f+=e[t].length*r,g.set(e[t],b),b+=e[t].length;return f},this.j=(g,f)=>{let r=this.h.get(g);if(!r){let f,b="text/javascript",t=`'use strict';(${((e,g,f,r)=>{self.onmessage=b=>{new e(Promise.resolve(b.data.module),f,r).l.get(g).apply(null,b.data.params).then((e=>{self.postMessage(e)}))}}).toString()})(${e.toString()}, "${g}", ${this.t}, ${this.i})`;try{f=void 0!==process.versions.node}catch{}r=f?`data:${b};base64,${Buffer.from(t).toString("base64")}`:URL.createObjectURL(new Blob([t],{type:b})),this.h.set(g,r)}const t=new(globalThis.Worker||b)(r,{name:"SynAudio"}),i=new Promise((e=>{t.onmessage=g=>{t.terminate(),e(g.data)}}));return this.o.then((e=>{t.postMessage({module:e,params:f})})),i},this.m=(e,g)=>{const f=Float32Array.BYTES_PER_ELEMENT,r=this.q(e,g),b=this.O(e,g),t=new WebAssembly.Memory({initial:(e.samplesDecoded*e.channelData.length+g.samplesDecoded*g.channelData.length)*f/65536+4});return this.o.then((e=>WebAssembly.instantiate(e,{env:{memory:t}}))).then((({exports:i})=>{const s=new Map(Object.entries(i)),p=s.get("correlate"),o=new Float32Array(t.buffer),h=new DataView(t.buffer),q=s.get("__heap_base").value,n=this.u(e.channelData,o,q),O=this.u(g.channelData,o,n),c=O+f;p(q,e.samplesDecoded,e.channelData.length,n,g.samplesDecoded,g.channelData.length,r,b,O,c);return{correlation:h.getFloat32(O,!0),sampleOffset:h.getInt32(c,!0)}}))},this.N=(e,g,f)=>{const r=[],b=[0],t=this.q(e,g),i=Math.log(e.samplesDecoded*t)/Math.log(this.i+1)*Math.log(t/1e4+1);f=Math.max(Math.round(Math.min(f,i,e.samplesDecoded/t/4)),1);const s=Math.ceil(e.samplesDecoded/f);let p=0;for(let i=0;i<f;i++){const f={channelData:[]};for(let g=0;g<e.channelData.length;g++){const r=e.channelData[g].subarray(p,p+s+t);f.channelData.push(r),f.samplesDecoded=r.length}p+=s-t,b.push(p),r.push(this.I(f,g))}return Promise.all(r).then((e=>{let g=0,f=-1;for(let r=0;r<e.length;r++)e[r].correlation>f&&(g=r,f=e[r].correlation);return{correlation:e[g].correlation,sampleOffset:e[g].sampleOffset+b[g]}}))},this.I=(e,g)=>this.j("_sync",[e,g]),this.k=(e,g,f)=>globalThis.Worker?this.j("_syncWorkerConcurrent",[e,g,f]):this.N(e,g,f),this.l=new Map([["_sync",this.m],["_syncWorker",this.I],["_syncWorkerConcurrent",this.N]]),this.o=g,this.t=f,this.i=r},this.v=new this.SynAudioWorker(this.o,this.t,this.i)}async syncWorkerConcurrent(e,g,f){return this.v.k(e,g,f>=1?f:1)}async syncWorker(e,g){return this.v.I(e,g)}async sync(e,g){return this.v.m(e,g)}async syncMultiple(e,g){g=g>=1?g:8;const f=[],r=[];let b=()=>{},t=Promise.resolve(),i=0;for(let g=0;g<e.length;g++)r.push({vertex:{}});for(let s=0;s<e.length;s++){const p=e[s],o=r[s].vertex;o.name=p.name,o.samplesDecoded=p.data.samplesDecoded,o.edges=new Set;for(let h=0;h<e.length;h++){if(s===h)continue;const q=e[h],n=r[h];i++,f.push(this.syncWorker(p.data,q.data).then((e=>{e.correlation>this.p&&o.edges.add({parent:o,vertex:n.vertex,samplesDecoded:q.data.samplesDecoded,...e}),i--,b()}))),i>=g&&(t=new Promise((e=>{b=e})),await t)}}await Promise.all(f);const s=(e,g)=>e.parent&&g.parent&&e.parent.samplesDecoded!==g.parent.samplesDecoded?e.parent.samplesDecoded>g.parent.samplesDecoded:e.correlation!==g.correlation?e.correlation>g.correlation:e.sampleOffset!==g.sampleOffset?e.sampleOffset>g.sampleOffset:e.vertex&&g.vertex&&e.vertex.name.localeCompare(g.vertex.name)<0,p=new Map,o=new Set,h=e=>{for(const g of e.edges.values()){if(p.has(e))return p.get(e);p.set(e,g);const f=h(g.vertex),r=g;if(f){let e,g;s(f,r)?(e=f,g=r):(e=r,g=f),g.cycleWith||(g.cycleWith=new Set,o.add(g)),g.cycleWith.add(e),e.cycleWith&&e.cycleWith.delete(g)}p.delete(e)}};for(const{vertex:e}of r)h(e);for(const e of o)e.cycleWith.size&&e.parent.edges.delete(e);const q=new Set;for(const e of r)q.add(e.vertex);for(const e of r)for(const g of e.vertex.edges)q.delete(g.vertex);const n=(e,g,f,r=0)=>{for(const b of f)e.has(b.vertex)&&s(e.get(b.vertex),b)||e.set(b.vertex,{name:b.vertex.name,correlation:b.correlation,sampleOffset:r+b.sampleOffset}),n(e,g,b.vertex.edges,r+b.sampleOffset)},O=[];for(const e of q){const g=new Map;g.set(e,{name:e.name,sampleOffset:0}),n(g,e,e.edges),O.push([...g.values()].sort(((e,g)=>e.sampleOffset-g.sampleOffset||(e.correlation||0)-(g.correlation||0)||g.name.localeCompare(e.name))))}return O}}const o=p}}]);
//# sourceMappingURL=icecast-metadata-player-1.17.3.synaudio.min.js.map