2 lines
12 KiB
JavaScript
2 lines
12 KiB
JavaScript
|
|
"use strict";(self.webpackChunkmontana_messenger=self.webpackChunkmontana_messenger||[]).push([[2315],{42315(e,t,a){a.r(t),a.d(t,{AsfParser:()=>L});var n=a(17833),r=a(45207);function i(e){let t,a=e.trim();if(36!==a.length||"-"!==a[8]||"-"!==a[13]||"-"!==a[18]||"-"!==a[23])throw new Error(`Invalid GUID format: ${e}`);const n=new Uint8Array(16);t=parseInt(a.slice(0,8),16),n[0]=255&t,n[1]=t>>>8&255,n[2]=t>>>16&255,n[3]=t>>>24&255,t=parseInt(a.slice(9,13),16),n[4]=255&t,n[5]=t>>>8&255,t=parseInt(a.slice(14,18),16),n[6]=255&t,n[7]=t>>>8&255,t=parseInt(a.slice(19,23),16),n[8]=t>>>8&255,n[9]=255&t,t=parseInt(a.slice(24,32),16),n[10]=t>>>24&255,n[11]=t>>>16&255,n[12]=t>>>8&255,n[13]=255&t,t=parseInt(a.slice(32,36),16),n[14]=t>>>8&255,n[15]=255&t;for(let t=0;t<16;t++)if(!Number.isFinite(n[t]))throw new Error(`Invalid GUID format: ${e}`);if(!/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.test(a))throw new Error(`Invalid GUID format: ${e}`);return n}class s{constructor(e){if(16!==e.length)throw new Error("GUID must be exactly 16 bytes");this.bytes=e}static fromString(e){return new s(i(e))}toString(){const e=this.bytes,t=e=>e.toString(16).padStart(2,"0");return`${t(e[3])+t(e[2])+t(e[1])+t(e[0])}-${t(e[5])+t(e[4])}-${t(e[7])+t(e[6])}-${t(e[8])+t(e[9])}-${t(e[10])+t(e[11])+t(e[12])+t(e[13])+t(e[14])+t(e[15])}`.toUpperCase()}equals(e,t=0){if(t<0||e.length-t<16)return!1;const a=this.bytes;for(let n=0;n<16;n++)if(e[t+n]!==a[n])return!1;return!0}}class o{static fromBin(e,t=0){return new o(o.decode(e,t))}static decode(e,t=0){return new s(e.subarray(t,t+16)).toString()}static decodeMediaType(e){switch(e.str){case o.AudioMedia.str:return"audio";case o.VideoMedia.str:return"video";case o.CommandMedia.str:return"command";case o.Degradable_JPEG_Media.str:return"degradable-jpeg";case o.FileTransferMedia.str:return"file-transfer";case o.BinaryMedia.str:return"binary"}}static encode(e){return i(e)}constructor(e){this.str=e}equals(e){return this.str===e.str}toBin(){return o.encode(this.str)}}o.HeaderObject=new o("75B22630-668E-11CF-A6D9-00AA0062CE6C"),o.DataObject=new o("75B22636-668E-11CF-A6D9-00AA0062CE6C"),o.SimpleIndexObject=new o("33000890-E5B1-11CF-89F4-00A0C90349CB"),o.IndexObject=new o("D6E229D3-35DA-11D1-9034-00A0C90349BE"),o.MediaObjectIndexObject=new o("FEB103F8-12AD-4C64-840F-2A1D2F7AD48C"),o.TimecodeIndexObject=new o("3CB73FD0-0C4A-4803-953D-EDF7B6228F0C"),o.FilePropertiesObject=new o("8CABDCA1-A947-11CF-8EE4-00C00C205365"),o.StreamPropertiesObject=new o("B7DC0791-A9B7-11CF-8EE6-00C00C205365"),o.HeaderExtensionObject=new o("5FBF03B5-A92E-11CF-8EE3-00C00C205365"),o.CodecListObject=new o("86D15240-311D-11D0-A3A4-00A0C90348F6"),o.ScriptCommandObject=new o("1EFB1A30-0B62-11D0-A39B-00A0C90348F6"),o.MarkerObject=new o("F487CD01-A951-11CF-8EE6-00C00C205365"),o.BitrateMutualExclusionObject=new o("D6E229DC-35DA-11D1-9034-00A0C90349BE"),o.ErrorCorrectionObject=new o("75B22635-668E-11CF-A6D9-00AA0062CE6C"),o.ContentDescriptionObject=new o("75B22633-668E-11CF-A6D9-00AA0062CE6C"),o.ExtendedContentDescriptionObject=new o("D2D0A440-E307-11D2-97F0-00A0C95EA850"),o.ContentBrandingObject=new o("2211B3FA-BD23-11D2-B4B7-00A0C955FC6E"),o.StreamBitratePropertiesObject=new o("7BF875CE-468D-11D1-8D82-006097C9A2B2"),o.ContentEncryptionObject=new o("2211B3FB-BD23-11D2-B4B7-00A0C955FC6E"),o.ExtendedContentEncryptionObject=new o("298AE614-2622-4C17-B935-DAE07EE9289C"),o.DigitalSignatureObject=new o("2211B3FC-BD23-11D2-B4B7-00A0C955FC6E"),o.PaddingObject=new o("1806D474-CADF-4509-A4BA-9AABCB96AAE8"),o.ExtendedStreamPropertiesObject=new o("14E6A5CB-C672-4332-8399-A96952065B5A"),o.AdvancedMutualExclusionObject=new o("A08649CF-4775-4670-8A16-6E35357566CD"),o.GroupMutualExclusionObject=new o("D1465A40-5A79-4338-B71B-E36B8FD6C249"),o.StreamPrioritizationObject=new o("D4FED15B-88D3-454F-81F0-ED5C45999E24"),o.BandwidthSharingObject=new o("A69609E6-517B-11D2-B6AF-00C04FD908E9"),o.LanguageListObject=new o("7C4346A9-EFE0-4BFC-B229-393EDE415C85"),o.MetadataObject=new o("C5F8CBEA-5BAF-4877-8467-AA8C44FA4CCA"),o.MetadataLibraryObject=new o("44
|
||
|
|
//# sourceMappingURL=2315.038bb21694c526adfefa.js.map
|