quickvo-sdk-js 1.0.7 → 1.0.8
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/dist/index.js +17356 -22209
- package/dist/index.umd.cjs +4 -201
- package/dist/room/RoomCalls.d.ts +1 -1
- package/dist/room/RoomPeer.d.ts +3 -1
- package/dist/tools.d.ts +0 -13
- package/package.json +1 -4
package/dist/index.umd.cjs
CHANGED
|
@@ -1,206 +1,9 @@
|
|
|
1
|
-
(function(st,it){typeof exports=="object"&&typeof module<"u"?it(exports):typeof define=="function"&&define.amd?define(["exports"],it):(st=typeof globalThis<"u"?globalThis:st||self,it(st["snqu-calls-sdk-js"]={}))})(this,function(exports){"use strict";var Xn=Object.defineProperty;var Qn=st=>{throw TypeError(st)};var er=(st,it,Rt)=>it in st?Xn(st,it,{enumerable:!0,configurable:!0,writable:!0,value:Rt}):st[it]=Rt;var _e=(st,it,Rt)=>er(st,typeof it!="symbol"?it+"":it,Rt),Yn=(st,it,Rt)=>it.has(st)||Qn("Cannot "+Rt);var Oe=(st,it,Rt)=>(Yn(st,it,"read from private field"),Rt?Rt.call(st):it.get(st)),Ge=(st,it,Rt)=>it.has(st)?Qn("Cannot add the same private member more than once"):it instanceof WeakSet?it.add(st):it.set(st,Rt),kt=(st,it,Rt,Pt)=>(Yn(st,it,"write to private field"),Pt?Pt.call(st,Rt):it.set(st,Rt),Rt);var st,it,Rt,Pt,Jt,Rn,$n,An,wn,Cn,Dn,Bn,Wt,cn,an,gn,kn,Xt,tn,ln,un,Sn,pn,Vt,Nt,en,nn,sn,mn,Nn,Mn,yn,qn,Tn,vn,Pn,Un,Ln,bn,On,Hn,_n,En,In,Fn,fn,jn,zn,Jn,Wn;const lt=(O,N={})=>{const I={unit:"B",splitStr:" ",...N};let{unit:D,splitStr:f}=I;const k=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],i=k.findIndex(C=>C===D),c=k.slice(i+1,k.length);let $=O;for(const C of c)if(D=C,$=$/1024,$<1024)break;return`${$.toFixed(2)}${f}${D}`},P$1=(O,N=[])=>{const I={...O},D=Object.keys(I);for(const f of D)N.findIndex(k=>String(k)===f)===-1&&delete I[f];return I},pt=(O,N=[],I=!0)=>{const D=new Map;for(const k of O){const i=[];for(const $ of N)i.push(k[$]);const c=`map-${i.join("-")}`;if(!D.has(c)){D.set(c,k);continue}I&&D.set(c,k)}const f=D.entries();return Array.from(f,([k,i])=>i)},dt=(O,N=[])=>{const I=[];for(const D of O){const f=P$1(D,N);I.push(f)}return I},ht=(O,N="value",I="label")=>{const D=[],f=Object.entries(O);for(const[k,i]of f){const c={[I]:i,[N]:k};D.push(c)}return D},v$1=(O=0,N=1)=>{const I=Math.max(0,O),D=Math.max(1,N),f=Math.random()*(D-I+1)+I;return parseInt(`${f}`,10)},xt=(O=16,N=16)=>{const I="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),D=Math.min(I.length,N),f=Date.now().toString(D),k=f.split(""),i=Math.max(4,O-f.length);for(let c=0;c<i;c++){const $=v$1(0,D-1),C=I[$];k.push(C)}return k.join("").toUpperCase()},W=(O,N)=>{try{let I=Number(O);if(isNaN(I)){const D=new Date(`${O}`);if(`${D}`=="Invalid Date")return 0;I=D.getTime()}if(N!==void 0){const D=new Date().getTimezoneOffset();I+=(D+N)*60*1e3}return I}catch(I){return console.error("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;padding:16px 0;","------->timeStamp:err",{_val:O,_offset:N,error:I}),0}},H=1e3,R=6e4,U=36e5,A=864e5,_={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7","01":"一","02":"二","03":"三","04":"四","05":"五","06":"六","07":"日"},L=O=>W(O),E=(O,N="YYYY-MM-DD hh:mm:ss",I={})=>{const D={empty_str:"-",...I},{empty_str:f,offset:k}=D,i=W(O,k);if(Number(O)!==0&&i===0)return f;const c=new Date(i),$=`${c.getFullYear()}`,C=`${c.getMonth()+1}`,M=`${c.getDate()}`,Z=`${c.getDay()===0?7:c.getDay()}`,J=`${c.getHours()}`,z=`${c.getMinutes()}`,Q=`${c.getSeconds()}`,ee=`${Math.ceil((i-L(`${$}/01/01 00:00:00`)+1)/864e5)}`,Y=`${Math.ceil(((i-L(`${$}/01/01 00:00:00`))/864e5-Number(Z))/7)+1}`,te=[{k:"Y+",v:$},{k:"M+",v:C},{k:"D+",v:M},{k:"W+",v:Z},{k:"h+",v:J},{k:"m+",v:z},{k:"s+",v:Q},{k:"d+",v:ee},{k:"w+",v:Y}];let ie;for(let{k:ye,v:re}of te)if(ie=new RegExp(`(${ye})`).exec(N),ie){const de=ie[1];let se=re.padStart(de.length,"0");de.includes("W")&&(se=_[se.slice(0,2)]),N=N.replace(de,se)}return N},V=new Map,$t=(O,N,I)=>{const D=new Date().getTime(),f=V.get(O)||0;D-I>f&&(N(),V.set(O,D))},enum_mediaType={microphoneCamera_audio:"麦克风-默认轨道",microphoneCamera_video:"摄像头-默认轨道",screenSharing_video:"屏幕共享-视频轨道",screenSharing_audio:"屏幕共享-音频轨道"};ht(enum_mediaType);const mediaType_keys=Object.keys(enum_mediaType);var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(O){return O&&O.__esModule&&Object.prototype.hasOwnProperty.call(O,"default")?O.default:O}var lib$1={},parser={},grammar={exports:{}},hasRequiredGrammar;function requireGrammar(){if(hasRequiredGrammar)return grammar.exports;hasRequiredGrammar=1;var O=grammar.exports={v:[{name:"version",reg:/^(\d*)$/}],o:[{name:"origin",reg:/^(\S*) (\d*) (\d*) (\S*) IP(\d) (\S*)/,names:["username","sessionId","sessionVersion","netType","ipVer","address"],format:"%s %s %d %s IP%d %s"}],s:[{name:"name"}],i:[{name:"description"}],u:[{name:"uri"}],e:[{name:"email"}],p:[{name:"phone"}],z:[{name:"timezones"}],r:[{name:"repeats"}],t:[{name:"timing",reg:/^(\d*) (\d*)/,names:["start","stop"],format:"%d %d"}],c:[{name:"connection",reg:/^IN IP(\d) (\S*)/,names:["version","ip"],format:"IN IP%d %s"}],b:[{push:"bandwidth",reg:/^(TIAS|AS|CT|RR|RS):(\d*)/,names:["type","limit"],format:"%s:%s"}],m:[{reg:/^(\w*) (\d*) ([\w/]*)(?: (.*))?/,names:["type","port","protocol","payloads"],format:"%s %d %s %s"}],a:[{push:"rtp",reg:/^rtpmap:(\d*) ([\w\-.]*)(?:\s*\/(\d*)(?:\s*\/(\S*))?)?/,names:["payload","codec","rate","encoding"],format:function(N){return N.encoding?"rtpmap:%d %s/%s/%s":N.rate?"rtpmap:%d %s/%s":"rtpmap:%d %s"}},{push:"fmtp",reg:/^fmtp:(\d*) ([\S| ]*)/,names:["payload","config"],format:"fmtp:%d %s"},{name:"control",reg:/^control:(.*)/,format:"control:%s"},{name:"rtcp",reg:/^rtcp:(\d*)(?: (\S*) IP(\d) (\S*))?/,names:["port","netType","ipVer","address"],format:function(N){return N.address!=null?"rtcp:%d %s IP%d %s":"rtcp:%d"}},{push:"rtcpFbTrrInt",reg:/^rtcp-fb:(\*|\d*) trr-int (\d*)/,names:["payload","value"],format:"rtcp-fb:%s trr-int %d"},{push:"rtcpFb",reg:/^rtcp-fb:(\*|\d*) ([\w-_]*)(?: ([\w-_]*))?/,names:["payload","type","subtype"],format:function(N){return N.subtype!=null?"rtcp-fb:%s %s %s":"rtcp-fb:%s %s"}},{push:"ext",reg:/^extmap:(\d+)(?:\/(\w+))?(?: (urn:ietf:params:rtp-hdrext:encrypt))? (\S*)(?: (\S*))?/,names:["value","direction","encrypt-uri","uri","config"],format:function(N){return"extmap:%d"+(N.direction?"/%s":"%v")+(N["encrypt-uri"]?" %s":"%v")+" %s"+(N.config?" %s":"")}},{name:"extmapAllowMixed",reg:/^(extmap-allow-mixed)/},{push:"crypto",reg:/^crypto:(\d*) ([\w_]*) (\S*)(?: (\S*))?/,names:["id","suite","config","sessionConfig"],format:function(N){return N.sessionConfig!=null?"crypto:%d %s %s %s":"crypto:%d %s %s"}},{name:"setup",reg:/^setup:(\w*)/,format:"setup:%s"},{name:"connectionType",reg:/^connection:(new|existing)/,format:"connection:%s"},{name:"mid",reg:/^mid:([^\s]*)/,format:"mid:%s"},{name:"msid",reg:/^msid:(.*)/,format:"msid:%s"},{name:"ptime",reg:/^ptime:(\d*(?:\.\d*)*)/,format:"ptime:%d"},{name:"maxptime",reg:/^maxptime:(\d*(?:\.\d*)*)/,format:"maxptime:%d"},{name:"direction",reg:/^(sendrecv|recvonly|sendonly|inactive)/},{name:"icelite",reg:/^(ice-lite)/},{name:"iceUfrag",reg:/^ice-ufrag:(\S*)/,format:"ice-ufrag:%s"},{name:"icePwd",reg:/^ice-pwd:(\S*)/,format:"ice-pwd:%s"},{name:"fingerprint",reg:/^fingerprint:(\S*) (\S*)/,names:["type","hash"],format:"fingerprint:%s %s"},{push:"candidates",reg:/^candidate:(\S*) (\d*) (\S*) (\d*) (\S*) (\d*) typ (\S*)(?: raddr (\S*) rport (\d*))?(?: tcptype (\S*))?(?: generation (\d*))?(?: network-id (\d*))?(?: network-cost (\d*))?/,names:["foundation","component","transport","priority","ip","port","type","raddr","rport","tcptype","generation","network-id","network-cost"],format:function(N){var I="candidate:%s %d %s %d %s %d typ %s";return I+=N.raddr!=null?" raddr %s rport %d":"%v%v",I+=N.tcptype!=null?" tcptype %s":"%v",N.generation!=null&&(I+=" generation %d"),I+=N["network-id"]!=null?" network-id %d":"%v",I+=N["network-cost"]!=null?" network-cost %d":"%v",I}},{name:"endOfCandidates",reg:/^(end-of-candidates)/},{name:"remoteCandidates",reg:/^remote-candidates:(.*)/,format:"remote-candidates:%s"},{name:"iceOptions",reg:/^ice-options:(\S*)/,format:"ice-options:%s"},{push:"ssrcs",reg:/^ssrc:(\d*) ([\w_-]*)(?::(.*))?/,names:["id","attribute","value"],format:function(N){var I="ssrc:%d";return N.attribute!=null&&(I+=" %s",N.value!=null&&(I+=":%s")),I}},{push:"ssrcGroups",reg:/^ssrc-group:([\x21\x23\x24\x25\x26\x27\x2A\x2B\x2D\x2E\w]*) (.*)/,names:["semantics","ssrcs"],format:"ssrc-group:%s %s"},{name:"msidSemantic",reg:/^msid-semantic:\s?(\w*) (\S*)/,names:["semantic","token"],format:"msid-semantic: %s %s"},{push:"groups",reg:/^group:(\w*) (.*)/,names:["type","mids"],format:"group:%s %s"},{name:"rtcpMux",reg:/^(rtcp-mux)/},{name:"rtcpRsize",reg:/^(rtcp-rsize)/},{name:"sctpmap",reg:/^sctpmap:([\w_/]*) (\S*)(?: (\S*))?/,names:["sctpmapNumber","app","maxMessageSize"],format:function(N){return N.maxMessageSize!=null?"sctpmap:%s %s %s":"sctpmap:%s %s"}},{name:"xGoogleFlag",reg:/^x-google-flag:([^\s]*)/,format:"x-google-flag:%s"},{push:"rids",reg:/^rid:([\d\w]+) (\w+)(?: ([\S| ]*))?/,names:["id","direction","params"],format:function(N){return N.params?"rid:%s %s %s":"rid:%s %s"}},{push:"imageattrs",reg:new RegExp("^imageattr:(\\d+|\\*)[\\s\\t]+(send|recv)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*)(?:[\\s\\t]+(recv|send)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*))?"),names:["pt","dir1","attrs1","dir2","attrs2"],format:function(N){return"imageattr:%s %s %s"+(N.dir2?" %s %s":"")}},{name:"simulcast",reg:new RegExp("^simulcast:(send|recv) ([a-zA-Z0-9\\-_~;,]+)(?:\\s?(send|recv) ([a-zA-Z0-9\\-_~;,]+))?$"),names:["dir1","list1","dir2","list2"],format:function(N){return"simulcast:%s %s"+(N.dir2?" %s %s":"")}},{name:"simulcast_03",reg:/^simulcast:[\s\t]+([\S+\s\t]+)$/,names:["value"],format:"simulcast: %s"},{name:"framerate",reg:/^framerate:(\d+(?:$|\.\d+))/,format:"framerate:%s"},{name:"sourceFilter",reg:/^source-filter: *(excl|incl) (\S*) (IP4|IP6|\*) (\S*) (.*)/,names:["filterMode","netType","addressTypes","destAddress","srcList"],format:"source-filter: %s %s %s %s %s"},{name:"bundleOnly",reg:/^(bundle-only)/},{name:"label",reg:/^label:(.+)/,format:"label:%s"},{name:"sctpPort",reg:/^sctp-port:(\d+)$/,format:"sctp-port:%s"},{name:"maxMessageSize",reg:/^max-message-size:(\d+)$/,format:"max-message-size:%s"},{push:"tsRefClocks",reg:/^ts-refclk:([^\s=]*)(?:=(\S*))?/,names:["clksrc","clksrcExt"],format:function(N){return"ts-refclk:%s"+(N.clksrcExt!=null?"=%s":"")}},{name:"mediaClk",reg:/^mediaclk:(?:id=(\S*))? *([^\s=]*)(?:=(\S*))?(?: *rate=(\d+)\/(\d+))?/,names:["id","mediaClockName","mediaClockValue","rateNumerator","rateDenominator"],format:function(N){var I="mediaclk:";return I+=N.id!=null?"id=%s %s":"%v%s",I+=N.mediaClockValue!=null?"=%s":"",I+=N.rateNumerator!=null?" rate=%s":"",I+=N.rateDenominator!=null?"/%s":"",I}},{name:"keywords",reg:/^keywds:(.+)$/,format:"keywds:%s"},{name:"content",reg:/^content:(.+)/,format:"content:%s"},{name:"bfcpFloorCtrl",reg:/^floorctrl:(c-only|s-only|c-s)/,format:"floorctrl:%s"},{name:"bfcpConfId",reg:/^confid:(\d+)/,format:"confid:%s"},{name:"bfcpUserId",reg:/^userid:(\d+)/,format:"userid:%s"},{name:"bfcpFloorId",reg:/^floorid:(.+) (?:m-stream|mstrm):(.+)/,names:["id","mStream"],format:"floorid:%s mstrm:%s"},{push:"invalid",names:["value"]}]};return Object.keys(O).forEach(function(N){var I=O[N];I.forEach(function(D){D.reg||(D.reg=/(.*)/),D.format||(D.format="%s")})}),grammar.exports}var hasRequiredParser;function requireParser(){return hasRequiredParser||(hasRequiredParser=1,function(O){var N=function(c){return String(Number(c))===c?Number(c):c},I=function(c,$,C,M){if(M&&!C)$[M]=N(c[1]);else for(var Z=0;Z<C.length;Z+=1)c[Z+1]!=null&&($[C[Z]]=N(c[Z+1]))},D=function(c,$,C){var M=c.name&&c.names;c.push&&!$[c.push]?$[c.push]=[]:M&&!$[c.name]&&($[c.name]={});var Z=c.push?{}:M?$[c.name]:$;I(C.match(c.reg),Z,c.names,c.name),c.push&&$[c.push].push(Z)},f=requireGrammar(),k=RegExp.prototype.test.bind(/^([a-z])=(.*)/);O.parse=function(c){var $={},C=[],M=$;return c.split(/(\r\n|\r|\n)/).filter(k).forEach(function(Z){var J=Z[0],z=Z.slice(2);J==="m"&&(C.push({rtp:[],fmtp:[]}),M=C[C.length-1]);for(var Q=0;Q<(f[J]||[]).length;Q+=1){var ee=f[J][Q];if(ee.reg.test(z))return D(ee,M,z)}}),$.media=C,$};var i=function(c,$){var C=$.split(/=(.+)/,2);return C.length===2?c[C[0]]=N(C[1]):C.length===1&&$.length>1&&(c[C[0]]=void 0),c};O.parseParams=function(c){return c.split(/;\s?/).reduce(i,{})},O.parseFmtpConfig=O.parseParams,O.parsePayloads=function(c){return c.toString().split(" ").map(Number)},O.parseRemoteCandidates=function(c){for(var $=[],C=c.split(" ").map(N),M=0;M<C.length;M+=3)$.push({component:C[M],ip:C[M+1],port:C[M+2]});return $},O.parseImageAttributes=function(c){return c.split(" ").map(function($){return $.substring(1,$.length-1).split(",").reduce(i,{})})},O.parseSimulcastStreamList=function(c){return c.split(";").map(function($){return $.split(",").map(function(C){var M,Z=!1;return C[0]!=="~"?M=N(C):(M=N(C.substring(1,C.length)),Z=!0),{scid:M,paused:Z}})})}}(parser)),parser}var writer$1,hasRequiredWriter$1;function requireWriter$1(){if(hasRequiredWriter$1)return writer$1;hasRequiredWriter$1=1;var O=requireGrammar(),N=/%[sdv%]/g,I=function(i){var c=1,$=arguments,C=$.length;return i.replace(N,function(M){if(c>=C)return M;var Z=$[c];switch(c+=1,M){case"%%":return"%";case"%s":return String(Z);case"%d":return Number(Z);case"%v":return""}})},D=function(i,c,$){var C=c.format instanceof Function?c.format(c.push?$:$[c.name]):c.format,M=[i+"="+C];if(c.names)for(var Z=0;Z<c.names.length;Z+=1){var J=c.names[Z];c.name?M.push($[c.name][J]):M.push($[c.names[Z]])}else M.push($[c.name]);return I.apply(null,M)},f=["v","o","s","i","u","e","p","c","b","t","r","z","a"],k=["i","c","b","a"];return writer$1=function(i,c){c=c||{},i.version==null&&(i.version=0),i.name==null&&(i.name=" "),i.media.forEach(function(Z){Z.payloads==null&&(Z.payloads="")});var $=c.outerOrder||f,C=c.innerOrder||k,M=[];return $.forEach(function(Z){O[Z].forEach(function(J){J.name in i&&i[J.name]!=null?M.push(D(Z,J,i)):J.push in i&&i[J.push]!=null&&i[J.push].forEach(function(z){M.push(D(Z,J,z))})})}),i.media.forEach(function(Z){M.push(D("m",O.m[0],Z)),C.forEach(function(J){O[J].forEach(function(z){z.name in Z&&Z[z.name]!=null?M.push(D(J,z,Z)):z.push in Z&&Z[z.push]!=null&&Z[z.push].forEach(function(Q){M.push(D(J,z,Q))})})})}),M.join(`\r
|
|
1
|
+
(function(Ee,we){typeof exports=="object"&&typeof module<"u"?we(exports):typeof define=="function"&&define.amd?define(["exports"],we):(Ee=typeof globalThis<"u"?globalThis:Ee||self,we(Ee["snqu-calls-sdk-js"]={}))})(this,function(exports){"use strict";var un=Object.defineProperty;var an=Ee=>{throw TypeError(Ee)};var fn=(Ee,we,Me)=>we in Ee?un(Ee,we,{enumerable:!0,configurable:!0,writable:!0,value:Me}):Ee[we]=Me;var ie=(Ee,we,Me)=>fn(Ee,typeof we!="symbol"?we+"":we,Me),cn=(Ee,we,Me)=>we.has(Ee)||an("Cannot "+Me);var ce=(Ee,we,Me)=>(cn(Ee,we,"read from private field"),Me?Me.call(Ee):we.get(Ee)),_e=(Ee,we,Me)=>we.has(Ee)?an("Cannot add the same private member more than once"):we instanceof WeakSet?we.add(Ee):we.set(Ee,Me),Be=(Ee,we,Me,Ze)=>(cn(Ee,we,"write to private field"),Ze?Ze.call(Ee,Me):we.set(Ee,Me),Me);var Ee,we,Me,Ze,Ge,Pt,Lt,Ft,Ct,jt,zt,Ht,We,vt,st,At,Bt,et,it,bt,_t,Dt,wt,Ke,ze,tt,rt,ut,gt,Zt,Jt,St,Vt,Nt,Tt,Gt,Wt,Kt,Ot,qt,Yt,It,Ut,Mt,Xt,kt,Qt,en,tn,nn;const lt=(O,N={})=>{const I={unit:"B",splitStr:" ",...N};let{unit:D,splitStr:f}=I;const k=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],i=k.findIndex(C=>C===D),c=k.slice(i+1,k.length);let $=O;for(const C of c)if(D=C,$=$/1024,$<1024)break;return`${$.toFixed(2)}${f}${D}`},P$1=(O,N=[])=>{const I={...O},D=Object.keys(I);for(const f of D)N.findIndex(k=>String(k)===f)===-1&&delete I[f];return I},pt=(O,N=[],I=!0)=>{const D=new Map;for(const k of O){const i=[];for(const $ of N)i.push(k[$]);const c=`map-${i.join("-")}`;if(!D.has(c)){D.set(c,k);continue}I&&D.set(c,k)}const f=D.entries();return Array.from(f,([k,i])=>i)},dt=(O,N=[])=>{const I=[];for(const D of O){const f=P$1(D,N);I.push(f)}return I},ht=(O,N="value",I="label")=>{const D=[],f=Object.entries(O);for(const[k,i]of f){const c={[I]:i,[N]:k};D.push(c)}return D},v$1=(O=0,N=1)=>{const I=Math.max(0,O),D=Math.max(1,N),f=Math.random()*(D-I+1)+I;return parseInt(`${f}`,10)},xt=(O=16,N=16)=>{const I="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),D=Math.min(I.length,N),f=Date.now().toString(D),k=f.split(""),i=Math.max(4,O-f.length);for(let c=0;c<i;c++){const $=v$1(0,D-1),C=I[$];k.push(C)}return k.join("").toUpperCase()},W=(O,N)=>{try{let I=Number(O);if(isNaN(I)){const D=new Date(`${O}`);if(`${D}`=="Invalid Date")return 0;I=D.getTime()}if(N!==void 0){const D=new Date().getTimezoneOffset();I+=(D+N)*60*1e3}return I}catch(I){return console.error("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;padding:16px 0;","------->timeStamp:err",{_val:O,_offset:N,error:I}),0}},H=1e3,R=6e4,U=36e5,A=864e5,_={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7","01":"一","02":"二","03":"三","04":"四","05":"五","06":"六","07":"日"},L=O=>W(O),E=(O,N="YYYY-MM-DD hh:mm:ss",I={})=>{const D={empty_str:"-",...I},{empty_str:f,offset:k}=D,i=W(O,k);if(Number(O)!==0&&i===0)return f;const c=new Date(i),$=`${c.getFullYear()}`,C=`${c.getMonth()+1}`,M=`${c.getDate()}`,J=`${c.getDay()===0?7:c.getDay()}`,Z=`${c.getHours()}`,z=`${c.getMinutes()}`,X=`${c.getSeconds()}`,re=`${Math.ceil((i-L(`${$}/01/01 00:00:00`)+1)/864e5)}`,oe=`${Math.ceil(((i-L(`${$}/01/01 00:00:00`))/864e5-Number(J))/7)+1}`,ne=[{k:"Y+",v:$},{k:"M+",v:C},{k:"D+",v:M},{k:"W+",v:J},{k:"h+",v:Z},{k:"m+",v:z},{k:"s+",v:X},{k:"d+",v:re},{k:"w+",v:oe}];let de;for(let{k:ye,v:Q}of ne)if(de=new RegExp(`(${ye})`).exec(N),de){const ae=de[1];let he=Q.padStart(ae.length,"0");ae.includes("W")&&(he=_[he.slice(0,2)]),N=N.replace(ae,he)}return N},V=new Map,$t=(O,N,I)=>{const D=new Date().getTime(),f=V.get(O)||0;D-I>f&&(N(),V.set(O,D))},enum_mediaType={microphoneCamera_audio:"麦克风-默认轨道",microphoneCamera_video:"摄像头-默认轨道",screenSharing_video:"屏幕共享-视频轨道",screenSharing_audio:"屏幕共享-音频轨道"};ht(enum_mediaType);const mediaType_keys=Object.keys(enum_mediaType);var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(O){return O&&O.__esModule&&Object.prototype.hasOwnProperty.call(O,"default")?O.default:O}var lib$1={},parser={},grammar={exports:{}},hasRequiredGrammar;function requireGrammar(){if(hasRequiredGrammar)return grammar.exports;hasRequiredGrammar=1;var O=grammar.exports={v:[{name:"version",reg:/^(\d*)$/}],o:[{name:"origin",reg:/^(\S*) (\d*) (\d*) (\S*) IP(\d) (\S*)/,names:["username","sessionId","sessionVersion","netType","ipVer","address"],format:"%s %s %d %s IP%d %s"}],s:[{name:"name"}],i:[{name:"description"}],u:[{name:"uri"}],e:[{name:"email"}],p:[{name:"phone"}],z:[{name:"timezones"}],r:[{name:"repeats"}],t:[{name:"timing",reg:/^(\d*) (\d*)/,names:["start","stop"],format:"%d %d"}],c:[{name:"connection",reg:/^IN IP(\d) (\S*)/,names:["version","ip"],format:"IN IP%d %s"}],b:[{push:"bandwidth",reg:/^(TIAS|AS|CT|RR|RS):(\d*)/,names:["type","limit"],format:"%s:%s"}],m:[{reg:/^(\w*) (\d*) ([\w/]*)(?: (.*))?/,names:["type","port","protocol","payloads"],format:"%s %d %s %s"}],a:[{push:"rtp",reg:/^rtpmap:(\d*) ([\w\-.]*)(?:\s*\/(\d*)(?:\s*\/(\S*))?)?/,names:["payload","codec","rate","encoding"],format:function(N){return N.encoding?"rtpmap:%d %s/%s/%s":N.rate?"rtpmap:%d %s/%s":"rtpmap:%d %s"}},{push:"fmtp",reg:/^fmtp:(\d*) ([\S| ]*)/,names:["payload","config"],format:"fmtp:%d %s"},{name:"control",reg:/^control:(.*)/,format:"control:%s"},{name:"rtcp",reg:/^rtcp:(\d*)(?: (\S*) IP(\d) (\S*))?/,names:["port","netType","ipVer","address"],format:function(N){return N.address!=null?"rtcp:%d %s IP%d %s":"rtcp:%d"}},{push:"rtcpFbTrrInt",reg:/^rtcp-fb:(\*|\d*) trr-int (\d*)/,names:["payload","value"],format:"rtcp-fb:%s trr-int %d"},{push:"rtcpFb",reg:/^rtcp-fb:(\*|\d*) ([\w-_]*)(?: ([\w-_]*))?/,names:["payload","type","subtype"],format:function(N){return N.subtype!=null?"rtcp-fb:%s %s %s":"rtcp-fb:%s %s"}},{push:"ext",reg:/^extmap:(\d+)(?:\/(\w+))?(?: (urn:ietf:params:rtp-hdrext:encrypt))? (\S*)(?: (\S*))?/,names:["value","direction","encrypt-uri","uri","config"],format:function(N){return"extmap:%d"+(N.direction?"/%s":"%v")+(N["encrypt-uri"]?" %s":"%v")+" %s"+(N.config?" %s":"")}},{name:"extmapAllowMixed",reg:/^(extmap-allow-mixed)/},{push:"crypto",reg:/^crypto:(\d*) ([\w_]*) (\S*)(?: (\S*))?/,names:["id","suite","config","sessionConfig"],format:function(N){return N.sessionConfig!=null?"crypto:%d %s %s %s":"crypto:%d %s %s"}},{name:"setup",reg:/^setup:(\w*)/,format:"setup:%s"},{name:"connectionType",reg:/^connection:(new|existing)/,format:"connection:%s"},{name:"mid",reg:/^mid:([^\s]*)/,format:"mid:%s"},{name:"msid",reg:/^msid:(.*)/,format:"msid:%s"},{name:"ptime",reg:/^ptime:(\d*(?:\.\d*)*)/,format:"ptime:%d"},{name:"maxptime",reg:/^maxptime:(\d*(?:\.\d*)*)/,format:"maxptime:%d"},{name:"direction",reg:/^(sendrecv|recvonly|sendonly|inactive)/},{name:"icelite",reg:/^(ice-lite)/},{name:"iceUfrag",reg:/^ice-ufrag:(\S*)/,format:"ice-ufrag:%s"},{name:"icePwd",reg:/^ice-pwd:(\S*)/,format:"ice-pwd:%s"},{name:"fingerprint",reg:/^fingerprint:(\S*) (\S*)/,names:["type","hash"],format:"fingerprint:%s %s"},{push:"candidates",reg:/^candidate:(\S*) (\d*) (\S*) (\d*) (\S*) (\d*) typ (\S*)(?: raddr (\S*) rport (\d*))?(?: tcptype (\S*))?(?: generation (\d*))?(?: network-id (\d*))?(?: network-cost (\d*))?/,names:["foundation","component","transport","priority","ip","port","type","raddr","rport","tcptype","generation","network-id","network-cost"],format:function(N){var I="candidate:%s %d %s %d %s %d typ %s";return I+=N.raddr!=null?" raddr %s rport %d":"%v%v",I+=N.tcptype!=null?" tcptype %s":"%v",N.generation!=null&&(I+=" generation %d"),I+=N["network-id"]!=null?" network-id %d":"%v",I+=N["network-cost"]!=null?" network-cost %d":"%v",I}},{name:"endOfCandidates",reg:/^(end-of-candidates)/},{name:"remoteCandidates",reg:/^remote-candidates:(.*)/,format:"remote-candidates:%s"},{name:"iceOptions",reg:/^ice-options:(\S*)/,format:"ice-options:%s"},{push:"ssrcs",reg:/^ssrc:(\d*) ([\w_-]*)(?::(.*))?/,names:["id","attribute","value"],format:function(N){var I="ssrc:%d";return N.attribute!=null&&(I+=" %s",N.value!=null&&(I+=":%s")),I}},{push:"ssrcGroups",reg:/^ssrc-group:([\x21\x23\x24\x25\x26\x27\x2A\x2B\x2D\x2E\w]*) (.*)/,names:["semantics","ssrcs"],format:"ssrc-group:%s %s"},{name:"msidSemantic",reg:/^msid-semantic:\s?(\w*) (\S*)/,names:["semantic","token"],format:"msid-semantic: %s %s"},{push:"groups",reg:/^group:(\w*) (.*)/,names:["type","mids"],format:"group:%s %s"},{name:"rtcpMux",reg:/^(rtcp-mux)/},{name:"rtcpRsize",reg:/^(rtcp-rsize)/},{name:"sctpmap",reg:/^sctpmap:([\w_/]*) (\S*)(?: (\S*))?/,names:["sctpmapNumber","app","maxMessageSize"],format:function(N){return N.maxMessageSize!=null?"sctpmap:%s %s %s":"sctpmap:%s %s"}},{name:"xGoogleFlag",reg:/^x-google-flag:([^\s]*)/,format:"x-google-flag:%s"},{push:"rids",reg:/^rid:([\d\w]+) (\w+)(?: ([\S| ]*))?/,names:["id","direction","params"],format:function(N){return N.params?"rid:%s %s %s":"rid:%s %s"}},{push:"imageattrs",reg:new RegExp("^imageattr:(\\d+|\\*)[\\s\\t]+(send|recv)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*)(?:[\\s\\t]+(recv|send)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*))?"),names:["pt","dir1","attrs1","dir2","attrs2"],format:function(N){return"imageattr:%s %s %s"+(N.dir2?" %s %s":"")}},{name:"simulcast",reg:new RegExp("^simulcast:(send|recv) ([a-zA-Z0-9\\-_~;,]+)(?:\\s?(send|recv) ([a-zA-Z0-9\\-_~;,]+))?$"),names:["dir1","list1","dir2","list2"],format:function(N){return"simulcast:%s %s"+(N.dir2?" %s %s":"")}},{name:"simulcast_03",reg:/^simulcast:[\s\t]+([\S+\s\t]+)$/,names:["value"],format:"simulcast: %s"},{name:"framerate",reg:/^framerate:(\d+(?:$|\.\d+))/,format:"framerate:%s"},{name:"sourceFilter",reg:/^source-filter: *(excl|incl) (\S*) (IP4|IP6|\*) (\S*) (.*)/,names:["filterMode","netType","addressTypes","destAddress","srcList"],format:"source-filter: %s %s %s %s %s"},{name:"bundleOnly",reg:/^(bundle-only)/},{name:"label",reg:/^label:(.+)/,format:"label:%s"},{name:"sctpPort",reg:/^sctp-port:(\d+)$/,format:"sctp-port:%s"},{name:"maxMessageSize",reg:/^max-message-size:(\d+)$/,format:"max-message-size:%s"},{push:"tsRefClocks",reg:/^ts-refclk:([^\s=]*)(?:=(\S*))?/,names:["clksrc","clksrcExt"],format:function(N){return"ts-refclk:%s"+(N.clksrcExt!=null?"=%s":"")}},{name:"mediaClk",reg:/^mediaclk:(?:id=(\S*))? *([^\s=]*)(?:=(\S*))?(?: *rate=(\d+)\/(\d+))?/,names:["id","mediaClockName","mediaClockValue","rateNumerator","rateDenominator"],format:function(N){var I="mediaclk:";return I+=N.id!=null?"id=%s %s":"%v%s",I+=N.mediaClockValue!=null?"=%s":"",I+=N.rateNumerator!=null?" rate=%s":"",I+=N.rateDenominator!=null?"/%s":"",I}},{name:"keywords",reg:/^keywds:(.+)$/,format:"keywds:%s"},{name:"content",reg:/^content:(.+)/,format:"content:%s"},{name:"bfcpFloorCtrl",reg:/^floorctrl:(c-only|s-only|c-s)/,format:"floorctrl:%s"},{name:"bfcpConfId",reg:/^confid:(\d+)/,format:"confid:%s"},{name:"bfcpUserId",reg:/^userid:(\d+)/,format:"userid:%s"},{name:"bfcpFloorId",reg:/^floorid:(.+) (?:m-stream|mstrm):(.+)/,names:["id","mStream"],format:"floorid:%s mstrm:%s"},{push:"invalid",names:["value"]}]};return Object.keys(O).forEach(function(N){var I=O[N];I.forEach(function(D){D.reg||(D.reg=/(.*)/),D.format||(D.format="%s")})}),grammar.exports}var hasRequiredParser;function requireParser(){return hasRequiredParser||(hasRequiredParser=1,function(O){var N=function(c){return String(Number(c))===c?Number(c):c},I=function(c,$,C,M){if(M&&!C)$[M]=N(c[1]);else for(var J=0;J<C.length;J+=1)c[J+1]!=null&&($[C[J]]=N(c[J+1]))},D=function(c,$,C){var M=c.name&&c.names;c.push&&!$[c.push]?$[c.push]=[]:M&&!$[c.name]&&($[c.name]={});var J=c.push?{}:M?$[c.name]:$;I(C.match(c.reg),J,c.names,c.name),c.push&&$[c.push].push(J)},f=requireGrammar(),k=RegExp.prototype.test.bind(/^([a-z])=(.*)/);O.parse=function(c){var $={},C=[],M=$;return c.split(/(\r\n|\r|\n)/).filter(k).forEach(function(J){var Z=J[0],z=J.slice(2);Z==="m"&&(C.push({rtp:[],fmtp:[]}),M=C[C.length-1]);for(var X=0;X<(f[Z]||[]).length;X+=1){var re=f[Z][X];if(re.reg.test(z))return D(re,M,z)}}),$.media=C,$};var i=function(c,$){var C=$.split(/=(.+)/,2);return C.length===2?c[C[0]]=N(C[1]):C.length===1&&$.length>1&&(c[C[0]]=void 0),c};O.parseParams=function(c){return c.split(/;\s?/).reduce(i,{})},O.parseFmtpConfig=O.parseParams,O.parsePayloads=function(c){return c.toString().split(" ").map(Number)},O.parseRemoteCandidates=function(c){for(var $=[],C=c.split(" ").map(N),M=0;M<C.length;M+=3)$.push({component:C[M],ip:C[M+1],port:C[M+2]});return $},O.parseImageAttributes=function(c){return c.split(" ").map(function($){return $.substring(1,$.length-1).split(",").reduce(i,{})})},O.parseSimulcastStreamList=function(c){return c.split(";").map(function($){return $.split(",").map(function(C){var M,J=!1;return C[0]!=="~"?M=N(C):(M=N(C.substring(1,C.length)),J=!0),{scid:M,paused:J}})})}}(parser)),parser}var writer$1,hasRequiredWriter$1;function requireWriter$1(){if(hasRequiredWriter$1)return writer$1;hasRequiredWriter$1=1;var O=requireGrammar(),N=/%[sdv%]/g,I=function(i){var c=1,$=arguments,C=$.length;return i.replace(N,function(M){if(c>=C)return M;var J=$[c];switch(c+=1,M){case"%%":return"%";case"%s":return String(J);case"%d":return Number(J);case"%v":return""}})},D=function(i,c,$){var C=c.format instanceof Function?c.format(c.push?$:$[c.name]):c.format,M=[i+"="+C];if(c.names)for(var J=0;J<c.names.length;J+=1){var Z=c.names[J];c.name?M.push($[c.name][Z]):M.push($[c.names[J]])}else M.push($[c.name]);return I.apply(null,M)},f=["v","o","s","i","u","e","p","c","b","t","r","z","a"],k=["i","c","b","a"];return writer$1=function(i,c){c=c||{},i.version==null&&(i.version=0),i.name==null&&(i.name=" "),i.media.forEach(function(J){J.payloads==null&&(J.payloads="")});var $=c.outerOrder||f,C=c.innerOrder||k,M=[];return $.forEach(function(J){O[J].forEach(function(Z){Z.name in i&&i[Z.name]!=null?M.push(D(J,Z,i)):Z.push in i&&i[Z.push]!=null&&i[Z.push].forEach(function(z){M.push(D(J,Z,z))})})}),i.media.forEach(function(J){M.push(D("m",O.m[0],J)),C.forEach(function(Z){O[Z].forEach(function(z){z.name in J&&J[z.name]!=null?M.push(D(Z,z,J)):z.push in J&&J[z.push]!=null&&J[z.push].forEach(function(X){M.push(D(Z,z,X))})})})}),M.join(`\r
|
|
2
2
|
`)+`\r
|
|
3
|
-
`},writer$1}var hasRequiredLib$1;function requireLib$1(){if(hasRequiredLib$1)return lib$1;hasRequiredLib$1=1;var O=requireParser(),N=requireWriter$1(),I=requireGrammar();return lib$1.grammar=I,lib$1.write=N,lib$1.parse=O.parse,lib$1.parseParams=O.parseParams,lib$1.parseFmtpConfig=O.parseFmtpConfig,lib$1.parsePayloads=O.parsePayloads,lib$1.parseRemoteCandidates=O.parseRemoteCandidates,lib$1.parseImageAttributes=O.parseImageAttributes,lib$1.parseSimulcastStreamList=O.parseSimulcastStreamList,lib$1}var libExports$1=requireLib$1();class VideoMediaContext{constructor(N){_e(this,"kind","video");_e(this,"stream",new MediaStream);_e(this,"stop",()=>{const N=this.stream.getTracks();for(const I of N)I.stop(),this.stream.removeTrack(I)});_e(this,"replaceStream",N=>{const I=this.stream,D=I.getTracks();for(const k of D)I.removeTrack(k);const[f]=N.getVideoTracks();f&&I.addTrack(f)});_e(this,"getStream",()=>this.stream);_e(this,"getTrack",()=>this.stream.getTracks()[0]);this.stream.addTrack(N)}}const enum_roomState={ready:"已就绪",checkAuth:"正在鉴权",connecting:"连接中",connected:"已连接",reconnect:"正在重新连接",disconnected:"已断开",failed:"连接错误",closed:"已关闭"};ht(enum_roomState);var y$1=Object.defineProperty,B=O=>{throw TypeError(O)},v=(O,N,I)=>N in O?y$1(O,N,{enumerable:!0,configurable:!0,writable:!0,value:I}):O[N]=I,l$1=(O,N,I)=>v(O,typeof N!="symbol"?N+"":N,I),T=(O,N,I)=>N.has(O)||B("Cannot "+I),t$2=(O,N,I)=>(T(O,N,"read from private field"),I?I.call(O):N.get(O)),o=(O,N,I)=>N.has(O)?B("Cannot add the same private member more than once"):N instanceof WeakSet?N.add(O):N.set(O,I),r$1=(O,N,I,D)=>(T(O,N,"write to private field"),N.set(O,I),I),s$1,a$1,h,u$1,m$1,p$1,d$1,x$1,g$1,b,w;class S{constructor(N){o(this,s$1,{url:"",binaryType:"blob",timeout:6*1e3,debug:!1,autoConnect:!1,reconnectCount:-1,reconnectTime:60*1e3,reconnectIntervalTime:5e3,heartbeatIntervalTime:1e4,checkReconnect:I=>!0,onReconnectSuccess:async I=>{},onReconnectStop:async I=>{},getHeartbeatMsg:()=>JSON.stringify({event:"heartbeat"}),onMessage:I=>{}}),l$1(this,"ws"),o(this,a$1,-1),o(this,h,-1),o(this,u$1,0),o(this,m$1,0),o(this,p$1,0),o(this,d$1,!1),l$1(this,"connect",()=>new Promise(async(I,D)=>{this.ws=new WebSocket(t$2(this,s$1).url),this.ws.binaryType=t$2(this,s$1).binaryType,this.ws.addEventListener("message",t$2(this,g$1)),this.ws.addEventListener("open",f=>{clearTimeout(t$2(this,u$1)),r$1(this,a$1,t$2(this,s$1).reconnectCount),r$1(this,h,-1),t$2(this,b).call(this),t$2(this,s$1).debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;padding:16px 0;","------->pr-ws: connect is success.",this.ws),I(f)}),this.ws.addEventListener("error",f=>{clearTimeout(t$2(this,u$1)),t$2(this,s$1).debug&&console.error("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;padding:16px 0;","------->pr-ws: connect is error.",f),D(f)}),this.ws.addEventListener("close",f=>{if(t$2(this,s$1).debug&&console.info("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;padding:16px 0;",`------->pr-ws: connect is close. code: ${f.code}, permanentClosed is ${t$2(this,d$1)}.`,f),t$2(this,w).call(this),!t$2(this,d$1))return this.reconnect(f);this.ws=void 0}),r$1(this,u$1,window.setTimeout(()=>{t$2(this,s$1).debug&&console.info("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;padding:16px 0;","------->pr-ws: connect is timeout.",this),D("connect is timeout.")},t$2(this,s$1).timeout))})),l$1(this,"reconnect",async I=>new Promise(D=>{t$2(this,s$1).debug&&console.info("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;padding:16px 0;","------->pr-ws: await reconnect.");const f=k=>{t$2(this,s$1).debug&&console.info("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;padding:16px 0;",`------->pr-ws: ${k}`),t$2(this,s$1).onReconnectStop({msg:k}),D(k)};if(t$2(this,x$1).call(this)===!1)return f("stop reconnect. exceed maxReconnectionTime.");if(t$2(this,a$1)!==-1&&t$2(this,a$1)===0)return f("stop reconnect. surplusReconnectCount is 0.");if(!t$2(this,s$1).checkReconnect(I))return f("stop reconnect. checkReconnect is false.");t$2(this,s$1).debug&&console.info("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;padding:16px 0;",`------->pr-ws: await ${t$2(this,s$1).reconnectIntervalTime}ms run reconnect. surplusReconnectCount is ${t$2(this,a$1)}`,I),r$1(this,m$1,window.setTimeout(async()=>{r$1(this,a$1,Math.max(-1,t$2(this,a$1)-1)),await this.connect();try{await t$2(this,s$1).onReconnectSuccess(this.ws)}catch(k){console.error("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->pr-ws: onReconnectSuccess is error",k)}D(!0)},t$2(this,s$1).reconnectIntervalTime))})),l$1(this,"sendMessage",async I=>{var D;(!this.ws||this.ws.readyState!==1)&&(t$2(this,s$1).debug&&console.warn("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;padding:16px 0;","------->pr-ws: ws is not ready."),t$2(this,s$1).autoConnect&&(t$2(this,s$1).debug&&console.warn("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;padding:16px 0;","------->pr-ws: await ws connect."),await this.connect())),(D=this.ws)==null||D.send(I)}),l$1(this,"close",async(I=1e3,D="correctly close.")=>{var f;this.ws&&(r$1(this,d$1,!0),t$2(this,w).call(this),(f=this.ws)==null||f.close(I,D))}),o(this,x$1,()=>{const I=Date.now();return t$2(this,h)===-1&&r$1(this,h,I+t$2(this,s$1).reconnectTime),!(I>t$2(this,h))}),o(this,g$1,I=>{const{data:D}=I;t$2(this,s$1).onMessage(D)}),o(this,b,()=>{r$1(this,p$1,window.setInterval(()=>{const I=t$2(this,s$1).getHeartbeatMsg();I&&this.sendMessage(I)},t$2(this,s$1).heartbeatIntervalTime))}),o(this,w,()=>{clearInterval(t$2(this,m$1)),clearInterval(t$2(this,p$1))}),r$1(this,s$1,{...t$2(this,s$1),...N}),r$1(this,a$1,t$2(this,s$1).reconnectCount)}}s$1=new WeakMap,a$1=new WeakMap,h=new WeakMap,u$1=new WeakMap,m$1=new WeakMap,p$1=new WeakMap,d$1=new WeakMap,x$1=new WeakMap,g$1=new WeakMap,b=new WeakMap,w=new WeakMap;var indexMinimal={},minimal$1={},aspromise,hasRequiredAspromise;function requireAspromise(){if(hasRequiredAspromise)return aspromise;hasRequiredAspromise=1,aspromise=O;function O(N,I){for(var D=new Array(arguments.length-1),f=0,k=2,i=!0;k<arguments.length;)D[f++]=arguments[k++];return new Promise(function($,C){D[f]=function(Z){if(i)if(i=!1,Z)C(Z);else{for(var J=new Array(arguments.length-1),z=0;z<J.length;)J[z++]=arguments[z];$.apply(null,J)}};try{N.apply(I||null,D)}catch(M){i&&(i=!1,C(M))}})}return aspromise}var base64={},hasRequiredBase64;function requireBase64(){return hasRequiredBase64||(hasRequiredBase64=1,function(O){var N=O;N.length=function(c){var $=c.length;if(!$)return 0;for(var C=0;--$%4>1&&c.charAt($)==="=";)++C;return Math.ceil(c.length*3)/4-C};for(var I=new Array(64),D=new Array(123),f=0;f<64;)D[I[f]=f<26?f+65:f<52?f+71:f<62?f-4:f-59|43]=f++;N.encode=function(c,$,C){for(var M=null,Z=[],J=0,z=0,Q;$<C;){var ee=c[$++];switch(z){case 0:Z[J++]=I[ee>>2],Q=(ee&3)<<4,z=1;break;case 1:Z[J++]=I[Q|ee>>4],Q=(ee&15)<<2,z=2;break;case 2:Z[J++]=I[Q|ee>>6],Z[J++]=I[ee&63],z=0;break}J>8191&&((M||(M=[])).push(String.fromCharCode.apply(String,Z)),J=0)}return z&&(Z[J++]=I[Q],Z[J++]=61,z===1&&(Z[J++]=61)),M?(J&&M.push(String.fromCharCode.apply(String,Z.slice(0,J))),M.join("")):String.fromCharCode.apply(String,Z.slice(0,J))};var k="invalid encoding";N.decode=function(c,$,C){for(var M=C,Z=0,J,z=0;z<c.length;){var Q=c.charCodeAt(z++);if(Q===61&&Z>1)break;if((Q=D[Q])===void 0)throw Error(k);switch(Z){case 0:J=Q,Z=1;break;case 1:$[C++]=J<<2|(Q&48)>>4,J=Q,Z=2;break;case 2:$[C++]=(J&15)<<4|(Q&60)>>2,J=Q,Z=3;break;case 3:$[C++]=(J&3)<<6|Q,Z=0;break}}if(Z===1)throw Error(k);return C-M},N.test=function(c){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(c)}}(base64)),base64}var eventemitter,hasRequiredEventemitter;function requireEventemitter(){if(hasRequiredEventemitter)return eventemitter;hasRequiredEventemitter=1,eventemitter=O;function O(){this._listeners={}}return O.prototype.on=function(I,D,f){return(this._listeners[I]||(this._listeners[I]=[])).push({fn:D,ctx:f||this}),this},O.prototype.off=function(I,D){if(I===void 0)this._listeners={};else if(D===void 0)this._listeners[I]=[];else for(var f=this._listeners[I],k=0;k<f.length;)f[k].fn===D?f.splice(k,1):++k;return this},O.prototype.emit=function(I){var D=this._listeners[I];if(D){for(var f=[],k=1;k<arguments.length;)f.push(arguments[k++]);for(k=0;k<D.length;)D[k].fn.apply(D[k++].ctx,f)}return this},eventemitter}var float,hasRequiredFloat;function requireFloat(){if(hasRequiredFloat)return float;hasRequiredFloat=1,float=O(O);function O(k){return typeof Float32Array<"u"?function(){var i=new Float32Array([-0]),c=new Uint8Array(i.buffer),$=c[3]===128;function C(z,Q,ee){i[0]=z,Q[ee]=c[0],Q[ee+1]=c[1],Q[ee+2]=c[2],Q[ee+3]=c[3]}function M(z,Q,ee){i[0]=z,Q[ee]=c[3],Q[ee+1]=c[2],Q[ee+2]=c[1],Q[ee+3]=c[0]}k.writeFloatLE=$?C:M,k.writeFloatBE=$?M:C;function Z(z,Q){return c[0]=z[Q],c[1]=z[Q+1],c[2]=z[Q+2],c[3]=z[Q+3],i[0]}function J(z,Q){return c[3]=z[Q],c[2]=z[Q+1],c[1]=z[Q+2],c[0]=z[Q+3],i[0]}k.readFloatLE=$?Z:J,k.readFloatBE=$?J:Z}():function(){function i($,C,M,Z){var J=C<0?1:0;if(J&&(C=-C),C===0)$(1/C>0?0:2147483648,M,Z);else if(isNaN(C))$(2143289344,M,Z);else if(C>34028234663852886e22)$((J<<31|2139095040)>>>0,M,Z);else if(C<11754943508222875e-54)$((J<<31|Math.round(C/1401298464324817e-60))>>>0,M,Z);else{var z=Math.floor(Math.log(C)/Math.LN2),Q=Math.round(C*Math.pow(2,-z)*8388608)&8388607;$((J<<31|z+127<<23|Q)>>>0,M,Z)}}k.writeFloatLE=i.bind(null,N),k.writeFloatBE=i.bind(null,I);function c($,C,M){var Z=$(C,M),J=(Z>>31)*2+1,z=Z>>>23&255,Q=Z&8388607;return z===255?Q?NaN:J*(1/0):z===0?J*1401298464324817e-60*Q:J*Math.pow(2,z-150)*(Q+8388608)}k.readFloatLE=c.bind(null,D),k.readFloatBE=c.bind(null,f)}(),typeof Float64Array<"u"?function(){var i=new Float64Array([-0]),c=new Uint8Array(i.buffer),$=c[7]===128;function C(z,Q,ee){i[0]=z,Q[ee]=c[0],Q[ee+1]=c[1],Q[ee+2]=c[2],Q[ee+3]=c[3],Q[ee+4]=c[4],Q[ee+5]=c[5],Q[ee+6]=c[6],Q[ee+7]=c[7]}function M(z,Q,ee){i[0]=z,Q[ee]=c[7],Q[ee+1]=c[6],Q[ee+2]=c[5],Q[ee+3]=c[4],Q[ee+4]=c[3],Q[ee+5]=c[2],Q[ee+6]=c[1],Q[ee+7]=c[0]}k.writeDoubleLE=$?C:M,k.writeDoubleBE=$?M:C;function Z(z,Q){return c[0]=z[Q],c[1]=z[Q+1],c[2]=z[Q+2],c[3]=z[Q+3],c[4]=z[Q+4],c[5]=z[Q+5],c[6]=z[Q+6],c[7]=z[Q+7],i[0]}function J(z,Q){return c[7]=z[Q],c[6]=z[Q+1],c[5]=z[Q+2],c[4]=z[Q+3],c[3]=z[Q+4],c[2]=z[Q+5],c[1]=z[Q+6],c[0]=z[Q+7],i[0]}k.readDoubleLE=$?Z:J,k.readDoubleBE=$?J:Z}():function(){function i($,C,M,Z,J,z){var Q=Z<0?1:0;if(Q&&(Z=-Z),Z===0)$(0,J,z+C),$(1/Z>0?0:2147483648,J,z+M);else if(isNaN(Z))$(0,J,z+C),$(2146959360,J,z+M);else if(Z>17976931348623157e292)$(0,J,z+C),$((Q<<31|2146435072)>>>0,J,z+M);else{var ee;if(Z<22250738585072014e-324)ee=Z/5e-324,$(ee>>>0,J,z+C),$((Q<<31|ee/4294967296)>>>0,J,z+M);else{var Y=Math.floor(Math.log(Z)/Math.LN2);Y===1024&&(Y=1023),ee=Z*Math.pow(2,-Y),$(ee*4503599627370496>>>0,J,z+C),$((Q<<31|Y+1023<<20|ee*1048576&1048575)>>>0,J,z+M)}}}k.writeDoubleLE=i.bind(null,N,0,4),k.writeDoubleBE=i.bind(null,I,4,0);function c($,C,M,Z,J){var z=$(Z,J+C),Q=$(Z,J+M),ee=(Q>>31)*2+1,Y=Q>>>20&2047,te=4294967296*(Q&1048575)+z;return Y===2047?te?NaN:ee*(1/0):Y===0?ee*5e-324*te:ee*Math.pow(2,Y-1075)*(te+4503599627370496)}k.readDoubleLE=c.bind(null,D,0,4),k.readDoubleBE=c.bind(null,f,4,0)}(),k}function N(k,i,c){i[c]=k&255,i[c+1]=k>>>8&255,i[c+2]=k>>>16&255,i[c+3]=k>>>24}function I(k,i,c){i[c]=k>>>24,i[c+1]=k>>>16&255,i[c+2]=k>>>8&255,i[c+3]=k&255}function D(k,i){return(k[i]|k[i+1]<<8|k[i+2]<<16|k[i+3]<<24)>>>0}function f(k,i){return(k[i]<<24|k[i+1]<<16|k[i+2]<<8|k[i+3])>>>0}return float}var inquire_1,hasRequiredInquire;function requireInquire(){if(hasRequiredInquire)return inquire_1;hasRequiredInquire=1,inquire_1=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(O){}return null}return inquire_1}var utf8={},hasRequiredUtf8;function requireUtf8(){return hasRequiredUtf8||(hasRequiredUtf8=1,function(O){var N=O;N.length=function(D){for(var f=0,k=0,i=0;i<D.length;++i)k=D.charCodeAt(i),k<128?f+=1:k<2048?f+=2:(k&64512)===55296&&(D.charCodeAt(i+1)&64512)===56320?(++i,f+=4):f+=3;return f},N.read=function(D,f,k){var i=k-f;if(i<1)return"";for(var c=null,$=[],C=0,M;f<k;)M=D[f++],M<128?$[C++]=M:M>191&&M<224?$[C++]=(M&31)<<6|D[f++]&63:M>239&&M<365?(M=((M&7)<<18|(D[f++]&63)<<12|(D[f++]&63)<<6|D[f++]&63)-65536,$[C++]=55296+(M>>10),$[C++]=56320+(M&1023)):$[C++]=(M&15)<<12|(D[f++]&63)<<6|D[f++]&63,C>8191&&((c||(c=[])).push(String.fromCharCode.apply(String,$)),C=0);return c?(C&&c.push(String.fromCharCode.apply(String,$.slice(0,C))),c.join("")):String.fromCharCode.apply(String,$.slice(0,C))},N.write=function(D,f,k){for(var i=k,c,$,C=0;C<D.length;++C)c=D.charCodeAt(C),c<128?f[k++]=c:c<2048?(f[k++]=c>>6|192,f[k++]=c&63|128):(c&64512)===55296&&(($=D.charCodeAt(C+1))&64512)===56320?(c=65536+((c&1023)<<10)+($&1023),++C,f[k++]=c>>18|240,f[k++]=c>>12&63|128,f[k++]=c>>6&63|128,f[k++]=c&63|128):(f[k++]=c>>12|224,f[k++]=c>>6&63|128,f[k++]=c&63|128);return k-i}}(utf8)),utf8}var pool_1,hasRequiredPool;function requirePool(){if(hasRequiredPool)return pool_1;hasRequiredPool=1,pool_1=O;function O(N,I,D){var f=D||8192,k=f>>>1,i=null,c=f;return function(C){if(C<1||C>k)return N(C);c+C>f&&(i=N(f),c=0);var M=I.call(i,c,c+=C);return c&7&&(c=(c|7)+1),M}}return pool_1}var longbits,hasRequiredLongbits;function requireLongbits(){if(hasRequiredLongbits)return longbits;hasRequiredLongbits=1,longbits=N;var O=requireMinimal$1();function N(k,i){this.lo=k>>>0,this.hi=i>>>0}var I=N.zero=new N(0,0);I.toNumber=function(){return 0},I.zzEncode=I.zzDecode=function(){return this},I.length=function(){return 1};var D=N.zeroHash="\0\0\0\0\0\0\0\0";N.fromNumber=function(i){if(i===0)return I;var c=i<0;c&&(i=-i);var $=i>>>0,C=(i-$)/4294967296>>>0;return c&&(C=~C>>>0,$=~$>>>0,++$>4294967295&&($=0,++C>4294967295&&(C=0))),new N($,C)},N.from=function(i){if(typeof i=="number")return N.fromNumber(i);if(O.isString(i))if(O.Long)i=O.Long.fromString(i);else return N.fromNumber(parseInt(i,10));return i.low||i.high?new N(i.low>>>0,i.high>>>0):I},N.prototype.toNumber=function(i){if(!i&&this.hi>>>31){var c=~this.lo+1>>>0,$=~this.hi>>>0;return c||($=$+1>>>0),-(c+$*4294967296)}return this.lo+this.hi*4294967296},N.prototype.toLong=function(i){return O.Long?new O.Long(this.lo|0,this.hi|0,!!i):{low:this.lo|0,high:this.hi|0,unsigned:!!i}};var f=String.prototype.charCodeAt;return N.fromHash=function(i){return i===D?I:new N((f.call(i,0)|f.call(i,1)<<8|f.call(i,2)<<16|f.call(i,3)<<24)>>>0,(f.call(i,4)|f.call(i,5)<<8|f.call(i,6)<<16|f.call(i,7)<<24)>>>0)},N.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},N.prototype.zzEncode=function(){var i=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^i)>>>0,this.lo=(this.lo<<1^i)>>>0,this},N.prototype.zzDecode=function(){var i=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^i)>>>0,this.hi=(this.hi>>>1^i)>>>0,this},N.prototype.length=function(){var i=this.lo,c=(this.lo>>>28|this.hi<<4)>>>0,$=this.hi>>>24;return $===0?c===0?i<16384?i<128?1:2:i<2097152?3:4:c<16384?c<128?5:6:c<2097152?7:8:$<128?9:10},longbits}var hasRequiredMinimal$1;function requireMinimal$1(){return hasRequiredMinimal$1||(hasRequiredMinimal$1=1,function(O){var N=O;N.asPromise=requireAspromise(),N.base64=requireBase64(),N.EventEmitter=requireEventemitter(),N.float=requireFloat(),N.inquire=requireInquire(),N.utf8=requireUtf8(),N.pool=requirePool(),N.LongBits=requireLongbits(),N.isNode=!!(typeof commonjsGlobal<"u"&&commonjsGlobal&&commonjsGlobal.process&&commonjsGlobal.process.versions&&commonjsGlobal.process.versions.node),N.global=N.isNode&&commonjsGlobal||typeof window<"u"&&window||typeof self<"u"&&self||minimal$1,N.emptyArray=Object.freeze?Object.freeze([]):[],N.emptyObject=Object.freeze?Object.freeze({}):{},N.isInteger=Number.isInteger||function(k){return typeof k=="number"&&isFinite(k)&&Math.floor(k)===k},N.isString=function(k){return typeof k=="string"||k instanceof String},N.isObject=function(k){return k&&typeof k=="object"},N.isset=N.isSet=function(k,i){var c=k[i];return c!=null&&k.hasOwnProperty(i)?typeof c!="object"||(Array.isArray(c)?c.length:Object.keys(c).length)>0:!1},N.Buffer=function(){try{var f=N.inquire("buffer").Buffer;return f.prototype.utf8Write?f:null}catch{return null}}(),N._Buffer_from=null,N._Buffer_allocUnsafe=null,N.newBuffer=function(k){return typeof k=="number"?N.Buffer?N._Buffer_allocUnsafe(k):new N.Array(k):N.Buffer?N._Buffer_from(k):typeof Uint8Array>"u"?k:new Uint8Array(k)},N.Array=typeof Uint8Array<"u"?Uint8Array:Array,N.Long=N.global.dcodeIO&&N.global.dcodeIO.Long||N.global.Long||N.inquire("long"),N.key2Re=/^true|false|0|1$/,N.key32Re=/^-?(?:0|[1-9][0-9]*)$/,N.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,N.longToHash=function(k){return k?N.LongBits.from(k).toHash():N.LongBits.zeroHash},N.longFromHash=function(k,i){var c=N.LongBits.fromHash(k);return N.Long?N.Long.fromBits(c.lo,c.hi,i):c.toNumber(!!i)};function I(f,k,i){for(var c=Object.keys(k),$=0;$<c.length;++$)(f[c[$]]===void 0||!i)&&(f[c[$]]=k[c[$]]);return f}N.merge=I,N.lcFirst=function(k){return k.charAt(0).toLowerCase()+k.substring(1)};function D(f){function k(i,c){if(!(this instanceof k))return new k(i,c);Object.defineProperty(this,"message",{get:function(){return i}}),Error.captureStackTrace?Error.captureStackTrace(this,k):Object.defineProperty(this,"stack",{value:new Error().stack||""}),c&&I(this,c)}return k.prototype=Object.create(Error.prototype,{constructor:{value:k,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return f},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),k}N.newError=D,N.ProtocolError=D("ProtocolError"),N.oneOfGetter=function(k){for(var i={},c=0;c<k.length;++c)i[k[c]]=1;return function(){for(var $=Object.keys(this),C=$.length-1;C>-1;--C)if(i[$[C]]===1&&this[$[C]]!==void 0&&this[$[C]]!==null)return $[C]}},N.oneOfSetter=function(k){return function(i){for(var c=0;c<k.length;++c)k[c]!==i&&delete this[k[c]]}},N.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},N._configure=function(){var f=N.Buffer;if(!f){N._Buffer_from=N._Buffer_allocUnsafe=null;return}N._Buffer_from=f.from!==Uint8Array.from&&f.from||function(i,c){return new f(i,c)},N._Buffer_allocUnsafe=f.allocUnsafe||function(i){return new f(i)}}}(minimal$1)),minimal$1}var writer,hasRequiredWriter;function requireWriter(){if(hasRequiredWriter)return writer;hasRequiredWriter=1,writer=$;var O=requireMinimal$1(),N,I=O.LongBits,D=O.base64,f=O.utf8;function k(Y,te,ie){this.fn=Y,this.len=te,this.next=void 0,this.val=ie}function i(){}function c(Y){this.head=Y.head,this.tail=Y.tail,this.len=Y.len,this.next=Y.states}function $(){this.len=0,this.head=new k(i,0,0),this.tail=this.head,this.states=null}var C=function(){return O.Buffer?function(){return($.create=function(){return new N})()}:function(){return new $}};$.create=C(),$.alloc=function(te){return new O.Array(te)},O.Array!==Array&&($.alloc=O.pool($.alloc,O.Array.prototype.subarray)),$.prototype._push=function(te,ie,ye){return this.tail=this.tail.next=new k(te,ie,ye),this.len+=ie,this};function M(Y,te,ie){te[ie]=Y&255}function Z(Y,te,ie){for(;Y>127;)te[ie++]=Y&127|128,Y>>>=7;te[ie]=Y}function J(Y,te){this.len=Y,this.next=void 0,this.val=te}J.prototype=Object.create(k.prototype),J.prototype.fn=Z,$.prototype.uint32=function(te){return this.len+=(this.tail=this.tail.next=new J((te=te>>>0)<128?1:te<16384?2:te<2097152?3:te<268435456?4:5,te)).len,this},$.prototype.int32=function(te){return te<0?this._push(z,10,I.fromNumber(te)):this.uint32(te)},$.prototype.sint32=function(te){return this.uint32((te<<1^te>>31)>>>0)};function z(Y,te,ie){for(;Y.hi;)te[ie++]=Y.lo&127|128,Y.lo=(Y.lo>>>7|Y.hi<<25)>>>0,Y.hi>>>=7;for(;Y.lo>127;)te[ie++]=Y.lo&127|128,Y.lo=Y.lo>>>7;te[ie++]=Y.lo}$.prototype.uint64=function(te){var ie=I.from(te);return this._push(z,ie.length(),ie)},$.prototype.int64=$.prototype.uint64,$.prototype.sint64=function(te){var ie=I.from(te).zzEncode();return this._push(z,ie.length(),ie)},$.prototype.bool=function(te){return this._push(M,1,te?1:0)};function Q(Y,te,ie){te[ie]=Y&255,te[ie+1]=Y>>>8&255,te[ie+2]=Y>>>16&255,te[ie+3]=Y>>>24}$.prototype.fixed32=function(te){return this._push(Q,4,te>>>0)},$.prototype.sfixed32=$.prototype.fixed32,$.prototype.fixed64=function(te){var ie=I.from(te);return this._push(Q,4,ie.lo)._push(Q,4,ie.hi)},$.prototype.sfixed64=$.prototype.fixed64,$.prototype.float=function(te){return this._push(O.float.writeFloatLE,4,te)},$.prototype.double=function(te){return this._push(O.float.writeDoubleLE,8,te)};var ee=O.Array.prototype.set?function(te,ie,ye){ie.set(te,ye)}:function(te,ie,ye){for(var re=0;re<te.length;++re)ie[ye+re]=te[re]};return $.prototype.bytes=function(te){var ie=te.length>>>0;if(!ie)return this._push(M,1,0);if(O.isString(te)){var ye=$.alloc(ie=D.length(te));D.decode(te,ye,0),te=ye}return this.uint32(ie)._push(ee,ie,te)},$.prototype.string=function(te){var ie=f.length(te);return ie?this.uint32(ie)._push(f.write,ie,te):this._push(M,1,0)},$.prototype.fork=function(){return this.states=new c(this),this.head=this.tail=new k(i,0,0),this.len=0,this},$.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new k(i,0,0),this.len=0),this},$.prototype.ldelim=function(){var te=this.head,ie=this.tail,ye=this.len;return this.reset().uint32(ye),ye&&(this.tail.next=te.next,this.tail=ie,this.len+=ye),this},$.prototype.finish=function(){for(var te=this.head.next,ie=this.constructor.alloc(this.len),ye=0;te;)te.fn(te.val,ie,ye),ye+=te.len,te=te.next;return ie},$._configure=function(Y){N=Y,$.create=C(),N._configure()},writer}var writer_buffer,hasRequiredWriter_buffer;function requireWriter_buffer(){if(hasRequiredWriter_buffer)return writer_buffer;hasRequiredWriter_buffer=1,writer_buffer=I;var O=requireWriter();(I.prototype=Object.create(O.prototype)).constructor=I;var N=requireMinimal$1();function I(){O.call(this)}I._configure=function(){I.alloc=N._Buffer_allocUnsafe,I.writeBytesBuffer=N.Buffer&&N.Buffer.prototype instanceof Uint8Array&&N.Buffer.prototype.set.name==="set"?function(k,i,c){i.set(k,c)}:function(k,i,c){if(k.copy)k.copy(i,c,0,k.length);else for(var $=0;$<k.length;)i[c++]=k[$++]}},I.prototype.bytes=function(k){N.isString(k)&&(k=N._Buffer_from(k,"base64"));var i=k.length>>>0;return this.uint32(i),i&&this._push(I.writeBytesBuffer,i,k),this};function D(f,k,i){f.length<40?N.utf8.write(f,k,i):k.utf8Write?k.utf8Write(f,i):k.write(f,i)}return I.prototype.string=function(k){var i=N.Buffer.byteLength(k);return this.uint32(i),i&&this._push(D,i,k),this},I._configure(),writer_buffer}var reader,hasRequiredReader;function requireReader(){if(hasRequiredReader)return reader;hasRequiredReader=1,reader=k;var O=requireMinimal$1(),N,I=O.LongBits,D=O.utf8;function f(Z,J){return RangeError("index out of range: "+Z.pos+" + "+(J||1)+" > "+Z.len)}function k(Z){this.buf=Z,this.pos=0,this.len=Z.length}var i=typeof Uint8Array<"u"?function(J){if(J instanceof Uint8Array||Array.isArray(J))return new k(J);throw Error("illegal buffer")}:function(J){if(Array.isArray(J))return new k(J);throw Error("illegal buffer")},c=function(){return O.Buffer?function(z){return(k.create=function(ee){return O.Buffer.isBuffer(ee)?new N(ee):i(ee)})(z)}:i};k.create=c(),k.prototype._slice=O.Array.prototype.subarray||O.Array.prototype.slice,k.prototype.uint32=function(){var J=4294967295;return function(){if(J=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(J=(J|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(J=(J|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(J=(J|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(J=(J|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return J;if((this.pos+=5)>this.len)throw this.pos=this.len,f(this,10);return J}}(),k.prototype.int32=function(){return this.uint32()|0},k.prototype.sint32=function(){var J=this.uint32();return J>>>1^-(J&1)|0};function $(){var Z=new I(0,0),J=0;if(this.len-this.pos>4){for(;J<4;++J)if(Z.lo=(Z.lo|(this.buf[this.pos]&127)<<J*7)>>>0,this.buf[this.pos++]<128)return Z;if(Z.lo=(Z.lo|(this.buf[this.pos]&127)<<28)>>>0,Z.hi=(Z.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return Z;J=0}else{for(;J<3;++J){if(this.pos>=this.len)throw f(this);if(Z.lo=(Z.lo|(this.buf[this.pos]&127)<<J*7)>>>0,this.buf[this.pos++]<128)return Z}return Z.lo=(Z.lo|(this.buf[this.pos++]&127)<<J*7)>>>0,Z}if(this.len-this.pos>4){for(;J<5;++J)if(Z.hi=(Z.hi|(this.buf[this.pos]&127)<<J*7+3)>>>0,this.buf[this.pos++]<128)return Z}else for(;J<5;++J){if(this.pos>=this.len)throw f(this);if(Z.hi=(Z.hi|(this.buf[this.pos]&127)<<J*7+3)>>>0,this.buf[this.pos++]<128)return Z}throw Error("invalid varint encoding")}k.prototype.bool=function(){return this.uint32()!==0};function C(Z,J){return(Z[J-4]|Z[J-3]<<8|Z[J-2]<<16|Z[J-1]<<24)>>>0}k.prototype.fixed32=function(){if(this.pos+4>this.len)throw f(this,4);return C(this.buf,this.pos+=4)},k.prototype.sfixed32=function(){if(this.pos+4>this.len)throw f(this,4);return C(this.buf,this.pos+=4)|0};function M(){if(this.pos+8>this.len)throw f(this,8);return new I(C(this.buf,this.pos+=4),C(this.buf,this.pos+=4))}return k.prototype.float=function(){if(this.pos+4>this.len)throw f(this,4);var J=O.float.readFloatLE(this.buf,this.pos);return this.pos+=4,J},k.prototype.double=function(){if(this.pos+8>this.len)throw f(this,4);var J=O.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,J},k.prototype.bytes=function(){var J=this.uint32(),z=this.pos,Q=this.pos+J;if(Q>this.len)throw f(this,J);if(this.pos+=J,Array.isArray(this.buf))return this.buf.slice(z,Q);if(z===Q){var ee=O.Buffer;return ee?ee.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,z,Q)},k.prototype.string=function(){var J=this.bytes();return D.read(J,0,J.length)},k.prototype.skip=function(J){if(typeof J=="number"){if(this.pos+J>this.len)throw f(this,J);this.pos+=J}else do if(this.pos>=this.len)throw f(this);while(this.buf[this.pos++]&128);return this},k.prototype.skipType=function(Z){switch(Z){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(Z=this.uint32()&7)!==4;)this.skipType(Z);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+Z+" at offset "+this.pos)}return this},k._configure=function(Z){N=Z,k.create=c(),N._configure();var J=O.Long?"toLong":"toNumber";O.merge(k.prototype,{int64:function(){return $.call(this)[J](!1)},uint64:function(){return $.call(this)[J](!0)},sint64:function(){return $.call(this).zzDecode()[J](!1)},fixed64:function(){return M.call(this)[J](!0)},sfixed64:function(){return M.call(this)[J](!1)}})},reader}var reader_buffer,hasRequiredReader_buffer;function requireReader_buffer(){if(hasRequiredReader_buffer)return reader_buffer;hasRequiredReader_buffer=1,reader_buffer=I;var O=requireReader();(I.prototype=Object.create(O.prototype)).constructor=I;var N=requireMinimal$1();function I(D){O.call(this,D)}return I._configure=function(){N.Buffer&&(I.prototype._slice=N.Buffer.prototype.slice)},I.prototype.string=function(){var f=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+f,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+f,this.len))},I._configure(),reader_buffer}var rpc={},service,hasRequiredService;function requireService(){if(hasRequiredService)return service;hasRequiredService=1,service=N;var O=requireMinimal$1();(N.prototype=Object.create(O.EventEmitter.prototype)).constructor=N;function N(I,D,f){if(typeof I!="function")throw TypeError("rpcImpl must be a function");O.EventEmitter.call(this),this.rpcImpl=I,this.requestDelimited=!!D,this.responseDelimited=!!f}return N.prototype.rpcCall=function I(D,f,k,i,c){if(!i)throw TypeError("request must be specified");var $=this;if(!c)return O.asPromise(I,$,D,f,k,i);if(!$.rpcImpl){setTimeout(function(){c(Error("already ended"))},0);return}try{return $.rpcImpl(D,f[$.requestDelimited?"encodeDelimited":"encode"](i).finish(),function(M,Z){if(M)return $.emit("error",M,D),c(M);if(Z===null){$.end(!0);return}if(!(Z instanceof k))try{Z=k[$.responseDelimited?"decodeDelimited":"decode"](Z)}catch(J){return $.emit("error",J,D),c(J)}return $.emit("data",Z,D),c(null,Z)})}catch(C){$.emit("error",C,D),setTimeout(function(){c(C)},0);return}},N.prototype.end=function(D){return this.rpcImpl&&(D||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this},service}var hasRequiredRpc;function requireRpc(){return hasRequiredRpc||(hasRequiredRpc=1,function(O){var N=O;N.Service=requireService()}(rpc)),rpc}var roots,hasRequiredRoots;function requireRoots(){return hasRequiredRoots||(hasRequiredRoots=1,roots={}),roots}var hasRequiredIndexMinimal;function requireIndexMinimal(){return hasRequiredIndexMinimal||(hasRequiredIndexMinimal=1,function(O){var N=O;N.build="minimal",N.Writer=requireWriter(),N.BufferWriter=requireWriter_buffer(),N.Reader=requireReader(),N.BufferReader=requireReader_buffer(),N.util=requireMinimal$1(),N.rpc=requireRpc(),N.roots=requireRoots(),N.configure=I;function I(){N.util._configure(),N.Writer._configure(N.BufferWriter),N.Reader._configure(N.BufferReader)}I()}(indexMinimal)),indexMinimal}var minimal,hasRequiredMinimal;function requireMinimal(){return hasRequiredMinimal||(hasRequiredMinimal=1,minimal=requireIndexMinimal()),minimal}var minimalExports=requireMinimal();const $Reader=minimalExports.Reader,$Writer=minimalExports.Writer,$util=minimalExports.util,$root=minimalExports.roots.default||(minimalExports.roots.default={}),com=$root.com=(()=>{const O={};return O.quick=function(){const N={};return N.voice=function(){const I={};return I.proto=function(){const D={};return D.CommonReq=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.event="",f.prototype.data=$util.newBuffer([]),f.prototype.sn=$util.Long?$util.Long.fromBits(0,0,!1):0,f.prototype.time=$util.Long?$util.Long.fromBits(0,0,!1):0,f.prototype.valid=$util.Long?$util.Long.fromBits(0,0,!1):0,f.prototype.version=0,f.prototype.compress=!1,f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.event!=null&&Object.hasOwnProperty.call(i,"event")&&c.uint32(10).string(i.event),i.data!=null&&Object.hasOwnProperty.call(i,"data")&&c.uint32(18).bytes(i.data),i.sn!=null&&Object.hasOwnProperty.call(i,"sn")&&c.uint32(24).int64(i.sn),i.time!=null&&Object.hasOwnProperty.call(i,"time")&&c.uint32(32).int64(i.time),i.valid!=null&&Object.hasOwnProperty.call(i,"valid")&&c.uint32(40).int64(i.valid),i.version!=null&&Object.hasOwnProperty.call(i,"version")&&c.uint32(48).int32(i.version),i.compress!=null&&Object.hasOwnProperty.call(i,"compress")&&c.uint32(56).bool(i.compress),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.CommonReq;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.event=i.string();break}case 2:{C.data=i.bytes();break}case 3:{C.sn=i.int64();break}case 4:{C.time=i.int64();break}case 5:{C.valid=i.int64();break}case 6:{C.version=i.int32();break}case 7:{C.compress=i.bool();break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){return typeof i!="object"||i===null?"object expected":i.event!=null&&i.hasOwnProperty("event")&&!$util.isString(i.event)?"event: string expected":i.data!=null&&i.hasOwnProperty("data")&&!(i.data&&typeof i.data.length=="number"||$util.isString(i.data))?"data: buffer expected":i.sn!=null&&i.hasOwnProperty("sn")&&!$util.isInteger(i.sn)&&!(i.sn&&$util.isInteger(i.sn.low)&&$util.isInteger(i.sn.high))?"sn: integer|Long expected":i.time!=null&&i.hasOwnProperty("time")&&!$util.isInteger(i.time)&&!(i.time&&$util.isInteger(i.time.low)&&$util.isInteger(i.time.high))?"time: integer|Long expected":i.valid!=null&&i.hasOwnProperty("valid")&&!$util.isInteger(i.valid)&&!(i.valid&&$util.isInteger(i.valid.low)&&$util.isInteger(i.valid.high))?"valid: integer|Long expected":i.version!=null&&i.hasOwnProperty("version")&&!$util.isInteger(i.version)?"version: integer expected":i.compress!=null&&i.hasOwnProperty("compress")&&typeof i.compress!="boolean"?"compress: boolean expected":null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.CommonReq)return i;let c=new $root.com.quick.voice.proto.CommonReq;return i.event!=null&&(c.event=String(i.event)),i.data!=null&&(typeof i.data=="string"?$util.base64.decode(i.data,c.data=$util.newBuffer($util.base64.length(i.data)),0):i.data.length>=0&&(c.data=i.data)),i.sn!=null&&($util.Long?(c.sn=$util.Long.fromValue(i.sn)).unsigned=!1:typeof i.sn=="string"?c.sn=parseInt(i.sn,10):typeof i.sn=="number"?c.sn=i.sn:typeof i.sn=="object"&&(c.sn=new $util.LongBits(i.sn.low>>>0,i.sn.high>>>0).toNumber())),i.time!=null&&($util.Long?(c.time=$util.Long.fromValue(i.time)).unsigned=!1:typeof i.time=="string"?c.time=parseInt(i.time,10):typeof i.time=="number"?c.time=i.time:typeof i.time=="object"&&(c.time=new $util.LongBits(i.time.low>>>0,i.time.high>>>0).toNumber())),i.valid!=null&&($util.Long?(c.valid=$util.Long.fromValue(i.valid)).unsigned=!1:typeof i.valid=="string"?c.valid=parseInt(i.valid,10):typeof i.valid=="number"?c.valid=i.valid:typeof i.valid=="object"&&(c.valid=new $util.LongBits(i.valid.low>>>0,i.valid.high>>>0).toNumber())),i.version!=null&&(c.version=i.version|0),i.compress!=null&&(c.compress=!!i.compress),c},f.toObject=function(i,c){c||(c={});let $={};if(c.defaults){if($.event="",c.bytes===String?$.data="":($.data=[],c.bytes!==Array&&($.data=$util.newBuffer($.data))),$util.Long){let C=new $util.Long(0,0,!1);$.sn=c.longs===String?C.toString():c.longs===Number?C.toNumber():C}else $.sn=c.longs===String?"0":0;if($util.Long){let C=new $util.Long(0,0,!1);$.time=c.longs===String?C.toString():c.longs===Number?C.toNumber():C}else $.time=c.longs===String?"0":0;if($util.Long){let C=new $util.Long(0,0,!1);$.valid=c.longs===String?C.toString():c.longs===Number?C.toNumber():C}else $.valid=c.longs===String?"0":0;$.version=0,$.compress=!1}return i.event!=null&&i.hasOwnProperty("event")&&($.event=i.event),i.data!=null&&i.hasOwnProperty("data")&&($.data=c.bytes===String?$util.base64.encode(i.data,0,i.data.length):c.bytes===Array?Array.prototype.slice.call(i.data):i.data),i.sn!=null&&i.hasOwnProperty("sn")&&(typeof i.sn=="number"?$.sn=c.longs===String?String(i.sn):i.sn:$.sn=c.longs===String?$util.Long.prototype.toString.call(i.sn):c.longs===Number?new $util.LongBits(i.sn.low>>>0,i.sn.high>>>0).toNumber():i.sn),i.time!=null&&i.hasOwnProperty("time")&&(typeof i.time=="number"?$.time=c.longs===String?String(i.time):i.time:$.time=c.longs===String?$util.Long.prototype.toString.call(i.time):c.longs===Number?new $util.LongBits(i.time.low>>>0,i.time.high>>>0).toNumber():i.time),i.valid!=null&&i.hasOwnProperty("valid")&&(typeof i.valid=="number"?$.valid=c.longs===String?String(i.valid):i.valid:$.valid=c.longs===String?$util.Long.prototype.toString.call(i.valid):c.longs===Number?new $util.LongBits(i.valid.low>>>0,i.valid.high>>>0).toNumber():i.valid),i.version!=null&&i.hasOwnProperty("version")&&($.version=i.version),i.compress!=null&&i.hasOwnProperty("compress")&&($.compress=i.compress),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.CommonReq"},f}(),D.CommonRsp=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.event="",f.prototype.data=$util.newBuffer([]),f.prototype.sn=$util.Long?$util.Long.fromBits(0,0,!1):0,f.prototype.time=$util.Long?$util.Long.fromBits(0,0,!1):0,f.prototype.valid=$util.Long?$util.Long.fromBits(0,0,!1):0,f.prototype.code=0,f.prototype.desc="",f.prototype.version=0,f.prototype.compress=!1,f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.event!=null&&Object.hasOwnProperty.call(i,"event")&&c.uint32(10).string(i.event),i.data!=null&&Object.hasOwnProperty.call(i,"data")&&c.uint32(18).bytes(i.data),i.sn!=null&&Object.hasOwnProperty.call(i,"sn")&&c.uint32(24).int64(i.sn),i.time!=null&&Object.hasOwnProperty.call(i,"time")&&c.uint32(32).int64(i.time),i.valid!=null&&Object.hasOwnProperty.call(i,"valid")&&c.uint32(40).int64(i.valid),i.code!=null&&Object.hasOwnProperty.call(i,"code")&&c.uint32(48).int32(i.code),i.desc!=null&&Object.hasOwnProperty.call(i,"desc")&&c.uint32(58).string(i.desc),i.version!=null&&Object.hasOwnProperty.call(i,"version")&&c.uint32(64).int32(i.version),i.compress!=null&&Object.hasOwnProperty.call(i,"compress")&&c.uint32(72).bool(i.compress),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.CommonRsp;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.event=i.string();break}case 2:{C.data=i.bytes();break}case 3:{C.sn=i.int64();break}case 4:{C.time=i.int64();break}case 5:{C.valid=i.int64();break}case 6:{C.code=i.int32();break}case 7:{C.desc=i.string();break}case 8:{C.version=i.int32();break}case 9:{C.compress=i.bool();break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){return typeof i!="object"||i===null?"object expected":i.event!=null&&i.hasOwnProperty("event")&&!$util.isString(i.event)?"event: string expected":i.data!=null&&i.hasOwnProperty("data")&&!(i.data&&typeof i.data.length=="number"||$util.isString(i.data))?"data: buffer expected":i.sn!=null&&i.hasOwnProperty("sn")&&!$util.isInteger(i.sn)&&!(i.sn&&$util.isInteger(i.sn.low)&&$util.isInteger(i.sn.high))?"sn: integer|Long expected":i.time!=null&&i.hasOwnProperty("time")&&!$util.isInteger(i.time)&&!(i.time&&$util.isInteger(i.time.low)&&$util.isInteger(i.time.high))?"time: integer|Long expected":i.valid!=null&&i.hasOwnProperty("valid")&&!$util.isInteger(i.valid)&&!(i.valid&&$util.isInteger(i.valid.low)&&$util.isInteger(i.valid.high))?"valid: integer|Long expected":i.code!=null&&i.hasOwnProperty("code")&&!$util.isInteger(i.code)?"code: integer expected":i.desc!=null&&i.hasOwnProperty("desc")&&!$util.isString(i.desc)?"desc: string expected":i.version!=null&&i.hasOwnProperty("version")&&!$util.isInteger(i.version)?"version: integer expected":i.compress!=null&&i.hasOwnProperty("compress")&&typeof i.compress!="boolean"?"compress: boolean expected":null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.CommonRsp)return i;let c=new $root.com.quick.voice.proto.CommonRsp;return i.event!=null&&(c.event=String(i.event)),i.data!=null&&(typeof i.data=="string"?$util.base64.decode(i.data,c.data=$util.newBuffer($util.base64.length(i.data)),0):i.data.length>=0&&(c.data=i.data)),i.sn!=null&&($util.Long?(c.sn=$util.Long.fromValue(i.sn)).unsigned=!1:typeof i.sn=="string"?c.sn=parseInt(i.sn,10):typeof i.sn=="number"?c.sn=i.sn:typeof i.sn=="object"&&(c.sn=new $util.LongBits(i.sn.low>>>0,i.sn.high>>>0).toNumber())),i.time!=null&&($util.Long?(c.time=$util.Long.fromValue(i.time)).unsigned=!1:typeof i.time=="string"?c.time=parseInt(i.time,10):typeof i.time=="number"?c.time=i.time:typeof i.time=="object"&&(c.time=new $util.LongBits(i.time.low>>>0,i.time.high>>>0).toNumber())),i.valid!=null&&($util.Long?(c.valid=$util.Long.fromValue(i.valid)).unsigned=!1:typeof i.valid=="string"?c.valid=parseInt(i.valid,10):typeof i.valid=="number"?c.valid=i.valid:typeof i.valid=="object"&&(c.valid=new $util.LongBits(i.valid.low>>>0,i.valid.high>>>0).toNumber())),i.code!=null&&(c.code=i.code|0),i.desc!=null&&(c.desc=String(i.desc)),i.version!=null&&(c.version=i.version|0),i.compress!=null&&(c.compress=!!i.compress),c},f.toObject=function(i,c){c||(c={});let $={};if(c.defaults){if($.event="",c.bytes===String?$.data="":($.data=[],c.bytes!==Array&&($.data=$util.newBuffer($.data))),$util.Long){let C=new $util.Long(0,0,!1);$.sn=c.longs===String?C.toString():c.longs===Number?C.toNumber():C}else $.sn=c.longs===String?"0":0;if($util.Long){let C=new $util.Long(0,0,!1);$.time=c.longs===String?C.toString():c.longs===Number?C.toNumber():C}else $.time=c.longs===String?"0":0;if($util.Long){let C=new $util.Long(0,0,!1);$.valid=c.longs===String?C.toString():c.longs===Number?C.toNumber():C}else $.valid=c.longs===String?"0":0;$.code=0,$.desc="",$.version=0,$.compress=!1}return i.event!=null&&i.hasOwnProperty("event")&&($.event=i.event),i.data!=null&&i.hasOwnProperty("data")&&($.data=c.bytes===String?$util.base64.encode(i.data,0,i.data.length):c.bytes===Array?Array.prototype.slice.call(i.data):i.data),i.sn!=null&&i.hasOwnProperty("sn")&&(typeof i.sn=="number"?$.sn=c.longs===String?String(i.sn):i.sn:$.sn=c.longs===String?$util.Long.prototype.toString.call(i.sn):c.longs===Number?new $util.LongBits(i.sn.low>>>0,i.sn.high>>>0).toNumber():i.sn),i.time!=null&&i.hasOwnProperty("time")&&(typeof i.time=="number"?$.time=c.longs===String?String(i.time):i.time:$.time=c.longs===String?$util.Long.prototype.toString.call(i.time):c.longs===Number?new $util.LongBits(i.time.low>>>0,i.time.high>>>0).toNumber():i.time),i.valid!=null&&i.hasOwnProperty("valid")&&(typeof i.valid=="number"?$.valid=c.longs===String?String(i.valid):i.valid:$.valid=c.longs===String?$util.Long.prototype.toString.call(i.valid):c.longs===Number?new $util.LongBits(i.valid.low>>>0,i.valid.high>>>0).toNumber():i.valid),i.code!=null&&i.hasOwnProperty("code")&&($.code=i.code),i.desc!=null&&i.hasOwnProperty("desc")&&($.desc=i.desc),i.version!=null&&i.hasOwnProperty("version")&&($.version=i.version),i.compress!=null&&i.hasOwnProperty("compress")&&($.compress=i.compress),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.CommonRsp"},f}(),D.User=function(){function f(i){if(this.tracks=[],i)for(let c=Object.keys(i),$=0;$<c.length;++$)i[c[$]]!=null&&(this[c[$]]=i[c[$]])}f.prototype.id="",f.prototype.callAction=null,f.prototype.callState=null,f.prototype.joinTime=null,f.prototype.tracks=$util.emptyArray,f.prototype.permissions=null,f.prototype.isPublished=null,f.prototype.behavior=null,f.prototype.channelCache=null;let k;return Object.defineProperty(f.prototype,"_callAction",{get:$util.oneOfGetter(k=["callAction"]),set:$util.oneOfSetter(k)}),Object.defineProperty(f.prototype,"_callState",{get:$util.oneOfGetter(k=["callState"]),set:$util.oneOfSetter(k)}),Object.defineProperty(f.prototype,"_joinTime",{get:$util.oneOfGetter(k=["joinTime"]),set:$util.oneOfSetter(k)}),Object.defineProperty(f.prototype,"_permissions",{get:$util.oneOfGetter(k=["permissions"]),set:$util.oneOfSetter(k)}),Object.defineProperty(f.prototype,"_isPublished",{get:$util.oneOfGetter(k=["isPublished"]),set:$util.oneOfSetter(k)}),Object.defineProperty(f.prototype,"_behavior",{get:$util.oneOfGetter(k=["behavior"]),set:$util.oneOfSetter(k)}),Object.defineProperty(f.prototype,"_channelCache",{get:$util.oneOfGetter(k=["channelCache"]),set:$util.oneOfSetter(k)}),f.create=function(c){return new f(c)},f.encode=function(c,$){if($||($=$Writer.create()),c.id!=null&&Object.hasOwnProperty.call(c,"id")&&$.uint32(10).string(c.id),c.callAction!=null&&Object.hasOwnProperty.call(c,"callAction")&&$.uint32(16).int32(c.callAction),c.callState!=null&&Object.hasOwnProperty.call(c,"callState")&&$.uint32(24).int32(c.callState),c.joinTime!=null&&Object.hasOwnProperty.call(c,"joinTime")&&$.uint32(32).int64(c.joinTime),c.tracks!=null&&c.tracks.length)for(let C=0;C<c.tracks.length;++C)$root.com.quick.voice.proto.Track.encode(c.tracks[C],$.uint32(42).fork()).ldelim();return c.permissions!=null&&Object.hasOwnProperty.call(c,"permissions")&&$.uint32(48).int32(c.permissions),c.isPublished!=null&&Object.hasOwnProperty.call(c,"isPublished")&&$.uint32(56).bool(c.isPublished),c.behavior!=null&&Object.hasOwnProperty.call(c,"behavior")&&$.uint32(64).int32(c.behavior),c.channelCache!=null&&Object.hasOwnProperty.call(c,"channelCache")&&$root.com.quick.voice.proto.DataChannelCacheInfo.encode(c.channelCache,$.uint32(74).fork()).ldelim(),$},f.encodeDelimited=function(c,$){return this.encode(c,$).ldelim()},f.decode=function(c,$){c instanceof $Reader||(c=$Reader.create(c));let C=$===void 0?c.len:c.pos+$,M=new $root.com.quick.voice.proto.User;for(;c.pos<C;){let Z=c.uint32();switch(Z>>>3){case 1:{M.id=c.string();break}case 2:{M.callAction=c.int32();break}case 3:{M.callState=c.int32();break}case 4:{M.joinTime=c.int64();break}case 5:{M.tracks&&M.tracks.length||(M.tracks=[]),M.tracks.push($root.com.quick.voice.proto.Track.decode(c,c.uint32()));break}case 6:{M.permissions=c.int32();break}case 7:{M.isPublished=c.bool();break}case 8:{M.behavior=c.int32();break}case 9:{M.channelCache=$root.com.quick.voice.proto.DataChannelCacheInfo.decode(c,c.uint32());break}default:c.skipType(Z&7);break}}return M},f.decodeDelimited=function(c){return c instanceof $Reader||(c=new $Reader(c)),this.decode(c,c.uint32())},f.verify=function(c){if(typeof c!="object"||c===null)return"object expected";if(c.id!=null&&c.hasOwnProperty("id")&&!$util.isString(c.id))return"id: string expected";if(c.callAction!=null&&c.hasOwnProperty("callAction")&&!$util.isInteger(c.callAction))return"callAction: integer expected";if(c.callState!=null&&c.hasOwnProperty("callState")&&!$util.isInteger(c.callState))return"callState: integer expected";if(c.joinTime!=null&&c.hasOwnProperty("joinTime")&&!$util.isInteger(c.joinTime)&&!(c.joinTime&&$util.isInteger(c.joinTime.low)&&$util.isInteger(c.joinTime.high)))return"joinTime: integer|Long expected";if(c.tracks!=null&&c.hasOwnProperty("tracks")){if(!Array.isArray(c.tracks))return"tracks: array expected";for(let $=0;$<c.tracks.length;++$){let C=$root.com.quick.voice.proto.Track.verify(c.tracks[$]);if(C)return"tracks."+C}}if(c.permissions!=null&&c.hasOwnProperty("permissions")&&!$util.isInteger(c.permissions))return"permissions: integer expected";if(c.isPublished!=null&&c.hasOwnProperty("isPublished")&&typeof c.isPublished!="boolean")return"isPublished: boolean expected";if(c.behavior!=null&&c.hasOwnProperty("behavior")&&!$util.isInteger(c.behavior))return"behavior: integer expected";if(c.channelCache!=null&&c.hasOwnProperty("channelCache")){let $=$root.com.quick.voice.proto.DataChannelCacheInfo.verify(c.channelCache);if($)return"channelCache."+$}return null},f.fromObject=function(c){if(c instanceof $root.com.quick.voice.proto.User)return c;let $=new $root.com.quick.voice.proto.User;if(c.id!=null&&($.id=String(c.id)),c.callAction!=null&&($.callAction=c.callAction|0),c.callState!=null&&($.callState=c.callState|0),c.joinTime!=null&&($util.Long?($.joinTime=$util.Long.fromValue(c.joinTime)).unsigned=!1:typeof c.joinTime=="string"?$.joinTime=parseInt(c.joinTime,10):typeof c.joinTime=="number"?$.joinTime=c.joinTime:typeof c.joinTime=="object"&&($.joinTime=new $util.LongBits(c.joinTime.low>>>0,c.joinTime.high>>>0).toNumber())),c.tracks){if(!Array.isArray(c.tracks))throw TypeError(".com.quick.voice.proto.User.tracks: array expected");$.tracks=[];for(let C=0;C<c.tracks.length;++C){if(typeof c.tracks[C]!="object")throw TypeError(".com.quick.voice.proto.User.tracks: object expected");$.tracks[C]=$root.com.quick.voice.proto.Track.fromObject(c.tracks[C])}}if(c.permissions!=null&&($.permissions=c.permissions|0),c.isPublished!=null&&($.isPublished=!!c.isPublished),c.behavior!=null&&($.behavior=c.behavior|0),c.channelCache!=null){if(typeof c.channelCache!="object")throw TypeError(".com.quick.voice.proto.User.channelCache: object expected");$.channelCache=$root.com.quick.voice.proto.DataChannelCacheInfo.fromObject(c.channelCache)}return $},f.toObject=function(c,$){$||($={});let C={};if(($.arrays||$.defaults)&&(C.tracks=[]),$.defaults&&(C.id=""),c.id!=null&&c.hasOwnProperty("id")&&(C.id=c.id),c.callAction!=null&&c.hasOwnProperty("callAction")&&(C.callAction=c.callAction,$.oneofs&&(C._callAction="callAction")),c.callState!=null&&c.hasOwnProperty("callState")&&(C.callState=c.callState,$.oneofs&&(C._callState="callState")),c.joinTime!=null&&c.hasOwnProperty("joinTime")&&(typeof c.joinTime=="number"?C.joinTime=$.longs===String?String(c.joinTime):c.joinTime:C.joinTime=$.longs===String?$util.Long.prototype.toString.call(c.joinTime):$.longs===Number?new $util.LongBits(c.joinTime.low>>>0,c.joinTime.high>>>0).toNumber():c.joinTime,$.oneofs&&(C._joinTime="joinTime")),c.tracks&&c.tracks.length){C.tracks=[];for(let M=0;M<c.tracks.length;++M)C.tracks[M]=$root.com.quick.voice.proto.Track.toObject(c.tracks[M],$)}return c.permissions!=null&&c.hasOwnProperty("permissions")&&(C.permissions=c.permissions,$.oneofs&&(C._permissions="permissions")),c.isPublished!=null&&c.hasOwnProperty("isPublished")&&(C.isPublished=c.isPublished,$.oneofs&&(C._isPublished="isPublished")),c.behavior!=null&&c.hasOwnProperty("behavior")&&(C.behavior=c.behavior,$.oneofs&&(C._behavior="behavior")),c.channelCache!=null&&c.hasOwnProperty("channelCache")&&(C.channelCache=$root.com.quick.voice.proto.DataChannelCacheInfo.toObject(c.channelCache,$),$.oneofs&&(C._channelCache="channelCache")),C},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/com.quick.voice.proto.User"},f}(),D.DataChannelCacheInfo=function(){function f(k){if(this.channels=[],k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.channels=$util.emptyArray,f.create=function(i){return new f(i)},f.encode=function(i,c){if(c||(c=$Writer.create()),i.channels!=null&&i.channels.length)for(let $=0;$<i.channels.length;++$)$root.com.quick.voice.proto.DataChannel.encode(i.channels[$],c.uint32(10).fork()).ldelim();return c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.DataChannelCacheInfo;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.channels&&C.channels.length||(C.channels=[]),C.channels.push($root.com.quick.voice.proto.DataChannel.decode(i,i.uint32()));break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.channels!=null&&i.hasOwnProperty("channels")){if(!Array.isArray(i.channels))return"channels: array expected";for(let c=0;c<i.channels.length;++c){let $=$root.com.quick.voice.proto.DataChannel.verify(i.channels[c]);if($)return"channels."+$}}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.DataChannelCacheInfo)return i;let c=new $root.com.quick.voice.proto.DataChannelCacheInfo;if(i.channels){if(!Array.isArray(i.channels))throw TypeError(".com.quick.voice.proto.DataChannelCacheInfo.channels: array expected");c.channels=[];for(let $=0;$<i.channels.length;++$){if(typeof i.channels[$]!="object")throw TypeError(".com.quick.voice.proto.DataChannelCacheInfo.channels: object expected");c.channels[$]=$root.com.quick.voice.proto.DataChannel.fromObject(i.channels[$])}}return c},f.toObject=function(i,c){c||(c={});let $={};if((c.arrays||c.defaults)&&($.channels=[]),i.channels&&i.channels.length){$.channels=[];for(let C=0;C<i.channels.length;++C)$.channels[C]=$root.com.quick.voice.proto.DataChannel.toObject(i.channels[C],c)}return $},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.DataChannelCacheInfo"},f}(),D.DataChannel=function(){function f(i){if(i)for(let c=Object.keys(i),$=0;$<c.length;++$)i[c[$]]!=null&&(this[c[$]]=i[c[$]])}f.prototype.dataChannelName="",f.prototype.id=null;let k;return Object.defineProperty(f.prototype,"_id",{get:$util.oneOfGetter(k=["id"]),set:$util.oneOfSetter(k)}),f.create=function(c){return new f(c)},f.encode=function(c,$){return $||($=$Writer.create()),c.dataChannelName!=null&&Object.hasOwnProperty.call(c,"dataChannelName")&&$.uint32(10).string(c.dataChannelName),c.id!=null&&Object.hasOwnProperty.call(c,"id")&&$.uint32(16).int32(c.id),$},f.encodeDelimited=function(c,$){return this.encode(c,$).ldelim()},f.decode=function(c,$){c instanceof $Reader||(c=$Reader.create(c));let C=$===void 0?c.len:c.pos+$,M=new $root.com.quick.voice.proto.DataChannel;for(;c.pos<C;){let Z=c.uint32();switch(Z>>>3){case 1:{M.dataChannelName=c.string();break}case 2:{M.id=c.int32();break}default:c.skipType(Z&7);break}}return M},f.decodeDelimited=function(c){return c instanceof $Reader||(c=new $Reader(c)),this.decode(c,c.uint32())},f.verify=function(c){return typeof c!="object"||c===null?"object expected":c.dataChannelName!=null&&c.hasOwnProperty("dataChannelName")&&!$util.isString(c.dataChannelName)?"dataChannelName: string expected":c.id!=null&&c.hasOwnProperty("id")&&!$util.isInteger(c.id)?"id: integer expected":null},f.fromObject=function(c){if(c instanceof $root.com.quick.voice.proto.DataChannel)return c;let $=new $root.com.quick.voice.proto.DataChannel;return c.dataChannelName!=null&&($.dataChannelName=String(c.dataChannelName)),c.id!=null&&($.id=c.id|0),$},f.toObject=function(c,$){$||($={});let C={};return $.defaults&&(C.dataChannelName=""),c.dataChannelName!=null&&c.hasOwnProperty("dataChannelName")&&(C.dataChannelName=c.dataChannelName),c.id!=null&&c.hasOwnProperty("id")&&(C.id=c.id,$.oneofs&&(C._id="id")),C},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/com.quick.voice.proto.DataChannel"},f}(),D.Login=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.appid="",f.prototype.userId="",f.prototype.sdkToken="",f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.appid!=null&&Object.hasOwnProperty.call(i,"appid")&&c.uint32(10).string(i.appid),i.userId!=null&&Object.hasOwnProperty.call(i,"userId")&&c.uint32(18).string(i.userId),i.sdkToken!=null&&Object.hasOwnProperty.call(i,"sdkToken")&&c.uint32(26).string(i.sdkToken),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.Login;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.appid=i.string();break}case 2:{C.userId=i.string();break}case 3:{C.sdkToken=i.string();break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){return typeof i!="object"||i===null?"object expected":i.appid!=null&&i.hasOwnProperty("appid")&&!$util.isString(i.appid)?"appid: string expected":i.userId!=null&&i.hasOwnProperty("userId")&&!$util.isString(i.userId)?"userId: string expected":i.sdkToken!=null&&i.hasOwnProperty("sdkToken")&&!$util.isString(i.sdkToken)?"sdkToken: string expected":null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.Login)return i;let c=new $root.com.quick.voice.proto.Login;return i.appid!=null&&(c.appid=String(i.appid)),i.userId!=null&&(c.userId=String(i.userId)),i.sdkToken!=null&&(c.sdkToken=String(i.sdkToken)),c},f.toObject=function(i,c){c||(c={});let $={};return c.defaults&&($.appid="",$.userId="",$.sdkToken=""),i.appid!=null&&i.hasOwnProperty("appid")&&($.appid=i.appid),i.userId!=null&&i.hasOwnProperty("userId")&&($.userId=i.userId),i.sdkToken!=null&&i.hasOwnProperty("sdkToken")&&($.sdkToken=i.sdkToken),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.Login"},f}(),D.Track=function(){function f(i){if(i)for(let c=Object.keys(i),$=0;$<c.length;++$)i[c[$]]!=null&&(this[c[$]]=i[c[$]])}f.prototype.mid="",f.prototype.trackName=null,f.prototype.location=null,f.prototype.userId=null,f.prototype.code=null,f.prototype.desc=null,f.prototype.type=null,f.prototype.isValid=null,f.prototype.simulcast=null;let k;return Object.defineProperty(f.prototype,"_trackName",{get:$util.oneOfGetter(k=["trackName"]),set:$util.oneOfSetter(k)}),Object.defineProperty(f.prototype,"_location",{get:$util.oneOfGetter(k=["location"]),set:$util.oneOfSetter(k)}),Object.defineProperty(f.prototype,"_userId",{get:$util.oneOfGetter(k=["userId"]),set:$util.oneOfSetter(k)}),Object.defineProperty(f.prototype,"_code",{get:$util.oneOfGetter(k=["code"]),set:$util.oneOfSetter(k)}),Object.defineProperty(f.prototype,"_desc",{get:$util.oneOfGetter(k=["desc"]),set:$util.oneOfSetter(k)}),Object.defineProperty(f.prototype,"_type",{get:$util.oneOfGetter(k=["type"]),set:$util.oneOfSetter(k)}),Object.defineProperty(f.prototype,"_isValid",{get:$util.oneOfGetter(k=["isValid"]),set:$util.oneOfSetter(k)}),Object.defineProperty(f.prototype,"_simulcast",{get:$util.oneOfGetter(k=["simulcast"]),set:$util.oneOfSetter(k)}),f.create=function(c){return new f(c)},f.encode=function(c,$){return $||($=$Writer.create()),c.mid!=null&&Object.hasOwnProperty.call(c,"mid")&&$.uint32(10).string(c.mid),c.trackName!=null&&Object.hasOwnProperty.call(c,"trackName")&&$.uint32(18).string(c.trackName),c.location!=null&&Object.hasOwnProperty.call(c,"location")&&$.uint32(26).string(c.location),c.userId!=null&&Object.hasOwnProperty.call(c,"userId")&&$.uint32(34).string(c.userId),c.code!=null&&Object.hasOwnProperty.call(c,"code")&&$.uint32(40).int32(c.code),c.desc!=null&&Object.hasOwnProperty.call(c,"desc")&&$.uint32(50).string(c.desc),c.type!=null&&Object.hasOwnProperty.call(c,"type")&&$.uint32(56).int32(c.type),c.isValid!=null&&Object.hasOwnProperty.call(c,"isValid")&&$.uint32(64).bool(c.isValid),c.simulcast!=null&&Object.hasOwnProperty.call(c,"simulcast")&&$.uint32(74).string(c.simulcast),$},f.encodeDelimited=function(c,$){return this.encode(c,$).ldelim()},f.decode=function(c,$){c instanceof $Reader||(c=$Reader.create(c));let C=$===void 0?c.len:c.pos+$,M=new $root.com.quick.voice.proto.Track;for(;c.pos<C;){let Z=c.uint32();switch(Z>>>3){case 1:{M.mid=c.string();break}case 2:{M.trackName=c.string();break}case 3:{M.location=c.string();break}case 4:{M.userId=c.string();break}case 5:{M.code=c.int32();break}case 6:{M.desc=c.string();break}case 7:{M.type=c.int32();break}case 8:{M.isValid=c.bool();break}case 9:{M.simulcast=c.string();break}default:c.skipType(Z&7);break}}return M},f.decodeDelimited=function(c){return c instanceof $Reader||(c=new $Reader(c)),this.decode(c,c.uint32())},f.verify=function(c){if(typeof c!="object"||c===null)return"object expected";if(c.mid!=null&&c.hasOwnProperty("mid")&&!$util.isString(c.mid))return"mid: string expected";if(c.trackName!=null&&c.hasOwnProperty("trackName")&&!$util.isString(c.trackName))return"trackName: string expected";if(c.location!=null&&c.hasOwnProperty("location")&&!$util.isString(c.location))return"location: string expected";if(c.userId!=null&&c.hasOwnProperty("userId")&&!$util.isString(c.userId))return"userId: string expected";if(c.code!=null&&c.hasOwnProperty("code")&&!$util.isInteger(c.code))return"code: integer expected";if(c.desc!=null&&c.hasOwnProperty("desc")&&!$util.isString(c.desc))return"desc: string expected";if(c.type!=null&&c.hasOwnProperty("type"))switch(c.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:break}return c.isValid!=null&&c.hasOwnProperty("isValid")&&typeof c.isValid!="boolean"?"isValid: boolean expected":c.simulcast!=null&&c.hasOwnProperty("simulcast")&&!$util.isString(c.simulcast)?"simulcast: string expected":null},f.fromObject=function(c){if(c instanceof $root.com.quick.voice.proto.Track)return c;let $=new $root.com.quick.voice.proto.Track;switch(c.mid!=null&&($.mid=String(c.mid)),c.trackName!=null&&($.trackName=String(c.trackName)),c.location!=null&&($.location=String(c.location)),c.userId!=null&&($.userId=String(c.userId)),c.code!=null&&($.code=c.code|0),c.desc!=null&&($.desc=String(c.desc)),c.type){default:if(typeof c.type=="number"){$.type=c.type;break}break;case"Microphone":case 0:$.type=0;break;case"Camera":case 1:$.type=1;break;case"Screen":case 2:$.type=2;break;case"SystemVoice":case 3:$.type=3;break}return c.isValid!=null&&($.isValid=!!c.isValid),c.simulcast!=null&&($.simulcast=String(c.simulcast)),$},f.toObject=function(c,$){$||($={});let C={};return $.defaults&&(C.mid=""),c.mid!=null&&c.hasOwnProperty("mid")&&(C.mid=c.mid),c.trackName!=null&&c.hasOwnProperty("trackName")&&(C.trackName=c.trackName,$.oneofs&&(C._trackName="trackName")),c.location!=null&&c.hasOwnProperty("location")&&(C.location=c.location,$.oneofs&&(C._location="location")),c.userId!=null&&c.hasOwnProperty("userId")&&(C.userId=c.userId,$.oneofs&&(C._userId="userId")),c.code!=null&&c.hasOwnProperty("code")&&(C.code=c.code,$.oneofs&&(C._code="code")),c.desc!=null&&c.hasOwnProperty("desc")&&(C.desc=c.desc,$.oneofs&&(C._desc="desc")),c.type!=null&&c.hasOwnProperty("type")&&(C.type=$.enums===String?$root.com.quick.voice.proto.TrackType[c.type]===void 0?c.type:$root.com.quick.voice.proto.TrackType[c.type]:c.type,$.oneofs&&(C._type="type")),c.isValid!=null&&c.hasOwnProperty("isValid")&&(C.isValid=c.isValid,$.oneofs&&(C._isValid="isValid")),c.simulcast!=null&&c.hasOwnProperty("simulcast")&&(C.simulcast=c.simulcast,$.oneofs&&(C._simulcast="simulcast")),C},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/com.quick.voice.proto.Track"},f}(),D.JoinReq=function(){function f(i){if(i)for(let c=Object.keys(i),$=0;$<c.length;++$)i[c[$]]!=null&&(this[c[$]]=i[c[$]])}f.prototype.roomId="",f.prototype.user=null,f.prototype.callType=0,f.prototype.token=null;let k;return Object.defineProperty(f.prototype,"_token",{get:$util.oneOfGetter(k=["token"]),set:$util.oneOfSetter(k)}),f.create=function(c){return new f(c)},f.encode=function(c,$){return $||($=$Writer.create()),c.roomId!=null&&Object.hasOwnProperty.call(c,"roomId")&&$.uint32(10).string(c.roomId),c.user!=null&&Object.hasOwnProperty.call(c,"user")&&$root.com.quick.voice.proto.User.encode(c.user,$.uint32(18).fork()).ldelim(),c.callType!=null&&Object.hasOwnProperty.call(c,"callType")&&$.uint32(24).int32(c.callType),c.token!=null&&Object.hasOwnProperty.call(c,"token")&&$.uint32(34).string(c.token),$},f.encodeDelimited=function(c,$){return this.encode(c,$).ldelim()},f.decode=function(c,$){c instanceof $Reader||(c=$Reader.create(c));let C=$===void 0?c.len:c.pos+$,M=new $root.com.quick.voice.proto.JoinReq;for(;c.pos<C;){let Z=c.uint32();switch(Z>>>3){case 1:{M.roomId=c.string();break}case 2:{M.user=$root.com.quick.voice.proto.User.decode(c,c.uint32());break}case 3:{M.callType=c.int32();break}case 4:{M.token=c.string();break}default:c.skipType(Z&7);break}}return M},f.decodeDelimited=function(c){return c instanceof $Reader||(c=new $Reader(c)),this.decode(c,c.uint32())},f.verify=function(c){if(typeof c!="object"||c===null)return"object expected";if(c.roomId!=null&&c.hasOwnProperty("roomId")&&!$util.isString(c.roomId))return"roomId: string expected";if(c.user!=null&&c.hasOwnProperty("user")){let $=$root.com.quick.voice.proto.User.verify(c.user);if($)return"user."+$}if(c.callType!=null&&c.hasOwnProperty("callType"))switch(c.callType){default:return"callType: enum value expected";case 0:case 1:case 2:break}return c.token!=null&&c.hasOwnProperty("token")&&!$util.isString(c.token)?"token: string expected":null},f.fromObject=function(c){if(c instanceof $root.com.quick.voice.proto.JoinReq)return c;let $=new $root.com.quick.voice.proto.JoinReq;if(c.roomId!=null&&($.roomId=String(c.roomId)),c.user!=null){if(typeof c.user!="object")throw TypeError(".com.quick.voice.proto.JoinReq.user: object expected");$.user=$root.com.quick.voice.proto.User.fromObject(c.user)}switch(c.callType){default:if(typeof c.callType=="number"){$.callType=c.callType;break}break;case"Normal":case 0:$.callType=0;break;case"Meeting":case 1:$.callType=1;break;case"Live":case 2:$.callType=2;break}return c.token!=null&&($.token=String(c.token)),$},f.toObject=function(c,$){$||($={});let C={};return $.defaults&&(C.roomId="",C.user=null,C.callType=$.enums===String?"Normal":0),c.roomId!=null&&c.hasOwnProperty("roomId")&&(C.roomId=c.roomId),c.user!=null&&c.hasOwnProperty("user")&&(C.user=$root.com.quick.voice.proto.User.toObject(c.user,$)),c.callType!=null&&c.hasOwnProperty("callType")&&(C.callType=$.enums===String?$root.com.quick.voice.proto.CallType[c.callType]===void 0?c.callType:$root.com.quick.voice.proto.CallType[c.callType]:c.callType),c.token!=null&&c.hasOwnProperty("token")&&(C.token=c.token,$.oneofs&&(C._token="token")),C},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/com.quick.voice.proto.JoinReq"},f}(),D.JoinRsp=function(){function f(k){if(this.roomUsers=[],k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.roomId="",f.prototype.roomUsers=$util.emptyArray,f.prototype.callType=0,f.create=function(i){return new f(i)},f.encode=function(i,c){if(c||(c=$Writer.create()),i.roomId!=null&&Object.hasOwnProperty.call(i,"roomId")&&c.uint32(10).string(i.roomId),i.roomUsers!=null&&i.roomUsers.length)for(let $=0;$<i.roomUsers.length;++$)$root.com.quick.voice.proto.User.encode(i.roomUsers[$],c.uint32(18).fork()).ldelim();return i.callType!=null&&Object.hasOwnProperty.call(i,"callType")&&c.uint32(24).int32(i.callType),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.JoinRsp;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.roomId=i.string();break}case 2:{C.roomUsers&&C.roomUsers.length||(C.roomUsers=[]),C.roomUsers.push($root.com.quick.voice.proto.User.decode(i,i.uint32()));break}case 3:{C.callType=i.int32();break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.roomId!=null&&i.hasOwnProperty("roomId")&&!$util.isString(i.roomId))return"roomId: string expected";if(i.roomUsers!=null&&i.hasOwnProperty("roomUsers")){if(!Array.isArray(i.roomUsers))return"roomUsers: array expected";for(let c=0;c<i.roomUsers.length;++c){let $=$root.com.quick.voice.proto.User.verify(i.roomUsers[c]);if($)return"roomUsers."+$}}if(i.callType!=null&&i.hasOwnProperty("callType"))switch(i.callType){default:return"callType: enum value expected";case 0:case 1:case 2:break}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.JoinRsp)return i;let c=new $root.com.quick.voice.proto.JoinRsp;if(i.roomId!=null&&(c.roomId=String(i.roomId)),i.roomUsers){if(!Array.isArray(i.roomUsers))throw TypeError(".com.quick.voice.proto.JoinRsp.roomUsers: array expected");c.roomUsers=[];for(let $=0;$<i.roomUsers.length;++$){if(typeof i.roomUsers[$]!="object")throw TypeError(".com.quick.voice.proto.JoinRsp.roomUsers: object expected");c.roomUsers[$]=$root.com.quick.voice.proto.User.fromObject(i.roomUsers[$])}}switch(i.callType){default:if(typeof i.callType=="number"){c.callType=i.callType;break}break;case"Normal":case 0:c.callType=0;break;case"Meeting":case 1:c.callType=1;break;case"Live":case 2:c.callType=2;break}return c},f.toObject=function(i,c){c||(c={});let $={};if((c.arrays||c.defaults)&&($.roomUsers=[]),c.defaults&&($.roomId="",$.callType=c.enums===String?"Normal":0),i.roomId!=null&&i.hasOwnProperty("roomId")&&($.roomId=i.roomId),i.roomUsers&&i.roomUsers.length){$.roomUsers=[];for(let C=0;C<i.roomUsers.length;++C)$.roomUsers[C]=$root.com.quick.voice.proto.User.toObject(i.roomUsers[C],c)}return i.callType!=null&&i.hasOwnProperty("callType")&&($.callType=c.enums===String?$root.com.quick.voice.proto.CallType[i.callType]===void 0?i.callType:$root.com.quick.voice.proto.CallType[i.callType]:i.callType),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.JoinRsp"},f}(),D.JoinNotify=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.roomId="",f.prototype.user=null,f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.roomId!=null&&Object.hasOwnProperty.call(i,"roomId")&&c.uint32(10).string(i.roomId),i.user!=null&&Object.hasOwnProperty.call(i,"user")&&$root.com.quick.voice.proto.User.encode(i.user,c.uint32(18).fork()).ldelim(),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.JoinNotify;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.roomId=i.string();break}case 2:{C.user=$root.com.quick.voice.proto.User.decode(i,i.uint32());break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.roomId!=null&&i.hasOwnProperty("roomId")&&!$util.isString(i.roomId))return"roomId: string expected";if(i.user!=null&&i.hasOwnProperty("user")){let c=$root.com.quick.voice.proto.User.verify(i.user);if(c)return"user."+c}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.JoinNotify)return i;let c=new $root.com.quick.voice.proto.JoinNotify;if(i.roomId!=null&&(c.roomId=String(i.roomId)),i.user!=null){if(typeof i.user!="object")throw TypeError(".com.quick.voice.proto.JoinNotify.user: object expected");c.user=$root.com.quick.voice.proto.User.fromObject(i.user)}return c},f.toObject=function(i,c){c||(c={});let $={};return c.defaults&&($.roomId="",$.user=null),i.roomId!=null&&i.hasOwnProperty("roomId")&&($.roomId=i.roomId),i.user!=null&&i.hasOwnProperty("user")&&($.user=$root.com.quick.voice.proto.User.toObject(i.user,c)),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.JoinNotify"},f}(),D.ConnectCFReq=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.sdp="",f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.sdp!=null&&Object.hasOwnProperty.call(i,"sdp")&&c.uint32(10).string(i.sdp),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.ConnectCFReq;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.sdp=i.string();break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){return typeof i!="object"||i===null?"object expected":i.sdp!=null&&i.hasOwnProperty("sdp")&&!$util.isString(i.sdp)?"sdp: string expected":null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.ConnectCFReq)return i;let c=new $root.com.quick.voice.proto.ConnectCFReq;return i.sdp!=null&&(c.sdp=String(i.sdp)),c},f.toObject=function(i,c){c||(c={});let $={};return c.defaults&&($.sdp=""),i.sdp!=null&&i.hasOwnProperty("sdp")&&($.sdp=i.sdp),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.ConnectCFReq"},f}(),D.ConnectCFRsp=function(){function f(k){if(this.subscribeUsers=[],k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.remoteSdp="",f.prototype.subscribeUsers=$util.emptyArray,f.create=function(i){return new f(i)},f.encode=function(i,c){if(c||(c=$Writer.create()),i.remoteSdp!=null&&Object.hasOwnProperty.call(i,"remoteSdp")&&c.uint32(10).string(i.remoteSdp),i.subscribeUsers!=null&&i.subscribeUsers.length)for(let $=0;$<i.subscribeUsers.length;++$)$root.com.quick.voice.proto.User.encode(i.subscribeUsers[$],c.uint32(18).fork()).ldelim();return c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.ConnectCFRsp;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.remoteSdp=i.string();break}case 2:{C.subscribeUsers&&C.subscribeUsers.length||(C.subscribeUsers=[]),C.subscribeUsers.push($root.com.quick.voice.proto.User.decode(i,i.uint32()));break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.remoteSdp!=null&&i.hasOwnProperty("remoteSdp")&&!$util.isString(i.remoteSdp))return"remoteSdp: string expected";if(i.subscribeUsers!=null&&i.hasOwnProperty("subscribeUsers")){if(!Array.isArray(i.subscribeUsers))return"subscribeUsers: array expected";for(let c=0;c<i.subscribeUsers.length;++c){let $=$root.com.quick.voice.proto.User.verify(i.subscribeUsers[c]);if($)return"subscribeUsers."+$}}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.ConnectCFRsp)return i;let c=new $root.com.quick.voice.proto.ConnectCFRsp;if(i.remoteSdp!=null&&(c.remoteSdp=String(i.remoteSdp)),i.subscribeUsers){if(!Array.isArray(i.subscribeUsers))throw TypeError(".com.quick.voice.proto.ConnectCFRsp.subscribeUsers: array expected");c.subscribeUsers=[];for(let $=0;$<i.subscribeUsers.length;++$){if(typeof i.subscribeUsers[$]!="object")throw TypeError(".com.quick.voice.proto.ConnectCFRsp.subscribeUsers: object expected");c.subscribeUsers[$]=$root.com.quick.voice.proto.User.fromObject(i.subscribeUsers[$])}}return c},f.toObject=function(i,c){c||(c={});let $={};if((c.arrays||c.defaults)&&($.subscribeUsers=[]),c.defaults&&($.remoteSdp=""),i.remoteSdp!=null&&i.hasOwnProperty("remoteSdp")&&($.remoteSdp=i.remoteSdp),i.subscribeUsers&&i.subscribeUsers.length){$.subscribeUsers=[];for(let C=0;C<i.subscribeUsers.length;++C)$.subscribeUsers[C]=$root.com.quick.voice.proto.User.toObject(i.subscribeUsers[C],c)}return $},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.ConnectCFRsp"},f}(),D.PublishReq=function(){function f(i){if(this.tracks=[],i)for(let c=Object.keys(i),$=0;$<c.length;++$)i[c[$]]!=null&&(this[c[$]]=i[c[$]])}f.prototype.sdp="",f.prototype.tracks=$util.emptyArray,f.prototype.callAction=0,f.prototype.recreate=null;let k;return Object.defineProperty(f.prototype,"_recreate",{get:$util.oneOfGetter(k=["recreate"]),set:$util.oneOfSetter(k)}),f.create=function(c){return new f(c)},f.encode=function(c,$){if($||($=$Writer.create()),c.sdp!=null&&Object.hasOwnProperty.call(c,"sdp")&&$.uint32(10).string(c.sdp),c.tracks!=null&&c.tracks.length)for(let C=0;C<c.tracks.length;++C)$root.com.quick.voice.proto.Track.encode(c.tracks[C],$.uint32(18).fork()).ldelim();return c.callAction!=null&&Object.hasOwnProperty.call(c,"callAction")&&$.uint32(24).int32(c.callAction),c.recreate!=null&&Object.hasOwnProperty.call(c,"recreate")&&$.uint32(32).bool(c.recreate),$},f.encodeDelimited=function(c,$){return this.encode(c,$).ldelim()},f.decode=function(c,$){c instanceof $Reader||(c=$Reader.create(c));let C=$===void 0?c.len:c.pos+$,M=new $root.com.quick.voice.proto.PublishReq;for(;c.pos<C;){let Z=c.uint32();switch(Z>>>3){case 1:{M.sdp=c.string();break}case 2:{M.tracks&&M.tracks.length||(M.tracks=[]),M.tracks.push($root.com.quick.voice.proto.Track.decode(c,c.uint32()));break}case 3:{M.callAction=c.int32();break}case 4:{M.recreate=c.bool();break}default:c.skipType(Z&7);break}}return M},f.decodeDelimited=function(c){return c instanceof $Reader||(c=new $Reader(c)),this.decode(c,c.uint32())},f.verify=function(c){if(typeof c!="object"||c===null)return"object expected";if(c.sdp!=null&&c.hasOwnProperty("sdp")&&!$util.isString(c.sdp))return"sdp: string expected";if(c.tracks!=null&&c.hasOwnProperty("tracks")){if(!Array.isArray(c.tracks))return"tracks: array expected";for(let $=0;$<c.tracks.length;++$){let C=$root.com.quick.voice.proto.Track.verify(c.tracks[$]);if(C)return"tracks."+C}}return c.callAction!=null&&c.hasOwnProperty("callAction")&&!$util.isInteger(c.callAction)?"callAction: integer expected":c.recreate!=null&&c.hasOwnProperty("recreate")&&typeof c.recreate!="boolean"?"recreate: boolean expected":null},f.fromObject=function(c){if(c instanceof $root.com.quick.voice.proto.PublishReq)return c;let $=new $root.com.quick.voice.proto.PublishReq;if(c.sdp!=null&&($.sdp=String(c.sdp)),c.tracks){if(!Array.isArray(c.tracks))throw TypeError(".com.quick.voice.proto.PublishReq.tracks: array expected");$.tracks=[];for(let C=0;C<c.tracks.length;++C){if(typeof c.tracks[C]!="object")throw TypeError(".com.quick.voice.proto.PublishReq.tracks: object expected");$.tracks[C]=$root.com.quick.voice.proto.Track.fromObject(c.tracks[C])}}return c.callAction!=null&&($.callAction=c.callAction|0),c.recreate!=null&&($.recreate=!!c.recreate),$},f.toObject=function(c,$){$||($={});let C={};if(($.arrays||$.defaults)&&(C.tracks=[]),$.defaults&&(C.sdp="",C.callAction=0),c.sdp!=null&&c.hasOwnProperty("sdp")&&(C.sdp=c.sdp),c.tracks&&c.tracks.length){C.tracks=[];for(let M=0;M<c.tracks.length;++M)C.tracks[M]=$root.com.quick.voice.proto.Track.toObject(c.tracks[M],$)}return c.callAction!=null&&c.hasOwnProperty("callAction")&&(C.callAction=c.callAction),c.recreate!=null&&c.hasOwnProperty("recreate")&&(C.recreate=c.recreate,$.oneofs&&(C._recreate="recreate")),C},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/com.quick.voice.proto.PublishReq"},f}(),D.PublishRsp=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.remoteSdp="",f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.remoteSdp!=null&&Object.hasOwnProperty.call(i,"remoteSdp")&&c.uint32(10).string(i.remoteSdp),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.PublishRsp;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.remoteSdp=i.string();break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){return typeof i!="object"||i===null?"object expected":i.remoteSdp!=null&&i.hasOwnProperty("remoteSdp")&&!$util.isString(i.remoteSdp)?"remoteSdp: string expected":null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.PublishRsp)return i;let c=new $root.com.quick.voice.proto.PublishRsp;return i.remoteSdp!=null&&(c.remoteSdp=String(i.remoteSdp)),c},f.toObject=function(i,c){c||(c={});let $={};return c.defaults&&($.remoteSdp=""),i.remoteSdp!=null&&i.hasOwnProperty("remoteSdp")&&($.remoteSdp=i.remoteSdp),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.PublishRsp"},f}(),D.PublishNotify=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.roomId="",f.prototype.user=null,f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.roomId!=null&&Object.hasOwnProperty.call(i,"roomId")&&c.uint32(10).string(i.roomId),i.user!=null&&Object.hasOwnProperty.call(i,"user")&&$root.com.quick.voice.proto.User.encode(i.user,c.uint32(18).fork()).ldelim(),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.PublishNotify;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.roomId=i.string();break}case 2:{C.user=$root.com.quick.voice.proto.User.decode(i,i.uint32());break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.roomId!=null&&i.hasOwnProperty("roomId")&&!$util.isString(i.roomId))return"roomId: string expected";if(i.user!=null&&i.hasOwnProperty("user")){let c=$root.com.quick.voice.proto.User.verify(i.user);if(c)return"user."+c}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.PublishNotify)return i;let c=new $root.com.quick.voice.proto.PublishNotify;if(i.roomId!=null&&(c.roomId=String(i.roomId)),i.user!=null){if(typeof i.user!="object")throw TypeError(".com.quick.voice.proto.PublishNotify.user: object expected");c.user=$root.com.quick.voice.proto.User.fromObject(i.user)}return c},f.toObject=function(i,c){c||(c={});let $={};return c.defaults&&($.roomId="",$.user=null),i.roomId!=null&&i.hasOwnProperty("roomId")&&($.roomId=i.roomId),i.user!=null&&i.hasOwnProperty("user")&&($.user=$root.com.quick.voice.proto.User.toObject(i.user,c)),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.PublishNotify"},f}(),D.SubscribeReq=function(){function f(k){if(this.users=[],k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.users=$util.emptyArray,f.create=function(i){return new f(i)},f.encode=function(i,c){if(c||(c=$Writer.create()),i.users!=null&&i.users.length)for(let $=0;$<i.users.length;++$)$root.com.quick.voice.proto.User.encode(i.users[$],c.uint32(10).fork()).ldelim();return c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.SubscribeReq;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.users&&C.users.length||(C.users=[]),C.users.push($root.com.quick.voice.proto.User.decode(i,i.uint32()));break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.users!=null&&i.hasOwnProperty("users")){if(!Array.isArray(i.users))return"users: array expected";for(let c=0;c<i.users.length;++c){let $=$root.com.quick.voice.proto.User.verify(i.users[c]);if($)return"users."+$}}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.SubscribeReq)return i;let c=new $root.com.quick.voice.proto.SubscribeReq;if(i.users){if(!Array.isArray(i.users))throw TypeError(".com.quick.voice.proto.SubscribeReq.users: array expected");c.users=[];for(let $=0;$<i.users.length;++$){if(typeof i.users[$]!="object")throw TypeError(".com.quick.voice.proto.SubscribeReq.users: object expected");c.users[$]=$root.com.quick.voice.proto.User.fromObject(i.users[$])}}return c},f.toObject=function(i,c){c||(c={});let $={};if((c.arrays||c.defaults)&&($.users=[]),i.users&&i.users.length){$.users=[];for(let C=0;C<i.users.length;++C)$.users[C]=$root.com.quick.voice.proto.User.toObject(i.users[C],c)}return $},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.SubscribeReq"},f}(),D.SubscribeRsp=function(){function f(k){if(this.users=[],k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.remoteSdp="",f.prototype.users=$util.emptyArray,f.create=function(i){return new f(i)},f.encode=function(i,c){if(c||(c=$Writer.create()),i.remoteSdp!=null&&Object.hasOwnProperty.call(i,"remoteSdp")&&c.uint32(10).string(i.remoteSdp),i.users!=null&&i.users.length)for(let $=0;$<i.users.length;++$)$root.com.quick.voice.proto.User.encode(i.users[$],c.uint32(18).fork()).ldelim();return c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.SubscribeRsp;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.remoteSdp=i.string();break}case 2:{C.users&&C.users.length||(C.users=[]),C.users.push($root.com.quick.voice.proto.User.decode(i,i.uint32()));break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.remoteSdp!=null&&i.hasOwnProperty("remoteSdp")&&!$util.isString(i.remoteSdp))return"remoteSdp: string expected";if(i.users!=null&&i.hasOwnProperty("users")){if(!Array.isArray(i.users))return"users: array expected";for(let c=0;c<i.users.length;++c){let $=$root.com.quick.voice.proto.User.verify(i.users[c]);if($)return"users."+$}}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.SubscribeRsp)return i;let c=new $root.com.quick.voice.proto.SubscribeRsp;if(i.remoteSdp!=null&&(c.remoteSdp=String(i.remoteSdp)),i.users){if(!Array.isArray(i.users))throw TypeError(".com.quick.voice.proto.SubscribeRsp.users: array expected");c.users=[];for(let $=0;$<i.users.length;++$){if(typeof i.users[$]!="object")throw TypeError(".com.quick.voice.proto.SubscribeRsp.users: object expected");c.users[$]=$root.com.quick.voice.proto.User.fromObject(i.users[$])}}return c},f.toObject=function(i,c){c||(c={});let $={};if((c.arrays||c.defaults)&&($.users=[]),c.defaults&&($.remoteSdp=""),i.remoteSdp!=null&&i.hasOwnProperty("remoteSdp")&&($.remoteSdp=i.remoteSdp),i.users&&i.users.length){$.users=[];for(let C=0;C<i.users.length;++C)$.users[C]=$root.com.quick.voice.proto.User.toObject(i.users[C],c)}return $},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.SubscribeRsp"},f}(),D.RenegotiateReq=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.userId="",f.prototype.sdp="",f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.userId!=null&&Object.hasOwnProperty.call(i,"userId")&&c.uint32(10).string(i.userId),i.sdp!=null&&Object.hasOwnProperty.call(i,"sdp")&&c.uint32(18).string(i.sdp),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.RenegotiateReq;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.userId=i.string();break}case 2:{C.sdp=i.string();break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){return typeof i!="object"||i===null?"object expected":i.userId!=null&&i.hasOwnProperty("userId")&&!$util.isString(i.userId)?"userId: string expected":i.sdp!=null&&i.hasOwnProperty("sdp")&&!$util.isString(i.sdp)?"sdp: string expected":null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.RenegotiateReq)return i;let c=new $root.com.quick.voice.proto.RenegotiateReq;return i.userId!=null&&(c.userId=String(i.userId)),i.sdp!=null&&(c.sdp=String(i.sdp)),c},f.toObject=function(i,c){c||(c={});let $={};return c.defaults&&($.userId="",$.sdp=""),i.userId!=null&&i.hasOwnProperty("userId")&&($.userId=i.userId),i.sdp!=null&&i.hasOwnProperty("sdp")&&($.sdp=i.sdp),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.RenegotiateReq"},f}(),D.QuitReq=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.userId="",f.prototype.roomId="",f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.userId!=null&&Object.hasOwnProperty.call(i,"userId")&&c.uint32(10).string(i.userId),i.roomId!=null&&Object.hasOwnProperty.call(i,"roomId")&&c.uint32(18).string(i.roomId),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.QuitReq;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.userId=i.string();break}case 2:{C.roomId=i.string();break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){return typeof i!="object"||i===null?"object expected":i.userId!=null&&i.hasOwnProperty("userId")&&!$util.isString(i.userId)?"userId: string expected":i.roomId!=null&&i.hasOwnProperty("roomId")&&!$util.isString(i.roomId)?"roomId: string expected":null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.QuitReq)return i;let c=new $root.com.quick.voice.proto.QuitReq;return i.userId!=null&&(c.userId=String(i.userId)),i.roomId!=null&&(c.roomId=String(i.roomId)),c},f.toObject=function(i,c){c||(c={});let $={};return c.defaults&&($.userId="",$.roomId=""),i.userId!=null&&i.hasOwnProperty("userId")&&($.userId=i.userId),i.roomId!=null&&i.hasOwnProperty("roomId")&&($.roomId=i.roomId),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.QuitReq"},f}(),D.QuitNotify=function(){function f(i){if(i)for(let c=Object.keys(i),$=0;$<c.length;++$)i[c[$]]!=null&&(this[c[$]]=i[c[$]])}f.prototype.roomId="",f.prototype.user=null,f.prototype.code=null,f.prototype.desc=null;let k;return Object.defineProperty(f.prototype,"_code",{get:$util.oneOfGetter(k=["code"]),set:$util.oneOfSetter(k)}),Object.defineProperty(f.prototype,"_desc",{get:$util.oneOfGetter(k=["desc"]),set:$util.oneOfSetter(k)}),f.create=function(c){return new f(c)},f.encode=function(c,$){return $||($=$Writer.create()),c.roomId!=null&&Object.hasOwnProperty.call(c,"roomId")&&$.uint32(10).string(c.roomId),c.user!=null&&Object.hasOwnProperty.call(c,"user")&&$root.com.quick.voice.proto.User.encode(c.user,$.uint32(18).fork()).ldelim(),c.code!=null&&Object.hasOwnProperty.call(c,"code")&&$.uint32(24).int32(c.code),c.desc!=null&&Object.hasOwnProperty.call(c,"desc")&&$.uint32(34).string(c.desc),$},f.encodeDelimited=function(c,$){return this.encode(c,$).ldelim()},f.decode=function(c,$){c instanceof $Reader||(c=$Reader.create(c));let C=$===void 0?c.len:c.pos+$,M=new $root.com.quick.voice.proto.QuitNotify;for(;c.pos<C;){let Z=c.uint32();switch(Z>>>3){case 1:{M.roomId=c.string();break}case 2:{M.user=$root.com.quick.voice.proto.User.decode(c,c.uint32());break}case 3:{M.code=c.int32();break}case 4:{M.desc=c.string();break}default:c.skipType(Z&7);break}}return M},f.decodeDelimited=function(c){return c instanceof $Reader||(c=new $Reader(c)),this.decode(c,c.uint32())},f.verify=function(c){if(typeof c!="object"||c===null)return"object expected";if(c.roomId!=null&&c.hasOwnProperty("roomId")&&!$util.isString(c.roomId))return"roomId: string expected";if(c.user!=null&&c.hasOwnProperty("user")){let $=$root.com.quick.voice.proto.User.verify(c.user);if($)return"user."+$}return c.code!=null&&c.hasOwnProperty("code")&&!$util.isInteger(c.code)?"code: integer expected":c.desc!=null&&c.hasOwnProperty("desc")&&!$util.isString(c.desc)?"desc: string expected":null},f.fromObject=function(c){if(c instanceof $root.com.quick.voice.proto.QuitNotify)return c;let $=new $root.com.quick.voice.proto.QuitNotify;if(c.roomId!=null&&($.roomId=String(c.roomId)),c.user!=null){if(typeof c.user!="object")throw TypeError(".com.quick.voice.proto.QuitNotify.user: object expected");$.user=$root.com.quick.voice.proto.User.fromObject(c.user)}return c.code!=null&&($.code=c.code|0),c.desc!=null&&($.desc=String(c.desc)),$},f.toObject=function(c,$){$||($={});let C={};return $.defaults&&(C.roomId="",C.user=null),c.roomId!=null&&c.hasOwnProperty("roomId")&&(C.roomId=c.roomId),c.user!=null&&c.hasOwnProperty("user")&&(C.user=$root.com.quick.voice.proto.User.toObject(c.user,$)),c.code!=null&&c.hasOwnProperty("code")&&(C.code=c.code,$.oneofs&&(C._code="code")),c.desc!=null&&c.hasOwnProperty("desc")&&(C.desc=c.desc,$.oneofs&&(C._desc="desc")),C},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/com.quick.voice.proto.QuitNotify"},f}(),D.TokenExpireNotify=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.roomId="",f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.roomId!=null&&Object.hasOwnProperty.call(i,"roomId")&&c.uint32(10).string(i.roomId),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.TokenExpireNotify;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.roomId=i.string();break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){return typeof i!="object"||i===null?"object expected":i.roomId!=null&&i.hasOwnProperty("roomId")&&!$util.isString(i.roomId)?"roomId: string expected":null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.TokenExpireNotify)return i;let c=new $root.com.quick.voice.proto.TokenExpireNotify;return i.roomId!=null&&(c.roomId=String(i.roomId)),c},f.toObject=function(i,c){c||(c={});let $={};return c.defaults&&($.roomId=""),i.roomId!=null&&i.hasOwnProperty("roomId")&&($.roomId=i.roomId),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.TokenExpireNotify"},f}(),D.UpdateTokenReq=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.roomId="",f.prototype.sdkToken="",f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.roomId!=null&&Object.hasOwnProperty.call(i,"roomId")&&c.uint32(10).string(i.roomId),i.sdkToken!=null&&Object.hasOwnProperty.call(i,"sdkToken")&&c.uint32(18).string(i.sdkToken),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.UpdateTokenReq;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.roomId=i.string();break}case 2:{C.sdkToken=i.string();break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){return typeof i!="object"||i===null?"object expected":i.roomId!=null&&i.hasOwnProperty("roomId")&&!$util.isString(i.roomId)?"roomId: string expected":i.sdkToken!=null&&i.hasOwnProperty("sdkToken")&&!$util.isString(i.sdkToken)?"sdkToken: string expected":null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.UpdateTokenReq)return i;let c=new $root.com.quick.voice.proto.UpdateTokenReq;return i.roomId!=null&&(c.roomId=String(i.roomId)),i.sdkToken!=null&&(c.sdkToken=String(i.sdkToken)),c},f.toObject=function(i,c){c||(c={});let $={};return c.defaults&&($.roomId="",$.sdkToken=""),i.roomId!=null&&i.hasOwnProperty("roomId")&&($.roomId=i.roomId),i.sdkToken!=null&&i.hasOwnProperty("sdkToken")&&($.sdkToken=i.sdkToken),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.UpdateTokenReq"},f}(),D.NetQualityChange=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.userId="",f.prototype.roomId="",f.prototype.egress=0,f.prototype.ingress=0,f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.userId!=null&&Object.hasOwnProperty.call(i,"userId")&&c.uint32(10).string(i.userId),i.roomId!=null&&Object.hasOwnProperty.call(i,"roomId")&&c.uint32(18).string(i.roomId),i.egress!=null&&Object.hasOwnProperty.call(i,"egress")&&c.uint32(24).int32(i.egress),i.ingress!=null&&Object.hasOwnProperty.call(i,"ingress")&&c.uint32(32).int32(i.ingress),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.NetQualityChange;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.userId=i.string();break}case 2:{C.roomId=i.string();break}case 3:{C.egress=i.int32();break}case 4:{C.ingress=i.int32();break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){return typeof i!="object"||i===null?"object expected":i.userId!=null&&i.hasOwnProperty("userId")&&!$util.isString(i.userId)?"userId: string expected":i.roomId!=null&&i.hasOwnProperty("roomId")&&!$util.isString(i.roomId)?"roomId: string expected":i.egress!=null&&i.hasOwnProperty("egress")&&!$util.isInteger(i.egress)?"egress: integer expected":i.ingress!=null&&i.hasOwnProperty("ingress")&&!$util.isInteger(i.ingress)?"ingress: integer expected":null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.NetQualityChange)return i;let c=new $root.com.quick.voice.proto.NetQualityChange;return i.userId!=null&&(c.userId=String(i.userId)),i.roomId!=null&&(c.roomId=String(i.roomId)),i.egress!=null&&(c.egress=i.egress|0),i.ingress!=null&&(c.ingress=i.ingress|0),c},f.toObject=function(i,c){c||(c={});let $={};return c.defaults&&($.userId="",$.roomId="",$.egress=0,$.ingress=0),i.userId!=null&&i.hasOwnProperty("userId")&&($.userId=i.userId),i.roomId!=null&&i.hasOwnProperty("roomId")&&($.roomId=i.roomId),i.egress!=null&&i.hasOwnProperty("egress")&&($.egress=i.egress),i.ingress!=null&&i.hasOwnProperty("ingress")&&($.ingress=i.ingress),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.NetQualityChange"},f}(),D.NetQualityNotify=function(){function f(k){if(this.qualities=[],k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.qualities=$util.emptyArray,f.create=function(i){return new f(i)},f.encode=function(i,c){if(c||(c=$Writer.create()),i.qualities!=null&&i.qualities.length)for(let $=0;$<i.qualities.length;++$)$root.com.quick.voice.proto.NetQualityChange.encode(i.qualities[$],c.uint32(10).fork()).ldelim();return c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.NetQualityNotify;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.qualities&&C.qualities.length||(C.qualities=[]),C.qualities.push($root.com.quick.voice.proto.NetQualityChange.decode(i,i.uint32()));break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.qualities!=null&&i.hasOwnProperty("qualities")){if(!Array.isArray(i.qualities))return"qualities: array expected";for(let c=0;c<i.qualities.length;++c){let $=$root.com.quick.voice.proto.NetQualityChange.verify(i.qualities[c]);if($)return"qualities."+$}}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.NetQualityNotify)return i;let c=new $root.com.quick.voice.proto.NetQualityNotify;if(i.qualities){if(!Array.isArray(i.qualities))throw TypeError(".com.quick.voice.proto.NetQualityNotify.qualities: array expected");c.qualities=[];for(let $=0;$<i.qualities.length;++$){if(typeof i.qualities[$]!="object")throw TypeError(".com.quick.voice.proto.NetQualityNotify.qualities: object expected");c.qualities[$]=$root.com.quick.voice.proto.NetQualityChange.fromObject(i.qualities[$])}}return c},f.toObject=function(i,c){c||(c={});let $={};if((c.arrays||c.defaults)&&($.qualities=[]),i.qualities&&i.qualities.length){$.qualities=[];for(let C=0;C<i.qualities.length;++C)$.qualities[C]=$root.com.quick.voice.proto.NetQualityChange.toObject(i.qualities[C],c)}return $},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.NetQualityNotify"},f}(),D.UpdateCall=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.roomId="",f.prototype.user=null,f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.roomId!=null&&Object.hasOwnProperty.call(i,"roomId")&&c.uint32(10).string(i.roomId),i.user!=null&&Object.hasOwnProperty.call(i,"user")&&$root.com.quick.voice.proto.User.encode(i.user,c.uint32(18).fork()).ldelim(),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.UpdateCall;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.roomId=i.string();break}case 2:{C.user=$root.com.quick.voice.proto.User.decode(i,i.uint32());break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.roomId!=null&&i.hasOwnProperty("roomId")&&!$util.isString(i.roomId))return"roomId: string expected";if(i.user!=null&&i.hasOwnProperty("user")){let c=$root.com.quick.voice.proto.User.verify(i.user);if(c)return"user."+c}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.UpdateCall)return i;let c=new $root.com.quick.voice.proto.UpdateCall;if(i.roomId!=null&&(c.roomId=String(i.roomId)),i.user!=null){if(typeof i.user!="object")throw TypeError(".com.quick.voice.proto.UpdateCall.user: object expected");c.user=$root.com.quick.voice.proto.User.fromObject(i.user)}return c},f.toObject=function(i,c){c||(c={});let $={};return c.defaults&&($.roomId="",$.user=null),i.roomId!=null&&i.hasOwnProperty("roomId")&&($.roomId=i.roomId),i.user!=null&&i.hasOwnProperty("user")&&($.user=$root.com.quick.voice.proto.User.toObject(i.user,c)),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.UpdateCall"},f}(),D.SyncRoomInfoReq=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.roomId="",f.prototype.user=null,f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.roomId!=null&&Object.hasOwnProperty.call(i,"roomId")&&c.uint32(10).string(i.roomId),i.user!=null&&Object.hasOwnProperty.call(i,"user")&&$root.com.quick.voice.proto.User.encode(i.user,c.uint32(18).fork()).ldelim(),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.SyncRoomInfoReq;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.roomId=i.string();break}case 2:{C.user=$root.com.quick.voice.proto.User.decode(i,i.uint32());break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.roomId!=null&&i.hasOwnProperty("roomId")&&!$util.isString(i.roomId))return"roomId: string expected";if(i.user!=null&&i.hasOwnProperty("user")){let c=$root.com.quick.voice.proto.User.verify(i.user);if(c)return"user."+c}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.SyncRoomInfoReq)return i;let c=new $root.com.quick.voice.proto.SyncRoomInfoReq;if(i.roomId!=null&&(c.roomId=String(i.roomId)),i.user!=null){if(typeof i.user!="object")throw TypeError(".com.quick.voice.proto.SyncRoomInfoReq.user: object expected");c.user=$root.com.quick.voice.proto.User.fromObject(i.user)}return c},f.toObject=function(i,c){c||(c={});let $={};return c.defaults&&($.roomId="",$.user=null),i.roomId!=null&&i.hasOwnProperty("roomId")&&($.roomId=i.roomId),i.user!=null&&i.hasOwnProperty("user")&&($.user=$root.com.quick.voice.proto.User.toObject(i.user,c)),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.SyncRoomInfoReq"},f}(),D.SyncRoomInfoRsp=function(){function f(k){if(this.users=[],k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.roomId="",f.prototype.isValid=!1,f.prototype.users=$util.emptyArray,f.prototype.isActive=!1,f.create=function(i){return new f(i)},f.encode=function(i,c){if(c||(c=$Writer.create()),i.roomId!=null&&Object.hasOwnProperty.call(i,"roomId")&&c.uint32(10).string(i.roomId),i.isValid!=null&&Object.hasOwnProperty.call(i,"isValid")&&c.uint32(16).bool(i.isValid),i.users!=null&&i.users.length)for(let $=0;$<i.users.length;++$)$root.com.quick.voice.proto.User.encode(i.users[$],c.uint32(26).fork()).ldelim();return i.isActive!=null&&Object.hasOwnProperty.call(i,"isActive")&&c.uint32(32).bool(i.isActive),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.SyncRoomInfoRsp;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.roomId=i.string();break}case 2:{C.isValid=i.bool();break}case 3:{C.users&&C.users.length||(C.users=[]),C.users.push($root.com.quick.voice.proto.User.decode(i,i.uint32()));break}case 4:{C.isActive=i.bool();break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.roomId!=null&&i.hasOwnProperty("roomId")&&!$util.isString(i.roomId))return"roomId: string expected";if(i.isValid!=null&&i.hasOwnProperty("isValid")&&typeof i.isValid!="boolean")return"isValid: boolean expected";if(i.users!=null&&i.hasOwnProperty("users")){if(!Array.isArray(i.users))return"users: array expected";for(let c=0;c<i.users.length;++c){let $=$root.com.quick.voice.proto.User.verify(i.users[c]);if($)return"users."+$}}return i.isActive!=null&&i.hasOwnProperty("isActive")&&typeof i.isActive!="boolean"?"isActive: boolean expected":null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.SyncRoomInfoRsp)return i;let c=new $root.com.quick.voice.proto.SyncRoomInfoRsp;if(i.roomId!=null&&(c.roomId=String(i.roomId)),i.isValid!=null&&(c.isValid=!!i.isValid),i.users){if(!Array.isArray(i.users))throw TypeError(".com.quick.voice.proto.SyncRoomInfoRsp.users: array expected");c.users=[];for(let $=0;$<i.users.length;++$){if(typeof i.users[$]!="object")throw TypeError(".com.quick.voice.proto.SyncRoomInfoRsp.users: object expected");c.users[$]=$root.com.quick.voice.proto.User.fromObject(i.users[$])}}return i.isActive!=null&&(c.isActive=!!i.isActive),c},f.toObject=function(i,c){c||(c={});let $={};if((c.arrays||c.defaults)&&($.users=[]),c.defaults&&($.roomId="",$.isValid=!1,$.isActive=!1),i.roomId!=null&&i.hasOwnProperty("roomId")&&($.roomId=i.roomId),i.isValid!=null&&i.hasOwnProperty("isValid")&&($.isValid=i.isValid),i.users&&i.users.length){$.users=[];for(let C=0;C<i.users.length;++C)$.users[C]=$root.com.quick.voice.proto.User.toObject(i.users[C],c)}return i.isActive!=null&&i.hasOwnProperty("isActive")&&($.isActive=i.isActive),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.SyncRoomInfoRsp"},f}(),D.UpdateTime=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.time=$util.Long?$util.Long.fromBits(0,0,!1):0,f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.time!=null&&Object.hasOwnProperty.call(i,"time")&&c.uint32(8).int64(i.time),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.UpdateTime;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.time=i.int64();break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){return typeof i!="object"||i===null?"object expected":i.time!=null&&i.hasOwnProperty("time")&&!$util.isInteger(i.time)&&!(i.time&&$util.isInteger(i.time.low)&&$util.isInteger(i.time.high))?"time: integer|Long expected":null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.UpdateTime)return i;let c=new $root.com.quick.voice.proto.UpdateTime;return i.time!=null&&($util.Long?(c.time=$util.Long.fromValue(i.time)).unsigned=!1:typeof i.time=="string"?c.time=parseInt(i.time,10):typeof i.time=="number"?c.time=i.time:typeof i.time=="object"&&(c.time=new $util.LongBits(i.time.low>>>0,i.time.high>>>0).toNumber())),c},f.toObject=function(i,c){c||(c={});let $={};if(c.defaults)if($util.Long){let C=new $util.Long(0,0,!1);$.time=c.longs===String?C.toString():c.longs===Number?C.toNumber():C}else $.time=c.longs===String?"0":0;return i.time!=null&&i.hasOwnProperty("time")&&(typeof i.time=="number"?$.time=c.longs===String?String(i.time):i.time:$.time=c.longs===String?$util.Long.prototype.toString.call(i.time):c.longs===Number?new $util.LongBits(i.time.low>>>0,i.time.high>>>0).toNumber():i.time),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.UpdateTime"},f}(),D.CloseTrackReq=function(){function f(k){if(this.tracks=[],k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.sdp="",f.prototype.tracks=$util.emptyArray,f.prototype.roomId="",f.create=function(i){return new f(i)},f.encode=function(i,c){if(c||(c=$Writer.create()),i.sdp!=null&&Object.hasOwnProperty.call(i,"sdp")&&c.uint32(10).string(i.sdp),i.tracks!=null&&i.tracks.length)for(let $=0;$<i.tracks.length;++$)$root.com.quick.voice.proto.Track.encode(i.tracks[$],c.uint32(18).fork()).ldelim();return i.roomId!=null&&Object.hasOwnProperty.call(i,"roomId")&&c.uint32(26).string(i.roomId),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.CloseTrackReq;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.sdp=i.string();break}case 2:{C.tracks&&C.tracks.length||(C.tracks=[]),C.tracks.push($root.com.quick.voice.proto.Track.decode(i,i.uint32()));break}case 3:{C.roomId=i.string();break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.sdp!=null&&i.hasOwnProperty("sdp")&&!$util.isString(i.sdp))return"sdp: string expected";if(i.tracks!=null&&i.hasOwnProperty("tracks")){if(!Array.isArray(i.tracks))return"tracks: array expected";for(let c=0;c<i.tracks.length;++c){let $=$root.com.quick.voice.proto.Track.verify(i.tracks[c]);if($)return"tracks."+$}}return i.roomId!=null&&i.hasOwnProperty("roomId")&&!$util.isString(i.roomId)?"roomId: string expected":null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.CloseTrackReq)return i;let c=new $root.com.quick.voice.proto.CloseTrackReq;if(i.sdp!=null&&(c.sdp=String(i.sdp)),i.tracks){if(!Array.isArray(i.tracks))throw TypeError(".com.quick.voice.proto.CloseTrackReq.tracks: array expected");c.tracks=[];for(let $=0;$<i.tracks.length;++$){if(typeof i.tracks[$]!="object")throw TypeError(".com.quick.voice.proto.CloseTrackReq.tracks: object expected");c.tracks[$]=$root.com.quick.voice.proto.Track.fromObject(i.tracks[$])}}return i.roomId!=null&&(c.roomId=String(i.roomId)),c},f.toObject=function(i,c){c||(c={});let $={};if((c.arrays||c.defaults)&&($.tracks=[]),c.defaults&&($.sdp="",$.roomId=""),i.sdp!=null&&i.hasOwnProperty("sdp")&&($.sdp=i.sdp),i.tracks&&i.tracks.length){$.tracks=[];for(let C=0;C<i.tracks.length;++C)$.tracks[C]=$root.com.quick.voice.proto.Track.toObject(i.tracks[C],c)}return i.roomId!=null&&i.hasOwnProperty("roomId")&&($.roomId=i.roomId),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.CloseTrackReq"},f}(),D.CloseTrackRsp=function(){function f(k){if(this.tracks=[],k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.remoteSdp="",f.prototype.tracks=$util.emptyArray,f.create=function(i){return new f(i)},f.encode=function(i,c){if(c||(c=$Writer.create()),i.remoteSdp!=null&&Object.hasOwnProperty.call(i,"remoteSdp")&&c.uint32(10).string(i.remoteSdp),i.tracks!=null&&i.tracks.length)for(let $=0;$<i.tracks.length;++$)$root.com.quick.voice.proto.Track.encode(i.tracks[$],c.uint32(18).fork()).ldelim();return c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.CloseTrackRsp;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.remoteSdp=i.string();break}case 2:{C.tracks&&C.tracks.length||(C.tracks=[]),C.tracks.push($root.com.quick.voice.proto.Track.decode(i,i.uint32()));break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.remoteSdp!=null&&i.hasOwnProperty("remoteSdp")&&!$util.isString(i.remoteSdp))return"remoteSdp: string expected";if(i.tracks!=null&&i.hasOwnProperty("tracks")){if(!Array.isArray(i.tracks))return"tracks: array expected";for(let c=0;c<i.tracks.length;++c){let $=$root.com.quick.voice.proto.Track.verify(i.tracks[c]);if($)return"tracks."+$}}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.CloseTrackRsp)return i;let c=new $root.com.quick.voice.proto.CloseTrackRsp;if(i.remoteSdp!=null&&(c.remoteSdp=String(i.remoteSdp)),i.tracks){if(!Array.isArray(i.tracks))throw TypeError(".com.quick.voice.proto.CloseTrackRsp.tracks: array expected");c.tracks=[];for(let $=0;$<i.tracks.length;++$){if(typeof i.tracks[$]!="object")throw TypeError(".com.quick.voice.proto.CloseTrackRsp.tracks: object expected");c.tracks[$]=$root.com.quick.voice.proto.Track.fromObject(i.tracks[$])}}return c},f.toObject=function(i,c){c||(c={});let $={};if((c.arrays||c.defaults)&&($.tracks=[]),c.defaults&&($.remoteSdp=""),i.remoteSdp!=null&&i.hasOwnProperty("remoteSdp")&&($.remoteSdp=i.remoteSdp),i.tracks&&i.tracks.length){$.tracks=[];for(let C=0;C<i.tracks.length;++C)$.tracks[C]=$root.com.quick.voice.proto.Track.toObject(i.tracks[C],c)}return $},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.CloseTrackRsp"},f}(),D.CloseTrackNotify=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.user=null,f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.user!=null&&Object.hasOwnProperty.call(i,"user")&&$root.com.quick.voice.proto.User.encode(i.user,c.uint32(10).fork()).ldelim(),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.CloseTrackNotify;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.user=$root.com.quick.voice.proto.User.decode(i,i.uint32());break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.user!=null&&i.hasOwnProperty("user")){let c=$root.com.quick.voice.proto.User.verify(i.user);if(c)return"user."+c}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.CloseTrackNotify)return i;let c=new $root.com.quick.voice.proto.CloseTrackNotify;if(i.user!=null){if(typeof i.user!="object")throw TypeError(".com.quick.voice.proto.CloseTrackNotify.user: object expected");c.user=$root.com.quick.voice.proto.User.fromObject(i.user)}return c},f.toObject=function(i,c){c||(c={});let $={};return c.defaults&&($.user=null),i.user!=null&&i.hasOwnProperty("user")&&($.user=$root.com.quick.voice.proto.User.toObject(i.user,c)),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.CloseTrackNotify"},f}(),D.ToggleLiveRoomReq=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.roomId="",f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.roomId!=null&&Object.hasOwnProperty.call(i,"roomId")&&c.uint32(10).string(i.roomId),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.ToggleLiveRoomReq;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.roomId=i.string();break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){return typeof i!="object"||i===null?"object expected":i.roomId!=null&&i.hasOwnProperty("roomId")&&!$util.isString(i.roomId)?"roomId: string expected":null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.ToggleLiveRoomReq)return i;let c=new $root.com.quick.voice.proto.ToggleLiveRoomReq;return i.roomId!=null&&(c.roomId=String(i.roomId)),c},f.toObject=function(i,c){c||(c={});let $={};return c.defaults&&($.roomId=""),i.roomId!=null&&i.hasOwnProperty("roomId")&&($.roomId=i.roomId),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.ToggleLiveRoomReq"},f}(),D.ToggleLiveRoomRsq=function(){function f(k){if(this.roomUsers=[],k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.roomId="",f.prototype.hash="",f.prototype.roomUsers=$util.emptyArray,f.create=function(i){return new f(i)},f.encode=function(i,c){if(c||(c=$Writer.create()),i.roomId!=null&&Object.hasOwnProperty.call(i,"roomId")&&c.uint32(10).string(i.roomId),i.hash!=null&&Object.hasOwnProperty.call(i,"hash")&&c.uint32(18).string(i.hash),i.roomUsers!=null&&i.roomUsers.length)for(let $=0;$<i.roomUsers.length;++$)$root.com.quick.voice.proto.User.encode(i.roomUsers[$],c.uint32(26).fork()).ldelim();return c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.ToggleLiveRoomRsq;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.roomId=i.string();break}case 2:{C.hash=i.string();break}case 3:{C.roomUsers&&C.roomUsers.length||(C.roomUsers=[]),C.roomUsers.push($root.com.quick.voice.proto.User.decode(i,i.uint32()));break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.roomId!=null&&i.hasOwnProperty("roomId")&&!$util.isString(i.roomId))return"roomId: string expected";if(i.hash!=null&&i.hasOwnProperty("hash")&&!$util.isString(i.hash))return"hash: string expected";if(i.roomUsers!=null&&i.hasOwnProperty("roomUsers")){if(!Array.isArray(i.roomUsers))return"roomUsers: array expected";for(let c=0;c<i.roomUsers.length;++c){let $=$root.com.quick.voice.proto.User.verify(i.roomUsers[c]);if($)return"roomUsers."+$}}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.ToggleLiveRoomRsq)return i;let c=new $root.com.quick.voice.proto.ToggleLiveRoomRsq;if(i.roomId!=null&&(c.roomId=String(i.roomId)),i.hash!=null&&(c.hash=String(i.hash)),i.roomUsers){if(!Array.isArray(i.roomUsers))throw TypeError(".com.quick.voice.proto.ToggleLiveRoomRsq.roomUsers: array expected");c.roomUsers=[];for(let $=0;$<i.roomUsers.length;++$){if(typeof i.roomUsers[$]!="object")throw TypeError(".com.quick.voice.proto.ToggleLiveRoomRsq.roomUsers: object expected");c.roomUsers[$]=$root.com.quick.voice.proto.User.fromObject(i.roomUsers[$])}}return c},f.toObject=function(i,c){c||(c={});let $={};if((c.arrays||c.defaults)&&($.roomUsers=[]),c.defaults&&($.roomId="",$.hash=""),i.roomId!=null&&i.hasOwnProperty("roomId")&&($.roomId=i.roomId),i.hash!=null&&i.hasOwnProperty("hash")&&($.hash=i.hash),i.roomUsers&&i.roomUsers.length){$.roomUsers=[];for(let C=0;C<i.roomUsers.length;++C)$.roomUsers[C]=$root.com.quick.voice.proto.User.toObject(i.roomUsers[C],c)}return $},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.ToggleLiveRoomRsq"},f}(),D.TrackType=function(){const f={},k=Object.create(f);return k[f[0]="Microphone"]=0,k[f[1]="Camera"]=1,k[f[2]="Screen"]=2,k[f[3]="SystemVoice"]=3,k}(),D.ReportInfoReq=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.actionEvent="",f.prototype.userId="",f.prototype.platform="",f.prototype.time=$util.Long?$util.Long.fromBits(0,0,!1):0,f.prototype.actionData="",f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.actionEvent!=null&&Object.hasOwnProperty.call(i,"actionEvent")&&c.uint32(10).string(i.actionEvent),i.userId!=null&&Object.hasOwnProperty.call(i,"userId")&&c.uint32(18).string(i.userId),i.platform!=null&&Object.hasOwnProperty.call(i,"platform")&&c.uint32(26).string(i.platform),i.time!=null&&Object.hasOwnProperty.call(i,"time")&&c.uint32(32).int64(i.time),i.actionData!=null&&Object.hasOwnProperty.call(i,"actionData")&&c.uint32(42).string(i.actionData),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.ReportInfoReq;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.actionEvent=i.string();break}case 2:{C.userId=i.string();break}case 3:{C.platform=i.string();break}case 4:{C.time=i.int64();break}case 5:{C.actionData=i.string();break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){return typeof i!="object"||i===null?"object expected":i.actionEvent!=null&&i.hasOwnProperty("actionEvent")&&!$util.isString(i.actionEvent)?"actionEvent: string expected":i.userId!=null&&i.hasOwnProperty("userId")&&!$util.isString(i.userId)?"userId: string expected":i.platform!=null&&i.hasOwnProperty("platform")&&!$util.isString(i.platform)?"platform: string expected":i.time!=null&&i.hasOwnProperty("time")&&!$util.isInteger(i.time)&&!(i.time&&$util.isInteger(i.time.low)&&$util.isInteger(i.time.high))?"time: integer|Long expected":i.actionData!=null&&i.hasOwnProperty("actionData")&&!$util.isString(i.actionData)?"actionData: string expected":null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.ReportInfoReq)return i;let c=new $root.com.quick.voice.proto.ReportInfoReq;return i.actionEvent!=null&&(c.actionEvent=String(i.actionEvent)),i.userId!=null&&(c.userId=String(i.userId)),i.platform!=null&&(c.platform=String(i.platform)),i.time!=null&&($util.Long?(c.time=$util.Long.fromValue(i.time)).unsigned=!1:typeof i.time=="string"?c.time=parseInt(i.time,10):typeof i.time=="number"?c.time=i.time:typeof i.time=="object"&&(c.time=new $util.LongBits(i.time.low>>>0,i.time.high>>>0).toNumber())),i.actionData!=null&&(c.actionData=String(i.actionData)),c},f.toObject=function(i,c){c||(c={});let $={};if(c.defaults){if($.actionEvent="",$.userId="",$.platform="",$util.Long){let C=new $util.Long(0,0,!1);$.time=c.longs===String?C.toString():c.longs===Number?C.toNumber():C}else $.time=c.longs===String?"0":0;$.actionData=""}return i.actionEvent!=null&&i.hasOwnProperty("actionEvent")&&($.actionEvent=i.actionEvent),i.userId!=null&&i.hasOwnProperty("userId")&&($.userId=i.userId),i.platform!=null&&i.hasOwnProperty("platform")&&($.platform=i.platform),i.time!=null&&i.hasOwnProperty("time")&&(typeof i.time=="number"?$.time=c.longs===String?String(i.time):i.time:$.time=c.longs===String?$util.Long.prototype.toString.call(i.time):c.longs===Number?new $util.LongBits(i.time.low>>>0,i.time.high>>>0).toNumber():i.time),i.actionData!=null&&i.hasOwnProperty("actionData")&&($.actionData=i.actionData),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.ReportInfoReq"},f}(),D.UpdatePermissions=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.roomId="",f.prototype.user=null,f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.roomId!=null&&Object.hasOwnProperty.call(i,"roomId")&&c.uint32(10).string(i.roomId),i.user!=null&&Object.hasOwnProperty.call(i,"user")&&$root.com.quick.voice.proto.User.encode(i.user,c.uint32(18).fork()).ldelim(),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.UpdatePermissions;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.roomId=i.string();break}case 2:{C.user=$root.com.quick.voice.proto.User.decode(i,i.uint32());break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.roomId!=null&&i.hasOwnProperty("roomId")&&!$util.isString(i.roomId))return"roomId: string expected";if(i.user!=null&&i.hasOwnProperty("user")){let c=$root.com.quick.voice.proto.User.verify(i.user);if(c)return"user."+c}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.UpdatePermissions)return i;let c=new $root.com.quick.voice.proto.UpdatePermissions;if(i.roomId!=null&&(c.roomId=String(i.roomId)),i.user!=null){if(typeof i.user!="object")throw TypeError(".com.quick.voice.proto.UpdatePermissions.user: object expected");c.user=$root.com.quick.voice.proto.User.fromObject(i.user)}return c},f.toObject=function(i,c){c||(c={});let $={};return c.defaults&&($.roomId="",$.user=null),i.roomId!=null&&i.hasOwnProperty("roomId")&&($.roomId=i.roomId),i.user!=null&&i.hasOwnProperty("user")&&($.user=$root.com.quick.voice.proto.User.toObject(i.user,c)),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.UpdatePermissions"},f}(),D.CallType=function(){const f={},k=Object.create(f);return k[f[0]="Normal"]=0,k[f[1]="Meeting"]=1,k[f[2]="Live"]=2,k}(),D.QuitNotifyCode=function(){const f={},k=Object.create(f);return k[f[0]="NormalQuit"]=0,k[f[2021]="Timeout"]=2021,k[f[2011]="TokenExpired"]=2011,k[f[2022]="KickOut"]=2022,k[f[2023]="EndPk"]=2023,k[f[2024]="EndLive"]=2024,k}(),D.UserBehavior=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.type=0,f.prototype.behavior=!1,f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.type!=null&&Object.hasOwnProperty.call(i,"type")&&c.uint32(8).int32(i.type),i.behavior!=null&&Object.hasOwnProperty.call(i,"behavior")&&c.uint32(16).bool(i.behavior),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.UserBehavior;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.type=i.int32();break}case 2:{C.behavior=i.bool();break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.type!=null&&i.hasOwnProperty("type"))switch(i.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:break}return i.behavior!=null&&i.hasOwnProperty("behavior")&&typeof i.behavior!="boolean"?"behavior: boolean expected":null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.UserBehavior)return i;let c=new $root.com.quick.voice.proto.UserBehavior;switch(i.type){default:if(typeof i.type=="number"){c.type=i.type;break}break;case"Microphone":case 0:c.type=0;break;case"Camera":case 1:c.type=1;break;case"Screen":case 2:c.type=2;break;case"SystemVoice":case 3:c.type=3;break}return i.behavior!=null&&(c.behavior=!!i.behavior),c},f.toObject=function(i,c){c||(c={});let $={};return c.defaults&&($.type=c.enums===String?"Microphone":0,$.behavior=!1),i.type!=null&&i.hasOwnProperty("type")&&($.type=c.enums===String?$root.com.quick.voice.proto.TrackType[i.type]===void 0?i.type:$root.com.quick.voice.proto.TrackType[i.type]:i.type),i.behavior!=null&&i.hasOwnProperty("behavior")&&($.behavior=i.behavior),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.UserBehavior"},f}(),D.PreventUser=function(){function f(k){if(this.behaviors=[],k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.id="",f.prototype.behaviors=$util.emptyArray,f.create=function(i){return new f(i)},f.encode=function(i,c){if(c||(c=$Writer.create()),i.id!=null&&Object.hasOwnProperty.call(i,"id")&&c.uint32(10).string(i.id),i.behaviors!=null&&i.behaviors.length)for(let $=0;$<i.behaviors.length;++$)$root.com.quick.voice.proto.UserBehavior.encode(i.behaviors[$],c.uint32(18).fork()).ldelim();return c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.PreventUser;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.id=i.string();break}case 2:{C.behaviors&&C.behaviors.length||(C.behaviors=[]),C.behaviors.push($root.com.quick.voice.proto.UserBehavior.decode(i,i.uint32()));break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.id!=null&&i.hasOwnProperty("id")&&!$util.isString(i.id))return"id: string expected";if(i.behaviors!=null&&i.hasOwnProperty("behaviors")){if(!Array.isArray(i.behaviors))return"behaviors: array expected";for(let c=0;c<i.behaviors.length;++c){let $=$root.com.quick.voice.proto.UserBehavior.verify(i.behaviors[c]);if($)return"behaviors."+$}}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.PreventUser)return i;let c=new $root.com.quick.voice.proto.PreventUser;if(i.id!=null&&(c.id=String(i.id)),i.behaviors){if(!Array.isArray(i.behaviors))throw TypeError(".com.quick.voice.proto.PreventUser.behaviors: array expected");c.behaviors=[];for(let $=0;$<i.behaviors.length;++$){if(typeof i.behaviors[$]!="object")throw TypeError(".com.quick.voice.proto.PreventUser.behaviors: object expected");c.behaviors[$]=$root.com.quick.voice.proto.UserBehavior.fromObject(i.behaviors[$])}}return c},f.toObject=function(i,c){c||(c={});let $={};if((c.arrays||c.defaults)&&($.behaviors=[]),c.defaults&&($.id=""),i.id!=null&&i.hasOwnProperty("id")&&($.id=i.id),i.behaviors&&i.behaviors.length){$.behaviors=[];for(let C=0;C<i.behaviors.length;++C)$.behaviors[C]=$root.com.quick.voice.proto.UserBehavior.toObject(i.behaviors[C],c)}return $},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.PreventUser"},f}(),D.PreventUsersBehaviorReq=function(){function f(k){if(this.users=[],k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.roomId="",f.prototype.users=$util.emptyArray,f.create=function(i){return new f(i)},f.encode=function(i,c){if(c||(c=$Writer.create()),i.roomId!=null&&Object.hasOwnProperty.call(i,"roomId")&&c.uint32(10).string(i.roomId),i.users!=null&&i.users.length)for(let $=0;$<i.users.length;++$)$root.com.quick.voice.proto.PreventUser.encode(i.users[$],c.uint32(18).fork()).ldelim();return c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.PreventUsersBehaviorReq;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.roomId=i.string();break}case 2:{C.users&&C.users.length||(C.users=[]),C.users.push($root.com.quick.voice.proto.PreventUser.decode(i,i.uint32()));break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.roomId!=null&&i.hasOwnProperty("roomId")&&!$util.isString(i.roomId))return"roomId: string expected";if(i.users!=null&&i.hasOwnProperty("users")){if(!Array.isArray(i.users))return"users: array expected";for(let c=0;c<i.users.length;++c){let $=$root.com.quick.voice.proto.PreventUser.verify(i.users[c]);if($)return"users."+$}}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.PreventUsersBehaviorReq)return i;let c=new $root.com.quick.voice.proto.PreventUsersBehaviorReq;if(i.roomId!=null&&(c.roomId=String(i.roomId)),i.users){if(!Array.isArray(i.users))throw TypeError(".com.quick.voice.proto.PreventUsersBehaviorReq.users: array expected");c.users=[];for(let $=0;$<i.users.length;++$){if(typeof i.users[$]!="object")throw TypeError(".com.quick.voice.proto.PreventUsersBehaviorReq.users: object expected");c.users[$]=$root.com.quick.voice.proto.PreventUser.fromObject(i.users[$])}}return c},f.toObject=function(i,c){c||(c={});let $={};if((c.arrays||c.defaults)&&($.users=[]),c.defaults&&($.roomId=""),i.roomId!=null&&i.hasOwnProperty("roomId")&&($.roomId=i.roomId),i.users&&i.users.length){$.users=[];for(let C=0;C<i.users.length;++C)$.users[C]=$root.com.quick.voice.proto.PreventUser.toObject(i.users[C],c)}return $},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.PreventUsersBehaviorReq"},f}(),D.PreventUsersBehaviorNotify=function(){function f(k){if(this.users=[],k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.roomId="",f.prototype.users=$util.emptyArray,f.create=function(i){return new f(i)},f.encode=function(i,c){if(c||(c=$Writer.create()),i.roomId!=null&&Object.hasOwnProperty.call(i,"roomId")&&c.uint32(10).string(i.roomId),i.users!=null&&i.users.length)for(let $=0;$<i.users.length;++$)$root.com.quick.voice.proto.User.encode(i.users[$],c.uint32(18).fork()).ldelim();return c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.PreventUsersBehaviorNotify;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.roomId=i.string();break}case 2:{C.users&&C.users.length||(C.users=[]),C.users.push($root.com.quick.voice.proto.User.decode(i,i.uint32()));break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.roomId!=null&&i.hasOwnProperty("roomId")&&!$util.isString(i.roomId))return"roomId: string expected";if(i.users!=null&&i.hasOwnProperty("users")){if(!Array.isArray(i.users))return"users: array expected";for(let c=0;c<i.users.length;++c){let $=$root.com.quick.voice.proto.User.verify(i.users[c]);if($)return"users."+$}}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.PreventUsersBehaviorNotify)return i;let c=new $root.com.quick.voice.proto.PreventUsersBehaviorNotify;if(i.roomId!=null&&(c.roomId=String(i.roomId)),i.users){if(!Array.isArray(i.users))throw TypeError(".com.quick.voice.proto.PreventUsersBehaviorNotify.users: array expected");c.users=[];for(let $=0;$<i.users.length;++$){if(typeof i.users[$]!="object")throw TypeError(".com.quick.voice.proto.PreventUsersBehaviorNotify.users: object expected");c.users[$]=$root.com.quick.voice.proto.User.fromObject(i.users[$])}}return c},f.toObject=function(i,c){c||(c={});let $={};if((c.arrays||c.defaults)&&($.users=[]),c.defaults&&($.roomId=""),i.roomId!=null&&i.hasOwnProperty("roomId")&&($.roomId=i.roomId),i.users&&i.users.length){$.users=[];for(let C=0;C<i.users.length;++C)$.users[C]=$root.com.quick.voice.proto.User.toObject(i.users[C],c)}return $},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.PreventUsersBehaviorNotify"},f}(),D.AccelerationAreas=function(){const f={},k=Object.create(f);return k[f[0]="chinaMainland"]=0,k[f[1]="global"]=1,k[f[2]="overseas"]=2,k}(),D.CountMethods=function(){const f={},k=Object.create(f);return k[f[0]="flow"]=0,k[f[1]="minutes"]=1,k}(),D.BaseCDNAddress=function(){function f(k){if(this.urlMap={},k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.area=0,f.prototype.countType=0,f.prototype.urlMap=$util.emptyObject,f.create=function(i){return new f(i)},f.encode=function(i,c){if(c||(c=$Writer.create()),i.area!=null&&Object.hasOwnProperty.call(i,"area")&&c.uint32(8).int32(i.area),i.countType!=null&&Object.hasOwnProperty.call(i,"countType")&&c.uint32(16).int32(i.countType),i.urlMap!=null&&Object.hasOwnProperty.call(i,"urlMap"))for(let $=Object.keys(i.urlMap),C=0;C<$.length;++C)c.uint32(26).fork().uint32(10).string($[C]).uint32(18).string(i.urlMap[$[C]]).ldelim();return c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.BaseCDNAddress,M,Z;for(;i.pos<$;){let J=i.uint32();switch(J>>>3){case 1:{C.area=i.int32();break}case 2:{C.countType=i.int32();break}case 3:{C.urlMap===$util.emptyObject&&(C.urlMap={});let z=i.uint32()+i.pos;for(M="",Z="";i.pos<z;){let Q=i.uint32();switch(Q>>>3){case 1:M=i.string();break;case 2:Z=i.string();break;default:i.skipType(Q&7);break}}C.urlMap[M]=Z;break}default:i.skipType(J&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.area!=null&&i.hasOwnProperty("area"))switch(i.area){default:return"area: enum value expected";case 0:case 1:case 2:break}if(i.countType!=null&&i.hasOwnProperty("countType"))switch(i.countType){default:return"countType: enum value expected";case 0:case 1:break}if(i.urlMap!=null&&i.hasOwnProperty("urlMap")){if(!$util.isObject(i.urlMap))return"urlMap: object expected";let c=Object.keys(i.urlMap);for(let $=0;$<c.length;++$)if(!$util.isString(i.urlMap[c[$]]))return"urlMap: string{k:string} expected"}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.BaseCDNAddress)return i;let c=new $root.com.quick.voice.proto.BaseCDNAddress;switch(i.area){default:if(typeof i.area=="number"){c.area=i.area;break}break;case"chinaMainland":case 0:c.area=0;break;case"global":case 1:c.area=1;break;case"overseas":case 2:c.area=2;break}switch(i.countType){default:if(typeof i.countType=="number"){c.countType=i.countType;break}break;case"flow":case 0:c.countType=0;break;case"minutes":case 1:c.countType=1;break}if(i.urlMap){if(typeof i.urlMap!="object")throw TypeError(".com.quick.voice.proto.BaseCDNAddress.urlMap: object expected");c.urlMap={};for(let $=Object.keys(i.urlMap),C=0;C<$.length;++C)c.urlMap[$[C]]=String(i.urlMap[$[C]])}return c},f.toObject=function(i,c){c||(c={});let $={};(c.objects||c.defaults)&&($.urlMap={}),c.defaults&&($.area=c.enums===String?"chinaMainland":0,$.countType=c.enums===String?"flow":0),i.area!=null&&i.hasOwnProperty("area")&&($.area=c.enums===String?$root.com.quick.voice.proto.AccelerationAreas[i.area]===void 0?i.area:$root.com.quick.voice.proto.AccelerationAreas[i.area]:i.area),i.countType!=null&&i.hasOwnProperty("countType")&&($.countType=c.enums===String?$root.com.quick.voice.proto.CountMethods[i.countType]===void 0?i.countType:$root.com.quick.voice.proto.CountMethods[i.countType]:i.countType);let C;if(i.urlMap&&(C=Object.keys(i.urlMap)).length){$.urlMap={};for(let M=0;M<C.length;++M)$.urlMap[C[M]]=i.urlMap[C[M]]}return $},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.BaseCDNAddress"},f}(),D.CDNPlayAddressNotify=function(){function f(i){if(this.standLines=[],i)for(let c=Object.keys(i),$=0;$<c.length;++$)i[c[$]]!=null&&(this[c[$]]=i[c[$]])}f.prototype.roomId="",f.prototype.m3u8=null,f.prototype.rtmp=null,f.prototype.flv=null,f.prototype.rtmps=null,f.prototype.mainLine=null,f.prototype.standLines=$util.emptyArray;let k;return Object.defineProperty(f.prototype,"_m3u8",{get:$util.oneOfGetter(k=["m3u8"]),set:$util.oneOfSetter(k)}),Object.defineProperty(f.prototype,"_rtmp",{get:$util.oneOfGetter(k=["rtmp"]),set:$util.oneOfSetter(k)}),Object.defineProperty(f.prototype,"_flv",{get:$util.oneOfGetter(k=["flv"]),set:$util.oneOfSetter(k)}),Object.defineProperty(f.prototype,"_rtmps",{get:$util.oneOfGetter(k=["rtmps"]),set:$util.oneOfSetter(k)}),Object.defineProperty(f.prototype,"_mainLine",{get:$util.oneOfGetter(k=["mainLine"]),set:$util.oneOfSetter(k)}),f.create=function(c){return new f(c)},f.encode=function(c,$){if($||($=$Writer.create()),c.roomId!=null&&Object.hasOwnProperty.call(c,"roomId")&&$.uint32(10).string(c.roomId),c.m3u8!=null&&Object.hasOwnProperty.call(c,"m3u8")&&$.uint32(18).string(c.m3u8),c.rtmp!=null&&Object.hasOwnProperty.call(c,"rtmp")&&$.uint32(26).string(c.rtmp),c.flv!=null&&Object.hasOwnProperty.call(c,"flv")&&$.uint32(34).string(c.flv),c.rtmps!=null&&Object.hasOwnProperty.call(c,"rtmps")&&$.uint32(42).string(c.rtmps),c.mainLine!=null&&Object.hasOwnProperty.call(c,"mainLine")&&$root.com.quick.voice.proto.BaseCDNAddress.encode(c.mainLine,$.uint32(50).fork()).ldelim(),c.standLines!=null&&c.standLines.length)for(let C=0;C<c.standLines.length;++C)$root.com.quick.voice.proto.BaseCDNAddress.encode(c.standLines[C],$.uint32(58).fork()).ldelim();return $},f.encodeDelimited=function(c,$){return this.encode(c,$).ldelim()},f.decode=function(c,$){c instanceof $Reader||(c=$Reader.create(c));let C=$===void 0?c.len:c.pos+$,M=new $root.com.quick.voice.proto.CDNPlayAddressNotify;for(;c.pos<C;){let Z=c.uint32();switch(Z>>>3){case 1:{M.roomId=c.string();break}case 2:{M.m3u8=c.string();break}case 3:{M.rtmp=c.string();break}case 4:{M.flv=c.string();break}case 5:{M.rtmps=c.string();break}case 6:{M.mainLine=$root.com.quick.voice.proto.BaseCDNAddress.decode(c,c.uint32());break}case 7:{M.standLines&&M.standLines.length||(M.standLines=[]),M.standLines.push($root.com.quick.voice.proto.BaseCDNAddress.decode(c,c.uint32()));break}default:c.skipType(Z&7);break}}return M},f.decodeDelimited=function(c){return c instanceof $Reader||(c=new $Reader(c)),this.decode(c,c.uint32())},f.verify=function(c){if(typeof c!="object"||c===null)return"object expected";if(c.roomId!=null&&c.hasOwnProperty("roomId")&&!$util.isString(c.roomId))return"roomId: string expected";if(c.m3u8!=null&&c.hasOwnProperty("m3u8")&&!$util.isString(c.m3u8))return"m3u8: string expected";if(c.rtmp!=null&&c.hasOwnProperty("rtmp")&&!$util.isString(c.rtmp))return"rtmp: string expected";if(c.flv!=null&&c.hasOwnProperty("flv")&&!$util.isString(c.flv))return"flv: string expected";if(c.rtmps!=null&&c.hasOwnProperty("rtmps")&&!$util.isString(c.rtmps))return"rtmps: string expected";if(c.mainLine!=null&&c.hasOwnProperty("mainLine")){let $=$root.com.quick.voice.proto.BaseCDNAddress.verify(c.mainLine);if($)return"mainLine."+$}if(c.standLines!=null&&c.hasOwnProperty("standLines")){if(!Array.isArray(c.standLines))return"standLines: array expected";for(let $=0;$<c.standLines.length;++$){let C=$root.com.quick.voice.proto.BaseCDNAddress.verify(c.standLines[$]);if(C)return"standLines."+C}}return null},f.fromObject=function(c){if(c instanceof $root.com.quick.voice.proto.CDNPlayAddressNotify)return c;let $=new $root.com.quick.voice.proto.CDNPlayAddressNotify;if(c.roomId!=null&&($.roomId=String(c.roomId)),c.m3u8!=null&&($.m3u8=String(c.m3u8)),c.rtmp!=null&&($.rtmp=String(c.rtmp)),c.flv!=null&&($.flv=String(c.flv)),c.rtmps!=null&&($.rtmps=String(c.rtmps)),c.mainLine!=null){if(typeof c.mainLine!="object")throw TypeError(".com.quick.voice.proto.CDNPlayAddressNotify.mainLine: object expected");$.mainLine=$root.com.quick.voice.proto.BaseCDNAddress.fromObject(c.mainLine)}if(c.standLines){if(!Array.isArray(c.standLines))throw TypeError(".com.quick.voice.proto.CDNPlayAddressNotify.standLines: array expected");$.standLines=[];for(let C=0;C<c.standLines.length;++C){if(typeof c.standLines[C]!="object")throw TypeError(".com.quick.voice.proto.CDNPlayAddressNotify.standLines: object expected");$.standLines[C]=$root.com.quick.voice.proto.BaseCDNAddress.fromObject(c.standLines[C])}}return $},f.toObject=function(c,$){$||($={});let C={};if(($.arrays||$.defaults)&&(C.standLines=[]),$.defaults&&(C.roomId=""),c.roomId!=null&&c.hasOwnProperty("roomId")&&(C.roomId=c.roomId),c.m3u8!=null&&c.hasOwnProperty("m3u8")&&(C.m3u8=c.m3u8,$.oneofs&&(C._m3u8="m3u8")),c.rtmp!=null&&c.hasOwnProperty("rtmp")&&(C.rtmp=c.rtmp,$.oneofs&&(C._rtmp="rtmp")),c.flv!=null&&c.hasOwnProperty("flv")&&(C.flv=c.flv,$.oneofs&&(C._flv="flv")),c.rtmps!=null&&c.hasOwnProperty("rtmps")&&(C.rtmps=c.rtmps,$.oneofs&&(C._rtmps="rtmps")),c.mainLine!=null&&c.hasOwnProperty("mainLine")&&(C.mainLine=$root.com.quick.voice.proto.BaseCDNAddress.toObject(c.mainLine,$),$.oneofs&&(C._mainLine="mainLine")),c.standLines&&c.standLines.length){C.standLines=[];for(let M=0;M<c.standLines.length;++M)C.standLines[M]=$root.com.quick.voice.proto.BaseCDNAddress.toObject(c.standLines[M],$)}return C},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/com.quick.voice.proto.CDNPlayAddressNotify"},f}(),D.UserChannel=function(){function f(k){if(this.channels=[],k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.userId="",f.prototype.channels=$util.emptyArray,f.create=function(i){return new f(i)},f.encode=function(i,c){if(c||(c=$Writer.create()),i.userId!=null&&Object.hasOwnProperty.call(i,"userId")&&c.uint32(10).string(i.userId),i.channels!=null&&i.channels.length)for(let $=0;$<i.channels.length;++$)$root.com.quick.voice.proto.DataChannel.encode(i.channels[$],c.uint32(18).fork()).ldelim();return c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.UserChannel;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.userId=i.string();break}case 2:{C.channels&&C.channels.length||(C.channels=[]),C.channels.push($root.com.quick.voice.proto.DataChannel.decode(i,i.uint32()));break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.userId!=null&&i.hasOwnProperty("userId")&&!$util.isString(i.userId))return"userId: string expected";if(i.channels!=null&&i.hasOwnProperty("channels")){if(!Array.isArray(i.channels))return"channels: array expected";for(let c=0;c<i.channels.length;++c){let $=$root.com.quick.voice.proto.DataChannel.verify(i.channels[c]);if($)return"channels."+$}}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.UserChannel)return i;let c=new $root.com.quick.voice.proto.UserChannel;if(i.userId!=null&&(c.userId=String(i.userId)),i.channels){if(!Array.isArray(i.channels))throw TypeError(".com.quick.voice.proto.UserChannel.channels: array expected");c.channels=[];for(let $=0;$<i.channels.length;++$){if(typeof i.channels[$]!="object")throw TypeError(".com.quick.voice.proto.UserChannel.channels: object expected");c.channels[$]=$root.com.quick.voice.proto.DataChannel.fromObject(i.channels[$])}}return c},f.toObject=function(i,c){c||(c={});let $={};if((c.arrays||c.defaults)&&($.channels=[]),c.defaults&&($.userId=""),i.userId!=null&&i.hasOwnProperty("userId")&&($.userId=i.userId),i.channels&&i.channels.length){$.channels=[];for(let C=0;C<i.channels.length;++C)$.channels[C]=$root.com.quick.voice.proto.DataChannel.toObject(i.channels[C],c)}return $},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.UserChannel"},f}(),D.ChannelPublishReq=function(){function f(k){if(this.channels=[],k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.channels=$util.emptyArray,f.create=function(i){return new f(i)},f.encode=function(i,c){if(c||(c=$Writer.create()),i.channels!=null&&i.channels.length)for(let $=0;$<i.channels.length;++$)$root.com.quick.voice.proto.DataChannel.encode(i.channels[$],c.uint32(10).fork()).ldelim();return c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.ChannelPublishReq;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.channels&&C.channels.length||(C.channels=[]),C.channels.push($root.com.quick.voice.proto.DataChannel.decode(i,i.uint32()));break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.channels!=null&&i.hasOwnProperty("channels")){if(!Array.isArray(i.channels))return"channels: array expected";for(let c=0;c<i.channels.length;++c){let $=$root.com.quick.voice.proto.DataChannel.verify(i.channels[c]);if($)return"channels."+$}}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.ChannelPublishReq)return i;let c=new $root.com.quick.voice.proto.ChannelPublishReq;if(i.channels){if(!Array.isArray(i.channels))throw TypeError(".com.quick.voice.proto.ChannelPublishReq.channels: array expected");c.channels=[];for(let $=0;$<i.channels.length;++$){if(typeof i.channels[$]!="object")throw TypeError(".com.quick.voice.proto.ChannelPublishReq.channels: object expected");c.channels[$]=$root.com.quick.voice.proto.DataChannel.fromObject(i.channels[$])}}return c},f.toObject=function(i,c){c||(c={});let $={};if((c.arrays||c.defaults)&&($.channels=[]),i.channels&&i.channels.length){$.channels=[];for(let C=0;C<i.channels.length;++C)$.channels[C]=$root.com.quick.voice.proto.DataChannel.toObject(i.channels[C],c)}return $},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.ChannelPublishReq"},f}(),D.ChannelPublishRsq=function(){function f(k){if(this.channels=[],k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.channels=$util.emptyArray,f.create=function(i){return new f(i)},f.encode=function(i,c){if(c||(c=$Writer.create()),i.channels!=null&&i.channels.length)for(let $=0;$<i.channels.length;++$)$root.com.quick.voice.proto.UserChannel.encode(i.channels[$],c.uint32(10).fork()).ldelim();return c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.ChannelPublishRsq;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.channels&&C.channels.length||(C.channels=[]),C.channels.push($root.com.quick.voice.proto.UserChannel.decode(i,i.uint32()));break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.channels!=null&&i.hasOwnProperty("channels")){if(!Array.isArray(i.channels))return"channels: array expected";for(let c=0;c<i.channels.length;++c){let $=$root.com.quick.voice.proto.UserChannel.verify(i.channels[c]);if($)return"channels."+$}}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.ChannelPublishRsq)return i;let c=new $root.com.quick.voice.proto.ChannelPublishRsq;if(i.channels){if(!Array.isArray(i.channels))throw TypeError(".com.quick.voice.proto.ChannelPublishRsq.channels: array expected");c.channels=[];for(let $=0;$<i.channels.length;++$){if(typeof i.channels[$]!="object")throw TypeError(".com.quick.voice.proto.ChannelPublishRsq.channels: object expected");c.channels[$]=$root.com.quick.voice.proto.UserChannel.fromObject(i.channels[$])}}return c},f.toObject=function(i,c){c||(c={});let $={};if((c.arrays||c.defaults)&&($.channels=[]),i.channels&&i.channels.length){$.channels=[];for(let C=0;C<i.channels.length;++C)$.channels[C]=$root.com.quick.voice.proto.UserChannel.toObject(i.channels[C],c)}return $},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.ChannelPublishRsq"},f}(),D.ChannelSubscribeReq=function(){function f(k){if(this.users=[],k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.users=$util.emptyArray,f.create=function(i){return new f(i)},f.encode=function(i,c){if(c||(c=$Writer.create()),i.users!=null&&i.users.length)for(let $=0;$<i.users.length;++$)$root.com.quick.voice.proto.UserChannel.encode(i.users[$],c.uint32(10).fork()).ldelim();return c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.ChannelSubscribeReq;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.users&&C.users.length||(C.users=[]),C.users.push($root.com.quick.voice.proto.UserChannel.decode(i,i.uint32()));break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.users!=null&&i.hasOwnProperty("users")){if(!Array.isArray(i.users))return"users: array expected";for(let c=0;c<i.users.length;++c){let $=$root.com.quick.voice.proto.UserChannel.verify(i.users[c]);if($)return"users."+$}}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.ChannelSubscribeReq)return i;let c=new $root.com.quick.voice.proto.ChannelSubscribeReq;if(i.users){if(!Array.isArray(i.users))throw TypeError(".com.quick.voice.proto.ChannelSubscribeReq.users: array expected");c.users=[];for(let $=0;$<i.users.length;++$){if(typeof i.users[$]!="object")throw TypeError(".com.quick.voice.proto.ChannelSubscribeReq.users: object expected");c.users[$]=$root.com.quick.voice.proto.UserChannel.fromObject(i.users[$])}}return c},f.toObject=function(i,c){c||(c={});let $={};if((c.arrays||c.defaults)&&($.users=[]),i.users&&i.users.length){$.users=[];for(let C=0;C<i.users.length;++C)$.users[C]=$root.com.quick.voice.proto.UserChannel.toObject(i.users[C],c)}return $},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.ChannelSubscribeReq"},f}(),D.ChannelSubscribeRsq=function(){function f(k){if(this.channels=[],k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.channels=$util.emptyArray,f.create=function(i){return new f(i)},f.encode=function(i,c){if(c||(c=$Writer.create()),i.channels!=null&&i.channels.length)for(let $=0;$<i.channels.length;++$)$root.com.quick.voice.proto.UserChannel.encode(i.channels[$],c.uint32(10).fork()).ldelim();return c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.ChannelSubscribeRsq;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.channels&&C.channels.length||(C.channels=[]),C.channels.push($root.com.quick.voice.proto.UserChannel.decode(i,i.uint32()));break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.channels!=null&&i.hasOwnProperty("channels")){if(!Array.isArray(i.channels))return"channels: array expected";for(let c=0;c<i.channels.length;++c){let $=$root.com.quick.voice.proto.UserChannel.verify(i.channels[c]);if($)return"channels."+$}}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.ChannelSubscribeRsq)return i;let c=new $root.com.quick.voice.proto.ChannelSubscribeRsq;if(i.channels){if(!Array.isArray(i.channels))throw TypeError(".com.quick.voice.proto.ChannelSubscribeRsq.channels: array expected");c.channels=[];for(let $=0;$<i.channels.length;++$){if(typeof i.channels[$]!="object")throw TypeError(".com.quick.voice.proto.ChannelSubscribeRsq.channels: object expected");c.channels[$]=$root.com.quick.voice.proto.UserChannel.fromObject(i.channels[$])}}return c},f.toObject=function(i,c){c||(c={});let $={};if((c.arrays||c.defaults)&&($.channels=[]),i.channels&&i.channels.length){$.channels=[];for(let C=0;C<i.channels.length;++C)$.channels[C]=$root.com.quick.voice.proto.UserChannel.toObject(i.channels[C],c)}return $},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.ChannelSubscribeRsq"},f}(),D}(),I}(),N}(),O})(),enum_notifyName={onChangeNetwork:"网络情况变更",healthCheck:"心跳检测",onNetQuality:"网络质量回调",onLogin:"登录回调",onLocalStream:"本地媒体流发生变化",onDevicechange:"媒体设备发生变化",onRoomUser:"房间用户变化",onRoomUsers:"房间所有用户所有变化",onRoomUsersStreams:"房间某些用户媒体流变化",onRoomState:"房间状态变化",onJoinRoom:"加入房间回调",onQuitRoom:"退出房间回调",onPublish:"监听到流发布",onDataChannelPublish:"监听数据通道发布",onCloseTrack:"关闭轨道",onUpdateCall:"更新通讯状态",onUpdateStreams:"更新媒体流",onUpdatePermissions:"更新推流权限通知",onTokenExpired:"Token已过期",onDestroyRoom:"直播模式房间销毁",onUpdateBehavior:"行为允许权限变更",destroyRoom:"服务器要求销毁房间",onCDNPlayUrlAdd:"cdn播放地址变化",onDestroy:"SDK销毁"};ht(enum_notifyName);const notifyName_keys=Object.keys(enum_notifyName);/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const Z_FIXED$1=4,Z_BINARY=0,Z_TEXT=1,Z_UNKNOWN$1=2;function zero$1(O){let N=O.length;for(;--N>=0;)O[N]=0}const STORED_BLOCK=0,STATIC_TREES=1,DYN_TREES=2,MIN_MATCH$1=3,MAX_MATCH$1=258,LENGTH_CODES$1=29,LITERALS$1=256,L_CODES$1=LITERALS$1+1+LENGTH_CODES$1,D_CODES$1=30,BL_CODES$1=19,HEAP_SIZE$1=2*L_CODES$1+1,MAX_BITS$1=15,Buf_size=16,MAX_BL_BITS=7,END_BLOCK=256,REP_3_6=16,REPZ_3_10=17,REPZ_11_138=18,extra_lbits=new Uint8Array([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]),extra_dbits=new Uint8Array([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]),extra_blbits=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),bl_order=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),DIST_CODE_LEN=512,static_ltree=new Array((L_CODES$1+2)*2);zero$1(static_ltree);const static_dtree=new Array(D_CODES$1*2);zero$1(static_dtree);const _dist_code=new Array(DIST_CODE_LEN);zero$1(_dist_code);const _length_code=new Array(MAX_MATCH$1-MIN_MATCH$1+1);zero$1(_length_code);const base_length=new Array(LENGTH_CODES$1);zero$1(base_length);const base_dist=new Array(D_CODES$1);zero$1(base_dist);function StaticTreeDesc(O,N,I,D,f){this.static_tree=O,this.extra_bits=N,this.extra_base=I,this.elems=D,this.max_length=f,this.has_stree=O&&O.length}let static_l_desc,static_d_desc,static_bl_desc;function TreeDesc(O,N){this.dyn_tree=O,this.max_code=0,this.stat_desc=N}const d_code=O=>O<256?_dist_code[O]:_dist_code[256+(O>>>7)],put_short=(O,N)=>{O.pending_buf[O.pending++]=N&255,O.pending_buf[O.pending++]=N>>>8&255},send_bits=(O,N,I)=>{O.bi_valid>Buf_size-I?(O.bi_buf|=N<<O.bi_valid&65535,put_short(O,O.bi_buf),O.bi_buf=N>>Buf_size-O.bi_valid,O.bi_valid+=I-Buf_size):(O.bi_buf|=N<<O.bi_valid&65535,O.bi_valid+=I)},send_code=(O,N,I)=>{send_bits(O,I[N*2],I[N*2+1])},bi_reverse=(O,N)=>{let I=0;do I|=O&1,O>>>=1,I<<=1;while(--N>0);return I>>>1},bi_flush=O=>{O.bi_valid===16?(put_short(O,O.bi_buf),O.bi_buf=0,O.bi_valid=0):O.bi_valid>=8&&(O.pending_buf[O.pending++]=O.bi_buf&255,O.bi_buf>>=8,O.bi_valid-=8)},gen_bitlen=(O,N)=>{const I=N.dyn_tree,D=N.max_code,f=N.stat_desc.static_tree,k=N.stat_desc.has_stree,i=N.stat_desc.extra_bits,c=N.stat_desc.extra_base,$=N.stat_desc.max_length;let C,M,Z,J,z,Q,ee=0;for(J=0;J<=MAX_BITS$1;J++)O.bl_count[J]=0;for(I[O.heap[O.heap_max]*2+1]=0,C=O.heap_max+1;C<HEAP_SIZE$1;C++)M=O.heap[C],J=I[I[M*2+1]*2+1]+1,J>$&&(J=$,ee++),I[M*2+1]=J,!(M>D)&&(O.bl_count[J]++,z=0,M>=c&&(z=i[M-c]),Q=I[M*2],O.opt_len+=Q*(J+z),k&&(O.static_len+=Q*(f[M*2+1]+z)));if(ee!==0){do{for(J=$-1;O.bl_count[J]===0;)J--;O.bl_count[J]--,O.bl_count[J+1]+=2,O.bl_count[$]--,ee-=2}while(ee>0);for(J=$;J!==0;J--)for(M=O.bl_count[J];M!==0;)Z=O.heap[--C],!(Z>D)&&(I[Z*2+1]!==J&&(O.opt_len+=(J-I[Z*2+1])*I[Z*2],I[Z*2+1]=J),M--)}},gen_codes=(O,N,I)=>{const D=new Array(MAX_BITS$1+1);let f=0,k,i;for(k=1;k<=MAX_BITS$1;k++)f=f+I[k-1]<<1,D[k]=f;for(i=0;i<=N;i++){let c=O[i*2+1];c!==0&&(O[i*2]=bi_reverse(D[c]++,c))}},tr_static_init=()=>{let O,N,I,D,f;const k=new Array(MAX_BITS$1+1);for(I=0,D=0;D<LENGTH_CODES$1-1;D++)for(base_length[D]=I,O=0;O<1<<extra_lbits[D];O++)_length_code[I++]=D;for(_length_code[I-1]=D,f=0,D=0;D<16;D++)for(base_dist[D]=f,O=0;O<1<<extra_dbits[D];O++)_dist_code[f++]=D;for(f>>=7;D<D_CODES$1;D++)for(base_dist[D]=f<<7,O=0;O<1<<extra_dbits[D]-7;O++)_dist_code[256+f++]=D;for(N=0;N<=MAX_BITS$1;N++)k[N]=0;for(O=0;O<=143;)static_ltree[O*2+1]=8,O++,k[8]++;for(;O<=255;)static_ltree[O*2+1]=9,O++,k[9]++;for(;O<=279;)static_ltree[O*2+1]=7,O++,k[7]++;for(;O<=287;)static_ltree[O*2+1]=8,O++,k[8]++;for(gen_codes(static_ltree,L_CODES$1+1,k),O=0;O<D_CODES$1;O++)static_dtree[O*2+1]=5,static_dtree[O*2]=bi_reverse(O,5);static_l_desc=new StaticTreeDesc(static_ltree,extra_lbits,LITERALS$1+1,L_CODES$1,MAX_BITS$1),static_d_desc=new StaticTreeDesc(static_dtree,extra_dbits,0,D_CODES$1,MAX_BITS$1),static_bl_desc=new StaticTreeDesc(new Array(0),extra_blbits,0,BL_CODES$1,MAX_BL_BITS)},init_block=O=>{let N;for(N=0;N<L_CODES$1;N++)O.dyn_ltree[N*2]=0;for(N=0;N<D_CODES$1;N++)O.dyn_dtree[N*2]=0;for(N=0;N<BL_CODES$1;N++)O.bl_tree[N*2]=0;O.dyn_ltree[END_BLOCK*2]=1,O.opt_len=O.static_len=0,O.sym_next=O.matches=0},bi_windup=O=>{O.bi_valid>8?put_short(O,O.bi_buf):O.bi_valid>0&&(O.pending_buf[O.pending++]=O.bi_buf),O.bi_buf=0,O.bi_valid=0},smaller=(O,N,I,D)=>{const f=N*2,k=I*2;return O[f]<O[k]||O[f]===O[k]&&D[N]<=D[I]},pqdownheap=(O,N,I)=>{const D=O.heap[I];let f=I<<1;for(;f<=O.heap_len&&(f<O.heap_len&&smaller(N,O.heap[f+1],O.heap[f],O.depth)&&f++,!smaller(N,D,O.heap[f],O.depth));)O.heap[I]=O.heap[f],I=f,f<<=1;O.heap[I]=D},compress_block=(O,N,I)=>{let D,f,k=0,i,c;if(O.sym_next!==0)do D=O.pending_buf[O.sym_buf+k++]&255,D+=(O.pending_buf[O.sym_buf+k++]&255)<<8,f=O.pending_buf[O.sym_buf+k++],D===0?send_code(O,f,N):(i=_length_code[f],send_code(O,i+LITERALS$1+1,N),c=extra_lbits[i],c!==0&&(f-=base_length[i],send_bits(O,f,c)),D--,i=d_code(D),send_code(O,i,I),c=extra_dbits[i],c!==0&&(D-=base_dist[i],send_bits(O,D,c)));while(k<O.sym_next);send_code(O,END_BLOCK,N)},build_tree=(O,N)=>{const I=N.dyn_tree,D=N.stat_desc.static_tree,f=N.stat_desc.has_stree,k=N.stat_desc.elems;let i,c,$=-1,C;for(O.heap_len=0,O.heap_max=HEAP_SIZE$1,i=0;i<k;i++)I[i*2]!==0?(O.heap[++O.heap_len]=$=i,O.depth[i]=0):I[i*2+1]=0;for(;O.heap_len<2;)C=O.heap[++O.heap_len]=$<2?++$:0,I[C*2]=1,O.depth[C]=0,O.opt_len--,f&&(O.static_len-=D[C*2+1]);for(N.max_code=$,i=O.heap_len>>1;i>=1;i--)pqdownheap(O,I,i);C=k;do i=O.heap[1],O.heap[1]=O.heap[O.heap_len--],pqdownheap(O,I,1),c=O.heap[1],O.heap[--O.heap_max]=i,O.heap[--O.heap_max]=c,I[C*2]=I[i*2]+I[c*2],O.depth[C]=(O.depth[i]>=O.depth[c]?O.depth[i]:O.depth[c])+1,I[i*2+1]=I[c*2+1]=C,O.heap[1]=C++,pqdownheap(O,I,1);while(O.heap_len>=2);O.heap[--O.heap_max]=O.heap[1],gen_bitlen(O,N),gen_codes(I,$,O.bl_count)},scan_tree=(O,N,I)=>{let D,f=-1,k,i=N[0*2+1],c=0,$=7,C=4;for(i===0&&($=138,C=3),N[(I+1)*2+1]=65535,D=0;D<=I;D++)k=i,i=N[(D+1)*2+1],!(++c<$&&k===i)&&(c<C?O.bl_tree[k*2]+=c:k!==0?(k!==f&&O.bl_tree[k*2]++,O.bl_tree[REP_3_6*2]++):c<=10?O.bl_tree[REPZ_3_10*2]++:O.bl_tree[REPZ_11_138*2]++,c=0,f=k,i===0?($=138,C=3):k===i?($=6,C=3):($=7,C=4))},send_tree=(O,N,I)=>{let D,f=-1,k,i=N[0*2+1],c=0,$=7,C=4;for(i===0&&($=138,C=3),D=0;D<=I;D++)if(k=i,i=N[(D+1)*2+1],!(++c<$&&k===i)){if(c<C)do send_code(O,k,O.bl_tree);while(--c!==0);else k!==0?(k!==f&&(send_code(O,k,O.bl_tree),c--),send_code(O,REP_3_6,O.bl_tree),send_bits(O,c-3,2)):c<=10?(send_code(O,REPZ_3_10,O.bl_tree),send_bits(O,c-3,3)):(send_code(O,REPZ_11_138,O.bl_tree),send_bits(O,c-11,7));c=0,f=k,i===0?($=138,C=3):k===i?($=6,C=3):($=7,C=4)}},build_bl_tree=O=>{let N;for(scan_tree(O,O.dyn_ltree,O.l_desc.max_code),scan_tree(O,O.dyn_dtree,O.d_desc.max_code),build_tree(O,O.bl_desc),N=BL_CODES$1-1;N>=3&&O.bl_tree[bl_order[N]*2+1]===0;N--);return O.opt_len+=3*(N+1)+5+5+4,N},send_all_trees=(O,N,I,D)=>{let f;for(send_bits(O,N-257,5),send_bits(O,I-1,5),send_bits(O,D-4,4),f=0;f<D;f++)send_bits(O,O.bl_tree[bl_order[f]*2+1],3);send_tree(O,O.dyn_ltree,N-1),send_tree(O,O.dyn_dtree,I-1)},detect_data_type=O=>{let N=4093624447,I;for(I=0;I<=31;I++,N>>>=1)if(N&1&&O.dyn_ltree[I*2]!==0)return Z_BINARY;if(O.dyn_ltree[9*2]!==0||O.dyn_ltree[10*2]!==0||O.dyn_ltree[13*2]!==0)return Z_TEXT;for(I=32;I<LITERALS$1;I++)if(O.dyn_ltree[I*2]!==0)return Z_TEXT;return Z_BINARY};let static_init_done=!1;const _tr_init$1=O=>{static_init_done||(tr_static_init(),static_init_done=!0),O.l_desc=new TreeDesc(O.dyn_ltree,static_l_desc),O.d_desc=new TreeDesc(O.dyn_dtree,static_d_desc),O.bl_desc=new TreeDesc(O.bl_tree,static_bl_desc),O.bi_buf=0,O.bi_valid=0,init_block(O)},_tr_stored_block$1=(O,N,I,D)=>{send_bits(O,(STORED_BLOCK<<1)+(D?1:0),3),bi_windup(O),put_short(O,I),put_short(O,~I),I&&O.pending_buf.set(O.window.subarray(N,N+I),O.pending),O.pending+=I},_tr_align$1=O=>{send_bits(O,STATIC_TREES<<1,3),send_code(O,END_BLOCK,static_ltree),bi_flush(O)},_tr_flush_block$1=(O,N,I,D)=>{let f,k,i=0;O.level>0?(O.strm.data_type===Z_UNKNOWN$1&&(O.strm.data_type=detect_data_type(O)),build_tree(O,O.l_desc),build_tree(O,O.d_desc),i=build_bl_tree(O),f=O.opt_len+3+7>>>3,k=O.static_len+3+7>>>3,k<=f&&(f=k)):f=k=I+5,I+4<=f&&N!==-1?_tr_stored_block$1(O,N,I,D):O.strategy===Z_FIXED$1||k===f?(send_bits(O,(STATIC_TREES<<1)+(D?1:0),3),compress_block(O,static_ltree,static_dtree)):(send_bits(O,(DYN_TREES<<1)+(D?1:0),3),send_all_trees(O,O.l_desc.max_code+1,O.d_desc.max_code+1,i+1),compress_block(O,O.dyn_ltree,O.dyn_dtree)),init_block(O),D&&bi_windup(O)},_tr_tally$1=(O,N,I)=>(O.pending_buf[O.sym_buf+O.sym_next++]=N,O.pending_buf[O.sym_buf+O.sym_next++]=N>>8,O.pending_buf[O.sym_buf+O.sym_next++]=I,N===0?O.dyn_ltree[I*2]++:(O.matches++,N--,O.dyn_ltree[(_length_code[I]+LITERALS$1+1)*2]++,O.dyn_dtree[d_code(N)*2]++),O.sym_next===O.sym_end);var _tr_init_1=_tr_init$1,_tr_stored_block_1=_tr_stored_block$1,_tr_flush_block_1=_tr_flush_block$1,_tr_tally_1=_tr_tally$1,_tr_align_1=_tr_align$1,trees={_tr_init:_tr_init_1,_tr_stored_block:_tr_stored_block_1,_tr_flush_block:_tr_flush_block_1,_tr_tally:_tr_tally_1,_tr_align:_tr_align_1};const adler32=(O,N,I,D)=>{let f=O&65535|0,k=O>>>16&65535|0,i=0;for(;I!==0;){i=I>2e3?2e3:I,I-=i;do f=f+N[D++]|0,k=k+f|0;while(--i);f%=65521,k%=65521}return f|k<<16|0};var adler32_1=adler32;const makeTable=()=>{let O,N=[];for(var I=0;I<256;I++){O=I;for(var D=0;D<8;D++)O=O&1?3988292384^O>>>1:O>>>1;N[I]=O}return N},crcTable=new Uint32Array(makeTable()),crc32=(O,N,I,D)=>{const f=crcTable,k=D+I;O^=-1;for(let i=D;i<k;i++)O=O>>>8^f[(O^N[i])&255];return O^-1};var crc32_1=crc32,messages={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},constants$2={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init,_tr_stored_block,_tr_flush_block,_tr_tally,_tr_align}=trees,{Z_NO_FLUSH:Z_NO_FLUSH$2,Z_PARTIAL_FLUSH,Z_FULL_FLUSH:Z_FULL_FLUSH$1,Z_FINISH:Z_FINISH$3,Z_BLOCK:Z_BLOCK$1,Z_OK:Z_OK$3,Z_STREAM_END:Z_STREAM_END$3,Z_STREAM_ERROR:Z_STREAM_ERROR$2,Z_DATA_ERROR:Z_DATA_ERROR$2,Z_BUF_ERROR:Z_BUF_ERROR$1,Z_DEFAULT_COMPRESSION:Z_DEFAULT_COMPRESSION$1,Z_FILTERED,Z_HUFFMAN_ONLY,Z_RLE,Z_FIXED,Z_DEFAULT_STRATEGY:Z_DEFAULT_STRATEGY$1,Z_UNKNOWN,Z_DEFLATED:Z_DEFLATED$2}=constants$2,MAX_MEM_LEVEL=9,MAX_WBITS$1=15,DEF_MEM_LEVEL=8,LENGTH_CODES=29,LITERALS=256,L_CODES=LITERALS+1+LENGTH_CODES,D_CODES=30,BL_CODES=19,HEAP_SIZE=2*L_CODES+1,MAX_BITS=15,MIN_MATCH=3,MAX_MATCH=258,MIN_LOOKAHEAD=MAX_MATCH+MIN_MATCH+1,PRESET_DICT=32,INIT_STATE=42,GZIP_STATE=57,EXTRA_STATE=69,NAME_STATE=73,COMMENT_STATE=91,HCRC_STATE=103,BUSY_STATE=113,FINISH_STATE=666,BS_NEED_MORE=1,BS_BLOCK_DONE=2,BS_FINISH_STARTED=3,BS_FINISH_DONE=4,OS_CODE=3,err=(O,N)=>(O.msg=messages[N],N),rank=O=>O*2-(O>4?9:0),zero=O=>{let N=O.length;for(;--N>=0;)O[N]=0},slide_hash=O=>{let N,I,D,f=O.w_size;N=O.hash_size,D=N;do I=O.head[--D],O.head[D]=I>=f?I-f:0;while(--N);N=f,D=N;do I=O.prev[--D],O.prev[D]=I>=f?I-f:0;while(--N)};let HASH_ZLIB=(O,N,I)=>(N<<O.hash_shift^I)&O.hash_mask,HASH=HASH_ZLIB;const flush_pending=O=>{const N=O.state;let I=N.pending;I>O.avail_out&&(I=O.avail_out),I!==0&&(O.output.set(N.pending_buf.subarray(N.pending_out,N.pending_out+I),O.next_out),O.next_out+=I,N.pending_out+=I,O.total_out+=I,O.avail_out-=I,N.pending-=I,N.pending===0&&(N.pending_out=0))},flush_block_only=(O,N)=>{_tr_flush_block(O,O.block_start>=0?O.block_start:-1,O.strstart-O.block_start,N),O.block_start=O.strstart,flush_pending(O.strm)},put_byte=(O,N)=>{O.pending_buf[O.pending++]=N},putShortMSB=(O,N)=>{O.pending_buf[O.pending++]=N>>>8&255,O.pending_buf[O.pending++]=N&255},read_buf=(O,N,I,D)=>{let f=O.avail_in;return f>D&&(f=D),f===0?0:(O.avail_in-=f,N.set(O.input.subarray(O.next_in,O.next_in+f),I),O.state.wrap===1?O.adler=adler32_1(O.adler,N,f,I):O.state.wrap===2&&(O.adler=crc32_1(O.adler,N,f,I)),O.next_in+=f,O.total_in+=f,f)},longest_match=(O,N)=>{let I=O.max_chain_length,D=O.strstart,f,k,i=O.prev_length,c=O.nice_match;const $=O.strstart>O.w_size-MIN_LOOKAHEAD?O.strstart-(O.w_size-MIN_LOOKAHEAD):0,C=O.window,M=O.w_mask,Z=O.prev,J=O.strstart+MAX_MATCH;let z=C[D+i-1],Q=C[D+i];O.prev_length>=O.good_match&&(I>>=2),c>O.lookahead&&(c=O.lookahead);do if(f=N,!(C[f+i]!==Q||C[f+i-1]!==z||C[f]!==C[D]||C[++f]!==C[D+1])){D+=2,f++;do;while(C[++D]===C[++f]&&C[++D]===C[++f]&&C[++D]===C[++f]&&C[++D]===C[++f]&&C[++D]===C[++f]&&C[++D]===C[++f]&&C[++D]===C[++f]&&C[++D]===C[++f]&&D<J);if(k=MAX_MATCH-(J-D),D=J-MAX_MATCH,k>i){if(O.match_start=N,i=k,k>=c)break;z=C[D+i-1],Q=C[D+i]}}while((N=Z[N&M])>$&&--I!==0);return i<=O.lookahead?i:O.lookahead},fill_window=O=>{const N=O.w_size;let I,D,f;do{if(D=O.window_size-O.lookahead-O.strstart,O.strstart>=N+(N-MIN_LOOKAHEAD)&&(O.window.set(O.window.subarray(N,N+N-D),0),O.match_start-=N,O.strstart-=N,O.block_start-=N,O.insert>O.strstart&&(O.insert=O.strstart),slide_hash(O),D+=N),O.strm.avail_in===0)break;if(I=read_buf(O.strm,O.window,O.strstart+O.lookahead,D),O.lookahead+=I,O.lookahead+O.insert>=MIN_MATCH)for(f=O.strstart-O.insert,O.ins_h=O.window[f],O.ins_h=HASH(O,O.ins_h,O.window[f+1]);O.insert&&(O.ins_h=HASH(O,O.ins_h,O.window[f+MIN_MATCH-1]),O.prev[f&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=f,f++,O.insert--,!(O.lookahead+O.insert<MIN_MATCH)););}while(O.lookahead<MIN_LOOKAHEAD&&O.strm.avail_in!==0)},deflate_stored=(O,N)=>{let I=O.pending_buf_size-5>O.w_size?O.w_size:O.pending_buf_size-5,D,f,k,i=0,c=O.strm.avail_in;do{if(D=65535,k=O.bi_valid+42>>3,O.strm.avail_out<k||(k=O.strm.avail_out-k,f=O.strstart-O.block_start,D>f+O.strm.avail_in&&(D=f+O.strm.avail_in),D>k&&(D=k),D<I&&(D===0&&N!==Z_FINISH$3||N===Z_NO_FLUSH$2||D!==f+O.strm.avail_in)))break;i=N===Z_FINISH$3&&D===f+O.strm.avail_in?1:0,_tr_stored_block(O,0,0,i),O.pending_buf[O.pending-4]=D,O.pending_buf[O.pending-3]=D>>8,O.pending_buf[O.pending-2]=~D,O.pending_buf[O.pending-1]=~D>>8,flush_pending(O.strm),f&&(f>D&&(f=D),O.strm.output.set(O.window.subarray(O.block_start,O.block_start+f),O.strm.next_out),O.strm.next_out+=f,O.strm.avail_out-=f,O.strm.total_out+=f,O.block_start+=f,D-=f),D&&(read_buf(O.strm,O.strm.output,O.strm.next_out,D),O.strm.next_out+=D,O.strm.avail_out-=D,O.strm.total_out+=D)}while(i===0);return c-=O.strm.avail_in,c&&(c>=O.w_size?(O.matches=2,O.window.set(O.strm.input.subarray(O.strm.next_in-O.w_size,O.strm.next_in),0),O.strstart=O.w_size,O.insert=O.strstart):(O.window_size-O.strstart<=c&&(O.strstart-=O.w_size,O.window.set(O.window.subarray(O.w_size,O.w_size+O.strstart),0),O.matches<2&&O.matches++,O.insert>O.strstart&&(O.insert=O.strstart)),O.window.set(O.strm.input.subarray(O.strm.next_in-c,O.strm.next_in),O.strstart),O.strstart+=c,O.insert+=c>O.w_size-O.insert?O.w_size-O.insert:c),O.block_start=O.strstart),O.high_water<O.strstart&&(O.high_water=O.strstart),i?BS_FINISH_DONE:N!==Z_NO_FLUSH$2&&N!==Z_FINISH$3&&O.strm.avail_in===0&&O.strstart===O.block_start?BS_BLOCK_DONE:(k=O.window_size-O.strstart,O.strm.avail_in>k&&O.block_start>=O.w_size&&(O.block_start-=O.w_size,O.strstart-=O.w_size,O.window.set(O.window.subarray(O.w_size,O.w_size+O.strstart),0),O.matches<2&&O.matches++,k+=O.w_size,O.insert>O.strstart&&(O.insert=O.strstart)),k>O.strm.avail_in&&(k=O.strm.avail_in),k&&(read_buf(O.strm,O.window,O.strstart,k),O.strstart+=k,O.insert+=k>O.w_size-O.insert?O.w_size-O.insert:k),O.high_water<O.strstart&&(O.high_water=O.strstart),k=O.bi_valid+42>>3,k=O.pending_buf_size-k>65535?65535:O.pending_buf_size-k,I=k>O.w_size?O.w_size:k,f=O.strstart-O.block_start,(f>=I||(f||N===Z_FINISH$3)&&N!==Z_NO_FLUSH$2&&O.strm.avail_in===0&&f<=k)&&(D=f>k?k:f,i=N===Z_FINISH$3&&O.strm.avail_in===0&&D===f?1:0,_tr_stored_block(O,O.block_start,D,i),O.block_start+=D,flush_pending(O.strm)),i?BS_FINISH_STARTED:BS_NEED_MORE)},deflate_fast=(O,N)=>{let I,D;for(;;){if(O.lookahead<MIN_LOOKAHEAD){if(fill_window(O),O.lookahead<MIN_LOOKAHEAD&&N===Z_NO_FLUSH$2)return BS_NEED_MORE;if(O.lookahead===0)break}if(I=0,O.lookahead>=MIN_MATCH&&(O.ins_h=HASH(O,O.ins_h,O.window[O.strstart+MIN_MATCH-1]),I=O.prev[O.strstart&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=O.strstart),I!==0&&O.strstart-I<=O.w_size-MIN_LOOKAHEAD&&(O.match_length=longest_match(O,I)),O.match_length>=MIN_MATCH)if(D=_tr_tally(O,O.strstart-O.match_start,O.match_length-MIN_MATCH),O.lookahead-=O.match_length,O.match_length<=O.max_lazy_match&&O.lookahead>=MIN_MATCH){O.match_length--;do O.strstart++,O.ins_h=HASH(O,O.ins_h,O.window[O.strstart+MIN_MATCH-1]),I=O.prev[O.strstart&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=O.strstart;while(--O.match_length!==0);O.strstart++}else O.strstart+=O.match_length,O.match_length=0,O.ins_h=O.window[O.strstart],O.ins_h=HASH(O,O.ins_h,O.window[O.strstart+1]);else D=_tr_tally(O,0,O.window[O.strstart]),O.lookahead--,O.strstart++;if(D&&(flush_block_only(O,!1),O.strm.avail_out===0))return BS_NEED_MORE}return O.insert=O.strstart<MIN_MATCH-1?O.strstart:MIN_MATCH-1,N===Z_FINISH$3?(flush_block_only(O,!0),O.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):O.sym_next&&(flush_block_only(O,!1),O.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE},deflate_slow=(O,N)=>{let I,D,f;for(;;){if(O.lookahead<MIN_LOOKAHEAD){if(fill_window(O),O.lookahead<MIN_LOOKAHEAD&&N===Z_NO_FLUSH$2)return BS_NEED_MORE;if(O.lookahead===0)break}if(I=0,O.lookahead>=MIN_MATCH&&(O.ins_h=HASH(O,O.ins_h,O.window[O.strstart+MIN_MATCH-1]),I=O.prev[O.strstart&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=O.strstart),O.prev_length=O.match_length,O.prev_match=O.match_start,O.match_length=MIN_MATCH-1,I!==0&&O.prev_length<O.max_lazy_match&&O.strstart-I<=O.w_size-MIN_LOOKAHEAD&&(O.match_length=longest_match(O,I),O.match_length<=5&&(O.strategy===Z_FILTERED||O.match_length===MIN_MATCH&&O.strstart-O.match_start>4096)&&(O.match_length=MIN_MATCH-1)),O.prev_length>=MIN_MATCH&&O.match_length<=O.prev_length){f=O.strstart+O.lookahead-MIN_MATCH,D=_tr_tally(O,O.strstart-1-O.prev_match,O.prev_length-MIN_MATCH),O.lookahead-=O.prev_length-1,O.prev_length-=2;do++O.strstart<=f&&(O.ins_h=HASH(O,O.ins_h,O.window[O.strstart+MIN_MATCH-1]),I=O.prev[O.strstart&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=O.strstart);while(--O.prev_length!==0);if(O.match_available=0,O.match_length=MIN_MATCH-1,O.strstart++,D&&(flush_block_only(O,!1),O.strm.avail_out===0))return BS_NEED_MORE}else if(O.match_available){if(D=_tr_tally(O,0,O.window[O.strstart-1]),D&&flush_block_only(O,!1),O.strstart++,O.lookahead--,O.strm.avail_out===0)return BS_NEED_MORE}else O.match_available=1,O.strstart++,O.lookahead--}return O.match_available&&(D=_tr_tally(O,0,O.window[O.strstart-1]),O.match_available=0),O.insert=O.strstart<MIN_MATCH-1?O.strstart:MIN_MATCH-1,N===Z_FINISH$3?(flush_block_only(O,!0),O.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):O.sym_next&&(flush_block_only(O,!1),O.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE},deflate_rle=(O,N)=>{let I,D,f,k;const i=O.window;for(;;){if(O.lookahead<=MAX_MATCH){if(fill_window(O),O.lookahead<=MAX_MATCH&&N===Z_NO_FLUSH$2)return BS_NEED_MORE;if(O.lookahead===0)break}if(O.match_length=0,O.lookahead>=MIN_MATCH&&O.strstart>0&&(f=O.strstart-1,D=i[f],D===i[++f]&&D===i[++f]&&D===i[++f])){k=O.strstart+MAX_MATCH;do;while(D===i[++f]&&D===i[++f]&&D===i[++f]&&D===i[++f]&&D===i[++f]&&D===i[++f]&&D===i[++f]&&D===i[++f]&&f<k);O.match_length=MAX_MATCH-(k-f),O.match_length>O.lookahead&&(O.match_length=O.lookahead)}if(O.match_length>=MIN_MATCH?(I=_tr_tally(O,1,O.match_length-MIN_MATCH),O.lookahead-=O.match_length,O.strstart+=O.match_length,O.match_length=0):(I=_tr_tally(O,0,O.window[O.strstart]),O.lookahead--,O.strstart++),I&&(flush_block_only(O,!1),O.strm.avail_out===0))return BS_NEED_MORE}return O.insert=0,N===Z_FINISH$3?(flush_block_only(O,!0),O.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):O.sym_next&&(flush_block_only(O,!1),O.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE},deflate_huff=(O,N)=>{let I;for(;;){if(O.lookahead===0&&(fill_window(O),O.lookahead===0)){if(N===Z_NO_FLUSH$2)return BS_NEED_MORE;break}if(O.match_length=0,I=_tr_tally(O,0,O.window[O.strstart]),O.lookahead--,O.strstart++,I&&(flush_block_only(O,!1),O.strm.avail_out===0))return BS_NEED_MORE}return O.insert=0,N===Z_FINISH$3?(flush_block_only(O,!0),O.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):O.sym_next&&(flush_block_only(O,!1),O.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE};function Config(O,N,I,D,f){this.good_length=O,this.max_lazy=N,this.nice_length=I,this.max_chain=D,this.func=f}const configuration_table=[new Config(0,0,0,0,deflate_stored),new Config(4,4,8,4,deflate_fast),new Config(4,5,16,8,deflate_fast),new Config(4,6,32,32,deflate_fast),new Config(4,4,16,16,deflate_slow),new Config(8,16,32,32,deflate_slow),new Config(8,16,128,128,deflate_slow),new Config(8,32,128,256,deflate_slow),new Config(32,128,258,1024,deflate_slow),new Config(32,258,258,4096,deflate_slow)],lm_init=O=>{O.window_size=2*O.w_size,zero(O.head),O.max_lazy_match=configuration_table[O.level].max_lazy,O.good_match=configuration_table[O.level].good_length,O.nice_match=configuration_table[O.level].nice_length,O.max_chain_length=configuration_table[O.level].max_chain,O.strstart=0,O.block_start=0,O.lookahead=0,O.insert=0,O.match_length=O.prev_length=MIN_MATCH-1,O.match_available=0,O.ins_h=0};function DeflateState(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Z_DEFLATED$2,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(HEAP_SIZE*2),this.dyn_dtree=new Uint16Array((2*D_CODES+1)*2),this.bl_tree=new Uint16Array((2*BL_CODES+1)*2),zero(this.dyn_ltree),zero(this.dyn_dtree),zero(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(MAX_BITS+1),this.heap=new Uint16Array(2*L_CODES+1),zero(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*L_CODES+1),zero(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const deflateStateCheck=O=>{if(!O)return 1;const N=O.state;return!N||N.strm!==O||N.status!==INIT_STATE&&N.status!==GZIP_STATE&&N.status!==EXTRA_STATE&&N.status!==NAME_STATE&&N.status!==COMMENT_STATE&&N.status!==HCRC_STATE&&N.status!==BUSY_STATE&&N.status!==FINISH_STATE?1:0},deflateResetKeep=O=>{if(deflateStateCheck(O))return err(O,Z_STREAM_ERROR$2);O.total_in=O.total_out=0,O.data_type=Z_UNKNOWN;const N=O.state;return N.pending=0,N.pending_out=0,N.wrap<0&&(N.wrap=-N.wrap),N.status=N.wrap===2?GZIP_STATE:N.wrap?INIT_STATE:BUSY_STATE,O.adler=N.wrap===2?0:1,N.last_flush=-2,_tr_init(N),Z_OK$3},deflateReset=O=>{const N=deflateResetKeep(O);return N===Z_OK$3&&lm_init(O.state),N},deflateSetHeader=(O,N)=>deflateStateCheck(O)||O.state.wrap!==2?Z_STREAM_ERROR$2:(O.state.gzhead=N,Z_OK$3),deflateInit2=(O,N,I,D,f,k)=>{if(!O)return Z_STREAM_ERROR$2;let i=1;if(N===Z_DEFAULT_COMPRESSION$1&&(N=6),D<0?(i=0,D=-D):D>15&&(i=2,D-=16),f<1||f>MAX_MEM_LEVEL||I!==Z_DEFLATED$2||D<8||D>15||N<0||N>9||k<0||k>Z_FIXED||D===8&&i!==1)return err(O,Z_STREAM_ERROR$2);D===8&&(D=9);const c=new DeflateState;return O.state=c,c.strm=O,c.status=INIT_STATE,c.wrap=i,c.gzhead=null,c.w_bits=D,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=f+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+MIN_MATCH-1)/MIN_MATCH),c.window=new Uint8Array(c.w_size*2),c.head=new Uint16Array(c.hash_size),c.prev=new Uint16Array(c.w_size),c.lit_bufsize=1<<f+6,c.pending_buf_size=c.lit_bufsize*4,c.pending_buf=new Uint8Array(c.pending_buf_size),c.sym_buf=c.lit_bufsize,c.sym_end=(c.lit_bufsize-1)*3,c.level=N,c.strategy=k,c.method=I,deflateReset(O)},deflateInit=(O,N)=>deflateInit2(O,N,Z_DEFLATED$2,MAX_WBITS$1,DEF_MEM_LEVEL,Z_DEFAULT_STRATEGY$1),deflate$2=(O,N)=>{if(deflateStateCheck(O)||N>Z_BLOCK$1||N<0)return O?err(O,Z_STREAM_ERROR$2):Z_STREAM_ERROR$2;const I=O.state;if(!O.output||O.avail_in!==0&&!O.input||I.status===FINISH_STATE&&N!==Z_FINISH$3)return err(O,O.avail_out===0?Z_BUF_ERROR$1:Z_STREAM_ERROR$2);const D=I.last_flush;if(I.last_flush=N,I.pending!==0){if(flush_pending(O),O.avail_out===0)return I.last_flush=-1,Z_OK$3}else if(O.avail_in===0&&rank(N)<=rank(D)&&N!==Z_FINISH$3)return err(O,Z_BUF_ERROR$1);if(I.status===FINISH_STATE&&O.avail_in!==0)return err(O,Z_BUF_ERROR$1);if(I.status===INIT_STATE&&I.wrap===0&&(I.status=BUSY_STATE),I.status===INIT_STATE){let f=Z_DEFLATED$2+(I.w_bits-8<<4)<<8,k=-1;if(I.strategy>=Z_HUFFMAN_ONLY||I.level<2?k=0:I.level<6?k=1:I.level===6?k=2:k=3,f|=k<<6,I.strstart!==0&&(f|=PRESET_DICT),f+=31-f%31,putShortMSB(I,f),I.strstart!==0&&(putShortMSB(I,O.adler>>>16),putShortMSB(I,O.adler&65535)),O.adler=1,I.status=BUSY_STATE,flush_pending(O),I.pending!==0)return I.last_flush=-1,Z_OK$3}if(I.status===GZIP_STATE){if(O.adler=0,put_byte(I,31),put_byte(I,139),put_byte(I,8),I.gzhead)put_byte(I,(I.gzhead.text?1:0)+(I.gzhead.hcrc?2:0)+(I.gzhead.extra?4:0)+(I.gzhead.name?8:0)+(I.gzhead.comment?16:0)),put_byte(I,I.gzhead.time&255),put_byte(I,I.gzhead.time>>8&255),put_byte(I,I.gzhead.time>>16&255),put_byte(I,I.gzhead.time>>24&255),put_byte(I,I.level===9?2:I.strategy>=Z_HUFFMAN_ONLY||I.level<2?4:0),put_byte(I,I.gzhead.os&255),I.gzhead.extra&&I.gzhead.extra.length&&(put_byte(I,I.gzhead.extra.length&255),put_byte(I,I.gzhead.extra.length>>8&255)),I.gzhead.hcrc&&(O.adler=crc32_1(O.adler,I.pending_buf,I.pending,0)),I.gzindex=0,I.status=EXTRA_STATE;else if(put_byte(I,0),put_byte(I,0),put_byte(I,0),put_byte(I,0),put_byte(I,0),put_byte(I,I.level===9?2:I.strategy>=Z_HUFFMAN_ONLY||I.level<2?4:0),put_byte(I,OS_CODE),I.status=BUSY_STATE,flush_pending(O),I.pending!==0)return I.last_flush=-1,Z_OK$3}if(I.status===EXTRA_STATE){if(I.gzhead.extra){let f=I.pending,k=(I.gzhead.extra.length&65535)-I.gzindex;for(;I.pending+k>I.pending_buf_size;){let c=I.pending_buf_size-I.pending;if(I.pending_buf.set(I.gzhead.extra.subarray(I.gzindex,I.gzindex+c),I.pending),I.pending=I.pending_buf_size,I.gzhead.hcrc&&I.pending>f&&(O.adler=crc32_1(O.adler,I.pending_buf,I.pending-f,f)),I.gzindex+=c,flush_pending(O),I.pending!==0)return I.last_flush=-1,Z_OK$3;f=0,k-=c}let i=new Uint8Array(I.gzhead.extra);I.pending_buf.set(i.subarray(I.gzindex,I.gzindex+k),I.pending),I.pending+=k,I.gzhead.hcrc&&I.pending>f&&(O.adler=crc32_1(O.adler,I.pending_buf,I.pending-f,f)),I.gzindex=0}I.status=NAME_STATE}if(I.status===NAME_STATE){if(I.gzhead.name){let f=I.pending,k;do{if(I.pending===I.pending_buf_size){if(I.gzhead.hcrc&&I.pending>f&&(O.adler=crc32_1(O.adler,I.pending_buf,I.pending-f,f)),flush_pending(O),I.pending!==0)return I.last_flush=-1,Z_OK$3;f=0}I.gzindex<I.gzhead.name.length?k=I.gzhead.name.charCodeAt(I.gzindex++)&255:k=0,put_byte(I,k)}while(k!==0);I.gzhead.hcrc&&I.pending>f&&(O.adler=crc32_1(O.adler,I.pending_buf,I.pending-f,f)),I.gzindex=0}I.status=COMMENT_STATE}if(I.status===COMMENT_STATE){if(I.gzhead.comment){let f=I.pending,k;do{if(I.pending===I.pending_buf_size){if(I.gzhead.hcrc&&I.pending>f&&(O.adler=crc32_1(O.adler,I.pending_buf,I.pending-f,f)),flush_pending(O),I.pending!==0)return I.last_flush=-1,Z_OK$3;f=0}I.gzindex<I.gzhead.comment.length?k=I.gzhead.comment.charCodeAt(I.gzindex++)&255:k=0,put_byte(I,k)}while(k!==0);I.gzhead.hcrc&&I.pending>f&&(O.adler=crc32_1(O.adler,I.pending_buf,I.pending-f,f))}I.status=HCRC_STATE}if(I.status===HCRC_STATE){if(I.gzhead.hcrc){if(I.pending+2>I.pending_buf_size&&(flush_pending(O),I.pending!==0))return I.last_flush=-1,Z_OK$3;put_byte(I,O.adler&255),put_byte(I,O.adler>>8&255),O.adler=0}if(I.status=BUSY_STATE,flush_pending(O),I.pending!==0)return I.last_flush=-1,Z_OK$3}if(O.avail_in!==0||I.lookahead!==0||N!==Z_NO_FLUSH$2&&I.status!==FINISH_STATE){let f=I.level===0?deflate_stored(I,N):I.strategy===Z_HUFFMAN_ONLY?deflate_huff(I,N):I.strategy===Z_RLE?deflate_rle(I,N):configuration_table[I.level].func(I,N);if((f===BS_FINISH_STARTED||f===BS_FINISH_DONE)&&(I.status=FINISH_STATE),f===BS_NEED_MORE||f===BS_FINISH_STARTED)return O.avail_out===0&&(I.last_flush=-1),Z_OK$3;if(f===BS_BLOCK_DONE&&(N===Z_PARTIAL_FLUSH?_tr_align(I):N!==Z_BLOCK$1&&(_tr_stored_block(I,0,0,!1),N===Z_FULL_FLUSH$1&&(zero(I.head),I.lookahead===0&&(I.strstart=0,I.block_start=0,I.insert=0))),flush_pending(O),O.avail_out===0))return I.last_flush=-1,Z_OK$3}return N!==Z_FINISH$3?Z_OK$3:I.wrap<=0?Z_STREAM_END$3:(I.wrap===2?(put_byte(I,O.adler&255),put_byte(I,O.adler>>8&255),put_byte(I,O.adler>>16&255),put_byte(I,O.adler>>24&255),put_byte(I,O.total_in&255),put_byte(I,O.total_in>>8&255),put_byte(I,O.total_in>>16&255),put_byte(I,O.total_in>>24&255)):(putShortMSB(I,O.adler>>>16),putShortMSB(I,O.adler&65535)),flush_pending(O),I.wrap>0&&(I.wrap=-I.wrap),I.pending!==0?Z_OK$3:Z_STREAM_END$3)},deflateEnd=O=>{if(deflateStateCheck(O))return Z_STREAM_ERROR$2;const N=O.state.status;return O.state=null,N===BUSY_STATE?err(O,Z_DATA_ERROR$2):Z_OK$3},deflateSetDictionary=(O,N)=>{let I=N.length;if(deflateStateCheck(O))return Z_STREAM_ERROR$2;const D=O.state,f=D.wrap;if(f===2||f===1&&D.status!==INIT_STATE||D.lookahead)return Z_STREAM_ERROR$2;if(f===1&&(O.adler=adler32_1(O.adler,N,I,0)),D.wrap=0,I>=D.w_size){f===0&&(zero(D.head),D.strstart=0,D.block_start=0,D.insert=0);let $=new Uint8Array(D.w_size);$.set(N.subarray(I-D.w_size,I),0),N=$,I=D.w_size}const k=O.avail_in,i=O.next_in,c=O.input;for(O.avail_in=I,O.next_in=0,O.input=N,fill_window(D);D.lookahead>=MIN_MATCH;){let $=D.strstart,C=D.lookahead-(MIN_MATCH-1);do D.ins_h=HASH(D,D.ins_h,D.window[$+MIN_MATCH-1]),D.prev[$&D.w_mask]=D.head[D.ins_h],D.head[D.ins_h]=$,$++;while(--C);D.strstart=$,D.lookahead=MIN_MATCH-1,fill_window(D)}return D.strstart+=D.lookahead,D.block_start=D.strstart,D.insert=D.lookahead,D.lookahead=0,D.match_length=D.prev_length=MIN_MATCH-1,D.match_available=0,O.next_in=i,O.input=c,O.avail_in=k,D.wrap=f,Z_OK$3};var deflateInit_1=deflateInit,deflateInit2_1=deflateInit2,deflateReset_1=deflateReset,deflateResetKeep_1=deflateResetKeep,deflateSetHeader_1=deflateSetHeader,deflate_2$1=deflate$2,deflateEnd_1=deflateEnd,deflateSetDictionary_1=deflateSetDictionary,deflateInfo="pako deflate (from Nodeca project)",deflate_1$2={deflateInit:deflateInit_1,deflateInit2:deflateInit2_1,deflateReset:deflateReset_1,deflateResetKeep:deflateResetKeep_1,deflateSetHeader:deflateSetHeader_1,deflate:deflate_2$1,deflateEnd:deflateEnd_1,deflateSetDictionary:deflateSetDictionary_1,deflateInfo};const _has=(O,N)=>Object.prototype.hasOwnProperty.call(O,N);var assign=function(O){const N=Array.prototype.slice.call(arguments,1);for(;N.length;){const I=N.shift();if(I){if(typeof I!="object")throw new TypeError(I+"must be non-object");for(const D in I)_has(I,D)&&(O[D]=I[D])}}return O},flattenChunks=O=>{let N=0;for(let D=0,f=O.length;D<f;D++)N+=O[D].length;const I=new Uint8Array(N);for(let D=0,f=0,k=O.length;D<k;D++){let i=O[D];I.set(i,f),f+=i.length}return I},common={assign,flattenChunks};let STR_APPLY_UIA_OK=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(O){STR_APPLY_UIA_OK=!1}const _utf8len=new Uint8Array(256);for(let O=0;O<256;O++)_utf8len[O]=O>=252?6:O>=248?5:O>=240?4:O>=224?3:O>=192?2:1;_utf8len[254]=_utf8len[254]=1;var string2buf=O=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(O);let N,I,D,f,k,i=O.length,c=0;for(f=0;f<i;f++)I=O.charCodeAt(f),(I&64512)===55296&&f+1<i&&(D=O.charCodeAt(f+1),(D&64512)===56320&&(I=65536+(I-55296<<10)+(D-56320),f++)),c+=I<128?1:I<2048?2:I<65536?3:4;for(N=new Uint8Array(c),k=0,f=0;k<c;f++)I=O.charCodeAt(f),(I&64512)===55296&&f+1<i&&(D=O.charCodeAt(f+1),(D&64512)===56320&&(I=65536+(I-55296<<10)+(D-56320),f++)),I<128?N[k++]=I:I<2048?(N[k++]=192|I>>>6,N[k++]=128|I&63):I<65536?(N[k++]=224|I>>>12,N[k++]=128|I>>>6&63,N[k++]=128|I&63):(N[k++]=240|I>>>18,N[k++]=128|I>>>12&63,N[k++]=128|I>>>6&63,N[k++]=128|I&63);return N};const buf2binstring=(O,N)=>{if(N<65534&&O.subarray&&STR_APPLY_UIA_OK)return String.fromCharCode.apply(null,O.length===N?O:O.subarray(0,N));let I="";for(let D=0;D<N;D++)I+=String.fromCharCode(O[D]);return I};var buf2string=(O,N)=>{const I=N||O.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(O.subarray(0,N));let D,f;const k=new Array(I*2);for(f=0,D=0;D<I;){let i=O[D++];if(i<128){k[f++]=i;continue}let c=_utf8len[i];if(c>4){k[f++]=65533,D+=c-1;continue}for(i&=c===2?31:c===3?15:7;c>1&&D<I;)i=i<<6|O[D++]&63,c--;if(c>1){k[f++]=65533;continue}i<65536?k[f++]=i:(i-=65536,k[f++]=55296|i>>10&1023,k[f++]=56320|i&1023)}return buf2binstring(k,f)},utf8border=(O,N)=>{N=N||O.length,N>O.length&&(N=O.length);let I=N-1;for(;I>=0&&(O[I]&192)===128;)I--;return I<0||I===0?N:I+_utf8len[O[I]]>N?I:N},strings={string2buf,buf2string,utf8border};function ZStream(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var zstream=ZStream;const toString$1=Object.prototype.toString,{Z_NO_FLUSH:Z_NO_FLUSH$1,Z_SYNC_FLUSH,Z_FULL_FLUSH,Z_FINISH:Z_FINISH$2,Z_OK:Z_OK$2,Z_STREAM_END:Z_STREAM_END$2,Z_DEFAULT_COMPRESSION,Z_DEFAULT_STRATEGY,Z_DEFLATED:Z_DEFLATED$1}=constants$2;function Deflate$1(O){this.options=common.assign({level:Z_DEFAULT_COMPRESSION,method:Z_DEFLATED$1,chunkSize:16384,windowBits:15,memLevel:8,strategy:Z_DEFAULT_STRATEGY},O||{});let N=this.options;N.raw&&N.windowBits>0?N.windowBits=-N.windowBits:N.gzip&&N.windowBits>0&&N.windowBits<16&&(N.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new zstream,this.strm.avail_out=0;let I=deflate_1$2.deflateInit2(this.strm,N.level,N.method,N.windowBits,N.memLevel,N.strategy);if(I!==Z_OK$2)throw new Error(messages[I]);if(N.header&&deflate_1$2.deflateSetHeader(this.strm,N.header),N.dictionary){let D;if(typeof N.dictionary=="string"?D=strings.string2buf(N.dictionary):toString$1.call(N.dictionary)==="[object ArrayBuffer]"?D=new Uint8Array(N.dictionary):D=N.dictionary,I=deflate_1$2.deflateSetDictionary(this.strm,D),I!==Z_OK$2)throw new Error(messages[I]);this._dict_set=!0}}Deflate$1.prototype.push=function(O,N){const I=this.strm,D=this.options.chunkSize;let f,k;if(this.ended)return!1;for(N===~~N?k=N:k=N===!0?Z_FINISH$2:Z_NO_FLUSH$1,typeof O=="string"?I.input=strings.string2buf(O):toString$1.call(O)==="[object ArrayBuffer]"?I.input=new Uint8Array(O):I.input=O,I.next_in=0,I.avail_in=I.input.length;;){if(I.avail_out===0&&(I.output=new Uint8Array(D),I.next_out=0,I.avail_out=D),(k===Z_SYNC_FLUSH||k===Z_FULL_FLUSH)&&I.avail_out<=6){this.onData(I.output.subarray(0,I.next_out)),I.avail_out=0;continue}if(f=deflate_1$2.deflate(I,k),f===Z_STREAM_END$2)return I.next_out>0&&this.onData(I.output.subarray(0,I.next_out)),f=deflate_1$2.deflateEnd(this.strm),this.onEnd(f),this.ended=!0,f===Z_OK$2;if(I.avail_out===0){this.onData(I.output);continue}if(k>0&&I.next_out>0){this.onData(I.output.subarray(0,I.next_out)),I.avail_out=0;continue}if(I.avail_in===0)break}return!0},Deflate$1.prototype.onData=function(O){this.chunks.push(O)},Deflate$1.prototype.onEnd=function(O){O===Z_OK$2&&(this.result=common.flattenChunks(this.chunks)),this.chunks=[],this.err=O,this.msg=this.strm.msg};function deflate$1(O,N){const I=new Deflate$1(N);if(I.push(O,!0),I.err)throw I.msg||messages[I.err];return I.result}function deflateRaw$1(O,N){return N=N||{},N.raw=!0,deflate$1(O,N)}function gzip$1(O,N){return N=N||{},N.gzip=!0,deflate$1(O,N)}var Deflate_1$1=Deflate$1,deflate_2=deflate$1,deflateRaw_1$1=deflateRaw$1,gzip_1$1=gzip$1,deflate_1$1={Deflate:Deflate_1$1,deflate:deflate_2,deflateRaw:deflateRaw_1$1,gzip:gzip_1$1};const BAD$1=16209,TYPE$1=16191;var inffast=function O(N,I){let D,f,k,i,c,$,C,M,Z,J,z,Q,ee,Y,te,ie,ye,re,de,se,ue,he,we,fe;const me=N.state;D=N.next_in,we=N.input,f=D+(N.avail_in-5),k=N.next_out,fe=N.output,i=k-(I-N.avail_out),c=k+(N.avail_out-257),$=me.dmax,C=me.wsize,M=me.whave,Z=me.wnext,J=me.window,z=me.hold,Q=me.bits,ee=me.lencode,Y=me.distcode,te=(1<<me.lenbits)-1,ie=(1<<me.distbits)-1;e:do{Q<15&&(z+=we[D++]<<Q,Q+=8,z+=we[D++]<<Q,Q+=8),ye=ee[z&te];t:for(;;){if(re=ye>>>24,z>>>=re,Q-=re,re=ye>>>16&255,re===0)fe[k++]=ye&65535;else if(re&16){de=ye&65535,re&=15,re&&(Q<re&&(z+=we[D++]<<Q,Q+=8),de+=z&(1<<re)-1,z>>>=re,Q-=re),Q<15&&(z+=we[D++]<<Q,Q+=8,z+=we[D++]<<Q,Q+=8),ye=Y[z&ie];n:for(;;){if(re=ye>>>24,z>>>=re,Q-=re,re=ye>>>16&255,re&16){if(se=ye&65535,re&=15,Q<re&&(z+=we[D++]<<Q,Q+=8,Q<re&&(z+=we[D++]<<Q,Q+=8)),se+=z&(1<<re)-1,se>$){N.msg="invalid distance too far back",me.mode=BAD$1;break e}if(z>>>=re,Q-=re,re=k-i,se>re){if(re=se-re,re>M&&me.sane){N.msg="invalid distance too far back",me.mode=BAD$1;break e}if(ue=0,he=J,Z===0){if(ue+=C-re,re<de){de-=re;do fe[k++]=J[ue++];while(--re);ue=k-se,he=fe}}else if(Z<re){if(ue+=C+Z-re,re-=Z,re<de){de-=re;do fe[k++]=J[ue++];while(--re);if(ue=0,Z<de){re=Z,de-=re;do fe[k++]=J[ue++];while(--re);ue=k-se,he=fe}}}else if(ue+=Z-re,re<de){de-=re;do fe[k++]=J[ue++];while(--re);ue=k-se,he=fe}for(;de>2;)fe[k++]=he[ue++],fe[k++]=he[ue++],fe[k++]=he[ue++],de-=3;de&&(fe[k++]=he[ue++],de>1&&(fe[k++]=he[ue++]))}else{ue=k-se;do fe[k++]=fe[ue++],fe[k++]=fe[ue++],fe[k++]=fe[ue++],de-=3;while(de>2);de&&(fe[k++]=fe[ue++],de>1&&(fe[k++]=fe[ue++]))}}else if((re&64)===0){ye=Y[(ye&65535)+(z&(1<<re)-1)];continue n}else{N.msg="invalid distance code",me.mode=BAD$1;break e}break}}else if((re&64)===0){ye=ee[(ye&65535)+(z&(1<<re)-1)];continue t}else if(re&32){me.mode=TYPE$1;break e}else{N.msg="invalid literal/length code",me.mode=BAD$1;break e}break}}while(D<f&&k<c);de=Q>>3,D-=de,Q-=de<<3,z&=(1<<Q)-1,N.next_in=D,N.next_out=k,N.avail_in=D<f?5+(f-D):5-(D-f),N.avail_out=k<c?257+(c-k):257-(k-c),me.hold=z,me.bits=Q};const MAXBITS=15,ENOUGH_LENS$1=852,ENOUGH_DISTS$1=592,CODES$1=0,LENS$1=1,DISTS$1=2,lbase=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),lext=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),dbase=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),dext=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),inflate_table=(O,N,I,D,f,k,i,c)=>{const $=c.bits;let C=0,M=0,Z=0,J=0,z=0,Q=0,ee=0,Y=0,te=0,ie=0,ye,re,de,se,ue,he=null,we;const fe=new Uint16Array(MAXBITS+1),me=new Uint16Array(MAXBITS+1);let Re=null,Ue,Pe,De;for(C=0;C<=MAXBITS;C++)fe[C]=0;for(M=0;M<D;M++)fe[N[I+M]]++;for(z=$,J=MAXBITS;J>=1&&fe[J]===0;J--);if(z>J&&(z=J),J===0)return f[k++]=1<<24|64<<16|0,f[k++]=1<<24|64<<16|0,c.bits=1,0;for(Z=1;Z<J&&fe[Z]===0;Z++);for(z<Z&&(z=Z),Y=1,C=1;C<=MAXBITS;C++)if(Y<<=1,Y-=fe[C],Y<0)return-1;if(Y>0&&(O===CODES$1||J!==1))return-1;for(me[1]=0,C=1;C<MAXBITS;C++)me[C+1]=me[C]+fe[C];for(M=0;M<D;M++)N[I+M]!==0&&(i[me[N[I+M]]++]=M);if(O===CODES$1?(he=Re=i,we=20):O===LENS$1?(he=lbase,Re=lext,we=257):(he=dbase,Re=dext,we=0),ie=0,M=0,C=Z,ue=k,Q=z,ee=0,de=-1,te=1<<z,se=te-1,O===LENS$1&&te>ENOUGH_LENS$1||O===DISTS$1&&te>ENOUGH_DISTS$1)return 1;for(;;){Ue=C-ee,i[M]+1<we?(Pe=0,De=i[M]):i[M]>=we?(Pe=Re[i[M]-we],De=he[i[M]-we]):(Pe=96,De=0),ye=1<<C-ee,re=1<<Q,Z=re;do re-=ye,f[ue+(ie>>ee)+re]=Ue<<24|Pe<<16|De|0;while(re!==0);for(ye=1<<C-1;ie&ye;)ye>>=1;if(ye!==0?(ie&=ye-1,ie+=ye):ie=0,M++,--fe[C]===0){if(C===J)break;C=N[I+i[M]]}if(C>z&&(ie&se)!==de){for(ee===0&&(ee=z),ue+=Z,Q=C-ee,Y=1<<Q;Q+ee<J&&(Y-=fe[Q+ee],!(Y<=0));)Q++,Y<<=1;if(te+=1<<Q,O===LENS$1&&te>ENOUGH_LENS$1||O===DISTS$1&&te>ENOUGH_DISTS$1)return 1;de=ie&se,f[de]=z<<24|Q<<16|ue-k|0}}return ie!==0&&(f[ue+ie]=C-ee<<24|64<<16|0),c.bits=z,0};var inftrees=inflate_table;const CODES=0,LENS=1,DISTS=2,{Z_FINISH:Z_FINISH$1,Z_BLOCK,Z_TREES,Z_OK:Z_OK$1,Z_STREAM_END:Z_STREAM_END$1,Z_NEED_DICT:Z_NEED_DICT$1,Z_STREAM_ERROR:Z_STREAM_ERROR$1,Z_DATA_ERROR:Z_DATA_ERROR$1,Z_MEM_ERROR:Z_MEM_ERROR$1,Z_BUF_ERROR,Z_DEFLATED}=constants$2,HEAD=16180,FLAGS=16181,TIME=16182,OS=16183,EXLEN=16184,EXTRA=16185,NAME=16186,COMMENT=16187,HCRC=16188,DICTID=16189,DICT=16190,TYPE=16191,TYPEDO=16192,STORED=16193,COPY_=16194,COPY=16195,TABLE=16196,LENLENS=16197,CODELENS=16198,LEN_=16199,LEN=16200,LENEXT=16201,DIST=16202,DISTEXT=16203,MATCH=16204,LIT=16205,CHECK=16206,LENGTH=16207,DONE=16208,BAD=16209,MEM=16210,SYNC=16211,ENOUGH_LENS=852,ENOUGH_DISTS=592,MAX_WBITS=15,DEF_WBITS=MAX_WBITS,zswap32=O=>(O>>>24&255)+(O>>>8&65280)+((O&65280)<<8)+((O&255)<<24);function InflateState(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const inflateStateCheck=O=>{if(!O)return 1;const N=O.state;return!N||N.strm!==O||N.mode<HEAD||N.mode>SYNC?1:0},inflateResetKeep=O=>{if(inflateStateCheck(O))return Z_STREAM_ERROR$1;const N=O.state;return O.total_in=O.total_out=N.total=0,O.msg="",N.wrap&&(O.adler=N.wrap&1),N.mode=HEAD,N.last=0,N.havedict=0,N.flags=-1,N.dmax=32768,N.head=null,N.hold=0,N.bits=0,N.lencode=N.lendyn=new Int32Array(ENOUGH_LENS),N.distcode=N.distdyn=new Int32Array(ENOUGH_DISTS),N.sane=1,N.back=-1,Z_OK$1},inflateReset=O=>{if(inflateStateCheck(O))return Z_STREAM_ERROR$1;const N=O.state;return N.wsize=0,N.whave=0,N.wnext=0,inflateResetKeep(O)},inflateReset2=(O,N)=>{let I;if(inflateStateCheck(O))return Z_STREAM_ERROR$1;const D=O.state;return N<0?(I=0,N=-N):(I=(N>>4)+5,N<48&&(N&=15)),N&&(N<8||N>15)?Z_STREAM_ERROR$1:(D.window!==null&&D.wbits!==N&&(D.window=null),D.wrap=I,D.wbits=N,inflateReset(O))},inflateInit2=(O,N)=>{if(!O)return Z_STREAM_ERROR$1;const I=new InflateState;O.state=I,I.strm=O,I.window=null,I.mode=HEAD;const D=inflateReset2(O,N);return D!==Z_OK$1&&(O.state=null),D},inflateInit=O=>inflateInit2(O,DEF_WBITS);let virgin=!0,lenfix,distfix;const fixedtables=O=>{if(virgin){lenfix=new Int32Array(512),distfix=new Int32Array(32);let N=0;for(;N<144;)O.lens[N++]=8;for(;N<256;)O.lens[N++]=9;for(;N<280;)O.lens[N++]=7;for(;N<288;)O.lens[N++]=8;for(inftrees(LENS,O.lens,0,288,lenfix,0,O.work,{bits:9}),N=0;N<32;)O.lens[N++]=5;inftrees(DISTS,O.lens,0,32,distfix,0,O.work,{bits:5}),virgin=!1}O.lencode=lenfix,O.lenbits=9,O.distcode=distfix,O.distbits=5},updatewindow=(O,N,I,D)=>{let f;const k=O.state;return k.window===null&&(k.wsize=1<<k.wbits,k.wnext=0,k.whave=0,k.window=new Uint8Array(k.wsize)),D>=k.wsize?(k.window.set(N.subarray(I-k.wsize,I),0),k.wnext=0,k.whave=k.wsize):(f=k.wsize-k.wnext,f>D&&(f=D),k.window.set(N.subarray(I-D,I-D+f),k.wnext),D-=f,D?(k.window.set(N.subarray(I-D,I),0),k.wnext=D,k.whave=k.wsize):(k.wnext+=f,k.wnext===k.wsize&&(k.wnext=0),k.whave<k.wsize&&(k.whave+=f))),0},inflate$2=(O,N)=>{let I,D,f,k,i,c,$,C,M,Z,J,z,Q,ee,Y=0,te,ie,ye,re,de,se,ue,he;const we=new Uint8Array(4);let fe,me;const Re=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(inflateStateCheck(O)||!O.output||!O.input&&O.avail_in!==0)return Z_STREAM_ERROR$1;I=O.state,I.mode===TYPE&&(I.mode=TYPEDO),i=O.next_out,f=O.output,$=O.avail_out,k=O.next_in,D=O.input,c=O.avail_in,C=I.hold,M=I.bits,Z=c,J=$,he=Z_OK$1;e:for(;;)switch(I.mode){case HEAD:if(I.wrap===0){I.mode=TYPEDO;break}for(;M<16;){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}if(I.wrap&2&&C===35615){I.wbits===0&&(I.wbits=15),I.check=0,we[0]=C&255,we[1]=C>>>8&255,I.check=crc32_1(I.check,we,2,0),C=0,M=0,I.mode=FLAGS;break}if(I.head&&(I.head.done=!1),!(I.wrap&1)||(((C&255)<<8)+(C>>8))%31){O.msg="incorrect header check",I.mode=BAD;break}if((C&15)!==Z_DEFLATED){O.msg="unknown compression method",I.mode=BAD;break}if(C>>>=4,M-=4,ue=(C&15)+8,I.wbits===0&&(I.wbits=ue),ue>15||ue>I.wbits){O.msg="invalid window size",I.mode=BAD;break}I.dmax=1<<I.wbits,I.flags=0,O.adler=I.check=1,I.mode=C&512?DICTID:TYPE,C=0,M=0;break;case FLAGS:for(;M<16;){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}if(I.flags=C,(I.flags&255)!==Z_DEFLATED){O.msg="unknown compression method",I.mode=BAD;break}if(I.flags&57344){O.msg="unknown header flags set",I.mode=BAD;break}I.head&&(I.head.text=C>>8&1),I.flags&512&&I.wrap&4&&(we[0]=C&255,we[1]=C>>>8&255,I.check=crc32_1(I.check,we,2,0)),C=0,M=0,I.mode=TIME;case TIME:for(;M<32;){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}I.head&&(I.head.time=C),I.flags&512&&I.wrap&4&&(we[0]=C&255,we[1]=C>>>8&255,we[2]=C>>>16&255,we[3]=C>>>24&255,I.check=crc32_1(I.check,we,4,0)),C=0,M=0,I.mode=OS;case OS:for(;M<16;){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}I.head&&(I.head.xflags=C&255,I.head.os=C>>8),I.flags&512&&I.wrap&4&&(we[0]=C&255,we[1]=C>>>8&255,I.check=crc32_1(I.check,we,2,0)),C=0,M=0,I.mode=EXLEN;case EXLEN:if(I.flags&1024){for(;M<16;){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}I.length=C,I.head&&(I.head.extra_len=C),I.flags&512&&I.wrap&4&&(we[0]=C&255,we[1]=C>>>8&255,I.check=crc32_1(I.check,we,2,0)),C=0,M=0}else I.head&&(I.head.extra=null);I.mode=EXTRA;case EXTRA:if(I.flags&1024&&(z=I.length,z>c&&(z=c),z&&(I.head&&(ue=I.head.extra_len-I.length,I.head.extra||(I.head.extra=new Uint8Array(I.head.extra_len)),I.head.extra.set(D.subarray(k,k+z),ue)),I.flags&512&&I.wrap&4&&(I.check=crc32_1(I.check,D,z,k)),c-=z,k+=z,I.length-=z),I.length))break e;I.length=0,I.mode=NAME;case NAME:if(I.flags&2048){if(c===0)break e;z=0;do ue=D[k+z++],I.head&&ue&&I.length<65536&&(I.head.name+=String.fromCharCode(ue));while(ue&&z<c);if(I.flags&512&&I.wrap&4&&(I.check=crc32_1(I.check,D,z,k)),c-=z,k+=z,ue)break e}else I.head&&(I.head.name=null);I.length=0,I.mode=COMMENT;case COMMENT:if(I.flags&4096){if(c===0)break e;z=0;do ue=D[k+z++],I.head&&ue&&I.length<65536&&(I.head.comment+=String.fromCharCode(ue));while(ue&&z<c);if(I.flags&512&&I.wrap&4&&(I.check=crc32_1(I.check,D,z,k)),c-=z,k+=z,ue)break e}else I.head&&(I.head.comment=null);I.mode=HCRC;case HCRC:if(I.flags&512){for(;M<16;){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}if(I.wrap&4&&C!==(I.check&65535)){O.msg="header crc mismatch",I.mode=BAD;break}C=0,M=0}I.head&&(I.head.hcrc=I.flags>>9&1,I.head.done=!0),O.adler=I.check=0,I.mode=TYPE;break;case DICTID:for(;M<32;){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}O.adler=I.check=zswap32(C),C=0,M=0,I.mode=DICT;case DICT:if(I.havedict===0)return O.next_out=i,O.avail_out=$,O.next_in=k,O.avail_in=c,I.hold=C,I.bits=M,Z_NEED_DICT$1;O.adler=I.check=1,I.mode=TYPE;case TYPE:if(N===Z_BLOCK||N===Z_TREES)break e;case TYPEDO:if(I.last){C>>>=M&7,M-=M&7,I.mode=CHECK;break}for(;M<3;){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}switch(I.last=C&1,C>>>=1,M-=1,C&3){case 0:I.mode=STORED;break;case 1:if(fixedtables(I),I.mode=LEN_,N===Z_TREES){C>>>=2,M-=2;break e}break;case 2:I.mode=TABLE;break;case 3:O.msg="invalid block type",I.mode=BAD}C>>>=2,M-=2;break;case STORED:for(C>>>=M&7,M-=M&7;M<32;){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}if((C&65535)!==(C>>>16^65535)){O.msg="invalid stored block lengths",I.mode=BAD;break}if(I.length=C&65535,C=0,M=0,I.mode=COPY_,N===Z_TREES)break e;case COPY_:I.mode=COPY;case COPY:if(z=I.length,z){if(z>c&&(z=c),z>$&&(z=$),z===0)break e;f.set(D.subarray(k,k+z),i),c-=z,k+=z,$-=z,i+=z,I.length-=z;break}I.mode=TYPE;break;case TABLE:for(;M<14;){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}if(I.nlen=(C&31)+257,C>>>=5,M-=5,I.ndist=(C&31)+1,C>>>=5,M-=5,I.ncode=(C&15)+4,C>>>=4,M-=4,I.nlen>286||I.ndist>30){O.msg="too many length or distance symbols",I.mode=BAD;break}I.have=0,I.mode=LENLENS;case LENLENS:for(;I.have<I.ncode;){for(;M<3;){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}I.lens[Re[I.have++]]=C&7,C>>>=3,M-=3}for(;I.have<19;)I.lens[Re[I.have++]]=0;if(I.lencode=I.lendyn,I.lenbits=7,fe={bits:I.lenbits},he=inftrees(CODES,I.lens,0,19,I.lencode,0,I.work,fe),I.lenbits=fe.bits,he){O.msg="invalid code lengths set",I.mode=BAD;break}I.have=0,I.mode=CODELENS;case CODELENS:for(;I.have<I.nlen+I.ndist;){for(;Y=I.lencode[C&(1<<I.lenbits)-1],te=Y>>>24,ie=Y>>>16&255,ye=Y&65535,!(te<=M);){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}if(ye<16)C>>>=te,M-=te,I.lens[I.have++]=ye;else{if(ye===16){for(me=te+2;M<me;){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}if(C>>>=te,M-=te,I.have===0){O.msg="invalid bit length repeat",I.mode=BAD;break}ue=I.lens[I.have-1],z=3+(C&3),C>>>=2,M-=2}else if(ye===17){for(me=te+3;M<me;){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}C>>>=te,M-=te,ue=0,z=3+(C&7),C>>>=3,M-=3}else{for(me=te+7;M<me;){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}C>>>=te,M-=te,ue=0,z=11+(C&127),C>>>=7,M-=7}if(I.have+z>I.nlen+I.ndist){O.msg="invalid bit length repeat",I.mode=BAD;break}for(;z--;)I.lens[I.have++]=ue}}if(I.mode===BAD)break;if(I.lens[256]===0){O.msg="invalid code -- missing end-of-block",I.mode=BAD;break}if(I.lenbits=9,fe={bits:I.lenbits},he=inftrees(LENS,I.lens,0,I.nlen,I.lencode,0,I.work,fe),I.lenbits=fe.bits,he){O.msg="invalid literal/lengths set",I.mode=BAD;break}if(I.distbits=6,I.distcode=I.distdyn,fe={bits:I.distbits},he=inftrees(DISTS,I.lens,I.nlen,I.ndist,I.distcode,0,I.work,fe),I.distbits=fe.bits,he){O.msg="invalid distances set",I.mode=BAD;break}if(I.mode=LEN_,N===Z_TREES)break e;case LEN_:I.mode=LEN;case LEN:if(c>=6&&$>=258){O.next_out=i,O.avail_out=$,O.next_in=k,O.avail_in=c,I.hold=C,I.bits=M,inffast(O,J),i=O.next_out,f=O.output,$=O.avail_out,k=O.next_in,D=O.input,c=O.avail_in,C=I.hold,M=I.bits,I.mode===TYPE&&(I.back=-1);break}for(I.back=0;Y=I.lencode[C&(1<<I.lenbits)-1],te=Y>>>24,ie=Y>>>16&255,ye=Y&65535,!(te<=M);){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}if(ie&&(ie&240)===0){for(re=te,de=ie,se=ye;Y=I.lencode[se+((C&(1<<re+de)-1)>>re)],te=Y>>>24,ie=Y>>>16&255,ye=Y&65535,!(re+te<=M);){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}C>>>=re,M-=re,I.back+=re}if(C>>>=te,M-=te,I.back+=te,I.length=ye,ie===0){I.mode=LIT;break}if(ie&32){I.back=-1,I.mode=TYPE;break}if(ie&64){O.msg="invalid literal/length code",I.mode=BAD;break}I.extra=ie&15,I.mode=LENEXT;case LENEXT:if(I.extra){for(me=I.extra;M<me;){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}I.length+=C&(1<<I.extra)-1,C>>>=I.extra,M-=I.extra,I.back+=I.extra}I.was=I.length,I.mode=DIST;case DIST:for(;Y=I.distcode[C&(1<<I.distbits)-1],te=Y>>>24,ie=Y>>>16&255,ye=Y&65535,!(te<=M);){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}if((ie&240)===0){for(re=te,de=ie,se=ye;Y=I.distcode[se+((C&(1<<re+de)-1)>>re)],te=Y>>>24,ie=Y>>>16&255,ye=Y&65535,!(re+te<=M);){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}C>>>=re,M-=re,I.back+=re}if(C>>>=te,M-=te,I.back+=te,ie&64){O.msg="invalid distance code",I.mode=BAD;break}I.offset=ye,I.extra=ie&15,I.mode=DISTEXT;case DISTEXT:if(I.extra){for(me=I.extra;M<me;){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}I.offset+=C&(1<<I.extra)-1,C>>>=I.extra,M-=I.extra,I.back+=I.extra}if(I.offset>I.dmax){O.msg="invalid distance too far back",I.mode=BAD;break}I.mode=MATCH;case MATCH:if($===0)break e;if(z=J-$,I.offset>z){if(z=I.offset-z,z>I.whave&&I.sane){O.msg="invalid distance too far back",I.mode=BAD;break}z>I.wnext?(z-=I.wnext,Q=I.wsize-z):Q=I.wnext-z,z>I.length&&(z=I.length),ee=I.window}else ee=f,Q=i-I.offset,z=I.length;z>$&&(z=$),$-=z,I.length-=z;do f[i++]=ee[Q++];while(--z);I.length===0&&(I.mode=LEN);break;case LIT:if($===0)break e;f[i++]=I.length,$--,I.mode=LEN;break;case CHECK:if(I.wrap){for(;M<32;){if(c===0)break e;c--,C|=D[k++]<<M,M+=8}if(J-=$,O.total_out+=J,I.total+=J,I.wrap&4&&J&&(O.adler=I.check=I.flags?crc32_1(I.check,f,J,i-J):adler32_1(I.check,f,J,i-J)),J=$,I.wrap&4&&(I.flags?C:zswap32(C))!==I.check){O.msg="incorrect data check",I.mode=BAD;break}C=0,M=0}I.mode=LENGTH;case LENGTH:if(I.wrap&&I.flags){for(;M<32;){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}if(I.wrap&4&&C!==(I.total&4294967295)){O.msg="incorrect length check",I.mode=BAD;break}C=0,M=0}I.mode=DONE;case DONE:he=Z_STREAM_END$1;break e;case BAD:he=Z_DATA_ERROR$1;break e;case MEM:return Z_MEM_ERROR$1;case SYNC:default:return Z_STREAM_ERROR$1}return O.next_out=i,O.avail_out=$,O.next_in=k,O.avail_in=c,I.hold=C,I.bits=M,(I.wsize||J!==O.avail_out&&I.mode<BAD&&(I.mode<CHECK||N!==Z_FINISH$1))&&updatewindow(O,O.output,O.next_out,J-O.avail_out),Z-=O.avail_in,J-=O.avail_out,O.total_in+=Z,O.total_out+=J,I.total+=J,I.wrap&4&&J&&(O.adler=I.check=I.flags?crc32_1(I.check,f,J,O.next_out-J):adler32_1(I.check,f,J,O.next_out-J)),O.data_type=I.bits+(I.last?64:0)+(I.mode===TYPE?128:0)+(I.mode===LEN_||I.mode===COPY_?256:0),(Z===0&&J===0||N===Z_FINISH$1)&&he===Z_OK$1&&(he=Z_BUF_ERROR),he},inflateEnd=O=>{if(inflateStateCheck(O))return Z_STREAM_ERROR$1;let N=O.state;return N.window&&(N.window=null),O.state=null,Z_OK$1},inflateGetHeader=(O,N)=>{if(inflateStateCheck(O))return Z_STREAM_ERROR$1;const I=O.state;return(I.wrap&2)===0?Z_STREAM_ERROR$1:(I.head=N,N.done=!1,Z_OK$1)},inflateSetDictionary=(O,N)=>{const I=N.length;let D,f,k;return inflateStateCheck(O)||(D=O.state,D.wrap!==0&&D.mode!==DICT)?Z_STREAM_ERROR$1:D.mode===DICT&&(f=1,f=adler32_1(f,N,I,0),f!==D.check)?Z_DATA_ERROR$1:(k=updatewindow(O,N,I,I),k?(D.mode=MEM,Z_MEM_ERROR$1):(D.havedict=1,Z_OK$1))};var inflateReset_1=inflateReset,inflateReset2_1=inflateReset2,inflateResetKeep_1=inflateResetKeep,inflateInit_1=inflateInit,inflateInit2_1=inflateInit2,inflate_2$1=inflate$2,inflateEnd_1=inflateEnd,inflateGetHeader_1=inflateGetHeader,inflateSetDictionary_1=inflateSetDictionary,inflateInfo="pako inflate (from Nodeca project)",inflate_1$2={inflateReset:inflateReset_1,inflateReset2:inflateReset2_1,inflateResetKeep:inflateResetKeep_1,inflateInit:inflateInit_1,inflateInit2:inflateInit2_1,inflate:inflate_2$1,inflateEnd:inflateEnd_1,inflateGetHeader:inflateGetHeader_1,inflateSetDictionary:inflateSetDictionary_1,inflateInfo};function GZheader(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var gzheader=GZheader;const toString=Object.prototype.toString,{Z_NO_FLUSH,Z_FINISH,Z_OK,Z_STREAM_END,Z_NEED_DICT,Z_STREAM_ERROR,Z_DATA_ERROR,Z_MEM_ERROR}=constants$2;function Inflate$1(O){this.options=common.assign({chunkSize:1024*64,windowBits:15,to:""},O||{});const N=this.options;N.raw&&N.windowBits>=0&&N.windowBits<16&&(N.windowBits=-N.windowBits,N.windowBits===0&&(N.windowBits=-15)),N.windowBits>=0&&N.windowBits<16&&!(O&&O.windowBits)&&(N.windowBits+=32),N.windowBits>15&&N.windowBits<48&&(N.windowBits&15)===0&&(N.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new zstream,this.strm.avail_out=0;let I=inflate_1$2.inflateInit2(this.strm,N.windowBits);if(I!==Z_OK)throw new Error(messages[I]);if(this.header=new gzheader,inflate_1$2.inflateGetHeader(this.strm,this.header),N.dictionary&&(typeof N.dictionary=="string"?N.dictionary=strings.string2buf(N.dictionary):toString.call(N.dictionary)==="[object ArrayBuffer]"&&(N.dictionary=new Uint8Array(N.dictionary)),N.raw&&(I=inflate_1$2.inflateSetDictionary(this.strm,N.dictionary),I!==Z_OK)))throw new Error(messages[I])}Inflate$1.prototype.push=function(O,N){const I=this.strm,D=this.options.chunkSize,f=this.options.dictionary;let k,i,c;if(this.ended)return!1;for(N===~~N?i=N:i=N===!0?Z_FINISH:Z_NO_FLUSH,toString.call(O)==="[object ArrayBuffer]"?I.input=new Uint8Array(O):I.input=O,I.next_in=0,I.avail_in=I.input.length;;){for(I.avail_out===0&&(I.output=new Uint8Array(D),I.next_out=0,I.avail_out=D),k=inflate_1$2.inflate(I,i),k===Z_NEED_DICT&&f&&(k=inflate_1$2.inflateSetDictionary(I,f),k===Z_OK?k=inflate_1$2.inflate(I,i):k===Z_DATA_ERROR&&(k=Z_NEED_DICT));I.avail_in>0&&k===Z_STREAM_END&&I.state.wrap>0&&O[I.next_in]!==0;)inflate_1$2.inflateReset(I),k=inflate_1$2.inflate(I,i);switch(k){case Z_STREAM_ERROR:case Z_DATA_ERROR:case Z_NEED_DICT:case Z_MEM_ERROR:return this.onEnd(k),this.ended=!0,!1}if(c=I.avail_out,I.next_out&&(I.avail_out===0||k===Z_STREAM_END))if(this.options.to==="string"){let $=strings.utf8border(I.output,I.next_out),C=I.next_out-$,M=strings.buf2string(I.output,$);I.next_out=C,I.avail_out=D-C,C&&I.output.set(I.output.subarray($,$+C),0),this.onData(M)}else this.onData(I.output.length===I.next_out?I.output:I.output.subarray(0,I.next_out));if(!(k===Z_OK&&c===0)){if(k===Z_STREAM_END)return k=inflate_1$2.inflateEnd(this.strm),this.onEnd(k),this.ended=!0,!0;if(I.avail_in===0)break}}return!0},Inflate$1.prototype.onData=function(O){this.chunks.push(O)},Inflate$1.prototype.onEnd=function(O){O===Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=common.flattenChunks(this.chunks)),this.chunks=[],this.err=O,this.msg=this.strm.msg};function inflate$1(O,N){const I=new Inflate$1(N);if(I.push(O),I.err)throw I.msg||messages[I.err];return I.result}function inflateRaw$1(O,N){return N=N||{},N.raw=!0,inflate$1(O,N)}var Inflate_1$1=Inflate$1,inflate_2=inflate$1,inflateRaw_1$1=inflateRaw$1,ungzip$1=inflate$1,inflate_1$1={Inflate:Inflate_1$1,inflate:inflate_2,inflateRaw:inflateRaw_1$1,ungzip:ungzip$1};const{Deflate,deflate,deflateRaw,gzip}=deflate_1$1,{Inflate,inflate,inflateRaw,ungzip}=inflate_1$1;var Deflate_1=Deflate,deflate_1=deflate,deflateRaw_1=deflateRaw,gzip_1=gzip,Inflate_1=Inflate,inflate_1=inflate,inflateRaw_1=inflateRaw,ungzip_1=ungzip,constants_1=constants$2,pako={Deflate:Deflate_1,deflate:deflate_1,deflateRaw:deflateRaw_1,gzip:gzip_1,Inflate:Inflate_1,inflate:inflate_1,inflateRaw:inflateRaw_1,ungzip:ungzip_1,constants:constants_1};const ignoreEvent=["updateSeverTime"];ignoreEvent.push("heartbeat"),ignoreEvent.push("heartbeatEx"),ignoreEvent.push("networkQualityChange"),ignoreEvent.push("onNetQuality"),ignoreEvent.push("updateCall"),ignoreEvent.push("pubNotify");const compressArrayBuffer=O=>{const N=new Uint8Array(O),I=pako.deflate(N,{gzip:!0});return new Uint8Array(I==null?void 0:I.buffer)},decompressArrayBuffer=O=>{const N=new Uint8Array(O),I=pako.inflate(N,{gzip:!0});return new Uint8Array(I==null?void 0:I.buffer)},sendMessageFormat=O=>{const{event:N}=O;switch(O.data_original=O.data,O.time&&(O.timeStr=E(O.time,"YYYY-MM-DD hh:mm:ss",{offset:480})),N){case"login":O.data=com.quick.voice.proto.Login.encode(O.data).finish();break;case"joinRoom":case"joinRoomEx":O.data=com.quick.voice.proto.JoinReq.encode(O.data).finish();break;case"quitRoom":O.data=com.quick.voice.proto.QuitReq.encode(O.data).finish();break;case"connectCF":O.data=com.quick.voice.proto.ConnectCFReq.encode(O.data).finish(),O.data=compressArrayBuffer(O.data),O.compress=!0;break;case"publish":O.data=com.quick.voice.proto.PublishReq.encode(O.data).finish(),O.data=compressArrayBuffer(O.data),O.compress=!0;break;case"pubChannel":O.data=com.quick.voice.proto.ChannelPublishReq.encode(O.data).finish();break;case"subscribe":O.data=com.quick.voice.proto.SubscribeReq.encode(O.data).finish();break;case"subChannel":O.data=com.quick.voice.proto.ChannelSubscribeRsq.encode(O.data).finish();break;case"closeTrack":O.data=com.quick.voice.proto.CloseTrackReq.encode(O.data).finish(),O.data=compressArrayBuffer(O.data),O.compress=!0;break;case"renegotiate":O.data=com.quick.voice.proto.RenegotiateReq.encode(O.data).finish(),O.data=compressArrayBuffer(O.data),O.compress=!0;break;case"syncRoomInfo":O.data=com.quick.voice.proto.SyncRoomInfoReq.encode(O.data).finish();break;case"updateCall":O.data=com.quick.voice.proto.UpdateCall.encode(O.data).finish();break;case"networkQualityChange":O.data=com.quick.voice.proto.NetQualityChange.encode(O.data).finish();break;case"pubNotify":O.data=com.quick.voice.proto.PublishNotify.encode(O.data).finish();break;case"onDataChannelPublish":break;case"preventUsersBehavior":O.data=com.quick.voice.proto.PreventUsersBehaviorReq.encode(O.data).finish();break;default:O.data=new Uint8Array;break}return O},onMessageFormat=O=>{const{event:N,compress:I=!1}=O;if(O.data_remote=O.data,O.time&&(O.timeStr=E(O.time,"YYYY-MM-DD hh:mm:ss",{offset:480})),I)try{O.data=decompressArrayBuffer(O.data)}catch(D){console.error("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo:消息解压错误",D)}switch(N){case"login":O.data=com.quick.voice.proto.Login.decode(O.data);break;case"joinRoom":case"joinRoomEx":O.data=com.quick.voice.proto.JoinRsp.decode(O.data);break;case"onJoinRoom":O.data=com.quick.voice.proto.JoinNotify.decode(O.data);break;case"onQuitRoom":O.data=com.quick.voice.proto.QuitNotify.decode(O.data);break;case"connectCF":O.data=com.quick.voice.proto.ConnectCFRsp.decode(O.data);break;case"publish":O.data=com.quick.voice.proto.PublishRsp.decode(O.data);break;case"pubChannel":O.data=com.quick.voice.proto.ChannelPublishRsq.decode(O.data);break;case"onPublish":O.data=com.quick.voice.proto.PublishNotify.decode(O.data);break;case"subscribe":O.data=com.quick.voice.proto.SubscribeRsp.decode(O.data);break;case"subChannel":O.data=com.quick.voice.proto.ChannelSubscribeRsq.decode(O.data);break;case"closeTrack":O.data=com.quick.voice.proto.CloseTrackRsp.decode(O.data);break;case"onCloseTrack":O.data=com.quick.voice.proto.CloseTrackNotify.decode(O.data);break;case"onUpdateCall":O.data=com.quick.voice.proto.UpdateCall.decode(O.data);break;case"onDataChannelPublish":O.data=com.quick.voice.proto.UserChannel.decode(O.data);break;case"onDestroyRoom":O.data=com.quick.voice.proto.QuitNotify.decode(O.data);break;case"onUpdatePermissions":O.data=com.quick.voice.proto.UpdatePermissions.decode(O.data);break;case"onNetQuality":O.data=com.quick.voice.proto.NetQualityNotify.decode(O.data);break;case"syncRoomInfo":O.data=com.quick.voice.proto.SyncRoomInfoRsp.decode(O.data);break;case"onCDNPlayUrlAdd":O.data=com.quick.voice.proto.CDNPlayAddressNotify.decode(O.data);break;case"onUpdateBehavior":O.data=com.quick.voice.proto.PreventUsersBehaviorNotify.decode(O.data);break;case"debugger":O.data=JSON.parse(new TextDecoder().decode(O.data));break}return O};class CallsWebSocket{constructor(N){Ge(this,st);Ge(this,it,{url:"wss://demo.putplay.cc/websocket",debug:!1,reconnectCount:10,timeout:30*1e3});Ge(this,Rt,"");Ge(this,Pt,{});Ge(this,Jt,{});_e(this,"state","closed");_e(this,"sendMessageBefore",async()=>{});_e(this,"onReconnectSuccess",N=>{});_e(this,"onReconnectStop",N=>{});Ge(this,Rn,N=>{let I=!0;const{code:D=1e3}=N;return(D===1e3||D===4e3)&&(I=!1),this.state="connecting",I});Ge(this,$n,async N=>{Oe(this,it).debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: 重连成功",N),this.state="connected",this.onReconnectSuccess(N)});Ge(this,An,async N=>{Oe(this,it).debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: 重连停止",N),this.onReconnectStop(N)});Ge(this,wn,(N,I={})=>{try{const{time:D,event:f,data:k={},data_original:i={},data_remote:c,...$}=I,C=E(D,"YYYY-MM-DD hh:mm:ss",{offset:480});let M={};const Z=(ye={})=>{const re=JSON.parse(JSON.stringify(ye)),de=Object.keys(re);for(const se of de)(se.includes("sdp")||se.includes("Sdp"))&&(re[se]="");return re};let J="res ↓";switch(N){case"res":J="res ↓",M=Z(k);break;case"req":J="req ↑",M=Z(i);break}let z="#quickvo.logs";ignoreEvent.includes(f)&&(z="#quickvo.ignoreEvents");const Q={"#action":J,timeStr:C,event:f,data:M,time:D,...$},ee=localStorage.getItem(z)||JSON.stringify([]),Y=JSON.parse(ee);let te=f==="heartbeat"||f==="heartbeatEx";const ie=[Q];for(const ye of Y){const{event:re}=ye;if(re==="heartbeat"||re==="heartbeatEx"){if(te)continue;te=!0}if(ie.length===200)break;ie.push(ye)}localStorage.setItem(z,JSON.stringify(ie))}catch(D){Oe(this,it).debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: updataLogs is error",D)}});Ge(this,Cn,(N,{resolve:I,reject:D})=>{const{sn:f=""}=N,k=()=>{const c=Oe(this,Pt)[f];clearTimeout(c.destructionTimer),delete Oe(this,Pt)[f]},i=window.setTimeout(()=>{const c=Oe(this,Pt)[f];console.warn("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo:event is timeout",c.message),k(),D("event is timeout")},Oe(this,it).timeout);Oe(this,Pt)[f]={message:N,resolve:I,reject:D,destruction:k,destructionTimer:i}});Ge(this,Dn,N=>Oe(this,Pt)[N]);Ge(this,Bn,async N=>{const I=new Uint8Array(N),D=com.quick.voice.proto.CommonRsp.decode(I),{sn:f,event:k}=D,i=onMessageFormat(D);if(Oe(this,it).debug&&!ignoreEvent.includes(k)&&(Oe(this,wn).call(this,"res",i),console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#ff0097;padding:16px 0;","------->quickvo: 响应消息↓",i)),notifyName_keys.includes(k))return this.emitNotify(k,P$1(i,["code","data","desc"]));const $=Oe(this,Dn).call(this,f);if($){const{resolve:C=Z=>{},destruction:M=()=>{}}=$;C(P$1(i,["code","data","desc"])),M()}});_e(this,"clearEvents",(N=[])=>{const I=Object.keys(Oe(this,Pt));N.length===0&&(N=I);for(const D of I){if(!N.includes(D))continue;const f=Oe(this,Pt)[D];if(f){const{destruction:k}=f;k()}}});_e(this,"connect",async(N="")=>new Promise(async I=>{N&&kt(this,Rt,N),Oe(this,st)&&(await Oe(this,st).close(),this.state="closed");const D=`${Oe(this,it).url}?s=${Oe(this,Rt)}&t=${Date.now()}`,f=new Date().getTime();if(kt(this,st,new S({...Oe(this,it),debug:!0,url:D,binaryType:"arraybuffer",onMessage:Oe(this,Bn),checkReconnect:Oe(this,Rn),getHeartbeatMsg:()=>"",onReconnectSuccess:Oe(this,$n),onReconnectStop:Oe(this,An)})),this.state="connecting",await Oe(this,st).connect(),this.state="connected",Oe(this,it).debug){const i=new Date().getTime()-f;console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;",`------->quickvo: 连接耗时-${i}ms-广播事件`,Oe(this,Jt))}I(Oe(this,st))}));_e(this,"close",async()=>{var I;Oe(this,it).debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: cws is close.");const N=Object.keys(Oe(this,Pt));for(const D of N){const{destructionTimer:f}=Oe(this,Pt)[D];clearTimeout(f)}kt(this,Pt,{}),await((I=Oe(this,st))==null?void 0:I.close()),this.state="closed"});_e(this,"sendMessage",(N,I=!0)=>new Promise(async(D,f)=>{var M;await this.sendMessageBefore();const{event:k,...i}=N,c=Date.now(),$=sendMessageFormat({event:k,sn:+`${c}${v$1(1e3,9999)}`,time:c,valid:Oe(this,it).timeout,version:1,compress:!1,...i});Oe(this,it).debug&&!ignoreEvent.includes(k)&&(Oe(this,wn).call(this,"req",$),console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#ff9700;padding:16px 0;","------->quickvo: 发送消息↑",$)),I&&Oe(this,Cn).call(this,$,{resolve:D,reject:f});const C=com.quick.voice.proto.CommonReq.encode($).finish();(M=Oe(this,st))==null||M.sendMessage(C)}));_e(this,"emitNotify",async(N,I)=>{const D=Oe(this,Jt)[N]||[];for(const f of D){const{callback:k=async()=>{}}=f;await k(I)}});_e(this,"addNotify",(N,I=!1)=>{const{event:D,sn:f=xt(32)}=N;Oe(this,Jt)[D]||(Oe(this,Jt)[D]=[]);const k=Oe(this,Jt)[D],i=k.findIndex(c=>c.sn===f);return i!==-1&&k.splice(i,1),I?k.unshift(N):k.push(N),f});_e(this,"removeNotify",(N=[])=>{if(N.length===0)kt(this,Jt,{});else{const I=Object.keys(Oe(this,Jt));for(const D of I)Oe(this,Jt)[D]=Oe(this,Jt)[D].filter(f=>!N.includes(f.sn||""))}Oe(this,it).debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: 移除广播事件",Oe(this,Jt))});kt(this,it,{...Oe(this,it),...N})}}st=new WeakMap,it=new WeakMap,Rt=new WeakMap,Pt=new WeakMap,Jt=new WeakMap,Rn=new WeakMap,$n=new WeakMap,An=new WeakMap,wn=new WeakMap,Cn=new WeakMap,Dn=new WeakMap,Bn=new WeakMap;/*! For license information please see pikazLocationModule.js.LICENSE.txt */var e$2={782:function(O){O.exports=(()=>{var N={483:(f,k,i)=>{f.exports=function c($,C,M){function Z(Q,ee){if(!C[Q]){if(!$[Q]){if(J)return J(Q,!0);var Y=new Error("Cannot find module '"+Q+"'");throw Y.code="MODULE_NOT_FOUND",Y}var te=C[Q]={exports:{}};$[Q][0].call(te.exports,function(ie){return Z($[Q][1][ie]||ie)},te,te.exports,c,$,C,M)}return C[Q].exports}for(var J=void 0,z=0;z<M.length;z++)Z(M[z]);return Z}({1:[function(c,$,C){(function(M){var Z,J,z=M.MutationObserver||M.WebKitMutationObserver;if(z){var Q=0,ee=new z(ye),Y=M.document.createTextNode("");ee.observe(Y,{characterData:!0}),Z=function(){Y.data=Q=++Q%2}}else if(M.setImmediate||M.MessageChannel===void 0)Z="document"in M&&"onreadystatechange"in M.document.createElement("script")?function(){var re=M.document.createElement("script");re.onreadystatechange=function(){ye(),re.onreadystatechange=null,re.parentNode.removeChild(re),re=null},M.document.documentElement.appendChild(re)}:function(){setTimeout(ye,0)};else{var te=new M.MessageChannel;te.port1.onmessage=ye,Z=function(){te.port2.postMessage(0)}}var ie=[];function ye(){var re,de;J=!0;for(var se=ie.length;se;){for(de=ie,ie=[],re=-1;++re<se;)de[re]();se=ie.length}J=!1}$.exports=function(re){ie.push(re)!==1||J||Z()}}).call(this,i.g!==void 0?i.g:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(c,$,C){var M=c(1);function Z(){}var J={},z=["REJECTED"],Q=["FULFILLED"],ee=["PENDING"];function Y(se){if(typeof se!="function")throw new TypeError("resolver must be a function");this.state=ee,this.queue=[],this.outcome=void 0,se!==Z&&re(this,se)}function te(se,ue,he){this.promise=se,typeof ue=="function"&&(this.onFulfilled=ue,this.callFulfilled=this.otherCallFulfilled),typeof he=="function"&&(this.onRejected=he,this.callRejected=this.otherCallRejected)}function ie(se,ue,he){M(function(){var we;try{we=ue(he)}catch(fe){return J.reject(se,fe)}we===se?J.reject(se,new TypeError("Cannot resolve promise with itself")):J.resolve(se,we)})}function ye(se){var ue=se&&se.then;if(se&&(typeof se=="object"||typeof se=="function")&&typeof ue=="function")return function(){ue.apply(se,arguments)}}function re(se,ue){var he=!1;function we(Re){he||(he=!0,J.reject(se,Re))}function fe(Re){he||(he=!0,J.resolve(se,Re))}var me=de(function(){ue(fe,we)});me.status==="error"&&we(me.value)}function de(se,ue){var he={};try{he.value=se(ue),he.status="success"}catch(we){he.status="error",he.value=we}return he}$.exports=Y,Y.prototype.catch=function(se){return this.then(null,se)},Y.prototype.then=function(se,ue){if(typeof se!="function"&&this.state===Q||typeof ue!="function"&&this.state===z)return this;var he=new this.constructor(Z);return this.state!==ee?ie(he,this.state===Q?se:ue,this.outcome):this.queue.push(new te(he,se,ue)),he},te.prototype.callFulfilled=function(se){J.resolve(this.promise,se)},te.prototype.otherCallFulfilled=function(se){ie(this.promise,this.onFulfilled,se)},te.prototype.callRejected=function(se){J.reject(this.promise,se)},te.prototype.otherCallRejected=function(se){ie(this.promise,this.onRejected,se)},J.resolve=function(se,ue){var he=de(ye,ue);if(he.status==="error")return J.reject(se,he.value);var we=he.value;if(we)re(se,we);else{se.state=Q,se.outcome=ue;for(var fe=-1,me=se.queue.length;++fe<me;)se.queue[fe].callFulfilled(ue)}return se},J.reject=function(se,ue){se.state=z,se.outcome=ue;for(var he=-1,we=se.queue.length;++he<we;)se.queue[he].callRejected(ue);return se},Y.resolve=function(se){return se instanceof this?se:J.resolve(new this(Z),se)},Y.reject=function(se){var ue=new this(Z);return J.reject(ue,se)},Y.all=function(se){var ue=this;if(Object.prototype.toString.call(se)!=="[object Array]")return this.reject(new TypeError("must be an array"));var he=se.length,we=!1;if(!he)return this.resolve([]);for(var fe=new Array(he),me=0,Re=-1,Ue=new this(Z);++Re<he;)Pe(se[Re],Re);return Ue;function Pe(De,vt){ue.resolve(De).then(function(_t){fe[vt]=_t,++me!==he||we||(we=!0,J.resolve(Ue,fe))},function(_t){we||(we=!0,J.reject(Ue,_t))})}},Y.race=function(se){if(Object.prototype.toString.call(se)!=="[object Array]")return this.reject(new TypeError("must be an array"));var ue,he=se.length,we=!1;if(!he)return this.resolve([]);for(var fe=-1,me=new this(Z);++fe<he;)ue=se[fe],this.resolve(ue).then(function(Re){we||(we=!0,J.resolve(me,Re))},function(Re){we||(we=!0,J.reject(me,Re))});return me}},{1:1}],3:[function(c,$,C){(function(M){typeof M.Promise!="function"&&(M.Promise=c(2))}).call(this,i.g!==void 0?i.g:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(c,$,C){var M=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ne){return typeof ne}:function(ne){return ne&&typeof Symbol=="function"&&ne.constructor===Symbol&&ne!==Symbol.prototype?"symbol":typeof ne},Z=function(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}();function J(ne,ce){ne=ne||[],ce=ce||{};try{return new Blob(ne,ce)}catch(ge){if(ge.name!=="TypeError")throw ge;for(var le=new(typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder),ke=0;ke<ne.length;ke+=1)le.append(ne[ke]);return le.getBlob(ce.type)}}typeof Promise>"u"&&c(3);var z=Promise;function Q(ne,ce){ce&&ne.then(function(le){ce(null,le)},function(le){ce(le)})}function ee(ne,ce,le){typeof ce=="function"&&ne.then(ce),typeof le=="function"&&ne.catch(le)}function Y(ne){return typeof ne!="string"&&(console.warn(ne+" used as a key, but it is not a string."),ne=String(ne)),ne}function te(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var ie="local-forage-detect-blob-support",ye=void 0,re={},de=Object.prototype.toString,se="readonly",ue="readwrite";function he(ne){for(var ce=ne.length,le=new ArrayBuffer(ce),ke=new Uint8Array(le),ge=0;ge<ce;ge++)ke[ge]=ne.charCodeAt(ge);return le}function we(ne){return typeof ye=="boolean"?z.resolve(ye):function(ce){return new z(function(le){var ke=ce.transaction(ie,ue),ge=J([""]);ke.objectStore(ie).put(ge,"key"),ke.onabort=function(Se){Se.preventDefault(),Se.stopPropagation(),le(!1)},ke.oncomplete=function(){var Se=navigator.userAgent.match(/Chrome\/(\d+)/),$e=navigator.userAgent.match(/Edge\//);le($e||!Se||parseInt(Se[1],10)>=43)}}).catch(function(){return!1})}(ne).then(function(ce){return ye=ce})}function fe(ne){var ce=re[ne.name],le={};le.promise=new z(function(ke,ge){le.resolve=ke,le.reject=ge}),ce.deferredOperations.push(le),ce.dbReady?ce.dbReady=ce.dbReady.then(function(){return le.promise}):ce.dbReady=le.promise}function me(ne){var ce=re[ne.name].deferredOperations.pop();if(ce)return ce.resolve(),ce.promise}function Re(ne,ce){var le=re[ne.name].deferredOperations.pop();if(le)return le.reject(ce),le.promise}function Ue(ne,ce){return new z(function(le,ke){if(re[ne.name]=re[ne.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},ne.db){if(!ce)return le(ne.db);fe(ne),ne.db.close()}var ge=[ne.name];ce&&ge.push(ne.version);var Se=Z.open.apply(Z,ge);ce&&(Se.onupgradeneeded=function($e){var Ne=Se.result;try{Ne.createObjectStore(ne.storeName),$e.oldVersion<=1&&Ne.createObjectStore(ie)}catch(qe){if(qe.name!=="ConstraintError")throw qe;console.warn('The database "'+ne.name+'" has been upgraded from version '+$e.oldVersion+" to version "+$e.newVersion+', but the storage "'+ne.storeName+'" already exists.')}}),Se.onerror=function($e){$e.preventDefault(),ke(Se.error)},Se.onsuccess=function(){var $e=Se.result;$e.onversionchange=function(Ne){Ne.target.close()},le($e),me(ne)}})}function Pe(ne){return Ue(ne,!1)}function De(ne){return Ue(ne,!0)}function vt(ne,ce){if(!ne.db)return!0;var le=!ne.db.objectStoreNames.contains(ne.storeName),ke=ne.version<ne.db.version,ge=ne.version>ne.db.version;if(ke&&(ne.version!==ce&&console.warn('The database "'+ne.name+`" can't be downgraded from version `+ne.db.version+" to version "+ne.version+"."),ne.version=ne.db.version),ge||le){if(le){var Se=ne.db.version+1;Se>ne.version&&(ne.version=Se)}return!0}return!1}function _t(ne){return J([he(atob(ne.data))],{type:ne.type})}function St(ne){return ne&&ne.__local_forage_encoded_blob}function Mt(ne){var ce=this,le=ce._initReady().then(function(){var ke=re[ce._dbInfo.name];if(ke&&ke.dbReady)return ke.dbReady});return ee(le,ne,ne),le}function At(ne,ce,le,ke){ke===void 0&&(ke=1);try{var ge=ne.db.transaction(ne.storeName,ce);le(null,ge)}catch(Se){if(ke>0&&(!ne.db||Se.name==="InvalidStateError"||Se.name==="NotFoundError"))return z.resolve().then(function(){if(!ne.db||Se.name==="NotFoundError"&&!ne.db.objectStoreNames.contains(ne.storeName)&&ne.version<=ne.db.version)return ne.db&&(ne.version=ne.db.version+1),De(ne)}).then(function(){return function($e){fe($e);for(var Ne=re[$e.name],qe=Ne.forages,Be=0;Be<qe.length;Be++){var Le=qe[Be];Le._dbInfo.db&&(Le._dbInfo.db.close(),Le._dbInfo.db=null)}return $e.db=null,Pe($e).then(function(je){return $e.db=je,vt($e)?De($e):je}).then(function(je){$e.db=Ne.db=je;for(var Ze=0;Ze<qe.length;Ze++)qe[Ze]._dbInfo.db=je}).catch(function(je){throw Re($e,je),je})}(ne).then(function(){At(ne,ce,le,ke-1)})}).catch(le);le(Se)}}var ct={_driver:"asyncStorage",_initStorage:function(ne){var ce=this,le={db:null};if(ne)for(var ke in ne)le[ke]=ne[ke];var ge=re[le.name];ge||(ge={forages:[],db:null,dbReady:null,deferredOperations:[]},re[le.name]=ge),ge.forages.push(ce),ce._initReady||(ce._initReady=ce.ready,ce.ready=Mt);var Se=[];function $e(){return z.resolve()}for(var Ne=0;Ne<ge.forages.length;Ne++){var qe=ge.forages[Ne];qe!==ce&&Se.push(qe._initReady().catch($e))}var Be=ge.forages.slice(0);return z.all(Se).then(function(){return le.db=ge.db,Pe(le)}).then(function(Le){return le.db=Le,vt(le,ce._defaultConfig.version)?De(le):Le}).then(function(Le){le.db=ge.db=Le,ce._dbInfo=le;for(var je=0;je<Be.length;je++){var Ze=Be[je];Ze!==ce&&(Ze._dbInfo.db=le.db,Ze._dbInfo.version=le.version)}})},_support:function(){try{if(!Z||!Z.open)return!1;var ne=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),ce=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!ne||ce)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}(),iterate:function(ne,ce){var le=this,ke=new z(function(ge,Se){le.ready().then(function(){At(le._dbInfo,se,function($e,Ne){if($e)return Se($e);try{var qe=Ne.objectStore(le._dbInfo.storeName).openCursor(),Be=1;qe.onsuccess=function(){var Le=qe.result;if(Le){var je=Le.value;St(je)&&(je=_t(je));var Ze=ne(je,Le.key,Be++);Ze!==void 0?ge(Ze):Le.continue()}else ge()},qe.onerror=function(){Se(qe.error)}}catch(Le){Se(Le)}})}).catch(Se)});return Q(ke,ce),ke},getItem:function(ne,ce){var le=this;ne=Y(ne);var ke=new z(function(ge,Se){le.ready().then(function(){At(le._dbInfo,se,function($e,Ne){if($e)return Se($e);try{var qe=Ne.objectStore(le._dbInfo.storeName).get(ne);qe.onsuccess=function(){var Be=qe.result;Be===void 0&&(Be=null),St(Be)&&(Be=_t(Be)),ge(Be)},qe.onerror=function(){Se(qe.error)}}catch(Be){Se(Be)}})}).catch(Se)});return Q(ke,ce),ke},setItem:function(ne,ce,le){var ke=this;ne=Y(ne);var ge=new z(function(Se,$e){var Ne;ke.ready().then(function(){return Ne=ke._dbInfo,de.call(ce)==="[object Blob]"?we(Ne.db).then(function(qe){return qe?ce:(Be=ce,new z(function(Le,je){var Ze=new FileReader;Ze.onerror=je,Ze.onloadend=function(nt){var at=btoa(nt.target.result||"");Le({__local_forage_encoded_blob:!0,data:at,type:Be.type})},Ze.readAsBinaryString(Be)}));var Be}):ce}).then(function(qe){At(ke._dbInfo,ue,function(Be,Le){if(Be)return $e(Be);try{var je=Le.objectStore(ke._dbInfo.storeName);qe===null&&(qe=void 0);var Ze=je.put(qe,ne);Le.oncomplete=function(){qe===void 0&&(qe=null),Se(qe)},Le.onabort=Le.onerror=function(){var nt=Ze.error?Ze.error:Ze.transaction.error;$e(nt)}}catch(nt){$e(nt)}})}).catch($e)});return Q(ge,le),ge},removeItem:function(ne,ce){var le=this;ne=Y(ne);var ke=new z(function(ge,Se){le.ready().then(function(){At(le._dbInfo,ue,function($e,Ne){if($e)return Se($e);try{var qe=Ne.objectStore(le._dbInfo.storeName).delete(ne);Ne.oncomplete=function(){ge()},Ne.onerror=function(){Se(qe.error)},Ne.onabort=function(){var Be=qe.error?qe.error:qe.transaction.error;Se(Be)}}catch(Be){Se(Be)}})}).catch(Se)});return Q(ke,ce),ke},clear:function(ne){var ce=this,le=new z(function(ke,ge){ce.ready().then(function(){At(ce._dbInfo,ue,function(Se,$e){if(Se)return ge(Se);try{var Ne=$e.objectStore(ce._dbInfo.storeName).clear();$e.oncomplete=function(){ke()},$e.onabort=$e.onerror=function(){var qe=Ne.error?Ne.error:Ne.transaction.error;ge(qe)}}catch(qe){ge(qe)}})}).catch(ge)});return Q(le,ne),le},length:function(ne){var ce=this,le=new z(function(ke,ge){ce.ready().then(function(){At(ce._dbInfo,se,function(Se,$e){if(Se)return ge(Se);try{var Ne=$e.objectStore(ce._dbInfo.storeName).count();Ne.onsuccess=function(){ke(Ne.result)},Ne.onerror=function(){ge(Ne.error)}}catch(qe){ge(qe)}})}).catch(ge)});return Q(le,ne),le},key:function(ne,ce){var le=this,ke=new z(function(ge,Se){ne<0?ge(null):le.ready().then(function(){At(le._dbInfo,se,function($e,Ne){if($e)return Se($e);try{var qe=Ne.objectStore(le._dbInfo.storeName),Be=!1,Le=qe.openKeyCursor();Le.onsuccess=function(){var je=Le.result;je?ne===0||Be?ge(je.key):(Be=!0,je.advance(ne)):ge(null)},Le.onerror=function(){Se(Le.error)}}catch(je){Se(je)}})}).catch(Se)});return Q(ke,ce),ke},keys:function(ne){var ce=this,le=new z(function(ke,ge){ce.ready().then(function(){At(ce._dbInfo,se,function(Se,$e){if(Se)return ge(Se);try{var Ne=$e.objectStore(ce._dbInfo.storeName).openKeyCursor(),qe=[];Ne.onsuccess=function(){var Be=Ne.result;Be?(qe.push(Be.key),Be.continue()):ke(qe)},Ne.onerror=function(){ge(Ne.error)}}catch(Be){ge(Be)}})}).catch(ge)});return Q(le,ne),le},dropInstance:function(ne,ce){ce=te.apply(this,arguments);var le=this.config();(ne=typeof ne!="function"&&ne||{}).name||(ne.name=ne.name||le.name,ne.storeName=ne.storeName||le.storeName);var ke,ge=this;if(ne.name){var Se=ne.name===le.name&&ge._dbInfo.db?z.resolve(ge._dbInfo.db):Pe(ne).then(function($e){var Ne=re[ne.name],qe=Ne.forages;Ne.db=$e;for(var Be=0;Be<qe.length;Be++)qe[Be]._dbInfo.db=$e;return $e});ke=ne.storeName?Se.then(function($e){if($e.objectStoreNames.contains(ne.storeName)){var Ne=$e.version+1;fe(ne);var qe=re[ne.name],Be=qe.forages;$e.close();for(var Le=0;Le<Be.length;Le++){var je=Be[Le];je._dbInfo.db=null,je._dbInfo.version=Ne}var Ze=new z(function(nt,at){var It=Z.open(ne.name,Ne);It.onerror=function(Qt){It.result.close(),at(Qt)},It.onupgradeneeded=function(){It.result.deleteObjectStore(ne.storeName)},It.onsuccess=function(){var Qt=It.result;Qt.close(),nt(Qt)}});return Ze.then(function(nt){qe.db=nt;for(var at=0;at<Be.length;at++){var It=Be[at];It._dbInfo.db=nt,me(It._dbInfo)}}).catch(function(nt){throw(Re(ne,nt)||z.resolve()).catch(function(){}),nt})}}):Se.then(function($e){fe(ne);var Ne=re[ne.name],qe=Ne.forages;$e.close();for(var Be=0;Be<qe.length;Be++)qe[Be]._dbInfo.db=null;var Le=new z(function(je,Ze){var nt=Z.deleteDatabase(ne.name);nt.onerror=function(){var at=nt.result;at&&at.close(),Ze(nt.error)},nt.onblocked=function(){console.warn('dropInstance blocked for database "'+ne.name+'" until all open connections are closed')},nt.onsuccess=function(){var at=nt.result;at&&at.close(),je(at)}});return Le.then(function(je){Ne.db=je;for(var Ze=0;Ze<qe.length;Ze++)me(qe[Ze]._dbInfo)}).catch(function(je){throw(Re(ne,je)||z.resolve()).catch(function(){}),je})})}else ke=z.reject("Invalid arguments");return Q(ke,ce),ke}},Qe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Lt=/^~~local_forage_type~([^~]+)~/,gt="__lfsc__:",Ae=gt.length,Ye="arbf",qt="blob",Ot="si08",Ke="ui08",Ve="uic8",Xe="si16",et="si32",ut="ur16",Tt="ui32",Ct="fl32",Dt="fl64",Ht=Ae+Ye.length,Ft=Object.prototype.toString;function rn(ne){var ce,le,ke,ge,Se,$e=.75*ne.length,Ne=ne.length,qe=0;ne[ne.length-1]==="="&&($e--,ne[ne.length-2]==="="&&$e--);var Be=new ArrayBuffer($e),Le=new Uint8Array(Be);for(ce=0;ce<Ne;ce+=4)le=Qe.indexOf(ne[ce]),ke=Qe.indexOf(ne[ce+1]),ge=Qe.indexOf(ne[ce+2]),Se=Qe.indexOf(ne[ce+3]),Le[qe++]=le<<2|ke>>4,Le[qe++]=(15&ke)<<4|ge>>2,Le[qe++]=(3&ge)<<6|63&Se;return Be}function Zt(ne){var ce,le=new Uint8Array(ne),ke="";for(ce=0;ce<le.length;ce+=3)ke+=Qe[le[ce]>>2],ke+=Qe[(3&le[ce])<<4|le[ce+1]>>4],ke+=Qe[(15&le[ce+1])<<2|le[ce+2]>>6],ke+=Qe[63&le[ce+2]];return le.length%3==2?ke=ke.substring(0,ke.length-1)+"=":le.length%3==1&&(ke=ke.substring(0,ke.length-2)+"=="),ke}var Gt={serialize:function(ne,ce){var le="";if(ne&&(le=Ft.call(ne)),ne&&(le==="[object ArrayBuffer]"||ne.buffer&&Ft.call(ne.buffer)==="[object ArrayBuffer]")){var ke,ge=gt;ne instanceof ArrayBuffer?(ke=ne,ge+=Ye):(ke=ne.buffer,le==="[object Int8Array]"?ge+=Ot:le==="[object Uint8Array]"?ge+=Ke:le==="[object Uint8ClampedArray]"?ge+=Ve:le==="[object Int16Array]"?ge+=Xe:le==="[object Uint16Array]"?ge+=ut:le==="[object Int32Array]"?ge+=et:le==="[object Uint32Array]"?ge+=Tt:le==="[object Float32Array]"?ge+=Ct:le==="[object Float64Array]"?ge+=Dt:ce(new Error("Failed to get type for BinaryArray"))),ce(ge+Zt(ke))}else if(le==="[object Blob]"){var Se=new FileReader;Se.onload=function(){var $e="~~local_forage_type~"+ne.type+"~"+Zt(this.result);ce("__lfsc__:blob"+$e)},Se.readAsArrayBuffer(ne)}else try{ce(JSON.stringify(ne))}catch($e){console.error("Couldn't convert value into a JSON string: ",ne),ce(null,$e)}},deserialize:function(ne){if(ne.substring(0,Ae)!==gt)return JSON.parse(ne);var ce,le=ne.substring(Ht),ke=ne.substring(Ae,Ht);if(ke===qt&&Lt.test(le)){var ge=le.match(Lt);ce=ge[1],le=le.substring(ge[0].length)}var Se=rn(le);switch(ke){case Ye:return Se;case qt:return J([Se],{type:ce});case Ot:return new Int8Array(Se);case Ke:return new Uint8Array(Se);case Ve:return new Uint8ClampedArray(Se);case Xe:return new Int16Array(Se);case ut:return new Uint16Array(Se);case et:return new Int32Array(Se);case Tt:return new Uint32Array(Se);case Ct:return new Float32Array(Se);case Dt:return new Float64Array(Se);default:throw new Error("Unkown type: "+ke)}},stringToBuffer:rn,bufferToString:Zt};function Ut(ne,ce,le,ke){ne.executeSql("CREATE TABLE IF NOT EXISTS "+ce.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],le,ke)}function jt(ne,ce,le,ke,ge,Se){ne.executeSql(le,ke,ge,function($e,Ne){Ne.code===Ne.SYNTAX_ERR?$e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[ce.storeName],function(qe,Be){Be.rows.length?Se(qe,Ne):Ut(qe,ce,function(){qe.executeSql(le,ke,ge,Se)},Se)},Se):Se($e,Ne)},Se)}function dn(ne,ce,le,ke){var ge=this;ne=Y(ne);var Se=new z(function($e,Ne){ge.ready().then(function(){ce===void 0&&(ce=null);var qe=ce,Be=ge._dbInfo;Be.serializer.serialize(ce,function(Le,je){je?Ne(je):Be.db.transaction(function(Ze){jt(Ze,Be,"INSERT OR REPLACE INTO "+Be.storeName+" (key, value) VALUES (?, ?)",[ne,Le],function(){$e(qe)},function(nt,at){Ne(at)})},function(Ze){if(Ze.code===Ze.QUOTA_ERR){if(ke>0)return void $e(dn.apply(ge,[ne,qe,le,ke-1]));Ne(Ze)}})})}).catch(Ne)});return Q(Se,le),Se}function Kt(ne){return new z(function(ce,le){ne.transaction(function(ke){ke.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(ge,Se){for(var $e=[],Ne=0;Ne<Se.rows.length;Ne++)$e.push(Se.rows.item(Ne).name);ce({db:ne,storeNames:$e})},function(ge,Se){le(Se)})},function(ke){le(ke)})})}var zt={_driver:"webSQLStorage",_initStorage:function(ne){var ce=this,le={db:null};if(ne)for(var ke in ne)le[ke]=typeof ne[ke]!="string"?ne[ke].toString():ne[ke];var ge=new z(function(Se,$e){try{le.db=openDatabase(le.name,String(le.version),le.description,le.size)}catch(Ne){return $e(Ne)}le.db.transaction(function(Ne){Ut(Ne,le,function(){ce._dbInfo=le,Se()},function(qe,Be){$e(Be)})},$e)});return le.serializer=Gt,ge},_support:typeof openDatabase=="function",iterate:function(ne,ce){var le=this,ke=new z(function(ge,Se){le.ready().then(function(){var $e=le._dbInfo;$e.db.transaction(function(Ne){jt(Ne,$e,"SELECT * FROM "+$e.storeName,[],function(qe,Be){for(var Le=Be.rows,je=Le.length,Ze=0;Ze<je;Ze++){var nt=Le.item(Ze),at=nt.value;if(at&&(at=$e.serializer.deserialize(at)),(at=ne(at,nt.key,Ze+1))!==void 0)return void ge(at)}ge()},function(qe,Be){Se(Be)})})}).catch(Se)});return Q(ke,ce),ke},getItem:function(ne,ce){var le=this;ne=Y(ne);var ke=new z(function(ge,Se){le.ready().then(function(){var $e=le._dbInfo;$e.db.transaction(function(Ne){jt(Ne,$e,"SELECT * FROM "+$e.storeName+" WHERE key = ? LIMIT 1",[ne],function(qe,Be){var Le=Be.rows.length?Be.rows.item(0).value:null;Le&&(Le=$e.serializer.deserialize(Le)),ge(Le)},function(qe,Be){Se(Be)})})}).catch(Se)});return Q(ke,ce),ke},setItem:function(ne,ce,le){return dn.apply(this,[ne,ce,le,1])},removeItem:function(ne,ce){var le=this;ne=Y(ne);var ke=new z(function(ge,Se){le.ready().then(function(){var $e=le._dbInfo;$e.db.transaction(function(Ne){jt(Ne,$e,"DELETE FROM "+$e.storeName+" WHERE key = ?",[ne],function(){ge()},function(qe,Be){Se(Be)})})}).catch(Se)});return Q(ke,ce),ke},clear:function(ne){var ce=this,le=new z(function(ke,ge){ce.ready().then(function(){var Se=ce._dbInfo;Se.db.transaction(function($e){jt($e,Se,"DELETE FROM "+Se.storeName,[],function(){ke()},function(Ne,qe){ge(qe)})})}).catch(ge)});return Q(le,ne),le},length:function(ne){var ce=this,le=new z(function(ke,ge){ce.ready().then(function(){var Se=ce._dbInfo;Se.db.transaction(function($e){jt($e,Se,"SELECT COUNT(key) as c FROM "+Se.storeName,[],function(Ne,qe){var Be=qe.rows.item(0).c;ke(Be)},function(Ne,qe){ge(qe)})})}).catch(ge)});return Q(le,ne),le},key:function(ne,ce){var le=this,ke=new z(function(ge,Se){le.ready().then(function(){var $e=le._dbInfo;$e.db.transaction(function(Ne){jt(Ne,$e,"SELECT key FROM "+$e.storeName+" WHERE id = ? LIMIT 1",[ne+1],function(qe,Be){var Le=Be.rows.length?Be.rows.item(0).key:null;ge(Le)},function(qe,Be){Se(Be)})})}).catch(Se)});return Q(ke,ce),ke},keys:function(ne){var ce=this,le=new z(function(ke,ge){ce.ready().then(function(){var Se=ce._dbInfo;Se.db.transaction(function($e){jt($e,Se,"SELECT key FROM "+Se.storeName,[],function(Ne,qe){for(var Be=[],Le=0;Le<qe.rows.length;Le++)Be.push(qe.rows.item(Le).key);ke(Be)},function(Ne,qe){ge(qe)})})}).catch(ge)});return Q(le,ne),le},dropInstance:function(ne,ce){ce=te.apply(this,arguments);var le=this.config();(ne=typeof ne!="function"&&ne||{}).name||(ne.name=ne.name||le.name,ne.storeName=ne.storeName||le.storeName);var ke,ge=this;return Q(ke=ne.name?new z(function(Se){var $e;$e=ne.name===le.name?ge._dbInfo.db:openDatabase(ne.name,"","",0),ne.storeName?Se({db:$e,storeNames:[ne.storeName]}):Se(Kt($e))}).then(function(Se){return new z(function($e,Ne){Se.db.transaction(function(qe){function Be(nt){return new z(function(at,It){qe.executeSql("DROP TABLE IF EXISTS "+nt,[],function(){at()},function(Qt,hn){It(hn)})})}for(var Le=[],je=0,Ze=Se.storeNames.length;je<Ze;je++)Le.push(Be(Se.storeNames[je]));z.all(Le).then(function(){$e()}).catch(function(nt){Ne(nt)})},function(qe){Ne(qe)})})}):z.reject("Invalid arguments"),ce),ke}};function X(ne,ce){var le=ne.name+"/";return ne.storeName!==ce.storeName&&(le+=ne.storeName+"/"),le}var F={_driver:"localStorageWrapper",_initStorage:function(ne){var ce={};if(ne)for(var le in ne)ce[le]=ne[le];return ce.keyPrefix=X(ne,this._defaultConfig),!function(){var ke="_localforage_support_test";try{return localStorage.setItem(ke,!0),localStorage.removeItem(ke),!1}catch{return!0}}()||localStorage.length>0?(this._dbInfo=ce,ce.serializer=Gt,z.resolve()):z.reject()},_support:function(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}(),iterate:function(ne,ce){var le=this,ke=le.ready().then(function(){for(var ge=le._dbInfo,Se=ge.keyPrefix,$e=Se.length,Ne=localStorage.length,qe=1,Be=0;Be<Ne;Be++){var Le=localStorage.key(Be);if(Le.indexOf(Se)===0){var je=localStorage.getItem(Le);if(je&&(je=ge.serializer.deserialize(je)),(je=ne(je,Le.substring($e),qe++))!==void 0)return je}}});return Q(ke,ce),ke},getItem:function(ne,ce){var le=this;ne=Y(ne);var ke=le.ready().then(function(){var ge=le._dbInfo,Se=localStorage.getItem(ge.keyPrefix+ne);return Se&&(Se=ge.serializer.deserialize(Se)),Se});return Q(ke,ce),ke},setItem:function(ne,ce,le){var ke=this;ne=Y(ne);var ge=ke.ready().then(function(){ce===void 0&&(ce=null);var Se=ce;return new z(function($e,Ne){var qe=ke._dbInfo;qe.serializer.serialize(ce,function(Be,Le){if(Le)Ne(Le);else try{localStorage.setItem(qe.keyPrefix+ne,Be),$e(Se)}catch(je){je.name!=="QuotaExceededError"&&je.name!=="NS_ERROR_DOM_QUOTA_REACHED"||Ne(je),Ne(je)}})})});return Q(ge,le),ge},removeItem:function(ne,ce){var le=this;ne=Y(ne);var ke=le.ready().then(function(){var ge=le._dbInfo;localStorage.removeItem(ge.keyPrefix+ne)});return Q(ke,ce),ke},clear:function(ne){var ce=this,le=ce.ready().then(function(){for(var ke=ce._dbInfo.keyPrefix,ge=localStorage.length-1;ge>=0;ge--){var Se=localStorage.key(ge);Se.indexOf(ke)===0&&localStorage.removeItem(Se)}});return Q(le,ne),le},length:function(ne){var ce=this.keys().then(function(le){return le.length});return Q(ce,ne),ce},key:function(ne,ce){var le=this,ke=le.ready().then(function(){var ge,Se=le._dbInfo;try{ge=localStorage.key(ne)}catch{ge=null}return ge&&(ge=ge.substring(Se.keyPrefix.length)),ge});return Q(ke,ce),ke},keys:function(ne){var ce=this,le=ce.ready().then(function(){for(var ke=ce._dbInfo,ge=localStorage.length,Se=[],$e=0;$e<ge;$e++){var Ne=localStorage.key($e);Ne.indexOf(ke.keyPrefix)===0&&Se.push(Ne.substring(ke.keyPrefix.length))}return Se});return Q(le,ne),le},dropInstance:function(ne,ce){if(ce=te.apply(this,arguments),!(ne=typeof ne!="function"&&ne||{}).name){var le=this.config();ne.name=ne.name||le.name,ne.storeName=ne.storeName||le.storeName}var ke,ge=this;return ke=ne.name?new z(function(Se){ne.storeName?Se(X(ne,ge._defaultConfig)):Se(ne.name+"/")}).then(function(Se){for(var $e=localStorage.length-1;$e>=0;$e--){var Ne=localStorage.key($e);Ne.indexOf(Se)===0&&localStorage.removeItem(Ne)}}):z.reject("Invalid arguments"),Q(ke,ce),ke}},j=function(ne,ce){for(var le=ne.length,ke=0;ke<le;){if((ge=ne[ke])===(Se=ce)||typeof ge=="number"&&typeof Se=="number"&&isNaN(ge)&&isNaN(Se))return!0;ke++}var ge,Se;return!1},ae=Array.isArray||function(ne){return Object.prototype.toString.call(ne)==="[object Array]"},ve={},Ee={},Ce={INDEXEDDB:ct,WEBSQL:zt,LOCALSTORAGE:F},tt=[Ce.INDEXEDDB._driver,Ce.WEBSQL._driver,Ce.LOCALSTORAGE._driver],mt=["dropInstance"],ot=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(mt),wt={description:"",driver:tt.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function yt(ne,ce){ne[ce]=function(){var le=arguments;return ne.ready().then(function(){return ne[ce].apply(ne,le)})}}function on(){for(var ne=1;ne<arguments.length;ne++){var ce=arguments[ne];if(ce)for(var le in ce)ce.hasOwnProperty(le)&&(ae(ce[le])?arguments[0][le]=ce[le].slice():arguments[0][le]=ce[le])}return arguments[0]}var Zn=function(){function ne(ce){for(var le in function(Se,$e){if(!(Se instanceof $e))throw new TypeError("Cannot call a class as a function")}(this,ne),Ce)if(Ce.hasOwnProperty(le)){var ke=Ce[le],ge=ke._driver;this[le]=ge,ve[ge]||this.defineDriver(ke)}this._defaultConfig=on({},wt),this._config=on({},this._defaultConfig,ce),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return ne.prototype.config=function(ce){if((ce===void 0?"undefined":M(ce))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var le in ce){if(le==="storeName"&&(ce[le]=ce[le].replace(/\W/g,"_")),le==="version"&&typeof ce[le]!="number")return new Error("Database version must be a number.");this._config[le]=ce[le]}return!("driver"in ce)||!ce.driver||this.setDriver(this._config.driver)}return typeof ce=="string"?this._config[ce]:this._config},ne.prototype.defineDriver=function(ce,le,ke){var ge=new z(function(Se,$e){try{var Ne=ce._driver,qe=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!ce._driver)return void $e(qe);for(var Be=ot.concat("_initStorage"),Le=0,je=Be.length;Le<je;Le++){var Ze=Be[Le];if((!j(mt,Ze)||ce[Ze])&&typeof ce[Ze]!="function")return void $e(qe)}(function(){for(var at=function(xn){return function(){var Gn=new Error("Method "+xn+" is not implemented by the current driver"),Et=z.reject(Gn);return Q(Et,arguments[arguments.length-1]),Et}},It=0,Qt=mt.length;It<Qt;It++){var hn=mt[It];ce[hn]||(ce[hn]=at(hn))}})();var nt=function(at){ve[Ne]&&console.info("Redefining LocalForage driver: "+Ne),ve[Ne]=ce,Ee[Ne]=at,Se()};"_support"in ce?ce._support&&typeof ce._support=="function"?ce._support().then(nt,$e):nt(!!ce._support):nt(!0)}catch(at){$e(at)}});return ee(ge,le,ke),ge},ne.prototype.driver=function(){return this._driver||null},ne.prototype.getDriver=function(ce,le,ke){var ge=ve[ce]?z.resolve(ve[ce]):z.reject(new Error("Driver not found."));return ee(ge,le,ke),ge},ne.prototype.getSerializer=function(ce){var le=z.resolve(Gt);return ee(le,ce),le},ne.prototype.ready=function(ce){var le=this,ke=le._driverSet.then(function(){return le._ready===null&&(le._ready=le._initDriver()),le._ready});return ee(ke,ce,ce),ke},ne.prototype.setDriver=function(ce,le,ke){var ge=this;ae(ce)||(ce=[ce]);var Se=this._getSupportedDrivers(ce);function $e(){ge._config.driver=ge.driver()}function Ne(Be){return ge._extend(Be),$e(),ge._ready=ge._initStorage(ge._config),ge._ready}var qe=this._driverSet!==null?this._driverSet.catch(function(){return z.resolve()}):z.resolve();return this._driverSet=qe.then(function(){var Be=Se[0];return ge._dbInfo=null,ge._ready=null,ge.getDriver(Be).then(function(Le){ge._driver=Le._driver,$e(),ge._wrapLibraryMethodsWithReady(),ge._initDriver=function(je){return function(){var Ze=0;return function nt(){for(;Ze<je.length;){var at=je[Ze];return Ze++,ge._dbInfo=null,ge._ready=null,ge.getDriver(at).then(Ne).catch(nt)}$e();var It=new Error("No available storage method found.");return ge._driverSet=z.reject(It),ge._driverSet}()}}(Se)})}).catch(function(){$e();var Be=new Error("No available storage method found.");return ge._driverSet=z.reject(Be),ge._driverSet}),ee(this._driverSet,le,ke),this._driverSet},ne.prototype.supports=function(ce){return!!Ee[ce]},ne.prototype._extend=function(ce){on(this,ce)},ne.prototype._getSupportedDrivers=function(ce){for(var le=[],ke=0,ge=ce.length;ke<ge;ke++){var Se=ce[ke];this.supports(Se)&&le.push(Se)}return le},ne.prototype._wrapLibraryMethodsWithReady=function(){for(var ce=0,le=ot.length;ce<le;ce++)yt(this,ot[ce])},ne.prototype.createInstance=function(ce){return new ne(ce)},ne}(),Vn=new Zn;$.exports=Vn},{3:3}]},{},[4])(4)},961:(f,k,i)=>{var c,$=function(){var C=String.fromCharCode,M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",J={};function z(ee,Y){if(!J[ee]){J[ee]={};for(var te=0;te<ee.length;te++)J[ee][ee.charAt(te)]=te}return J[ee][Y]}var Q={compressToBase64:function(ee){if(ee==null)return"";var Y=Q._compress(ee,6,function(te){return M.charAt(te)});switch(Y.length%4){default:case 0:return Y;case 1:return Y+"===";case 2:return Y+"==";case 3:return Y+"="}},decompressFromBase64:function(ee){return ee==null?"":ee==""?null:Q._decompress(ee.length,32,function(Y){return z(M,ee.charAt(Y))})},compressToUTF16:function(ee){return ee==null?"":Q._compress(ee,15,function(Y){return C(Y+32)})+" "},decompressFromUTF16:function(ee){return ee==null?"":ee==""?null:Q._decompress(ee.length,16384,function(Y){return ee.charCodeAt(Y)-32})},compressToUint8Array:function(ee){for(var Y=Q.compress(ee),te=new Uint8Array(2*Y.length),ie=0,ye=Y.length;ie<ye;ie++){var re=Y.charCodeAt(ie);te[2*ie]=re>>>8,te[2*ie+1]=re%256}return te},decompressFromUint8Array:function(ee){if(ee==null)return Q.decompress(ee);for(var Y=new Array(ee.length/2),te=0,ie=Y.length;te<ie;te++)Y[te]=256*ee[2*te]+ee[2*te+1];var ye=[];return Y.forEach(function(re){ye.push(C(re))}),Q.decompress(ye.join(""))},compressToEncodedURIComponent:function(ee){return ee==null?"":Q._compress(ee,6,function(Y){return Z.charAt(Y)})},decompressFromEncodedURIComponent:function(ee){return ee==null?"":ee==""?null:(ee=ee.replace(/ /g,"+"),Q._decompress(ee.length,32,function(Y){return z(Z,ee.charAt(Y))}))},compress:function(ee){return Q._compress(ee,16,function(Y){return C(Y)})},_compress:function(ee,Y,te){if(ee==null)return"";var ie,ye,re,de={},se={},ue="",he="",we="",fe=2,me=3,Re=2,Ue=[],Pe=0,De=0;for(re=0;re<ee.length;re+=1)if(ue=ee.charAt(re),Object.prototype.hasOwnProperty.call(de,ue)||(de[ue]=me++,se[ue]=!0),he=we+ue,Object.prototype.hasOwnProperty.call(de,he))we=he;else{if(Object.prototype.hasOwnProperty.call(se,we)){if(we.charCodeAt(0)<256){for(ie=0;ie<Re;ie++)Pe<<=1,De==Y-1?(De=0,Ue.push(te(Pe)),Pe=0):De++;for(ye=we.charCodeAt(0),ie=0;ie<8;ie++)Pe=Pe<<1|1&ye,De==Y-1?(De=0,Ue.push(te(Pe)),Pe=0):De++,ye>>=1}else{for(ye=1,ie=0;ie<Re;ie++)Pe=Pe<<1|ye,De==Y-1?(De=0,Ue.push(te(Pe)),Pe=0):De++,ye=0;for(ye=we.charCodeAt(0),ie=0;ie<16;ie++)Pe=Pe<<1|1&ye,De==Y-1?(De=0,Ue.push(te(Pe)),Pe=0):De++,ye>>=1}--fe==0&&(fe=Math.pow(2,Re),Re++),delete se[we]}else for(ye=de[we],ie=0;ie<Re;ie++)Pe=Pe<<1|1&ye,De==Y-1?(De=0,Ue.push(te(Pe)),Pe=0):De++,ye>>=1;--fe==0&&(fe=Math.pow(2,Re),Re++),de[he]=me++,we=String(ue)}if(we!==""){if(Object.prototype.hasOwnProperty.call(se,we)){if(we.charCodeAt(0)<256){for(ie=0;ie<Re;ie++)Pe<<=1,De==Y-1?(De=0,Ue.push(te(Pe)),Pe=0):De++;for(ye=we.charCodeAt(0),ie=0;ie<8;ie++)Pe=Pe<<1|1&ye,De==Y-1?(De=0,Ue.push(te(Pe)),Pe=0):De++,ye>>=1}else{for(ye=1,ie=0;ie<Re;ie++)Pe=Pe<<1|ye,De==Y-1?(De=0,Ue.push(te(Pe)),Pe=0):De++,ye=0;for(ye=we.charCodeAt(0),ie=0;ie<16;ie++)Pe=Pe<<1|1&ye,De==Y-1?(De=0,Ue.push(te(Pe)),Pe=0):De++,ye>>=1}--fe==0&&(fe=Math.pow(2,Re),Re++),delete se[we]}else for(ye=de[we],ie=0;ie<Re;ie++)Pe=Pe<<1|1&ye,De==Y-1?(De=0,Ue.push(te(Pe)),Pe=0):De++,ye>>=1;--fe==0&&(fe=Math.pow(2,Re),Re++)}for(ye=2,ie=0;ie<Re;ie++)Pe=Pe<<1|1&ye,De==Y-1?(De=0,Ue.push(te(Pe)),Pe=0):De++,ye>>=1;for(;;){if(Pe<<=1,De==Y-1){Ue.push(te(Pe));break}De++}return Ue.join("")},decompress:function(ee){return ee==null?"":ee==""?null:Q._decompress(ee.length,32768,function(Y){return ee.charCodeAt(Y)})},_decompress:function(ee,Y,te){var ie,ye,re,de,se,ue,he,we=[],fe=4,me=4,Re=3,Ue="",Pe=[],De={val:te(0),position:Y,index:1};for(ie=0;ie<3;ie+=1)we[ie]=ie;for(re=0,se=Math.pow(2,2),ue=1;ue!=se;)de=De.val&De.position,De.position>>=1,De.position==0&&(De.position=Y,De.val=te(De.index++)),re|=(de>0?1:0)*ue,ue<<=1;switch(re){case 0:for(re=0,se=Math.pow(2,8),ue=1;ue!=se;)de=De.val&De.position,De.position>>=1,De.position==0&&(De.position=Y,De.val=te(De.index++)),re|=(de>0?1:0)*ue,ue<<=1;he=C(re);break;case 1:for(re=0,se=Math.pow(2,16),ue=1;ue!=se;)de=De.val&De.position,De.position>>=1,De.position==0&&(De.position=Y,De.val=te(De.index++)),re|=(de>0?1:0)*ue,ue<<=1;he=C(re);break;case 2:return""}for(we[3]=he,ye=he,Pe.push(he);;){if(De.index>ee)return"";for(re=0,se=Math.pow(2,Re),ue=1;ue!=se;)de=De.val&De.position,De.position>>=1,De.position==0&&(De.position=Y,De.val=te(De.index++)),re|=(de>0?1:0)*ue,ue<<=1;switch(he=re){case 0:for(re=0,se=Math.pow(2,8),ue=1;ue!=se;)de=De.val&De.position,De.position>>=1,De.position==0&&(De.position=Y,De.val=te(De.index++)),re|=(de>0?1:0)*ue,ue<<=1;we[me++]=C(re),he=me-1,fe--;break;case 1:for(re=0,se=Math.pow(2,16),ue=1;ue!=se;)de=De.val&De.position,De.position>>=1,De.position==0&&(De.position=Y,De.val=te(De.index++)),re|=(de>0?1:0)*ue,ue<<=1;we[me++]=C(re),he=me-1,fe--;break;case 2:return Pe.join("")}if(fe==0&&(fe=Math.pow(2,Re),Re++),we[he])Ue=we[he];else{if(he!==me)return null;Ue=ye+ye.charAt(0)}Pe.push(Ue),we[me++]=ye+Ue.charAt(0),ye=Ue,--fe==0&&(fe=Math.pow(2,Re),Re++)}}};return Q}();(c=(function(){return $}).call(k,i,k,f))===void 0||(f.exports=c)},895:f=>{f.exports=function(k,i,c,$){var C=k[0],M=k[1],Z=!1;c===void 0&&(c=0),$===void 0&&($=i.length);for(var J=($-c)/2,z=0,Q=J-1;z<J;Q=z++){var ee=i[c+2*z+0],Y=i[c+2*z+1],te=i[c+2*Q+0],ie=i[c+2*Q+1];Y>M!=ie>M&&C<(te-ee)*(M-Y)/(ie-Y)+ee&&(Z=!Z)}return Z}},946:(f,k,i)=>{const c=i(909),$=async()=>await c.get({dir:"areaList",file:"index"}),C=({name:Q,list:ee})=>{let Y=Q;const te=ee.find(ye=>Y.indexOf(ye.name)!==-1);if(te){const ye=te.name.length;return Y=Y.slice(ye,Q.length),{id:te.id,name:Y,children:te.children}}const ie=ee.find(ye=>Y.indexOf(ye.shortName)!==-1);if(ie){const ye=ie.shortName.length;return Y=Y.slice(ye,Q.length),{id:ie.id,name:Y,children:ie.children}}return null},M=async(Q="",ee)=>{let Y=Q;const te={province:"",city:"",district:""};let ie=ee;ee||(ie=await $());const ye=C({name:Y,list:ie});if(ye){Y=ye.name,te.province=ye.id;const se=ye.children,ue=C({name:Y,list:se});if(ue){Y=ue.name,te.city=ue.id;const fe=C({name:Y,list:ue.children});return fe&&(Y=fe.name,te.district=fe.id),te}const he=se.reduce((fe,me)=>me.children?fe.concat(me.children):fe,[]),we=C({name:Y,list:he});return we&&(Y=we.name,te.district=we.id),te}const re=ie.reduce((se,ue)=>ue.children?se.concat(ue.children):se,[]),de=C({name:Y,list:re});if(de){Y=de.name,te.city=de.id;const se=C({name:Y,list:de.children});se&&(Y=se.name,te.district=se.id)}return te},Z=async(Q={})=>{let{code:ee}={...Q};ee=typeof ee=="string"?ee:ee.toString();const Y={province:"",provinceCode:"",city:"",cityCode:"",district:"",districtCode:"",code:ee,address:""};if((await $()).every(te=>te.id===ee?(Y.province=te.name,Y.provinceCode=te.id,!1):!te.children||te.children.every(ie=>ie.id===ee?(Y.province=te.name,Y.provinceCode=te.id,Y.city=ie.name,Y.cityCode=ie.id,!1):!ie.children||ie.children.every(ye=>ye.id!==ee||(Y.province=te.name,Y.provinceCode=te.id,Y.city=ie.name,Y.cityCode=ie.id,Y.district=ye.name,Y.districtCode=ye.id,!1)))))throw new Error("未找到该地区");return Y.address=Y.province+Y.city+Y.district,Y},J=async({provinceCode:Q,cityCode:ee,districtCode:Y})=>{const te={province:{},city:{},district:{}};if(Q){const ie=await c.get({dir:"province",file:Q});te.province={code:ie.id,location:ie.location,name:ie.name,pinyin:ie.pinyin}}if(ee){const ie=(await c.get({dir:"city",file:Q})).find(ye=>ye.id===ee);te.city={code:ie.id,location:ie.location,name:ie.name,pinyin:ie.pinyin}}if(Y){const ie=(await c.get({dir:"district",file:ee})).find(ye=>ye.id===Y);te.district={code:ie.id,location:ie.location,name:ie.name,pinyin:ie.pinyin}}return te},z=async(Q,ee)=>{let Y=ee;if(Y||(Y=await $()),!Q)return Y.map(te=>({code:te.id,name:te.name}));for(let te=0;te<Y.length;te++){const ie=Y[te];if(ie.id===Q&&ie.children)return ie.children.map(ye=>({code:ye.id,name:ye.name}));if(ie.children){const ye=await z(Q,ie.children);if(ye)return ye}}};f.exports={getList:z,searchCodeInfo:async({code:Q,detail:ee})=>{const{province:Y,city:te,district:ie,address:ye,provinceCode:re,cityCode:de,districtCode:se}=await Z({code:Q}),ue={province:Y,city:te,district:ie,address:ye,code:Q};if(ee){const he=await J({provinceCode:re,cityCode:de,districtCode:se});ue.detail=he}return ue},searchStrAddress:async Q=>{const{province:ee,city:Y,district:te}=await M(Q);return te||Y||ee||null},analysisAddress:M,searchCodeDetailInfo:async({code:Q})=>{const{provinceCode:ee,cityCode:Y,districtCode:te}=await Z({code:Q}),ie=await J({provinceCode:ee,cityCode:Y,districtCode:te});return Object.keys(ie.district).length?ie.district:Object.keys(ie.city).length?ie.city:Object.keys(ie.province).length?ie.province:void 0}}},182:f=>{f.exports=new class{constructor(){this.config={timeout:1e4,enableHighAccuracy:!1,detail:!1},this.cdn=["https://npm.onmicrosoft.cn/@pikaz/location/lib","https://unpkg.com/@pikaz/location/lib"],this.userCdn=""}set(k){this.config={...this.config,...k},this.config.url&&(this.userCdn=this.config.url)}}},955:(f,k,i)=>{const c=i(909),$=i(895),C=i(182),M=({latitude:Z,longitude:J,address:z})=>z.find(Q=>Q.polygon.find(ee=>{if($([J,Z],ee))return ee}));f.exports={getGeo:(Z={})=>{const{enableHighAccuracy:J,timeout:z}={...C.config,...Z};return new Promise((Q,ee)=>{if(navigator.geolocation){const Y=navigator.geolocation.watchPosition(te=>{const{latitude:ie,longitude:ye}=te.coords;navigator.geolocation.clearWatch(Y),Q({latitude:ie,longitude:ye})},te=>{switch(navigator.geolocation.clearWatch(Y),te.code){case te.PERMISSION_DENIED:ee(new Error("html5已拒绝定位"));break;case te.POSITION_UNAVAILABLE:ee(new Error("html5位置信息不可用"));break;case te.TIMEOUT:ee(new Error("定位超时"));break;case te.UNKNOWN_ERROR:ee(new Error("html5定位未知错误"))}},{enableHighAccuracy:J,timeout:z,maximumAge:0})}else ee(new Error("浏览器不支持HTML5定位"))})},getGeoCode:async({latitude:Z,longitude:J})=>{try{let z="";const Q=(await c.get({dir:"province",file:"short"})).filter(Y=>M({latitude:Z,longitude:J,address:[Y]}));let ee="";for(let Y=0;Y<Q.length;Y++){const{id:te}=Q[Y],ie=await c.get({dir:"province",file:te}),ye=M({latitude:Z,longitude:J,address:[ie]});ye&&(ee=ye)}if(ee){z=ee.id;const Y=await c.get({dir:"city",file:ee.id}),te=M({latitude:Z,longitude:J,address:Y});if(te){z=te.id;const ie=await c.get({dir:"district",file:te.id}),ye=M({latitude:Z,longitude:J,address:ie});ye&&(z=ye.id)}}if(!z)throw new Error("非中国境内");return z}catch(z){throw z}}}},909:(f,k,i)=>{const c=i(218),{decompressFromEncodedURIComponent:$}=i(961),C=i(483),M=i(182),{version:Z,fileDate:J}=i(147);f.exports=new class{constructor(){this.local=null,this.localConfig={name:"pikazLocation",storeName:"v"+Z.split(".")[0]+"."+Z.split(".")[1]}}async get({dir:z,file:Q}){if(!this.local){const te=C.createInstance(this.localConfig);await te.ready(),this.local=te}const ee=`${z}-${Q}-${J[z]}`,Y=await this.local.getItem(ee);if(Y)return Y;try{const te=await(async({file:ie})=>{const ye=c.CancelToken;let re;const de=async(se,ue)=>{const he=await c({url:`${se}/static/${ue}.json`,method:"get",dataType:"json",cancelToken:new ye(function(fe){re=fe}),timeout:M.timeout});if(!he||!he.data||Object.prototype.toString.call(he.data.s)!="[object String]")throw new Error("未获取到文件");const we=$(he.data.s);return JSON.parse(we)};try{const se=M.userCdn;if(se)return await de(se,ie);throw new Error("未找到设置的url")}catch{const ue=M.cdn.map(he=>new Promise(we=>{de(he,ie).then(fe=>{we(fe)}).catch(()=>{})}));try{return await Promise.race(ue)}catch{throw new Error("定位失败")}finally{re()}}})({file:`${z}/${Q}`});return this.local.setItem(ee,te),te}catch{throw new Error("定位失败")}}async getVal({key:z,gainVal:Q,expiration:ee}){if(!this.local){const de=C.createInstance(this.localConfig);await de.ready(),this.local=de}const Y=new Date().getTime(),te=ee||0,ie=`local-${z}`,ye=await this.local.getItem(ie);if(ye&&ye.expiration>Y)return ye.val;const re=await Q();return await this.local.setItem(ie,{val:re,expiration:Y+te}),re}async clear(){await this.local.clear()}}},138:(f,k,i)=>{const c=i(182),{getGeo:$,getGeoCode:C}=i(955),{getList:M,searchCodeInfo:Z,searchStrAddress:J,searchCodeDetailInfo:z}=i(946),{getIpCode:Q}=i(454),ee=async(re,de={})=>{let{timeout:se}={...c.config,...de};return await Promise.race([re(de),new Promise((ue,he)=>{setTimeout(()=>{he(new Error("定位超时"))},se)})])},Y=async(re={})=>{let{timeout:de,enableHighAccuracy:se,detail:ue,latitude:he,longitude:we}={...c.config,...re};if(!he||!we){const{latitude:fe,longitude:me}=await $({timeout:de,enableHighAccuracy:se});he=fe,we=me}return await ee(async()=>{const fe=await C({latitude:he,longitude:we});if(!fe)throw new Error("非中国境内");return{...await Z({code:fe,detail:ue}),latitude:he,longitude:we}},{timeout:de})},te=async(re={})=>{let{detail:de,ip:se}={...c.config,...re};const{code:ue,ip:he}=await Q({ip:se});return se||(se=he),{...await Z({code:ue,detail:de}),ip:se}},ie=async(re={})=>{const{address:de,detail:se}={...c.config,...re},ue=await J(de);if(!ue)throw new Error("解析地址失败,请确认地址包含省级或市级名称");return await Z({code:ue,detail:se})},ye=async(re={})=>{const{code:de,detail:se}={...c.config,...re};return await Z({code:de,detail:se})};f.exports={setConfig:({timeout:re,url:de})=>{c.set({timeout:re,url:de})},getLocation:async(re={})=>{try{return{...await Y(re),type:"h5"}}catch{return{...await ee(te,re),type:"ip"}}},getH5Location:Y,getIpLocation:re=>ee(te,re),searchList:async(re={})=>{const{code:de}={...re};return await M(de||"")||[]},searchCodeAddress:re=>ee(ye,re),searchAddress:re=>ee(ie,re),searchCodeDetail:re=>ee(z,re)}},454:(f,k,i)=>{const{decompressFromEncodedURIComponent:c}=i(961),$=i(909),C=Z=>{const J=Z.split(".").reduce((z,Q)=>`${z}${(ee=>{const Y=ee.split("").reverse();return new Array(3).fill(0).map((te,ie)=>Y[ie]||0).reverse().join("")})(Q)}`,"");return Number(J)},M=()=>new Promise((Z,J)=>{const z="ipCallback"+new Date().getTime(),Q=document.createElement("script");Q.onerror=()=>{J(new Error("获取ip失败"))},window[z]=ee=>{ee&&ee.ip?Z(ee.ip):J(new Error("ip定位失败"))},Q.src=c("BYFxAcGcC4HpYIbgJYDpkoGYE9UHsAnAc1gH5NCBbBEAXgCtI8A7cAMjYGMEAbHgIwScA1rSA")+z,document.body.appendChild(Q)});f.exports={addZero:C,getIpCode:async(Z={})=>{let{ip:J}={...Z};J||(J=await $.getVal({key:"ip",gainVal:M,expiration:864e5}));const z=J.split(".").map(Q=>Number(Q)||0);if(z.length!==4)throw new Error("ip格式错误,只支持ipv4");return{code:(await $.get({dir:"ip",file:`${z[0]}.${z[1]}`})).reduce((Q,ee)=>{const{district:Y,id:te}=ee,ie=C(J);return ie>=Y[0]&&ie<=Y[1]?te:Q},""),ip:J}}}},218:(f,k,i)=>{function c(K,oe){return function(){return K.apply(oe,arguments)}}const{toString:$}=Object.prototype,{getPrototypeOf:C}=Object,M=(Z=Object.create(null),K=>{const oe=$.call(K);return Z[oe]||(Z[oe]=oe.slice(8,-1).toLowerCase())});var Z;const J=K=>(K=K.toLowerCase(),oe=>M(oe)===K),z=K=>oe=>typeof oe===K,{isArray:Q}=Array,ee=z("undefined"),Y=J("ArrayBuffer"),te=z("string"),ie=z("function"),ye=z("number"),re=K=>K!==null&&typeof K=="object",de=K=>{if(M(K)!=="object")return!1;const oe=C(K);return!(oe!==null&&oe!==Object.prototype&&Object.getPrototypeOf(oe)!==null||Symbol.toStringTag in K||Symbol.iterator in K)},se=J("Date"),ue=J("File"),he=J("Blob"),we=J("FileList"),fe=J("URLSearchParams");function me(K,oe,{allOwnKeys:pe=!1}={}){if(K==null)return;let be,Te;if(typeof K!="object"&&(K=[K]),Q(K))for(be=0,Te=K.length;be<Te;be++)oe.call(null,K[be],be,K);else{const xe=pe?Object.getOwnPropertyNames(K):Object.keys(K),Ie=xe.length;let Fe;for(be=0;be<Ie;be++)Fe=xe[be],oe.call(null,K[Fe],Fe,K)}}function Re(K,oe){oe=oe.toLowerCase();const pe=Object.keys(K);let be,Te=pe.length;for(;Te-- >0;)if(be=pe[Te],oe===be.toLowerCase())return be;return null}const Ue=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:i.g,Pe=K=>!ee(K)&&K!==Ue,De=(vt=typeof Uint8Array<"u"&&C(Uint8Array),K=>vt&&K instanceof vt);var vt;const _t=J("HTMLFormElement"),St=(({hasOwnProperty:K})=>(oe,pe)=>K.call(oe,pe))(Object.prototype),Mt=J("RegExp"),At=(K,oe)=>{const pe=Object.getOwnPropertyDescriptors(K),be={};me(pe,(Te,xe)=>{let Ie;(Ie=oe(Te,xe,K))!==!1&&(be[xe]=Ie||Te)}),Object.defineProperties(K,be)},ct="abcdefghijklmnopqrstuvwxyz",Qe="0123456789",Lt={DIGIT:Qe,ALPHA:ct,ALPHA_DIGIT:ct+ct.toUpperCase()+Qe},gt=J("AsyncFunction");var Ae={isArray:Q,isArrayBuffer:Y,isBuffer:function(K){return K!==null&&!ee(K)&&K.constructor!==null&&!ee(K.constructor)&&ie(K.constructor.isBuffer)&&K.constructor.isBuffer(K)},isFormData:K=>{let oe;return K&&(typeof FormData=="function"&&K instanceof FormData||ie(K.append)&&((oe=M(K))==="formdata"||oe==="object"&&ie(K.toString)&&K.toString()==="[object FormData]"))},isArrayBufferView:function(K){let oe;return oe=typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(K):K&&K.buffer&&Y(K.buffer),oe},isString:te,isNumber:ye,isBoolean:K=>K===!0||K===!1,isObject:re,isPlainObject:de,isUndefined:ee,isDate:se,isFile:ue,isBlob:he,isRegExp:Mt,isFunction:ie,isStream:K=>re(K)&&ie(K.pipe),isURLSearchParams:fe,isTypedArray:De,isFileList:we,forEach:me,merge:function K(){const{caseless:oe}=Pe(this)&&this||{},pe={},be=(Te,xe)=>{const Ie=oe&&Re(pe,xe)||xe;de(pe[Ie])&&de(Te)?pe[Ie]=K(pe[Ie],Te):de(Te)?pe[Ie]=K({},Te):Q(Te)?pe[Ie]=Te.slice():pe[Ie]=Te};for(let Te=0,xe=arguments.length;Te<xe;Te++)arguments[Te]&&me(arguments[Te],be);return pe},extend:(K,oe,pe,{allOwnKeys:be}={})=>(me(oe,(Te,xe)=>{pe&&ie(Te)?K[xe]=c(Te,pe):K[xe]=Te},{allOwnKeys:be}),K),trim:K=>K.trim?K.trim():K.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:K=>(K.charCodeAt(0)===65279&&(K=K.slice(1)),K),inherits:(K,oe,pe,be)=>{K.prototype=Object.create(oe.prototype,be),K.prototype.constructor=K,Object.defineProperty(K,"super",{value:oe.prototype}),pe&&Object.assign(K.prototype,pe)},toFlatObject:(K,oe,pe,be)=>{let Te,xe,Ie;const Fe={};if(oe=oe||{},K==null)return oe;do{for(Te=Object.getOwnPropertyNames(K),xe=Te.length;xe-- >0;)Ie=Te[xe],be&&!be(Ie,K,oe)||Fe[Ie]||(oe[Ie]=K[Ie],Fe[Ie]=!0);K=pe!==!1&&C(K)}while(K&&(!pe||pe(K,oe))&&K!==Object.prototype);return oe},kindOf:M,kindOfTest:J,endsWith:(K,oe,pe)=>{K=String(K),(pe===void 0||pe>K.length)&&(pe=K.length),pe-=oe.length;const be=K.indexOf(oe,pe);return be!==-1&&be===pe},toArray:K=>{if(!K)return null;if(Q(K))return K;let oe=K.length;if(!ye(oe))return null;const pe=new Array(oe);for(;oe-- >0;)pe[oe]=K[oe];return pe},forEachEntry:(K,oe)=>{const pe=(K&&K[Symbol.iterator]).call(K);let be;for(;(be=pe.next())&&!be.done;){const Te=be.value;oe.call(K,Te[0],Te[1])}},matchAll:(K,oe)=>{let pe;const be=[];for(;(pe=K.exec(oe))!==null;)be.push(pe);return be},isHTMLForm:_t,hasOwnProperty:St,hasOwnProp:St,reduceDescriptors:At,freezeMethods:K=>{At(K,(oe,pe)=>{if(ie(K)&&["arguments","caller","callee"].indexOf(pe)!==-1)return!1;const be=K[pe];ie(be)&&(oe.enumerable=!1,"writable"in oe?oe.writable=!1:oe.set||(oe.set=()=>{throw Error("Can not rewrite read-only method '"+pe+"'")}))})},toObjectSet:(K,oe)=>{const pe={},be=Te=>{Te.forEach(xe=>{pe[xe]=!0})};return Q(K)?be(K):be(String(K).split(oe)),pe},toCamelCase:K=>K.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(oe,pe,be){return pe.toUpperCase()+be}),noop:()=>{},toFiniteNumber:(K,oe)=>(K=+K,Number.isFinite(K)?K:oe),findKey:Re,global:Ue,isContextDefined:Pe,ALPHABET:Lt,generateString:(K=16,oe=Lt.ALPHA_DIGIT)=>{let pe="";const{length:be}=oe;for(;K--;)pe+=oe[Math.random()*be|0];return pe},isSpecCompliantForm:function(K){return!!(K&&ie(K.append)&&K[Symbol.toStringTag]==="FormData"&&K[Symbol.iterator])},toJSONObject:K=>{const oe=new Array(10),pe=(be,Te)=>{if(re(be)){if(oe.indexOf(be)>=0)return;if(!("toJSON"in be)){oe[Te]=be;const xe=Q(be)?[]:{};return me(be,(Ie,Fe)=>{const ze=pe(Ie,Te+1);!ee(ze)&&(xe[Fe]=ze)}),oe[Te]=void 0,xe}}return be};return pe(K,0)},isAsyncFn:gt,isThenable:K=>K&&(re(K)||ie(K))&&ie(K.then)&&ie(K.catch)};function Ye(K,oe,pe,be,Te){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=K,this.name="AxiosError",oe&&(this.code=oe),pe&&(this.config=pe),be&&(this.request=be),Te&&(this.response=Te)}Ae.inherits(Ye,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ae.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const qt=Ye.prototype,Ot={};function Ke(K){return Ae.isPlainObject(K)||Ae.isArray(K)}function Ve(K){return Ae.endsWith(K,"[]")?K.slice(0,-2):K}function Xe(K,oe,pe){return K?K.concat(oe).map(function(be,Te){return be=Ve(be),!pe&&Te?"["+be+"]":be}).join(pe?".":""):oe}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(K=>{Ot[K]={value:K}}),Object.defineProperties(Ye,Ot),Object.defineProperty(qt,"isAxiosError",{value:!0}),Ye.from=(K,oe,pe,be,Te,xe)=>{const Ie=Object.create(qt);return Ae.toFlatObject(K,Ie,function(Fe){return Fe!==Error.prototype},Fe=>Fe!=="isAxiosError"),Ye.call(Ie,K.message,oe,pe,be,Te),Ie.cause=K,Ie.name=K.name,xe&&Object.assign(Ie,xe),Ie};const et=Ae.toFlatObject(Ae,{},null,function(K){return/^is[A-Z]/.test(K)});function ut(K,oe,pe){if(!Ae.isObject(K))throw new TypeError("target must be an object");oe=oe||new FormData;const be=(pe=Ae.toFlatObject(pe,{metaTokens:!0,dots:!1,indexes:!1},!1,function(We,ft){return!Ae.isUndefined(ft[We])})).metaTokens,Te=pe.visitor||He,xe=pe.dots,Ie=pe.indexes,Fe=(pe.Blob||typeof Blob<"u"&&Blob)&&Ae.isSpecCompliantForm(oe);if(!Ae.isFunction(Te))throw new TypeError("visitor must be a function");function ze(We){if(We===null)return"";if(Ae.isDate(We))return We.toISOString();if(!Fe&&Ae.isBlob(We))throw new Ye("Blob is not supported. Use a Buffer instead.");return Ae.isArrayBuffer(We)||Ae.isTypedArray(We)?Fe&&typeof Blob=="function"?new Blob([We]):Buffer.from(We):We}function He(We,ft,Je){let bt=We;if(We&&!Je&&typeof We=="object"){if(Ae.endsWith(ft,"{}"))ft=be?ft:ft.slice(0,-2),We=JSON.stringify(We);else if(Ae.isArray(We)&&function(Bt){return Ae.isArray(Bt)&&!Bt.some(Ke)}(We)||(Ae.isFileList(We)||Ae.endsWith(ft,"[]"))&&(bt=Ae.toArray(We)))return ft=Ve(ft),bt.forEach(function(Bt,Yt){!Ae.isUndefined(Bt)&&Bt!==null&&oe.append(Ie===!0?Xe([ft],Yt,xe):Ie===null?ft:ft+"[]",ze(Bt))}),!1}return!!Ke(We)||(oe.append(Xe(Je,ft,xe),ze(We)),!1)}const Me=[],rt=Object.assign(et,{defaultVisitor:He,convertValue:ze,isVisitable:Ke});if(!Ae.isObject(K))throw new TypeError("data must be an object");return function We(ft,Je){if(!Ae.isUndefined(ft)){if(Me.indexOf(ft)!==-1)throw Error("Circular reference detected in "+Je.join("."));Me.push(ft),Ae.forEach(ft,function(bt,Bt){(!(Ae.isUndefined(bt)||bt===null)&&Te.call(oe,bt,Ae.isString(Bt)?Bt.trim():Bt,Je,rt))===!0&&We(bt,Je?Je.concat(Bt):[Bt])}),Me.pop()}}(K),oe}function Tt(K){const oe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(K).replace(/[!'()~]|%20|%00/g,function(pe){return oe[pe]})}function Ct(K,oe){this._pairs=[],K&&ut(K,this,oe)}const Dt=Ct.prototype;function Ht(K){return encodeURIComponent(K).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ft(K,oe,pe){if(!oe)return K;const be=pe&&pe.encode||Ht,Te=pe&&pe.serialize;let xe;if(xe=Te?Te(oe,pe):Ae.isURLSearchParams(oe)?oe.toString():new Ct(oe,pe).toString(be),xe){const Ie=K.indexOf("#");Ie!==-1&&(K=K.slice(0,Ie)),K+=(K.indexOf("?")===-1?"?":"&")+xe}return K}Dt.append=function(K,oe){this._pairs.push([K,oe])},Dt.toString=function(K){const oe=K?function(pe){return K.call(this,pe,Tt)}:Tt;return this._pairs.map(function(pe){return oe(pe[0])+"="+oe(pe[1])},"").join("&")};var rn=class{constructor(){this.handlers=[]}use(K,oe,pe){return this.handlers.push({fulfilled:K,rejected:oe,synchronous:!!pe&&pe.synchronous,runWhen:pe?pe.runWhen:null}),this.handlers.length-1}eject(K){this.handlers[K]&&(this.handlers[K]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(K){Ae.forEach(this.handlers,function(oe){oe!==null&&K(oe)})}},Zt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Gt={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Ct,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]};const Ut=typeof window<"u"&&typeof document<"u",jt=(dn=typeof navigator<"u"&&navigator.product,Ut&&["ReactNative","NativeScript","NS"].indexOf(dn)<0);var dn;const Kt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function";var zt={...Object.freeze({__proto__:null,hasBrowserEnv:Ut,hasStandardBrowserWebWorkerEnv:Kt,hasStandardBrowserEnv:jt}),...Gt};function X(K){function oe(pe,be,Te,xe){let Ie=pe[xe++];const Fe=Number.isFinite(+Ie),ze=xe>=pe.length;return Ie=!Ie&&Ae.isArray(Te)?Te.length:Ie,ze?(Ae.hasOwnProp(Te,Ie)?Te[Ie]=[Te[Ie],be]:Te[Ie]=be,!Fe):(Te[Ie]&&Ae.isObject(Te[Ie])||(Te[Ie]=[]),oe(pe,be,Te[Ie],xe)&&Ae.isArray(Te[Ie])&&(Te[Ie]=function(He){const Me={},rt=Object.keys(He);let We;const ft=rt.length;let Je;for(We=0;We<ft;We++)Je=rt[We],Me[Je]=He[Je];return Me}(Te[Ie])),!Fe)}if(Ae.isFormData(K)&&Ae.isFunction(K.entries)){const pe={};return Ae.forEachEntry(K,(be,Te)=>{oe(function(xe){return Ae.matchAll(/\w+|\[(\w*)]/g,xe).map(Ie=>Ie[0]==="[]"?"":Ie[1]||Ie[0])}(be),Te,pe,0)}),pe}return null}const F={transitional:Zt,adapter:["xhr","http"],transformRequest:[function(K,oe){const pe=oe.getContentType()||"",be=pe.indexOf("application/json")>-1,Te=Ae.isObject(K);if(Te&&Ae.isHTMLForm(K)&&(K=new FormData(K)),Ae.isFormData(K))return be&&be?JSON.stringify(X(K)):K;if(Ae.isArrayBuffer(K)||Ae.isBuffer(K)||Ae.isStream(K)||Ae.isFile(K)||Ae.isBlob(K))return K;if(Ae.isArrayBufferView(K))return K.buffer;if(Ae.isURLSearchParams(K))return oe.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),K.toString();let xe;if(Te){if(pe.indexOf("application/x-www-form-urlencoded")>-1)return function(Ie,Fe){return ut(Ie,new zt.classes.URLSearchParams,Object.assign({visitor:function(ze,He,Me,rt){return zt.isNode&&Ae.isBuffer(ze)?(this.append(He,ze.toString("base64")),!1):rt.defaultVisitor.apply(this,arguments)}},Fe))}(K,this.formSerializer).toString();if((xe=Ae.isFileList(K))||pe.indexOf("multipart/form-data")>-1){const Ie=this.env&&this.env.FormData;return ut(xe?{"files[]":K}:K,Ie&&new Ie,this.formSerializer)}}return Te||be?(oe.setContentType("application/json",!1),function(Ie,Fe,ze){if(Ae.isString(Ie))try{return(0,JSON.parse)(Ie),Ae.trim(Ie)}catch(He){if(He.name!=="SyntaxError")throw He}return(0,JSON.stringify)(Ie)}(K)):K}],transformResponse:[function(K){const oe=this.transitional||F.transitional,pe=oe&&oe.forcedJSONParsing,be=this.responseType==="json";if(K&&Ae.isString(K)&&(pe&&!this.responseType||be)){const Te=!(oe&&oe.silentJSONParsing)&&be;try{return JSON.parse(K)}catch(xe){if(Te)throw xe.name==="SyntaxError"?Ye.from(xe,Ye.ERR_BAD_RESPONSE,this,null,this.response):xe}}return K}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:zt.classes.FormData,Blob:zt.classes.Blob},validateStatus:function(K){return K>=200&&K<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ae.forEach(["delete","get","head","post","put","patch"],K=>{F.headers[K]={}});var j=F;const ae=Ae.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ve=Symbol("internals");function Ee(K){return K&&String(K).trim().toLowerCase()}function Ce(K){return K===!1||K==null?K:Ae.isArray(K)?K.map(Ce):String(K)}function tt(K,oe,pe,be,Te){return Ae.isFunction(be)?be.call(this,oe,pe):(Te&&(oe=pe),Ae.isString(oe)?Ae.isString(be)?oe.indexOf(be)!==-1:Ae.isRegExp(be)?be.test(oe):void 0:void 0)}class mt{constructor(oe){oe&&this.set(oe)}set(oe,pe,be){const Te=this;function xe(Fe,ze,He){const Me=Ee(ze);if(!Me)throw new Error("header name must be a non-empty string");const rt=Ae.findKey(Te,Me);(!rt||Te[rt]===void 0||He===!0||He===void 0&&Te[rt]!==!1)&&(Te[rt||ze]=Ce(Fe))}const Ie=(Fe,ze)=>Ae.forEach(Fe,(He,Me)=>xe(He,Me,ze));return Ae.isPlainObject(oe)||oe instanceof this.constructor?Ie(oe,pe):Ae.isString(oe)&&(oe=oe.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(oe.trim())?Ie((Fe=>{const ze={};let He,Me,rt;return Fe&&Fe.split(`
|
|
4
|
-
`).forEach(function(We){rt=We.indexOf(":"),He=We.substring(0,rt).trim().toLowerCase(),Me=We.substring(rt+1).trim(),!He||ze[He]&&ae[He]||(He==="set-cookie"?ze[He]?ze[He].push(Me):ze[He]=[Me]:ze[He]=ze[He]?ze[He]+", "+Me:Me)}),ze})(oe),pe):oe!=null&&xe(pe,oe,be),this}get(oe,pe){if(oe=Ee(oe)){const be=Ae.findKey(this,oe);if(be){const Te=this[be];if(!pe)return Te;if(pe===!0)return function(xe){const Ie=Object.create(null),Fe=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let ze;for(;ze=Fe.exec(xe);)Ie[ze[1]]=ze[2];return Ie}(Te);if(Ae.isFunction(pe))return pe.call(this,Te,be);if(Ae.isRegExp(pe))return pe.exec(Te);throw new TypeError("parser must be boolean|regexp|function")}}}has(oe,pe){if(oe=Ee(oe)){const be=Ae.findKey(this,oe);return!(!be||this[be]===void 0||pe&&!tt(0,this[be],be,pe))}return!1}delete(oe,pe){const be=this;let Te=!1;function xe(Ie){if(Ie=Ee(Ie)){const Fe=Ae.findKey(be,Ie);!Fe||pe&&!tt(0,be[Fe],Fe,pe)||(delete be[Fe],Te=!0)}}return Ae.isArray(oe)?oe.forEach(xe):xe(oe),Te}clear(oe){const pe=Object.keys(this);let be=pe.length,Te=!1;for(;be--;){const xe=pe[be];oe&&!tt(0,this[xe],xe,oe,!0)||(delete this[xe],Te=!0)}return Te}normalize(oe){const pe=this,be={};return Ae.forEach(this,(Te,xe)=>{const Ie=Ae.findKey(be,xe);if(Ie)return pe[Ie]=Ce(Te),void delete pe[xe];const Fe=oe?function(ze){return ze.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(He,Me,rt)=>Me.toUpperCase()+rt)}(xe):String(xe).trim();Fe!==xe&&delete pe[xe],pe[Fe]=Ce(Te),be[Fe]=!0}),this}concat(...oe){return this.constructor.concat(this,...oe)}toJSON(oe){const pe=Object.create(null);return Ae.forEach(this,(be,Te)=>{be!=null&&be!==!1&&(pe[Te]=oe&&Ae.isArray(be)?be.join(", "):be)}),pe}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([oe,pe])=>oe+": "+pe).join(`
|
|
5
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(oe){return oe instanceof this?oe:new this(oe)}static concat(oe,...pe){const be=new this(oe);return pe.forEach(Te=>be.set(Te)),be}static accessor(oe){const pe=(this[ve]=this[ve]={accessors:{}}).accessors,be=this.prototype;function Te(xe){const Ie=Ee(xe);pe[Ie]||(function(Fe,ze){const He=Ae.toCamelCase(" "+ze);["get","set","has"].forEach(Me=>{Object.defineProperty(Fe,Me+He,{value:function(rt,We,ft){return this[Me].call(this,ze,rt,We,ft)},configurable:!0})})}(be,xe),pe[Ie]=!0)}return Ae.isArray(oe)?oe.forEach(Te):Te(oe),this}}mt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ae.reduceDescriptors(mt.prototype,({value:K},oe)=>{let pe=oe[0].toUpperCase()+oe.slice(1);return{get:()=>K,set(be){this[pe]=be}}}),Ae.freezeMethods(mt);var ot=mt;function wt(K,oe){const pe=this||j,be=oe||pe,Te=ot.from(be.headers);let xe=be.data;return Ae.forEach(K,function(Ie){xe=Ie.call(pe,xe,Te.normalize(),oe?oe.status:void 0)}),Te.normalize(),xe}function yt(K){return!(!K||!K.__CANCEL__)}function on(K,oe,pe){Ye.call(this,K??"canceled",Ye.ERR_CANCELED,oe,pe),this.name="CanceledError"}Ae.inherits(on,Ye,{__CANCEL__:!0});var Zn=zt.hasStandardBrowserEnv?{write(K,oe,pe,be,Te,xe){const Ie=[K+"="+encodeURIComponent(oe)];Ae.isNumber(pe)&&Ie.push("expires="+new Date(pe).toGMTString()),Ae.isString(be)&&Ie.push("path="+be),Ae.isString(Te)&&Ie.push("domain="+Te),xe===!0&&Ie.push("secure"),document.cookie=Ie.join("; ")},read(K){const oe=document.cookie.match(new RegExp("(^|;\\s*)("+K+")=([^;]*)"));return oe?decodeURIComponent(oe[3]):null},remove(K){this.write(K,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Vn(K,oe){return K&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(oe)?function(pe,be){return be?pe.replace(/\/+$/,"")+"/"+be.replace(/^\/+/,""):pe}(K,oe):oe}var ne=zt.hasStandardBrowserEnv?function(){const K=/(msie|trident)/i.test(navigator.userAgent),oe=document.createElement("a");let pe;function be(Te){let xe=Te;return K&&(oe.setAttribute("href",xe),xe=oe.href),oe.setAttribute("href",xe),{href:oe.href,protocol:oe.protocol?oe.protocol.replace(/:$/,""):"",host:oe.host,search:oe.search?oe.search.replace(/^\?/,""):"",hash:oe.hash?oe.hash.replace(/^#/,""):"",hostname:oe.hostname,port:oe.port,pathname:oe.pathname.charAt(0)==="/"?oe.pathname:"/"+oe.pathname}}return pe=be(window.location.href),function(Te){const xe=Ae.isString(Te)?be(Te):Te;return xe.protocol===pe.protocol&&xe.host===pe.host}}():function(){return!0};function ce(K,oe){let pe=0;const be=function(Te,xe){Te=Te||10;const Ie=new Array(Te),Fe=new Array(Te);let ze,He=0,Me=0;return xe=xe!==void 0?xe:1e3,function(rt){const We=Date.now(),ft=Fe[Me];ze||(ze=We),Ie[He]=rt,Fe[He]=We;let Je=Me,bt=0;for(;Je!==He;)bt+=Ie[Je++],Je%=Te;if(He=(He+1)%Te,He===Me&&(Me=(Me+1)%Te),We-ze<xe)return;const Bt=ft&&We-ft;return Bt?Math.round(1e3*bt/Bt):void 0}}(50,250);return Te=>{const xe=Te.loaded,Ie=Te.lengthComputable?Te.total:void 0,Fe=xe-pe,ze=be(Fe);pe=xe;const He={loaded:xe,total:Ie,progress:Ie?xe/Ie:void 0,bytes:Fe,rate:ze||void 0,estimated:ze&&Ie&&xe<=Ie?(Ie-xe)/ze:void 0,event:Te};He[oe?"download":"upload"]=!0,K(He)}}const le={http:null,xhr:typeof XMLHttpRequest<"u"&&function(K){return new Promise(function(oe,pe){let be=K.data;const Te=ot.from(K.headers).normalize();let xe,Ie,{responseType:Fe,withXSRFToken:ze}=K;function He(){K.cancelToken&&K.cancelToken.unsubscribe(xe),K.signal&&K.signal.removeEventListener("abort",xe)}if(Ae.isFormData(be)){if(zt.hasStandardBrowserEnv||zt.hasStandardBrowserWebWorkerEnv)Te.setContentType(!1);else if((Ie=Te.getContentType())!==!1){const[Je,...bt]=Ie?Ie.split(";").map(Bt=>Bt.trim()).filter(Boolean):[];Te.setContentType([Je||"multipart/form-data",...bt].join("; "))}}let Me=new XMLHttpRequest;if(K.auth){const Je=K.auth.username||"",bt=K.auth.password?unescape(encodeURIComponent(K.auth.password)):"";Te.set("Authorization","Basic "+btoa(Je+":"+bt))}const rt=Vn(K.baseURL,K.url);function We(){if(!Me)return;const Je=ot.from("getAllResponseHeaders"in Me&&Me.getAllResponseHeaders());(function(bt,Bt,Yt){const Kn=Yt.config.validateStatus;Yt.status&&Kn&&!Kn(Yt.status)?Bt(new Ye("Request failed with status code "+Yt.status,[Ye.ERR_BAD_REQUEST,Ye.ERR_BAD_RESPONSE][Math.floor(Yt.status/100)-4],Yt.config,Yt.request,Yt)):bt(Yt)})(function(bt){oe(bt),He()},function(bt){pe(bt),He()},{data:Fe&&Fe!=="text"&&Fe!=="json"?Me.response:Me.responseText,status:Me.status,statusText:Me.statusText,headers:Je,config:K,request:Me}),Me=null}if(Me.open(K.method.toUpperCase(),Ft(rt,K.params,K.paramsSerializer),!0),Me.timeout=K.timeout,"onloadend"in Me?Me.onloadend=We:Me.onreadystatechange=function(){Me&&Me.readyState===4&&(Me.status!==0||Me.responseURL&&Me.responseURL.indexOf("file:")===0)&&setTimeout(We)},Me.onabort=function(){Me&&(pe(new Ye("Request aborted",Ye.ECONNABORTED,K,Me)),Me=null)},Me.onerror=function(){pe(new Ye("Network Error",Ye.ERR_NETWORK,K,Me)),Me=null},Me.ontimeout=function(){let Je=K.timeout?"timeout of "+K.timeout+"ms exceeded":"timeout exceeded";const bt=K.transitional||Zt;K.timeoutErrorMessage&&(Je=K.timeoutErrorMessage),pe(new Ye(Je,bt.clarifyTimeoutError?Ye.ETIMEDOUT:Ye.ECONNABORTED,K,Me)),Me=null},zt.hasStandardBrowserEnv&&(ze&&Ae.isFunction(ze)&&(ze=ze(K)),ze||ze!==!1&&ne(rt))){const Je=K.xsrfHeaderName&&K.xsrfCookieName&&Zn.read(K.xsrfCookieName);Je&&Te.set(K.xsrfHeaderName,Je)}be===void 0&&Te.setContentType(null),"setRequestHeader"in Me&&Ae.forEach(Te.toJSON(),function(Je,bt){Me.setRequestHeader(bt,Je)}),Ae.isUndefined(K.withCredentials)||(Me.withCredentials=!!K.withCredentials),Fe&&Fe!=="json"&&(Me.responseType=K.responseType),typeof K.onDownloadProgress=="function"&&Me.addEventListener("progress",ce(K.onDownloadProgress,!0)),typeof K.onUploadProgress=="function"&&Me.upload&&Me.upload.addEventListener("progress",ce(K.onUploadProgress)),(K.cancelToken||K.signal)&&(xe=Je=>{Me&&(pe(!Je||Je.type?new on(null,K,Me):Je),Me.abort(),Me=null)},K.cancelToken&&K.cancelToken.subscribe(xe),K.signal&&(K.signal.aborted?xe():K.signal.addEventListener("abort",xe)));const ft=function(Je){const bt=/^([-+\w]{1,25})(:?\/\/|:)/.exec(Je);return bt&&bt[1]||""}(rt);ft&&zt.protocols.indexOf(ft)===-1?pe(new Ye("Unsupported protocol "+ft+":",Ye.ERR_BAD_REQUEST,K)):Me.send(be||null)})}};Ae.forEach(le,(K,oe)=>{if(K){try{Object.defineProperty(K,"name",{value:oe})}catch{}Object.defineProperty(K,"adapterName",{value:oe})}});const ke=K=>`- ${K}`,ge=K=>Ae.isFunction(K)||K===null||K===!1;var Se=K=>{K=Ae.isArray(K)?K:[K];const{length:oe}=K;let pe,be;const Te={};for(let xe=0;xe<oe;xe++){let Ie;if(pe=K[xe],be=pe,!ge(pe)&&(be=le[(Ie=String(pe)).toLowerCase()],be===void 0))throw new Ye(`Unknown adapter '${Ie}'`);if(be)break;Te[Ie||"#"+xe]=be}if(!be){const xe=Object.entries(Te).map(([Ie,Fe])=>`adapter ${Ie} `+(Fe===!1?"is not supported by the environment":"is not available in the build"));throw new Ye("There is no suitable adapter to dispatch the request "+(oe?xe.length>1?`since :
|
|
6
|
-
`+xe.map(ke).join(`
|
|
7
|
-
`):" "+ke(xe[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return be};function $e(K){if(K.cancelToken&&K.cancelToken.throwIfRequested(),K.signal&&K.signal.aborted)throw new on(null,K)}function Ne(K){return $e(K),K.headers=ot.from(K.headers),K.data=wt.call(K,K.transformRequest),["post","put","patch"].indexOf(K.method)!==-1&&K.headers.setContentType("application/x-www-form-urlencoded",!1),Se(K.adapter||j.adapter)(K).then(function(oe){return $e(K),oe.data=wt.call(K,K.transformResponse,oe),oe.headers=ot.from(oe.headers),oe},function(oe){return yt(oe)||($e(K),oe&&oe.response&&(oe.response.data=wt.call(K,K.transformResponse,oe.response),oe.response.headers=ot.from(oe.response.headers))),Promise.reject(oe)})}const qe=K=>K instanceof ot?K.toJSON():K;function Be(K,oe){oe=oe||{};const pe={};function be(He,Me,rt){return Ae.isPlainObject(He)&&Ae.isPlainObject(Me)?Ae.merge.call({caseless:rt},He,Me):Ae.isPlainObject(Me)?Ae.merge({},Me):Ae.isArray(Me)?Me.slice():Me}function Te(He,Me,rt){return Ae.isUndefined(Me)?Ae.isUndefined(He)?void 0:be(void 0,He,rt):be(He,Me,rt)}function xe(He,Me){if(!Ae.isUndefined(Me))return be(void 0,Me)}function Ie(He,Me){return Ae.isUndefined(Me)?Ae.isUndefined(He)?void 0:be(void 0,He):be(void 0,Me)}function Fe(He,Me,rt){return rt in oe?be(He,Me):rt in K?be(void 0,He):void 0}const ze={url:xe,method:xe,data:xe,baseURL:Ie,transformRequest:Ie,transformResponse:Ie,paramsSerializer:Ie,timeout:Ie,timeoutMessage:Ie,withCredentials:Ie,withXSRFToken:Ie,adapter:Ie,responseType:Ie,xsrfCookieName:Ie,xsrfHeaderName:Ie,onUploadProgress:Ie,onDownloadProgress:Ie,decompress:Ie,maxContentLength:Ie,maxBodyLength:Ie,beforeRedirect:Ie,transport:Ie,httpAgent:Ie,httpsAgent:Ie,cancelToken:Ie,socketPath:Ie,responseEncoding:Ie,validateStatus:Fe,headers:(He,Me)=>Te(qe(He),qe(Me),!0)};return Ae.forEach(Object.keys(Object.assign({},K,oe)),function(He){const Me=ze[He]||Te,rt=Me(K[He],oe[He],He);Ae.isUndefined(rt)&&Me!==Fe||(pe[He]=rt)}),pe}const Le={};["object","boolean","number","function","string","symbol"].forEach((K,oe)=>{Le[K]=function(pe){return typeof pe===K||"a"+(oe<1?"n ":" ")+K}});const je={};Le.transitional=function(K,oe,pe){function be(Te,xe){return"[Axios v1.6.2] Transitional option '"+Te+"'"+xe+(pe?". "+pe:"")}return(Te,xe,Ie)=>{if(K===!1)throw new Ye(be(xe," has been removed"+(oe?" in "+oe:"")),Ye.ERR_DEPRECATED);return oe&&!je[xe]&&(je[xe]=!0,console.warn(be(xe," has been deprecated since v"+oe+" and will be removed in the near future"))),!K||K(Te,xe,Ie)}};var Ze={assertOptions:function(K,oe,pe){if(typeof K!="object")throw new Ye("options must be an object",Ye.ERR_BAD_OPTION_VALUE);const be=Object.keys(K);let Te=be.length;for(;Te-- >0;){const xe=be[Te],Ie=oe[xe];if(Ie){const Fe=K[xe],ze=Fe===void 0||Ie(Fe,xe,K);if(ze!==!0)throw new Ye("option "+xe+" must be "+ze,Ye.ERR_BAD_OPTION_VALUE)}else if(pe!==!0)throw new Ye("Unknown option "+xe,Ye.ERR_BAD_OPTION)}},validators:Le};const nt=Ze.validators;class at{constructor(oe){this.defaults=oe,this.interceptors={request:new rn,response:new rn}}request(oe,pe){typeof oe=="string"?(pe=pe||{}).url=oe:pe=oe||{},pe=Be(this.defaults,pe);const{transitional:be,paramsSerializer:Te,headers:xe}=pe;be!==void 0&&Ze.assertOptions(be,{silentJSONParsing:nt.transitional(nt.boolean),forcedJSONParsing:nt.transitional(nt.boolean),clarifyTimeoutError:nt.transitional(nt.boolean)},!1),Te!=null&&(Ae.isFunction(Te)?pe.paramsSerializer={serialize:Te}:Ze.assertOptions(Te,{encode:nt.function,serialize:nt.function},!0)),pe.method=(pe.method||this.defaults.method||"get").toLowerCase();let Ie=xe&&Ae.merge(xe.common,xe[pe.method]);xe&&Ae.forEach(["delete","get","head","post","put","patch","common"],Je=>{delete xe[Je]}),pe.headers=ot.concat(Ie,xe);const Fe=[];let ze=!0;this.interceptors.request.forEach(function(Je){typeof Je.runWhen=="function"&&Je.runWhen(pe)===!1||(ze=ze&&Je.synchronous,Fe.unshift(Je.fulfilled,Je.rejected))});const He=[];let Me;this.interceptors.response.forEach(function(Je){He.push(Je.fulfilled,Je.rejected)});let rt,We=0;if(!ze){const Je=[Ne.bind(this),void 0];for(Je.unshift.apply(Je,Fe),Je.push.apply(Je,He),rt=Je.length,Me=Promise.resolve(pe);We<rt;)Me=Me.then(Je[We++],Je[We++]);return Me}rt=Fe.length;let ft=pe;for(We=0;We<rt;){const Je=Fe[We++],bt=Fe[We++];try{ft=Je(ft)}catch(Bt){bt.call(this,Bt);break}}try{Me=Ne.call(this,ft)}catch(Je){return Promise.reject(Je)}for(We=0,rt=He.length;We<rt;)Me=Me.then(He[We++],He[We++]);return Me}getUri(oe){return Ft(Vn((oe=Be(this.defaults,oe)).baseURL,oe.url),oe.params,oe.paramsSerializer)}}Ae.forEach(["delete","get","head","options"],function(K){at.prototype[K]=function(oe,pe){return this.request(Be(pe||{},{method:K,url:oe,data:(pe||{}).data}))}}),Ae.forEach(["post","put","patch"],function(K){function oe(pe){return function(be,Te,xe){return this.request(Be(xe||{},{method:K,headers:pe?{"Content-Type":"multipart/form-data"}:{},url:be,data:Te}))}}at.prototype[K]=oe(),at.prototype[K+"Form"]=oe(!0)});var It=at;class Qt{constructor(oe){if(typeof oe!="function")throw new TypeError("executor must be a function.");let pe;this.promise=new Promise(function(Te){pe=Te});const be=this;this.promise.then(Te=>{if(!be._listeners)return;let xe=be._listeners.length;for(;xe-- >0;)be._listeners[xe](Te);be._listeners=null}),this.promise.then=Te=>{let xe;const Ie=new Promise(Fe=>{be.subscribe(Fe),xe=Fe}).then(Te);return Ie.cancel=function(){be.unsubscribe(xe)},Ie},oe(function(Te,xe,Ie){be.reason||(be.reason=new on(Te,xe,Ie),pe(be.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(oe){this.reason?oe(this.reason):this._listeners?this._listeners.push(oe):this._listeners=[oe]}unsubscribe(oe){if(!this._listeners)return;const pe=this._listeners.indexOf(oe);pe!==-1&&this._listeners.splice(pe,1)}static source(){let oe;return{token:new Qt(function(pe){oe=pe}),cancel:oe}}}var hn=Qt;const xn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(xn).forEach(([K,oe])=>{xn[oe]=K});var Gn=xn;const Et=function K(oe){const pe=new It(oe),be=c(It.prototype.request,pe);return Ae.extend(be,It.prototype,pe,{allOwnKeys:!0}),Ae.extend(be,pe,null,{allOwnKeys:!0}),be.create=function(Te){return K(Be(oe,Te))},be}(j);Et.Axios=It,Et.CanceledError=on,Et.CancelToken=hn,Et.isCancel=yt,Et.VERSION="1.6.2",Et.toFormData=ut,Et.AxiosError=Ye,Et.Cancel=Et.CanceledError,Et.all=function(K){return Promise.all(K)},Et.spread=function(K){return function(oe){return K.apply(null,oe)}},Et.isAxiosError=function(K){return Ae.isObject(K)&&K.isAxiosError===!0},Et.mergeConfig=Be,Et.AxiosHeaders=ot,Et.formToJSON=K=>X(Ae.isHTMLForm(K)?new FormData(K):K),Et.getAdapter=Se,Et.HttpStatusCode=Gn,Et.default=Et,f.exports=Et},147:f=>{f.exports=JSON.parse('{"name":"@pikaz/location","version":"1.0.9","description":"used to obtain location from the browser","private":false,"main":"lib/pikazLocation.js","module":"lib/pikazLocationModule.js","scripts":{"compress":"node utils/compress.js","analysisip":"node utils/analysisIp.js","build":"webpack && webpack --config module.config.js"},"keywords":["geolocation","location","longitude","latitude","province","city","district"],"files":["lib"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/pikaz-18/pikaz-location.git"},"author":"pikaz","license":"MIT","bugs":{"url":"https://github.com/pikaz-18/pikaz-location/issues"},"homepage":"https://github.com/pikaz-18/pikaz-location#readme","devDependencies":{"clean-webpack-plugin":"^4.0.0","copy-webpack-plugin":"^10.2.0","object-hash":"^3.0.0","webpack":"^5.65.0","webpack-cli":"^4.9.1"},"dependencies":{"axios":"^1.6.2","localforage":"^1.10.0","lz-string":"^1.4.4","point-in-polygon":"^1.1.0"},"fileDate":{"areaList":"202212301139","city":"202212301139","district":"202212301139","ip":"2024532110","province":"202317042"},"fileCode":{"areaList":"64b5a33f94b14ae208fca152fdc89dca1048360a","city":"7827eb2bc906b83df109ab24242ce68f98f9558b","district":"14d77ce6236e2025a4b1e3900cc70d0c32a62d0b","ip":"befa0a8a45fdc238a0fb4e4a3011dae43a06c1b4","province":"629a3c20a32e0de95e0633e0385234e2b7886c2d"}}')}},I={};function D(f){var k=I[f];if(k!==void 0)return k.exports;var i=I[f]={exports:{}};return N[f](i,i.exports,D),i.exports}return D.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),D(138)})()}},t$1={};function n$1(O){var N=t$1[O];if(N!==void 0)return N.exports;var I=t$1[O]={exports:{}};return e$2[O].call(I.exports,I,I.exports,n$1),I.exports}n$1.n=O=>{var N=O&&O.__esModule?()=>O.default:()=>O;return n$1.d(N,{a:N}),N},n$1.d=(O,N)=>{for(var I in N)n$1.o(N,I)&&!n$1.o(O,I)&&Object.defineProperty(O,I,{enumerable:!0,get:N[I]})},n$1.o=(O,N)=>Object.prototype.hasOwnProperty.call(O,N);var r={};(()=>{n$1.d(r,{v6:()=>O.setConfig,k$:()=>O.getLocation,SG:()=>O.getH5Location,Qf:()=>O.getIpLocation,Mc:()=>O.searchList,kr:()=>O.searchCodeAddress,Gp:()=>O.searchAddress,I5:()=>O.searchCodeDetail,ZP:()=>N});var O=n$1(782);const N={setConfig:O.setConfig,getLocation:O.getLocation,getH5Location:O.getH5Location,getIpLocation:O.getIpLocation,searchList:O.searchList,searchCodeAddress:O.searchCodeAddress,searchAddress:O.searchAddress,searchCodeDetail:O.searchCodeDetail}})(),r.ZP,r.SG,r.Qf,r.k$,r.Gp,r.kr,r.I5,r.Mc,r.v6;const createMutedAudioStream=O=>{const N=O.createOscillator();N.type="sine",N.frequency.setValueAtTime(0,O.currentTime);const I=O.createGain();I.gain.value=0,N.connect(I),I.connect(O.destination),N.start();const D=O.createMediaStreamDestination();return I.disconnect(),N.connect(D),D.stream},createFakeVideoStream=(O=10,N=10,I=30)=>{const D=document.createElement("canvas"),f=D.getContext("2d");D.width=O,D.height=N;let k=0;return setInterval(()=>{f.clearRect(0,0,D.width,D.height);const $=f.createLinearGradient(0,0,D.width,D.height);$.addColorStop(0,`hsla(${k}, 100%, 50%, 0)`),$.addColorStop(1,`hsla(${k+120}, 100%, 50%, 0)`),f.fillStyle=$,f.fillRect(0,0,D.width,D.height),k=(k+1)%360},100),D.captureStream(I)};class NetworkQualityTester{constructor(N=[]){_e(this,"targetUrls",[]);_e(this,"results",[]);N.length===0&&N.push("https://api.pryun.vip/favicon-32x32.png"),this.targetUrls=N,this.results=[]}async testAll(){const N=this.targetUrls.map(I=>this.testUrl(I));return await Promise.all(N),this.analyzeResults()}async testUrl(N){const I=performance.now();let D=0,f=!1;try{await fetch(N,{method:"HEAD",cache:"no-store"});const k=performance.now()-I,i=performance.now(),$=await(await fetch(N,{cache:"no-store"})).blob(),C=performance.now()-i;D=$.size,f=!0,this.results.push({url:N,success:f,headTime:k,getTime:C,size:D,downloadSpeed:D>0?(D/1024/(C/1e3)).toFixed(2):0,totalTime:performance.now()-I})}catch(k){this.results.push({url:N,success:!1,error:k.message,totalTime:performance.now()-I})}}analyzeResults(){const N=this.results.filter(k=>k.success);if(N.length===0)return{overallSuccess:!1,message:"所有测试均失败"};const I=N.reduce((k,i)=>k+i.size,0),D=N.reduce((k,i)=>k+i.totalTime,0),f=N.reduce((k,i)=>k+parseFloat(i.downloadSpeed),0)/N.length;return{overallSuccess:!0,totalTests:this.results.length,successfulTests:N.length,averageDownloadSpeed:`${f.toFixed(2)} KB/s`,averageResponseTime:`${(D/N.length).toFixed(2)}ms`,totalDataTransferred:`${(I/1024).toFixed(2)} KB`,detailedResults:this.results}}}var lib={},ebml={},EBML={},hasRequiredEBML;function requireEBML(){return hasRequiredEBML||(hasRequiredEBML=1,Object.defineProperty(EBML,"__esModule",{value:!0})),EBML}var EBMLDecoder={},int64Buffer={},hasRequiredInt64Buffer;function requireInt64Buffer(){return hasRequiredInt64Buffer||(hasRequiredInt64Buffer=1,function(O){(function(N){var I="undefined",D=I!==typeof Buffer&&Buffer,f=I!==typeof Uint8Array&&Uint8Array,k=I!==typeof ArrayBuffer&&ArrayBuffer,i=[0,0,0,0,0,0,0,0],c=Array.isArray||se,$=4294967296,C=16777216,M;Z("Uint64BE",!0,!0),Z("Int64BE",!0,!1),Z("Uint64LE",!1,!0),Z("Int64LE",!1,!1);function Z(ue,he,we){var fe=he?0:4,me=he?4:0,Re=he?0:3,Ue=he?1:2,Pe=he?2:1,De=he?3:0,vt=he?ie:re,_t=he?ye:de,St=ct.prototype,Mt="is"+ue,At="_"+Mt;return St.buffer=void 0,St.offset=0,St[At]=!0,St.toNumber=Ae,St.toString=Ye,St.toJSON=Ae,St.toArray=J,D&&(St.toBuffer=z),f&&(St.toArrayBuffer=Q),ct[Mt]=Qe,N[ue]=ct,ct;function ct(Ke,Ve,Xe,et){return this instanceof ct?Lt(this,Ke,Ve,Xe,et):new ct(Ke,Ve,Xe,et)}function Qe(Ke){return!!(Ke&&Ke[At])}function Lt(Ke,Ve,Xe,et,ut){if(f&&k&&(Ve instanceof k&&(Ve=new f(Ve)),et instanceof k&&(et=new f(et))),!Ve&&!Xe&&!et&&!M){Ke.buffer=te(i,0);return}if(!ee(Ve,Xe)){var Tt=M||Array;ut=Xe,et=Ve,Xe=0,Ve=M===D?D.alloc(8):new Tt(8)}Ke.buffer=Ve,Ke.offset=Xe|=0,I!==typeof et&&(typeof et=="string"?gt(Ve,Xe,et,ut||10):ee(et,ut)?Y(Ve,Xe,et,ut):typeof ut=="number"?(qt(Ve,Xe+fe,et),qt(Ve,Xe+me,ut)):et>0?vt(Ve,Xe,et):et<0?_t(Ve,Xe,et):Y(Ve,Xe,i,0))}function gt(Ke,Ve,Xe,et){var ut=0,Tt=Xe.length,Ct=0,Dt=0;Xe[0]==="-"&&ut++;for(var Ht=ut;ut<Tt;){var Ft=parseInt(Xe[ut++],et);if(!(Ft>=0))break;Dt=Dt*et+Ft,Ct=Ct*et+Math.floor(Dt/$),Dt%=$}Ht&&(Ct=~Ct,Dt?Dt=$-Dt:Ct++),qt(Ke,Ve+fe,Ct),qt(Ke,Ve+me,Dt)}function Ae(){var Ke=this.buffer,Ve=this.offset,Xe=Ot(Ke,Ve+fe),et=Ot(Ke,Ve+me);return we||(Xe|=0),Xe?Xe*$+et:et}function Ye(Ke){var Ve=this.buffer,Xe=this.offset,et=Ot(Ve,Xe+fe),ut=Ot(Ve,Xe+me),Tt="",Ct=!we&&et&2147483648;for(Ct&&(et=~et,ut=$-ut),Ke=Ke||10;;){var Dt=et%Ke*$+ut;if(et=Math.floor(et/Ke),ut=Math.floor(Dt/Ke),Tt=(Dt%Ke).toString(Ke)+Tt,!et&&!ut)break}return Ct&&(Tt="-"+Tt),Tt}function qt(Ke,Ve,Xe){Ke[Ve+De]=Xe&255,Xe=Xe>>8,Ke[Ve+Pe]=Xe&255,Xe=Xe>>8,Ke[Ve+Ue]=Xe&255,Xe=Xe>>8,Ke[Ve+Re]=Xe&255}function Ot(Ke,Ve){return Ke[Ve+Re]*C+(Ke[Ve+Ue]<<16)+(Ke[Ve+Pe]<<8)+Ke[Ve+De]}}function J(ue){var he=this.buffer,we=this.offset;return M=null,ue!==!1&&c(he)?he.length===8?he:he.slice(we,we+8):te(he,we)}function z(ue){var he=this.buffer,we=this.offset;return M=D,ue!==!1&&D.isBuffer(he)?he.length===8?he:he.slice(we,we+8):D.from(Q.call(this,ue))}function Q(ue){var he=this.buffer,we=this.offset,fe=he.buffer;if(M=f,ue!==!1&&!he.offset&&fe instanceof k)return fe.byteLength===8?fe:fe.slice(we,we+8);var me=new f(8);return Y(me,0,he,we),me.buffer}function ee(ue,he){var we=ue&&ue.length;return he|=0,we&&he+8<=we&&typeof ue[he]!="string"}function Y(ue,he,we,fe){he|=0,fe|=0;for(var me=0;me<8;me++)ue[he++]=we[fe++]&255}function te(ue,he){return Array.prototype.slice.call(ue,he,he+8)}function ie(ue,he,we){for(var fe=he+8;fe>he;)ue[--fe]=we&255,we/=256}function ye(ue,he,we){var fe=he+8;for(we++;fe>he;)ue[--fe]=-we&255^255,we/=256}function re(ue,he,we){for(var fe=he+8;he<fe;)ue[he++]=we&255,we/=256}function de(ue,he,we){var fe=he+8;for(we++;he<fe;)ue[he++]=-we&255^255,we/=256}function se(ue){return!!ue&&Object.prototype.toString.call(ue)=="[object Array]"}})(typeof O.nodeName!="string"?O:int64Buffer||{})}(int64Buffer)),int64Buffer}var tools={},EBMLEncoder={},ebmlID={},hasRequiredEbmlID;function requireEbmlID(){return hasRequiredEbmlID||(hasRequiredEbmlID=1,Object.defineProperty(ebmlID,"__esModule",{value:!0}),ebmlID.byEbmlID=void 0,ebmlID.byEbmlID={128:{name:"ChapterDisplay",level:4,type:"m",multiple:!0,minver:1,webm:!0,description:"Contains all possible strings to use for the chapter display."},131:{name:"TrackType",level:3,type:"u",mandatory:!0,minver:1,range:"1-254",description:"A set of track types coded on 8 bits (1: video, 2: audio, 3: complex, 0x10: logo, 0x11: subtitle, 0x12: buttons, 0x20: control)."},133:{name:"ChapString",cppname:"ChapterString",level:5,type:"8",mandatory:!0,minver:1,webm:!0,description:"Contains the string to use as the chapter atom."},134:{name:"CodecID",level:3,type:"s",mandatory:!0,minver:1,description:"An ID corresponding to the codec, see the codec page for more info."},136:{name:"FlagDefault",cppname:"TrackFlagDefault",level:3,type:"u",mandatory:!0,minver:1,default:1,range:"0-1",description:"Set if that track (audio, video or subs) SHOULD be active if no language found matches the user preference. (1 bit)"},137:{name:"ChapterTrackNumber",level:5,type:"u",mandatory:!0,multiple:!0,minver:1,webm:!1,range:"not 0",description:"UID of the Track to apply this chapter too. In the absense of a control track, choosing this chapter will select the listed Tracks and deselect unlisted tracks. Absense of this element indicates that the Chapter should be applied to any currently used Tracks."},145:{name:"ChapterTimeStart",level:4,type:"u",mandatory:!0,minver:1,webm:!0,description:"Timestamp of the start of Chapter (not scaled)."},146:{name:"ChapterTimeEnd",level:4,type:"u",minver:1,webm:!1,description:"Timestamp of the end of Chapter (timestamp excluded, not scaled)."},150:{name:"CueRefTime",level:5,type:"u",mandatory:!0,minver:2,webm:!1,description:"Timestamp of the referenced Block."},151:{name:"CueRefCluster",level:5,type:"u",mandatory:!0,webm:!1,description:"The Position of the Cluster containing the referenced Block."},152:{name:"ChapterFlagHidden",level:4,type:"u",mandatory:!0,minver:1,webm:!1,default:0,range:"0-1",description:"If a chapter is hidden (1), it should not be available to the user interface (but still to Control Tracks; see flag notes). (1 bit)"},16980:{name:"ContentCompAlgo",level:6,type:"u",mandatory:!0,minver:1,webm:!1,default:0,description:"The compression algorithm used. Algorithms that have been specified so far are: 0 - zlib, 3 - Header Stripping"},16981:{name:"ContentCompSettings",level:6,type:"b",minver:1,webm:!1,description:"Settings that might be needed by the decompressor. For Header Stripping (ContentCompAlgo=3), the bytes that were removed from the beggining of each frames of the track."},17026:{name:"DocType",level:1,type:"s",mandatory:!0,default:"matroska",minver:1,description:"A string that describes the type of document that follows this EBML header. 'matroska' in our case or 'webm' for webm files."},17029:{name:"DocTypeReadVersion",level:1,type:"u",mandatory:!0,default:1,minver:1,description:"The minimum DocType version an interpreter has to support to read this file."},17030:{name:"EBMLVersion",level:1,type:"u",mandatory:!0,default:1,minver:1,description:"The version of EBML parser used to create the file."},17031:{name:"DocTypeVersion",level:1,type:"u",mandatory:!0,default:1,minver:1,description:"The version of DocType interpreter used to create the file."},17476:{name:"SegmentFamily",level:2,type:"b",multiple:!0,minver:1,webm:!1,bytesize:16,description:"A randomly generated unique ID that all segments related to each other must use (128 bits)."},17505:{name:"DateUTC",level:2,type:"d",minver:1,description:"Date of the origin of timestamp (value 0), i.e. production date."},17540:{name:"TagDefault",level:4,type:"u",mandatory:!0,minver:1,webm:!1,default:1,range:"0-1",description:"Indication to know if this is the default/original language to use for the given tag. (1 bit)"},17541:{name:"TagBinary",level:4,type:"b",minver:1,webm:!1,description:"The values of the Tag if it is binary. Note that this cannot be used in the same SimpleTag as TagString."},17543:{name:"TagString",level:4,type:"8",minver:1,webm:!1,description:"The value of the Element."},17545:{name:"Duration",level:2,type:"f",minver:1,range:"> 0",description:"Duration of the segment (based on TimecodeScale)."},17816:{name:"ChapterFlagEnabled",level:4,type:"u",mandatory:!0,minver:1,webm:!1,default:1,range:"0-1",description:"Specify wether the chapter is enabled. It can be enabled/disabled by a Control Track. When disabled, the movie should skip all the content between the TimeStart and TimeEnd of this chapter (see flag notes). (1 bit)"},18016:{name:"FileMimeType",level:3,type:"s",mandatory:!0,minver:1,webm:!1,description:"MIME type of the file."},18017:{name:"FileUsedStartTime",level:3,type:"u",divx:!0,description:"DivX font extension"},18018:{name:"FileUsedEndTime",level:3,type:"u",divx:!0,description:"DivX font extension"},18037:{name:"FileReferral",level:3,type:"b",webm:!1,description:"A binary value that a track/codec can refer to when the attachment is needed."},20529:{name:"ContentEncodingOrder",level:5,type:"u",mandatory:!0,minver:1,webm:!1,default:0,description:"Tells when this modification was used during encoding/muxing starting with 0 and counting upwards. The decoder/demuxer has to start with the highest order number it finds and work its way down. This value has to be unique over all ContentEncodingOrder elements in the segment."},20530:{name:"ContentEncodingScope",level:5,type:"u",mandatory:!0,minver:1,webm:!1,default:1,range:"not 0",description:"A bit field that describes which elements have been modified in this way. Values (big endian) can be OR'ed. Possible values: 1 - all frame contents, 2 - the track's private data, 4 - the next ContentEncoding (next ContentEncodingOrder. Either the data inside ContentCompression and/or ContentEncryption)"},20531:{name:"ContentEncodingType",level:5,type:"u",mandatory:!0,minver:1,webm:!1,default:0,description:"A value describing what kind of transformation has been done. Possible values: 0 - compression, 1 - encryption"},20532:{name:"ContentCompression",level:5,type:"m",minver:1,webm:!1,description:"Settings describing the compression used. Must be present if the value of ContentEncodingType is 0 and absent otherwise. Each block must be decompressable even if no previous block is available in order not to prevent seeking."},20533:{name:"ContentEncryption",level:5,type:"m",minver:1,webm:!1,description:"Settings describing the encryption used. Must be present if the value of ContentEncodingType is 1 and absent otherwise."},21368:{name:"CueBlockNumber",level:4,type:"u",minver:1,default:1,range:"not 0",description:"Number of the Block in the specified Cluster."},22100:{name:"ChapterStringUID",level:4,type:"8",mandatory:!1,minver:3,webm:!0,description:"A unique string ID to identify the Chapter. Use for WebVTT cue identifier storage."},22337:{name:"WritingApp",level:2,type:"8",mandatory:!0,minver:1,description:'Writing application ("mkvmerge-0.3.3").'},22612:{name:"SilentTracks",cppname:"ClusterSilentTracks",level:2,type:"m",minver:1,webm:!1,description:"The list of tracks that are not used in that part of the stream. It is useful when using overlay tracks on seeking. Then you should decide what track to use."},25152:{name:"ContentEncoding",level:4,type:"m",mandatory:!0,multiple:!0,minver:1,webm:!1,description:"Settings for one content encoding like compression or encryption."},25188:{name:"BitDepth",cppname:"AudioBitDepth",level:4,type:"u",minver:1,range:"not 0",description:"Bits per sample, mostly used for PCM."},25906:{name:"SignedElement",level:3,type:"b",multiple:!0,webm:!1,description:"An element ID whose data will be used to compute the signature."},26148:{name:"TrackTranslate",level:3,type:"m",multiple:!0,minver:1,webm:!1,description:"The track identification for the given Chapter Codec."},26897:{name:"ChapProcessCommand",cppname:"ChapterProcessCommand",level:5,type:"m",multiple:!0,minver:1,webm:!1,description:"Contains all the commands associated to the Atom."},26914:{name:"ChapProcessTime",cppname:"ChapterProcessTime",level:6,type:"u",mandatory:!0,minver:1,webm:!1,description:"Defines when the process command should be handled (0: during the whole chapter, 1: before starting playback, 2: after playback of the chapter)."},26916:{name:"ChapterTranslate",level:2,type:"m",multiple:!0,minver:1,webm:!1,description:"A tuple of corresponding ID used by chapter codecs to represent this segment."},26931:{name:"ChapProcessData",cppname:"ChapterProcessData",level:6,type:"b",mandatory:!0,minver:1,webm:!1,description:"Contains the command information. The data should be interpreted depending on the ChapProcessCodecID value. For ChapProcessCodecID = 1, the data correspond to the binary DVD cell pre/post commands."},26948:{name:"ChapProcess",cppname:"ChapterProcess",level:4,type:"m",multiple:!0,minver:1,webm:!1,description:"Contains all the commands associated to the Atom."},26965:{name:"ChapProcessCodecID",cppname:"ChapterProcessCodecID",level:5,type:"u",mandatory:!0,minver:1,webm:!1,default:0,description:"Contains the type of the codec used for the processing. A value of 0 means native Matroska processing (to be defined), a value of 1 means the DVD command set is used. More codec IDs can be added later."},29555:{name:"Tag",level:2,type:"m",mandatory:!0,multiple:!0,minver:1,webm:!1,description:"Element containing elements specific to Tracks/Chapters."},29572:{name:"SegmentFilename",level:2,type:"8",minver:1,webm:!1,description:"A filename corresponding to this segment."},29766:{name:"AttachmentLink",cppname:"TrackAttachmentLink",level:3,type:"u",minver:1,webm:!1,range:"not 0",description:"The UID of an attachment that is used by this codec."},2459272:{name:"CodecName",level:3,type:"8",minver:1,description:"A human-readable string specifying the codec."},408125543:{name:"Segment",level:"0",type:"m",mandatory:!0,multiple:!0,minver:1,description:"This element contains all other top-level (level 1) elements. Typically a Matroska file is composed of 1 segment."},17530:{name:"TagLanguage",level:4,type:"s",mandatory:!0,minver:1,webm:!1,default:"und",description:"Specifies the language of the tag specified, in the Matroska languages form."},17827:{name:"TagName",level:4,type:"8",mandatory:!0,minver:1,webm:!1,description:"The name of the Tag that is going to be stored."},26568:{name:"SimpleTag",cppname:"TagSimple",level:3,recursive:"1",type:"m",mandatory:!0,multiple:!0,minver:1,webm:!1,description:"Contains general information about the target."},25542:{name:"TagAttachmentUID",level:4,type:"u",multiple:!0,minver:1,webm:!1,default:0,description:"A unique ID to identify the Attachment(s) the tags belong to. If the value is 0 at this level, the tags apply to all the attachments in the Segment."},25540:{name:"TagChapterUID",level:4,type:"u",multiple:!0,minver:1,webm:!1,default:0,description:"A unique ID to identify the Chapter(s) the tags belong to. If the value is 0 at this level, the tags apply to all chapters in the Segment."},25545:{name:"TagEditionUID",level:4,type:"u",multiple:!0,minver:1,webm:!1,default:0,description:"A unique ID to identify the EditionEntry(s) the tags belong to. If the value is 0 at this level, the tags apply to all editions in the Segment."},25541:{name:"TagTrackUID",level:4,type:"u",multiple:!0,minver:1,webm:!1,default:0,description:"A unique ID to identify the Track(s) the tags belong to. If the value is 0 at this level, the tags apply to all tracks in the Segment."},25546:{name:"TargetType",cppname:"TagTargetType",level:4,type:"s",minver:1,webm:!1,strong:"informational",description:'An string that can be used to display the logical level of the target like "ALBUM", "TRACK", "MOVIE", "CHAPTER", etc (see TargetType).'},26826:{name:"TargetTypeValue",cppname:"TagTargetTypeValue",level:4,type:"u",minver:1,webm:!1,default:50,description:"A number to indicate the logical level of the target (see TargetType)."},25536:{name:"Targets",cppname:"TagTargets",level:3,type:"m",mandatory:!0,minver:1,webm:!1,description:"Contain all UIDs where the specified meta data apply. It is empty to describe everything in the segment."},307544935:{name:"Tags",level:1,type:"m",multiple:!0,minver:1,webm:!1,description:"Element containing elements specific to Tracks/Chapters. A list of valid tags can be found here."},17677:{name:"ChapProcessPrivate",cppname:"ChapterProcessPrivate",level:5,type:"b",minver:1,webm:!1,description:'Some optional data attached to the ChapProcessCodecID information. For ChapProcessCodecID = 1, it is the "DVD level" equivalent.'},17278:{name:"ChapCountry",cppname:"ChapterCountry",level:5,type:"s",multiple:!0,minver:1,webm:!1,description:"The countries corresponding to the string, same 2 octets as in Internet domains."},17276:{name:"ChapLanguage",cppname:"ChapterLanguage",level:5,type:"s",mandatory:!0,multiple:!0,minver:1,webm:!0,default:"eng",description:"The languages corresponding to the string, in the bibliographic ISO-639-2 form."},143:{name:"ChapterTrack",level:4,type:"m",minver:1,webm:!1,description:"List of tracks on which the chapter applies. If this element is not present, all tracks apply"},25539:{name:"ChapterPhysicalEquiv",level:4,type:"u",minver:1,webm:!1,description:'Specify the physical equivalent of this ChapterAtom like "DVD" (60) or "SIDE" (50), see complete list of values.'},28348:{name:"ChapterSegmentEditionUID",level:4,type:"u",minver:1,webm:!1,range:"not 0",description:"The EditionUID to play from the segment linked in ChapterSegmentUID."},28263:{name:"ChapterSegmentUID",level:4,type:"b",minver:1,webm:!1,range:">0",bytesize:16,description:"A segment to play in place of this chapter. Edition ChapterSegmentEditionUID should be used for this segment, otherwise no edition is used."},29636:{name:"ChapterUID",level:4,type:"u",mandatory:!0,minver:1,webm:!0,range:"not 0",description:"A unique ID to identify the Chapter."},182:{name:"ChapterAtom",level:3,recursive:"1",type:"m",mandatory:!0,multiple:!0,minver:1,webm:!0,description:"Contains the atom information to use as the chapter atom (apply to all tracks)."},17885:{name:"EditionFlagOrdered",level:3,type:"u",minver:1,webm:!1,default:0,range:"0-1",description:"Specify if the chapters can be defined multiple times and the order to play them is enforced. (1 bit)"},17883:{name:"EditionFlagDefault",level:3,type:"u",mandatory:!0,minver:1,webm:!1,default:0,range:"0-1",description:"If a flag is set (1) the edition should be used as the default one. (1 bit)"},17853:{name:"EditionFlagHidden",level:3,type:"u",mandatory:!0,minver:1,webm:!1,default:0,range:"0-1",description:"If an edition is hidden (1), it should not be available to the user interface (but still to Control Tracks; see flag notes). (1 bit)"},17852:{name:"EditionUID",level:3,type:"u",minver:1,webm:!1,range:"not 0",description:"A unique ID to identify the edition. It's useful for tagging an edition."},17849:{name:"EditionEntry",level:2,type:"m",mandatory:!0,multiple:!0,minver:1,webm:!0,description:"Contains all information about a segment edition."},272869232:{name:"Chapters",level:1,type:"m",minver:1,webm:!0,description:"A system to define basic menus and partition data. For more detailed information, look at the Chapters Explanation."},18094:{name:"FileUID",level:3,type:"u",mandatory:!0,minver:1,webm:!1,range:"not 0",description:"Unique ID representing the file, as random as possible."},18012:{name:"FileData",level:3,type:"b",mandatory:!0,minver:1,webm:!1,description:"The data of the file."},18030:{name:"FileName",level:3,type:"8",mandatory:!0,minver:1,webm:!1,description:"Filename of the attached file."},18046:{name:"FileDescription",level:3,type:"8",minver:1,webm:!1,description:"A human-friendly name for the attached file."},24999:{name:"AttachedFile",level:2,type:"m",mandatory:!0,multiple:!0,minver:1,webm:!1,description:"An attached file."},423732329:{name:"Attachments",level:1,type:"m",minver:1,webm:!1,description:"Contain attached files."},235:{name:"CueRefCodecState",level:5,type:"u",webm:!1,default:0,description:"The position of the Codec State corresponding to this referenced element. 0 means that the data is taken from the initial Track Entry."},21343:{name:"CueRefNumber",level:5,type:"u",webm:!1,default:1,range:"not 0",description:"Number of the referenced Block of Track X in the specified Cluster."},219:{name:"CueReference",level:4,type:"m",multiple:!0,minver:2,webm:!1,description:"The Clusters containing the required referenced Blocks."},234:{name:"CueCodecState",level:4,type:"u",minver:2,webm:!1,default:0,description:"The position of the Codec State corresponding to this Cue element. 0 means that the data is taken from the initial Track Entry."},178:{name:"CueDuration",level:4,type:"u",mandatory:!1,minver:4,webm:!1,description:"The duration of the block according to the segment time base. If missing the track's DefaultDuration does not apply and no duration information is available in terms of the cues."},240:{name:"CueRelativePosition",level:4,type:"u",mandatory:!1,minver:4,webm:!1,description:"The relative position of the referenced block inside the cluster with 0 being the first possible position for an element inside that cluster.",position:"clusterRelative"},241:{name:"CueClusterPosition",level:4,type:"u",mandatory:!0,minver:1,description:"The position of the Cluster containing the required Block.",position:"segment"},247:{name:"CueTrack",level:4,type:"u",mandatory:!0,minver:1,range:"not 0",description:"The track for which a position is given."},183:{name:"CueTrackPositions",level:3,type:"m",mandatory:!0,multiple:!0,minver:1,description:"Contain positions for different tracks corresponding to the timestamp."},179:{name:"CueTime",level:3,type:"u",mandatory:!0,minver:1,description:"Absolute timestamp according to the segment time base."},187:{name:"CuePoint",level:2,type:"m",mandatory:!0,multiple:!0,minver:1,description:"Contains all information relative to a seek point in the segment."},475249515:{name:"Cues",level:1,type:"m",minver:1,description:'A top-level element to speed seeking access. All entries are local to the segment. Should be mandatory for non "live" streams.'},18406:{name:"ContentSigHashAlgo",level:6,type:"u",minver:1,webm:!1,default:0,description:"The hash algorithm used for the signature. A value of '0' means that the contents have not been signed but only encrypted. Predefined values: 1 - SHA1-160 2 - MD5"},18405:{name:"ContentSigAlgo",level:6,type:"u",minver:1,webm:!1,default:0,description:"The algorithm used for the signature. A value of '0' means that the contents have not been signed but only encrypted. Predefined values: 1 - RSA"},18404:{name:"ContentSigKeyID",level:6,type:"b",minver:1,webm:!1,description:"This is the ID of the private key the data was signed with."},18403:{name:"ContentSignature",level:6,type:"b",minver:1,webm:!1,description:"A cryptographic signature of the contents."},18402:{name:"ContentEncKeyID",level:6,type:"b",minver:1,webm:!1,description:"For public key algorithms this is the ID of the public key the the data was encrypted with."},18401:{name:"ContentEncAlgo",level:6,type:"u",minver:1,webm:!1,default:0,description:"The encryption algorithm used. The value '0' means that the contents have not been encrypted but only signed. Predefined values: 1 - DES, 2 - 3DES, 3 - Twofish, 4 - Blowfish, 5 - AES"},28032:{name:"ContentEncodings",level:3,type:"m",minver:1,webm:!1,description:"Settings for several content encoding mechanisms like compression or encryption."},196:{name:"TrickMasterTrackSegmentUID",level:3,type:"b",divx:!0,bytesize:16,description:"DivX trick track extenstions"},199:{name:"TrickMasterTrackUID",level:3,type:"u",divx:!0,description:"DivX trick track extenstions"},198:{name:"TrickTrackFlag",level:3,type:"u",divx:!0,default:0,description:"DivX trick track extenstions"},193:{name:"TrickTrackSegmentUID",level:3,type:"b",divx:!0,bytesize:16,description:"DivX trick track extenstions"},192:{name:"TrickTrackUID",level:3,type:"u",divx:!0,description:"DivX trick track extenstions"},237:{name:"TrackJoinUID",level:5,type:"u",mandatory:!0,multiple:!0,minver:3,webm:!1,range:"not 0",description:"The trackUID number of a track whose blocks are used to create this virtual track."},233:{name:"TrackJoinBlocks",level:4,type:"m",minver:3,webm:!1,description:"Contains the list of all tracks whose Blocks need to be combined to create this virtual track"},230:{name:"TrackPlaneType",level:6,type:"u",mandatory:!0,minver:3,webm:!1,description:"The kind of plane this track corresponds to (0: left eye, 1: right eye, 2: background)."},229:{name:"TrackPlaneUID",level:6,type:"u",mandatory:!0,minver:3,webm:!1,range:"not 0",description:"The trackUID number of the track representing the plane."},228:{name:"TrackPlane",level:5,type:"m",mandatory:!0,multiple:!0,minver:3,webm:!1,description:"Contains a video plane track that need to be combined to create this 3D track"},227:{name:"TrackCombinePlanes",level:4,type:"m",minver:3,webm:!1,description:"Contains the list of all video plane tracks that need to be combined to create this 3D track"},226:{name:"TrackOperation",level:3,type:"m",minver:3,webm:!1,description:"Operation that needs to be applied on tracks to create this virtual track. For more details look at the Specification Notes on the subject."},32123:{name:"ChannelPositions",cppname:"AudioPosition",level:4,type:"b",webm:!1,description:"Table of horizontal angles for each successive channel, see appendix."},159:{name:"Channels",cppname:"AudioChannels",level:4,type:"u",mandatory:!0,minver:1,default:1,range:"not 0",description:"Numbers of channels in the track."},30901:{name:"OutputSamplingFrequency",cppname:"AudioOutputSamplingFreq",level:4,type:"f",minver:1,default:"Sampling Frequency",range:"> 0",description:"Real output sampling frequency in Hz (used for SBR techniques)."},181:{name:"SamplingFrequency",cppname:"AudioSamplingFreq",level:4,type:"f",mandatory:!0,minver:1,default:8e3,range:"> 0",description:"Sampling frequency in Hz."},225:{name:"Audio",cppname:"TrackAudio",level:3,type:"m",minver:1,description:"Audio settings."},2327523:{name:"FrameRate",cppname:"VideoFrameRate",level:4,type:"f",range:"> 0",strong:"Informational",description:"Number of frames per second. only."},3126563:{name:"GammaValue",cppname:"VideoGamma",level:4,type:"f",webm:!1,range:"> 0",description:"Gamma Value."},3061028:{name:"ColourSpace",cppname:"VideoColourSpace",level:4,type:"b",minver:1,webm:!1,bytesize:4,description:"Same value as in AVI (32 bits)."},21683:{name:"AspectRatioType",cppname:"VideoAspectRatio",level:4,type:"u",minver:1,default:0,description:"Specify the possible modifications to the aspect ratio (0: free resizing, 1: keep aspect ratio, 2: fixed)."},21682:{name:"DisplayUnit",cppname:"VideoDisplayUnit",level:4,type:"u",minver:1,default:0,description:"How DisplayWidth & DisplayHeight should be interpreted (0: pixels, 1: centimeters, 2: inches, 3: Display Aspect Ratio)."},21690:{name:"DisplayHeight",cppname:"VideoDisplayHeight",level:4,type:"u",minver:1,default:"PixelHeight",range:"not 0",description:"Height of the video frames to display. The default value is only valid when DisplayUnit is 0."},21680:{name:"DisplayWidth",cppname:"VideoDisplayWidth",level:4,type:"u",minver:1,default:"PixelWidth",range:"not 0",description:"Width of the video frames to display. The default value is only valid when DisplayUnit is 0."},21725:{name:"PixelCropRight",cppname:"VideoPixelCropRight",level:4,type:"u",minver:1,default:0,description:"The number of video pixels to remove on the right of the image."},21708:{name:"PixelCropLeft",cppname:"VideoPixelCropLeft",level:4,type:"u",minver:1,default:0,description:"The number of video pixels to remove on the left of the image."},21691:{name:"PixelCropTop",cppname:"VideoPixelCropTop",level:4,type:"u",minver:1,default:0,description:"The number of video pixels to remove at the top of the image."},21674:{name:"PixelCropBottom",cppname:"VideoPixelCropBottom",level:4,type:"u",minver:1,default:0,description:"The number of video pixels to remove at the bottom of the image (for HDTV content)."},186:{name:"PixelHeight",cppname:"VideoPixelHeight",level:4,type:"u",mandatory:!0,minver:1,range:"not 0",description:"Height of the encoded video frames in pixels."},176:{name:"PixelWidth",cppname:"VideoPixelWidth",level:4,type:"u",mandatory:!0,minver:1,range:"not 0",description:"Width of the encoded video frames in pixels."},21433:{name:"OldStereoMode",level:4,type:"u",maxver:"0",webm:!1,divx:!1,description:"DEPRECATED, DO NOT USE. Bogus StereoMode value used in old versions of libmatroska. (0: mono, 1: right eye, 2: left eye, 3: both eyes)."},21440:{name:"AlphaMode",cppname:"VideoAlphaMode",level:4,type:"u",minver:3,webm:!0,default:0,description:"Alpha Video Mode. Presence of this element indicates that the BlockAdditional element could contain Alpha data."},21432:{name:"StereoMode",cppname:"VideoStereoMode",level:4,type:"u",minver:3,webm:!0,default:0,description:"Stereo-3D video mode (0: mono, 1: side by side (left eye is first), 2: top-bottom (right eye is first), 3: top-bottom (left eye is first), 4: checkboard (right is first), 5: checkboard (left is first), 6: row interleaved (right is first), 7: row interleaved (left is first), 8: column interleaved (right is first), 9: column interleaved (left is first), 10: anaglyph (cyan/red), 11: side by side (right eye is first), 12: anaglyph (green/magenta), 13 both eyes laced in one Block (left eye is first), 14 both eyes laced in one Block (right eye is first)) . There are some more details on 3D support in the Specification Notes."},154:{name:"FlagInterlaced",cppname:"VideoFlagInterlaced",level:4,type:"u",mandatory:!0,minver:2,webm:!0,default:0,range:"0-1",description:"Set if the video is interlaced. (1 bit)"},224:{name:"Video",cppname:"TrackVideo",level:3,type:"m",minver:1,description:"Video settings."},26277:{name:"TrackTranslateTrackID",level:4,type:"b",mandatory:!0,minver:1,webm:!1,description:"The binary value used to represent this track in the chapter codec data. The format depends on the ChapProcessCodecID used."},26303:{name:"TrackTranslateCodec",level:4,type:"u",mandatory:!0,minver:1,webm:!1,description:"The chapter codec using this ID (0: Matroska Script, 1: DVD-menu)."},26364:{name:"TrackTranslateEditionUID",level:4,type:"u",multiple:!0,minver:1,webm:!1,description:"Specify an edition UID on which this translation applies. When not specified, it means for all editions found in the segment."},22203:{name:"SeekPreRoll",level:3,type:"u",mandatory:!0,multiple:!1,default:0,minver:4,webm:!0,description:"After a discontinuity, SeekPreRoll is the duration in nanoseconds of the data the decoder must decode before the decoded data is valid."},22186:{name:"CodecDelay",level:3,type:"u",multiple:!1,default:0,minver:4,webm:!0,description:"CodecDelay is The codec-built-in delay in nanoseconds. This value must be subtracted from each block timestamp in order to get the actual timestamp. The value should be small so the muxing of tracks with the same actual timestamp are in the same Cluster."},28587:{name:"TrackOverlay",level:3,type:"u",multiple:!0,minver:1,webm:!1,description:"Specify that this track is an overlay track for the Track specified (in the u-integer). That means when this track has a gap (see SilentTracks) the overlay track should be used instead. The order of multiple TrackOverlay matters, the first one is the one that should be used. If not found it should be the second, etc."},170:{name:"CodecDecodeAll",level:3,type:"u",mandatory:!0,minver:2,webm:!1,default:1,range:"0-1",description:"The codec can decode potentially damaged data (1 bit)."},2536e3:{name:"CodecDownloadURL",level:3,type:"s",multiple:!0,webm:!1,description:"A URL to download about the codec used."},3883072:{name:"CodecInfoURL",level:3,type:"s",multiple:!0,webm:!1,description:"A URL to find information about the codec used."},3839639:{name:"CodecSettings",level:3,type:"8",webm:!1,description:"A string describing the encoding setting used."},25506:{name:"CodecPrivate",level:3,type:"b",minver:1,description:"Private data only known to the codec."},2274716:{name:"Language",cppname:"TrackLanguage",level:3,type:"s",minver:1,default:"eng",description:"Specifies the language of the track in the Matroska languages form."},21358:{name:"Name",cppname:"TrackName",level:3,type:"8",minver:1,description:"A human-readable track name."},21998:{name:"MaxBlockAdditionID",level:3,type:"u",mandatory:!0,minver:1,webm:!1,default:0,description:"The maximum value of BlockAdditions for this track."},21375:{name:"TrackOffset",level:3,type:"i",webm:!1,default:0,description:"A value to add to the Block's Timestamp. This can be used to adjust the playback offset of a track."},2306383:{name:"TrackTimecodeScale",level:3,type:"f",mandatory:!0,minver:1,maxver:"3",webm:!1,default:1,range:"> 0",description:"DEPRECATED, DO NOT USE. The scale to apply on this track to work at normal speed in relation with other tracks (mostly used to adjust video speed when the audio length differs)."},2313850:{name:"DefaultDecodedFieldDuration",cppname:"TrackDefaultDecodedFieldDuration",level:3,type:"u",minver:4,range:"not 0",description:`The period in nanoseconds (not scaled by TimcodeScale)
|
|
8
|
-
between two successive fields at the output of the decoding process (see the notes)`},2352003:{name:"DefaultDuration",cppname:"TrackDefaultDuration",level:3,type:"u",minver:1,range:"not 0",description:"Number of nanoseconds (not scaled via TimecodeScale) per frame ('frame' in the Matroska sense -- one element put into a (Simple)Block)."},28152:{name:"MaxCache",cppname:"TrackMaxCache",level:3,type:"u",minver:1,webm:!1,description:"The maximum cache size required to store referenced frames in and the current frame. 0 means no cache is needed."},28135:{name:"MinCache",cppname:"TrackMinCache",level:3,type:"u",mandatory:!0,minver:1,webm:!1,default:0,description:"The minimum number of frames a player should be able to cache during playback. If set to 0, the reference pseudo-cache system is not used."},156:{name:"FlagLacing",cppname:"TrackFlagLacing",level:3,type:"u",mandatory:!0,minver:1,default:1,range:"0-1",description:"Set if the track may contain blocks using lacing. (1 bit)"},21930:{name:"FlagForced",cppname:"TrackFlagForced",level:3,type:"u",mandatory:!0,minver:1,default:0,range:"0-1",description:"Set if that track MUST be active during playback. There can be many forced track for a kind (audio, video or subs), the player should select the one which language matches the user preference or the default + forced track. Overlay MAY happen between a forced and non-forced track of the same kind. (1 bit)"},185:{name:"FlagEnabled",cppname:"TrackFlagEnabled",level:3,type:"u",mandatory:!0,minver:2,webm:!0,default:1,range:"0-1",description:"Set if the track is usable. (1 bit)"},29637:{name:"TrackUID",level:3,type:"u",mandatory:!0,minver:1,range:"not 0",description:"A unique ID to identify the Track. This should be kept the same when making a direct stream copy of the Track to another file."},215:{name:"TrackNumber",level:3,type:"u",mandatory:!0,minver:1,range:"not 0",description:"The track number as used in the Block Header (using more than 127 tracks is not encouraged, though the design allows an unlimited number)."},174:{name:"TrackEntry",level:2,type:"m",mandatory:!0,multiple:!0,minver:1,description:"Describes a track with all elements."},374648427:{name:"Tracks",level:1,type:"m",multiple:!0,minver:1,description:"A top-level block of information with many tracks described."},175:{name:"EncryptedBlock",level:2,type:"b",multiple:!0,webm:!1,description:"Similar to EncryptedBlock Structure)"},202:{name:"ReferenceTimeCode",level:4,type:"u",multiple:!1,mandatory:!0,minver:0,webm:!1,divx:!0,description:"DivX trick track extenstions"},201:{name:"ReferenceOffset",level:4,type:"u",multiple:!1,mandatory:!0,minver:0,webm:!1,divx:!0,description:"DivX trick track extenstions"},200:{name:"ReferenceFrame",level:3,type:"m",multiple:!1,minver:0,webm:!1,divx:!0,description:"DivX trick track extenstions"},207:{name:"SliceDuration",level:5,type:"u",default:0,description:"The (scaled) duration to apply to the element."},206:{name:"Delay",cppname:"SliceDelay",level:5,type:"u",default:0,description:"The (scaled) delay to apply to the element."},203:{name:"BlockAdditionID",cppname:"SliceBlockAddID",level:5,type:"u",default:0,description:"The ID of the BlockAdditional element (0 is the main Block)."},205:{name:"FrameNumber",cppname:"SliceFrameNumber",level:5,type:"u",default:0,description:"The number of the frame to generate from this lace with this delay (allow you to generate many frames from the same Block/Frame)."},204:{name:"LaceNumber",cppname:"SliceLaceNumber",level:5,type:"u",minver:1,default:0,divx:!1,description:"The reverse number of the frame in the lace (0 is the last frame, 1 is the next to last, etc). While there are a few files in the wild with this element, it is no longer in use and has been deprecated. Being able to interpret this element is not required for playback."},232:{name:"TimeSlice",level:4,type:"m",multiple:!0,minver:1,divx:!1,description:"Contains extra time information about the data contained in the Block. While there are a few files in the wild with this element, it is no longer in use and has been deprecated. Being able to interpret this element is not required for playback."},142:{name:"Slices",level:3,type:"m",minver:1,divx:!1,description:"Contains slices description."},30114:{name:"DiscardPadding",level:3,type:"i",minver:4,webm:!0,description:"Duration in nanoseconds of the silent data added to the Block (padding at the end of the Block for positive value, at the beginning of the Block for negative value). The duration of DiscardPadding is not calculated in the duration of the TrackEntry and should be discarded during playback."},164:{name:"CodecState",level:3,type:"b",minver:2,webm:!1,description:"The new codec state to use. Data interpretation is private to the codec. This information should always be referenced by a seek entry."},253:{name:"ReferenceVirtual",level:3,type:"i",webm:!1,description:"Relative position of the data that should be in position of the virtual block."},251:{name:"ReferenceBlock",level:3,type:"i",multiple:!0,minver:1,description:"Timestamp of another frame used as a reference (ie: B or P frame). The timestamp is relative to the block it's attached to."},250:{name:"ReferencePriority",cppname:"FlagReferenced",level:3,type:"u",mandatory:!0,minver:1,webm:!1,default:0,description:"This frame is referenced and has the specified cache priority. In cache only a frame of the same or higher priority can replace this frame. A value of 0 means the frame is not referenced."},155:{name:"BlockDuration",level:3,type:"u",minver:1,default:"TrackDuration",description:'The duration of the Block (based on TimecodeScale). This element is mandatory when DefaultDuration is set for the track (but can be omitted as other default values). When not written and with no DefaultDuration, the value is assumed to be the difference between the timestamp of this Block and the timestamp of the next Block in "display" order (not coding order). This element can be useful at the end of a Track (as there is not other Block available), or when there is a break in a track like for subtitle tracks. When set to 0 that means the frame is not a keyframe.'},165:{name:"BlockAdditional",level:5,type:"b",mandatory:!0,minver:1,webm:!1,description:"Interpreted by the codec as it wishes (using the BlockAddID)."},238:{name:"BlockAddID",level:5,type:"u",mandatory:!0,minver:1,webm:!1,default:1,range:"not 0",description:"An ID to identify the BlockAdditional level."},166:{name:"BlockMore",level:4,type:"m",mandatory:!0,multiple:!0,minver:1,webm:!1,description:"Contain the BlockAdditional and some parameters."},30113:{name:"BlockAdditions",level:3,type:"m",minver:1,webm:!1,description:"Contain additional blocks to complete the main one. An EBML parser that has no knowledge of the Block structure could still see and use/skip these data."},162:{name:"BlockVirtual",level:3,type:"b",webm:!1,description:"A Block with no data. It must be stored in the stream at the place the real Block should be in display order. (see Block Virtual)"},161:{name:"Block",level:3,type:"b",mandatory:!0,minver:1,description:"Block containing the actual data to be rendered and a timestamp relative to the Cluster Timecode. (see Block Structure)"},160:{name:"BlockGroup",level:2,type:"m",multiple:!0,minver:1,description:"Basic container of information containing a single Block or BlockVirtual, and information specific to that Block/VirtualBlock."},163:{name:"SimpleBlock",level:2,type:"b",multiple:!0,minver:2,webm:!0,divx:!0,description:"Similar to SimpleBlock Structure"},171:{name:"PrevSize",cppname:"ClusterPrevSize",level:2,type:"u",minver:1,description:"Size of the previous Cluster, in octets. Can be useful for backward playing.",position:"prevCluster"},167:{name:"Position",cppname:"ClusterPosition",level:2,type:"u",minver:1,webm:!1,description:"The Position of the Cluster in the segment (0 in live broadcast streams). It might help to resynchronise offset on damaged streams.",position:"segment"},22743:{name:"SilentTrackNumber",cppname:"ClusterSilentTrackNumber",level:3,type:"u",multiple:!0,minver:1,webm:!1,description:"One of the track number that are not used from now on in the stream. It could change later if not specified as silent in a further Cluster."},231:{name:"Timecode",cppname:"ClusterTimecode",level:2,type:"u",mandatory:!0,minver:1,description:"Absolute timestamp of the cluster (based on TimecodeScale)."},524531317:{name:"Cluster",level:1,type:"m",multiple:!0,minver:1,description:"The lower level element containing the (monolithic) Block structure."},19840:{name:"MuxingApp",level:2,type:"8",mandatory:!0,minver:1,description:'Muxing application or library ("libmatroska-0.4.3").'},31657:{name:"Title",level:2,type:"8",minver:1,webm:!1,description:"General name of the segment."},2807730:{name:"TimecodeScaleDenominator",level:2,type:"u",mandatory:!0,minver:4,default:"1000000000",description:"Timestamp scale numerator, see TimecodeScale."},2807729:{name:"TimecodeScale",level:2,type:"u",mandatory:!0,minver:1,default:"1000000",description:"Timestamp scale in nanoseconds (1.000.000 means all timestamps in the segment are expressed in milliseconds)."},27045:{name:"ChapterTranslateID",level:3,type:"b",mandatory:!0,minver:1,webm:!1,description:"The binary value used to represent this segment in the chapter codec data. The format depends on the ChapProcessCodecID used."},27071:{name:"ChapterTranslateCodec",level:3,type:"u",mandatory:!0,minver:1,webm:!1,description:"The chapter codec using this ID (0: Matroska Script, 1: DVD-menu)."},27132:{name:"ChapterTranslateEditionUID",level:3,type:"u",multiple:!0,minver:1,webm:!1,description:"Specify an edition UID on which this correspondance applies. When not specified, it means for all editions found in the segment."},4096955:{name:"NextFilename",level:2,type:"8",minver:1,webm:!1,description:"An escaped filename corresponding to the next segment."},4110627:{name:"NextUID",level:2,type:"b",minver:1,webm:!1,bytesize:16,description:"A unique ID to identify the next chained segment (128 bits)."},3965867:{name:"PrevFilename",level:2,type:"8",minver:1,webm:!1,description:"An escaped filename corresponding to the previous segment."},3979555:{name:"PrevUID",level:2,type:"b",minver:1,webm:!1,bytesize:16,description:"A unique ID to identify the previous chained segment (128 bits)."},29604:{name:"SegmentUID",level:2,type:"b",minver:1,webm:!1,range:"not 0",bytesize:16,description:"A randomly generated unique ID to identify the current segment between many others (128 bits)."},357149030:{name:"Info",level:1,type:"m",mandatory:!0,multiple:!0,minver:1,description:"Contains miscellaneous general information and statistics on the file."},21420:{name:"SeekPosition",level:3,type:"u",mandatory:!0,minver:1,description:"The position of the element in the segment in octets (0 = first level 1 element).",position:"segment"},21419:{name:"SeekID",level:3,type:"b",mandatory:!0,minver:1,description:"The binary ID corresponding to the element name.",type2:"ebmlID"},19899:{name:"Seek",cppname:"SeekPoint",level:2,type:"m",mandatory:!0,multiple:!0,minver:1,description:"Contains a single seek entry to an EBML element."},290298740:{name:"SeekHead",cppname:"SeekHeader",level:1,type:"m",multiple:!0,minver:1,description:"Contains the position of other level 1 elements."},32379:{name:"SignatureElementList",level:2,type:"m",multiple:!0,webm:!1,i:"Cluster|Block|BlockAdditional",description:"A list consists of a number of consecutive elements that represent one case where data is used in signature. Ex: means that the BlockAdditional of all Blocks in all Clusters is used for encryption."},32347:{name:"SignatureElements",level:1,type:"m",webm:!1,description:"Contains elements that will be used to compute the signature."},32437:{name:"Signature",level:1,type:"b",webm:!1,description:"The signature of the data (until a new."},32421:{name:"SignaturePublicKey",level:1,type:"b",webm:!1,description:"The public key to use with the algorithm (in the case of a PKI-based signature)."},32410:{name:"SignatureHash",level:1,type:"u",webm:!1,description:"Hash algorithm used (1=SHA1-160, 2=MD5)."},32394:{name:"SignatureAlgo",level:1,type:"u",webm:!1,description:"Signature algorithm used (1=RSA, 2=elliptic)."},458458727:{name:"SignatureSlot",level:-1,type:"m",multiple:!0,webm:!1,description:"Contain signature of some (coming) elements in the stream."},191:{name:"CRC-32",level:-1,type:"b",minver:1,webm:!1,description:"The CRC is computed on all the data of the Master element it's in. The CRC element should be the first in it's parent master for easier reading. All level 1 elements should include a CRC-32. The CRC in use is the IEEE CRC32 Little Endian",crc:!0},236:{name:"Void",level:-1,type:"b",minver:1,description:"Used to void damaged data, to avoid unexpected behaviors when using damaged data. The content is discarded. Also used to reserve space in a sub-element for later use."},17139:{name:"EBMLMaxSizeLength",level:1,type:"u",mandatory:!0,default:8,minver:1,description:"The maximum length of the sizes you'll find in this file (8 or less in Matroska). This does not override the element size indicated at the beginning of an element. Elements that have an indicated size which is larger than what is allowed by EBMLMaxSizeLength shall be considered invalid."},17138:{name:"EBMLMaxIDLength",level:1,type:"u",mandatory:!0,default:4,minver:1,description:"The maximum length of the IDs you'll find in this file (4 or less in Matroska)."},17143:{name:"EBMLReadVersion",level:1,type:"u",mandatory:!0,default:1,minver:1,description:"The minimum EBML version a parser has to support to read this file."},440786851:{name:"EBML",level:"0",type:"m",mandatory:!0,multiple:!0,minver:1,description:"Set the EBML characteristics of the data to follow. Each EBML document has to start with this."},21936:{name:"Colour",level:"4",type:"m",mandatory:!0,multiple:!0,description:"Settings describing the colour format."},21937:{name:"MatrixCoefficients",level:"5",type:"u",mandatory:!0,multiple:!0,description:"The Matrix Coefficients of the video used to derive luma and chroma values from red, green, and blue color primaries. For clarity, the value and meanings for MatrixCoefficients are adopted from Table 4 of ISO/IEC 23001-8:2016 or ITU-T H.273."},21945:{name:"Range",level:"5",type:"u",mandatory:!0,multiple:!0,description:"Clipping of the color ranges."},21946:{name:"TransferCharacteristics",level:"5",type:"u",mandatory:!0,multiple:!0,description:"The transfer characteristics of the video."},21947:{name:"Primaries",level:"5",type:"u",mandatory:!0,multiple:!0,description:"The colour primaries of the video. For clarity, the value and meanings for Primaries are adopted from Table 2 of ISO/IEC 23091-4 or ITU-T H.273."}}),ebmlID}var hasRequiredEBMLEncoder;function requireEBMLEncoder(){if(hasRequiredEBMLEncoder)return EBMLEncoder;hasRequiredEBMLEncoder=1,Object.defineProperty(EBMLEncoder,"__esModule",{value:!0});var O=requireTools(),N=requireTools(),I=requireEbmlID(),D=function(){function f(){this._schema=I.byEbmlID,this._buffers=[],this._stack=[]}return f.prototype.encode=function(k){var i=this;return O.concat(k.reduce(function(c,$){return c.concat(i.encodeChunk($))},[])).buffer},f.prototype.encodeChunk=function(k){return k.type==="m"?k.isEnd?this.endTag(k):this.startTag(k):(k.data=N.Buffer.from(k.data),this.writeTag(k)),this.flush()},f.prototype.flush=function(){var k=this._buffers;return this._buffers=[],k},f.prototype.getSchemaInfo=function(k){for(var i=Object.keys(this._schema).map(Number),c=0;c<i.length;c++){var $=i[c];if(this._schema[$].name===k)return new N.Buffer($.toString(16),"hex")}return null},f.prototype.writeTag=function(k){var i=k.name,c=this.getSchemaInfo(i),$=k.data;if(c==null)throw new Error("No schema entry found for "+i);var C=O.encodeTag(c,$);if(this._stack.length>0){var M=this._stack[this._stack.length-1];M.children.push({tagId:c,elm:k,children:[],data:C});return}this._buffers=this._buffers.concat(C)},f.prototype.startTag=function(k){var i=k.name,c=this.getSchemaInfo(i);if(c==null)throw new Error("No schema entry found for "+i);if(k.unknownSize){var $=O.encodeTag(c,new N.Buffer(0),k.unknownSize);this._buffers=this._buffers.concat($);return}var C={tagId:c,elm:k,children:[],data:null};this._stack.length>0&&this._stack[this._stack.length-1].children.push(C),this._stack.push(C)},f.prototype.endTag=function(k){k.name;var i=this._stack.pop();if(i==null)throw new Error("EBML structure is broken");if(i.elm.name!==k.name)throw new Error("EBML structure is broken");var c=i.children.reduce(function(C,M){if(M.data===null)throw new Error("EBML structure is broken");return C.concat(M.data)},[]),$=O.concat(c);i.elm.type==="m"?i.data=O.encodeTag(i.tagId,$,i.elm.unknownSize):i.data=O.encodeTag(i.tagId,$),this._stack.length<1&&(this._buffers=this._buffers.concat(i.data))},f}();return EBMLEncoder.default=D,EBMLEncoder}var buffer={},base64Js={},hasRequiredBase64Js;function requireBase64Js(){if(hasRequiredBase64Js)return base64Js;hasRequiredBase64Js=1,base64Js.byteLength=c,base64Js.toByteArray=C,base64Js.fromByteArray=J;for(var O=[],N=[],I=typeof Uint8Array<"u"?Uint8Array:Array,D="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,k=D.length;f<k;++f)O[f]=D[f],N[D.charCodeAt(f)]=f;N[45]=62,N[95]=63;function i(z){var Q=z.length;if(Q%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var ee=z.indexOf("=");ee===-1&&(ee=Q);var Y=ee===Q?0:4-ee%4;return[ee,Y]}function c(z){var Q=i(z),ee=Q[0],Y=Q[1];return(ee+Y)*3/4-Y}function $(z,Q,ee){return(Q+ee)*3/4-ee}function C(z){var Q,ee=i(z),Y=ee[0],te=ee[1],ie=new I($(z,Y,te)),ye=0,re=te>0?Y-4:Y,de;for(de=0;de<re;de+=4)Q=N[z.charCodeAt(de)]<<18|N[z.charCodeAt(de+1)]<<12|N[z.charCodeAt(de+2)]<<6|N[z.charCodeAt(de+3)],ie[ye++]=Q>>16&255,ie[ye++]=Q>>8&255,ie[ye++]=Q&255;return te===2&&(Q=N[z.charCodeAt(de)]<<2|N[z.charCodeAt(de+1)]>>4,ie[ye++]=Q&255),te===1&&(Q=N[z.charCodeAt(de)]<<10|N[z.charCodeAt(de+1)]<<4|N[z.charCodeAt(de+2)]>>2,ie[ye++]=Q>>8&255,ie[ye++]=Q&255),ie}function M(z){return O[z>>18&63]+O[z>>12&63]+O[z>>6&63]+O[z&63]}function Z(z,Q,ee){for(var Y,te=[],ie=Q;ie<ee;ie+=3)Y=(z[ie]<<16&16711680)+(z[ie+1]<<8&65280)+(z[ie+2]&255),te.push(M(Y));return te.join("")}function J(z){for(var Q,ee=z.length,Y=ee%3,te=[],ie=16383,ye=0,re=ee-Y;ye<re;ye+=ie)te.push(Z(z,ye,ye+ie>re?re:ye+ie));return Y===1?(Q=z[ee-1],te.push(O[Q>>2]+O[Q<<4&63]+"==")):Y===2&&(Q=(z[ee-2]<<8)+z[ee-1],te.push(O[Q>>10]+O[Q>>4&63]+O[Q<<2&63]+"=")),te.join("")}return base64Js}var ieee754={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var hasRequiredIeee754;function requireIeee754(){return hasRequiredIeee754||(hasRequiredIeee754=1,ieee754.read=function(O,N,I,D,f){var k,i,c=f*8-D-1,$=(1<<c)-1,C=$>>1,M=-7,Z=I?f-1:0,J=I?-1:1,z=O[N+Z];for(Z+=J,k=z&(1<<-M)-1,z>>=-M,M+=c;M>0;k=k*256+O[N+Z],Z+=J,M-=8);for(i=k&(1<<-M)-1,k>>=-M,M+=D;M>0;i=i*256+O[N+Z],Z+=J,M-=8);if(k===0)k=1-C;else{if(k===$)return i?NaN:(z?-1:1)*(1/0);i=i+Math.pow(2,D),k=k-C}return(z?-1:1)*i*Math.pow(2,k-D)},ieee754.write=function(O,N,I,D,f,k){var i,c,$,C=k*8-f-1,M=(1<<C)-1,Z=M>>1,J=f===23?Math.pow(2,-24)-Math.pow(2,-77):0,z=D?0:k-1,Q=D?1:-1,ee=N<0||N===0&&1/N<0?1:0;for(N=Math.abs(N),isNaN(N)||N===1/0?(c=isNaN(N)?1:0,i=M):(i=Math.floor(Math.log(N)/Math.LN2),N*($=Math.pow(2,-i))<1&&(i--,$*=2),i+Z>=1?N+=J/$:N+=J*Math.pow(2,1-Z),N*$>=2&&(i++,$/=2),i+Z>=M?(c=0,i=M):i+Z>=1?(c=(N*$-1)*Math.pow(2,f),i=i+Z):(c=N*Math.pow(2,Z-1)*Math.pow(2,f),i=0));f>=8;O[I+z]=c&255,z+=Q,c/=256,f-=8);for(i=i<<f|c,C+=f;C>0;O[I+z]=i&255,z+=Q,i/=256,C-=8);O[I+z-Q]|=ee*128}),ieee754}/*!
|
|
3
|
+
`},writer$1}var hasRequiredLib$1;function requireLib$1(){if(hasRequiredLib$1)return lib$1;hasRequiredLib$1=1;var O=requireParser(),N=requireWriter$1(),I=requireGrammar();return lib$1.grammar=I,lib$1.write=N,lib$1.parse=O.parse,lib$1.parseParams=O.parseParams,lib$1.parseFmtpConfig=O.parseFmtpConfig,lib$1.parsePayloads=O.parsePayloads,lib$1.parseRemoteCandidates=O.parseRemoteCandidates,lib$1.parseImageAttributes=O.parseImageAttributes,lib$1.parseSimulcastStreamList=O.parseSimulcastStreamList,lib$1}var libExports$1=requireLib$1();class VideoMediaContext{constructor(N){ie(this,"kind","video");ie(this,"stream",new MediaStream);ie(this,"stop",()=>{const N=this.stream.getTracks();for(const I of N)I.stop(),this.stream.removeTrack(I)});ie(this,"replaceStream",N=>{const I=this.stream,D=I.getTracks();for(const k of D)I.removeTrack(k);const[f]=N.getVideoTracks();f&&I.addTrack(f)});ie(this,"getStream",()=>this.stream);ie(this,"getTrack",()=>this.stream.getTracks()[0]);this.stream.addTrack(N)}}const enum_roomState={ready:"已就绪",checkAuth:"正在鉴权",connecting:"连接中",connected:"已连接",reconnect:"正在重新连接",disconnected:"已断开",failed:"连接错误",closed:"已关闭"};ht(enum_roomState);var y$1=Object.defineProperty,B=O=>{throw TypeError(O)},v=(O,N,I)=>N in O?y$1(O,N,{enumerable:!0,configurable:!0,writable:!0,value:I}):O[N]=I,l$1=(O,N,I)=>v(O,typeof N!="symbol"?N+"":N,I),T=(O,N,I)=>N.has(O)||B("Cannot "+I),t=(O,N,I)=>(T(O,N,"read from private field"),I?I.call(O):N.get(O)),o=(O,N,I)=>N.has(O)?B("Cannot add the same private member more than once"):N instanceof WeakSet?N.add(O):N.set(O,I),r=(O,N,I,D)=>(T(O,N,"write to private field"),N.set(O,I),I),s$1,a$1,h,u$1,m$1,p$1,d$1,x$1,g$1,b,w;class S{constructor(N){o(this,s$1,{url:"",binaryType:"blob",timeout:6*1e3,debug:!1,autoConnect:!1,reconnectCount:-1,reconnectTime:60*1e3,reconnectIntervalTime:5e3,heartbeatIntervalTime:1e4,checkReconnect:I=>!0,onReconnectSuccess:async I=>{},onReconnectStop:async I=>{},getHeartbeatMsg:()=>JSON.stringify({event:"heartbeat"}),onMessage:I=>{}}),l$1(this,"ws"),o(this,a$1,-1),o(this,h,-1),o(this,u$1,0),o(this,m$1,0),o(this,p$1,0),o(this,d$1,!1),l$1(this,"connect",()=>new Promise(async(I,D)=>{this.ws=new WebSocket(t(this,s$1).url),this.ws.binaryType=t(this,s$1).binaryType,this.ws.addEventListener("message",t(this,g$1)),this.ws.addEventListener("open",f=>{clearTimeout(t(this,u$1)),r(this,a$1,t(this,s$1).reconnectCount),r(this,h,-1),t(this,b).call(this),t(this,s$1).debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;padding:16px 0;","------->pr-ws: connect is success.",this.ws),I(f)}),this.ws.addEventListener("error",f=>{clearTimeout(t(this,u$1)),t(this,s$1).debug&&console.error("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;padding:16px 0;","------->pr-ws: connect is error.",f),D(f)}),this.ws.addEventListener("close",f=>{if(t(this,s$1).debug&&console.info("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;padding:16px 0;",`------->pr-ws: connect is close. code: ${f.code}, permanentClosed is ${t(this,d$1)}.`,f),t(this,w).call(this),!t(this,d$1))return this.reconnect(f);this.ws=void 0}),r(this,u$1,window.setTimeout(()=>{t(this,s$1).debug&&console.info("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;padding:16px 0;","------->pr-ws: connect is timeout.",this),D("connect is timeout.")},t(this,s$1).timeout))})),l$1(this,"reconnect",async I=>new Promise(D=>{t(this,s$1).debug&&console.info("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;padding:16px 0;","------->pr-ws: await reconnect.");const f=k=>{t(this,s$1).debug&&console.info("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;padding:16px 0;",`------->pr-ws: ${k}`),t(this,s$1).onReconnectStop({msg:k}),D(k)};if(t(this,x$1).call(this)===!1)return f("stop reconnect. exceed maxReconnectionTime.");if(t(this,a$1)!==-1&&t(this,a$1)===0)return f("stop reconnect. surplusReconnectCount is 0.");if(!t(this,s$1).checkReconnect(I))return f("stop reconnect. checkReconnect is false.");t(this,s$1).debug&&console.info("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;padding:16px 0;",`------->pr-ws: await ${t(this,s$1).reconnectIntervalTime}ms run reconnect. surplusReconnectCount is ${t(this,a$1)}`,I),r(this,m$1,window.setTimeout(async()=>{r(this,a$1,Math.max(-1,t(this,a$1)-1)),await this.connect();try{await t(this,s$1).onReconnectSuccess(this.ws)}catch(k){console.error("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->pr-ws: onReconnectSuccess is error",k)}D(!0)},t(this,s$1).reconnectIntervalTime))})),l$1(this,"sendMessage",async I=>{var D;(!this.ws||this.ws.readyState!==1)&&(t(this,s$1).debug&&console.warn("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;padding:16px 0;","------->pr-ws: ws is not ready."),t(this,s$1).autoConnect&&(t(this,s$1).debug&&console.warn("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;padding:16px 0;","------->pr-ws: await ws connect."),await this.connect())),(D=this.ws)==null||D.send(I)}),l$1(this,"close",async(I=1e3,D="correctly close.")=>{var f;this.ws&&(r(this,d$1,!0),t(this,w).call(this),(f=this.ws)==null||f.close(I,D))}),o(this,x$1,()=>{const I=Date.now();return t(this,h)===-1&&r(this,h,I+t(this,s$1).reconnectTime),!(I>t(this,h))}),o(this,g$1,I=>{const{data:D}=I;t(this,s$1).onMessage(D)}),o(this,b,()=>{r(this,p$1,window.setInterval(()=>{const I=t(this,s$1).getHeartbeatMsg();I&&this.sendMessage(I)},t(this,s$1).heartbeatIntervalTime))}),o(this,w,()=>{clearInterval(t(this,m$1)),clearInterval(t(this,p$1))}),r(this,s$1,{...t(this,s$1),...N}),r(this,a$1,t(this,s$1).reconnectCount)}}s$1=new WeakMap,a$1=new WeakMap,h=new WeakMap,u$1=new WeakMap,m$1=new WeakMap,p$1=new WeakMap,d$1=new WeakMap,x$1=new WeakMap,g$1=new WeakMap,b=new WeakMap,w=new WeakMap;var indexMinimal={},minimal$1={},aspromise,hasRequiredAspromise;function requireAspromise(){if(hasRequiredAspromise)return aspromise;hasRequiredAspromise=1,aspromise=O;function O(N,I){for(var D=new Array(arguments.length-1),f=0,k=2,i=!0;k<arguments.length;)D[f++]=arguments[k++];return new Promise(function($,C){D[f]=function(J){if(i)if(i=!1,J)C(J);else{for(var Z=new Array(arguments.length-1),z=0;z<Z.length;)Z[z++]=arguments[z];$.apply(null,Z)}};try{N.apply(I||null,D)}catch(M){i&&(i=!1,C(M))}})}return aspromise}var base64={},hasRequiredBase64;function requireBase64(){return hasRequiredBase64||(hasRequiredBase64=1,function(O){var N=O;N.length=function(c){var $=c.length;if(!$)return 0;for(var C=0;--$%4>1&&c.charAt($)==="=";)++C;return Math.ceil(c.length*3)/4-C};for(var I=new Array(64),D=new Array(123),f=0;f<64;)D[I[f]=f<26?f+65:f<52?f+71:f<62?f-4:f-59|43]=f++;N.encode=function(c,$,C){for(var M=null,J=[],Z=0,z=0,X;$<C;){var re=c[$++];switch(z){case 0:J[Z++]=I[re>>2],X=(re&3)<<4,z=1;break;case 1:J[Z++]=I[X|re>>4],X=(re&15)<<2,z=2;break;case 2:J[Z++]=I[X|re>>6],J[Z++]=I[re&63],z=0;break}Z>8191&&((M||(M=[])).push(String.fromCharCode.apply(String,J)),Z=0)}return z&&(J[Z++]=I[X],J[Z++]=61,z===1&&(J[Z++]=61)),M?(Z&&M.push(String.fromCharCode.apply(String,J.slice(0,Z))),M.join("")):String.fromCharCode.apply(String,J.slice(0,Z))};var k="invalid encoding";N.decode=function(c,$,C){for(var M=C,J=0,Z,z=0;z<c.length;){var X=c.charCodeAt(z++);if(X===61&&J>1)break;if((X=D[X])===void 0)throw Error(k);switch(J){case 0:Z=X,J=1;break;case 1:$[C++]=Z<<2|(X&48)>>4,Z=X,J=2;break;case 2:$[C++]=(Z&15)<<4|(X&60)>>2,Z=X,J=3;break;case 3:$[C++]=(Z&3)<<6|X,J=0;break}}if(J===1)throw Error(k);return C-M},N.test=function(c){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(c)}}(base64)),base64}var eventemitter,hasRequiredEventemitter;function requireEventemitter(){if(hasRequiredEventemitter)return eventemitter;hasRequiredEventemitter=1,eventemitter=O;function O(){this._listeners={}}return O.prototype.on=function(I,D,f){return(this._listeners[I]||(this._listeners[I]=[])).push({fn:D,ctx:f||this}),this},O.prototype.off=function(I,D){if(I===void 0)this._listeners={};else if(D===void 0)this._listeners[I]=[];else for(var f=this._listeners[I],k=0;k<f.length;)f[k].fn===D?f.splice(k,1):++k;return this},O.prototype.emit=function(I){var D=this._listeners[I];if(D){for(var f=[],k=1;k<arguments.length;)f.push(arguments[k++]);for(k=0;k<D.length;)D[k].fn.apply(D[k++].ctx,f)}return this},eventemitter}var float,hasRequiredFloat;function requireFloat(){if(hasRequiredFloat)return float;hasRequiredFloat=1,float=O(O);function O(k){return typeof Float32Array<"u"?function(){var i=new Float32Array([-0]),c=new Uint8Array(i.buffer),$=c[3]===128;function C(z,X,re){i[0]=z,X[re]=c[0],X[re+1]=c[1],X[re+2]=c[2],X[re+3]=c[3]}function M(z,X,re){i[0]=z,X[re]=c[3],X[re+1]=c[2],X[re+2]=c[1],X[re+3]=c[0]}k.writeFloatLE=$?C:M,k.writeFloatBE=$?M:C;function J(z,X){return c[0]=z[X],c[1]=z[X+1],c[2]=z[X+2],c[3]=z[X+3],i[0]}function Z(z,X){return c[3]=z[X],c[2]=z[X+1],c[1]=z[X+2],c[0]=z[X+3],i[0]}k.readFloatLE=$?J:Z,k.readFloatBE=$?Z:J}():function(){function i($,C,M,J){var Z=C<0?1:0;if(Z&&(C=-C),C===0)$(1/C>0?0:2147483648,M,J);else if(isNaN(C))$(2143289344,M,J);else if(C>34028234663852886e22)$((Z<<31|2139095040)>>>0,M,J);else if(C<11754943508222875e-54)$((Z<<31|Math.round(C/1401298464324817e-60))>>>0,M,J);else{var z=Math.floor(Math.log(C)/Math.LN2),X=Math.round(C*Math.pow(2,-z)*8388608)&8388607;$((Z<<31|z+127<<23|X)>>>0,M,J)}}k.writeFloatLE=i.bind(null,N),k.writeFloatBE=i.bind(null,I);function c($,C,M){var J=$(C,M),Z=(J>>31)*2+1,z=J>>>23&255,X=J&8388607;return z===255?X?NaN:Z*(1/0):z===0?Z*1401298464324817e-60*X:Z*Math.pow(2,z-150)*(X+8388608)}k.readFloatLE=c.bind(null,D),k.readFloatBE=c.bind(null,f)}(),typeof Float64Array<"u"?function(){var i=new Float64Array([-0]),c=new Uint8Array(i.buffer),$=c[7]===128;function C(z,X,re){i[0]=z,X[re]=c[0],X[re+1]=c[1],X[re+2]=c[2],X[re+3]=c[3],X[re+4]=c[4],X[re+5]=c[5],X[re+6]=c[6],X[re+7]=c[7]}function M(z,X,re){i[0]=z,X[re]=c[7],X[re+1]=c[6],X[re+2]=c[5],X[re+3]=c[4],X[re+4]=c[3],X[re+5]=c[2],X[re+6]=c[1],X[re+7]=c[0]}k.writeDoubleLE=$?C:M,k.writeDoubleBE=$?M:C;function J(z,X){return c[0]=z[X],c[1]=z[X+1],c[2]=z[X+2],c[3]=z[X+3],c[4]=z[X+4],c[5]=z[X+5],c[6]=z[X+6],c[7]=z[X+7],i[0]}function Z(z,X){return c[7]=z[X],c[6]=z[X+1],c[5]=z[X+2],c[4]=z[X+3],c[3]=z[X+4],c[2]=z[X+5],c[1]=z[X+6],c[0]=z[X+7],i[0]}k.readDoubleLE=$?J:Z,k.readDoubleBE=$?Z:J}():function(){function i($,C,M,J,Z,z){var X=J<0?1:0;if(X&&(J=-J),J===0)$(0,Z,z+C),$(1/J>0?0:2147483648,Z,z+M);else if(isNaN(J))$(0,Z,z+C),$(2146959360,Z,z+M);else if(J>17976931348623157e292)$(0,Z,z+C),$((X<<31|2146435072)>>>0,Z,z+M);else{var re;if(J<22250738585072014e-324)re=J/5e-324,$(re>>>0,Z,z+C),$((X<<31|re/4294967296)>>>0,Z,z+M);else{var oe=Math.floor(Math.log(J)/Math.LN2);oe===1024&&(oe=1023),re=J*Math.pow(2,-oe),$(re*4503599627370496>>>0,Z,z+C),$((X<<31|oe+1023<<20|re*1048576&1048575)>>>0,Z,z+M)}}}k.writeDoubleLE=i.bind(null,N,0,4),k.writeDoubleBE=i.bind(null,I,4,0);function c($,C,M,J,Z){var z=$(J,Z+C),X=$(J,Z+M),re=(X>>31)*2+1,oe=X>>>20&2047,ne=4294967296*(X&1048575)+z;return oe===2047?ne?NaN:re*(1/0):oe===0?re*5e-324*ne:re*Math.pow(2,oe-1075)*(ne+4503599627370496)}k.readDoubleLE=c.bind(null,D,0,4),k.readDoubleBE=c.bind(null,f,4,0)}(),k}function N(k,i,c){i[c]=k&255,i[c+1]=k>>>8&255,i[c+2]=k>>>16&255,i[c+3]=k>>>24}function I(k,i,c){i[c]=k>>>24,i[c+1]=k>>>16&255,i[c+2]=k>>>8&255,i[c+3]=k&255}function D(k,i){return(k[i]|k[i+1]<<8|k[i+2]<<16|k[i+3]<<24)>>>0}function f(k,i){return(k[i]<<24|k[i+1]<<16|k[i+2]<<8|k[i+3])>>>0}return float}var inquire_1,hasRequiredInquire;function requireInquire(){if(hasRequiredInquire)return inquire_1;hasRequiredInquire=1,inquire_1=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(O){}return null}return inquire_1}var utf8={},hasRequiredUtf8;function requireUtf8(){return hasRequiredUtf8||(hasRequiredUtf8=1,function(O){var N=O;N.length=function(D){for(var f=0,k=0,i=0;i<D.length;++i)k=D.charCodeAt(i),k<128?f+=1:k<2048?f+=2:(k&64512)===55296&&(D.charCodeAt(i+1)&64512)===56320?(++i,f+=4):f+=3;return f},N.read=function(D,f,k){var i=k-f;if(i<1)return"";for(var c=null,$=[],C=0,M;f<k;)M=D[f++],M<128?$[C++]=M:M>191&&M<224?$[C++]=(M&31)<<6|D[f++]&63:M>239&&M<365?(M=((M&7)<<18|(D[f++]&63)<<12|(D[f++]&63)<<6|D[f++]&63)-65536,$[C++]=55296+(M>>10),$[C++]=56320+(M&1023)):$[C++]=(M&15)<<12|(D[f++]&63)<<6|D[f++]&63,C>8191&&((c||(c=[])).push(String.fromCharCode.apply(String,$)),C=0);return c?(C&&c.push(String.fromCharCode.apply(String,$.slice(0,C))),c.join("")):String.fromCharCode.apply(String,$.slice(0,C))},N.write=function(D,f,k){for(var i=k,c,$,C=0;C<D.length;++C)c=D.charCodeAt(C),c<128?f[k++]=c:c<2048?(f[k++]=c>>6|192,f[k++]=c&63|128):(c&64512)===55296&&(($=D.charCodeAt(C+1))&64512)===56320?(c=65536+((c&1023)<<10)+($&1023),++C,f[k++]=c>>18|240,f[k++]=c>>12&63|128,f[k++]=c>>6&63|128,f[k++]=c&63|128):(f[k++]=c>>12|224,f[k++]=c>>6&63|128,f[k++]=c&63|128);return k-i}}(utf8)),utf8}var pool_1,hasRequiredPool;function requirePool(){if(hasRequiredPool)return pool_1;hasRequiredPool=1,pool_1=O;function O(N,I,D){var f=D||8192,k=f>>>1,i=null,c=f;return function(C){if(C<1||C>k)return N(C);c+C>f&&(i=N(f),c=0);var M=I.call(i,c,c+=C);return c&7&&(c=(c|7)+1),M}}return pool_1}var longbits,hasRequiredLongbits;function requireLongbits(){if(hasRequiredLongbits)return longbits;hasRequiredLongbits=1,longbits=N;var O=requireMinimal$1();function N(k,i){this.lo=k>>>0,this.hi=i>>>0}var I=N.zero=new N(0,0);I.toNumber=function(){return 0},I.zzEncode=I.zzDecode=function(){return this},I.length=function(){return 1};var D=N.zeroHash="\0\0\0\0\0\0\0\0";N.fromNumber=function(i){if(i===0)return I;var c=i<0;c&&(i=-i);var $=i>>>0,C=(i-$)/4294967296>>>0;return c&&(C=~C>>>0,$=~$>>>0,++$>4294967295&&($=0,++C>4294967295&&(C=0))),new N($,C)},N.from=function(i){if(typeof i=="number")return N.fromNumber(i);if(O.isString(i))if(O.Long)i=O.Long.fromString(i);else return N.fromNumber(parseInt(i,10));return i.low||i.high?new N(i.low>>>0,i.high>>>0):I},N.prototype.toNumber=function(i){if(!i&&this.hi>>>31){var c=~this.lo+1>>>0,$=~this.hi>>>0;return c||($=$+1>>>0),-(c+$*4294967296)}return this.lo+this.hi*4294967296},N.prototype.toLong=function(i){return O.Long?new O.Long(this.lo|0,this.hi|0,!!i):{low:this.lo|0,high:this.hi|0,unsigned:!!i}};var f=String.prototype.charCodeAt;return N.fromHash=function(i){return i===D?I:new N((f.call(i,0)|f.call(i,1)<<8|f.call(i,2)<<16|f.call(i,3)<<24)>>>0,(f.call(i,4)|f.call(i,5)<<8|f.call(i,6)<<16|f.call(i,7)<<24)>>>0)},N.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},N.prototype.zzEncode=function(){var i=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^i)>>>0,this.lo=(this.lo<<1^i)>>>0,this},N.prototype.zzDecode=function(){var i=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^i)>>>0,this.hi=(this.hi>>>1^i)>>>0,this},N.prototype.length=function(){var i=this.lo,c=(this.lo>>>28|this.hi<<4)>>>0,$=this.hi>>>24;return $===0?c===0?i<16384?i<128?1:2:i<2097152?3:4:c<16384?c<128?5:6:c<2097152?7:8:$<128?9:10},longbits}var hasRequiredMinimal$1;function requireMinimal$1(){return hasRequiredMinimal$1||(hasRequiredMinimal$1=1,function(O){var N=O;N.asPromise=requireAspromise(),N.base64=requireBase64(),N.EventEmitter=requireEventemitter(),N.float=requireFloat(),N.inquire=requireInquire(),N.utf8=requireUtf8(),N.pool=requirePool(),N.LongBits=requireLongbits(),N.isNode=!!(typeof commonjsGlobal<"u"&&commonjsGlobal&&commonjsGlobal.process&&commonjsGlobal.process.versions&&commonjsGlobal.process.versions.node),N.global=N.isNode&&commonjsGlobal||typeof window<"u"&&window||typeof self<"u"&&self||minimal$1,N.emptyArray=Object.freeze?Object.freeze([]):[],N.emptyObject=Object.freeze?Object.freeze({}):{},N.isInteger=Number.isInteger||function(k){return typeof k=="number"&&isFinite(k)&&Math.floor(k)===k},N.isString=function(k){return typeof k=="string"||k instanceof String},N.isObject=function(k){return k&&typeof k=="object"},N.isset=N.isSet=function(k,i){var c=k[i];return c!=null&&k.hasOwnProperty(i)?typeof c!="object"||(Array.isArray(c)?c.length:Object.keys(c).length)>0:!1},N.Buffer=function(){try{var f=N.inquire("buffer").Buffer;return f.prototype.utf8Write?f:null}catch{return null}}(),N._Buffer_from=null,N._Buffer_allocUnsafe=null,N.newBuffer=function(k){return typeof k=="number"?N.Buffer?N._Buffer_allocUnsafe(k):new N.Array(k):N.Buffer?N._Buffer_from(k):typeof Uint8Array>"u"?k:new Uint8Array(k)},N.Array=typeof Uint8Array<"u"?Uint8Array:Array,N.Long=N.global.dcodeIO&&N.global.dcodeIO.Long||N.global.Long||N.inquire("long"),N.key2Re=/^true|false|0|1$/,N.key32Re=/^-?(?:0|[1-9][0-9]*)$/,N.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,N.longToHash=function(k){return k?N.LongBits.from(k).toHash():N.LongBits.zeroHash},N.longFromHash=function(k,i){var c=N.LongBits.fromHash(k);return N.Long?N.Long.fromBits(c.lo,c.hi,i):c.toNumber(!!i)};function I(f,k,i){for(var c=Object.keys(k),$=0;$<c.length;++$)(f[c[$]]===void 0||!i)&&(f[c[$]]=k[c[$]]);return f}N.merge=I,N.lcFirst=function(k){return k.charAt(0).toLowerCase()+k.substring(1)};function D(f){function k(i,c){if(!(this instanceof k))return new k(i,c);Object.defineProperty(this,"message",{get:function(){return i}}),Error.captureStackTrace?Error.captureStackTrace(this,k):Object.defineProperty(this,"stack",{value:new Error().stack||""}),c&&I(this,c)}return k.prototype=Object.create(Error.prototype,{constructor:{value:k,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return f},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),k}N.newError=D,N.ProtocolError=D("ProtocolError"),N.oneOfGetter=function(k){for(var i={},c=0;c<k.length;++c)i[k[c]]=1;return function(){for(var $=Object.keys(this),C=$.length-1;C>-1;--C)if(i[$[C]]===1&&this[$[C]]!==void 0&&this[$[C]]!==null)return $[C]}},N.oneOfSetter=function(k){return function(i){for(var c=0;c<k.length;++c)k[c]!==i&&delete this[k[c]]}},N.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},N._configure=function(){var f=N.Buffer;if(!f){N._Buffer_from=N._Buffer_allocUnsafe=null;return}N._Buffer_from=f.from!==Uint8Array.from&&f.from||function(i,c){return new f(i,c)},N._Buffer_allocUnsafe=f.allocUnsafe||function(i){return new f(i)}}}(minimal$1)),minimal$1}var writer,hasRequiredWriter;function requireWriter(){if(hasRequiredWriter)return writer;hasRequiredWriter=1,writer=$;var O=requireMinimal$1(),N,I=O.LongBits,D=O.base64,f=O.utf8;function k(oe,ne,de){this.fn=oe,this.len=ne,this.next=void 0,this.val=de}function i(){}function c(oe){this.head=oe.head,this.tail=oe.tail,this.len=oe.len,this.next=oe.states}function $(){this.len=0,this.head=new k(i,0,0),this.tail=this.head,this.states=null}var C=function(){return O.Buffer?function(){return($.create=function(){return new N})()}:function(){return new $}};$.create=C(),$.alloc=function(ne){return new O.Array(ne)},O.Array!==Array&&($.alloc=O.pool($.alloc,O.Array.prototype.subarray)),$.prototype._push=function(ne,de,ye){return this.tail=this.tail.next=new k(ne,de,ye),this.len+=de,this};function M(oe,ne,de){ne[de]=oe&255}function J(oe,ne,de){for(;oe>127;)ne[de++]=oe&127|128,oe>>>=7;ne[de]=oe}function Z(oe,ne){this.len=oe,this.next=void 0,this.val=ne}Z.prototype=Object.create(k.prototype),Z.prototype.fn=J,$.prototype.uint32=function(ne){return this.len+=(this.tail=this.tail.next=new Z((ne=ne>>>0)<128?1:ne<16384?2:ne<2097152?3:ne<268435456?4:5,ne)).len,this},$.prototype.int32=function(ne){return ne<0?this._push(z,10,I.fromNumber(ne)):this.uint32(ne)},$.prototype.sint32=function(ne){return this.uint32((ne<<1^ne>>31)>>>0)};function z(oe,ne,de){for(;oe.hi;)ne[de++]=oe.lo&127|128,oe.lo=(oe.lo>>>7|oe.hi<<25)>>>0,oe.hi>>>=7;for(;oe.lo>127;)ne[de++]=oe.lo&127|128,oe.lo=oe.lo>>>7;ne[de++]=oe.lo}$.prototype.uint64=function(ne){var de=I.from(ne);return this._push(z,de.length(),de)},$.prototype.int64=$.prototype.uint64,$.prototype.sint64=function(ne){var de=I.from(ne).zzEncode();return this._push(z,de.length(),de)},$.prototype.bool=function(ne){return this._push(M,1,ne?1:0)};function X(oe,ne,de){ne[de]=oe&255,ne[de+1]=oe>>>8&255,ne[de+2]=oe>>>16&255,ne[de+3]=oe>>>24}$.prototype.fixed32=function(ne){return this._push(X,4,ne>>>0)},$.prototype.sfixed32=$.prototype.fixed32,$.prototype.fixed64=function(ne){var de=I.from(ne);return this._push(X,4,de.lo)._push(X,4,de.hi)},$.prototype.sfixed64=$.prototype.fixed64,$.prototype.float=function(ne){return this._push(O.float.writeFloatLE,4,ne)},$.prototype.double=function(ne){return this._push(O.float.writeDoubleLE,8,ne)};var re=O.Array.prototype.set?function(ne,de,ye){de.set(ne,ye)}:function(ne,de,ye){for(var Q=0;Q<ne.length;++Q)de[ye+Q]=ne[Q]};return $.prototype.bytes=function(ne){var de=ne.length>>>0;if(!de)return this._push(M,1,0);if(O.isString(ne)){var ye=$.alloc(de=D.length(ne));D.decode(ne,ye,0),ne=ye}return this.uint32(de)._push(re,de,ne)},$.prototype.string=function(ne){var de=f.length(ne);return de?this.uint32(de)._push(f.write,de,ne):this._push(M,1,0)},$.prototype.fork=function(){return this.states=new c(this),this.head=this.tail=new k(i,0,0),this.len=0,this},$.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new k(i,0,0),this.len=0),this},$.prototype.ldelim=function(){var ne=this.head,de=this.tail,ye=this.len;return this.reset().uint32(ye),ye&&(this.tail.next=ne.next,this.tail=de,this.len+=ye),this},$.prototype.finish=function(){for(var ne=this.head.next,de=this.constructor.alloc(this.len),ye=0;ne;)ne.fn(ne.val,de,ye),ye+=ne.len,ne=ne.next;return de},$._configure=function(oe){N=oe,$.create=C(),N._configure()},writer}var writer_buffer,hasRequiredWriter_buffer;function requireWriter_buffer(){if(hasRequiredWriter_buffer)return writer_buffer;hasRequiredWriter_buffer=1,writer_buffer=I;var O=requireWriter();(I.prototype=Object.create(O.prototype)).constructor=I;var N=requireMinimal$1();function I(){O.call(this)}I._configure=function(){I.alloc=N._Buffer_allocUnsafe,I.writeBytesBuffer=N.Buffer&&N.Buffer.prototype instanceof Uint8Array&&N.Buffer.prototype.set.name==="set"?function(k,i,c){i.set(k,c)}:function(k,i,c){if(k.copy)k.copy(i,c,0,k.length);else for(var $=0;$<k.length;)i[c++]=k[$++]}},I.prototype.bytes=function(k){N.isString(k)&&(k=N._Buffer_from(k,"base64"));var i=k.length>>>0;return this.uint32(i),i&&this._push(I.writeBytesBuffer,i,k),this};function D(f,k,i){f.length<40?N.utf8.write(f,k,i):k.utf8Write?k.utf8Write(f,i):k.write(f,i)}return I.prototype.string=function(k){var i=N.Buffer.byteLength(k);return this.uint32(i),i&&this._push(D,i,k),this},I._configure(),writer_buffer}var reader,hasRequiredReader;function requireReader(){if(hasRequiredReader)return reader;hasRequiredReader=1,reader=k;var O=requireMinimal$1(),N,I=O.LongBits,D=O.utf8;function f(J,Z){return RangeError("index out of range: "+J.pos+" + "+(Z||1)+" > "+J.len)}function k(J){this.buf=J,this.pos=0,this.len=J.length}var i=typeof Uint8Array<"u"?function(Z){if(Z instanceof Uint8Array||Array.isArray(Z))return new k(Z);throw Error("illegal buffer")}:function(Z){if(Array.isArray(Z))return new k(Z);throw Error("illegal buffer")},c=function(){return O.Buffer?function(z){return(k.create=function(re){return O.Buffer.isBuffer(re)?new N(re):i(re)})(z)}:i};k.create=c(),k.prototype._slice=O.Array.prototype.subarray||O.Array.prototype.slice,k.prototype.uint32=function(){var Z=4294967295;return function(){if(Z=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(Z=(Z|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(Z=(Z|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(Z=(Z|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(Z=(Z|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return Z;if((this.pos+=5)>this.len)throw this.pos=this.len,f(this,10);return Z}}(),k.prototype.int32=function(){return this.uint32()|0},k.prototype.sint32=function(){var Z=this.uint32();return Z>>>1^-(Z&1)|0};function $(){var J=new I(0,0),Z=0;if(this.len-this.pos>4){for(;Z<4;++Z)if(J.lo=(J.lo|(this.buf[this.pos]&127)<<Z*7)>>>0,this.buf[this.pos++]<128)return J;if(J.lo=(J.lo|(this.buf[this.pos]&127)<<28)>>>0,J.hi=(J.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return J;Z=0}else{for(;Z<3;++Z){if(this.pos>=this.len)throw f(this);if(J.lo=(J.lo|(this.buf[this.pos]&127)<<Z*7)>>>0,this.buf[this.pos++]<128)return J}return J.lo=(J.lo|(this.buf[this.pos++]&127)<<Z*7)>>>0,J}if(this.len-this.pos>4){for(;Z<5;++Z)if(J.hi=(J.hi|(this.buf[this.pos]&127)<<Z*7+3)>>>0,this.buf[this.pos++]<128)return J}else for(;Z<5;++Z){if(this.pos>=this.len)throw f(this);if(J.hi=(J.hi|(this.buf[this.pos]&127)<<Z*7+3)>>>0,this.buf[this.pos++]<128)return J}throw Error("invalid varint encoding")}k.prototype.bool=function(){return this.uint32()!==0};function C(J,Z){return(J[Z-4]|J[Z-3]<<8|J[Z-2]<<16|J[Z-1]<<24)>>>0}k.prototype.fixed32=function(){if(this.pos+4>this.len)throw f(this,4);return C(this.buf,this.pos+=4)},k.prototype.sfixed32=function(){if(this.pos+4>this.len)throw f(this,4);return C(this.buf,this.pos+=4)|0};function M(){if(this.pos+8>this.len)throw f(this,8);return new I(C(this.buf,this.pos+=4),C(this.buf,this.pos+=4))}return k.prototype.float=function(){if(this.pos+4>this.len)throw f(this,4);var Z=O.float.readFloatLE(this.buf,this.pos);return this.pos+=4,Z},k.prototype.double=function(){if(this.pos+8>this.len)throw f(this,4);var Z=O.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,Z},k.prototype.bytes=function(){var Z=this.uint32(),z=this.pos,X=this.pos+Z;if(X>this.len)throw f(this,Z);if(this.pos+=Z,Array.isArray(this.buf))return this.buf.slice(z,X);if(z===X){var re=O.Buffer;return re?re.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,z,X)},k.prototype.string=function(){var Z=this.bytes();return D.read(Z,0,Z.length)},k.prototype.skip=function(Z){if(typeof Z=="number"){if(this.pos+Z>this.len)throw f(this,Z);this.pos+=Z}else do if(this.pos>=this.len)throw f(this);while(this.buf[this.pos++]&128);return this},k.prototype.skipType=function(J){switch(J){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(J=this.uint32()&7)!==4;)this.skipType(J);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+J+" at offset "+this.pos)}return this},k._configure=function(J){N=J,k.create=c(),N._configure();var Z=O.Long?"toLong":"toNumber";O.merge(k.prototype,{int64:function(){return $.call(this)[Z](!1)},uint64:function(){return $.call(this)[Z](!0)},sint64:function(){return $.call(this).zzDecode()[Z](!1)},fixed64:function(){return M.call(this)[Z](!0)},sfixed64:function(){return M.call(this)[Z](!1)}})},reader}var reader_buffer,hasRequiredReader_buffer;function requireReader_buffer(){if(hasRequiredReader_buffer)return reader_buffer;hasRequiredReader_buffer=1,reader_buffer=I;var O=requireReader();(I.prototype=Object.create(O.prototype)).constructor=I;var N=requireMinimal$1();function I(D){O.call(this,D)}return I._configure=function(){N.Buffer&&(I.prototype._slice=N.Buffer.prototype.slice)},I.prototype.string=function(){var f=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+f,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+f,this.len))},I._configure(),reader_buffer}var rpc={},service,hasRequiredService;function requireService(){if(hasRequiredService)return service;hasRequiredService=1,service=N;var O=requireMinimal$1();(N.prototype=Object.create(O.EventEmitter.prototype)).constructor=N;function N(I,D,f){if(typeof I!="function")throw TypeError("rpcImpl must be a function");O.EventEmitter.call(this),this.rpcImpl=I,this.requestDelimited=!!D,this.responseDelimited=!!f}return N.prototype.rpcCall=function I(D,f,k,i,c){if(!i)throw TypeError("request must be specified");var $=this;if(!c)return O.asPromise(I,$,D,f,k,i);if(!$.rpcImpl){setTimeout(function(){c(Error("already ended"))},0);return}try{return $.rpcImpl(D,f[$.requestDelimited?"encodeDelimited":"encode"](i).finish(),function(M,J){if(M)return $.emit("error",M,D),c(M);if(J===null){$.end(!0);return}if(!(J instanceof k))try{J=k[$.responseDelimited?"decodeDelimited":"decode"](J)}catch(Z){return $.emit("error",Z,D),c(Z)}return $.emit("data",J,D),c(null,J)})}catch(C){$.emit("error",C,D),setTimeout(function(){c(C)},0);return}},N.prototype.end=function(D){return this.rpcImpl&&(D||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this},service}var hasRequiredRpc;function requireRpc(){return hasRequiredRpc||(hasRequiredRpc=1,function(O){var N=O;N.Service=requireService()}(rpc)),rpc}var roots,hasRequiredRoots;function requireRoots(){return hasRequiredRoots||(hasRequiredRoots=1,roots={}),roots}var hasRequiredIndexMinimal;function requireIndexMinimal(){return hasRequiredIndexMinimal||(hasRequiredIndexMinimal=1,function(O){var N=O;N.build="minimal",N.Writer=requireWriter(),N.BufferWriter=requireWriter_buffer(),N.Reader=requireReader(),N.BufferReader=requireReader_buffer(),N.util=requireMinimal$1(),N.rpc=requireRpc(),N.roots=requireRoots(),N.configure=I;function I(){N.util._configure(),N.Writer._configure(N.BufferWriter),N.Reader._configure(N.BufferReader)}I()}(indexMinimal)),indexMinimal}var minimal,hasRequiredMinimal;function requireMinimal(){return hasRequiredMinimal||(hasRequiredMinimal=1,minimal=requireIndexMinimal()),minimal}var minimalExports=requireMinimal();const $Reader=minimalExports.Reader,$Writer=minimalExports.Writer,$util=minimalExports.util,$root=minimalExports.roots.default||(minimalExports.roots.default={}),com=$root.com=(()=>{const O={};return O.quick=function(){const N={};return N.voice=function(){const I={};return I.proto=function(){const D={};return D.CommonReq=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.event="",f.prototype.data=$util.newBuffer([]),f.prototype.sn=$util.Long?$util.Long.fromBits(0,0,!1):0,f.prototype.time=$util.Long?$util.Long.fromBits(0,0,!1):0,f.prototype.valid=$util.Long?$util.Long.fromBits(0,0,!1):0,f.prototype.version=0,f.prototype.compress=!1,f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.event!=null&&Object.hasOwnProperty.call(i,"event")&&c.uint32(10).string(i.event),i.data!=null&&Object.hasOwnProperty.call(i,"data")&&c.uint32(18).bytes(i.data),i.sn!=null&&Object.hasOwnProperty.call(i,"sn")&&c.uint32(24).int64(i.sn),i.time!=null&&Object.hasOwnProperty.call(i,"time")&&c.uint32(32).int64(i.time),i.valid!=null&&Object.hasOwnProperty.call(i,"valid")&&c.uint32(40).int64(i.valid),i.version!=null&&Object.hasOwnProperty.call(i,"version")&&c.uint32(48).int32(i.version),i.compress!=null&&Object.hasOwnProperty.call(i,"compress")&&c.uint32(56).bool(i.compress),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.CommonReq;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.event=i.string();break}case 2:{C.data=i.bytes();break}case 3:{C.sn=i.int64();break}case 4:{C.time=i.int64();break}case 5:{C.valid=i.int64();break}case 6:{C.version=i.int32();break}case 7:{C.compress=i.bool();break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){return typeof i!="object"||i===null?"object expected":i.event!=null&&i.hasOwnProperty("event")&&!$util.isString(i.event)?"event: string expected":i.data!=null&&i.hasOwnProperty("data")&&!(i.data&&typeof i.data.length=="number"||$util.isString(i.data))?"data: buffer expected":i.sn!=null&&i.hasOwnProperty("sn")&&!$util.isInteger(i.sn)&&!(i.sn&&$util.isInteger(i.sn.low)&&$util.isInteger(i.sn.high))?"sn: integer|Long expected":i.time!=null&&i.hasOwnProperty("time")&&!$util.isInteger(i.time)&&!(i.time&&$util.isInteger(i.time.low)&&$util.isInteger(i.time.high))?"time: integer|Long expected":i.valid!=null&&i.hasOwnProperty("valid")&&!$util.isInteger(i.valid)&&!(i.valid&&$util.isInteger(i.valid.low)&&$util.isInteger(i.valid.high))?"valid: integer|Long expected":i.version!=null&&i.hasOwnProperty("version")&&!$util.isInteger(i.version)?"version: integer expected":i.compress!=null&&i.hasOwnProperty("compress")&&typeof i.compress!="boolean"?"compress: boolean expected":null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.CommonReq)return i;let c=new $root.com.quick.voice.proto.CommonReq;return i.event!=null&&(c.event=String(i.event)),i.data!=null&&(typeof i.data=="string"?$util.base64.decode(i.data,c.data=$util.newBuffer($util.base64.length(i.data)),0):i.data.length>=0&&(c.data=i.data)),i.sn!=null&&($util.Long?(c.sn=$util.Long.fromValue(i.sn)).unsigned=!1:typeof i.sn=="string"?c.sn=parseInt(i.sn,10):typeof i.sn=="number"?c.sn=i.sn:typeof i.sn=="object"&&(c.sn=new $util.LongBits(i.sn.low>>>0,i.sn.high>>>0).toNumber())),i.time!=null&&($util.Long?(c.time=$util.Long.fromValue(i.time)).unsigned=!1:typeof i.time=="string"?c.time=parseInt(i.time,10):typeof i.time=="number"?c.time=i.time:typeof i.time=="object"&&(c.time=new $util.LongBits(i.time.low>>>0,i.time.high>>>0).toNumber())),i.valid!=null&&($util.Long?(c.valid=$util.Long.fromValue(i.valid)).unsigned=!1:typeof i.valid=="string"?c.valid=parseInt(i.valid,10):typeof i.valid=="number"?c.valid=i.valid:typeof i.valid=="object"&&(c.valid=new $util.LongBits(i.valid.low>>>0,i.valid.high>>>0).toNumber())),i.version!=null&&(c.version=i.version|0),i.compress!=null&&(c.compress=!!i.compress),c},f.toObject=function(i,c){c||(c={});let $={};if(c.defaults){if($.event="",c.bytes===String?$.data="":($.data=[],c.bytes!==Array&&($.data=$util.newBuffer($.data))),$util.Long){let C=new $util.Long(0,0,!1);$.sn=c.longs===String?C.toString():c.longs===Number?C.toNumber():C}else $.sn=c.longs===String?"0":0;if($util.Long){let C=new $util.Long(0,0,!1);$.time=c.longs===String?C.toString():c.longs===Number?C.toNumber():C}else $.time=c.longs===String?"0":0;if($util.Long){let C=new $util.Long(0,0,!1);$.valid=c.longs===String?C.toString():c.longs===Number?C.toNumber():C}else $.valid=c.longs===String?"0":0;$.version=0,$.compress=!1}return i.event!=null&&i.hasOwnProperty("event")&&($.event=i.event),i.data!=null&&i.hasOwnProperty("data")&&($.data=c.bytes===String?$util.base64.encode(i.data,0,i.data.length):c.bytes===Array?Array.prototype.slice.call(i.data):i.data),i.sn!=null&&i.hasOwnProperty("sn")&&(typeof i.sn=="number"?$.sn=c.longs===String?String(i.sn):i.sn:$.sn=c.longs===String?$util.Long.prototype.toString.call(i.sn):c.longs===Number?new $util.LongBits(i.sn.low>>>0,i.sn.high>>>0).toNumber():i.sn),i.time!=null&&i.hasOwnProperty("time")&&(typeof i.time=="number"?$.time=c.longs===String?String(i.time):i.time:$.time=c.longs===String?$util.Long.prototype.toString.call(i.time):c.longs===Number?new $util.LongBits(i.time.low>>>0,i.time.high>>>0).toNumber():i.time),i.valid!=null&&i.hasOwnProperty("valid")&&(typeof i.valid=="number"?$.valid=c.longs===String?String(i.valid):i.valid:$.valid=c.longs===String?$util.Long.prototype.toString.call(i.valid):c.longs===Number?new $util.LongBits(i.valid.low>>>0,i.valid.high>>>0).toNumber():i.valid),i.version!=null&&i.hasOwnProperty("version")&&($.version=i.version),i.compress!=null&&i.hasOwnProperty("compress")&&($.compress=i.compress),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.CommonReq"},f}(),D.CommonRsp=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.event="",f.prototype.data=$util.newBuffer([]),f.prototype.sn=$util.Long?$util.Long.fromBits(0,0,!1):0,f.prototype.time=$util.Long?$util.Long.fromBits(0,0,!1):0,f.prototype.valid=$util.Long?$util.Long.fromBits(0,0,!1):0,f.prototype.code=0,f.prototype.desc="",f.prototype.version=0,f.prototype.compress=!1,f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.event!=null&&Object.hasOwnProperty.call(i,"event")&&c.uint32(10).string(i.event),i.data!=null&&Object.hasOwnProperty.call(i,"data")&&c.uint32(18).bytes(i.data),i.sn!=null&&Object.hasOwnProperty.call(i,"sn")&&c.uint32(24).int64(i.sn),i.time!=null&&Object.hasOwnProperty.call(i,"time")&&c.uint32(32).int64(i.time),i.valid!=null&&Object.hasOwnProperty.call(i,"valid")&&c.uint32(40).int64(i.valid),i.code!=null&&Object.hasOwnProperty.call(i,"code")&&c.uint32(48).int32(i.code),i.desc!=null&&Object.hasOwnProperty.call(i,"desc")&&c.uint32(58).string(i.desc),i.version!=null&&Object.hasOwnProperty.call(i,"version")&&c.uint32(64).int32(i.version),i.compress!=null&&Object.hasOwnProperty.call(i,"compress")&&c.uint32(72).bool(i.compress),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.CommonRsp;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.event=i.string();break}case 2:{C.data=i.bytes();break}case 3:{C.sn=i.int64();break}case 4:{C.time=i.int64();break}case 5:{C.valid=i.int64();break}case 6:{C.code=i.int32();break}case 7:{C.desc=i.string();break}case 8:{C.version=i.int32();break}case 9:{C.compress=i.bool();break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){return typeof i!="object"||i===null?"object expected":i.event!=null&&i.hasOwnProperty("event")&&!$util.isString(i.event)?"event: string expected":i.data!=null&&i.hasOwnProperty("data")&&!(i.data&&typeof i.data.length=="number"||$util.isString(i.data))?"data: buffer expected":i.sn!=null&&i.hasOwnProperty("sn")&&!$util.isInteger(i.sn)&&!(i.sn&&$util.isInteger(i.sn.low)&&$util.isInteger(i.sn.high))?"sn: integer|Long expected":i.time!=null&&i.hasOwnProperty("time")&&!$util.isInteger(i.time)&&!(i.time&&$util.isInteger(i.time.low)&&$util.isInteger(i.time.high))?"time: integer|Long expected":i.valid!=null&&i.hasOwnProperty("valid")&&!$util.isInteger(i.valid)&&!(i.valid&&$util.isInteger(i.valid.low)&&$util.isInteger(i.valid.high))?"valid: integer|Long expected":i.code!=null&&i.hasOwnProperty("code")&&!$util.isInteger(i.code)?"code: integer expected":i.desc!=null&&i.hasOwnProperty("desc")&&!$util.isString(i.desc)?"desc: string expected":i.version!=null&&i.hasOwnProperty("version")&&!$util.isInteger(i.version)?"version: integer expected":i.compress!=null&&i.hasOwnProperty("compress")&&typeof i.compress!="boolean"?"compress: boolean expected":null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.CommonRsp)return i;let c=new $root.com.quick.voice.proto.CommonRsp;return i.event!=null&&(c.event=String(i.event)),i.data!=null&&(typeof i.data=="string"?$util.base64.decode(i.data,c.data=$util.newBuffer($util.base64.length(i.data)),0):i.data.length>=0&&(c.data=i.data)),i.sn!=null&&($util.Long?(c.sn=$util.Long.fromValue(i.sn)).unsigned=!1:typeof i.sn=="string"?c.sn=parseInt(i.sn,10):typeof i.sn=="number"?c.sn=i.sn:typeof i.sn=="object"&&(c.sn=new $util.LongBits(i.sn.low>>>0,i.sn.high>>>0).toNumber())),i.time!=null&&($util.Long?(c.time=$util.Long.fromValue(i.time)).unsigned=!1:typeof i.time=="string"?c.time=parseInt(i.time,10):typeof i.time=="number"?c.time=i.time:typeof i.time=="object"&&(c.time=new $util.LongBits(i.time.low>>>0,i.time.high>>>0).toNumber())),i.valid!=null&&($util.Long?(c.valid=$util.Long.fromValue(i.valid)).unsigned=!1:typeof i.valid=="string"?c.valid=parseInt(i.valid,10):typeof i.valid=="number"?c.valid=i.valid:typeof i.valid=="object"&&(c.valid=new $util.LongBits(i.valid.low>>>0,i.valid.high>>>0).toNumber())),i.code!=null&&(c.code=i.code|0),i.desc!=null&&(c.desc=String(i.desc)),i.version!=null&&(c.version=i.version|0),i.compress!=null&&(c.compress=!!i.compress),c},f.toObject=function(i,c){c||(c={});let $={};if(c.defaults){if($.event="",c.bytes===String?$.data="":($.data=[],c.bytes!==Array&&($.data=$util.newBuffer($.data))),$util.Long){let C=new $util.Long(0,0,!1);$.sn=c.longs===String?C.toString():c.longs===Number?C.toNumber():C}else $.sn=c.longs===String?"0":0;if($util.Long){let C=new $util.Long(0,0,!1);$.time=c.longs===String?C.toString():c.longs===Number?C.toNumber():C}else $.time=c.longs===String?"0":0;if($util.Long){let C=new $util.Long(0,0,!1);$.valid=c.longs===String?C.toString():c.longs===Number?C.toNumber():C}else $.valid=c.longs===String?"0":0;$.code=0,$.desc="",$.version=0,$.compress=!1}return i.event!=null&&i.hasOwnProperty("event")&&($.event=i.event),i.data!=null&&i.hasOwnProperty("data")&&($.data=c.bytes===String?$util.base64.encode(i.data,0,i.data.length):c.bytes===Array?Array.prototype.slice.call(i.data):i.data),i.sn!=null&&i.hasOwnProperty("sn")&&(typeof i.sn=="number"?$.sn=c.longs===String?String(i.sn):i.sn:$.sn=c.longs===String?$util.Long.prototype.toString.call(i.sn):c.longs===Number?new $util.LongBits(i.sn.low>>>0,i.sn.high>>>0).toNumber():i.sn),i.time!=null&&i.hasOwnProperty("time")&&(typeof i.time=="number"?$.time=c.longs===String?String(i.time):i.time:$.time=c.longs===String?$util.Long.prototype.toString.call(i.time):c.longs===Number?new $util.LongBits(i.time.low>>>0,i.time.high>>>0).toNumber():i.time),i.valid!=null&&i.hasOwnProperty("valid")&&(typeof i.valid=="number"?$.valid=c.longs===String?String(i.valid):i.valid:$.valid=c.longs===String?$util.Long.prototype.toString.call(i.valid):c.longs===Number?new $util.LongBits(i.valid.low>>>0,i.valid.high>>>0).toNumber():i.valid),i.code!=null&&i.hasOwnProperty("code")&&($.code=i.code),i.desc!=null&&i.hasOwnProperty("desc")&&($.desc=i.desc),i.version!=null&&i.hasOwnProperty("version")&&($.version=i.version),i.compress!=null&&i.hasOwnProperty("compress")&&($.compress=i.compress),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.CommonRsp"},f}(),D.User=function(){function f(i){if(this.tracks=[],i)for(let c=Object.keys(i),$=0;$<c.length;++$)i[c[$]]!=null&&(this[c[$]]=i[c[$]])}f.prototype.id="",f.prototype.callAction=null,f.prototype.callState=null,f.prototype.joinTime=null,f.prototype.tracks=$util.emptyArray,f.prototype.permissions=null,f.prototype.isPublished=null,f.prototype.behavior=null,f.prototype.channelCache=null;let k;return Object.defineProperty(f.prototype,"_callAction",{get:$util.oneOfGetter(k=["callAction"]),set:$util.oneOfSetter(k)}),Object.defineProperty(f.prototype,"_callState",{get:$util.oneOfGetter(k=["callState"]),set:$util.oneOfSetter(k)}),Object.defineProperty(f.prototype,"_joinTime",{get:$util.oneOfGetter(k=["joinTime"]),set:$util.oneOfSetter(k)}),Object.defineProperty(f.prototype,"_permissions",{get:$util.oneOfGetter(k=["permissions"]),set:$util.oneOfSetter(k)}),Object.defineProperty(f.prototype,"_isPublished",{get:$util.oneOfGetter(k=["isPublished"]),set:$util.oneOfSetter(k)}),Object.defineProperty(f.prototype,"_behavior",{get:$util.oneOfGetter(k=["behavior"]),set:$util.oneOfSetter(k)}),Object.defineProperty(f.prototype,"_channelCache",{get:$util.oneOfGetter(k=["channelCache"]),set:$util.oneOfSetter(k)}),f.create=function(c){return new f(c)},f.encode=function(c,$){if($||($=$Writer.create()),c.id!=null&&Object.hasOwnProperty.call(c,"id")&&$.uint32(10).string(c.id),c.callAction!=null&&Object.hasOwnProperty.call(c,"callAction")&&$.uint32(16).int32(c.callAction),c.callState!=null&&Object.hasOwnProperty.call(c,"callState")&&$.uint32(24).int32(c.callState),c.joinTime!=null&&Object.hasOwnProperty.call(c,"joinTime")&&$.uint32(32).int64(c.joinTime),c.tracks!=null&&c.tracks.length)for(let C=0;C<c.tracks.length;++C)$root.com.quick.voice.proto.Track.encode(c.tracks[C],$.uint32(42).fork()).ldelim();return c.permissions!=null&&Object.hasOwnProperty.call(c,"permissions")&&$.uint32(48).int32(c.permissions),c.isPublished!=null&&Object.hasOwnProperty.call(c,"isPublished")&&$.uint32(56).bool(c.isPublished),c.behavior!=null&&Object.hasOwnProperty.call(c,"behavior")&&$.uint32(64).int32(c.behavior),c.channelCache!=null&&Object.hasOwnProperty.call(c,"channelCache")&&$root.com.quick.voice.proto.DataChannelCacheInfo.encode(c.channelCache,$.uint32(74).fork()).ldelim(),$},f.encodeDelimited=function(c,$){return this.encode(c,$).ldelim()},f.decode=function(c,$){c instanceof $Reader||(c=$Reader.create(c));let C=$===void 0?c.len:c.pos+$,M=new $root.com.quick.voice.proto.User;for(;c.pos<C;){let J=c.uint32();switch(J>>>3){case 1:{M.id=c.string();break}case 2:{M.callAction=c.int32();break}case 3:{M.callState=c.int32();break}case 4:{M.joinTime=c.int64();break}case 5:{M.tracks&&M.tracks.length||(M.tracks=[]),M.tracks.push($root.com.quick.voice.proto.Track.decode(c,c.uint32()));break}case 6:{M.permissions=c.int32();break}case 7:{M.isPublished=c.bool();break}case 8:{M.behavior=c.int32();break}case 9:{M.channelCache=$root.com.quick.voice.proto.DataChannelCacheInfo.decode(c,c.uint32());break}default:c.skipType(J&7);break}}return M},f.decodeDelimited=function(c){return c instanceof $Reader||(c=new $Reader(c)),this.decode(c,c.uint32())},f.verify=function(c){if(typeof c!="object"||c===null)return"object expected";if(c.id!=null&&c.hasOwnProperty("id")&&!$util.isString(c.id))return"id: string expected";if(c.callAction!=null&&c.hasOwnProperty("callAction")&&!$util.isInteger(c.callAction))return"callAction: integer expected";if(c.callState!=null&&c.hasOwnProperty("callState")&&!$util.isInteger(c.callState))return"callState: integer expected";if(c.joinTime!=null&&c.hasOwnProperty("joinTime")&&!$util.isInteger(c.joinTime)&&!(c.joinTime&&$util.isInteger(c.joinTime.low)&&$util.isInteger(c.joinTime.high)))return"joinTime: integer|Long expected";if(c.tracks!=null&&c.hasOwnProperty("tracks")){if(!Array.isArray(c.tracks))return"tracks: array expected";for(let $=0;$<c.tracks.length;++$){let C=$root.com.quick.voice.proto.Track.verify(c.tracks[$]);if(C)return"tracks."+C}}if(c.permissions!=null&&c.hasOwnProperty("permissions")&&!$util.isInteger(c.permissions))return"permissions: integer expected";if(c.isPublished!=null&&c.hasOwnProperty("isPublished")&&typeof c.isPublished!="boolean")return"isPublished: boolean expected";if(c.behavior!=null&&c.hasOwnProperty("behavior")&&!$util.isInteger(c.behavior))return"behavior: integer expected";if(c.channelCache!=null&&c.hasOwnProperty("channelCache")){let $=$root.com.quick.voice.proto.DataChannelCacheInfo.verify(c.channelCache);if($)return"channelCache."+$}return null},f.fromObject=function(c){if(c instanceof $root.com.quick.voice.proto.User)return c;let $=new $root.com.quick.voice.proto.User;if(c.id!=null&&($.id=String(c.id)),c.callAction!=null&&($.callAction=c.callAction|0),c.callState!=null&&($.callState=c.callState|0),c.joinTime!=null&&($util.Long?($.joinTime=$util.Long.fromValue(c.joinTime)).unsigned=!1:typeof c.joinTime=="string"?$.joinTime=parseInt(c.joinTime,10):typeof c.joinTime=="number"?$.joinTime=c.joinTime:typeof c.joinTime=="object"&&($.joinTime=new $util.LongBits(c.joinTime.low>>>0,c.joinTime.high>>>0).toNumber())),c.tracks){if(!Array.isArray(c.tracks))throw TypeError(".com.quick.voice.proto.User.tracks: array expected");$.tracks=[];for(let C=0;C<c.tracks.length;++C){if(typeof c.tracks[C]!="object")throw TypeError(".com.quick.voice.proto.User.tracks: object expected");$.tracks[C]=$root.com.quick.voice.proto.Track.fromObject(c.tracks[C])}}if(c.permissions!=null&&($.permissions=c.permissions|0),c.isPublished!=null&&($.isPublished=!!c.isPublished),c.behavior!=null&&($.behavior=c.behavior|0),c.channelCache!=null){if(typeof c.channelCache!="object")throw TypeError(".com.quick.voice.proto.User.channelCache: object expected");$.channelCache=$root.com.quick.voice.proto.DataChannelCacheInfo.fromObject(c.channelCache)}return $},f.toObject=function(c,$){$||($={});let C={};if(($.arrays||$.defaults)&&(C.tracks=[]),$.defaults&&(C.id=""),c.id!=null&&c.hasOwnProperty("id")&&(C.id=c.id),c.callAction!=null&&c.hasOwnProperty("callAction")&&(C.callAction=c.callAction,$.oneofs&&(C._callAction="callAction")),c.callState!=null&&c.hasOwnProperty("callState")&&(C.callState=c.callState,$.oneofs&&(C._callState="callState")),c.joinTime!=null&&c.hasOwnProperty("joinTime")&&(typeof c.joinTime=="number"?C.joinTime=$.longs===String?String(c.joinTime):c.joinTime:C.joinTime=$.longs===String?$util.Long.prototype.toString.call(c.joinTime):$.longs===Number?new $util.LongBits(c.joinTime.low>>>0,c.joinTime.high>>>0).toNumber():c.joinTime,$.oneofs&&(C._joinTime="joinTime")),c.tracks&&c.tracks.length){C.tracks=[];for(let M=0;M<c.tracks.length;++M)C.tracks[M]=$root.com.quick.voice.proto.Track.toObject(c.tracks[M],$)}return c.permissions!=null&&c.hasOwnProperty("permissions")&&(C.permissions=c.permissions,$.oneofs&&(C._permissions="permissions")),c.isPublished!=null&&c.hasOwnProperty("isPublished")&&(C.isPublished=c.isPublished,$.oneofs&&(C._isPublished="isPublished")),c.behavior!=null&&c.hasOwnProperty("behavior")&&(C.behavior=c.behavior,$.oneofs&&(C._behavior="behavior")),c.channelCache!=null&&c.hasOwnProperty("channelCache")&&(C.channelCache=$root.com.quick.voice.proto.DataChannelCacheInfo.toObject(c.channelCache,$),$.oneofs&&(C._channelCache="channelCache")),C},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/com.quick.voice.proto.User"},f}(),D.DataChannelCacheInfo=function(){function f(k){if(this.channels=[],k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.channels=$util.emptyArray,f.create=function(i){return new f(i)},f.encode=function(i,c){if(c||(c=$Writer.create()),i.channels!=null&&i.channels.length)for(let $=0;$<i.channels.length;++$)$root.com.quick.voice.proto.DataChannel.encode(i.channels[$],c.uint32(10).fork()).ldelim();return c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.DataChannelCacheInfo;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.channels&&C.channels.length||(C.channels=[]),C.channels.push($root.com.quick.voice.proto.DataChannel.decode(i,i.uint32()));break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.channels!=null&&i.hasOwnProperty("channels")){if(!Array.isArray(i.channels))return"channels: array expected";for(let c=0;c<i.channels.length;++c){let $=$root.com.quick.voice.proto.DataChannel.verify(i.channels[c]);if($)return"channels."+$}}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.DataChannelCacheInfo)return i;let c=new $root.com.quick.voice.proto.DataChannelCacheInfo;if(i.channels){if(!Array.isArray(i.channels))throw TypeError(".com.quick.voice.proto.DataChannelCacheInfo.channels: array expected");c.channels=[];for(let $=0;$<i.channels.length;++$){if(typeof i.channels[$]!="object")throw TypeError(".com.quick.voice.proto.DataChannelCacheInfo.channels: object expected");c.channels[$]=$root.com.quick.voice.proto.DataChannel.fromObject(i.channels[$])}}return c},f.toObject=function(i,c){c||(c={});let $={};if((c.arrays||c.defaults)&&($.channels=[]),i.channels&&i.channels.length){$.channels=[];for(let C=0;C<i.channels.length;++C)$.channels[C]=$root.com.quick.voice.proto.DataChannel.toObject(i.channels[C],c)}return $},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.DataChannelCacheInfo"},f}(),D.DataChannel=function(){function f(i){if(i)for(let c=Object.keys(i),$=0;$<c.length;++$)i[c[$]]!=null&&(this[c[$]]=i[c[$]])}f.prototype.dataChannelName="",f.prototype.id=null;let k;return Object.defineProperty(f.prototype,"_id",{get:$util.oneOfGetter(k=["id"]),set:$util.oneOfSetter(k)}),f.create=function(c){return new f(c)},f.encode=function(c,$){return $||($=$Writer.create()),c.dataChannelName!=null&&Object.hasOwnProperty.call(c,"dataChannelName")&&$.uint32(10).string(c.dataChannelName),c.id!=null&&Object.hasOwnProperty.call(c,"id")&&$.uint32(16).int32(c.id),$},f.encodeDelimited=function(c,$){return this.encode(c,$).ldelim()},f.decode=function(c,$){c instanceof $Reader||(c=$Reader.create(c));let C=$===void 0?c.len:c.pos+$,M=new $root.com.quick.voice.proto.DataChannel;for(;c.pos<C;){let J=c.uint32();switch(J>>>3){case 1:{M.dataChannelName=c.string();break}case 2:{M.id=c.int32();break}default:c.skipType(J&7);break}}return M},f.decodeDelimited=function(c){return c instanceof $Reader||(c=new $Reader(c)),this.decode(c,c.uint32())},f.verify=function(c){return typeof c!="object"||c===null?"object expected":c.dataChannelName!=null&&c.hasOwnProperty("dataChannelName")&&!$util.isString(c.dataChannelName)?"dataChannelName: string expected":c.id!=null&&c.hasOwnProperty("id")&&!$util.isInteger(c.id)?"id: integer expected":null},f.fromObject=function(c){if(c instanceof $root.com.quick.voice.proto.DataChannel)return c;let $=new $root.com.quick.voice.proto.DataChannel;return c.dataChannelName!=null&&($.dataChannelName=String(c.dataChannelName)),c.id!=null&&($.id=c.id|0),$},f.toObject=function(c,$){$||($={});let C={};return $.defaults&&(C.dataChannelName=""),c.dataChannelName!=null&&c.hasOwnProperty("dataChannelName")&&(C.dataChannelName=c.dataChannelName),c.id!=null&&c.hasOwnProperty("id")&&(C.id=c.id,$.oneofs&&(C._id="id")),C},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/com.quick.voice.proto.DataChannel"},f}(),D.Login=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.appid="",f.prototype.userId="",f.prototype.sdkToken="",f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.appid!=null&&Object.hasOwnProperty.call(i,"appid")&&c.uint32(10).string(i.appid),i.userId!=null&&Object.hasOwnProperty.call(i,"userId")&&c.uint32(18).string(i.userId),i.sdkToken!=null&&Object.hasOwnProperty.call(i,"sdkToken")&&c.uint32(26).string(i.sdkToken),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.Login;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.appid=i.string();break}case 2:{C.userId=i.string();break}case 3:{C.sdkToken=i.string();break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){return typeof i!="object"||i===null?"object expected":i.appid!=null&&i.hasOwnProperty("appid")&&!$util.isString(i.appid)?"appid: string expected":i.userId!=null&&i.hasOwnProperty("userId")&&!$util.isString(i.userId)?"userId: string expected":i.sdkToken!=null&&i.hasOwnProperty("sdkToken")&&!$util.isString(i.sdkToken)?"sdkToken: string expected":null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.Login)return i;let c=new $root.com.quick.voice.proto.Login;return i.appid!=null&&(c.appid=String(i.appid)),i.userId!=null&&(c.userId=String(i.userId)),i.sdkToken!=null&&(c.sdkToken=String(i.sdkToken)),c},f.toObject=function(i,c){c||(c={});let $={};return c.defaults&&($.appid="",$.userId="",$.sdkToken=""),i.appid!=null&&i.hasOwnProperty("appid")&&($.appid=i.appid),i.userId!=null&&i.hasOwnProperty("userId")&&($.userId=i.userId),i.sdkToken!=null&&i.hasOwnProperty("sdkToken")&&($.sdkToken=i.sdkToken),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.Login"},f}(),D.Track=function(){function f(i){if(i)for(let c=Object.keys(i),$=0;$<c.length;++$)i[c[$]]!=null&&(this[c[$]]=i[c[$]])}f.prototype.mid="",f.prototype.trackName=null,f.prototype.location=null,f.prototype.userId=null,f.prototype.code=null,f.prototype.desc=null,f.prototype.type=null,f.prototype.isValid=null,f.prototype.simulcast=null;let k;return Object.defineProperty(f.prototype,"_trackName",{get:$util.oneOfGetter(k=["trackName"]),set:$util.oneOfSetter(k)}),Object.defineProperty(f.prototype,"_location",{get:$util.oneOfGetter(k=["location"]),set:$util.oneOfSetter(k)}),Object.defineProperty(f.prototype,"_userId",{get:$util.oneOfGetter(k=["userId"]),set:$util.oneOfSetter(k)}),Object.defineProperty(f.prototype,"_code",{get:$util.oneOfGetter(k=["code"]),set:$util.oneOfSetter(k)}),Object.defineProperty(f.prototype,"_desc",{get:$util.oneOfGetter(k=["desc"]),set:$util.oneOfSetter(k)}),Object.defineProperty(f.prototype,"_type",{get:$util.oneOfGetter(k=["type"]),set:$util.oneOfSetter(k)}),Object.defineProperty(f.prototype,"_isValid",{get:$util.oneOfGetter(k=["isValid"]),set:$util.oneOfSetter(k)}),Object.defineProperty(f.prototype,"_simulcast",{get:$util.oneOfGetter(k=["simulcast"]),set:$util.oneOfSetter(k)}),f.create=function(c){return new f(c)},f.encode=function(c,$){return $||($=$Writer.create()),c.mid!=null&&Object.hasOwnProperty.call(c,"mid")&&$.uint32(10).string(c.mid),c.trackName!=null&&Object.hasOwnProperty.call(c,"trackName")&&$.uint32(18).string(c.trackName),c.location!=null&&Object.hasOwnProperty.call(c,"location")&&$.uint32(26).string(c.location),c.userId!=null&&Object.hasOwnProperty.call(c,"userId")&&$.uint32(34).string(c.userId),c.code!=null&&Object.hasOwnProperty.call(c,"code")&&$.uint32(40).int32(c.code),c.desc!=null&&Object.hasOwnProperty.call(c,"desc")&&$.uint32(50).string(c.desc),c.type!=null&&Object.hasOwnProperty.call(c,"type")&&$.uint32(56).int32(c.type),c.isValid!=null&&Object.hasOwnProperty.call(c,"isValid")&&$.uint32(64).bool(c.isValid),c.simulcast!=null&&Object.hasOwnProperty.call(c,"simulcast")&&$.uint32(74).string(c.simulcast),$},f.encodeDelimited=function(c,$){return this.encode(c,$).ldelim()},f.decode=function(c,$){c instanceof $Reader||(c=$Reader.create(c));let C=$===void 0?c.len:c.pos+$,M=new $root.com.quick.voice.proto.Track;for(;c.pos<C;){let J=c.uint32();switch(J>>>3){case 1:{M.mid=c.string();break}case 2:{M.trackName=c.string();break}case 3:{M.location=c.string();break}case 4:{M.userId=c.string();break}case 5:{M.code=c.int32();break}case 6:{M.desc=c.string();break}case 7:{M.type=c.int32();break}case 8:{M.isValid=c.bool();break}case 9:{M.simulcast=c.string();break}default:c.skipType(J&7);break}}return M},f.decodeDelimited=function(c){return c instanceof $Reader||(c=new $Reader(c)),this.decode(c,c.uint32())},f.verify=function(c){if(typeof c!="object"||c===null)return"object expected";if(c.mid!=null&&c.hasOwnProperty("mid")&&!$util.isString(c.mid))return"mid: string expected";if(c.trackName!=null&&c.hasOwnProperty("trackName")&&!$util.isString(c.trackName))return"trackName: string expected";if(c.location!=null&&c.hasOwnProperty("location")&&!$util.isString(c.location))return"location: string expected";if(c.userId!=null&&c.hasOwnProperty("userId")&&!$util.isString(c.userId))return"userId: string expected";if(c.code!=null&&c.hasOwnProperty("code")&&!$util.isInteger(c.code))return"code: integer expected";if(c.desc!=null&&c.hasOwnProperty("desc")&&!$util.isString(c.desc))return"desc: string expected";if(c.type!=null&&c.hasOwnProperty("type"))switch(c.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:break}return c.isValid!=null&&c.hasOwnProperty("isValid")&&typeof c.isValid!="boolean"?"isValid: boolean expected":c.simulcast!=null&&c.hasOwnProperty("simulcast")&&!$util.isString(c.simulcast)?"simulcast: string expected":null},f.fromObject=function(c){if(c instanceof $root.com.quick.voice.proto.Track)return c;let $=new $root.com.quick.voice.proto.Track;switch(c.mid!=null&&($.mid=String(c.mid)),c.trackName!=null&&($.trackName=String(c.trackName)),c.location!=null&&($.location=String(c.location)),c.userId!=null&&($.userId=String(c.userId)),c.code!=null&&($.code=c.code|0),c.desc!=null&&($.desc=String(c.desc)),c.type){default:if(typeof c.type=="number"){$.type=c.type;break}break;case"Microphone":case 0:$.type=0;break;case"Camera":case 1:$.type=1;break;case"Screen":case 2:$.type=2;break;case"SystemVoice":case 3:$.type=3;break}return c.isValid!=null&&($.isValid=!!c.isValid),c.simulcast!=null&&($.simulcast=String(c.simulcast)),$},f.toObject=function(c,$){$||($={});let C={};return $.defaults&&(C.mid=""),c.mid!=null&&c.hasOwnProperty("mid")&&(C.mid=c.mid),c.trackName!=null&&c.hasOwnProperty("trackName")&&(C.trackName=c.trackName,$.oneofs&&(C._trackName="trackName")),c.location!=null&&c.hasOwnProperty("location")&&(C.location=c.location,$.oneofs&&(C._location="location")),c.userId!=null&&c.hasOwnProperty("userId")&&(C.userId=c.userId,$.oneofs&&(C._userId="userId")),c.code!=null&&c.hasOwnProperty("code")&&(C.code=c.code,$.oneofs&&(C._code="code")),c.desc!=null&&c.hasOwnProperty("desc")&&(C.desc=c.desc,$.oneofs&&(C._desc="desc")),c.type!=null&&c.hasOwnProperty("type")&&(C.type=$.enums===String?$root.com.quick.voice.proto.TrackType[c.type]===void 0?c.type:$root.com.quick.voice.proto.TrackType[c.type]:c.type,$.oneofs&&(C._type="type")),c.isValid!=null&&c.hasOwnProperty("isValid")&&(C.isValid=c.isValid,$.oneofs&&(C._isValid="isValid")),c.simulcast!=null&&c.hasOwnProperty("simulcast")&&(C.simulcast=c.simulcast,$.oneofs&&(C._simulcast="simulcast")),C},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/com.quick.voice.proto.Track"},f}(),D.JoinReq=function(){function f(i){if(i)for(let c=Object.keys(i),$=0;$<c.length;++$)i[c[$]]!=null&&(this[c[$]]=i[c[$]])}f.prototype.roomId="",f.prototype.user=null,f.prototype.callType=0,f.prototype.token=null;let k;return Object.defineProperty(f.prototype,"_token",{get:$util.oneOfGetter(k=["token"]),set:$util.oneOfSetter(k)}),f.create=function(c){return new f(c)},f.encode=function(c,$){return $||($=$Writer.create()),c.roomId!=null&&Object.hasOwnProperty.call(c,"roomId")&&$.uint32(10).string(c.roomId),c.user!=null&&Object.hasOwnProperty.call(c,"user")&&$root.com.quick.voice.proto.User.encode(c.user,$.uint32(18).fork()).ldelim(),c.callType!=null&&Object.hasOwnProperty.call(c,"callType")&&$.uint32(24).int32(c.callType),c.token!=null&&Object.hasOwnProperty.call(c,"token")&&$.uint32(34).string(c.token),$},f.encodeDelimited=function(c,$){return this.encode(c,$).ldelim()},f.decode=function(c,$){c instanceof $Reader||(c=$Reader.create(c));let C=$===void 0?c.len:c.pos+$,M=new $root.com.quick.voice.proto.JoinReq;for(;c.pos<C;){let J=c.uint32();switch(J>>>3){case 1:{M.roomId=c.string();break}case 2:{M.user=$root.com.quick.voice.proto.User.decode(c,c.uint32());break}case 3:{M.callType=c.int32();break}case 4:{M.token=c.string();break}default:c.skipType(J&7);break}}return M},f.decodeDelimited=function(c){return c instanceof $Reader||(c=new $Reader(c)),this.decode(c,c.uint32())},f.verify=function(c){if(typeof c!="object"||c===null)return"object expected";if(c.roomId!=null&&c.hasOwnProperty("roomId")&&!$util.isString(c.roomId))return"roomId: string expected";if(c.user!=null&&c.hasOwnProperty("user")){let $=$root.com.quick.voice.proto.User.verify(c.user);if($)return"user."+$}if(c.callType!=null&&c.hasOwnProperty("callType"))switch(c.callType){default:return"callType: enum value expected";case 0:case 1:case 2:break}return c.token!=null&&c.hasOwnProperty("token")&&!$util.isString(c.token)?"token: string expected":null},f.fromObject=function(c){if(c instanceof $root.com.quick.voice.proto.JoinReq)return c;let $=new $root.com.quick.voice.proto.JoinReq;if(c.roomId!=null&&($.roomId=String(c.roomId)),c.user!=null){if(typeof c.user!="object")throw TypeError(".com.quick.voice.proto.JoinReq.user: object expected");$.user=$root.com.quick.voice.proto.User.fromObject(c.user)}switch(c.callType){default:if(typeof c.callType=="number"){$.callType=c.callType;break}break;case"Normal":case 0:$.callType=0;break;case"Meeting":case 1:$.callType=1;break;case"Live":case 2:$.callType=2;break}return c.token!=null&&($.token=String(c.token)),$},f.toObject=function(c,$){$||($={});let C={};return $.defaults&&(C.roomId="",C.user=null,C.callType=$.enums===String?"Normal":0),c.roomId!=null&&c.hasOwnProperty("roomId")&&(C.roomId=c.roomId),c.user!=null&&c.hasOwnProperty("user")&&(C.user=$root.com.quick.voice.proto.User.toObject(c.user,$)),c.callType!=null&&c.hasOwnProperty("callType")&&(C.callType=$.enums===String?$root.com.quick.voice.proto.CallType[c.callType]===void 0?c.callType:$root.com.quick.voice.proto.CallType[c.callType]:c.callType),c.token!=null&&c.hasOwnProperty("token")&&(C.token=c.token,$.oneofs&&(C._token="token")),C},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/com.quick.voice.proto.JoinReq"},f}(),D.JoinRsp=function(){function f(k){if(this.roomUsers=[],k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.roomId="",f.prototype.roomUsers=$util.emptyArray,f.prototype.callType=0,f.create=function(i){return new f(i)},f.encode=function(i,c){if(c||(c=$Writer.create()),i.roomId!=null&&Object.hasOwnProperty.call(i,"roomId")&&c.uint32(10).string(i.roomId),i.roomUsers!=null&&i.roomUsers.length)for(let $=0;$<i.roomUsers.length;++$)$root.com.quick.voice.proto.User.encode(i.roomUsers[$],c.uint32(18).fork()).ldelim();return i.callType!=null&&Object.hasOwnProperty.call(i,"callType")&&c.uint32(24).int32(i.callType),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.JoinRsp;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.roomId=i.string();break}case 2:{C.roomUsers&&C.roomUsers.length||(C.roomUsers=[]),C.roomUsers.push($root.com.quick.voice.proto.User.decode(i,i.uint32()));break}case 3:{C.callType=i.int32();break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.roomId!=null&&i.hasOwnProperty("roomId")&&!$util.isString(i.roomId))return"roomId: string expected";if(i.roomUsers!=null&&i.hasOwnProperty("roomUsers")){if(!Array.isArray(i.roomUsers))return"roomUsers: array expected";for(let c=0;c<i.roomUsers.length;++c){let $=$root.com.quick.voice.proto.User.verify(i.roomUsers[c]);if($)return"roomUsers."+$}}if(i.callType!=null&&i.hasOwnProperty("callType"))switch(i.callType){default:return"callType: enum value expected";case 0:case 1:case 2:break}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.JoinRsp)return i;let c=new $root.com.quick.voice.proto.JoinRsp;if(i.roomId!=null&&(c.roomId=String(i.roomId)),i.roomUsers){if(!Array.isArray(i.roomUsers))throw TypeError(".com.quick.voice.proto.JoinRsp.roomUsers: array expected");c.roomUsers=[];for(let $=0;$<i.roomUsers.length;++$){if(typeof i.roomUsers[$]!="object")throw TypeError(".com.quick.voice.proto.JoinRsp.roomUsers: object expected");c.roomUsers[$]=$root.com.quick.voice.proto.User.fromObject(i.roomUsers[$])}}switch(i.callType){default:if(typeof i.callType=="number"){c.callType=i.callType;break}break;case"Normal":case 0:c.callType=0;break;case"Meeting":case 1:c.callType=1;break;case"Live":case 2:c.callType=2;break}return c},f.toObject=function(i,c){c||(c={});let $={};if((c.arrays||c.defaults)&&($.roomUsers=[]),c.defaults&&($.roomId="",$.callType=c.enums===String?"Normal":0),i.roomId!=null&&i.hasOwnProperty("roomId")&&($.roomId=i.roomId),i.roomUsers&&i.roomUsers.length){$.roomUsers=[];for(let C=0;C<i.roomUsers.length;++C)$.roomUsers[C]=$root.com.quick.voice.proto.User.toObject(i.roomUsers[C],c)}return i.callType!=null&&i.hasOwnProperty("callType")&&($.callType=c.enums===String?$root.com.quick.voice.proto.CallType[i.callType]===void 0?i.callType:$root.com.quick.voice.proto.CallType[i.callType]:i.callType),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.JoinRsp"},f}(),D.JoinNotify=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.roomId="",f.prototype.user=null,f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.roomId!=null&&Object.hasOwnProperty.call(i,"roomId")&&c.uint32(10).string(i.roomId),i.user!=null&&Object.hasOwnProperty.call(i,"user")&&$root.com.quick.voice.proto.User.encode(i.user,c.uint32(18).fork()).ldelim(),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.JoinNotify;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.roomId=i.string();break}case 2:{C.user=$root.com.quick.voice.proto.User.decode(i,i.uint32());break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.roomId!=null&&i.hasOwnProperty("roomId")&&!$util.isString(i.roomId))return"roomId: string expected";if(i.user!=null&&i.hasOwnProperty("user")){let c=$root.com.quick.voice.proto.User.verify(i.user);if(c)return"user."+c}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.JoinNotify)return i;let c=new $root.com.quick.voice.proto.JoinNotify;if(i.roomId!=null&&(c.roomId=String(i.roomId)),i.user!=null){if(typeof i.user!="object")throw TypeError(".com.quick.voice.proto.JoinNotify.user: object expected");c.user=$root.com.quick.voice.proto.User.fromObject(i.user)}return c},f.toObject=function(i,c){c||(c={});let $={};return c.defaults&&($.roomId="",$.user=null),i.roomId!=null&&i.hasOwnProperty("roomId")&&($.roomId=i.roomId),i.user!=null&&i.hasOwnProperty("user")&&($.user=$root.com.quick.voice.proto.User.toObject(i.user,c)),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.JoinNotify"},f}(),D.ConnectCFReq=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.sdp="",f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.sdp!=null&&Object.hasOwnProperty.call(i,"sdp")&&c.uint32(10).string(i.sdp),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.ConnectCFReq;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.sdp=i.string();break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){return typeof i!="object"||i===null?"object expected":i.sdp!=null&&i.hasOwnProperty("sdp")&&!$util.isString(i.sdp)?"sdp: string expected":null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.ConnectCFReq)return i;let c=new $root.com.quick.voice.proto.ConnectCFReq;return i.sdp!=null&&(c.sdp=String(i.sdp)),c},f.toObject=function(i,c){c||(c={});let $={};return c.defaults&&($.sdp=""),i.sdp!=null&&i.hasOwnProperty("sdp")&&($.sdp=i.sdp),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.ConnectCFReq"},f}(),D.ConnectCFRsp=function(){function f(k){if(this.subscribeUsers=[],k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.remoteSdp="",f.prototype.subscribeUsers=$util.emptyArray,f.create=function(i){return new f(i)},f.encode=function(i,c){if(c||(c=$Writer.create()),i.remoteSdp!=null&&Object.hasOwnProperty.call(i,"remoteSdp")&&c.uint32(10).string(i.remoteSdp),i.subscribeUsers!=null&&i.subscribeUsers.length)for(let $=0;$<i.subscribeUsers.length;++$)$root.com.quick.voice.proto.User.encode(i.subscribeUsers[$],c.uint32(18).fork()).ldelim();return c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.ConnectCFRsp;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.remoteSdp=i.string();break}case 2:{C.subscribeUsers&&C.subscribeUsers.length||(C.subscribeUsers=[]),C.subscribeUsers.push($root.com.quick.voice.proto.User.decode(i,i.uint32()));break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.remoteSdp!=null&&i.hasOwnProperty("remoteSdp")&&!$util.isString(i.remoteSdp))return"remoteSdp: string expected";if(i.subscribeUsers!=null&&i.hasOwnProperty("subscribeUsers")){if(!Array.isArray(i.subscribeUsers))return"subscribeUsers: array expected";for(let c=0;c<i.subscribeUsers.length;++c){let $=$root.com.quick.voice.proto.User.verify(i.subscribeUsers[c]);if($)return"subscribeUsers."+$}}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.ConnectCFRsp)return i;let c=new $root.com.quick.voice.proto.ConnectCFRsp;if(i.remoteSdp!=null&&(c.remoteSdp=String(i.remoteSdp)),i.subscribeUsers){if(!Array.isArray(i.subscribeUsers))throw TypeError(".com.quick.voice.proto.ConnectCFRsp.subscribeUsers: array expected");c.subscribeUsers=[];for(let $=0;$<i.subscribeUsers.length;++$){if(typeof i.subscribeUsers[$]!="object")throw TypeError(".com.quick.voice.proto.ConnectCFRsp.subscribeUsers: object expected");c.subscribeUsers[$]=$root.com.quick.voice.proto.User.fromObject(i.subscribeUsers[$])}}return c},f.toObject=function(i,c){c||(c={});let $={};if((c.arrays||c.defaults)&&($.subscribeUsers=[]),c.defaults&&($.remoteSdp=""),i.remoteSdp!=null&&i.hasOwnProperty("remoteSdp")&&($.remoteSdp=i.remoteSdp),i.subscribeUsers&&i.subscribeUsers.length){$.subscribeUsers=[];for(let C=0;C<i.subscribeUsers.length;++C)$.subscribeUsers[C]=$root.com.quick.voice.proto.User.toObject(i.subscribeUsers[C],c)}return $},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.ConnectCFRsp"},f}(),D.PublishReq=function(){function f(i){if(this.tracks=[],i)for(let c=Object.keys(i),$=0;$<c.length;++$)i[c[$]]!=null&&(this[c[$]]=i[c[$]])}f.prototype.sdp="",f.prototype.tracks=$util.emptyArray,f.prototype.callAction=0,f.prototype.recreate=null;let k;return Object.defineProperty(f.prototype,"_recreate",{get:$util.oneOfGetter(k=["recreate"]),set:$util.oneOfSetter(k)}),f.create=function(c){return new f(c)},f.encode=function(c,$){if($||($=$Writer.create()),c.sdp!=null&&Object.hasOwnProperty.call(c,"sdp")&&$.uint32(10).string(c.sdp),c.tracks!=null&&c.tracks.length)for(let C=0;C<c.tracks.length;++C)$root.com.quick.voice.proto.Track.encode(c.tracks[C],$.uint32(18).fork()).ldelim();return c.callAction!=null&&Object.hasOwnProperty.call(c,"callAction")&&$.uint32(24).int32(c.callAction),c.recreate!=null&&Object.hasOwnProperty.call(c,"recreate")&&$.uint32(32).bool(c.recreate),$},f.encodeDelimited=function(c,$){return this.encode(c,$).ldelim()},f.decode=function(c,$){c instanceof $Reader||(c=$Reader.create(c));let C=$===void 0?c.len:c.pos+$,M=new $root.com.quick.voice.proto.PublishReq;for(;c.pos<C;){let J=c.uint32();switch(J>>>3){case 1:{M.sdp=c.string();break}case 2:{M.tracks&&M.tracks.length||(M.tracks=[]),M.tracks.push($root.com.quick.voice.proto.Track.decode(c,c.uint32()));break}case 3:{M.callAction=c.int32();break}case 4:{M.recreate=c.bool();break}default:c.skipType(J&7);break}}return M},f.decodeDelimited=function(c){return c instanceof $Reader||(c=new $Reader(c)),this.decode(c,c.uint32())},f.verify=function(c){if(typeof c!="object"||c===null)return"object expected";if(c.sdp!=null&&c.hasOwnProperty("sdp")&&!$util.isString(c.sdp))return"sdp: string expected";if(c.tracks!=null&&c.hasOwnProperty("tracks")){if(!Array.isArray(c.tracks))return"tracks: array expected";for(let $=0;$<c.tracks.length;++$){let C=$root.com.quick.voice.proto.Track.verify(c.tracks[$]);if(C)return"tracks."+C}}return c.callAction!=null&&c.hasOwnProperty("callAction")&&!$util.isInteger(c.callAction)?"callAction: integer expected":c.recreate!=null&&c.hasOwnProperty("recreate")&&typeof c.recreate!="boolean"?"recreate: boolean expected":null},f.fromObject=function(c){if(c instanceof $root.com.quick.voice.proto.PublishReq)return c;let $=new $root.com.quick.voice.proto.PublishReq;if(c.sdp!=null&&($.sdp=String(c.sdp)),c.tracks){if(!Array.isArray(c.tracks))throw TypeError(".com.quick.voice.proto.PublishReq.tracks: array expected");$.tracks=[];for(let C=0;C<c.tracks.length;++C){if(typeof c.tracks[C]!="object")throw TypeError(".com.quick.voice.proto.PublishReq.tracks: object expected");$.tracks[C]=$root.com.quick.voice.proto.Track.fromObject(c.tracks[C])}}return c.callAction!=null&&($.callAction=c.callAction|0),c.recreate!=null&&($.recreate=!!c.recreate),$},f.toObject=function(c,$){$||($={});let C={};if(($.arrays||$.defaults)&&(C.tracks=[]),$.defaults&&(C.sdp="",C.callAction=0),c.sdp!=null&&c.hasOwnProperty("sdp")&&(C.sdp=c.sdp),c.tracks&&c.tracks.length){C.tracks=[];for(let M=0;M<c.tracks.length;++M)C.tracks[M]=$root.com.quick.voice.proto.Track.toObject(c.tracks[M],$)}return c.callAction!=null&&c.hasOwnProperty("callAction")&&(C.callAction=c.callAction),c.recreate!=null&&c.hasOwnProperty("recreate")&&(C.recreate=c.recreate,$.oneofs&&(C._recreate="recreate")),C},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/com.quick.voice.proto.PublishReq"},f}(),D.PublishRsp=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.remoteSdp="",f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.remoteSdp!=null&&Object.hasOwnProperty.call(i,"remoteSdp")&&c.uint32(10).string(i.remoteSdp),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.PublishRsp;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.remoteSdp=i.string();break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){return typeof i!="object"||i===null?"object expected":i.remoteSdp!=null&&i.hasOwnProperty("remoteSdp")&&!$util.isString(i.remoteSdp)?"remoteSdp: string expected":null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.PublishRsp)return i;let c=new $root.com.quick.voice.proto.PublishRsp;return i.remoteSdp!=null&&(c.remoteSdp=String(i.remoteSdp)),c},f.toObject=function(i,c){c||(c={});let $={};return c.defaults&&($.remoteSdp=""),i.remoteSdp!=null&&i.hasOwnProperty("remoteSdp")&&($.remoteSdp=i.remoteSdp),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.PublishRsp"},f}(),D.PublishNotify=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.roomId="",f.prototype.user=null,f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.roomId!=null&&Object.hasOwnProperty.call(i,"roomId")&&c.uint32(10).string(i.roomId),i.user!=null&&Object.hasOwnProperty.call(i,"user")&&$root.com.quick.voice.proto.User.encode(i.user,c.uint32(18).fork()).ldelim(),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.PublishNotify;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.roomId=i.string();break}case 2:{C.user=$root.com.quick.voice.proto.User.decode(i,i.uint32());break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.roomId!=null&&i.hasOwnProperty("roomId")&&!$util.isString(i.roomId))return"roomId: string expected";if(i.user!=null&&i.hasOwnProperty("user")){let c=$root.com.quick.voice.proto.User.verify(i.user);if(c)return"user."+c}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.PublishNotify)return i;let c=new $root.com.quick.voice.proto.PublishNotify;if(i.roomId!=null&&(c.roomId=String(i.roomId)),i.user!=null){if(typeof i.user!="object")throw TypeError(".com.quick.voice.proto.PublishNotify.user: object expected");c.user=$root.com.quick.voice.proto.User.fromObject(i.user)}return c},f.toObject=function(i,c){c||(c={});let $={};return c.defaults&&($.roomId="",$.user=null),i.roomId!=null&&i.hasOwnProperty("roomId")&&($.roomId=i.roomId),i.user!=null&&i.hasOwnProperty("user")&&($.user=$root.com.quick.voice.proto.User.toObject(i.user,c)),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.PublishNotify"},f}(),D.SubscribeReq=function(){function f(k){if(this.users=[],k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.users=$util.emptyArray,f.create=function(i){return new f(i)},f.encode=function(i,c){if(c||(c=$Writer.create()),i.users!=null&&i.users.length)for(let $=0;$<i.users.length;++$)$root.com.quick.voice.proto.User.encode(i.users[$],c.uint32(10).fork()).ldelim();return c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.SubscribeReq;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.users&&C.users.length||(C.users=[]),C.users.push($root.com.quick.voice.proto.User.decode(i,i.uint32()));break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.users!=null&&i.hasOwnProperty("users")){if(!Array.isArray(i.users))return"users: array expected";for(let c=0;c<i.users.length;++c){let $=$root.com.quick.voice.proto.User.verify(i.users[c]);if($)return"users."+$}}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.SubscribeReq)return i;let c=new $root.com.quick.voice.proto.SubscribeReq;if(i.users){if(!Array.isArray(i.users))throw TypeError(".com.quick.voice.proto.SubscribeReq.users: array expected");c.users=[];for(let $=0;$<i.users.length;++$){if(typeof i.users[$]!="object")throw TypeError(".com.quick.voice.proto.SubscribeReq.users: object expected");c.users[$]=$root.com.quick.voice.proto.User.fromObject(i.users[$])}}return c},f.toObject=function(i,c){c||(c={});let $={};if((c.arrays||c.defaults)&&($.users=[]),i.users&&i.users.length){$.users=[];for(let C=0;C<i.users.length;++C)$.users[C]=$root.com.quick.voice.proto.User.toObject(i.users[C],c)}return $},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.SubscribeReq"},f}(),D.SubscribeRsp=function(){function f(k){if(this.users=[],k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.remoteSdp="",f.prototype.users=$util.emptyArray,f.create=function(i){return new f(i)},f.encode=function(i,c){if(c||(c=$Writer.create()),i.remoteSdp!=null&&Object.hasOwnProperty.call(i,"remoteSdp")&&c.uint32(10).string(i.remoteSdp),i.users!=null&&i.users.length)for(let $=0;$<i.users.length;++$)$root.com.quick.voice.proto.User.encode(i.users[$],c.uint32(18).fork()).ldelim();return c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.SubscribeRsp;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.remoteSdp=i.string();break}case 2:{C.users&&C.users.length||(C.users=[]),C.users.push($root.com.quick.voice.proto.User.decode(i,i.uint32()));break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.remoteSdp!=null&&i.hasOwnProperty("remoteSdp")&&!$util.isString(i.remoteSdp))return"remoteSdp: string expected";if(i.users!=null&&i.hasOwnProperty("users")){if(!Array.isArray(i.users))return"users: array expected";for(let c=0;c<i.users.length;++c){let $=$root.com.quick.voice.proto.User.verify(i.users[c]);if($)return"users."+$}}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.SubscribeRsp)return i;let c=new $root.com.quick.voice.proto.SubscribeRsp;if(i.remoteSdp!=null&&(c.remoteSdp=String(i.remoteSdp)),i.users){if(!Array.isArray(i.users))throw TypeError(".com.quick.voice.proto.SubscribeRsp.users: array expected");c.users=[];for(let $=0;$<i.users.length;++$){if(typeof i.users[$]!="object")throw TypeError(".com.quick.voice.proto.SubscribeRsp.users: object expected");c.users[$]=$root.com.quick.voice.proto.User.fromObject(i.users[$])}}return c},f.toObject=function(i,c){c||(c={});let $={};if((c.arrays||c.defaults)&&($.users=[]),c.defaults&&($.remoteSdp=""),i.remoteSdp!=null&&i.hasOwnProperty("remoteSdp")&&($.remoteSdp=i.remoteSdp),i.users&&i.users.length){$.users=[];for(let C=0;C<i.users.length;++C)$.users[C]=$root.com.quick.voice.proto.User.toObject(i.users[C],c)}return $},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.SubscribeRsp"},f}(),D.RenegotiateReq=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.userId="",f.prototype.sdp="",f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.userId!=null&&Object.hasOwnProperty.call(i,"userId")&&c.uint32(10).string(i.userId),i.sdp!=null&&Object.hasOwnProperty.call(i,"sdp")&&c.uint32(18).string(i.sdp),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.RenegotiateReq;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.userId=i.string();break}case 2:{C.sdp=i.string();break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){return typeof i!="object"||i===null?"object expected":i.userId!=null&&i.hasOwnProperty("userId")&&!$util.isString(i.userId)?"userId: string expected":i.sdp!=null&&i.hasOwnProperty("sdp")&&!$util.isString(i.sdp)?"sdp: string expected":null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.RenegotiateReq)return i;let c=new $root.com.quick.voice.proto.RenegotiateReq;return i.userId!=null&&(c.userId=String(i.userId)),i.sdp!=null&&(c.sdp=String(i.sdp)),c},f.toObject=function(i,c){c||(c={});let $={};return c.defaults&&($.userId="",$.sdp=""),i.userId!=null&&i.hasOwnProperty("userId")&&($.userId=i.userId),i.sdp!=null&&i.hasOwnProperty("sdp")&&($.sdp=i.sdp),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.RenegotiateReq"},f}(),D.QuitReq=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.userId="",f.prototype.roomId="",f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.userId!=null&&Object.hasOwnProperty.call(i,"userId")&&c.uint32(10).string(i.userId),i.roomId!=null&&Object.hasOwnProperty.call(i,"roomId")&&c.uint32(18).string(i.roomId),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.QuitReq;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.userId=i.string();break}case 2:{C.roomId=i.string();break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){return typeof i!="object"||i===null?"object expected":i.userId!=null&&i.hasOwnProperty("userId")&&!$util.isString(i.userId)?"userId: string expected":i.roomId!=null&&i.hasOwnProperty("roomId")&&!$util.isString(i.roomId)?"roomId: string expected":null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.QuitReq)return i;let c=new $root.com.quick.voice.proto.QuitReq;return i.userId!=null&&(c.userId=String(i.userId)),i.roomId!=null&&(c.roomId=String(i.roomId)),c},f.toObject=function(i,c){c||(c={});let $={};return c.defaults&&($.userId="",$.roomId=""),i.userId!=null&&i.hasOwnProperty("userId")&&($.userId=i.userId),i.roomId!=null&&i.hasOwnProperty("roomId")&&($.roomId=i.roomId),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.QuitReq"},f}(),D.QuitNotify=function(){function f(i){if(i)for(let c=Object.keys(i),$=0;$<c.length;++$)i[c[$]]!=null&&(this[c[$]]=i[c[$]])}f.prototype.roomId="",f.prototype.user=null,f.prototype.code=null,f.prototype.desc=null;let k;return Object.defineProperty(f.prototype,"_code",{get:$util.oneOfGetter(k=["code"]),set:$util.oneOfSetter(k)}),Object.defineProperty(f.prototype,"_desc",{get:$util.oneOfGetter(k=["desc"]),set:$util.oneOfSetter(k)}),f.create=function(c){return new f(c)},f.encode=function(c,$){return $||($=$Writer.create()),c.roomId!=null&&Object.hasOwnProperty.call(c,"roomId")&&$.uint32(10).string(c.roomId),c.user!=null&&Object.hasOwnProperty.call(c,"user")&&$root.com.quick.voice.proto.User.encode(c.user,$.uint32(18).fork()).ldelim(),c.code!=null&&Object.hasOwnProperty.call(c,"code")&&$.uint32(24).int32(c.code),c.desc!=null&&Object.hasOwnProperty.call(c,"desc")&&$.uint32(34).string(c.desc),$},f.encodeDelimited=function(c,$){return this.encode(c,$).ldelim()},f.decode=function(c,$){c instanceof $Reader||(c=$Reader.create(c));let C=$===void 0?c.len:c.pos+$,M=new $root.com.quick.voice.proto.QuitNotify;for(;c.pos<C;){let J=c.uint32();switch(J>>>3){case 1:{M.roomId=c.string();break}case 2:{M.user=$root.com.quick.voice.proto.User.decode(c,c.uint32());break}case 3:{M.code=c.int32();break}case 4:{M.desc=c.string();break}default:c.skipType(J&7);break}}return M},f.decodeDelimited=function(c){return c instanceof $Reader||(c=new $Reader(c)),this.decode(c,c.uint32())},f.verify=function(c){if(typeof c!="object"||c===null)return"object expected";if(c.roomId!=null&&c.hasOwnProperty("roomId")&&!$util.isString(c.roomId))return"roomId: string expected";if(c.user!=null&&c.hasOwnProperty("user")){let $=$root.com.quick.voice.proto.User.verify(c.user);if($)return"user."+$}return c.code!=null&&c.hasOwnProperty("code")&&!$util.isInteger(c.code)?"code: integer expected":c.desc!=null&&c.hasOwnProperty("desc")&&!$util.isString(c.desc)?"desc: string expected":null},f.fromObject=function(c){if(c instanceof $root.com.quick.voice.proto.QuitNotify)return c;let $=new $root.com.quick.voice.proto.QuitNotify;if(c.roomId!=null&&($.roomId=String(c.roomId)),c.user!=null){if(typeof c.user!="object")throw TypeError(".com.quick.voice.proto.QuitNotify.user: object expected");$.user=$root.com.quick.voice.proto.User.fromObject(c.user)}return c.code!=null&&($.code=c.code|0),c.desc!=null&&($.desc=String(c.desc)),$},f.toObject=function(c,$){$||($={});let C={};return $.defaults&&(C.roomId="",C.user=null),c.roomId!=null&&c.hasOwnProperty("roomId")&&(C.roomId=c.roomId),c.user!=null&&c.hasOwnProperty("user")&&(C.user=$root.com.quick.voice.proto.User.toObject(c.user,$)),c.code!=null&&c.hasOwnProperty("code")&&(C.code=c.code,$.oneofs&&(C._code="code")),c.desc!=null&&c.hasOwnProperty("desc")&&(C.desc=c.desc,$.oneofs&&(C._desc="desc")),C},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/com.quick.voice.proto.QuitNotify"},f}(),D.TokenExpireNotify=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.roomId="",f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.roomId!=null&&Object.hasOwnProperty.call(i,"roomId")&&c.uint32(10).string(i.roomId),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.TokenExpireNotify;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.roomId=i.string();break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){return typeof i!="object"||i===null?"object expected":i.roomId!=null&&i.hasOwnProperty("roomId")&&!$util.isString(i.roomId)?"roomId: string expected":null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.TokenExpireNotify)return i;let c=new $root.com.quick.voice.proto.TokenExpireNotify;return i.roomId!=null&&(c.roomId=String(i.roomId)),c},f.toObject=function(i,c){c||(c={});let $={};return c.defaults&&($.roomId=""),i.roomId!=null&&i.hasOwnProperty("roomId")&&($.roomId=i.roomId),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.TokenExpireNotify"},f}(),D.UpdateTokenReq=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.roomId="",f.prototype.sdkToken="",f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.roomId!=null&&Object.hasOwnProperty.call(i,"roomId")&&c.uint32(10).string(i.roomId),i.sdkToken!=null&&Object.hasOwnProperty.call(i,"sdkToken")&&c.uint32(18).string(i.sdkToken),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.UpdateTokenReq;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.roomId=i.string();break}case 2:{C.sdkToken=i.string();break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){return typeof i!="object"||i===null?"object expected":i.roomId!=null&&i.hasOwnProperty("roomId")&&!$util.isString(i.roomId)?"roomId: string expected":i.sdkToken!=null&&i.hasOwnProperty("sdkToken")&&!$util.isString(i.sdkToken)?"sdkToken: string expected":null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.UpdateTokenReq)return i;let c=new $root.com.quick.voice.proto.UpdateTokenReq;return i.roomId!=null&&(c.roomId=String(i.roomId)),i.sdkToken!=null&&(c.sdkToken=String(i.sdkToken)),c},f.toObject=function(i,c){c||(c={});let $={};return c.defaults&&($.roomId="",$.sdkToken=""),i.roomId!=null&&i.hasOwnProperty("roomId")&&($.roomId=i.roomId),i.sdkToken!=null&&i.hasOwnProperty("sdkToken")&&($.sdkToken=i.sdkToken),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.UpdateTokenReq"},f}(),D.NetQualityChange=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.userId="",f.prototype.roomId="",f.prototype.egress=0,f.prototype.ingress=0,f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.userId!=null&&Object.hasOwnProperty.call(i,"userId")&&c.uint32(10).string(i.userId),i.roomId!=null&&Object.hasOwnProperty.call(i,"roomId")&&c.uint32(18).string(i.roomId),i.egress!=null&&Object.hasOwnProperty.call(i,"egress")&&c.uint32(24).int32(i.egress),i.ingress!=null&&Object.hasOwnProperty.call(i,"ingress")&&c.uint32(32).int32(i.ingress),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.NetQualityChange;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.userId=i.string();break}case 2:{C.roomId=i.string();break}case 3:{C.egress=i.int32();break}case 4:{C.ingress=i.int32();break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){return typeof i!="object"||i===null?"object expected":i.userId!=null&&i.hasOwnProperty("userId")&&!$util.isString(i.userId)?"userId: string expected":i.roomId!=null&&i.hasOwnProperty("roomId")&&!$util.isString(i.roomId)?"roomId: string expected":i.egress!=null&&i.hasOwnProperty("egress")&&!$util.isInteger(i.egress)?"egress: integer expected":i.ingress!=null&&i.hasOwnProperty("ingress")&&!$util.isInteger(i.ingress)?"ingress: integer expected":null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.NetQualityChange)return i;let c=new $root.com.quick.voice.proto.NetQualityChange;return i.userId!=null&&(c.userId=String(i.userId)),i.roomId!=null&&(c.roomId=String(i.roomId)),i.egress!=null&&(c.egress=i.egress|0),i.ingress!=null&&(c.ingress=i.ingress|0),c},f.toObject=function(i,c){c||(c={});let $={};return c.defaults&&($.userId="",$.roomId="",$.egress=0,$.ingress=0),i.userId!=null&&i.hasOwnProperty("userId")&&($.userId=i.userId),i.roomId!=null&&i.hasOwnProperty("roomId")&&($.roomId=i.roomId),i.egress!=null&&i.hasOwnProperty("egress")&&($.egress=i.egress),i.ingress!=null&&i.hasOwnProperty("ingress")&&($.ingress=i.ingress),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.NetQualityChange"},f}(),D.NetQualityNotify=function(){function f(k){if(this.qualities=[],k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.qualities=$util.emptyArray,f.create=function(i){return new f(i)},f.encode=function(i,c){if(c||(c=$Writer.create()),i.qualities!=null&&i.qualities.length)for(let $=0;$<i.qualities.length;++$)$root.com.quick.voice.proto.NetQualityChange.encode(i.qualities[$],c.uint32(10).fork()).ldelim();return c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.NetQualityNotify;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.qualities&&C.qualities.length||(C.qualities=[]),C.qualities.push($root.com.quick.voice.proto.NetQualityChange.decode(i,i.uint32()));break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.qualities!=null&&i.hasOwnProperty("qualities")){if(!Array.isArray(i.qualities))return"qualities: array expected";for(let c=0;c<i.qualities.length;++c){let $=$root.com.quick.voice.proto.NetQualityChange.verify(i.qualities[c]);if($)return"qualities."+$}}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.NetQualityNotify)return i;let c=new $root.com.quick.voice.proto.NetQualityNotify;if(i.qualities){if(!Array.isArray(i.qualities))throw TypeError(".com.quick.voice.proto.NetQualityNotify.qualities: array expected");c.qualities=[];for(let $=0;$<i.qualities.length;++$){if(typeof i.qualities[$]!="object")throw TypeError(".com.quick.voice.proto.NetQualityNotify.qualities: object expected");c.qualities[$]=$root.com.quick.voice.proto.NetQualityChange.fromObject(i.qualities[$])}}return c},f.toObject=function(i,c){c||(c={});let $={};if((c.arrays||c.defaults)&&($.qualities=[]),i.qualities&&i.qualities.length){$.qualities=[];for(let C=0;C<i.qualities.length;++C)$.qualities[C]=$root.com.quick.voice.proto.NetQualityChange.toObject(i.qualities[C],c)}return $},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.NetQualityNotify"},f}(),D.UpdateCall=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.roomId="",f.prototype.user=null,f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.roomId!=null&&Object.hasOwnProperty.call(i,"roomId")&&c.uint32(10).string(i.roomId),i.user!=null&&Object.hasOwnProperty.call(i,"user")&&$root.com.quick.voice.proto.User.encode(i.user,c.uint32(18).fork()).ldelim(),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.UpdateCall;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.roomId=i.string();break}case 2:{C.user=$root.com.quick.voice.proto.User.decode(i,i.uint32());break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.roomId!=null&&i.hasOwnProperty("roomId")&&!$util.isString(i.roomId))return"roomId: string expected";if(i.user!=null&&i.hasOwnProperty("user")){let c=$root.com.quick.voice.proto.User.verify(i.user);if(c)return"user."+c}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.UpdateCall)return i;let c=new $root.com.quick.voice.proto.UpdateCall;if(i.roomId!=null&&(c.roomId=String(i.roomId)),i.user!=null){if(typeof i.user!="object")throw TypeError(".com.quick.voice.proto.UpdateCall.user: object expected");c.user=$root.com.quick.voice.proto.User.fromObject(i.user)}return c},f.toObject=function(i,c){c||(c={});let $={};return c.defaults&&($.roomId="",$.user=null),i.roomId!=null&&i.hasOwnProperty("roomId")&&($.roomId=i.roomId),i.user!=null&&i.hasOwnProperty("user")&&($.user=$root.com.quick.voice.proto.User.toObject(i.user,c)),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.UpdateCall"},f}(),D.SyncRoomInfoReq=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.roomId="",f.prototype.user=null,f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.roomId!=null&&Object.hasOwnProperty.call(i,"roomId")&&c.uint32(10).string(i.roomId),i.user!=null&&Object.hasOwnProperty.call(i,"user")&&$root.com.quick.voice.proto.User.encode(i.user,c.uint32(18).fork()).ldelim(),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.SyncRoomInfoReq;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.roomId=i.string();break}case 2:{C.user=$root.com.quick.voice.proto.User.decode(i,i.uint32());break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.roomId!=null&&i.hasOwnProperty("roomId")&&!$util.isString(i.roomId))return"roomId: string expected";if(i.user!=null&&i.hasOwnProperty("user")){let c=$root.com.quick.voice.proto.User.verify(i.user);if(c)return"user."+c}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.SyncRoomInfoReq)return i;let c=new $root.com.quick.voice.proto.SyncRoomInfoReq;if(i.roomId!=null&&(c.roomId=String(i.roomId)),i.user!=null){if(typeof i.user!="object")throw TypeError(".com.quick.voice.proto.SyncRoomInfoReq.user: object expected");c.user=$root.com.quick.voice.proto.User.fromObject(i.user)}return c},f.toObject=function(i,c){c||(c={});let $={};return c.defaults&&($.roomId="",$.user=null),i.roomId!=null&&i.hasOwnProperty("roomId")&&($.roomId=i.roomId),i.user!=null&&i.hasOwnProperty("user")&&($.user=$root.com.quick.voice.proto.User.toObject(i.user,c)),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.SyncRoomInfoReq"},f}(),D.SyncRoomInfoRsp=function(){function f(k){if(this.users=[],k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.roomId="",f.prototype.isValid=!1,f.prototype.users=$util.emptyArray,f.prototype.isActive=!1,f.create=function(i){return new f(i)},f.encode=function(i,c){if(c||(c=$Writer.create()),i.roomId!=null&&Object.hasOwnProperty.call(i,"roomId")&&c.uint32(10).string(i.roomId),i.isValid!=null&&Object.hasOwnProperty.call(i,"isValid")&&c.uint32(16).bool(i.isValid),i.users!=null&&i.users.length)for(let $=0;$<i.users.length;++$)$root.com.quick.voice.proto.User.encode(i.users[$],c.uint32(26).fork()).ldelim();return i.isActive!=null&&Object.hasOwnProperty.call(i,"isActive")&&c.uint32(32).bool(i.isActive),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.SyncRoomInfoRsp;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.roomId=i.string();break}case 2:{C.isValid=i.bool();break}case 3:{C.users&&C.users.length||(C.users=[]),C.users.push($root.com.quick.voice.proto.User.decode(i,i.uint32()));break}case 4:{C.isActive=i.bool();break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.roomId!=null&&i.hasOwnProperty("roomId")&&!$util.isString(i.roomId))return"roomId: string expected";if(i.isValid!=null&&i.hasOwnProperty("isValid")&&typeof i.isValid!="boolean")return"isValid: boolean expected";if(i.users!=null&&i.hasOwnProperty("users")){if(!Array.isArray(i.users))return"users: array expected";for(let c=0;c<i.users.length;++c){let $=$root.com.quick.voice.proto.User.verify(i.users[c]);if($)return"users."+$}}return i.isActive!=null&&i.hasOwnProperty("isActive")&&typeof i.isActive!="boolean"?"isActive: boolean expected":null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.SyncRoomInfoRsp)return i;let c=new $root.com.quick.voice.proto.SyncRoomInfoRsp;if(i.roomId!=null&&(c.roomId=String(i.roomId)),i.isValid!=null&&(c.isValid=!!i.isValid),i.users){if(!Array.isArray(i.users))throw TypeError(".com.quick.voice.proto.SyncRoomInfoRsp.users: array expected");c.users=[];for(let $=0;$<i.users.length;++$){if(typeof i.users[$]!="object")throw TypeError(".com.quick.voice.proto.SyncRoomInfoRsp.users: object expected");c.users[$]=$root.com.quick.voice.proto.User.fromObject(i.users[$])}}return i.isActive!=null&&(c.isActive=!!i.isActive),c},f.toObject=function(i,c){c||(c={});let $={};if((c.arrays||c.defaults)&&($.users=[]),c.defaults&&($.roomId="",$.isValid=!1,$.isActive=!1),i.roomId!=null&&i.hasOwnProperty("roomId")&&($.roomId=i.roomId),i.isValid!=null&&i.hasOwnProperty("isValid")&&($.isValid=i.isValid),i.users&&i.users.length){$.users=[];for(let C=0;C<i.users.length;++C)$.users[C]=$root.com.quick.voice.proto.User.toObject(i.users[C],c)}return i.isActive!=null&&i.hasOwnProperty("isActive")&&($.isActive=i.isActive),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.SyncRoomInfoRsp"},f}(),D.UpdateTime=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.time=$util.Long?$util.Long.fromBits(0,0,!1):0,f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.time!=null&&Object.hasOwnProperty.call(i,"time")&&c.uint32(8).int64(i.time),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.UpdateTime;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.time=i.int64();break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){return typeof i!="object"||i===null?"object expected":i.time!=null&&i.hasOwnProperty("time")&&!$util.isInteger(i.time)&&!(i.time&&$util.isInteger(i.time.low)&&$util.isInteger(i.time.high))?"time: integer|Long expected":null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.UpdateTime)return i;let c=new $root.com.quick.voice.proto.UpdateTime;return i.time!=null&&($util.Long?(c.time=$util.Long.fromValue(i.time)).unsigned=!1:typeof i.time=="string"?c.time=parseInt(i.time,10):typeof i.time=="number"?c.time=i.time:typeof i.time=="object"&&(c.time=new $util.LongBits(i.time.low>>>0,i.time.high>>>0).toNumber())),c},f.toObject=function(i,c){c||(c={});let $={};if(c.defaults)if($util.Long){let C=new $util.Long(0,0,!1);$.time=c.longs===String?C.toString():c.longs===Number?C.toNumber():C}else $.time=c.longs===String?"0":0;return i.time!=null&&i.hasOwnProperty("time")&&(typeof i.time=="number"?$.time=c.longs===String?String(i.time):i.time:$.time=c.longs===String?$util.Long.prototype.toString.call(i.time):c.longs===Number?new $util.LongBits(i.time.low>>>0,i.time.high>>>0).toNumber():i.time),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.UpdateTime"},f}(),D.CloseTrackReq=function(){function f(k){if(this.tracks=[],k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.sdp="",f.prototype.tracks=$util.emptyArray,f.prototype.roomId="",f.create=function(i){return new f(i)},f.encode=function(i,c){if(c||(c=$Writer.create()),i.sdp!=null&&Object.hasOwnProperty.call(i,"sdp")&&c.uint32(10).string(i.sdp),i.tracks!=null&&i.tracks.length)for(let $=0;$<i.tracks.length;++$)$root.com.quick.voice.proto.Track.encode(i.tracks[$],c.uint32(18).fork()).ldelim();return i.roomId!=null&&Object.hasOwnProperty.call(i,"roomId")&&c.uint32(26).string(i.roomId),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.CloseTrackReq;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.sdp=i.string();break}case 2:{C.tracks&&C.tracks.length||(C.tracks=[]),C.tracks.push($root.com.quick.voice.proto.Track.decode(i,i.uint32()));break}case 3:{C.roomId=i.string();break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.sdp!=null&&i.hasOwnProperty("sdp")&&!$util.isString(i.sdp))return"sdp: string expected";if(i.tracks!=null&&i.hasOwnProperty("tracks")){if(!Array.isArray(i.tracks))return"tracks: array expected";for(let c=0;c<i.tracks.length;++c){let $=$root.com.quick.voice.proto.Track.verify(i.tracks[c]);if($)return"tracks."+$}}return i.roomId!=null&&i.hasOwnProperty("roomId")&&!$util.isString(i.roomId)?"roomId: string expected":null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.CloseTrackReq)return i;let c=new $root.com.quick.voice.proto.CloseTrackReq;if(i.sdp!=null&&(c.sdp=String(i.sdp)),i.tracks){if(!Array.isArray(i.tracks))throw TypeError(".com.quick.voice.proto.CloseTrackReq.tracks: array expected");c.tracks=[];for(let $=0;$<i.tracks.length;++$){if(typeof i.tracks[$]!="object")throw TypeError(".com.quick.voice.proto.CloseTrackReq.tracks: object expected");c.tracks[$]=$root.com.quick.voice.proto.Track.fromObject(i.tracks[$])}}return i.roomId!=null&&(c.roomId=String(i.roomId)),c},f.toObject=function(i,c){c||(c={});let $={};if((c.arrays||c.defaults)&&($.tracks=[]),c.defaults&&($.sdp="",$.roomId=""),i.sdp!=null&&i.hasOwnProperty("sdp")&&($.sdp=i.sdp),i.tracks&&i.tracks.length){$.tracks=[];for(let C=0;C<i.tracks.length;++C)$.tracks[C]=$root.com.quick.voice.proto.Track.toObject(i.tracks[C],c)}return i.roomId!=null&&i.hasOwnProperty("roomId")&&($.roomId=i.roomId),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.CloseTrackReq"},f}(),D.CloseTrackRsp=function(){function f(k){if(this.tracks=[],k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.remoteSdp="",f.prototype.tracks=$util.emptyArray,f.create=function(i){return new f(i)},f.encode=function(i,c){if(c||(c=$Writer.create()),i.remoteSdp!=null&&Object.hasOwnProperty.call(i,"remoteSdp")&&c.uint32(10).string(i.remoteSdp),i.tracks!=null&&i.tracks.length)for(let $=0;$<i.tracks.length;++$)$root.com.quick.voice.proto.Track.encode(i.tracks[$],c.uint32(18).fork()).ldelim();return c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.CloseTrackRsp;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.remoteSdp=i.string();break}case 2:{C.tracks&&C.tracks.length||(C.tracks=[]),C.tracks.push($root.com.quick.voice.proto.Track.decode(i,i.uint32()));break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.remoteSdp!=null&&i.hasOwnProperty("remoteSdp")&&!$util.isString(i.remoteSdp))return"remoteSdp: string expected";if(i.tracks!=null&&i.hasOwnProperty("tracks")){if(!Array.isArray(i.tracks))return"tracks: array expected";for(let c=0;c<i.tracks.length;++c){let $=$root.com.quick.voice.proto.Track.verify(i.tracks[c]);if($)return"tracks."+$}}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.CloseTrackRsp)return i;let c=new $root.com.quick.voice.proto.CloseTrackRsp;if(i.remoteSdp!=null&&(c.remoteSdp=String(i.remoteSdp)),i.tracks){if(!Array.isArray(i.tracks))throw TypeError(".com.quick.voice.proto.CloseTrackRsp.tracks: array expected");c.tracks=[];for(let $=0;$<i.tracks.length;++$){if(typeof i.tracks[$]!="object")throw TypeError(".com.quick.voice.proto.CloseTrackRsp.tracks: object expected");c.tracks[$]=$root.com.quick.voice.proto.Track.fromObject(i.tracks[$])}}return c},f.toObject=function(i,c){c||(c={});let $={};if((c.arrays||c.defaults)&&($.tracks=[]),c.defaults&&($.remoteSdp=""),i.remoteSdp!=null&&i.hasOwnProperty("remoteSdp")&&($.remoteSdp=i.remoteSdp),i.tracks&&i.tracks.length){$.tracks=[];for(let C=0;C<i.tracks.length;++C)$.tracks[C]=$root.com.quick.voice.proto.Track.toObject(i.tracks[C],c)}return $},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.CloseTrackRsp"},f}(),D.CloseTrackNotify=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.user=null,f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.user!=null&&Object.hasOwnProperty.call(i,"user")&&$root.com.quick.voice.proto.User.encode(i.user,c.uint32(10).fork()).ldelim(),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.CloseTrackNotify;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.user=$root.com.quick.voice.proto.User.decode(i,i.uint32());break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.user!=null&&i.hasOwnProperty("user")){let c=$root.com.quick.voice.proto.User.verify(i.user);if(c)return"user."+c}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.CloseTrackNotify)return i;let c=new $root.com.quick.voice.proto.CloseTrackNotify;if(i.user!=null){if(typeof i.user!="object")throw TypeError(".com.quick.voice.proto.CloseTrackNotify.user: object expected");c.user=$root.com.quick.voice.proto.User.fromObject(i.user)}return c},f.toObject=function(i,c){c||(c={});let $={};return c.defaults&&($.user=null),i.user!=null&&i.hasOwnProperty("user")&&($.user=$root.com.quick.voice.proto.User.toObject(i.user,c)),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.CloseTrackNotify"},f}(),D.ToggleLiveRoomReq=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.roomId="",f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.roomId!=null&&Object.hasOwnProperty.call(i,"roomId")&&c.uint32(10).string(i.roomId),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.ToggleLiveRoomReq;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.roomId=i.string();break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){return typeof i!="object"||i===null?"object expected":i.roomId!=null&&i.hasOwnProperty("roomId")&&!$util.isString(i.roomId)?"roomId: string expected":null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.ToggleLiveRoomReq)return i;let c=new $root.com.quick.voice.proto.ToggleLiveRoomReq;return i.roomId!=null&&(c.roomId=String(i.roomId)),c},f.toObject=function(i,c){c||(c={});let $={};return c.defaults&&($.roomId=""),i.roomId!=null&&i.hasOwnProperty("roomId")&&($.roomId=i.roomId),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.ToggleLiveRoomReq"},f}(),D.ToggleLiveRoomRsq=function(){function f(k){if(this.roomUsers=[],k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.roomId="",f.prototype.hash="",f.prototype.roomUsers=$util.emptyArray,f.create=function(i){return new f(i)},f.encode=function(i,c){if(c||(c=$Writer.create()),i.roomId!=null&&Object.hasOwnProperty.call(i,"roomId")&&c.uint32(10).string(i.roomId),i.hash!=null&&Object.hasOwnProperty.call(i,"hash")&&c.uint32(18).string(i.hash),i.roomUsers!=null&&i.roomUsers.length)for(let $=0;$<i.roomUsers.length;++$)$root.com.quick.voice.proto.User.encode(i.roomUsers[$],c.uint32(26).fork()).ldelim();return c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.ToggleLiveRoomRsq;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.roomId=i.string();break}case 2:{C.hash=i.string();break}case 3:{C.roomUsers&&C.roomUsers.length||(C.roomUsers=[]),C.roomUsers.push($root.com.quick.voice.proto.User.decode(i,i.uint32()));break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.roomId!=null&&i.hasOwnProperty("roomId")&&!$util.isString(i.roomId))return"roomId: string expected";if(i.hash!=null&&i.hasOwnProperty("hash")&&!$util.isString(i.hash))return"hash: string expected";if(i.roomUsers!=null&&i.hasOwnProperty("roomUsers")){if(!Array.isArray(i.roomUsers))return"roomUsers: array expected";for(let c=0;c<i.roomUsers.length;++c){let $=$root.com.quick.voice.proto.User.verify(i.roomUsers[c]);if($)return"roomUsers."+$}}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.ToggleLiveRoomRsq)return i;let c=new $root.com.quick.voice.proto.ToggleLiveRoomRsq;if(i.roomId!=null&&(c.roomId=String(i.roomId)),i.hash!=null&&(c.hash=String(i.hash)),i.roomUsers){if(!Array.isArray(i.roomUsers))throw TypeError(".com.quick.voice.proto.ToggleLiveRoomRsq.roomUsers: array expected");c.roomUsers=[];for(let $=0;$<i.roomUsers.length;++$){if(typeof i.roomUsers[$]!="object")throw TypeError(".com.quick.voice.proto.ToggleLiveRoomRsq.roomUsers: object expected");c.roomUsers[$]=$root.com.quick.voice.proto.User.fromObject(i.roomUsers[$])}}return c},f.toObject=function(i,c){c||(c={});let $={};if((c.arrays||c.defaults)&&($.roomUsers=[]),c.defaults&&($.roomId="",$.hash=""),i.roomId!=null&&i.hasOwnProperty("roomId")&&($.roomId=i.roomId),i.hash!=null&&i.hasOwnProperty("hash")&&($.hash=i.hash),i.roomUsers&&i.roomUsers.length){$.roomUsers=[];for(let C=0;C<i.roomUsers.length;++C)$.roomUsers[C]=$root.com.quick.voice.proto.User.toObject(i.roomUsers[C],c)}return $},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.ToggleLiveRoomRsq"},f}(),D.TrackType=function(){const f={},k=Object.create(f);return k[f[0]="Microphone"]=0,k[f[1]="Camera"]=1,k[f[2]="Screen"]=2,k[f[3]="SystemVoice"]=3,k}(),D.ReportInfoReq=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.actionEvent="",f.prototype.userId="",f.prototype.platform="",f.prototype.time=$util.Long?$util.Long.fromBits(0,0,!1):0,f.prototype.actionData="",f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.actionEvent!=null&&Object.hasOwnProperty.call(i,"actionEvent")&&c.uint32(10).string(i.actionEvent),i.userId!=null&&Object.hasOwnProperty.call(i,"userId")&&c.uint32(18).string(i.userId),i.platform!=null&&Object.hasOwnProperty.call(i,"platform")&&c.uint32(26).string(i.platform),i.time!=null&&Object.hasOwnProperty.call(i,"time")&&c.uint32(32).int64(i.time),i.actionData!=null&&Object.hasOwnProperty.call(i,"actionData")&&c.uint32(42).string(i.actionData),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.ReportInfoReq;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.actionEvent=i.string();break}case 2:{C.userId=i.string();break}case 3:{C.platform=i.string();break}case 4:{C.time=i.int64();break}case 5:{C.actionData=i.string();break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){return typeof i!="object"||i===null?"object expected":i.actionEvent!=null&&i.hasOwnProperty("actionEvent")&&!$util.isString(i.actionEvent)?"actionEvent: string expected":i.userId!=null&&i.hasOwnProperty("userId")&&!$util.isString(i.userId)?"userId: string expected":i.platform!=null&&i.hasOwnProperty("platform")&&!$util.isString(i.platform)?"platform: string expected":i.time!=null&&i.hasOwnProperty("time")&&!$util.isInteger(i.time)&&!(i.time&&$util.isInteger(i.time.low)&&$util.isInteger(i.time.high))?"time: integer|Long expected":i.actionData!=null&&i.hasOwnProperty("actionData")&&!$util.isString(i.actionData)?"actionData: string expected":null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.ReportInfoReq)return i;let c=new $root.com.quick.voice.proto.ReportInfoReq;return i.actionEvent!=null&&(c.actionEvent=String(i.actionEvent)),i.userId!=null&&(c.userId=String(i.userId)),i.platform!=null&&(c.platform=String(i.platform)),i.time!=null&&($util.Long?(c.time=$util.Long.fromValue(i.time)).unsigned=!1:typeof i.time=="string"?c.time=parseInt(i.time,10):typeof i.time=="number"?c.time=i.time:typeof i.time=="object"&&(c.time=new $util.LongBits(i.time.low>>>0,i.time.high>>>0).toNumber())),i.actionData!=null&&(c.actionData=String(i.actionData)),c},f.toObject=function(i,c){c||(c={});let $={};if(c.defaults){if($.actionEvent="",$.userId="",$.platform="",$util.Long){let C=new $util.Long(0,0,!1);$.time=c.longs===String?C.toString():c.longs===Number?C.toNumber():C}else $.time=c.longs===String?"0":0;$.actionData=""}return i.actionEvent!=null&&i.hasOwnProperty("actionEvent")&&($.actionEvent=i.actionEvent),i.userId!=null&&i.hasOwnProperty("userId")&&($.userId=i.userId),i.platform!=null&&i.hasOwnProperty("platform")&&($.platform=i.platform),i.time!=null&&i.hasOwnProperty("time")&&(typeof i.time=="number"?$.time=c.longs===String?String(i.time):i.time:$.time=c.longs===String?$util.Long.prototype.toString.call(i.time):c.longs===Number?new $util.LongBits(i.time.low>>>0,i.time.high>>>0).toNumber():i.time),i.actionData!=null&&i.hasOwnProperty("actionData")&&($.actionData=i.actionData),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.ReportInfoReq"},f}(),D.UpdatePermissions=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.roomId="",f.prototype.user=null,f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.roomId!=null&&Object.hasOwnProperty.call(i,"roomId")&&c.uint32(10).string(i.roomId),i.user!=null&&Object.hasOwnProperty.call(i,"user")&&$root.com.quick.voice.proto.User.encode(i.user,c.uint32(18).fork()).ldelim(),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.UpdatePermissions;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.roomId=i.string();break}case 2:{C.user=$root.com.quick.voice.proto.User.decode(i,i.uint32());break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.roomId!=null&&i.hasOwnProperty("roomId")&&!$util.isString(i.roomId))return"roomId: string expected";if(i.user!=null&&i.hasOwnProperty("user")){let c=$root.com.quick.voice.proto.User.verify(i.user);if(c)return"user."+c}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.UpdatePermissions)return i;let c=new $root.com.quick.voice.proto.UpdatePermissions;if(i.roomId!=null&&(c.roomId=String(i.roomId)),i.user!=null){if(typeof i.user!="object")throw TypeError(".com.quick.voice.proto.UpdatePermissions.user: object expected");c.user=$root.com.quick.voice.proto.User.fromObject(i.user)}return c},f.toObject=function(i,c){c||(c={});let $={};return c.defaults&&($.roomId="",$.user=null),i.roomId!=null&&i.hasOwnProperty("roomId")&&($.roomId=i.roomId),i.user!=null&&i.hasOwnProperty("user")&&($.user=$root.com.quick.voice.proto.User.toObject(i.user,c)),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.UpdatePermissions"},f}(),D.CallType=function(){const f={},k=Object.create(f);return k[f[0]="Normal"]=0,k[f[1]="Meeting"]=1,k[f[2]="Live"]=2,k}(),D.QuitNotifyCode=function(){const f={},k=Object.create(f);return k[f[0]="NormalQuit"]=0,k[f[2021]="Timeout"]=2021,k[f[2011]="TokenExpired"]=2011,k[f[2022]="KickOut"]=2022,k[f[2023]="EndPk"]=2023,k[f[2024]="EndLive"]=2024,k}(),D.UserBehavior=function(){function f(k){if(k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.type=0,f.prototype.behavior=!1,f.create=function(i){return new f(i)},f.encode=function(i,c){return c||(c=$Writer.create()),i.type!=null&&Object.hasOwnProperty.call(i,"type")&&c.uint32(8).int32(i.type),i.behavior!=null&&Object.hasOwnProperty.call(i,"behavior")&&c.uint32(16).bool(i.behavior),c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.UserBehavior;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.type=i.int32();break}case 2:{C.behavior=i.bool();break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.type!=null&&i.hasOwnProperty("type"))switch(i.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:break}return i.behavior!=null&&i.hasOwnProperty("behavior")&&typeof i.behavior!="boolean"?"behavior: boolean expected":null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.UserBehavior)return i;let c=new $root.com.quick.voice.proto.UserBehavior;switch(i.type){default:if(typeof i.type=="number"){c.type=i.type;break}break;case"Microphone":case 0:c.type=0;break;case"Camera":case 1:c.type=1;break;case"Screen":case 2:c.type=2;break;case"SystemVoice":case 3:c.type=3;break}return i.behavior!=null&&(c.behavior=!!i.behavior),c},f.toObject=function(i,c){c||(c={});let $={};return c.defaults&&($.type=c.enums===String?"Microphone":0,$.behavior=!1),i.type!=null&&i.hasOwnProperty("type")&&($.type=c.enums===String?$root.com.quick.voice.proto.TrackType[i.type]===void 0?i.type:$root.com.quick.voice.proto.TrackType[i.type]:i.type),i.behavior!=null&&i.hasOwnProperty("behavior")&&($.behavior=i.behavior),$},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.UserBehavior"},f}(),D.PreventUser=function(){function f(k){if(this.behaviors=[],k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.id="",f.prototype.behaviors=$util.emptyArray,f.create=function(i){return new f(i)},f.encode=function(i,c){if(c||(c=$Writer.create()),i.id!=null&&Object.hasOwnProperty.call(i,"id")&&c.uint32(10).string(i.id),i.behaviors!=null&&i.behaviors.length)for(let $=0;$<i.behaviors.length;++$)$root.com.quick.voice.proto.UserBehavior.encode(i.behaviors[$],c.uint32(18).fork()).ldelim();return c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.PreventUser;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.id=i.string();break}case 2:{C.behaviors&&C.behaviors.length||(C.behaviors=[]),C.behaviors.push($root.com.quick.voice.proto.UserBehavior.decode(i,i.uint32()));break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.id!=null&&i.hasOwnProperty("id")&&!$util.isString(i.id))return"id: string expected";if(i.behaviors!=null&&i.hasOwnProperty("behaviors")){if(!Array.isArray(i.behaviors))return"behaviors: array expected";for(let c=0;c<i.behaviors.length;++c){let $=$root.com.quick.voice.proto.UserBehavior.verify(i.behaviors[c]);if($)return"behaviors."+$}}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.PreventUser)return i;let c=new $root.com.quick.voice.proto.PreventUser;if(i.id!=null&&(c.id=String(i.id)),i.behaviors){if(!Array.isArray(i.behaviors))throw TypeError(".com.quick.voice.proto.PreventUser.behaviors: array expected");c.behaviors=[];for(let $=0;$<i.behaviors.length;++$){if(typeof i.behaviors[$]!="object")throw TypeError(".com.quick.voice.proto.PreventUser.behaviors: object expected");c.behaviors[$]=$root.com.quick.voice.proto.UserBehavior.fromObject(i.behaviors[$])}}return c},f.toObject=function(i,c){c||(c={});let $={};if((c.arrays||c.defaults)&&($.behaviors=[]),c.defaults&&($.id=""),i.id!=null&&i.hasOwnProperty("id")&&($.id=i.id),i.behaviors&&i.behaviors.length){$.behaviors=[];for(let C=0;C<i.behaviors.length;++C)$.behaviors[C]=$root.com.quick.voice.proto.UserBehavior.toObject(i.behaviors[C],c)}return $},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.PreventUser"},f}(),D.PreventUsersBehaviorReq=function(){function f(k){if(this.users=[],k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.roomId="",f.prototype.users=$util.emptyArray,f.create=function(i){return new f(i)},f.encode=function(i,c){if(c||(c=$Writer.create()),i.roomId!=null&&Object.hasOwnProperty.call(i,"roomId")&&c.uint32(10).string(i.roomId),i.users!=null&&i.users.length)for(let $=0;$<i.users.length;++$)$root.com.quick.voice.proto.PreventUser.encode(i.users[$],c.uint32(18).fork()).ldelim();return c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.PreventUsersBehaviorReq;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.roomId=i.string();break}case 2:{C.users&&C.users.length||(C.users=[]),C.users.push($root.com.quick.voice.proto.PreventUser.decode(i,i.uint32()));break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.roomId!=null&&i.hasOwnProperty("roomId")&&!$util.isString(i.roomId))return"roomId: string expected";if(i.users!=null&&i.hasOwnProperty("users")){if(!Array.isArray(i.users))return"users: array expected";for(let c=0;c<i.users.length;++c){let $=$root.com.quick.voice.proto.PreventUser.verify(i.users[c]);if($)return"users."+$}}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.PreventUsersBehaviorReq)return i;let c=new $root.com.quick.voice.proto.PreventUsersBehaviorReq;if(i.roomId!=null&&(c.roomId=String(i.roomId)),i.users){if(!Array.isArray(i.users))throw TypeError(".com.quick.voice.proto.PreventUsersBehaviorReq.users: array expected");c.users=[];for(let $=0;$<i.users.length;++$){if(typeof i.users[$]!="object")throw TypeError(".com.quick.voice.proto.PreventUsersBehaviorReq.users: object expected");c.users[$]=$root.com.quick.voice.proto.PreventUser.fromObject(i.users[$])}}return c},f.toObject=function(i,c){c||(c={});let $={};if((c.arrays||c.defaults)&&($.users=[]),c.defaults&&($.roomId=""),i.roomId!=null&&i.hasOwnProperty("roomId")&&($.roomId=i.roomId),i.users&&i.users.length){$.users=[];for(let C=0;C<i.users.length;++C)$.users[C]=$root.com.quick.voice.proto.PreventUser.toObject(i.users[C],c)}return $},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.PreventUsersBehaviorReq"},f}(),D.PreventUsersBehaviorNotify=function(){function f(k){if(this.users=[],k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.roomId="",f.prototype.users=$util.emptyArray,f.create=function(i){return new f(i)},f.encode=function(i,c){if(c||(c=$Writer.create()),i.roomId!=null&&Object.hasOwnProperty.call(i,"roomId")&&c.uint32(10).string(i.roomId),i.users!=null&&i.users.length)for(let $=0;$<i.users.length;++$)$root.com.quick.voice.proto.User.encode(i.users[$],c.uint32(18).fork()).ldelim();return c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.PreventUsersBehaviorNotify;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.roomId=i.string();break}case 2:{C.users&&C.users.length||(C.users=[]),C.users.push($root.com.quick.voice.proto.User.decode(i,i.uint32()));break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.roomId!=null&&i.hasOwnProperty("roomId")&&!$util.isString(i.roomId))return"roomId: string expected";if(i.users!=null&&i.hasOwnProperty("users")){if(!Array.isArray(i.users))return"users: array expected";for(let c=0;c<i.users.length;++c){let $=$root.com.quick.voice.proto.User.verify(i.users[c]);if($)return"users."+$}}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.PreventUsersBehaviorNotify)return i;let c=new $root.com.quick.voice.proto.PreventUsersBehaviorNotify;if(i.roomId!=null&&(c.roomId=String(i.roomId)),i.users){if(!Array.isArray(i.users))throw TypeError(".com.quick.voice.proto.PreventUsersBehaviorNotify.users: array expected");c.users=[];for(let $=0;$<i.users.length;++$){if(typeof i.users[$]!="object")throw TypeError(".com.quick.voice.proto.PreventUsersBehaviorNotify.users: object expected");c.users[$]=$root.com.quick.voice.proto.User.fromObject(i.users[$])}}return c},f.toObject=function(i,c){c||(c={});let $={};if((c.arrays||c.defaults)&&($.users=[]),c.defaults&&($.roomId=""),i.roomId!=null&&i.hasOwnProperty("roomId")&&($.roomId=i.roomId),i.users&&i.users.length){$.users=[];for(let C=0;C<i.users.length;++C)$.users[C]=$root.com.quick.voice.proto.User.toObject(i.users[C],c)}return $},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.PreventUsersBehaviorNotify"},f}(),D.AccelerationAreas=function(){const f={},k=Object.create(f);return k[f[0]="chinaMainland"]=0,k[f[1]="global"]=1,k[f[2]="overseas"]=2,k}(),D.CountMethods=function(){const f={},k=Object.create(f);return k[f[0]="flow"]=0,k[f[1]="minutes"]=1,k}(),D.BaseCDNAddress=function(){function f(k){if(this.urlMap={},k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.area=0,f.prototype.countType=0,f.prototype.urlMap=$util.emptyObject,f.create=function(i){return new f(i)},f.encode=function(i,c){if(c||(c=$Writer.create()),i.area!=null&&Object.hasOwnProperty.call(i,"area")&&c.uint32(8).int32(i.area),i.countType!=null&&Object.hasOwnProperty.call(i,"countType")&&c.uint32(16).int32(i.countType),i.urlMap!=null&&Object.hasOwnProperty.call(i,"urlMap"))for(let $=Object.keys(i.urlMap),C=0;C<$.length;++C)c.uint32(26).fork().uint32(10).string($[C]).uint32(18).string(i.urlMap[$[C]]).ldelim();return c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.BaseCDNAddress,M,J;for(;i.pos<$;){let Z=i.uint32();switch(Z>>>3){case 1:{C.area=i.int32();break}case 2:{C.countType=i.int32();break}case 3:{C.urlMap===$util.emptyObject&&(C.urlMap={});let z=i.uint32()+i.pos;for(M="",J="";i.pos<z;){let X=i.uint32();switch(X>>>3){case 1:M=i.string();break;case 2:J=i.string();break;default:i.skipType(X&7);break}}C.urlMap[M]=J;break}default:i.skipType(Z&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.area!=null&&i.hasOwnProperty("area"))switch(i.area){default:return"area: enum value expected";case 0:case 1:case 2:break}if(i.countType!=null&&i.hasOwnProperty("countType"))switch(i.countType){default:return"countType: enum value expected";case 0:case 1:break}if(i.urlMap!=null&&i.hasOwnProperty("urlMap")){if(!$util.isObject(i.urlMap))return"urlMap: object expected";let c=Object.keys(i.urlMap);for(let $=0;$<c.length;++$)if(!$util.isString(i.urlMap[c[$]]))return"urlMap: string{k:string} expected"}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.BaseCDNAddress)return i;let c=new $root.com.quick.voice.proto.BaseCDNAddress;switch(i.area){default:if(typeof i.area=="number"){c.area=i.area;break}break;case"chinaMainland":case 0:c.area=0;break;case"global":case 1:c.area=1;break;case"overseas":case 2:c.area=2;break}switch(i.countType){default:if(typeof i.countType=="number"){c.countType=i.countType;break}break;case"flow":case 0:c.countType=0;break;case"minutes":case 1:c.countType=1;break}if(i.urlMap){if(typeof i.urlMap!="object")throw TypeError(".com.quick.voice.proto.BaseCDNAddress.urlMap: object expected");c.urlMap={};for(let $=Object.keys(i.urlMap),C=0;C<$.length;++C)c.urlMap[$[C]]=String(i.urlMap[$[C]])}return c},f.toObject=function(i,c){c||(c={});let $={};(c.objects||c.defaults)&&($.urlMap={}),c.defaults&&($.area=c.enums===String?"chinaMainland":0,$.countType=c.enums===String?"flow":0),i.area!=null&&i.hasOwnProperty("area")&&($.area=c.enums===String?$root.com.quick.voice.proto.AccelerationAreas[i.area]===void 0?i.area:$root.com.quick.voice.proto.AccelerationAreas[i.area]:i.area),i.countType!=null&&i.hasOwnProperty("countType")&&($.countType=c.enums===String?$root.com.quick.voice.proto.CountMethods[i.countType]===void 0?i.countType:$root.com.quick.voice.proto.CountMethods[i.countType]:i.countType);let C;if(i.urlMap&&(C=Object.keys(i.urlMap)).length){$.urlMap={};for(let M=0;M<C.length;++M)$.urlMap[C[M]]=i.urlMap[C[M]]}return $},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.BaseCDNAddress"},f}(),D.CDNPlayAddressNotify=function(){function f(i){if(this.standLines=[],i)for(let c=Object.keys(i),$=0;$<c.length;++$)i[c[$]]!=null&&(this[c[$]]=i[c[$]])}f.prototype.roomId="",f.prototype.m3u8=null,f.prototype.rtmp=null,f.prototype.flv=null,f.prototype.rtmps=null,f.prototype.mainLine=null,f.prototype.standLines=$util.emptyArray;let k;return Object.defineProperty(f.prototype,"_m3u8",{get:$util.oneOfGetter(k=["m3u8"]),set:$util.oneOfSetter(k)}),Object.defineProperty(f.prototype,"_rtmp",{get:$util.oneOfGetter(k=["rtmp"]),set:$util.oneOfSetter(k)}),Object.defineProperty(f.prototype,"_flv",{get:$util.oneOfGetter(k=["flv"]),set:$util.oneOfSetter(k)}),Object.defineProperty(f.prototype,"_rtmps",{get:$util.oneOfGetter(k=["rtmps"]),set:$util.oneOfSetter(k)}),Object.defineProperty(f.prototype,"_mainLine",{get:$util.oneOfGetter(k=["mainLine"]),set:$util.oneOfSetter(k)}),f.create=function(c){return new f(c)},f.encode=function(c,$){if($||($=$Writer.create()),c.roomId!=null&&Object.hasOwnProperty.call(c,"roomId")&&$.uint32(10).string(c.roomId),c.m3u8!=null&&Object.hasOwnProperty.call(c,"m3u8")&&$.uint32(18).string(c.m3u8),c.rtmp!=null&&Object.hasOwnProperty.call(c,"rtmp")&&$.uint32(26).string(c.rtmp),c.flv!=null&&Object.hasOwnProperty.call(c,"flv")&&$.uint32(34).string(c.flv),c.rtmps!=null&&Object.hasOwnProperty.call(c,"rtmps")&&$.uint32(42).string(c.rtmps),c.mainLine!=null&&Object.hasOwnProperty.call(c,"mainLine")&&$root.com.quick.voice.proto.BaseCDNAddress.encode(c.mainLine,$.uint32(50).fork()).ldelim(),c.standLines!=null&&c.standLines.length)for(let C=0;C<c.standLines.length;++C)$root.com.quick.voice.proto.BaseCDNAddress.encode(c.standLines[C],$.uint32(58).fork()).ldelim();return $},f.encodeDelimited=function(c,$){return this.encode(c,$).ldelim()},f.decode=function(c,$){c instanceof $Reader||(c=$Reader.create(c));let C=$===void 0?c.len:c.pos+$,M=new $root.com.quick.voice.proto.CDNPlayAddressNotify;for(;c.pos<C;){let J=c.uint32();switch(J>>>3){case 1:{M.roomId=c.string();break}case 2:{M.m3u8=c.string();break}case 3:{M.rtmp=c.string();break}case 4:{M.flv=c.string();break}case 5:{M.rtmps=c.string();break}case 6:{M.mainLine=$root.com.quick.voice.proto.BaseCDNAddress.decode(c,c.uint32());break}case 7:{M.standLines&&M.standLines.length||(M.standLines=[]),M.standLines.push($root.com.quick.voice.proto.BaseCDNAddress.decode(c,c.uint32()));break}default:c.skipType(J&7);break}}return M},f.decodeDelimited=function(c){return c instanceof $Reader||(c=new $Reader(c)),this.decode(c,c.uint32())},f.verify=function(c){if(typeof c!="object"||c===null)return"object expected";if(c.roomId!=null&&c.hasOwnProperty("roomId")&&!$util.isString(c.roomId))return"roomId: string expected";if(c.m3u8!=null&&c.hasOwnProperty("m3u8")&&!$util.isString(c.m3u8))return"m3u8: string expected";if(c.rtmp!=null&&c.hasOwnProperty("rtmp")&&!$util.isString(c.rtmp))return"rtmp: string expected";if(c.flv!=null&&c.hasOwnProperty("flv")&&!$util.isString(c.flv))return"flv: string expected";if(c.rtmps!=null&&c.hasOwnProperty("rtmps")&&!$util.isString(c.rtmps))return"rtmps: string expected";if(c.mainLine!=null&&c.hasOwnProperty("mainLine")){let $=$root.com.quick.voice.proto.BaseCDNAddress.verify(c.mainLine);if($)return"mainLine."+$}if(c.standLines!=null&&c.hasOwnProperty("standLines")){if(!Array.isArray(c.standLines))return"standLines: array expected";for(let $=0;$<c.standLines.length;++$){let C=$root.com.quick.voice.proto.BaseCDNAddress.verify(c.standLines[$]);if(C)return"standLines."+C}}return null},f.fromObject=function(c){if(c instanceof $root.com.quick.voice.proto.CDNPlayAddressNotify)return c;let $=new $root.com.quick.voice.proto.CDNPlayAddressNotify;if(c.roomId!=null&&($.roomId=String(c.roomId)),c.m3u8!=null&&($.m3u8=String(c.m3u8)),c.rtmp!=null&&($.rtmp=String(c.rtmp)),c.flv!=null&&($.flv=String(c.flv)),c.rtmps!=null&&($.rtmps=String(c.rtmps)),c.mainLine!=null){if(typeof c.mainLine!="object")throw TypeError(".com.quick.voice.proto.CDNPlayAddressNotify.mainLine: object expected");$.mainLine=$root.com.quick.voice.proto.BaseCDNAddress.fromObject(c.mainLine)}if(c.standLines){if(!Array.isArray(c.standLines))throw TypeError(".com.quick.voice.proto.CDNPlayAddressNotify.standLines: array expected");$.standLines=[];for(let C=0;C<c.standLines.length;++C){if(typeof c.standLines[C]!="object")throw TypeError(".com.quick.voice.proto.CDNPlayAddressNotify.standLines: object expected");$.standLines[C]=$root.com.quick.voice.proto.BaseCDNAddress.fromObject(c.standLines[C])}}return $},f.toObject=function(c,$){$||($={});let C={};if(($.arrays||$.defaults)&&(C.standLines=[]),$.defaults&&(C.roomId=""),c.roomId!=null&&c.hasOwnProperty("roomId")&&(C.roomId=c.roomId),c.m3u8!=null&&c.hasOwnProperty("m3u8")&&(C.m3u8=c.m3u8,$.oneofs&&(C._m3u8="m3u8")),c.rtmp!=null&&c.hasOwnProperty("rtmp")&&(C.rtmp=c.rtmp,$.oneofs&&(C._rtmp="rtmp")),c.flv!=null&&c.hasOwnProperty("flv")&&(C.flv=c.flv,$.oneofs&&(C._flv="flv")),c.rtmps!=null&&c.hasOwnProperty("rtmps")&&(C.rtmps=c.rtmps,$.oneofs&&(C._rtmps="rtmps")),c.mainLine!=null&&c.hasOwnProperty("mainLine")&&(C.mainLine=$root.com.quick.voice.proto.BaseCDNAddress.toObject(c.mainLine,$),$.oneofs&&(C._mainLine="mainLine")),c.standLines&&c.standLines.length){C.standLines=[];for(let M=0;M<c.standLines.length;++M)C.standLines[M]=$root.com.quick.voice.proto.BaseCDNAddress.toObject(c.standLines[M],$)}return C},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/com.quick.voice.proto.CDNPlayAddressNotify"},f}(),D.UserChannel=function(){function f(k){if(this.channels=[],k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.userId="",f.prototype.channels=$util.emptyArray,f.create=function(i){return new f(i)},f.encode=function(i,c){if(c||(c=$Writer.create()),i.userId!=null&&Object.hasOwnProperty.call(i,"userId")&&c.uint32(10).string(i.userId),i.channels!=null&&i.channels.length)for(let $=0;$<i.channels.length;++$)$root.com.quick.voice.proto.DataChannel.encode(i.channels[$],c.uint32(18).fork()).ldelim();return c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.UserChannel;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.userId=i.string();break}case 2:{C.channels&&C.channels.length||(C.channels=[]),C.channels.push($root.com.quick.voice.proto.DataChannel.decode(i,i.uint32()));break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.userId!=null&&i.hasOwnProperty("userId")&&!$util.isString(i.userId))return"userId: string expected";if(i.channels!=null&&i.hasOwnProperty("channels")){if(!Array.isArray(i.channels))return"channels: array expected";for(let c=0;c<i.channels.length;++c){let $=$root.com.quick.voice.proto.DataChannel.verify(i.channels[c]);if($)return"channels."+$}}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.UserChannel)return i;let c=new $root.com.quick.voice.proto.UserChannel;if(i.userId!=null&&(c.userId=String(i.userId)),i.channels){if(!Array.isArray(i.channels))throw TypeError(".com.quick.voice.proto.UserChannel.channels: array expected");c.channels=[];for(let $=0;$<i.channels.length;++$){if(typeof i.channels[$]!="object")throw TypeError(".com.quick.voice.proto.UserChannel.channels: object expected");c.channels[$]=$root.com.quick.voice.proto.DataChannel.fromObject(i.channels[$])}}return c},f.toObject=function(i,c){c||(c={});let $={};if((c.arrays||c.defaults)&&($.channels=[]),c.defaults&&($.userId=""),i.userId!=null&&i.hasOwnProperty("userId")&&($.userId=i.userId),i.channels&&i.channels.length){$.channels=[];for(let C=0;C<i.channels.length;++C)$.channels[C]=$root.com.quick.voice.proto.DataChannel.toObject(i.channels[C],c)}return $},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.UserChannel"},f}(),D.ChannelPublishReq=function(){function f(k){if(this.channels=[],k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.channels=$util.emptyArray,f.create=function(i){return new f(i)},f.encode=function(i,c){if(c||(c=$Writer.create()),i.channels!=null&&i.channels.length)for(let $=0;$<i.channels.length;++$)$root.com.quick.voice.proto.DataChannel.encode(i.channels[$],c.uint32(10).fork()).ldelim();return c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.ChannelPublishReq;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.channels&&C.channels.length||(C.channels=[]),C.channels.push($root.com.quick.voice.proto.DataChannel.decode(i,i.uint32()));break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.channels!=null&&i.hasOwnProperty("channels")){if(!Array.isArray(i.channels))return"channels: array expected";for(let c=0;c<i.channels.length;++c){let $=$root.com.quick.voice.proto.DataChannel.verify(i.channels[c]);if($)return"channels."+$}}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.ChannelPublishReq)return i;let c=new $root.com.quick.voice.proto.ChannelPublishReq;if(i.channels){if(!Array.isArray(i.channels))throw TypeError(".com.quick.voice.proto.ChannelPublishReq.channels: array expected");c.channels=[];for(let $=0;$<i.channels.length;++$){if(typeof i.channels[$]!="object")throw TypeError(".com.quick.voice.proto.ChannelPublishReq.channels: object expected");c.channels[$]=$root.com.quick.voice.proto.DataChannel.fromObject(i.channels[$])}}return c},f.toObject=function(i,c){c||(c={});let $={};if((c.arrays||c.defaults)&&($.channels=[]),i.channels&&i.channels.length){$.channels=[];for(let C=0;C<i.channels.length;++C)$.channels[C]=$root.com.quick.voice.proto.DataChannel.toObject(i.channels[C],c)}return $},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.ChannelPublishReq"},f}(),D.ChannelPublishRsq=function(){function f(k){if(this.channels=[],k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.channels=$util.emptyArray,f.create=function(i){return new f(i)},f.encode=function(i,c){if(c||(c=$Writer.create()),i.channels!=null&&i.channels.length)for(let $=0;$<i.channels.length;++$)$root.com.quick.voice.proto.UserChannel.encode(i.channels[$],c.uint32(10).fork()).ldelim();return c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.ChannelPublishRsq;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.channels&&C.channels.length||(C.channels=[]),C.channels.push($root.com.quick.voice.proto.UserChannel.decode(i,i.uint32()));break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.channels!=null&&i.hasOwnProperty("channels")){if(!Array.isArray(i.channels))return"channels: array expected";for(let c=0;c<i.channels.length;++c){let $=$root.com.quick.voice.proto.UserChannel.verify(i.channels[c]);if($)return"channels."+$}}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.ChannelPublishRsq)return i;let c=new $root.com.quick.voice.proto.ChannelPublishRsq;if(i.channels){if(!Array.isArray(i.channels))throw TypeError(".com.quick.voice.proto.ChannelPublishRsq.channels: array expected");c.channels=[];for(let $=0;$<i.channels.length;++$){if(typeof i.channels[$]!="object")throw TypeError(".com.quick.voice.proto.ChannelPublishRsq.channels: object expected");c.channels[$]=$root.com.quick.voice.proto.UserChannel.fromObject(i.channels[$])}}return c},f.toObject=function(i,c){c||(c={});let $={};if((c.arrays||c.defaults)&&($.channels=[]),i.channels&&i.channels.length){$.channels=[];for(let C=0;C<i.channels.length;++C)$.channels[C]=$root.com.quick.voice.proto.UserChannel.toObject(i.channels[C],c)}return $},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.ChannelPublishRsq"},f}(),D.ChannelSubscribeReq=function(){function f(k){if(this.users=[],k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.users=$util.emptyArray,f.create=function(i){return new f(i)},f.encode=function(i,c){if(c||(c=$Writer.create()),i.users!=null&&i.users.length)for(let $=0;$<i.users.length;++$)$root.com.quick.voice.proto.UserChannel.encode(i.users[$],c.uint32(10).fork()).ldelim();return c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.ChannelSubscribeReq;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.users&&C.users.length||(C.users=[]),C.users.push($root.com.quick.voice.proto.UserChannel.decode(i,i.uint32()));break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.users!=null&&i.hasOwnProperty("users")){if(!Array.isArray(i.users))return"users: array expected";for(let c=0;c<i.users.length;++c){let $=$root.com.quick.voice.proto.UserChannel.verify(i.users[c]);if($)return"users."+$}}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.ChannelSubscribeReq)return i;let c=new $root.com.quick.voice.proto.ChannelSubscribeReq;if(i.users){if(!Array.isArray(i.users))throw TypeError(".com.quick.voice.proto.ChannelSubscribeReq.users: array expected");c.users=[];for(let $=0;$<i.users.length;++$){if(typeof i.users[$]!="object")throw TypeError(".com.quick.voice.proto.ChannelSubscribeReq.users: object expected");c.users[$]=$root.com.quick.voice.proto.UserChannel.fromObject(i.users[$])}}return c},f.toObject=function(i,c){c||(c={});let $={};if((c.arrays||c.defaults)&&($.users=[]),i.users&&i.users.length){$.users=[];for(let C=0;C<i.users.length;++C)$.users[C]=$root.com.quick.voice.proto.UserChannel.toObject(i.users[C],c)}return $},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.ChannelSubscribeReq"},f}(),D.ChannelSubscribeRsq=function(){function f(k){if(this.channels=[],k)for(let i=Object.keys(k),c=0;c<i.length;++c)k[i[c]]!=null&&(this[i[c]]=k[i[c]])}return f.prototype.channels=$util.emptyArray,f.create=function(i){return new f(i)},f.encode=function(i,c){if(c||(c=$Writer.create()),i.channels!=null&&i.channels.length)for(let $=0;$<i.channels.length;++$)$root.com.quick.voice.proto.UserChannel.encode(i.channels[$],c.uint32(10).fork()).ldelim();return c},f.encodeDelimited=function(i,c){return this.encode(i,c).ldelim()},f.decode=function(i,c){i instanceof $Reader||(i=$Reader.create(i));let $=c===void 0?i.len:i.pos+c,C=new $root.com.quick.voice.proto.ChannelSubscribeRsq;for(;i.pos<$;){let M=i.uint32();switch(M>>>3){case 1:{C.channels&&C.channels.length||(C.channels=[]),C.channels.push($root.com.quick.voice.proto.UserChannel.decode(i,i.uint32()));break}default:i.skipType(M&7);break}}return C},f.decodeDelimited=function(i){return i instanceof $Reader||(i=new $Reader(i)),this.decode(i,i.uint32())},f.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.channels!=null&&i.hasOwnProperty("channels")){if(!Array.isArray(i.channels))return"channels: array expected";for(let c=0;c<i.channels.length;++c){let $=$root.com.quick.voice.proto.UserChannel.verify(i.channels[c]);if($)return"channels."+$}}return null},f.fromObject=function(i){if(i instanceof $root.com.quick.voice.proto.ChannelSubscribeRsq)return i;let c=new $root.com.quick.voice.proto.ChannelSubscribeRsq;if(i.channels){if(!Array.isArray(i.channels))throw TypeError(".com.quick.voice.proto.ChannelSubscribeRsq.channels: array expected");c.channels=[];for(let $=0;$<i.channels.length;++$){if(typeof i.channels[$]!="object")throw TypeError(".com.quick.voice.proto.ChannelSubscribeRsq.channels: object expected");c.channels[$]=$root.com.quick.voice.proto.UserChannel.fromObject(i.channels[$])}}return c},f.toObject=function(i,c){c||(c={});let $={};if((c.arrays||c.defaults)&&($.channels=[]),i.channels&&i.channels.length){$.channels=[];for(let C=0;C<i.channels.length;++C)$.channels[C]=$root.com.quick.voice.proto.UserChannel.toObject(i.channels[C],c)}return $},f.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},f.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/com.quick.voice.proto.ChannelSubscribeRsq"},f}(),D}(),I}(),N}(),O})(),enum_notifyName={onChangeNetwork:"网络情况变更",healthCheck:"心跳检测",onNetQuality:"网络质量回调",onLogin:"登录回调",onLocalStream:"本地媒体流发生变化",onDevicechange:"媒体设备发生变化",onRoomUser:"房间用户变化",onRoomUsers:"房间所有用户所有变化",onRoomUsersStreams:"房间某些用户媒体流变化",onRoomState:"房间状态变化",onJoinRoom:"加入房间回调",onQuitRoom:"退出房间回调",onPublish:"监听到流发布",onDataChannelPublish:"监听数据通道发布",onCloseTrack:"关闭轨道",onUpdateCall:"更新通讯状态",onUpdateStreams:"更新媒体流",onUpdatePermissions:"更新推流权限通知",onTokenExpired:"Token已过期",onDestroyRoom:"直播模式房间销毁",onUpdateBehavior:"行为允许权限变更",destroyRoom:"服务器要求销毁房间",onCDNPlayUrlAdd:"cdn播放地址变化",onDestroy:"SDK销毁"};ht(enum_notifyName);const notifyName_keys=Object.keys(enum_notifyName);/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const Z_FIXED$1=4,Z_BINARY=0,Z_TEXT=1,Z_UNKNOWN$1=2;function zero$1(O){let N=O.length;for(;--N>=0;)O[N]=0}const STORED_BLOCK=0,STATIC_TREES=1,DYN_TREES=2,MIN_MATCH$1=3,MAX_MATCH$1=258,LENGTH_CODES$1=29,LITERALS$1=256,L_CODES$1=LITERALS$1+1+LENGTH_CODES$1,D_CODES$1=30,BL_CODES$1=19,HEAP_SIZE$1=2*L_CODES$1+1,MAX_BITS$1=15,Buf_size=16,MAX_BL_BITS=7,END_BLOCK=256,REP_3_6=16,REPZ_3_10=17,REPZ_11_138=18,extra_lbits=new Uint8Array([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]),extra_dbits=new Uint8Array([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]),extra_blbits=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),bl_order=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),DIST_CODE_LEN=512,static_ltree=new Array((L_CODES$1+2)*2);zero$1(static_ltree);const static_dtree=new Array(D_CODES$1*2);zero$1(static_dtree);const _dist_code=new Array(DIST_CODE_LEN);zero$1(_dist_code);const _length_code=new Array(MAX_MATCH$1-MIN_MATCH$1+1);zero$1(_length_code);const base_length=new Array(LENGTH_CODES$1);zero$1(base_length);const base_dist=new Array(D_CODES$1);zero$1(base_dist);function StaticTreeDesc(O,N,I,D,f){this.static_tree=O,this.extra_bits=N,this.extra_base=I,this.elems=D,this.max_length=f,this.has_stree=O&&O.length}let static_l_desc,static_d_desc,static_bl_desc;function TreeDesc(O,N){this.dyn_tree=O,this.max_code=0,this.stat_desc=N}const d_code=O=>O<256?_dist_code[O]:_dist_code[256+(O>>>7)],put_short=(O,N)=>{O.pending_buf[O.pending++]=N&255,O.pending_buf[O.pending++]=N>>>8&255},send_bits=(O,N,I)=>{O.bi_valid>Buf_size-I?(O.bi_buf|=N<<O.bi_valid&65535,put_short(O,O.bi_buf),O.bi_buf=N>>Buf_size-O.bi_valid,O.bi_valid+=I-Buf_size):(O.bi_buf|=N<<O.bi_valid&65535,O.bi_valid+=I)},send_code=(O,N,I)=>{send_bits(O,I[N*2],I[N*2+1])},bi_reverse=(O,N)=>{let I=0;do I|=O&1,O>>>=1,I<<=1;while(--N>0);return I>>>1},bi_flush=O=>{O.bi_valid===16?(put_short(O,O.bi_buf),O.bi_buf=0,O.bi_valid=0):O.bi_valid>=8&&(O.pending_buf[O.pending++]=O.bi_buf&255,O.bi_buf>>=8,O.bi_valid-=8)},gen_bitlen=(O,N)=>{const I=N.dyn_tree,D=N.max_code,f=N.stat_desc.static_tree,k=N.stat_desc.has_stree,i=N.stat_desc.extra_bits,c=N.stat_desc.extra_base,$=N.stat_desc.max_length;let C,M,J,Z,z,X,re=0;for(Z=0;Z<=MAX_BITS$1;Z++)O.bl_count[Z]=0;for(I[O.heap[O.heap_max]*2+1]=0,C=O.heap_max+1;C<HEAP_SIZE$1;C++)M=O.heap[C],Z=I[I[M*2+1]*2+1]+1,Z>$&&(Z=$,re++),I[M*2+1]=Z,!(M>D)&&(O.bl_count[Z]++,z=0,M>=c&&(z=i[M-c]),X=I[M*2],O.opt_len+=X*(Z+z),k&&(O.static_len+=X*(f[M*2+1]+z)));if(re!==0){do{for(Z=$-1;O.bl_count[Z]===0;)Z--;O.bl_count[Z]--,O.bl_count[Z+1]+=2,O.bl_count[$]--,re-=2}while(re>0);for(Z=$;Z!==0;Z--)for(M=O.bl_count[Z];M!==0;)J=O.heap[--C],!(J>D)&&(I[J*2+1]!==Z&&(O.opt_len+=(Z-I[J*2+1])*I[J*2],I[J*2+1]=Z),M--)}},gen_codes=(O,N,I)=>{const D=new Array(MAX_BITS$1+1);let f=0,k,i;for(k=1;k<=MAX_BITS$1;k++)f=f+I[k-1]<<1,D[k]=f;for(i=0;i<=N;i++){let c=O[i*2+1];c!==0&&(O[i*2]=bi_reverse(D[c]++,c))}},tr_static_init=()=>{let O,N,I,D,f;const k=new Array(MAX_BITS$1+1);for(I=0,D=0;D<LENGTH_CODES$1-1;D++)for(base_length[D]=I,O=0;O<1<<extra_lbits[D];O++)_length_code[I++]=D;for(_length_code[I-1]=D,f=0,D=0;D<16;D++)for(base_dist[D]=f,O=0;O<1<<extra_dbits[D];O++)_dist_code[f++]=D;for(f>>=7;D<D_CODES$1;D++)for(base_dist[D]=f<<7,O=0;O<1<<extra_dbits[D]-7;O++)_dist_code[256+f++]=D;for(N=0;N<=MAX_BITS$1;N++)k[N]=0;for(O=0;O<=143;)static_ltree[O*2+1]=8,O++,k[8]++;for(;O<=255;)static_ltree[O*2+1]=9,O++,k[9]++;for(;O<=279;)static_ltree[O*2+1]=7,O++,k[7]++;for(;O<=287;)static_ltree[O*2+1]=8,O++,k[8]++;for(gen_codes(static_ltree,L_CODES$1+1,k),O=0;O<D_CODES$1;O++)static_dtree[O*2+1]=5,static_dtree[O*2]=bi_reverse(O,5);static_l_desc=new StaticTreeDesc(static_ltree,extra_lbits,LITERALS$1+1,L_CODES$1,MAX_BITS$1),static_d_desc=new StaticTreeDesc(static_dtree,extra_dbits,0,D_CODES$1,MAX_BITS$1),static_bl_desc=new StaticTreeDesc(new Array(0),extra_blbits,0,BL_CODES$1,MAX_BL_BITS)},init_block=O=>{let N;for(N=0;N<L_CODES$1;N++)O.dyn_ltree[N*2]=0;for(N=0;N<D_CODES$1;N++)O.dyn_dtree[N*2]=0;for(N=0;N<BL_CODES$1;N++)O.bl_tree[N*2]=0;O.dyn_ltree[END_BLOCK*2]=1,O.opt_len=O.static_len=0,O.sym_next=O.matches=0},bi_windup=O=>{O.bi_valid>8?put_short(O,O.bi_buf):O.bi_valid>0&&(O.pending_buf[O.pending++]=O.bi_buf),O.bi_buf=0,O.bi_valid=0},smaller=(O,N,I,D)=>{const f=N*2,k=I*2;return O[f]<O[k]||O[f]===O[k]&&D[N]<=D[I]},pqdownheap=(O,N,I)=>{const D=O.heap[I];let f=I<<1;for(;f<=O.heap_len&&(f<O.heap_len&&smaller(N,O.heap[f+1],O.heap[f],O.depth)&&f++,!smaller(N,D,O.heap[f],O.depth));)O.heap[I]=O.heap[f],I=f,f<<=1;O.heap[I]=D},compress_block=(O,N,I)=>{let D,f,k=0,i,c;if(O.sym_next!==0)do D=O.pending_buf[O.sym_buf+k++]&255,D+=(O.pending_buf[O.sym_buf+k++]&255)<<8,f=O.pending_buf[O.sym_buf+k++],D===0?send_code(O,f,N):(i=_length_code[f],send_code(O,i+LITERALS$1+1,N),c=extra_lbits[i],c!==0&&(f-=base_length[i],send_bits(O,f,c)),D--,i=d_code(D),send_code(O,i,I),c=extra_dbits[i],c!==0&&(D-=base_dist[i],send_bits(O,D,c)));while(k<O.sym_next);send_code(O,END_BLOCK,N)},build_tree=(O,N)=>{const I=N.dyn_tree,D=N.stat_desc.static_tree,f=N.stat_desc.has_stree,k=N.stat_desc.elems;let i,c,$=-1,C;for(O.heap_len=0,O.heap_max=HEAP_SIZE$1,i=0;i<k;i++)I[i*2]!==0?(O.heap[++O.heap_len]=$=i,O.depth[i]=0):I[i*2+1]=0;for(;O.heap_len<2;)C=O.heap[++O.heap_len]=$<2?++$:0,I[C*2]=1,O.depth[C]=0,O.opt_len--,f&&(O.static_len-=D[C*2+1]);for(N.max_code=$,i=O.heap_len>>1;i>=1;i--)pqdownheap(O,I,i);C=k;do i=O.heap[1],O.heap[1]=O.heap[O.heap_len--],pqdownheap(O,I,1),c=O.heap[1],O.heap[--O.heap_max]=i,O.heap[--O.heap_max]=c,I[C*2]=I[i*2]+I[c*2],O.depth[C]=(O.depth[i]>=O.depth[c]?O.depth[i]:O.depth[c])+1,I[i*2+1]=I[c*2+1]=C,O.heap[1]=C++,pqdownheap(O,I,1);while(O.heap_len>=2);O.heap[--O.heap_max]=O.heap[1],gen_bitlen(O,N),gen_codes(I,$,O.bl_count)},scan_tree=(O,N,I)=>{let D,f=-1,k,i=N[0*2+1],c=0,$=7,C=4;for(i===0&&($=138,C=3),N[(I+1)*2+1]=65535,D=0;D<=I;D++)k=i,i=N[(D+1)*2+1],!(++c<$&&k===i)&&(c<C?O.bl_tree[k*2]+=c:k!==0?(k!==f&&O.bl_tree[k*2]++,O.bl_tree[REP_3_6*2]++):c<=10?O.bl_tree[REPZ_3_10*2]++:O.bl_tree[REPZ_11_138*2]++,c=0,f=k,i===0?($=138,C=3):k===i?($=6,C=3):($=7,C=4))},send_tree=(O,N,I)=>{let D,f=-1,k,i=N[0*2+1],c=0,$=7,C=4;for(i===0&&($=138,C=3),D=0;D<=I;D++)if(k=i,i=N[(D+1)*2+1],!(++c<$&&k===i)){if(c<C)do send_code(O,k,O.bl_tree);while(--c!==0);else k!==0?(k!==f&&(send_code(O,k,O.bl_tree),c--),send_code(O,REP_3_6,O.bl_tree),send_bits(O,c-3,2)):c<=10?(send_code(O,REPZ_3_10,O.bl_tree),send_bits(O,c-3,3)):(send_code(O,REPZ_11_138,O.bl_tree),send_bits(O,c-11,7));c=0,f=k,i===0?($=138,C=3):k===i?($=6,C=3):($=7,C=4)}},build_bl_tree=O=>{let N;for(scan_tree(O,O.dyn_ltree,O.l_desc.max_code),scan_tree(O,O.dyn_dtree,O.d_desc.max_code),build_tree(O,O.bl_desc),N=BL_CODES$1-1;N>=3&&O.bl_tree[bl_order[N]*2+1]===0;N--);return O.opt_len+=3*(N+1)+5+5+4,N},send_all_trees=(O,N,I,D)=>{let f;for(send_bits(O,N-257,5),send_bits(O,I-1,5),send_bits(O,D-4,4),f=0;f<D;f++)send_bits(O,O.bl_tree[bl_order[f]*2+1],3);send_tree(O,O.dyn_ltree,N-1),send_tree(O,O.dyn_dtree,I-1)},detect_data_type=O=>{let N=4093624447,I;for(I=0;I<=31;I++,N>>>=1)if(N&1&&O.dyn_ltree[I*2]!==0)return Z_BINARY;if(O.dyn_ltree[9*2]!==0||O.dyn_ltree[10*2]!==0||O.dyn_ltree[13*2]!==0)return Z_TEXT;for(I=32;I<LITERALS$1;I++)if(O.dyn_ltree[I*2]!==0)return Z_TEXT;return Z_BINARY};let static_init_done=!1;const _tr_init$1=O=>{static_init_done||(tr_static_init(),static_init_done=!0),O.l_desc=new TreeDesc(O.dyn_ltree,static_l_desc),O.d_desc=new TreeDesc(O.dyn_dtree,static_d_desc),O.bl_desc=new TreeDesc(O.bl_tree,static_bl_desc),O.bi_buf=0,O.bi_valid=0,init_block(O)},_tr_stored_block$1=(O,N,I,D)=>{send_bits(O,(STORED_BLOCK<<1)+(D?1:0),3),bi_windup(O),put_short(O,I),put_short(O,~I),I&&O.pending_buf.set(O.window.subarray(N,N+I),O.pending),O.pending+=I},_tr_align$1=O=>{send_bits(O,STATIC_TREES<<1,3),send_code(O,END_BLOCK,static_ltree),bi_flush(O)},_tr_flush_block$1=(O,N,I,D)=>{let f,k,i=0;O.level>0?(O.strm.data_type===Z_UNKNOWN$1&&(O.strm.data_type=detect_data_type(O)),build_tree(O,O.l_desc),build_tree(O,O.d_desc),i=build_bl_tree(O),f=O.opt_len+3+7>>>3,k=O.static_len+3+7>>>3,k<=f&&(f=k)):f=k=I+5,I+4<=f&&N!==-1?_tr_stored_block$1(O,N,I,D):O.strategy===Z_FIXED$1||k===f?(send_bits(O,(STATIC_TREES<<1)+(D?1:0),3),compress_block(O,static_ltree,static_dtree)):(send_bits(O,(DYN_TREES<<1)+(D?1:0),3),send_all_trees(O,O.l_desc.max_code+1,O.d_desc.max_code+1,i+1),compress_block(O,O.dyn_ltree,O.dyn_dtree)),init_block(O),D&&bi_windup(O)},_tr_tally$1=(O,N,I)=>(O.pending_buf[O.sym_buf+O.sym_next++]=N,O.pending_buf[O.sym_buf+O.sym_next++]=N>>8,O.pending_buf[O.sym_buf+O.sym_next++]=I,N===0?O.dyn_ltree[I*2]++:(O.matches++,N--,O.dyn_ltree[(_length_code[I]+LITERALS$1+1)*2]++,O.dyn_dtree[d_code(N)*2]++),O.sym_next===O.sym_end);var _tr_init_1=_tr_init$1,_tr_stored_block_1=_tr_stored_block$1,_tr_flush_block_1=_tr_flush_block$1,_tr_tally_1=_tr_tally$1,_tr_align_1=_tr_align$1,trees={_tr_init:_tr_init_1,_tr_stored_block:_tr_stored_block_1,_tr_flush_block:_tr_flush_block_1,_tr_tally:_tr_tally_1,_tr_align:_tr_align_1};const adler32=(O,N,I,D)=>{let f=O&65535|0,k=O>>>16&65535|0,i=0;for(;I!==0;){i=I>2e3?2e3:I,I-=i;do f=f+N[D++]|0,k=k+f|0;while(--i);f%=65521,k%=65521}return f|k<<16|0};var adler32_1=adler32;const makeTable=()=>{let O,N=[];for(var I=0;I<256;I++){O=I;for(var D=0;D<8;D++)O=O&1?3988292384^O>>>1:O>>>1;N[I]=O}return N},crcTable=new Uint32Array(makeTable()),crc32=(O,N,I,D)=>{const f=crcTable,k=D+I;O^=-1;for(let i=D;i<k;i++)O=O>>>8^f[(O^N[i])&255];return O^-1};var crc32_1=crc32,messages={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},constants$2={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init,_tr_stored_block,_tr_flush_block,_tr_tally,_tr_align}=trees,{Z_NO_FLUSH:Z_NO_FLUSH$2,Z_PARTIAL_FLUSH,Z_FULL_FLUSH:Z_FULL_FLUSH$1,Z_FINISH:Z_FINISH$3,Z_BLOCK:Z_BLOCK$1,Z_OK:Z_OK$3,Z_STREAM_END:Z_STREAM_END$3,Z_STREAM_ERROR:Z_STREAM_ERROR$2,Z_DATA_ERROR:Z_DATA_ERROR$2,Z_BUF_ERROR:Z_BUF_ERROR$1,Z_DEFAULT_COMPRESSION:Z_DEFAULT_COMPRESSION$1,Z_FILTERED,Z_HUFFMAN_ONLY,Z_RLE,Z_FIXED,Z_DEFAULT_STRATEGY:Z_DEFAULT_STRATEGY$1,Z_UNKNOWN,Z_DEFLATED:Z_DEFLATED$2}=constants$2,MAX_MEM_LEVEL=9,MAX_WBITS$1=15,DEF_MEM_LEVEL=8,LENGTH_CODES=29,LITERALS=256,L_CODES=LITERALS+1+LENGTH_CODES,D_CODES=30,BL_CODES=19,HEAP_SIZE=2*L_CODES+1,MAX_BITS=15,MIN_MATCH=3,MAX_MATCH=258,MIN_LOOKAHEAD=MAX_MATCH+MIN_MATCH+1,PRESET_DICT=32,INIT_STATE=42,GZIP_STATE=57,EXTRA_STATE=69,NAME_STATE=73,COMMENT_STATE=91,HCRC_STATE=103,BUSY_STATE=113,FINISH_STATE=666,BS_NEED_MORE=1,BS_BLOCK_DONE=2,BS_FINISH_STARTED=3,BS_FINISH_DONE=4,OS_CODE=3,err=(O,N)=>(O.msg=messages[N],N),rank=O=>O*2-(O>4?9:0),zero=O=>{let N=O.length;for(;--N>=0;)O[N]=0},slide_hash=O=>{let N,I,D,f=O.w_size;N=O.hash_size,D=N;do I=O.head[--D],O.head[D]=I>=f?I-f:0;while(--N);N=f,D=N;do I=O.prev[--D],O.prev[D]=I>=f?I-f:0;while(--N)};let HASH_ZLIB=(O,N,I)=>(N<<O.hash_shift^I)&O.hash_mask,HASH=HASH_ZLIB;const flush_pending=O=>{const N=O.state;let I=N.pending;I>O.avail_out&&(I=O.avail_out),I!==0&&(O.output.set(N.pending_buf.subarray(N.pending_out,N.pending_out+I),O.next_out),O.next_out+=I,N.pending_out+=I,O.total_out+=I,O.avail_out-=I,N.pending-=I,N.pending===0&&(N.pending_out=0))},flush_block_only=(O,N)=>{_tr_flush_block(O,O.block_start>=0?O.block_start:-1,O.strstart-O.block_start,N),O.block_start=O.strstart,flush_pending(O.strm)},put_byte=(O,N)=>{O.pending_buf[O.pending++]=N},putShortMSB=(O,N)=>{O.pending_buf[O.pending++]=N>>>8&255,O.pending_buf[O.pending++]=N&255},read_buf=(O,N,I,D)=>{let f=O.avail_in;return f>D&&(f=D),f===0?0:(O.avail_in-=f,N.set(O.input.subarray(O.next_in,O.next_in+f),I),O.state.wrap===1?O.adler=adler32_1(O.adler,N,f,I):O.state.wrap===2&&(O.adler=crc32_1(O.adler,N,f,I)),O.next_in+=f,O.total_in+=f,f)},longest_match=(O,N)=>{let I=O.max_chain_length,D=O.strstart,f,k,i=O.prev_length,c=O.nice_match;const $=O.strstart>O.w_size-MIN_LOOKAHEAD?O.strstart-(O.w_size-MIN_LOOKAHEAD):0,C=O.window,M=O.w_mask,J=O.prev,Z=O.strstart+MAX_MATCH;let z=C[D+i-1],X=C[D+i];O.prev_length>=O.good_match&&(I>>=2),c>O.lookahead&&(c=O.lookahead);do if(f=N,!(C[f+i]!==X||C[f+i-1]!==z||C[f]!==C[D]||C[++f]!==C[D+1])){D+=2,f++;do;while(C[++D]===C[++f]&&C[++D]===C[++f]&&C[++D]===C[++f]&&C[++D]===C[++f]&&C[++D]===C[++f]&&C[++D]===C[++f]&&C[++D]===C[++f]&&C[++D]===C[++f]&&D<Z);if(k=MAX_MATCH-(Z-D),D=Z-MAX_MATCH,k>i){if(O.match_start=N,i=k,k>=c)break;z=C[D+i-1],X=C[D+i]}}while((N=J[N&M])>$&&--I!==0);return i<=O.lookahead?i:O.lookahead},fill_window=O=>{const N=O.w_size;let I,D,f;do{if(D=O.window_size-O.lookahead-O.strstart,O.strstart>=N+(N-MIN_LOOKAHEAD)&&(O.window.set(O.window.subarray(N,N+N-D),0),O.match_start-=N,O.strstart-=N,O.block_start-=N,O.insert>O.strstart&&(O.insert=O.strstart),slide_hash(O),D+=N),O.strm.avail_in===0)break;if(I=read_buf(O.strm,O.window,O.strstart+O.lookahead,D),O.lookahead+=I,O.lookahead+O.insert>=MIN_MATCH)for(f=O.strstart-O.insert,O.ins_h=O.window[f],O.ins_h=HASH(O,O.ins_h,O.window[f+1]);O.insert&&(O.ins_h=HASH(O,O.ins_h,O.window[f+MIN_MATCH-1]),O.prev[f&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=f,f++,O.insert--,!(O.lookahead+O.insert<MIN_MATCH)););}while(O.lookahead<MIN_LOOKAHEAD&&O.strm.avail_in!==0)},deflate_stored=(O,N)=>{let I=O.pending_buf_size-5>O.w_size?O.w_size:O.pending_buf_size-5,D,f,k,i=0,c=O.strm.avail_in;do{if(D=65535,k=O.bi_valid+42>>3,O.strm.avail_out<k||(k=O.strm.avail_out-k,f=O.strstart-O.block_start,D>f+O.strm.avail_in&&(D=f+O.strm.avail_in),D>k&&(D=k),D<I&&(D===0&&N!==Z_FINISH$3||N===Z_NO_FLUSH$2||D!==f+O.strm.avail_in)))break;i=N===Z_FINISH$3&&D===f+O.strm.avail_in?1:0,_tr_stored_block(O,0,0,i),O.pending_buf[O.pending-4]=D,O.pending_buf[O.pending-3]=D>>8,O.pending_buf[O.pending-2]=~D,O.pending_buf[O.pending-1]=~D>>8,flush_pending(O.strm),f&&(f>D&&(f=D),O.strm.output.set(O.window.subarray(O.block_start,O.block_start+f),O.strm.next_out),O.strm.next_out+=f,O.strm.avail_out-=f,O.strm.total_out+=f,O.block_start+=f,D-=f),D&&(read_buf(O.strm,O.strm.output,O.strm.next_out,D),O.strm.next_out+=D,O.strm.avail_out-=D,O.strm.total_out+=D)}while(i===0);return c-=O.strm.avail_in,c&&(c>=O.w_size?(O.matches=2,O.window.set(O.strm.input.subarray(O.strm.next_in-O.w_size,O.strm.next_in),0),O.strstart=O.w_size,O.insert=O.strstart):(O.window_size-O.strstart<=c&&(O.strstart-=O.w_size,O.window.set(O.window.subarray(O.w_size,O.w_size+O.strstart),0),O.matches<2&&O.matches++,O.insert>O.strstart&&(O.insert=O.strstart)),O.window.set(O.strm.input.subarray(O.strm.next_in-c,O.strm.next_in),O.strstart),O.strstart+=c,O.insert+=c>O.w_size-O.insert?O.w_size-O.insert:c),O.block_start=O.strstart),O.high_water<O.strstart&&(O.high_water=O.strstart),i?BS_FINISH_DONE:N!==Z_NO_FLUSH$2&&N!==Z_FINISH$3&&O.strm.avail_in===0&&O.strstart===O.block_start?BS_BLOCK_DONE:(k=O.window_size-O.strstart,O.strm.avail_in>k&&O.block_start>=O.w_size&&(O.block_start-=O.w_size,O.strstart-=O.w_size,O.window.set(O.window.subarray(O.w_size,O.w_size+O.strstart),0),O.matches<2&&O.matches++,k+=O.w_size,O.insert>O.strstart&&(O.insert=O.strstart)),k>O.strm.avail_in&&(k=O.strm.avail_in),k&&(read_buf(O.strm,O.window,O.strstart,k),O.strstart+=k,O.insert+=k>O.w_size-O.insert?O.w_size-O.insert:k),O.high_water<O.strstart&&(O.high_water=O.strstart),k=O.bi_valid+42>>3,k=O.pending_buf_size-k>65535?65535:O.pending_buf_size-k,I=k>O.w_size?O.w_size:k,f=O.strstart-O.block_start,(f>=I||(f||N===Z_FINISH$3)&&N!==Z_NO_FLUSH$2&&O.strm.avail_in===0&&f<=k)&&(D=f>k?k:f,i=N===Z_FINISH$3&&O.strm.avail_in===0&&D===f?1:0,_tr_stored_block(O,O.block_start,D,i),O.block_start+=D,flush_pending(O.strm)),i?BS_FINISH_STARTED:BS_NEED_MORE)},deflate_fast=(O,N)=>{let I,D;for(;;){if(O.lookahead<MIN_LOOKAHEAD){if(fill_window(O),O.lookahead<MIN_LOOKAHEAD&&N===Z_NO_FLUSH$2)return BS_NEED_MORE;if(O.lookahead===0)break}if(I=0,O.lookahead>=MIN_MATCH&&(O.ins_h=HASH(O,O.ins_h,O.window[O.strstart+MIN_MATCH-1]),I=O.prev[O.strstart&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=O.strstart),I!==0&&O.strstart-I<=O.w_size-MIN_LOOKAHEAD&&(O.match_length=longest_match(O,I)),O.match_length>=MIN_MATCH)if(D=_tr_tally(O,O.strstart-O.match_start,O.match_length-MIN_MATCH),O.lookahead-=O.match_length,O.match_length<=O.max_lazy_match&&O.lookahead>=MIN_MATCH){O.match_length--;do O.strstart++,O.ins_h=HASH(O,O.ins_h,O.window[O.strstart+MIN_MATCH-1]),I=O.prev[O.strstart&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=O.strstart;while(--O.match_length!==0);O.strstart++}else O.strstart+=O.match_length,O.match_length=0,O.ins_h=O.window[O.strstart],O.ins_h=HASH(O,O.ins_h,O.window[O.strstart+1]);else D=_tr_tally(O,0,O.window[O.strstart]),O.lookahead--,O.strstart++;if(D&&(flush_block_only(O,!1),O.strm.avail_out===0))return BS_NEED_MORE}return O.insert=O.strstart<MIN_MATCH-1?O.strstart:MIN_MATCH-1,N===Z_FINISH$3?(flush_block_only(O,!0),O.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):O.sym_next&&(flush_block_only(O,!1),O.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE},deflate_slow=(O,N)=>{let I,D,f;for(;;){if(O.lookahead<MIN_LOOKAHEAD){if(fill_window(O),O.lookahead<MIN_LOOKAHEAD&&N===Z_NO_FLUSH$2)return BS_NEED_MORE;if(O.lookahead===0)break}if(I=0,O.lookahead>=MIN_MATCH&&(O.ins_h=HASH(O,O.ins_h,O.window[O.strstart+MIN_MATCH-1]),I=O.prev[O.strstart&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=O.strstart),O.prev_length=O.match_length,O.prev_match=O.match_start,O.match_length=MIN_MATCH-1,I!==0&&O.prev_length<O.max_lazy_match&&O.strstart-I<=O.w_size-MIN_LOOKAHEAD&&(O.match_length=longest_match(O,I),O.match_length<=5&&(O.strategy===Z_FILTERED||O.match_length===MIN_MATCH&&O.strstart-O.match_start>4096)&&(O.match_length=MIN_MATCH-1)),O.prev_length>=MIN_MATCH&&O.match_length<=O.prev_length){f=O.strstart+O.lookahead-MIN_MATCH,D=_tr_tally(O,O.strstart-1-O.prev_match,O.prev_length-MIN_MATCH),O.lookahead-=O.prev_length-1,O.prev_length-=2;do++O.strstart<=f&&(O.ins_h=HASH(O,O.ins_h,O.window[O.strstart+MIN_MATCH-1]),I=O.prev[O.strstart&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=O.strstart);while(--O.prev_length!==0);if(O.match_available=0,O.match_length=MIN_MATCH-1,O.strstart++,D&&(flush_block_only(O,!1),O.strm.avail_out===0))return BS_NEED_MORE}else if(O.match_available){if(D=_tr_tally(O,0,O.window[O.strstart-1]),D&&flush_block_only(O,!1),O.strstart++,O.lookahead--,O.strm.avail_out===0)return BS_NEED_MORE}else O.match_available=1,O.strstart++,O.lookahead--}return O.match_available&&(D=_tr_tally(O,0,O.window[O.strstart-1]),O.match_available=0),O.insert=O.strstart<MIN_MATCH-1?O.strstart:MIN_MATCH-1,N===Z_FINISH$3?(flush_block_only(O,!0),O.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):O.sym_next&&(flush_block_only(O,!1),O.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE},deflate_rle=(O,N)=>{let I,D,f,k;const i=O.window;for(;;){if(O.lookahead<=MAX_MATCH){if(fill_window(O),O.lookahead<=MAX_MATCH&&N===Z_NO_FLUSH$2)return BS_NEED_MORE;if(O.lookahead===0)break}if(O.match_length=0,O.lookahead>=MIN_MATCH&&O.strstart>0&&(f=O.strstart-1,D=i[f],D===i[++f]&&D===i[++f]&&D===i[++f])){k=O.strstart+MAX_MATCH;do;while(D===i[++f]&&D===i[++f]&&D===i[++f]&&D===i[++f]&&D===i[++f]&&D===i[++f]&&D===i[++f]&&D===i[++f]&&f<k);O.match_length=MAX_MATCH-(k-f),O.match_length>O.lookahead&&(O.match_length=O.lookahead)}if(O.match_length>=MIN_MATCH?(I=_tr_tally(O,1,O.match_length-MIN_MATCH),O.lookahead-=O.match_length,O.strstart+=O.match_length,O.match_length=0):(I=_tr_tally(O,0,O.window[O.strstart]),O.lookahead--,O.strstart++),I&&(flush_block_only(O,!1),O.strm.avail_out===0))return BS_NEED_MORE}return O.insert=0,N===Z_FINISH$3?(flush_block_only(O,!0),O.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):O.sym_next&&(flush_block_only(O,!1),O.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE},deflate_huff=(O,N)=>{let I;for(;;){if(O.lookahead===0&&(fill_window(O),O.lookahead===0)){if(N===Z_NO_FLUSH$2)return BS_NEED_MORE;break}if(O.match_length=0,I=_tr_tally(O,0,O.window[O.strstart]),O.lookahead--,O.strstart++,I&&(flush_block_only(O,!1),O.strm.avail_out===0))return BS_NEED_MORE}return O.insert=0,N===Z_FINISH$3?(flush_block_only(O,!0),O.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):O.sym_next&&(flush_block_only(O,!1),O.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE};function Config(O,N,I,D,f){this.good_length=O,this.max_lazy=N,this.nice_length=I,this.max_chain=D,this.func=f}const configuration_table=[new Config(0,0,0,0,deflate_stored),new Config(4,4,8,4,deflate_fast),new Config(4,5,16,8,deflate_fast),new Config(4,6,32,32,deflate_fast),new Config(4,4,16,16,deflate_slow),new Config(8,16,32,32,deflate_slow),new Config(8,16,128,128,deflate_slow),new Config(8,32,128,256,deflate_slow),new Config(32,128,258,1024,deflate_slow),new Config(32,258,258,4096,deflate_slow)],lm_init=O=>{O.window_size=2*O.w_size,zero(O.head),O.max_lazy_match=configuration_table[O.level].max_lazy,O.good_match=configuration_table[O.level].good_length,O.nice_match=configuration_table[O.level].nice_length,O.max_chain_length=configuration_table[O.level].max_chain,O.strstart=0,O.block_start=0,O.lookahead=0,O.insert=0,O.match_length=O.prev_length=MIN_MATCH-1,O.match_available=0,O.ins_h=0};function DeflateState(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Z_DEFLATED$2,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(HEAP_SIZE*2),this.dyn_dtree=new Uint16Array((2*D_CODES+1)*2),this.bl_tree=new Uint16Array((2*BL_CODES+1)*2),zero(this.dyn_ltree),zero(this.dyn_dtree),zero(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(MAX_BITS+1),this.heap=new Uint16Array(2*L_CODES+1),zero(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*L_CODES+1),zero(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const deflateStateCheck=O=>{if(!O)return 1;const N=O.state;return!N||N.strm!==O||N.status!==INIT_STATE&&N.status!==GZIP_STATE&&N.status!==EXTRA_STATE&&N.status!==NAME_STATE&&N.status!==COMMENT_STATE&&N.status!==HCRC_STATE&&N.status!==BUSY_STATE&&N.status!==FINISH_STATE?1:0},deflateResetKeep=O=>{if(deflateStateCheck(O))return err(O,Z_STREAM_ERROR$2);O.total_in=O.total_out=0,O.data_type=Z_UNKNOWN;const N=O.state;return N.pending=0,N.pending_out=0,N.wrap<0&&(N.wrap=-N.wrap),N.status=N.wrap===2?GZIP_STATE:N.wrap?INIT_STATE:BUSY_STATE,O.adler=N.wrap===2?0:1,N.last_flush=-2,_tr_init(N),Z_OK$3},deflateReset=O=>{const N=deflateResetKeep(O);return N===Z_OK$3&&lm_init(O.state),N},deflateSetHeader=(O,N)=>deflateStateCheck(O)||O.state.wrap!==2?Z_STREAM_ERROR$2:(O.state.gzhead=N,Z_OK$3),deflateInit2=(O,N,I,D,f,k)=>{if(!O)return Z_STREAM_ERROR$2;let i=1;if(N===Z_DEFAULT_COMPRESSION$1&&(N=6),D<0?(i=0,D=-D):D>15&&(i=2,D-=16),f<1||f>MAX_MEM_LEVEL||I!==Z_DEFLATED$2||D<8||D>15||N<0||N>9||k<0||k>Z_FIXED||D===8&&i!==1)return err(O,Z_STREAM_ERROR$2);D===8&&(D=9);const c=new DeflateState;return O.state=c,c.strm=O,c.status=INIT_STATE,c.wrap=i,c.gzhead=null,c.w_bits=D,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=f+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+MIN_MATCH-1)/MIN_MATCH),c.window=new Uint8Array(c.w_size*2),c.head=new Uint16Array(c.hash_size),c.prev=new Uint16Array(c.w_size),c.lit_bufsize=1<<f+6,c.pending_buf_size=c.lit_bufsize*4,c.pending_buf=new Uint8Array(c.pending_buf_size),c.sym_buf=c.lit_bufsize,c.sym_end=(c.lit_bufsize-1)*3,c.level=N,c.strategy=k,c.method=I,deflateReset(O)},deflateInit=(O,N)=>deflateInit2(O,N,Z_DEFLATED$2,MAX_WBITS$1,DEF_MEM_LEVEL,Z_DEFAULT_STRATEGY$1),deflate$2=(O,N)=>{if(deflateStateCheck(O)||N>Z_BLOCK$1||N<0)return O?err(O,Z_STREAM_ERROR$2):Z_STREAM_ERROR$2;const I=O.state;if(!O.output||O.avail_in!==0&&!O.input||I.status===FINISH_STATE&&N!==Z_FINISH$3)return err(O,O.avail_out===0?Z_BUF_ERROR$1:Z_STREAM_ERROR$2);const D=I.last_flush;if(I.last_flush=N,I.pending!==0){if(flush_pending(O),O.avail_out===0)return I.last_flush=-1,Z_OK$3}else if(O.avail_in===0&&rank(N)<=rank(D)&&N!==Z_FINISH$3)return err(O,Z_BUF_ERROR$1);if(I.status===FINISH_STATE&&O.avail_in!==0)return err(O,Z_BUF_ERROR$1);if(I.status===INIT_STATE&&I.wrap===0&&(I.status=BUSY_STATE),I.status===INIT_STATE){let f=Z_DEFLATED$2+(I.w_bits-8<<4)<<8,k=-1;if(I.strategy>=Z_HUFFMAN_ONLY||I.level<2?k=0:I.level<6?k=1:I.level===6?k=2:k=3,f|=k<<6,I.strstart!==0&&(f|=PRESET_DICT),f+=31-f%31,putShortMSB(I,f),I.strstart!==0&&(putShortMSB(I,O.adler>>>16),putShortMSB(I,O.adler&65535)),O.adler=1,I.status=BUSY_STATE,flush_pending(O),I.pending!==0)return I.last_flush=-1,Z_OK$3}if(I.status===GZIP_STATE){if(O.adler=0,put_byte(I,31),put_byte(I,139),put_byte(I,8),I.gzhead)put_byte(I,(I.gzhead.text?1:0)+(I.gzhead.hcrc?2:0)+(I.gzhead.extra?4:0)+(I.gzhead.name?8:0)+(I.gzhead.comment?16:0)),put_byte(I,I.gzhead.time&255),put_byte(I,I.gzhead.time>>8&255),put_byte(I,I.gzhead.time>>16&255),put_byte(I,I.gzhead.time>>24&255),put_byte(I,I.level===9?2:I.strategy>=Z_HUFFMAN_ONLY||I.level<2?4:0),put_byte(I,I.gzhead.os&255),I.gzhead.extra&&I.gzhead.extra.length&&(put_byte(I,I.gzhead.extra.length&255),put_byte(I,I.gzhead.extra.length>>8&255)),I.gzhead.hcrc&&(O.adler=crc32_1(O.adler,I.pending_buf,I.pending,0)),I.gzindex=0,I.status=EXTRA_STATE;else if(put_byte(I,0),put_byte(I,0),put_byte(I,0),put_byte(I,0),put_byte(I,0),put_byte(I,I.level===9?2:I.strategy>=Z_HUFFMAN_ONLY||I.level<2?4:0),put_byte(I,OS_CODE),I.status=BUSY_STATE,flush_pending(O),I.pending!==0)return I.last_flush=-1,Z_OK$3}if(I.status===EXTRA_STATE){if(I.gzhead.extra){let f=I.pending,k=(I.gzhead.extra.length&65535)-I.gzindex;for(;I.pending+k>I.pending_buf_size;){let c=I.pending_buf_size-I.pending;if(I.pending_buf.set(I.gzhead.extra.subarray(I.gzindex,I.gzindex+c),I.pending),I.pending=I.pending_buf_size,I.gzhead.hcrc&&I.pending>f&&(O.adler=crc32_1(O.adler,I.pending_buf,I.pending-f,f)),I.gzindex+=c,flush_pending(O),I.pending!==0)return I.last_flush=-1,Z_OK$3;f=0,k-=c}let i=new Uint8Array(I.gzhead.extra);I.pending_buf.set(i.subarray(I.gzindex,I.gzindex+k),I.pending),I.pending+=k,I.gzhead.hcrc&&I.pending>f&&(O.adler=crc32_1(O.adler,I.pending_buf,I.pending-f,f)),I.gzindex=0}I.status=NAME_STATE}if(I.status===NAME_STATE){if(I.gzhead.name){let f=I.pending,k;do{if(I.pending===I.pending_buf_size){if(I.gzhead.hcrc&&I.pending>f&&(O.adler=crc32_1(O.adler,I.pending_buf,I.pending-f,f)),flush_pending(O),I.pending!==0)return I.last_flush=-1,Z_OK$3;f=0}I.gzindex<I.gzhead.name.length?k=I.gzhead.name.charCodeAt(I.gzindex++)&255:k=0,put_byte(I,k)}while(k!==0);I.gzhead.hcrc&&I.pending>f&&(O.adler=crc32_1(O.adler,I.pending_buf,I.pending-f,f)),I.gzindex=0}I.status=COMMENT_STATE}if(I.status===COMMENT_STATE){if(I.gzhead.comment){let f=I.pending,k;do{if(I.pending===I.pending_buf_size){if(I.gzhead.hcrc&&I.pending>f&&(O.adler=crc32_1(O.adler,I.pending_buf,I.pending-f,f)),flush_pending(O),I.pending!==0)return I.last_flush=-1,Z_OK$3;f=0}I.gzindex<I.gzhead.comment.length?k=I.gzhead.comment.charCodeAt(I.gzindex++)&255:k=0,put_byte(I,k)}while(k!==0);I.gzhead.hcrc&&I.pending>f&&(O.adler=crc32_1(O.adler,I.pending_buf,I.pending-f,f))}I.status=HCRC_STATE}if(I.status===HCRC_STATE){if(I.gzhead.hcrc){if(I.pending+2>I.pending_buf_size&&(flush_pending(O),I.pending!==0))return I.last_flush=-1,Z_OK$3;put_byte(I,O.adler&255),put_byte(I,O.adler>>8&255),O.adler=0}if(I.status=BUSY_STATE,flush_pending(O),I.pending!==0)return I.last_flush=-1,Z_OK$3}if(O.avail_in!==0||I.lookahead!==0||N!==Z_NO_FLUSH$2&&I.status!==FINISH_STATE){let f=I.level===0?deflate_stored(I,N):I.strategy===Z_HUFFMAN_ONLY?deflate_huff(I,N):I.strategy===Z_RLE?deflate_rle(I,N):configuration_table[I.level].func(I,N);if((f===BS_FINISH_STARTED||f===BS_FINISH_DONE)&&(I.status=FINISH_STATE),f===BS_NEED_MORE||f===BS_FINISH_STARTED)return O.avail_out===0&&(I.last_flush=-1),Z_OK$3;if(f===BS_BLOCK_DONE&&(N===Z_PARTIAL_FLUSH?_tr_align(I):N!==Z_BLOCK$1&&(_tr_stored_block(I,0,0,!1),N===Z_FULL_FLUSH$1&&(zero(I.head),I.lookahead===0&&(I.strstart=0,I.block_start=0,I.insert=0))),flush_pending(O),O.avail_out===0))return I.last_flush=-1,Z_OK$3}return N!==Z_FINISH$3?Z_OK$3:I.wrap<=0?Z_STREAM_END$3:(I.wrap===2?(put_byte(I,O.adler&255),put_byte(I,O.adler>>8&255),put_byte(I,O.adler>>16&255),put_byte(I,O.adler>>24&255),put_byte(I,O.total_in&255),put_byte(I,O.total_in>>8&255),put_byte(I,O.total_in>>16&255),put_byte(I,O.total_in>>24&255)):(putShortMSB(I,O.adler>>>16),putShortMSB(I,O.adler&65535)),flush_pending(O),I.wrap>0&&(I.wrap=-I.wrap),I.pending!==0?Z_OK$3:Z_STREAM_END$3)},deflateEnd=O=>{if(deflateStateCheck(O))return Z_STREAM_ERROR$2;const N=O.state.status;return O.state=null,N===BUSY_STATE?err(O,Z_DATA_ERROR$2):Z_OK$3},deflateSetDictionary=(O,N)=>{let I=N.length;if(deflateStateCheck(O))return Z_STREAM_ERROR$2;const D=O.state,f=D.wrap;if(f===2||f===1&&D.status!==INIT_STATE||D.lookahead)return Z_STREAM_ERROR$2;if(f===1&&(O.adler=adler32_1(O.adler,N,I,0)),D.wrap=0,I>=D.w_size){f===0&&(zero(D.head),D.strstart=0,D.block_start=0,D.insert=0);let $=new Uint8Array(D.w_size);$.set(N.subarray(I-D.w_size,I),0),N=$,I=D.w_size}const k=O.avail_in,i=O.next_in,c=O.input;for(O.avail_in=I,O.next_in=0,O.input=N,fill_window(D);D.lookahead>=MIN_MATCH;){let $=D.strstart,C=D.lookahead-(MIN_MATCH-1);do D.ins_h=HASH(D,D.ins_h,D.window[$+MIN_MATCH-1]),D.prev[$&D.w_mask]=D.head[D.ins_h],D.head[D.ins_h]=$,$++;while(--C);D.strstart=$,D.lookahead=MIN_MATCH-1,fill_window(D)}return D.strstart+=D.lookahead,D.block_start=D.strstart,D.insert=D.lookahead,D.lookahead=0,D.match_length=D.prev_length=MIN_MATCH-1,D.match_available=0,O.next_in=i,O.input=c,O.avail_in=k,D.wrap=f,Z_OK$3};var deflateInit_1=deflateInit,deflateInit2_1=deflateInit2,deflateReset_1=deflateReset,deflateResetKeep_1=deflateResetKeep,deflateSetHeader_1=deflateSetHeader,deflate_2$1=deflate$2,deflateEnd_1=deflateEnd,deflateSetDictionary_1=deflateSetDictionary,deflateInfo="pako deflate (from Nodeca project)",deflate_1$2={deflateInit:deflateInit_1,deflateInit2:deflateInit2_1,deflateReset:deflateReset_1,deflateResetKeep:deflateResetKeep_1,deflateSetHeader:deflateSetHeader_1,deflate:deflate_2$1,deflateEnd:deflateEnd_1,deflateSetDictionary:deflateSetDictionary_1,deflateInfo};const _has=(O,N)=>Object.prototype.hasOwnProperty.call(O,N);var assign=function(O){const N=Array.prototype.slice.call(arguments,1);for(;N.length;){const I=N.shift();if(I){if(typeof I!="object")throw new TypeError(I+"must be non-object");for(const D in I)_has(I,D)&&(O[D]=I[D])}}return O},flattenChunks=O=>{let N=0;for(let D=0,f=O.length;D<f;D++)N+=O[D].length;const I=new Uint8Array(N);for(let D=0,f=0,k=O.length;D<k;D++){let i=O[D];I.set(i,f),f+=i.length}return I},common={assign,flattenChunks};let STR_APPLY_UIA_OK=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(O){STR_APPLY_UIA_OK=!1}const _utf8len=new Uint8Array(256);for(let O=0;O<256;O++)_utf8len[O]=O>=252?6:O>=248?5:O>=240?4:O>=224?3:O>=192?2:1;_utf8len[254]=_utf8len[254]=1;var string2buf=O=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(O);let N,I,D,f,k,i=O.length,c=0;for(f=0;f<i;f++)I=O.charCodeAt(f),(I&64512)===55296&&f+1<i&&(D=O.charCodeAt(f+1),(D&64512)===56320&&(I=65536+(I-55296<<10)+(D-56320),f++)),c+=I<128?1:I<2048?2:I<65536?3:4;for(N=new Uint8Array(c),k=0,f=0;k<c;f++)I=O.charCodeAt(f),(I&64512)===55296&&f+1<i&&(D=O.charCodeAt(f+1),(D&64512)===56320&&(I=65536+(I-55296<<10)+(D-56320),f++)),I<128?N[k++]=I:I<2048?(N[k++]=192|I>>>6,N[k++]=128|I&63):I<65536?(N[k++]=224|I>>>12,N[k++]=128|I>>>6&63,N[k++]=128|I&63):(N[k++]=240|I>>>18,N[k++]=128|I>>>12&63,N[k++]=128|I>>>6&63,N[k++]=128|I&63);return N};const buf2binstring=(O,N)=>{if(N<65534&&O.subarray&&STR_APPLY_UIA_OK)return String.fromCharCode.apply(null,O.length===N?O:O.subarray(0,N));let I="";for(let D=0;D<N;D++)I+=String.fromCharCode(O[D]);return I};var buf2string=(O,N)=>{const I=N||O.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(O.subarray(0,N));let D,f;const k=new Array(I*2);for(f=0,D=0;D<I;){let i=O[D++];if(i<128){k[f++]=i;continue}let c=_utf8len[i];if(c>4){k[f++]=65533,D+=c-1;continue}for(i&=c===2?31:c===3?15:7;c>1&&D<I;)i=i<<6|O[D++]&63,c--;if(c>1){k[f++]=65533;continue}i<65536?k[f++]=i:(i-=65536,k[f++]=55296|i>>10&1023,k[f++]=56320|i&1023)}return buf2binstring(k,f)},utf8border=(O,N)=>{N=N||O.length,N>O.length&&(N=O.length);let I=N-1;for(;I>=0&&(O[I]&192)===128;)I--;return I<0||I===0?N:I+_utf8len[O[I]]>N?I:N},strings={string2buf,buf2string,utf8border};function ZStream(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var zstream=ZStream;const toString$1=Object.prototype.toString,{Z_NO_FLUSH:Z_NO_FLUSH$1,Z_SYNC_FLUSH,Z_FULL_FLUSH,Z_FINISH:Z_FINISH$2,Z_OK:Z_OK$2,Z_STREAM_END:Z_STREAM_END$2,Z_DEFAULT_COMPRESSION,Z_DEFAULT_STRATEGY,Z_DEFLATED:Z_DEFLATED$1}=constants$2;function Deflate$1(O){this.options=common.assign({level:Z_DEFAULT_COMPRESSION,method:Z_DEFLATED$1,chunkSize:16384,windowBits:15,memLevel:8,strategy:Z_DEFAULT_STRATEGY},O||{});let N=this.options;N.raw&&N.windowBits>0?N.windowBits=-N.windowBits:N.gzip&&N.windowBits>0&&N.windowBits<16&&(N.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new zstream,this.strm.avail_out=0;let I=deflate_1$2.deflateInit2(this.strm,N.level,N.method,N.windowBits,N.memLevel,N.strategy);if(I!==Z_OK$2)throw new Error(messages[I]);if(N.header&&deflate_1$2.deflateSetHeader(this.strm,N.header),N.dictionary){let D;if(typeof N.dictionary=="string"?D=strings.string2buf(N.dictionary):toString$1.call(N.dictionary)==="[object ArrayBuffer]"?D=new Uint8Array(N.dictionary):D=N.dictionary,I=deflate_1$2.deflateSetDictionary(this.strm,D),I!==Z_OK$2)throw new Error(messages[I]);this._dict_set=!0}}Deflate$1.prototype.push=function(O,N){const I=this.strm,D=this.options.chunkSize;let f,k;if(this.ended)return!1;for(N===~~N?k=N:k=N===!0?Z_FINISH$2:Z_NO_FLUSH$1,typeof O=="string"?I.input=strings.string2buf(O):toString$1.call(O)==="[object ArrayBuffer]"?I.input=new Uint8Array(O):I.input=O,I.next_in=0,I.avail_in=I.input.length;;){if(I.avail_out===0&&(I.output=new Uint8Array(D),I.next_out=0,I.avail_out=D),(k===Z_SYNC_FLUSH||k===Z_FULL_FLUSH)&&I.avail_out<=6){this.onData(I.output.subarray(0,I.next_out)),I.avail_out=0;continue}if(f=deflate_1$2.deflate(I,k),f===Z_STREAM_END$2)return I.next_out>0&&this.onData(I.output.subarray(0,I.next_out)),f=deflate_1$2.deflateEnd(this.strm),this.onEnd(f),this.ended=!0,f===Z_OK$2;if(I.avail_out===0){this.onData(I.output);continue}if(k>0&&I.next_out>0){this.onData(I.output.subarray(0,I.next_out)),I.avail_out=0;continue}if(I.avail_in===0)break}return!0},Deflate$1.prototype.onData=function(O){this.chunks.push(O)},Deflate$1.prototype.onEnd=function(O){O===Z_OK$2&&(this.result=common.flattenChunks(this.chunks)),this.chunks=[],this.err=O,this.msg=this.strm.msg};function deflate$1(O,N){const I=new Deflate$1(N);if(I.push(O,!0),I.err)throw I.msg||messages[I.err];return I.result}function deflateRaw$1(O,N){return N=N||{},N.raw=!0,deflate$1(O,N)}function gzip$1(O,N){return N=N||{},N.gzip=!0,deflate$1(O,N)}var Deflate_1$1=Deflate$1,deflate_2=deflate$1,deflateRaw_1$1=deflateRaw$1,gzip_1$1=gzip$1,deflate_1$1={Deflate:Deflate_1$1,deflate:deflate_2,deflateRaw:deflateRaw_1$1,gzip:gzip_1$1};const BAD$1=16209,TYPE$1=16191;var inffast=function O(N,I){let D,f,k,i,c,$,C,M,J,Z,z,X,re,oe,ne,de,ye,Q,ae,he,se,fe,me,ee;const le=N.state;D=N.next_in,me=N.input,f=D+(N.avail_in-5),k=N.next_out,ee=N.output,i=k-(I-N.avail_out),c=k+(N.avail_out-257),$=le.dmax,C=le.wsize,M=le.whave,J=le.wnext,Z=le.window,z=le.hold,X=le.bits,re=le.lencode,oe=le.distcode,ne=(1<<le.lenbits)-1,de=(1<<le.distbits)-1;e:do{X<15&&(z+=me[D++]<<X,X+=8,z+=me[D++]<<X,X+=8),ye=re[z&ne];t:for(;;){if(Q=ye>>>24,z>>>=Q,X-=Q,Q=ye>>>16&255,Q===0)ee[k++]=ye&65535;else if(Q&16){ae=ye&65535,Q&=15,Q&&(X<Q&&(z+=me[D++]<<X,X+=8),ae+=z&(1<<Q)-1,z>>>=Q,X-=Q),X<15&&(z+=me[D++]<<X,X+=8,z+=me[D++]<<X,X+=8),ye=oe[z&de];n:for(;;){if(Q=ye>>>24,z>>>=Q,X-=Q,Q=ye>>>16&255,Q&16){if(he=ye&65535,Q&=15,X<Q&&(z+=me[D++]<<X,X+=8,X<Q&&(z+=me[D++]<<X,X+=8)),he+=z&(1<<Q)-1,he>$){N.msg="invalid distance too far back",le.mode=BAD$1;break e}if(z>>>=Q,X-=Q,Q=k-i,he>Q){if(Q=he-Q,Q>M&&le.sane){N.msg="invalid distance too far back",le.mode=BAD$1;break e}if(se=0,fe=Z,J===0){if(se+=C-Q,Q<ae){ae-=Q;do ee[k++]=Z[se++];while(--Q);se=k-he,fe=ee}}else if(J<Q){if(se+=C+J-Q,Q-=J,Q<ae){ae-=Q;do ee[k++]=Z[se++];while(--Q);if(se=0,J<ae){Q=J,ae-=Q;do ee[k++]=Z[se++];while(--Q);se=k-he,fe=ee}}}else if(se+=J-Q,Q<ae){ae-=Q;do ee[k++]=Z[se++];while(--Q);se=k-he,fe=ee}for(;ae>2;)ee[k++]=fe[se++],ee[k++]=fe[se++],ee[k++]=fe[se++],ae-=3;ae&&(ee[k++]=fe[se++],ae>1&&(ee[k++]=fe[se++]))}else{se=k-he;do ee[k++]=ee[se++],ee[k++]=ee[se++],ee[k++]=ee[se++],ae-=3;while(ae>2);ae&&(ee[k++]=ee[se++],ae>1&&(ee[k++]=ee[se++]))}}else if((Q&64)===0){ye=oe[(ye&65535)+(z&(1<<Q)-1)];continue n}else{N.msg="invalid distance code",le.mode=BAD$1;break e}break}}else if((Q&64)===0){ye=re[(ye&65535)+(z&(1<<Q)-1)];continue t}else if(Q&32){le.mode=TYPE$1;break e}else{N.msg="invalid literal/length code",le.mode=BAD$1;break e}break}}while(D<f&&k<c);ae=X>>3,D-=ae,X-=ae<<3,z&=(1<<X)-1,N.next_in=D,N.next_out=k,N.avail_in=D<f?5+(f-D):5-(D-f),N.avail_out=k<c?257+(c-k):257-(k-c),le.hold=z,le.bits=X};const MAXBITS=15,ENOUGH_LENS$1=852,ENOUGH_DISTS$1=592,CODES$1=0,LENS$1=1,DISTS$1=2,lbase=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),lext=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),dbase=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),dext=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),inflate_table=(O,N,I,D,f,k,i,c)=>{const $=c.bits;let C=0,M=0,J=0,Z=0,z=0,X=0,re=0,oe=0,ne=0,de=0,ye,Q,ae,he,se,fe=null,me;const ee=new Uint16Array(MAXBITS+1),le=new Uint16Array(MAXBITS+1);let ve=null,be,ge,$e;for(C=0;C<=MAXBITS;C++)ee[C]=0;for(M=0;M<D;M++)ee[N[I+M]]++;for(z=$,Z=MAXBITS;Z>=1&&ee[Z]===0;Z--);if(z>Z&&(z=Z),Z===0)return f[k++]=1<<24|64<<16|0,f[k++]=1<<24|64<<16|0,c.bits=1,0;for(J=1;J<Z&&ee[J]===0;J++);for(z<J&&(z=J),oe=1,C=1;C<=MAXBITS;C++)if(oe<<=1,oe-=ee[C],oe<0)return-1;if(oe>0&&(O===CODES$1||Z!==1))return-1;for(le[1]=0,C=1;C<MAXBITS;C++)le[C+1]=le[C]+ee[C];for(M=0;M<D;M++)N[I+M]!==0&&(i[le[N[I+M]]++]=M);if(O===CODES$1?(fe=ve=i,me=20):O===LENS$1?(fe=lbase,ve=lext,me=257):(fe=dbase,ve=dext,me=0),de=0,M=0,C=J,se=k,X=z,re=0,ae=-1,ne=1<<z,he=ne-1,O===LENS$1&&ne>ENOUGH_LENS$1||O===DISTS$1&&ne>ENOUGH_DISTS$1)return 1;for(;;){be=C-re,i[M]+1<me?(ge=0,$e=i[M]):i[M]>=me?(ge=ve[i[M]-me],$e=fe[i[M]-me]):(ge=96,$e=0),ye=1<<C-re,Q=1<<X,J=Q;do Q-=ye,f[se+(de>>re)+Q]=be<<24|ge<<16|$e|0;while(Q!==0);for(ye=1<<C-1;de&ye;)ye>>=1;if(ye!==0?(de&=ye-1,de+=ye):de=0,M++,--ee[C]===0){if(C===Z)break;C=N[I+i[M]]}if(C>z&&(de&he)!==ae){for(re===0&&(re=z),se+=J,X=C-re,oe=1<<X;X+re<Z&&(oe-=ee[X+re],!(oe<=0));)X++,oe<<=1;if(ne+=1<<X,O===LENS$1&&ne>ENOUGH_LENS$1||O===DISTS$1&&ne>ENOUGH_DISTS$1)return 1;ae=de&he,f[ae]=z<<24|X<<16|se-k|0}}return de!==0&&(f[se+de]=C-re<<24|64<<16|0),c.bits=z,0};var inftrees=inflate_table;const CODES=0,LENS=1,DISTS=2,{Z_FINISH:Z_FINISH$1,Z_BLOCK,Z_TREES,Z_OK:Z_OK$1,Z_STREAM_END:Z_STREAM_END$1,Z_NEED_DICT:Z_NEED_DICT$1,Z_STREAM_ERROR:Z_STREAM_ERROR$1,Z_DATA_ERROR:Z_DATA_ERROR$1,Z_MEM_ERROR:Z_MEM_ERROR$1,Z_BUF_ERROR,Z_DEFLATED}=constants$2,HEAD=16180,FLAGS=16181,TIME=16182,OS=16183,EXLEN=16184,EXTRA=16185,NAME=16186,COMMENT=16187,HCRC=16188,DICTID=16189,DICT=16190,TYPE=16191,TYPEDO=16192,STORED=16193,COPY_=16194,COPY=16195,TABLE=16196,LENLENS=16197,CODELENS=16198,LEN_=16199,LEN=16200,LENEXT=16201,DIST=16202,DISTEXT=16203,MATCH=16204,LIT=16205,CHECK=16206,LENGTH=16207,DONE=16208,BAD=16209,MEM=16210,SYNC=16211,ENOUGH_LENS=852,ENOUGH_DISTS=592,MAX_WBITS=15,DEF_WBITS=MAX_WBITS,zswap32=O=>(O>>>24&255)+(O>>>8&65280)+((O&65280)<<8)+((O&255)<<24);function InflateState(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const inflateStateCheck=O=>{if(!O)return 1;const N=O.state;return!N||N.strm!==O||N.mode<HEAD||N.mode>SYNC?1:0},inflateResetKeep=O=>{if(inflateStateCheck(O))return Z_STREAM_ERROR$1;const N=O.state;return O.total_in=O.total_out=N.total=0,O.msg="",N.wrap&&(O.adler=N.wrap&1),N.mode=HEAD,N.last=0,N.havedict=0,N.flags=-1,N.dmax=32768,N.head=null,N.hold=0,N.bits=0,N.lencode=N.lendyn=new Int32Array(ENOUGH_LENS),N.distcode=N.distdyn=new Int32Array(ENOUGH_DISTS),N.sane=1,N.back=-1,Z_OK$1},inflateReset=O=>{if(inflateStateCheck(O))return Z_STREAM_ERROR$1;const N=O.state;return N.wsize=0,N.whave=0,N.wnext=0,inflateResetKeep(O)},inflateReset2=(O,N)=>{let I;if(inflateStateCheck(O))return Z_STREAM_ERROR$1;const D=O.state;return N<0?(I=0,N=-N):(I=(N>>4)+5,N<48&&(N&=15)),N&&(N<8||N>15)?Z_STREAM_ERROR$1:(D.window!==null&&D.wbits!==N&&(D.window=null),D.wrap=I,D.wbits=N,inflateReset(O))},inflateInit2=(O,N)=>{if(!O)return Z_STREAM_ERROR$1;const I=new InflateState;O.state=I,I.strm=O,I.window=null,I.mode=HEAD;const D=inflateReset2(O,N);return D!==Z_OK$1&&(O.state=null),D},inflateInit=O=>inflateInit2(O,DEF_WBITS);let virgin=!0,lenfix,distfix;const fixedtables=O=>{if(virgin){lenfix=new Int32Array(512),distfix=new Int32Array(32);let N=0;for(;N<144;)O.lens[N++]=8;for(;N<256;)O.lens[N++]=9;for(;N<280;)O.lens[N++]=7;for(;N<288;)O.lens[N++]=8;for(inftrees(LENS,O.lens,0,288,lenfix,0,O.work,{bits:9}),N=0;N<32;)O.lens[N++]=5;inftrees(DISTS,O.lens,0,32,distfix,0,O.work,{bits:5}),virgin=!1}O.lencode=lenfix,O.lenbits=9,O.distcode=distfix,O.distbits=5},updatewindow=(O,N,I,D)=>{let f;const k=O.state;return k.window===null&&(k.wsize=1<<k.wbits,k.wnext=0,k.whave=0,k.window=new Uint8Array(k.wsize)),D>=k.wsize?(k.window.set(N.subarray(I-k.wsize,I),0),k.wnext=0,k.whave=k.wsize):(f=k.wsize-k.wnext,f>D&&(f=D),k.window.set(N.subarray(I-D,I-D+f),k.wnext),D-=f,D?(k.window.set(N.subarray(I-D,I),0),k.wnext=D,k.whave=k.wsize):(k.wnext+=f,k.wnext===k.wsize&&(k.wnext=0),k.whave<k.wsize&&(k.whave+=f))),0},inflate$2=(O,N)=>{let I,D,f,k,i,c,$,C,M,J,Z,z,X,re,oe=0,ne,de,ye,Q,ae,he,se,fe;const me=new Uint8Array(4);let ee,le;const ve=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(inflateStateCheck(O)||!O.output||!O.input&&O.avail_in!==0)return Z_STREAM_ERROR$1;I=O.state,I.mode===TYPE&&(I.mode=TYPEDO),i=O.next_out,f=O.output,$=O.avail_out,k=O.next_in,D=O.input,c=O.avail_in,C=I.hold,M=I.bits,J=c,Z=$,fe=Z_OK$1;e:for(;;)switch(I.mode){case HEAD:if(I.wrap===0){I.mode=TYPEDO;break}for(;M<16;){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}if(I.wrap&2&&C===35615){I.wbits===0&&(I.wbits=15),I.check=0,me[0]=C&255,me[1]=C>>>8&255,I.check=crc32_1(I.check,me,2,0),C=0,M=0,I.mode=FLAGS;break}if(I.head&&(I.head.done=!1),!(I.wrap&1)||(((C&255)<<8)+(C>>8))%31){O.msg="incorrect header check",I.mode=BAD;break}if((C&15)!==Z_DEFLATED){O.msg="unknown compression method",I.mode=BAD;break}if(C>>>=4,M-=4,se=(C&15)+8,I.wbits===0&&(I.wbits=se),se>15||se>I.wbits){O.msg="invalid window size",I.mode=BAD;break}I.dmax=1<<I.wbits,I.flags=0,O.adler=I.check=1,I.mode=C&512?DICTID:TYPE,C=0,M=0;break;case FLAGS:for(;M<16;){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}if(I.flags=C,(I.flags&255)!==Z_DEFLATED){O.msg="unknown compression method",I.mode=BAD;break}if(I.flags&57344){O.msg="unknown header flags set",I.mode=BAD;break}I.head&&(I.head.text=C>>8&1),I.flags&512&&I.wrap&4&&(me[0]=C&255,me[1]=C>>>8&255,I.check=crc32_1(I.check,me,2,0)),C=0,M=0,I.mode=TIME;case TIME:for(;M<32;){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}I.head&&(I.head.time=C),I.flags&512&&I.wrap&4&&(me[0]=C&255,me[1]=C>>>8&255,me[2]=C>>>16&255,me[3]=C>>>24&255,I.check=crc32_1(I.check,me,4,0)),C=0,M=0,I.mode=OS;case OS:for(;M<16;){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}I.head&&(I.head.xflags=C&255,I.head.os=C>>8),I.flags&512&&I.wrap&4&&(me[0]=C&255,me[1]=C>>>8&255,I.check=crc32_1(I.check,me,2,0)),C=0,M=0,I.mode=EXLEN;case EXLEN:if(I.flags&1024){for(;M<16;){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}I.length=C,I.head&&(I.head.extra_len=C),I.flags&512&&I.wrap&4&&(me[0]=C&255,me[1]=C>>>8&255,I.check=crc32_1(I.check,me,2,0)),C=0,M=0}else I.head&&(I.head.extra=null);I.mode=EXTRA;case EXTRA:if(I.flags&1024&&(z=I.length,z>c&&(z=c),z&&(I.head&&(se=I.head.extra_len-I.length,I.head.extra||(I.head.extra=new Uint8Array(I.head.extra_len)),I.head.extra.set(D.subarray(k,k+z),se)),I.flags&512&&I.wrap&4&&(I.check=crc32_1(I.check,D,z,k)),c-=z,k+=z,I.length-=z),I.length))break e;I.length=0,I.mode=NAME;case NAME:if(I.flags&2048){if(c===0)break e;z=0;do se=D[k+z++],I.head&&se&&I.length<65536&&(I.head.name+=String.fromCharCode(se));while(se&&z<c);if(I.flags&512&&I.wrap&4&&(I.check=crc32_1(I.check,D,z,k)),c-=z,k+=z,se)break e}else I.head&&(I.head.name=null);I.length=0,I.mode=COMMENT;case COMMENT:if(I.flags&4096){if(c===0)break e;z=0;do se=D[k+z++],I.head&&se&&I.length<65536&&(I.head.comment+=String.fromCharCode(se));while(se&&z<c);if(I.flags&512&&I.wrap&4&&(I.check=crc32_1(I.check,D,z,k)),c-=z,k+=z,se)break e}else I.head&&(I.head.comment=null);I.mode=HCRC;case HCRC:if(I.flags&512){for(;M<16;){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}if(I.wrap&4&&C!==(I.check&65535)){O.msg="header crc mismatch",I.mode=BAD;break}C=0,M=0}I.head&&(I.head.hcrc=I.flags>>9&1,I.head.done=!0),O.adler=I.check=0,I.mode=TYPE;break;case DICTID:for(;M<32;){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}O.adler=I.check=zswap32(C),C=0,M=0,I.mode=DICT;case DICT:if(I.havedict===0)return O.next_out=i,O.avail_out=$,O.next_in=k,O.avail_in=c,I.hold=C,I.bits=M,Z_NEED_DICT$1;O.adler=I.check=1,I.mode=TYPE;case TYPE:if(N===Z_BLOCK||N===Z_TREES)break e;case TYPEDO:if(I.last){C>>>=M&7,M-=M&7,I.mode=CHECK;break}for(;M<3;){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}switch(I.last=C&1,C>>>=1,M-=1,C&3){case 0:I.mode=STORED;break;case 1:if(fixedtables(I),I.mode=LEN_,N===Z_TREES){C>>>=2,M-=2;break e}break;case 2:I.mode=TABLE;break;case 3:O.msg="invalid block type",I.mode=BAD}C>>>=2,M-=2;break;case STORED:for(C>>>=M&7,M-=M&7;M<32;){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}if((C&65535)!==(C>>>16^65535)){O.msg="invalid stored block lengths",I.mode=BAD;break}if(I.length=C&65535,C=0,M=0,I.mode=COPY_,N===Z_TREES)break e;case COPY_:I.mode=COPY;case COPY:if(z=I.length,z){if(z>c&&(z=c),z>$&&(z=$),z===0)break e;f.set(D.subarray(k,k+z),i),c-=z,k+=z,$-=z,i+=z,I.length-=z;break}I.mode=TYPE;break;case TABLE:for(;M<14;){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}if(I.nlen=(C&31)+257,C>>>=5,M-=5,I.ndist=(C&31)+1,C>>>=5,M-=5,I.ncode=(C&15)+4,C>>>=4,M-=4,I.nlen>286||I.ndist>30){O.msg="too many length or distance symbols",I.mode=BAD;break}I.have=0,I.mode=LENLENS;case LENLENS:for(;I.have<I.ncode;){for(;M<3;){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}I.lens[ve[I.have++]]=C&7,C>>>=3,M-=3}for(;I.have<19;)I.lens[ve[I.have++]]=0;if(I.lencode=I.lendyn,I.lenbits=7,ee={bits:I.lenbits},fe=inftrees(CODES,I.lens,0,19,I.lencode,0,I.work,ee),I.lenbits=ee.bits,fe){O.msg="invalid code lengths set",I.mode=BAD;break}I.have=0,I.mode=CODELENS;case CODELENS:for(;I.have<I.nlen+I.ndist;){for(;oe=I.lencode[C&(1<<I.lenbits)-1],ne=oe>>>24,de=oe>>>16&255,ye=oe&65535,!(ne<=M);){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}if(ye<16)C>>>=ne,M-=ne,I.lens[I.have++]=ye;else{if(ye===16){for(le=ne+2;M<le;){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}if(C>>>=ne,M-=ne,I.have===0){O.msg="invalid bit length repeat",I.mode=BAD;break}se=I.lens[I.have-1],z=3+(C&3),C>>>=2,M-=2}else if(ye===17){for(le=ne+3;M<le;){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}C>>>=ne,M-=ne,se=0,z=3+(C&7),C>>>=3,M-=3}else{for(le=ne+7;M<le;){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}C>>>=ne,M-=ne,se=0,z=11+(C&127),C>>>=7,M-=7}if(I.have+z>I.nlen+I.ndist){O.msg="invalid bit length repeat",I.mode=BAD;break}for(;z--;)I.lens[I.have++]=se}}if(I.mode===BAD)break;if(I.lens[256]===0){O.msg="invalid code -- missing end-of-block",I.mode=BAD;break}if(I.lenbits=9,ee={bits:I.lenbits},fe=inftrees(LENS,I.lens,0,I.nlen,I.lencode,0,I.work,ee),I.lenbits=ee.bits,fe){O.msg="invalid literal/lengths set",I.mode=BAD;break}if(I.distbits=6,I.distcode=I.distdyn,ee={bits:I.distbits},fe=inftrees(DISTS,I.lens,I.nlen,I.ndist,I.distcode,0,I.work,ee),I.distbits=ee.bits,fe){O.msg="invalid distances set",I.mode=BAD;break}if(I.mode=LEN_,N===Z_TREES)break e;case LEN_:I.mode=LEN;case LEN:if(c>=6&&$>=258){O.next_out=i,O.avail_out=$,O.next_in=k,O.avail_in=c,I.hold=C,I.bits=M,inffast(O,Z),i=O.next_out,f=O.output,$=O.avail_out,k=O.next_in,D=O.input,c=O.avail_in,C=I.hold,M=I.bits,I.mode===TYPE&&(I.back=-1);break}for(I.back=0;oe=I.lencode[C&(1<<I.lenbits)-1],ne=oe>>>24,de=oe>>>16&255,ye=oe&65535,!(ne<=M);){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}if(de&&(de&240)===0){for(Q=ne,ae=de,he=ye;oe=I.lencode[he+((C&(1<<Q+ae)-1)>>Q)],ne=oe>>>24,de=oe>>>16&255,ye=oe&65535,!(Q+ne<=M);){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}C>>>=Q,M-=Q,I.back+=Q}if(C>>>=ne,M-=ne,I.back+=ne,I.length=ye,de===0){I.mode=LIT;break}if(de&32){I.back=-1,I.mode=TYPE;break}if(de&64){O.msg="invalid literal/length code",I.mode=BAD;break}I.extra=de&15,I.mode=LENEXT;case LENEXT:if(I.extra){for(le=I.extra;M<le;){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}I.length+=C&(1<<I.extra)-1,C>>>=I.extra,M-=I.extra,I.back+=I.extra}I.was=I.length,I.mode=DIST;case DIST:for(;oe=I.distcode[C&(1<<I.distbits)-1],ne=oe>>>24,de=oe>>>16&255,ye=oe&65535,!(ne<=M);){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}if((de&240)===0){for(Q=ne,ae=de,he=ye;oe=I.distcode[he+((C&(1<<Q+ae)-1)>>Q)],ne=oe>>>24,de=oe>>>16&255,ye=oe&65535,!(Q+ne<=M);){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}C>>>=Q,M-=Q,I.back+=Q}if(C>>>=ne,M-=ne,I.back+=ne,de&64){O.msg="invalid distance code",I.mode=BAD;break}I.offset=ye,I.extra=de&15,I.mode=DISTEXT;case DISTEXT:if(I.extra){for(le=I.extra;M<le;){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}I.offset+=C&(1<<I.extra)-1,C>>>=I.extra,M-=I.extra,I.back+=I.extra}if(I.offset>I.dmax){O.msg="invalid distance too far back",I.mode=BAD;break}I.mode=MATCH;case MATCH:if($===0)break e;if(z=Z-$,I.offset>z){if(z=I.offset-z,z>I.whave&&I.sane){O.msg="invalid distance too far back",I.mode=BAD;break}z>I.wnext?(z-=I.wnext,X=I.wsize-z):X=I.wnext-z,z>I.length&&(z=I.length),re=I.window}else re=f,X=i-I.offset,z=I.length;z>$&&(z=$),$-=z,I.length-=z;do f[i++]=re[X++];while(--z);I.length===0&&(I.mode=LEN);break;case LIT:if($===0)break e;f[i++]=I.length,$--,I.mode=LEN;break;case CHECK:if(I.wrap){for(;M<32;){if(c===0)break e;c--,C|=D[k++]<<M,M+=8}if(Z-=$,O.total_out+=Z,I.total+=Z,I.wrap&4&&Z&&(O.adler=I.check=I.flags?crc32_1(I.check,f,Z,i-Z):adler32_1(I.check,f,Z,i-Z)),Z=$,I.wrap&4&&(I.flags?C:zswap32(C))!==I.check){O.msg="incorrect data check",I.mode=BAD;break}C=0,M=0}I.mode=LENGTH;case LENGTH:if(I.wrap&&I.flags){for(;M<32;){if(c===0)break e;c--,C+=D[k++]<<M,M+=8}if(I.wrap&4&&C!==(I.total&4294967295)){O.msg="incorrect length check",I.mode=BAD;break}C=0,M=0}I.mode=DONE;case DONE:fe=Z_STREAM_END$1;break e;case BAD:fe=Z_DATA_ERROR$1;break e;case MEM:return Z_MEM_ERROR$1;case SYNC:default:return Z_STREAM_ERROR$1}return O.next_out=i,O.avail_out=$,O.next_in=k,O.avail_in=c,I.hold=C,I.bits=M,(I.wsize||Z!==O.avail_out&&I.mode<BAD&&(I.mode<CHECK||N!==Z_FINISH$1))&&updatewindow(O,O.output,O.next_out,Z-O.avail_out),J-=O.avail_in,Z-=O.avail_out,O.total_in+=J,O.total_out+=Z,I.total+=Z,I.wrap&4&&Z&&(O.adler=I.check=I.flags?crc32_1(I.check,f,Z,O.next_out-Z):adler32_1(I.check,f,Z,O.next_out-Z)),O.data_type=I.bits+(I.last?64:0)+(I.mode===TYPE?128:0)+(I.mode===LEN_||I.mode===COPY_?256:0),(J===0&&Z===0||N===Z_FINISH$1)&&fe===Z_OK$1&&(fe=Z_BUF_ERROR),fe},inflateEnd=O=>{if(inflateStateCheck(O))return Z_STREAM_ERROR$1;let N=O.state;return N.window&&(N.window=null),O.state=null,Z_OK$1},inflateGetHeader=(O,N)=>{if(inflateStateCheck(O))return Z_STREAM_ERROR$1;const I=O.state;return(I.wrap&2)===0?Z_STREAM_ERROR$1:(I.head=N,N.done=!1,Z_OK$1)},inflateSetDictionary=(O,N)=>{const I=N.length;let D,f,k;return inflateStateCheck(O)||(D=O.state,D.wrap!==0&&D.mode!==DICT)?Z_STREAM_ERROR$1:D.mode===DICT&&(f=1,f=adler32_1(f,N,I,0),f!==D.check)?Z_DATA_ERROR$1:(k=updatewindow(O,N,I,I),k?(D.mode=MEM,Z_MEM_ERROR$1):(D.havedict=1,Z_OK$1))};var inflateReset_1=inflateReset,inflateReset2_1=inflateReset2,inflateResetKeep_1=inflateResetKeep,inflateInit_1=inflateInit,inflateInit2_1=inflateInit2,inflate_2$1=inflate$2,inflateEnd_1=inflateEnd,inflateGetHeader_1=inflateGetHeader,inflateSetDictionary_1=inflateSetDictionary,inflateInfo="pako inflate (from Nodeca project)",inflate_1$2={inflateReset:inflateReset_1,inflateReset2:inflateReset2_1,inflateResetKeep:inflateResetKeep_1,inflateInit:inflateInit_1,inflateInit2:inflateInit2_1,inflate:inflate_2$1,inflateEnd:inflateEnd_1,inflateGetHeader:inflateGetHeader_1,inflateSetDictionary:inflateSetDictionary_1,inflateInfo};function GZheader(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var gzheader=GZheader;const toString=Object.prototype.toString,{Z_NO_FLUSH,Z_FINISH,Z_OK,Z_STREAM_END,Z_NEED_DICT,Z_STREAM_ERROR,Z_DATA_ERROR,Z_MEM_ERROR}=constants$2;function Inflate$1(O){this.options=common.assign({chunkSize:1024*64,windowBits:15,to:""},O||{});const N=this.options;N.raw&&N.windowBits>=0&&N.windowBits<16&&(N.windowBits=-N.windowBits,N.windowBits===0&&(N.windowBits=-15)),N.windowBits>=0&&N.windowBits<16&&!(O&&O.windowBits)&&(N.windowBits+=32),N.windowBits>15&&N.windowBits<48&&(N.windowBits&15)===0&&(N.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new zstream,this.strm.avail_out=0;let I=inflate_1$2.inflateInit2(this.strm,N.windowBits);if(I!==Z_OK)throw new Error(messages[I]);if(this.header=new gzheader,inflate_1$2.inflateGetHeader(this.strm,this.header),N.dictionary&&(typeof N.dictionary=="string"?N.dictionary=strings.string2buf(N.dictionary):toString.call(N.dictionary)==="[object ArrayBuffer]"&&(N.dictionary=new Uint8Array(N.dictionary)),N.raw&&(I=inflate_1$2.inflateSetDictionary(this.strm,N.dictionary),I!==Z_OK)))throw new Error(messages[I])}Inflate$1.prototype.push=function(O,N){const I=this.strm,D=this.options.chunkSize,f=this.options.dictionary;let k,i,c;if(this.ended)return!1;for(N===~~N?i=N:i=N===!0?Z_FINISH:Z_NO_FLUSH,toString.call(O)==="[object ArrayBuffer]"?I.input=new Uint8Array(O):I.input=O,I.next_in=0,I.avail_in=I.input.length;;){for(I.avail_out===0&&(I.output=new Uint8Array(D),I.next_out=0,I.avail_out=D),k=inflate_1$2.inflate(I,i),k===Z_NEED_DICT&&f&&(k=inflate_1$2.inflateSetDictionary(I,f),k===Z_OK?k=inflate_1$2.inflate(I,i):k===Z_DATA_ERROR&&(k=Z_NEED_DICT));I.avail_in>0&&k===Z_STREAM_END&&I.state.wrap>0&&O[I.next_in]!==0;)inflate_1$2.inflateReset(I),k=inflate_1$2.inflate(I,i);switch(k){case Z_STREAM_ERROR:case Z_DATA_ERROR:case Z_NEED_DICT:case Z_MEM_ERROR:return this.onEnd(k),this.ended=!0,!1}if(c=I.avail_out,I.next_out&&(I.avail_out===0||k===Z_STREAM_END))if(this.options.to==="string"){let $=strings.utf8border(I.output,I.next_out),C=I.next_out-$,M=strings.buf2string(I.output,$);I.next_out=C,I.avail_out=D-C,C&&I.output.set(I.output.subarray($,$+C),0),this.onData(M)}else this.onData(I.output.length===I.next_out?I.output:I.output.subarray(0,I.next_out));if(!(k===Z_OK&&c===0)){if(k===Z_STREAM_END)return k=inflate_1$2.inflateEnd(this.strm),this.onEnd(k),this.ended=!0,!0;if(I.avail_in===0)break}}return!0},Inflate$1.prototype.onData=function(O){this.chunks.push(O)},Inflate$1.prototype.onEnd=function(O){O===Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=common.flattenChunks(this.chunks)),this.chunks=[],this.err=O,this.msg=this.strm.msg};function inflate$1(O,N){const I=new Inflate$1(N);if(I.push(O),I.err)throw I.msg||messages[I.err];return I.result}function inflateRaw$1(O,N){return N=N||{},N.raw=!0,inflate$1(O,N)}var Inflate_1$1=Inflate$1,inflate_2=inflate$1,inflateRaw_1$1=inflateRaw$1,ungzip$1=inflate$1,inflate_1$1={Inflate:Inflate_1$1,inflate:inflate_2,inflateRaw:inflateRaw_1$1,ungzip:ungzip$1};const{Deflate,deflate,deflateRaw,gzip}=deflate_1$1,{Inflate,inflate,inflateRaw,ungzip}=inflate_1$1;var Deflate_1=Deflate,deflate_1=deflate,deflateRaw_1=deflateRaw,gzip_1=gzip,Inflate_1=Inflate,inflate_1=inflate,inflateRaw_1=inflateRaw,ungzip_1=ungzip,constants_1=constants$2,pako={Deflate:Deflate_1,deflate:deflate_1,deflateRaw:deflateRaw_1,gzip:gzip_1,Inflate:Inflate_1,inflate:inflate_1,inflateRaw:inflateRaw_1,ungzip:ungzip_1,constants:constants_1};const ignoreEvent=["updateSeverTime"];ignoreEvent.push("heartbeat"),ignoreEvent.push("heartbeatEx"),ignoreEvent.push("networkQualityChange"),ignoreEvent.push("onNetQuality"),ignoreEvent.push("updateCall"),ignoreEvent.push("pubNotify");const compressArrayBuffer=O=>{const N=new Uint8Array(O),I=pako.deflate(N,{gzip:!0});return new Uint8Array(I==null?void 0:I.buffer)},decompressArrayBuffer=O=>{const N=new Uint8Array(O),I=pako.inflate(N,{gzip:!0});return new Uint8Array(I==null?void 0:I.buffer)},sendMessageFormat=O=>{const{event:N}=O;switch(O.data_original=O.data,O.time&&(O.timeStr=E(O.time,"YYYY-MM-DD hh:mm:ss",{offset:480})),N){case"login":O.data=com.quick.voice.proto.Login.encode(O.data).finish();break;case"joinRoom":case"joinRoomEx":O.data=com.quick.voice.proto.JoinReq.encode(O.data).finish();break;case"quitRoom":O.data=com.quick.voice.proto.QuitReq.encode(O.data).finish();break;case"connectCF":O.data=com.quick.voice.proto.ConnectCFReq.encode(O.data).finish(),O.data=compressArrayBuffer(O.data),O.compress=!0;break;case"publish":O.data=com.quick.voice.proto.PublishReq.encode(O.data).finish(),O.data=compressArrayBuffer(O.data),O.compress=!0;break;case"pubChannel":O.data=com.quick.voice.proto.ChannelPublishReq.encode(O.data).finish();break;case"subscribe":O.data=com.quick.voice.proto.SubscribeReq.encode(O.data).finish();break;case"subChannel":O.data=com.quick.voice.proto.ChannelSubscribeRsq.encode(O.data).finish();break;case"closeTrack":O.data=com.quick.voice.proto.CloseTrackReq.encode(O.data).finish(),O.data=compressArrayBuffer(O.data),O.compress=!0;break;case"renegotiate":O.data=com.quick.voice.proto.RenegotiateReq.encode(O.data).finish(),O.data=compressArrayBuffer(O.data),O.compress=!0;break;case"syncRoomInfo":O.data=com.quick.voice.proto.SyncRoomInfoReq.encode(O.data).finish();break;case"updateCall":O.data=com.quick.voice.proto.UpdateCall.encode(O.data).finish();break;case"networkQualityChange":O.data=com.quick.voice.proto.NetQualityChange.encode(O.data).finish();break;case"pubNotify":O.data=com.quick.voice.proto.PublishNotify.encode(O.data).finish();break;case"onDataChannelPublish":break;case"preventUsersBehavior":O.data=com.quick.voice.proto.PreventUsersBehaviorReq.encode(O.data).finish();break;default:O.data=new Uint8Array;break}return O},onMessageFormat=O=>{const{event:N,compress:I=!1}=O;if(O.data_remote=O.data,O.time&&(O.timeStr=E(O.time,"YYYY-MM-DD hh:mm:ss",{offset:480})),I)try{O.data=decompressArrayBuffer(O.data)}catch(D){console.error("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo:消息解压错误",D)}switch(N){case"login":O.data=com.quick.voice.proto.Login.decode(O.data);break;case"joinRoom":case"joinRoomEx":O.data=com.quick.voice.proto.JoinRsp.decode(O.data);break;case"onJoinRoom":O.data=com.quick.voice.proto.JoinNotify.decode(O.data);break;case"onQuitRoom":O.data=com.quick.voice.proto.QuitNotify.decode(O.data);break;case"connectCF":O.data=com.quick.voice.proto.ConnectCFRsp.decode(O.data);break;case"publish":O.data=com.quick.voice.proto.PublishRsp.decode(O.data);break;case"pubChannel":O.data=com.quick.voice.proto.ChannelPublishRsq.decode(O.data);break;case"onPublish":O.data=com.quick.voice.proto.PublishNotify.decode(O.data);break;case"subscribe":O.data=com.quick.voice.proto.SubscribeRsp.decode(O.data);break;case"subChannel":O.data=com.quick.voice.proto.ChannelSubscribeRsq.decode(O.data);break;case"closeTrack":O.data=com.quick.voice.proto.CloseTrackRsp.decode(O.data);break;case"onCloseTrack":O.data=com.quick.voice.proto.CloseTrackNotify.decode(O.data);break;case"onUpdateCall":O.data=com.quick.voice.proto.UpdateCall.decode(O.data);break;case"onDataChannelPublish":O.data=com.quick.voice.proto.UserChannel.decode(O.data);break;case"onDestroyRoom":O.data=com.quick.voice.proto.QuitNotify.decode(O.data);break;case"onUpdatePermissions":O.data=com.quick.voice.proto.UpdatePermissions.decode(O.data);break;case"onNetQuality":O.data=com.quick.voice.proto.NetQualityNotify.decode(O.data);break;case"syncRoomInfo":O.data=com.quick.voice.proto.SyncRoomInfoRsp.decode(O.data);break;case"onCDNPlayUrlAdd":O.data=com.quick.voice.proto.CDNPlayAddressNotify.decode(O.data);break;case"onUpdateBehavior":O.data=com.quick.voice.proto.PreventUsersBehaviorNotify.decode(O.data);break;case"debugger":O.data=JSON.parse(new TextDecoder().decode(O.data));break}return O};class CallsWebSocket{constructor(N){_e(this,Ee);_e(this,we,{url:"wss://demo.putplay.cc/websocket",debug:!1,reconnectCount:10,timeout:30*1e3});_e(this,Me,"");_e(this,Ze,{});_e(this,Ge,{});ie(this,"state","closed");ie(this,"sendMessageBefore",async()=>{});ie(this,"onReconnectSuccess",N=>{});ie(this,"onReconnectStop",N=>{});_e(this,Pt,N=>{let I=!0;const{code:D=1e3}=N;return(D===1e3||D===4e3)&&(I=!1),this.state="connecting",I});_e(this,Lt,async N=>{ce(this,we).debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: 重连成功",N),this.state="connected",this.onReconnectSuccess(N)});_e(this,Ft,async N=>{ce(this,we).debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: 重连停止",N),this.onReconnectStop(N)});_e(this,Ct,(N,I={})=>{try{const{time:D,event:f,data:k={},data_original:i={},data_remote:c,...$}=I,C=E(D,"YYYY-MM-DD hh:mm:ss",{offset:480});let M={};const J=(ye={})=>{const Q=JSON.parse(JSON.stringify(ye)),ae=Object.keys(Q);for(const he of ae)(he.includes("sdp")||he.includes("Sdp"))&&(Q[he]="");return Q};let Z="res ↓";switch(N){case"res":Z="res ↓",M=J(k);break;case"req":Z="req ↑",M=J(i);break}let z="#quickvo.logs";ignoreEvent.includes(f)&&(z="#quickvo.ignoreEvents");const X={"#action":Z,timeStr:C,event:f,data:M,time:D,...$},re=localStorage.getItem(z)||JSON.stringify([]),oe=JSON.parse(re);let ne=f==="heartbeat"||f==="heartbeatEx";const de=[X];for(const ye of oe){const{event:Q}=ye;if(Q==="heartbeat"||Q==="heartbeatEx"){if(ne)continue;ne=!0}if(de.length===200)break;de.push(ye)}localStorage.setItem(z,JSON.stringify(de))}catch(D){ce(this,we).debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: updataLogs is error",D)}});_e(this,jt,(N,{resolve:I,reject:D})=>{const{sn:f=""}=N,k=()=>{const c=ce(this,Ze)[f];clearTimeout(c.destructionTimer),delete ce(this,Ze)[f]},i=window.setTimeout(()=>{const c=ce(this,Ze)[f];console.warn("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo:event is timeout",c.message),k(),D("event is timeout")},ce(this,we).timeout);ce(this,Ze)[f]={message:N,resolve:I,reject:D,destruction:k,destructionTimer:i}});_e(this,zt,N=>ce(this,Ze)[N]);_e(this,Ht,async N=>{const I=new Uint8Array(N),D=com.quick.voice.proto.CommonRsp.decode(I),{sn:f,event:k}=D,i=onMessageFormat(D);if(ce(this,we).debug&&!ignoreEvent.includes(k)&&(ce(this,Ct).call(this,"res",i),console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#ff0097;padding:16px 0;","------->quickvo: 响应消息↓",i)),notifyName_keys.includes(k))return this.emitNotify(k,P$1(i,["code","data","desc"]));const $=ce(this,zt).call(this,f);if($){const{resolve:C=J=>{},destruction:M=()=>{}}=$;C(P$1(i,["code","data","desc"])),M()}});ie(this,"clearEvents",(N=[])=>{const I=Object.keys(ce(this,Ze));N.length===0&&(N=I);for(const D of I){if(!N.includes(D))continue;const f=ce(this,Ze)[D];if(f){const{destruction:k}=f;k()}}});ie(this,"connect",async(N="")=>new Promise(async(I,D)=>{try{N&&Be(this,Me,N),ce(this,Ee)&&(await ce(this,Ee).close(),this.state="closed");const f=`${ce(this,we).url}?s=${ce(this,Me)}&t=${Date.now()}`,k=new Date().getTime();if(Be(this,Ee,new S({...ce(this,we),url:f,binaryType:"arraybuffer",onMessage:ce(this,Ht),checkReconnect:ce(this,Pt),getHeartbeatMsg:()=>"",onReconnectSuccess:ce(this,Lt),onReconnectStop:ce(this,Ft),timeout:10*1e3})),this.state="connecting",await ce(this,Ee).connect(),this.state="connected",ce(this,we).debug){const c=new Date().getTime()-k;console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;",`------->quickvo: 连接耗时-${c}ms-广播事件`,ce(this,Ge))}I(ce(this,Ee))}catch(f){D(f)}}));ie(this,"close",async()=>{var I;ce(this,we).debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: cws is close.");const N=Object.keys(ce(this,Ze));for(const D of N){const{destructionTimer:f}=ce(this,Ze)[D];clearTimeout(f)}Be(this,Ze,{}),await((I=ce(this,Ee))==null?void 0:I.close()),this.state="closed"});ie(this,"sendMessage",(N,I=!0)=>new Promise(async(D,f)=>{var M;await this.sendMessageBefore();const{event:k,...i}=N,c=Date.now(),$=sendMessageFormat({event:k,sn:+`${c}${v$1(1e3,9999)}`,time:c,valid:ce(this,we).timeout,version:1,compress:!1,...i});ce(this,we).debug&&!ignoreEvent.includes(k)&&(ce(this,Ct).call(this,"req",$),console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#ff9700;padding:16px 0;","------->quickvo: 发送消息↑",$)),I&&ce(this,jt).call(this,$,{resolve:D,reject:f});const C=com.quick.voice.proto.CommonReq.encode($).finish();(M=ce(this,Ee))==null||M.sendMessage(C)}));ie(this,"emitNotify",async(N,I)=>{const D=ce(this,Ge)[N]||[];for(const f of D){const{callback:k=async()=>{}}=f;await k(I)}});ie(this,"addNotify",(N,I=!1)=>{const{event:D,sn:f=xt(32)}=N;ce(this,Ge)[D]||(ce(this,Ge)[D]=[]);const k=ce(this,Ge)[D],i=k.findIndex(c=>c.sn===f);return i!==-1&&k.splice(i,1),I?k.unshift(N):k.push(N),f});ie(this,"removeNotify",(N=[])=>{if(N.length===0)Be(this,Ge,{});else{const I=Object.keys(ce(this,Ge));for(const D of I)ce(this,Ge)[D]=ce(this,Ge)[D].filter(f=>!N.includes(f.sn||""))}ce(this,we).debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: 移除广播事件",ce(this,Ge))});Be(this,we,{...ce(this,we),...N})}}Ee=new WeakMap,we=new WeakMap,Me=new WeakMap,Ze=new WeakMap,Ge=new WeakMap,Pt=new WeakMap,Lt=new WeakMap,Ft=new WeakMap,Ct=new WeakMap,jt=new WeakMap,zt=new WeakMap,Ht=new WeakMap;const createMutedAudioStream=O=>{const N=O.createOscillator();N.type="sine",N.frequency.setValueAtTime(0,O.currentTime);const I=O.createGain();I.gain.value=0,N.connect(I),I.connect(O.destination),N.start();const D=O.createMediaStreamDestination();return I.disconnect(),N.connect(D),D.stream},createFakeVideoStream=(O=10,N=10,I=30)=>{const D=document.createElement("canvas"),f=D.getContext("2d");D.width=O,D.height=N;let k=0;return setInterval(()=>{f.clearRect(0,0,D.width,D.height);const $=f.createLinearGradient(0,0,D.width,D.height);$.addColorStop(0,`hsla(${k}, 100%, 50%, 0)`),$.addColorStop(1,`hsla(${k+120}, 100%, 50%, 0)`),f.fillStyle=$,f.fillRect(0,0,D.width,D.height),k=(k+1)%360},100),D.captureStream(I)};class NetworkQualityTester{constructor(N=[]){ie(this,"targetUrls",[]);ie(this,"results",[]);N.length===0&&N.push("https://api.pryun.vip/favicon-32x32.png"),this.targetUrls=N,this.results=[]}async testAll(){const N=this.targetUrls.map(I=>this.testUrl(I));return await Promise.all(N),this.analyzeResults()}async testUrl(N){const I=performance.now();let D=0,f=!1;try{await fetch(N,{method:"HEAD",cache:"no-store"});const k=performance.now()-I,i=performance.now(),$=await(await fetch(N,{cache:"no-store"})).blob(),C=performance.now()-i;D=$.size,f=!0,this.results.push({url:N,success:f,headTime:k,getTime:C,size:D,downloadSpeed:D>0?(D/1024/(C/1e3)).toFixed(2):0,totalTime:performance.now()-I})}catch(k){this.results.push({url:N,success:!1,error:k.message,totalTime:performance.now()-I})}}analyzeResults(){const N=this.results.filter(k=>k.success);if(N.length===0)return{overallSuccess:!1,message:"所有测试均失败"};const I=N.reduce((k,i)=>k+i.size,0),D=N.reduce((k,i)=>k+i.totalTime,0),f=N.reduce((k,i)=>k+parseFloat(i.downloadSpeed),0)/N.length;return{overallSuccess:!0,totalTests:this.results.length,successfulTests:N.length,averageDownloadSpeed:`${f.toFixed(2)} KB/s`,averageResponseTime:`${(D/N.length).toFixed(2)}ms`,totalDataTransferred:`${(I/1024).toFixed(2)} KB`,detailedResults:this.results}}}var lib={},ebml={},EBML={},hasRequiredEBML;function requireEBML(){return hasRequiredEBML||(hasRequiredEBML=1,Object.defineProperty(EBML,"__esModule",{value:!0})),EBML}var EBMLDecoder={},int64Buffer={},hasRequiredInt64Buffer;function requireInt64Buffer(){return hasRequiredInt64Buffer||(hasRequiredInt64Buffer=1,function(O){(function(N){var I="undefined",D=I!==typeof Buffer&&Buffer,f=I!==typeof Uint8Array&&Uint8Array,k=I!==typeof ArrayBuffer&&ArrayBuffer,i=[0,0,0,0,0,0,0,0],c=Array.isArray||he,$=4294967296,C=16777216,M;J("Uint64BE",!0,!0),J("Int64BE",!0,!1),J("Uint64LE",!1,!0),J("Int64LE",!1,!1);function J(se,fe,me){var ee=fe?0:4,le=fe?4:0,ve=fe?0:3,be=fe?1:2,ge=fe?2:1,$e=fe?3:0,Ne=fe?de:Q,Le=fe?ye:ae,Fe=Re.prototype,Ye="is"+se,ft="_"+Ye;return Fe.buffer=void 0,Fe.offset=0,Fe[ft]=!0,Fe.toNumber=Xe,Fe.toString=at,Fe.toJSON=Xe,Fe.toArray=Z,D&&(Fe.toBuffer=z),f&&(Fe.toArrayBuffer=X),Re[Ye]=xe,N[se]=Re,Re;function Re(Se,ke,Te,Oe){return this instanceof Re?ot(this,Se,ke,Te,Oe):new Re(Se,ke,Te,Oe)}function xe(Se){return!!(Se&&Se[ft])}function ot(Se,ke,Te,Oe,Ce){if(f&&k&&(ke instanceof k&&(ke=new f(ke)),Oe instanceof k&&(Oe=new f(Oe))),!ke&&!Te&&!Oe&&!M){Se.buffer=ne(i,0);return}if(!re(ke,Te)){var je=M||Array;Ce=Te,Oe=ke,Te=0,ke=M===D?D.alloc(8):new je(8)}Se.buffer=ke,Se.offset=Te|=0,I!==typeof Oe&&(typeof Oe=="string"?Pe(ke,Te,Oe,Ce||10):re(Oe,Ce)?oe(ke,Te,Oe,Ce):typeof Ce=="number"?(Qe(ke,Te+ee,Oe),Qe(ke,Te+le,Ce)):Oe>0?Ne(ke,Te,Oe):Oe<0?Le(ke,Te,Oe):oe(ke,Te,i,0))}function Pe(Se,ke,Te,Oe){var Ce=0,je=Te.length,Ve=0,Je=0;Te[0]==="-"&&Ce++;for(var ct=Ce;Ce<je;){var mt=parseInt(Te[Ce++],Oe);if(!(mt>=0))break;Je=Je*Oe+mt,Ve=Ve*Oe+Math.floor(Je/$),Je%=$}ct&&(Ve=~Ve,Je?Je=$-Je:Ve++),Qe(Se,ke+ee,Ve),Qe(Se,ke+le,Je)}function Xe(){var Se=this.buffer,ke=this.offset,Te=He(Se,ke+ee),Oe=He(Se,ke+le);return me||(Te|=0),Te?Te*$+Oe:Oe}function at(Se){var ke=this.buffer,Te=this.offset,Oe=He(ke,Te+ee),Ce=He(ke,Te+le),je="",Ve=!me&&Oe&2147483648;for(Ve&&(Oe=~Oe,Ce=$-Ce),Se=Se||10;;){var Je=Oe%Se*$+Ce;if(Oe=Math.floor(Oe/Se),Ce=Math.floor(Je/Se),je=(Je%Se).toString(Se)+je,!Oe&&!Ce)break}return Ve&&(je="-"+je),je}function Qe(Se,ke,Te){Se[ke+$e]=Te&255,Te=Te>>8,Se[ke+ge]=Te&255,Te=Te>>8,Se[ke+be]=Te&255,Te=Te>>8,Se[ke+ve]=Te&255}function He(Se,ke){return Se[ke+ve]*C+(Se[ke+be]<<16)+(Se[ke+ge]<<8)+Se[ke+$e]}}function Z(se){var fe=this.buffer,me=this.offset;return M=null,se!==!1&&c(fe)?fe.length===8?fe:fe.slice(me,me+8):ne(fe,me)}function z(se){var fe=this.buffer,me=this.offset;return M=D,se!==!1&&D.isBuffer(fe)?fe.length===8?fe:fe.slice(me,me+8):D.from(X.call(this,se))}function X(se){var fe=this.buffer,me=this.offset,ee=fe.buffer;if(M=f,se!==!1&&!fe.offset&&ee instanceof k)return ee.byteLength===8?ee:ee.slice(me,me+8);var le=new f(8);return oe(le,0,fe,me),le.buffer}function re(se,fe){var me=se&&se.length;return fe|=0,me&&fe+8<=me&&typeof se[fe]!="string"}function oe(se,fe,me,ee){fe|=0,ee|=0;for(var le=0;le<8;le++)se[fe++]=me[ee++]&255}function ne(se,fe){return Array.prototype.slice.call(se,fe,fe+8)}function de(se,fe,me){for(var ee=fe+8;ee>fe;)se[--ee]=me&255,me/=256}function ye(se,fe,me){var ee=fe+8;for(me++;ee>fe;)se[--ee]=-me&255^255,me/=256}function Q(se,fe,me){for(var ee=fe+8;fe<ee;)se[fe++]=me&255,me/=256}function ae(se,fe,me){var ee=fe+8;for(me++;fe<ee;)se[fe++]=-me&255^255,me/=256}function he(se){return!!se&&Object.prototype.toString.call(se)=="[object Array]"}})(typeof O.nodeName!="string"?O:int64Buffer||{})}(int64Buffer)),int64Buffer}var tools={},EBMLEncoder={},ebmlID={},hasRequiredEbmlID;function requireEbmlID(){return hasRequiredEbmlID||(hasRequiredEbmlID=1,Object.defineProperty(ebmlID,"__esModule",{value:!0}),ebmlID.byEbmlID=void 0,ebmlID.byEbmlID={128:{name:"ChapterDisplay",level:4,type:"m",multiple:!0,minver:1,webm:!0,description:"Contains all possible strings to use for the chapter display."},131:{name:"TrackType",level:3,type:"u",mandatory:!0,minver:1,range:"1-254",description:"A set of track types coded on 8 bits (1: video, 2: audio, 3: complex, 0x10: logo, 0x11: subtitle, 0x12: buttons, 0x20: control)."},133:{name:"ChapString",cppname:"ChapterString",level:5,type:"8",mandatory:!0,minver:1,webm:!0,description:"Contains the string to use as the chapter atom."},134:{name:"CodecID",level:3,type:"s",mandatory:!0,minver:1,description:"An ID corresponding to the codec, see the codec page for more info."},136:{name:"FlagDefault",cppname:"TrackFlagDefault",level:3,type:"u",mandatory:!0,minver:1,default:1,range:"0-1",description:"Set if that track (audio, video or subs) SHOULD be active if no language found matches the user preference. (1 bit)"},137:{name:"ChapterTrackNumber",level:5,type:"u",mandatory:!0,multiple:!0,minver:1,webm:!1,range:"not 0",description:"UID of the Track to apply this chapter too. In the absense of a control track, choosing this chapter will select the listed Tracks and deselect unlisted tracks. Absense of this element indicates that the Chapter should be applied to any currently used Tracks."},145:{name:"ChapterTimeStart",level:4,type:"u",mandatory:!0,minver:1,webm:!0,description:"Timestamp of the start of Chapter (not scaled)."},146:{name:"ChapterTimeEnd",level:4,type:"u",minver:1,webm:!1,description:"Timestamp of the end of Chapter (timestamp excluded, not scaled)."},150:{name:"CueRefTime",level:5,type:"u",mandatory:!0,minver:2,webm:!1,description:"Timestamp of the referenced Block."},151:{name:"CueRefCluster",level:5,type:"u",mandatory:!0,webm:!1,description:"The Position of the Cluster containing the referenced Block."},152:{name:"ChapterFlagHidden",level:4,type:"u",mandatory:!0,minver:1,webm:!1,default:0,range:"0-1",description:"If a chapter is hidden (1), it should not be available to the user interface (but still to Control Tracks; see flag notes). (1 bit)"},16980:{name:"ContentCompAlgo",level:6,type:"u",mandatory:!0,minver:1,webm:!1,default:0,description:"The compression algorithm used. Algorithms that have been specified so far are: 0 - zlib, 3 - Header Stripping"},16981:{name:"ContentCompSettings",level:6,type:"b",minver:1,webm:!1,description:"Settings that might be needed by the decompressor. For Header Stripping (ContentCompAlgo=3), the bytes that were removed from the beggining of each frames of the track."},17026:{name:"DocType",level:1,type:"s",mandatory:!0,default:"matroska",minver:1,description:"A string that describes the type of document that follows this EBML header. 'matroska' in our case or 'webm' for webm files."},17029:{name:"DocTypeReadVersion",level:1,type:"u",mandatory:!0,default:1,minver:1,description:"The minimum DocType version an interpreter has to support to read this file."},17030:{name:"EBMLVersion",level:1,type:"u",mandatory:!0,default:1,minver:1,description:"The version of EBML parser used to create the file."},17031:{name:"DocTypeVersion",level:1,type:"u",mandatory:!0,default:1,minver:1,description:"The version of DocType interpreter used to create the file."},17476:{name:"SegmentFamily",level:2,type:"b",multiple:!0,minver:1,webm:!1,bytesize:16,description:"A randomly generated unique ID that all segments related to each other must use (128 bits)."},17505:{name:"DateUTC",level:2,type:"d",minver:1,description:"Date of the origin of timestamp (value 0), i.e. production date."},17540:{name:"TagDefault",level:4,type:"u",mandatory:!0,minver:1,webm:!1,default:1,range:"0-1",description:"Indication to know if this is the default/original language to use for the given tag. (1 bit)"},17541:{name:"TagBinary",level:4,type:"b",minver:1,webm:!1,description:"The values of the Tag if it is binary. Note that this cannot be used in the same SimpleTag as TagString."},17543:{name:"TagString",level:4,type:"8",minver:1,webm:!1,description:"The value of the Element."},17545:{name:"Duration",level:2,type:"f",minver:1,range:"> 0",description:"Duration of the segment (based on TimecodeScale)."},17816:{name:"ChapterFlagEnabled",level:4,type:"u",mandatory:!0,minver:1,webm:!1,default:1,range:"0-1",description:"Specify wether the chapter is enabled. It can be enabled/disabled by a Control Track. When disabled, the movie should skip all the content between the TimeStart and TimeEnd of this chapter (see flag notes). (1 bit)"},18016:{name:"FileMimeType",level:3,type:"s",mandatory:!0,minver:1,webm:!1,description:"MIME type of the file."},18017:{name:"FileUsedStartTime",level:3,type:"u",divx:!0,description:"DivX font extension"},18018:{name:"FileUsedEndTime",level:3,type:"u",divx:!0,description:"DivX font extension"},18037:{name:"FileReferral",level:3,type:"b",webm:!1,description:"A binary value that a track/codec can refer to when the attachment is needed."},20529:{name:"ContentEncodingOrder",level:5,type:"u",mandatory:!0,minver:1,webm:!1,default:0,description:"Tells when this modification was used during encoding/muxing starting with 0 and counting upwards. The decoder/demuxer has to start with the highest order number it finds and work its way down. This value has to be unique over all ContentEncodingOrder elements in the segment."},20530:{name:"ContentEncodingScope",level:5,type:"u",mandatory:!0,minver:1,webm:!1,default:1,range:"not 0",description:"A bit field that describes which elements have been modified in this way. Values (big endian) can be OR'ed. Possible values: 1 - all frame contents, 2 - the track's private data, 4 - the next ContentEncoding (next ContentEncodingOrder. Either the data inside ContentCompression and/or ContentEncryption)"},20531:{name:"ContentEncodingType",level:5,type:"u",mandatory:!0,minver:1,webm:!1,default:0,description:"A value describing what kind of transformation has been done. Possible values: 0 - compression, 1 - encryption"},20532:{name:"ContentCompression",level:5,type:"m",minver:1,webm:!1,description:"Settings describing the compression used. Must be present if the value of ContentEncodingType is 0 and absent otherwise. Each block must be decompressable even if no previous block is available in order not to prevent seeking."},20533:{name:"ContentEncryption",level:5,type:"m",minver:1,webm:!1,description:"Settings describing the encryption used. Must be present if the value of ContentEncodingType is 1 and absent otherwise."},21368:{name:"CueBlockNumber",level:4,type:"u",minver:1,default:1,range:"not 0",description:"Number of the Block in the specified Cluster."},22100:{name:"ChapterStringUID",level:4,type:"8",mandatory:!1,minver:3,webm:!0,description:"A unique string ID to identify the Chapter. Use for WebVTT cue identifier storage."},22337:{name:"WritingApp",level:2,type:"8",mandatory:!0,minver:1,description:'Writing application ("mkvmerge-0.3.3").'},22612:{name:"SilentTracks",cppname:"ClusterSilentTracks",level:2,type:"m",minver:1,webm:!1,description:"The list of tracks that are not used in that part of the stream. It is useful when using overlay tracks on seeking. Then you should decide what track to use."},25152:{name:"ContentEncoding",level:4,type:"m",mandatory:!0,multiple:!0,minver:1,webm:!1,description:"Settings for one content encoding like compression or encryption."},25188:{name:"BitDepth",cppname:"AudioBitDepth",level:4,type:"u",minver:1,range:"not 0",description:"Bits per sample, mostly used for PCM."},25906:{name:"SignedElement",level:3,type:"b",multiple:!0,webm:!1,description:"An element ID whose data will be used to compute the signature."},26148:{name:"TrackTranslate",level:3,type:"m",multiple:!0,minver:1,webm:!1,description:"The track identification for the given Chapter Codec."},26897:{name:"ChapProcessCommand",cppname:"ChapterProcessCommand",level:5,type:"m",multiple:!0,minver:1,webm:!1,description:"Contains all the commands associated to the Atom."},26914:{name:"ChapProcessTime",cppname:"ChapterProcessTime",level:6,type:"u",mandatory:!0,minver:1,webm:!1,description:"Defines when the process command should be handled (0: during the whole chapter, 1: before starting playback, 2: after playback of the chapter)."},26916:{name:"ChapterTranslate",level:2,type:"m",multiple:!0,minver:1,webm:!1,description:"A tuple of corresponding ID used by chapter codecs to represent this segment."},26931:{name:"ChapProcessData",cppname:"ChapterProcessData",level:6,type:"b",mandatory:!0,minver:1,webm:!1,description:"Contains the command information. The data should be interpreted depending on the ChapProcessCodecID value. For ChapProcessCodecID = 1, the data correspond to the binary DVD cell pre/post commands."},26948:{name:"ChapProcess",cppname:"ChapterProcess",level:4,type:"m",multiple:!0,minver:1,webm:!1,description:"Contains all the commands associated to the Atom."},26965:{name:"ChapProcessCodecID",cppname:"ChapterProcessCodecID",level:5,type:"u",mandatory:!0,minver:1,webm:!1,default:0,description:"Contains the type of the codec used for the processing. A value of 0 means native Matroska processing (to be defined), a value of 1 means the DVD command set is used. More codec IDs can be added later."},29555:{name:"Tag",level:2,type:"m",mandatory:!0,multiple:!0,minver:1,webm:!1,description:"Element containing elements specific to Tracks/Chapters."},29572:{name:"SegmentFilename",level:2,type:"8",minver:1,webm:!1,description:"A filename corresponding to this segment."},29766:{name:"AttachmentLink",cppname:"TrackAttachmentLink",level:3,type:"u",minver:1,webm:!1,range:"not 0",description:"The UID of an attachment that is used by this codec."},2459272:{name:"CodecName",level:3,type:"8",minver:1,description:"A human-readable string specifying the codec."},408125543:{name:"Segment",level:"0",type:"m",mandatory:!0,multiple:!0,minver:1,description:"This element contains all other top-level (level 1) elements. Typically a Matroska file is composed of 1 segment."},17530:{name:"TagLanguage",level:4,type:"s",mandatory:!0,minver:1,webm:!1,default:"und",description:"Specifies the language of the tag specified, in the Matroska languages form."},17827:{name:"TagName",level:4,type:"8",mandatory:!0,minver:1,webm:!1,description:"The name of the Tag that is going to be stored."},26568:{name:"SimpleTag",cppname:"TagSimple",level:3,recursive:"1",type:"m",mandatory:!0,multiple:!0,minver:1,webm:!1,description:"Contains general information about the target."},25542:{name:"TagAttachmentUID",level:4,type:"u",multiple:!0,minver:1,webm:!1,default:0,description:"A unique ID to identify the Attachment(s) the tags belong to. If the value is 0 at this level, the tags apply to all the attachments in the Segment."},25540:{name:"TagChapterUID",level:4,type:"u",multiple:!0,minver:1,webm:!1,default:0,description:"A unique ID to identify the Chapter(s) the tags belong to. If the value is 0 at this level, the tags apply to all chapters in the Segment."},25545:{name:"TagEditionUID",level:4,type:"u",multiple:!0,minver:1,webm:!1,default:0,description:"A unique ID to identify the EditionEntry(s) the tags belong to. If the value is 0 at this level, the tags apply to all editions in the Segment."},25541:{name:"TagTrackUID",level:4,type:"u",multiple:!0,minver:1,webm:!1,default:0,description:"A unique ID to identify the Track(s) the tags belong to. If the value is 0 at this level, the tags apply to all tracks in the Segment."},25546:{name:"TargetType",cppname:"TagTargetType",level:4,type:"s",minver:1,webm:!1,strong:"informational",description:'An string that can be used to display the logical level of the target like "ALBUM", "TRACK", "MOVIE", "CHAPTER", etc (see TargetType).'},26826:{name:"TargetTypeValue",cppname:"TagTargetTypeValue",level:4,type:"u",minver:1,webm:!1,default:50,description:"A number to indicate the logical level of the target (see TargetType)."},25536:{name:"Targets",cppname:"TagTargets",level:3,type:"m",mandatory:!0,minver:1,webm:!1,description:"Contain all UIDs where the specified meta data apply. It is empty to describe everything in the segment."},307544935:{name:"Tags",level:1,type:"m",multiple:!0,minver:1,webm:!1,description:"Element containing elements specific to Tracks/Chapters. A list of valid tags can be found here."},17677:{name:"ChapProcessPrivate",cppname:"ChapterProcessPrivate",level:5,type:"b",minver:1,webm:!1,description:'Some optional data attached to the ChapProcessCodecID information. For ChapProcessCodecID = 1, it is the "DVD level" equivalent.'},17278:{name:"ChapCountry",cppname:"ChapterCountry",level:5,type:"s",multiple:!0,minver:1,webm:!1,description:"The countries corresponding to the string, same 2 octets as in Internet domains."},17276:{name:"ChapLanguage",cppname:"ChapterLanguage",level:5,type:"s",mandatory:!0,multiple:!0,minver:1,webm:!0,default:"eng",description:"The languages corresponding to the string, in the bibliographic ISO-639-2 form."},143:{name:"ChapterTrack",level:4,type:"m",minver:1,webm:!1,description:"List of tracks on which the chapter applies. If this element is not present, all tracks apply"},25539:{name:"ChapterPhysicalEquiv",level:4,type:"u",minver:1,webm:!1,description:'Specify the physical equivalent of this ChapterAtom like "DVD" (60) or "SIDE" (50), see complete list of values.'},28348:{name:"ChapterSegmentEditionUID",level:4,type:"u",minver:1,webm:!1,range:"not 0",description:"The EditionUID to play from the segment linked in ChapterSegmentUID."},28263:{name:"ChapterSegmentUID",level:4,type:"b",minver:1,webm:!1,range:">0",bytesize:16,description:"A segment to play in place of this chapter. Edition ChapterSegmentEditionUID should be used for this segment, otherwise no edition is used."},29636:{name:"ChapterUID",level:4,type:"u",mandatory:!0,minver:1,webm:!0,range:"not 0",description:"A unique ID to identify the Chapter."},182:{name:"ChapterAtom",level:3,recursive:"1",type:"m",mandatory:!0,multiple:!0,minver:1,webm:!0,description:"Contains the atom information to use as the chapter atom (apply to all tracks)."},17885:{name:"EditionFlagOrdered",level:3,type:"u",minver:1,webm:!1,default:0,range:"0-1",description:"Specify if the chapters can be defined multiple times and the order to play them is enforced. (1 bit)"},17883:{name:"EditionFlagDefault",level:3,type:"u",mandatory:!0,minver:1,webm:!1,default:0,range:"0-1",description:"If a flag is set (1) the edition should be used as the default one. (1 bit)"},17853:{name:"EditionFlagHidden",level:3,type:"u",mandatory:!0,minver:1,webm:!1,default:0,range:"0-1",description:"If an edition is hidden (1), it should not be available to the user interface (but still to Control Tracks; see flag notes). (1 bit)"},17852:{name:"EditionUID",level:3,type:"u",minver:1,webm:!1,range:"not 0",description:"A unique ID to identify the edition. It's useful for tagging an edition."},17849:{name:"EditionEntry",level:2,type:"m",mandatory:!0,multiple:!0,minver:1,webm:!0,description:"Contains all information about a segment edition."},272869232:{name:"Chapters",level:1,type:"m",minver:1,webm:!0,description:"A system to define basic menus and partition data. For more detailed information, look at the Chapters Explanation."},18094:{name:"FileUID",level:3,type:"u",mandatory:!0,minver:1,webm:!1,range:"not 0",description:"Unique ID representing the file, as random as possible."},18012:{name:"FileData",level:3,type:"b",mandatory:!0,minver:1,webm:!1,description:"The data of the file."},18030:{name:"FileName",level:3,type:"8",mandatory:!0,minver:1,webm:!1,description:"Filename of the attached file."},18046:{name:"FileDescription",level:3,type:"8",minver:1,webm:!1,description:"A human-friendly name for the attached file."},24999:{name:"AttachedFile",level:2,type:"m",mandatory:!0,multiple:!0,minver:1,webm:!1,description:"An attached file."},423732329:{name:"Attachments",level:1,type:"m",minver:1,webm:!1,description:"Contain attached files."},235:{name:"CueRefCodecState",level:5,type:"u",webm:!1,default:0,description:"The position of the Codec State corresponding to this referenced element. 0 means that the data is taken from the initial Track Entry."},21343:{name:"CueRefNumber",level:5,type:"u",webm:!1,default:1,range:"not 0",description:"Number of the referenced Block of Track X in the specified Cluster."},219:{name:"CueReference",level:4,type:"m",multiple:!0,minver:2,webm:!1,description:"The Clusters containing the required referenced Blocks."},234:{name:"CueCodecState",level:4,type:"u",minver:2,webm:!1,default:0,description:"The position of the Codec State corresponding to this Cue element. 0 means that the data is taken from the initial Track Entry."},178:{name:"CueDuration",level:4,type:"u",mandatory:!1,minver:4,webm:!1,description:"The duration of the block according to the segment time base. If missing the track's DefaultDuration does not apply and no duration information is available in terms of the cues."},240:{name:"CueRelativePosition",level:4,type:"u",mandatory:!1,minver:4,webm:!1,description:"The relative position of the referenced block inside the cluster with 0 being the first possible position for an element inside that cluster.",position:"clusterRelative"},241:{name:"CueClusterPosition",level:4,type:"u",mandatory:!0,minver:1,description:"The position of the Cluster containing the required Block.",position:"segment"},247:{name:"CueTrack",level:4,type:"u",mandatory:!0,minver:1,range:"not 0",description:"The track for which a position is given."},183:{name:"CueTrackPositions",level:3,type:"m",mandatory:!0,multiple:!0,minver:1,description:"Contain positions for different tracks corresponding to the timestamp."},179:{name:"CueTime",level:3,type:"u",mandatory:!0,minver:1,description:"Absolute timestamp according to the segment time base."},187:{name:"CuePoint",level:2,type:"m",mandatory:!0,multiple:!0,minver:1,description:"Contains all information relative to a seek point in the segment."},475249515:{name:"Cues",level:1,type:"m",minver:1,description:'A top-level element to speed seeking access. All entries are local to the segment. Should be mandatory for non "live" streams.'},18406:{name:"ContentSigHashAlgo",level:6,type:"u",minver:1,webm:!1,default:0,description:"The hash algorithm used for the signature. A value of '0' means that the contents have not been signed but only encrypted. Predefined values: 1 - SHA1-160 2 - MD5"},18405:{name:"ContentSigAlgo",level:6,type:"u",minver:1,webm:!1,default:0,description:"The algorithm used for the signature. A value of '0' means that the contents have not been signed but only encrypted. Predefined values: 1 - RSA"},18404:{name:"ContentSigKeyID",level:6,type:"b",minver:1,webm:!1,description:"This is the ID of the private key the data was signed with."},18403:{name:"ContentSignature",level:6,type:"b",minver:1,webm:!1,description:"A cryptographic signature of the contents."},18402:{name:"ContentEncKeyID",level:6,type:"b",minver:1,webm:!1,description:"For public key algorithms this is the ID of the public key the the data was encrypted with."},18401:{name:"ContentEncAlgo",level:6,type:"u",minver:1,webm:!1,default:0,description:"The encryption algorithm used. The value '0' means that the contents have not been encrypted but only signed. Predefined values: 1 - DES, 2 - 3DES, 3 - Twofish, 4 - Blowfish, 5 - AES"},28032:{name:"ContentEncodings",level:3,type:"m",minver:1,webm:!1,description:"Settings for several content encoding mechanisms like compression or encryption."},196:{name:"TrickMasterTrackSegmentUID",level:3,type:"b",divx:!0,bytesize:16,description:"DivX trick track extenstions"},199:{name:"TrickMasterTrackUID",level:3,type:"u",divx:!0,description:"DivX trick track extenstions"},198:{name:"TrickTrackFlag",level:3,type:"u",divx:!0,default:0,description:"DivX trick track extenstions"},193:{name:"TrickTrackSegmentUID",level:3,type:"b",divx:!0,bytesize:16,description:"DivX trick track extenstions"},192:{name:"TrickTrackUID",level:3,type:"u",divx:!0,description:"DivX trick track extenstions"},237:{name:"TrackJoinUID",level:5,type:"u",mandatory:!0,multiple:!0,minver:3,webm:!1,range:"not 0",description:"The trackUID number of a track whose blocks are used to create this virtual track."},233:{name:"TrackJoinBlocks",level:4,type:"m",minver:3,webm:!1,description:"Contains the list of all tracks whose Blocks need to be combined to create this virtual track"},230:{name:"TrackPlaneType",level:6,type:"u",mandatory:!0,minver:3,webm:!1,description:"The kind of plane this track corresponds to (0: left eye, 1: right eye, 2: background)."},229:{name:"TrackPlaneUID",level:6,type:"u",mandatory:!0,minver:3,webm:!1,range:"not 0",description:"The trackUID number of the track representing the plane."},228:{name:"TrackPlane",level:5,type:"m",mandatory:!0,multiple:!0,minver:3,webm:!1,description:"Contains a video plane track that need to be combined to create this 3D track"},227:{name:"TrackCombinePlanes",level:4,type:"m",minver:3,webm:!1,description:"Contains the list of all video plane tracks that need to be combined to create this 3D track"},226:{name:"TrackOperation",level:3,type:"m",minver:3,webm:!1,description:"Operation that needs to be applied on tracks to create this virtual track. For more details look at the Specification Notes on the subject."},32123:{name:"ChannelPositions",cppname:"AudioPosition",level:4,type:"b",webm:!1,description:"Table of horizontal angles for each successive channel, see appendix."},159:{name:"Channels",cppname:"AudioChannels",level:4,type:"u",mandatory:!0,minver:1,default:1,range:"not 0",description:"Numbers of channels in the track."},30901:{name:"OutputSamplingFrequency",cppname:"AudioOutputSamplingFreq",level:4,type:"f",minver:1,default:"Sampling Frequency",range:"> 0",description:"Real output sampling frequency in Hz (used for SBR techniques)."},181:{name:"SamplingFrequency",cppname:"AudioSamplingFreq",level:4,type:"f",mandatory:!0,minver:1,default:8e3,range:"> 0",description:"Sampling frequency in Hz."},225:{name:"Audio",cppname:"TrackAudio",level:3,type:"m",minver:1,description:"Audio settings."},2327523:{name:"FrameRate",cppname:"VideoFrameRate",level:4,type:"f",range:"> 0",strong:"Informational",description:"Number of frames per second. only."},3126563:{name:"GammaValue",cppname:"VideoGamma",level:4,type:"f",webm:!1,range:"> 0",description:"Gamma Value."},3061028:{name:"ColourSpace",cppname:"VideoColourSpace",level:4,type:"b",minver:1,webm:!1,bytesize:4,description:"Same value as in AVI (32 bits)."},21683:{name:"AspectRatioType",cppname:"VideoAspectRatio",level:4,type:"u",minver:1,default:0,description:"Specify the possible modifications to the aspect ratio (0: free resizing, 1: keep aspect ratio, 2: fixed)."},21682:{name:"DisplayUnit",cppname:"VideoDisplayUnit",level:4,type:"u",minver:1,default:0,description:"How DisplayWidth & DisplayHeight should be interpreted (0: pixels, 1: centimeters, 2: inches, 3: Display Aspect Ratio)."},21690:{name:"DisplayHeight",cppname:"VideoDisplayHeight",level:4,type:"u",minver:1,default:"PixelHeight",range:"not 0",description:"Height of the video frames to display. The default value is only valid when DisplayUnit is 0."},21680:{name:"DisplayWidth",cppname:"VideoDisplayWidth",level:4,type:"u",minver:1,default:"PixelWidth",range:"not 0",description:"Width of the video frames to display. The default value is only valid when DisplayUnit is 0."},21725:{name:"PixelCropRight",cppname:"VideoPixelCropRight",level:4,type:"u",minver:1,default:0,description:"The number of video pixels to remove on the right of the image."},21708:{name:"PixelCropLeft",cppname:"VideoPixelCropLeft",level:4,type:"u",minver:1,default:0,description:"The number of video pixels to remove on the left of the image."},21691:{name:"PixelCropTop",cppname:"VideoPixelCropTop",level:4,type:"u",minver:1,default:0,description:"The number of video pixels to remove at the top of the image."},21674:{name:"PixelCropBottom",cppname:"VideoPixelCropBottom",level:4,type:"u",minver:1,default:0,description:"The number of video pixels to remove at the bottom of the image (for HDTV content)."},186:{name:"PixelHeight",cppname:"VideoPixelHeight",level:4,type:"u",mandatory:!0,minver:1,range:"not 0",description:"Height of the encoded video frames in pixels."},176:{name:"PixelWidth",cppname:"VideoPixelWidth",level:4,type:"u",mandatory:!0,minver:1,range:"not 0",description:"Width of the encoded video frames in pixels."},21433:{name:"OldStereoMode",level:4,type:"u",maxver:"0",webm:!1,divx:!1,description:"DEPRECATED, DO NOT USE. Bogus StereoMode value used in old versions of libmatroska. (0: mono, 1: right eye, 2: left eye, 3: both eyes)."},21440:{name:"AlphaMode",cppname:"VideoAlphaMode",level:4,type:"u",minver:3,webm:!0,default:0,description:"Alpha Video Mode. Presence of this element indicates that the BlockAdditional element could contain Alpha data."},21432:{name:"StereoMode",cppname:"VideoStereoMode",level:4,type:"u",minver:3,webm:!0,default:0,description:"Stereo-3D video mode (0: mono, 1: side by side (left eye is first), 2: top-bottom (right eye is first), 3: top-bottom (left eye is first), 4: checkboard (right is first), 5: checkboard (left is first), 6: row interleaved (right is first), 7: row interleaved (left is first), 8: column interleaved (right is first), 9: column interleaved (left is first), 10: anaglyph (cyan/red), 11: side by side (right eye is first), 12: anaglyph (green/magenta), 13 both eyes laced in one Block (left eye is first), 14 both eyes laced in one Block (right eye is first)) . There are some more details on 3D support in the Specification Notes."},154:{name:"FlagInterlaced",cppname:"VideoFlagInterlaced",level:4,type:"u",mandatory:!0,minver:2,webm:!0,default:0,range:"0-1",description:"Set if the video is interlaced. (1 bit)"},224:{name:"Video",cppname:"TrackVideo",level:3,type:"m",minver:1,description:"Video settings."},26277:{name:"TrackTranslateTrackID",level:4,type:"b",mandatory:!0,minver:1,webm:!1,description:"The binary value used to represent this track in the chapter codec data. The format depends on the ChapProcessCodecID used."},26303:{name:"TrackTranslateCodec",level:4,type:"u",mandatory:!0,minver:1,webm:!1,description:"The chapter codec using this ID (0: Matroska Script, 1: DVD-menu)."},26364:{name:"TrackTranslateEditionUID",level:4,type:"u",multiple:!0,minver:1,webm:!1,description:"Specify an edition UID on which this translation applies. When not specified, it means for all editions found in the segment."},22203:{name:"SeekPreRoll",level:3,type:"u",mandatory:!0,multiple:!1,default:0,minver:4,webm:!0,description:"After a discontinuity, SeekPreRoll is the duration in nanoseconds of the data the decoder must decode before the decoded data is valid."},22186:{name:"CodecDelay",level:3,type:"u",multiple:!1,default:0,minver:4,webm:!0,description:"CodecDelay is The codec-built-in delay in nanoseconds. This value must be subtracted from each block timestamp in order to get the actual timestamp. The value should be small so the muxing of tracks with the same actual timestamp are in the same Cluster."},28587:{name:"TrackOverlay",level:3,type:"u",multiple:!0,minver:1,webm:!1,description:"Specify that this track is an overlay track for the Track specified (in the u-integer). That means when this track has a gap (see SilentTracks) the overlay track should be used instead. The order of multiple TrackOverlay matters, the first one is the one that should be used. If not found it should be the second, etc."},170:{name:"CodecDecodeAll",level:3,type:"u",mandatory:!0,minver:2,webm:!1,default:1,range:"0-1",description:"The codec can decode potentially damaged data (1 bit)."},2536e3:{name:"CodecDownloadURL",level:3,type:"s",multiple:!0,webm:!1,description:"A URL to download about the codec used."},3883072:{name:"CodecInfoURL",level:3,type:"s",multiple:!0,webm:!1,description:"A URL to find information about the codec used."},3839639:{name:"CodecSettings",level:3,type:"8",webm:!1,description:"A string describing the encoding setting used."},25506:{name:"CodecPrivate",level:3,type:"b",minver:1,description:"Private data only known to the codec."},2274716:{name:"Language",cppname:"TrackLanguage",level:3,type:"s",minver:1,default:"eng",description:"Specifies the language of the track in the Matroska languages form."},21358:{name:"Name",cppname:"TrackName",level:3,type:"8",minver:1,description:"A human-readable track name."},21998:{name:"MaxBlockAdditionID",level:3,type:"u",mandatory:!0,minver:1,webm:!1,default:0,description:"The maximum value of BlockAdditions for this track."},21375:{name:"TrackOffset",level:3,type:"i",webm:!1,default:0,description:"A value to add to the Block's Timestamp. This can be used to adjust the playback offset of a track."},2306383:{name:"TrackTimecodeScale",level:3,type:"f",mandatory:!0,minver:1,maxver:"3",webm:!1,default:1,range:"> 0",description:"DEPRECATED, DO NOT USE. The scale to apply on this track to work at normal speed in relation with other tracks (mostly used to adjust video speed when the audio length differs)."},2313850:{name:"DefaultDecodedFieldDuration",cppname:"TrackDefaultDecodedFieldDuration",level:3,type:"u",minver:4,range:"not 0",description:`The period in nanoseconds (not scaled by TimcodeScale)
|
|
4
|
+
between two successive fields at the output of the decoding process (see the notes)`},2352003:{name:"DefaultDuration",cppname:"TrackDefaultDuration",level:3,type:"u",minver:1,range:"not 0",description:"Number of nanoseconds (not scaled via TimecodeScale) per frame ('frame' in the Matroska sense -- one element put into a (Simple)Block)."},28152:{name:"MaxCache",cppname:"TrackMaxCache",level:3,type:"u",minver:1,webm:!1,description:"The maximum cache size required to store referenced frames in and the current frame. 0 means no cache is needed."},28135:{name:"MinCache",cppname:"TrackMinCache",level:3,type:"u",mandatory:!0,minver:1,webm:!1,default:0,description:"The minimum number of frames a player should be able to cache during playback. If set to 0, the reference pseudo-cache system is not used."},156:{name:"FlagLacing",cppname:"TrackFlagLacing",level:3,type:"u",mandatory:!0,minver:1,default:1,range:"0-1",description:"Set if the track may contain blocks using lacing. (1 bit)"},21930:{name:"FlagForced",cppname:"TrackFlagForced",level:3,type:"u",mandatory:!0,minver:1,default:0,range:"0-1",description:"Set if that track MUST be active during playback. There can be many forced track for a kind (audio, video or subs), the player should select the one which language matches the user preference or the default + forced track. Overlay MAY happen between a forced and non-forced track of the same kind. (1 bit)"},185:{name:"FlagEnabled",cppname:"TrackFlagEnabled",level:3,type:"u",mandatory:!0,minver:2,webm:!0,default:1,range:"0-1",description:"Set if the track is usable. (1 bit)"},29637:{name:"TrackUID",level:3,type:"u",mandatory:!0,minver:1,range:"not 0",description:"A unique ID to identify the Track. This should be kept the same when making a direct stream copy of the Track to another file."},215:{name:"TrackNumber",level:3,type:"u",mandatory:!0,minver:1,range:"not 0",description:"The track number as used in the Block Header (using more than 127 tracks is not encouraged, though the design allows an unlimited number)."},174:{name:"TrackEntry",level:2,type:"m",mandatory:!0,multiple:!0,minver:1,description:"Describes a track with all elements."},374648427:{name:"Tracks",level:1,type:"m",multiple:!0,minver:1,description:"A top-level block of information with many tracks described."},175:{name:"EncryptedBlock",level:2,type:"b",multiple:!0,webm:!1,description:"Similar to EncryptedBlock Structure)"},202:{name:"ReferenceTimeCode",level:4,type:"u",multiple:!1,mandatory:!0,minver:0,webm:!1,divx:!0,description:"DivX trick track extenstions"},201:{name:"ReferenceOffset",level:4,type:"u",multiple:!1,mandatory:!0,minver:0,webm:!1,divx:!0,description:"DivX trick track extenstions"},200:{name:"ReferenceFrame",level:3,type:"m",multiple:!1,minver:0,webm:!1,divx:!0,description:"DivX trick track extenstions"},207:{name:"SliceDuration",level:5,type:"u",default:0,description:"The (scaled) duration to apply to the element."},206:{name:"Delay",cppname:"SliceDelay",level:5,type:"u",default:0,description:"The (scaled) delay to apply to the element."},203:{name:"BlockAdditionID",cppname:"SliceBlockAddID",level:5,type:"u",default:0,description:"The ID of the BlockAdditional element (0 is the main Block)."},205:{name:"FrameNumber",cppname:"SliceFrameNumber",level:5,type:"u",default:0,description:"The number of the frame to generate from this lace with this delay (allow you to generate many frames from the same Block/Frame)."},204:{name:"LaceNumber",cppname:"SliceLaceNumber",level:5,type:"u",minver:1,default:0,divx:!1,description:"The reverse number of the frame in the lace (0 is the last frame, 1 is the next to last, etc). While there are a few files in the wild with this element, it is no longer in use and has been deprecated. Being able to interpret this element is not required for playback."},232:{name:"TimeSlice",level:4,type:"m",multiple:!0,minver:1,divx:!1,description:"Contains extra time information about the data contained in the Block. While there are a few files in the wild with this element, it is no longer in use and has been deprecated. Being able to interpret this element is not required for playback."},142:{name:"Slices",level:3,type:"m",minver:1,divx:!1,description:"Contains slices description."},30114:{name:"DiscardPadding",level:3,type:"i",minver:4,webm:!0,description:"Duration in nanoseconds of the silent data added to the Block (padding at the end of the Block for positive value, at the beginning of the Block for negative value). The duration of DiscardPadding is not calculated in the duration of the TrackEntry and should be discarded during playback."},164:{name:"CodecState",level:3,type:"b",minver:2,webm:!1,description:"The new codec state to use. Data interpretation is private to the codec. This information should always be referenced by a seek entry."},253:{name:"ReferenceVirtual",level:3,type:"i",webm:!1,description:"Relative position of the data that should be in position of the virtual block."},251:{name:"ReferenceBlock",level:3,type:"i",multiple:!0,minver:1,description:"Timestamp of another frame used as a reference (ie: B or P frame). The timestamp is relative to the block it's attached to."},250:{name:"ReferencePriority",cppname:"FlagReferenced",level:3,type:"u",mandatory:!0,minver:1,webm:!1,default:0,description:"This frame is referenced and has the specified cache priority. In cache only a frame of the same or higher priority can replace this frame. A value of 0 means the frame is not referenced."},155:{name:"BlockDuration",level:3,type:"u",minver:1,default:"TrackDuration",description:'The duration of the Block (based on TimecodeScale). This element is mandatory when DefaultDuration is set for the track (but can be omitted as other default values). When not written and with no DefaultDuration, the value is assumed to be the difference between the timestamp of this Block and the timestamp of the next Block in "display" order (not coding order). This element can be useful at the end of a Track (as there is not other Block available), or when there is a break in a track like for subtitle tracks. When set to 0 that means the frame is not a keyframe.'},165:{name:"BlockAdditional",level:5,type:"b",mandatory:!0,minver:1,webm:!1,description:"Interpreted by the codec as it wishes (using the BlockAddID)."},238:{name:"BlockAddID",level:5,type:"u",mandatory:!0,minver:1,webm:!1,default:1,range:"not 0",description:"An ID to identify the BlockAdditional level."},166:{name:"BlockMore",level:4,type:"m",mandatory:!0,multiple:!0,minver:1,webm:!1,description:"Contain the BlockAdditional and some parameters."},30113:{name:"BlockAdditions",level:3,type:"m",minver:1,webm:!1,description:"Contain additional blocks to complete the main one. An EBML parser that has no knowledge of the Block structure could still see and use/skip these data."},162:{name:"BlockVirtual",level:3,type:"b",webm:!1,description:"A Block with no data. It must be stored in the stream at the place the real Block should be in display order. (see Block Virtual)"},161:{name:"Block",level:3,type:"b",mandatory:!0,minver:1,description:"Block containing the actual data to be rendered and a timestamp relative to the Cluster Timecode. (see Block Structure)"},160:{name:"BlockGroup",level:2,type:"m",multiple:!0,minver:1,description:"Basic container of information containing a single Block or BlockVirtual, and information specific to that Block/VirtualBlock."},163:{name:"SimpleBlock",level:2,type:"b",multiple:!0,minver:2,webm:!0,divx:!0,description:"Similar to SimpleBlock Structure"},171:{name:"PrevSize",cppname:"ClusterPrevSize",level:2,type:"u",minver:1,description:"Size of the previous Cluster, in octets. Can be useful for backward playing.",position:"prevCluster"},167:{name:"Position",cppname:"ClusterPosition",level:2,type:"u",minver:1,webm:!1,description:"The Position of the Cluster in the segment (0 in live broadcast streams). It might help to resynchronise offset on damaged streams.",position:"segment"},22743:{name:"SilentTrackNumber",cppname:"ClusterSilentTrackNumber",level:3,type:"u",multiple:!0,minver:1,webm:!1,description:"One of the track number that are not used from now on in the stream. It could change later if not specified as silent in a further Cluster."},231:{name:"Timecode",cppname:"ClusterTimecode",level:2,type:"u",mandatory:!0,minver:1,description:"Absolute timestamp of the cluster (based on TimecodeScale)."},524531317:{name:"Cluster",level:1,type:"m",multiple:!0,minver:1,description:"The lower level element containing the (monolithic) Block structure."},19840:{name:"MuxingApp",level:2,type:"8",mandatory:!0,minver:1,description:'Muxing application or library ("libmatroska-0.4.3").'},31657:{name:"Title",level:2,type:"8",minver:1,webm:!1,description:"General name of the segment."},2807730:{name:"TimecodeScaleDenominator",level:2,type:"u",mandatory:!0,minver:4,default:"1000000000",description:"Timestamp scale numerator, see TimecodeScale."},2807729:{name:"TimecodeScale",level:2,type:"u",mandatory:!0,minver:1,default:"1000000",description:"Timestamp scale in nanoseconds (1.000.000 means all timestamps in the segment are expressed in milliseconds)."},27045:{name:"ChapterTranslateID",level:3,type:"b",mandatory:!0,minver:1,webm:!1,description:"The binary value used to represent this segment in the chapter codec data. The format depends on the ChapProcessCodecID used."},27071:{name:"ChapterTranslateCodec",level:3,type:"u",mandatory:!0,minver:1,webm:!1,description:"The chapter codec using this ID (0: Matroska Script, 1: DVD-menu)."},27132:{name:"ChapterTranslateEditionUID",level:3,type:"u",multiple:!0,minver:1,webm:!1,description:"Specify an edition UID on which this correspondance applies. When not specified, it means for all editions found in the segment."},4096955:{name:"NextFilename",level:2,type:"8",minver:1,webm:!1,description:"An escaped filename corresponding to the next segment."},4110627:{name:"NextUID",level:2,type:"b",minver:1,webm:!1,bytesize:16,description:"A unique ID to identify the next chained segment (128 bits)."},3965867:{name:"PrevFilename",level:2,type:"8",minver:1,webm:!1,description:"An escaped filename corresponding to the previous segment."},3979555:{name:"PrevUID",level:2,type:"b",minver:1,webm:!1,bytesize:16,description:"A unique ID to identify the previous chained segment (128 bits)."},29604:{name:"SegmentUID",level:2,type:"b",minver:1,webm:!1,range:"not 0",bytesize:16,description:"A randomly generated unique ID to identify the current segment between many others (128 bits)."},357149030:{name:"Info",level:1,type:"m",mandatory:!0,multiple:!0,minver:1,description:"Contains miscellaneous general information and statistics on the file."},21420:{name:"SeekPosition",level:3,type:"u",mandatory:!0,minver:1,description:"The position of the element in the segment in octets (0 = first level 1 element).",position:"segment"},21419:{name:"SeekID",level:3,type:"b",mandatory:!0,minver:1,description:"The binary ID corresponding to the element name.",type2:"ebmlID"},19899:{name:"Seek",cppname:"SeekPoint",level:2,type:"m",mandatory:!0,multiple:!0,minver:1,description:"Contains a single seek entry to an EBML element."},290298740:{name:"SeekHead",cppname:"SeekHeader",level:1,type:"m",multiple:!0,minver:1,description:"Contains the position of other level 1 elements."},32379:{name:"SignatureElementList",level:2,type:"m",multiple:!0,webm:!1,i:"Cluster|Block|BlockAdditional",description:"A list consists of a number of consecutive elements that represent one case where data is used in signature. Ex: means that the BlockAdditional of all Blocks in all Clusters is used for encryption."},32347:{name:"SignatureElements",level:1,type:"m",webm:!1,description:"Contains elements that will be used to compute the signature."},32437:{name:"Signature",level:1,type:"b",webm:!1,description:"The signature of the data (until a new."},32421:{name:"SignaturePublicKey",level:1,type:"b",webm:!1,description:"The public key to use with the algorithm (in the case of a PKI-based signature)."},32410:{name:"SignatureHash",level:1,type:"u",webm:!1,description:"Hash algorithm used (1=SHA1-160, 2=MD5)."},32394:{name:"SignatureAlgo",level:1,type:"u",webm:!1,description:"Signature algorithm used (1=RSA, 2=elliptic)."},458458727:{name:"SignatureSlot",level:-1,type:"m",multiple:!0,webm:!1,description:"Contain signature of some (coming) elements in the stream."},191:{name:"CRC-32",level:-1,type:"b",minver:1,webm:!1,description:"The CRC is computed on all the data of the Master element it's in. The CRC element should be the first in it's parent master for easier reading. All level 1 elements should include a CRC-32. The CRC in use is the IEEE CRC32 Little Endian",crc:!0},236:{name:"Void",level:-1,type:"b",minver:1,description:"Used to void damaged data, to avoid unexpected behaviors when using damaged data. The content is discarded. Also used to reserve space in a sub-element for later use."},17139:{name:"EBMLMaxSizeLength",level:1,type:"u",mandatory:!0,default:8,minver:1,description:"The maximum length of the sizes you'll find in this file (8 or less in Matroska). This does not override the element size indicated at the beginning of an element. Elements that have an indicated size which is larger than what is allowed by EBMLMaxSizeLength shall be considered invalid."},17138:{name:"EBMLMaxIDLength",level:1,type:"u",mandatory:!0,default:4,minver:1,description:"The maximum length of the IDs you'll find in this file (4 or less in Matroska)."},17143:{name:"EBMLReadVersion",level:1,type:"u",mandatory:!0,default:1,minver:1,description:"The minimum EBML version a parser has to support to read this file."},440786851:{name:"EBML",level:"0",type:"m",mandatory:!0,multiple:!0,minver:1,description:"Set the EBML characteristics of the data to follow. Each EBML document has to start with this."},21936:{name:"Colour",level:"4",type:"m",mandatory:!0,multiple:!0,description:"Settings describing the colour format."},21937:{name:"MatrixCoefficients",level:"5",type:"u",mandatory:!0,multiple:!0,description:"The Matrix Coefficients of the video used to derive luma and chroma values from red, green, and blue color primaries. For clarity, the value and meanings for MatrixCoefficients are adopted from Table 4 of ISO/IEC 23001-8:2016 or ITU-T H.273."},21945:{name:"Range",level:"5",type:"u",mandatory:!0,multiple:!0,description:"Clipping of the color ranges."},21946:{name:"TransferCharacteristics",level:"5",type:"u",mandatory:!0,multiple:!0,description:"The transfer characteristics of the video."},21947:{name:"Primaries",level:"5",type:"u",mandatory:!0,multiple:!0,description:"The colour primaries of the video. For clarity, the value and meanings for Primaries are adopted from Table 2 of ISO/IEC 23091-4 or ITU-T H.273."}}),ebmlID}var hasRequiredEBMLEncoder;function requireEBMLEncoder(){if(hasRequiredEBMLEncoder)return EBMLEncoder;hasRequiredEBMLEncoder=1,Object.defineProperty(EBMLEncoder,"__esModule",{value:!0});var O=requireTools(),N=requireTools(),I=requireEbmlID(),D=function(){function f(){this._schema=I.byEbmlID,this._buffers=[],this._stack=[]}return f.prototype.encode=function(k){var i=this;return O.concat(k.reduce(function(c,$){return c.concat(i.encodeChunk($))},[])).buffer},f.prototype.encodeChunk=function(k){return k.type==="m"?k.isEnd?this.endTag(k):this.startTag(k):(k.data=N.Buffer.from(k.data),this.writeTag(k)),this.flush()},f.prototype.flush=function(){var k=this._buffers;return this._buffers=[],k},f.prototype.getSchemaInfo=function(k){for(var i=Object.keys(this._schema).map(Number),c=0;c<i.length;c++){var $=i[c];if(this._schema[$].name===k)return new N.Buffer($.toString(16),"hex")}return null},f.prototype.writeTag=function(k){var i=k.name,c=this.getSchemaInfo(i),$=k.data;if(c==null)throw new Error("No schema entry found for "+i);var C=O.encodeTag(c,$);if(this._stack.length>0){var M=this._stack[this._stack.length-1];M.children.push({tagId:c,elm:k,children:[],data:C});return}this._buffers=this._buffers.concat(C)},f.prototype.startTag=function(k){var i=k.name,c=this.getSchemaInfo(i);if(c==null)throw new Error("No schema entry found for "+i);if(k.unknownSize){var $=O.encodeTag(c,new N.Buffer(0),k.unknownSize);this._buffers=this._buffers.concat($);return}var C={tagId:c,elm:k,children:[],data:null};this._stack.length>0&&this._stack[this._stack.length-1].children.push(C),this._stack.push(C)},f.prototype.endTag=function(k){k.name;var i=this._stack.pop();if(i==null)throw new Error("EBML structure is broken");if(i.elm.name!==k.name)throw new Error("EBML structure is broken");var c=i.children.reduce(function(C,M){if(M.data===null)throw new Error("EBML structure is broken");return C.concat(M.data)},[]),$=O.concat(c);i.elm.type==="m"?i.data=O.encodeTag(i.tagId,$,i.elm.unknownSize):i.data=O.encodeTag(i.tagId,$),this._stack.length<1&&(this._buffers=this._buffers.concat(i.data))},f}();return EBMLEncoder.default=D,EBMLEncoder}var buffer={},base64Js={},hasRequiredBase64Js;function requireBase64Js(){if(hasRequiredBase64Js)return base64Js;hasRequiredBase64Js=1,base64Js.byteLength=c,base64Js.toByteArray=C,base64Js.fromByteArray=Z;for(var O=[],N=[],I=typeof Uint8Array<"u"?Uint8Array:Array,D="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,k=D.length;f<k;++f)O[f]=D[f],N[D.charCodeAt(f)]=f;N[45]=62,N[95]=63;function i(z){var X=z.length;if(X%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var re=z.indexOf("=");re===-1&&(re=X);var oe=re===X?0:4-re%4;return[re,oe]}function c(z){var X=i(z),re=X[0],oe=X[1];return(re+oe)*3/4-oe}function $(z,X,re){return(X+re)*3/4-re}function C(z){var X,re=i(z),oe=re[0],ne=re[1],de=new I($(z,oe,ne)),ye=0,Q=ne>0?oe-4:oe,ae;for(ae=0;ae<Q;ae+=4)X=N[z.charCodeAt(ae)]<<18|N[z.charCodeAt(ae+1)]<<12|N[z.charCodeAt(ae+2)]<<6|N[z.charCodeAt(ae+3)],de[ye++]=X>>16&255,de[ye++]=X>>8&255,de[ye++]=X&255;return ne===2&&(X=N[z.charCodeAt(ae)]<<2|N[z.charCodeAt(ae+1)]>>4,de[ye++]=X&255),ne===1&&(X=N[z.charCodeAt(ae)]<<10|N[z.charCodeAt(ae+1)]<<4|N[z.charCodeAt(ae+2)]>>2,de[ye++]=X>>8&255,de[ye++]=X&255),de}function M(z){return O[z>>18&63]+O[z>>12&63]+O[z>>6&63]+O[z&63]}function J(z,X,re){for(var oe,ne=[],de=X;de<re;de+=3)oe=(z[de]<<16&16711680)+(z[de+1]<<8&65280)+(z[de+2]&255),ne.push(M(oe));return ne.join("")}function Z(z){for(var X,re=z.length,oe=re%3,ne=[],de=16383,ye=0,Q=re-oe;ye<Q;ye+=de)ne.push(J(z,ye,ye+de>Q?Q:ye+de));return oe===1?(X=z[re-1],ne.push(O[X>>2]+O[X<<4&63]+"==")):oe===2&&(X=(z[re-2]<<8)+z[re-1],ne.push(O[X>>10]+O[X>>4&63]+O[X<<2&63]+"=")),ne.join("")}return base64Js}var ieee754={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var hasRequiredIeee754;function requireIeee754(){return hasRequiredIeee754||(hasRequiredIeee754=1,ieee754.read=function(O,N,I,D,f){var k,i,c=f*8-D-1,$=(1<<c)-1,C=$>>1,M=-7,J=I?f-1:0,Z=I?-1:1,z=O[N+J];for(J+=Z,k=z&(1<<-M)-1,z>>=-M,M+=c;M>0;k=k*256+O[N+J],J+=Z,M-=8);for(i=k&(1<<-M)-1,k>>=-M,M+=D;M>0;i=i*256+O[N+J],J+=Z,M-=8);if(k===0)k=1-C;else{if(k===$)return i?NaN:(z?-1:1)*(1/0);i=i+Math.pow(2,D),k=k-C}return(z?-1:1)*i*Math.pow(2,k-D)},ieee754.write=function(O,N,I,D,f,k){var i,c,$,C=k*8-f-1,M=(1<<C)-1,J=M>>1,Z=f===23?Math.pow(2,-24)-Math.pow(2,-77):0,z=D?0:k-1,X=D?1:-1,re=N<0||N===0&&1/N<0?1:0;for(N=Math.abs(N),isNaN(N)||N===1/0?(c=isNaN(N)?1:0,i=M):(i=Math.floor(Math.log(N)/Math.LN2),N*($=Math.pow(2,-i))<1&&(i--,$*=2),i+J>=1?N+=Z/$:N+=Z*Math.pow(2,1-J),N*$>=2&&(i++,$/=2),i+J>=M?(c=0,i=M):i+J>=1?(c=(N*$-1)*Math.pow(2,f),i=i+J):(c=N*Math.pow(2,J-1)*Math.pow(2,f),i=0));f>=8;O[I+z]=c&255,z+=X,c/=256,f-=8);for(i=i<<f|c,C+=f;C>0;O[I+z]=i&255,z+=X,i/=256,C-=8);O[I+z-X]|=re*128}),ieee754}/*!
|
|
9
5
|
* The buffer module from node.js, for the browser.
|
|
10
6
|
*
|
|
11
7
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
12
8
|
* @license MIT
|
|
13
|
-
*/var hasRequiredBuffer;function requireBuffer(){return hasRequiredBuffer||(hasRequiredBuffer=1,function(O){const N=requireBase64Js(),I=requireIeee754(),D=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;O.Buffer=c,O.SlowBuffer=ie,O.INSPECT_MAX_BYTES=50;const f=2147483647;O.kMaxLength=f,c.TYPED_ARRAY_SUPPORT=k(),!c.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function k(){try{const X=new Uint8Array(1),F={foo:function(){return 42}};return Object.setPrototypeOf(F,Uint8Array.prototype),Object.setPrototypeOf(X,F),X.foo()===42}catch{return!1}}Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}});function i(X){if(X>f)throw new RangeError('The value "'+X+'" is invalid for option "size"');const F=new Uint8Array(X);return Object.setPrototypeOf(F,c.prototype),F}function c(X,F,j){if(typeof X=="number"){if(typeof F=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Z(X)}return $(X,F,j)}c.poolSize=8192;function $(X,F,j){if(typeof X=="string")return J(X,F);if(ArrayBuffer.isView(X))return Q(X);if(X==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof X);if(Ut(X,ArrayBuffer)||X&&Ut(X.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ut(X,SharedArrayBuffer)||X&&Ut(X.buffer,SharedArrayBuffer)))return ee(X,F,j);if(typeof X=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ae=X.valueOf&&X.valueOf();if(ae!=null&&ae!==X)return c.from(ae,F,j);const ve=Y(X);if(ve)return ve;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof X[Symbol.toPrimitive]=="function")return c.from(X[Symbol.toPrimitive]("string"),F,j);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof X)}c.from=function(X,F,j){return $(X,F,j)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array);function C(X){if(typeof X!="number")throw new TypeError('"size" argument must be of type number');if(X<0)throw new RangeError('The value "'+X+'" is invalid for option "size"')}function M(X,F,j){return C(X),X<=0?i(X):F!==void 0?typeof j=="string"?i(X).fill(F,j):i(X).fill(F):i(X)}c.alloc=function(X,F,j){return M(X,F,j)};function Z(X){return C(X),i(X<0?0:te(X)|0)}c.allocUnsafe=function(X){return Z(X)},c.allocUnsafeSlow=function(X){return Z(X)};function J(X,F){if((typeof F!="string"||F==="")&&(F="utf8"),!c.isEncoding(F))throw new TypeError("Unknown encoding: "+F);const j=ye(X,F)|0;let ae=i(j);const ve=ae.write(X,F);return ve!==j&&(ae=ae.slice(0,ve)),ae}function z(X){const F=X.length<0?0:te(X.length)|0,j=i(F);for(let ae=0;ae<F;ae+=1)j[ae]=X[ae]&255;return j}function Q(X){if(Ut(X,Uint8Array)){const F=new Uint8Array(X);return ee(F.buffer,F.byteOffset,F.byteLength)}return z(X)}function ee(X,F,j){if(F<0||X.byteLength<F)throw new RangeError('"offset" is outside of buffer bounds');if(X.byteLength<F+(j||0))throw new RangeError('"length" is outside of buffer bounds');let ae;return F===void 0&&j===void 0?ae=new Uint8Array(X):j===void 0?ae=new Uint8Array(X,F):ae=new Uint8Array(X,F,j),Object.setPrototypeOf(ae,c.prototype),ae}function Y(X){if(c.isBuffer(X)){const F=te(X.length)|0,j=i(F);return j.length===0||X.copy(j,0,0,F),j}if(X.length!==void 0)return typeof X.length!="number"||jt(X.length)?i(0):z(X);if(X.type==="Buffer"&&Array.isArray(X.data))return z(X.data)}function te(X){if(X>=f)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f.toString(16)+" bytes");return X|0}function ie(X){return+X!=X&&(X=0),c.alloc(+X)}c.isBuffer=function(F){return F!=null&&F._isBuffer===!0&&F!==c.prototype},c.compare=function(F,j){if(Ut(F,Uint8Array)&&(F=c.from(F,F.offset,F.byteLength)),Ut(j,Uint8Array)&&(j=c.from(j,j.offset,j.byteLength)),!c.isBuffer(F)||!c.isBuffer(j))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(F===j)return 0;let ae=F.length,ve=j.length;for(let Ee=0,Ce=Math.min(ae,ve);Ee<Ce;++Ee)if(F[Ee]!==j[Ee]){ae=F[Ee],ve=j[Ee];break}return ae<ve?-1:ve<ae?1:0},c.isEncoding=function(F){switch(String(F).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(F,j){if(!Array.isArray(F))throw new TypeError('"list" argument must be an Array of Buffers');if(F.length===0)return c.alloc(0);let ae;if(j===void 0)for(j=0,ae=0;ae<F.length;++ae)j+=F[ae].length;const ve=c.allocUnsafe(j);let Ee=0;for(ae=0;ae<F.length;++ae){let Ce=F[ae];if(Ut(Ce,Uint8Array))Ee+Ce.length>ve.length?(c.isBuffer(Ce)||(Ce=c.from(Ce)),Ce.copy(ve,Ee)):Uint8Array.prototype.set.call(ve,Ce,Ee);else if(c.isBuffer(Ce))Ce.copy(ve,Ee);else throw new TypeError('"list" argument must be an Array of Buffers');Ee+=Ce.length}return ve};function ye(X,F){if(c.isBuffer(X))return X.length;if(ArrayBuffer.isView(X)||Ut(X,ArrayBuffer))return X.byteLength;if(typeof X!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof X);const j=X.length,ae=arguments.length>2&&arguments[2]===!0;if(!ae&&j===0)return 0;let ve=!1;for(;;)switch(F){case"ascii":case"latin1":case"binary":return j;case"utf8":case"utf-8":return Ht(X).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j*2;case"hex":return j>>>1;case"base64":return Zt(X).length;default:if(ve)return ae?-1:Ht(X).length;F=(""+F).toLowerCase(),ve=!0}}c.byteLength=ye;function re(X,F,j){let ae=!1;if((F===void 0||F<0)&&(F=0),F>this.length||((j===void 0||j>this.length)&&(j=this.length),j<=0)||(j>>>=0,F>>>=0,j<=F))return"";for(X||(X="utf8");;)switch(X){case"hex":return Mt(this,F,j);case"utf8":case"utf-8":return Pe(this,F,j);case"ascii":return _t(this,F,j);case"latin1":case"binary":return St(this,F,j);case"base64":return Ue(this,F,j);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return At(this,F,j);default:if(ae)throw new TypeError("Unknown encoding: "+X);X=(X+"").toLowerCase(),ae=!0}}c.prototype._isBuffer=!0;function de(X,F,j){const ae=X[F];X[F]=X[j],X[j]=ae}c.prototype.swap16=function(){const F=this.length;if(F%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let j=0;j<F;j+=2)de(this,j,j+1);return this},c.prototype.swap32=function(){const F=this.length;if(F%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let j=0;j<F;j+=4)de(this,j,j+3),de(this,j+1,j+2);return this},c.prototype.swap64=function(){const F=this.length;if(F%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let j=0;j<F;j+=8)de(this,j,j+7),de(this,j+1,j+6),de(this,j+2,j+5),de(this,j+3,j+4);return this},c.prototype.toString=function(){const F=this.length;return F===0?"":arguments.length===0?Pe(this,0,F):re.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(F){if(!c.isBuffer(F))throw new TypeError("Argument must be a Buffer");return this===F?!0:c.compare(this,F)===0},c.prototype.inspect=function(){let F="";const j=O.INSPECT_MAX_BYTES;return F=this.toString("hex",0,j).replace(/(.{2})/g,"$1 ").trim(),this.length>j&&(F+=" ... "),"<Buffer "+F+">"},D&&(c.prototype[D]=c.prototype.inspect),c.prototype.compare=function(F,j,ae,ve,Ee){if(Ut(F,Uint8Array)&&(F=c.from(F,F.offset,F.byteLength)),!c.isBuffer(F))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof F);if(j===void 0&&(j=0),ae===void 0&&(ae=F?F.length:0),ve===void 0&&(ve=0),Ee===void 0&&(Ee=this.length),j<0||ae>F.length||ve<0||Ee>this.length)throw new RangeError("out of range index");if(ve>=Ee&&j>=ae)return 0;if(ve>=Ee)return-1;if(j>=ae)return 1;if(j>>>=0,ae>>>=0,ve>>>=0,Ee>>>=0,this===F)return 0;let Ce=Ee-ve,tt=ae-j;const mt=Math.min(Ce,tt),ot=this.slice(ve,Ee),wt=F.slice(j,ae);for(let yt=0;yt<mt;++yt)if(ot[yt]!==wt[yt]){Ce=ot[yt],tt=wt[yt];break}return Ce<tt?-1:tt<Ce?1:0};function se(X,F,j,ae,ve){if(X.length===0)return-1;if(typeof j=="string"?(ae=j,j=0):j>2147483647?j=2147483647:j<-2147483648&&(j=-2147483648),j=+j,jt(j)&&(j=ve?0:X.length-1),j<0&&(j=X.length+j),j>=X.length){if(ve)return-1;j=X.length-1}else if(j<0)if(ve)j=0;else return-1;if(typeof F=="string"&&(F=c.from(F,ae)),c.isBuffer(F))return F.length===0?-1:ue(X,F,j,ae,ve);if(typeof F=="number")return F=F&255,typeof Uint8Array.prototype.indexOf=="function"?ve?Uint8Array.prototype.indexOf.call(X,F,j):Uint8Array.prototype.lastIndexOf.call(X,F,j):ue(X,[F],j,ae,ve);throw new TypeError("val must be string, number or Buffer")}function ue(X,F,j,ae,ve){let Ee=1,Ce=X.length,tt=F.length;if(ae!==void 0&&(ae=String(ae).toLowerCase(),ae==="ucs2"||ae==="ucs-2"||ae==="utf16le"||ae==="utf-16le")){if(X.length<2||F.length<2)return-1;Ee=2,Ce/=2,tt/=2,j/=2}function mt(wt,yt){return Ee===1?wt[yt]:wt.readUInt16BE(yt*Ee)}let ot;if(ve){let wt=-1;for(ot=j;ot<Ce;ot++)if(mt(X,ot)===mt(F,wt===-1?0:ot-wt)){if(wt===-1&&(wt=ot),ot-wt+1===tt)return wt*Ee}else wt!==-1&&(ot-=ot-wt),wt=-1}else for(j+tt>Ce&&(j=Ce-tt),ot=j;ot>=0;ot--){let wt=!0;for(let yt=0;yt<tt;yt++)if(mt(X,ot+yt)!==mt(F,yt)){wt=!1;break}if(wt)return ot}return-1}c.prototype.includes=function(F,j,ae){return this.indexOf(F,j,ae)!==-1},c.prototype.indexOf=function(F,j,ae){return se(this,F,j,ae,!0)},c.prototype.lastIndexOf=function(F,j,ae){return se(this,F,j,ae,!1)};function he(X,F,j,ae){j=Number(j)||0;const ve=X.length-j;ae?(ae=Number(ae),ae>ve&&(ae=ve)):ae=ve;const Ee=F.length;ae>Ee/2&&(ae=Ee/2);let Ce;for(Ce=0;Ce<ae;++Ce){const tt=parseInt(F.substr(Ce*2,2),16);if(jt(tt))return Ce;X[j+Ce]=tt}return Ce}function we(X,F,j,ae){return Gt(Ht(F,X.length-j),X,j,ae)}function fe(X,F,j,ae){return Gt(Ft(F),X,j,ae)}function me(X,F,j,ae){return Gt(Zt(F),X,j,ae)}function Re(X,F,j,ae){return Gt(rn(F,X.length-j),X,j,ae)}c.prototype.write=function(F,j,ae,ve){if(j===void 0)ve="utf8",ae=this.length,j=0;else if(ae===void 0&&typeof j=="string")ve=j,ae=this.length,j=0;else if(isFinite(j))j=j>>>0,isFinite(ae)?(ae=ae>>>0,ve===void 0&&(ve="utf8")):(ve=ae,ae=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Ee=this.length-j;if((ae===void 0||ae>Ee)&&(ae=Ee),F.length>0&&(ae<0||j<0)||j>this.length)throw new RangeError("Attempt to write outside buffer bounds");ve||(ve="utf8");let Ce=!1;for(;;)switch(ve){case"hex":return he(this,F,j,ae);case"utf8":case"utf-8":return we(this,F,j,ae);case"ascii":case"latin1":case"binary":return fe(this,F,j,ae);case"base64":return me(this,F,j,ae);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Re(this,F,j,ae);default:if(Ce)throw new TypeError("Unknown encoding: "+ve);ve=(""+ve).toLowerCase(),Ce=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ue(X,F,j){return F===0&&j===X.length?N.fromByteArray(X):N.fromByteArray(X.slice(F,j))}function Pe(X,F,j){j=Math.min(X.length,j);const ae=[];let ve=F;for(;ve<j;){const Ee=X[ve];let Ce=null,tt=Ee>239?4:Ee>223?3:Ee>191?2:1;if(ve+tt<=j){let mt,ot,wt,yt;switch(tt){case 1:Ee<128&&(Ce=Ee);break;case 2:mt=X[ve+1],(mt&192)===128&&(yt=(Ee&31)<<6|mt&63,yt>127&&(Ce=yt));break;case 3:mt=X[ve+1],ot=X[ve+2],(mt&192)===128&&(ot&192)===128&&(yt=(Ee&15)<<12|(mt&63)<<6|ot&63,yt>2047&&(yt<55296||yt>57343)&&(Ce=yt));break;case 4:mt=X[ve+1],ot=X[ve+2],wt=X[ve+3],(mt&192)===128&&(ot&192)===128&&(wt&192)===128&&(yt=(Ee&15)<<18|(mt&63)<<12|(ot&63)<<6|wt&63,yt>65535&&yt<1114112&&(Ce=yt))}}Ce===null?(Ce=65533,tt=1):Ce>65535&&(Ce-=65536,ae.push(Ce>>>10&1023|55296),Ce=56320|Ce&1023),ae.push(Ce),ve+=tt}return vt(ae)}const De=4096;function vt(X){const F=X.length;if(F<=De)return String.fromCharCode.apply(String,X);let j="",ae=0;for(;ae<F;)j+=String.fromCharCode.apply(String,X.slice(ae,ae+=De));return j}function _t(X,F,j){let ae="";j=Math.min(X.length,j);for(let ve=F;ve<j;++ve)ae+=String.fromCharCode(X[ve]&127);return ae}function St(X,F,j){let ae="";j=Math.min(X.length,j);for(let ve=F;ve<j;++ve)ae+=String.fromCharCode(X[ve]);return ae}function Mt(X,F,j){const ae=X.length;(!F||F<0)&&(F=0),(!j||j<0||j>ae)&&(j=ae);let ve="";for(let Ee=F;Ee<j;++Ee)ve+=dn[X[Ee]];return ve}function At(X,F,j){const ae=X.slice(F,j);let ve="";for(let Ee=0;Ee<ae.length-1;Ee+=2)ve+=String.fromCharCode(ae[Ee]+ae[Ee+1]*256);return ve}c.prototype.slice=function(F,j){const ae=this.length;F=~~F,j=j===void 0?ae:~~j,F<0?(F+=ae,F<0&&(F=0)):F>ae&&(F=ae),j<0?(j+=ae,j<0&&(j=0)):j>ae&&(j=ae),j<F&&(j=F);const ve=this.subarray(F,j);return Object.setPrototypeOf(ve,c.prototype),ve};function ct(X,F,j){if(X%1!==0||X<0)throw new RangeError("offset is not uint");if(X+F>j)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUintLE=c.prototype.readUIntLE=function(F,j,ae){F=F>>>0,j=j>>>0,ae||ct(F,j,this.length);let ve=this[F],Ee=1,Ce=0;for(;++Ce<j&&(Ee*=256);)ve+=this[F+Ce]*Ee;return ve},c.prototype.readUintBE=c.prototype.readUIntBE=function(F,j,ae){F=F>>>0,j=j>>>0,ae||ct(F,j,this.length);let ve=this[F+--j],Ee=1;for(;j>0&&(Ee*=256);)ve+=this[F+--j]*Ee;return ve},c.prototype.readUint8=c.prototype.readUInt8=function(F,j){return F=F>>>0,j||ct(F,1,this.length),this[F]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(F,j){return F=F>>>0,j||ct(F,2,this.length),this[F]|this[F+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(F,j){return F=F>>>0,j||ct(F,2,this.length),this[F]<<8|this[F+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(F,j){return F=F>>>0,j||ct(F,4,this.length),(this[F]|this[F+1]<<8|this[F+2]<<16)+this[F+3]*16777216},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(F,j){return F=F>>>0,j||ct(F,4,this.length),this[F]*16777216+(this[F+1]<<16|this[F+2]<<8|this[F+3])},c.prototype.readBigUInt64LE=Kt(function(F){F=F>>>0,ut(F,"offset");const j=this[F],ae=this[F+7];(j===void 0||ae===void 0)&&Tt(F,this.length-8);const ve=j+this[++F]*2**8+this[++F]*2**16+this[++F]*2**24,Ee=this[++F]+this[++F]*2**8+this[++F]*2**16+ae*2**24;return BigInt(ve)+(BigInt(Ee)<<BigInt(32))}),c.prototype.readBigUInt64BE=Kt(function(F){F=F>>>0,ut(F,"offset");const j=this[F],ae=this[F+7];(j===void 0||ae===void 0)&&Tt(F,this.length-8);const ve=j*2**24+this[++F]*2**16+this[++F]*2**8+this[++F],Ee=this[++F]*2**24+this[++F]*2**16+this[++F]*2**8+ae;return(BigInt(ve)<<BigInt(32))+BigInt(Ee)}),c.prototype.readIntLE=function(F,j,ae){F=F>>>0,j=j>>>0,ae||ct(F,j,this.length);let ve=this[F],Ee=1,Ce=0;for(;++Ce<j&&(Ee*=256);)ve+=this[F+Ce]*Ee;return Ee*=128,ve>=Ee&&(ve-=Math.pow(2,8*j)),ve},c.prototype.readIntBE=function(F,j,ae){F=F>>>0,j=j>>>0,ae||ct(F,j,this.length);let ve=j,Ee=1,Ce=this[F+--ve];for(;ve>0&&(Ee*=256);)Ce+=this[F+--ve]*Ee;return Ee*=128,Ce>=Ee&&(Ce-=Math.pow(2,8*j)),Ce},c.prototype.readInt8=function(F,j){return F=F>>>0,j||ct(F,1,this.length),this[F]&128?(255-this[F]+1)*-1:this[F]},c.prototype.readInt16LE=function(F,j){F=F>>>0,j||ct(F,2,this.length);const ae=this[F]|this[F+1]<<8;return ae&32768?ae|4294901760:ae},c.prototype.readInt16BE=function(F,j){F=F>>>0,j||ct(F,2,this.length);const ae=this[F+1]|this[F]<<8;return ae&32768?ae|4294901760:ae},c.prototype.readInt32LE=function(F,j){return F=F>>>0,j||ct(F,4,this.length),this[F]|this[F+1]<<8|this[F+2]<<16|this[F+3]<<24},c.prototype.readInt32BE=function(F,j){return F=F>>>0,j||ct(F,4,this.length),this[F]<<24|this[F+1]<<16|this[F+2]<<8|this[F+3]},c.prototype.readBigInt64LE=Kt(function(F){F=F>>>0,ut(F,"offset");const j=this[F],ae=this[F+7];(j===void 0||ae===void 0)&&Tt(F,this.length-8);const ve=this[F+4]+this[F+5]*2**8+this[F+6]*2**16+(ae<<24);return(BigInt(ve)<<BigInt(32))+BigInt(j+this[++F]*2**8+this[++F]*2**16+this[++F]*2**24)}),c.prototype.readBigInt64BE=Kt(function(F){F=F>>>0,ut(F,"offset");const j=this[F],ae=this[F+7];(j===void 0||ae===void 0)&&Tt(F,this.length-8);const ve=(j<<24)+this[++F]*2**16+this[++F]*2**8+this[++F];return(BigInt(ve)<<BigInt(32))+BigInt(this[++F]*2**24+this[++F]*2**16+this[++F]*2**8+ae)}),c.prototype.readFloatLE=function(F,j){return F=F>>>0,j||ct(F,4,this.length),I.read(this,F,!0,23,4)},c.prototype.readFloatBE=function(F,j){return F=F>>>0,j||ct(F,4,this.length),I.read(this,F,!1,23,4)},c.prototype.readDoubleLE=function(F,j){return F=F>>>0,j||ct(F,8,this.length),I.read(this,F,!0,52,8)},c.prototype.readDoubleBE=function(F,j){return F=F>>>0,j||ct(F,8,this.length),I.read(this,F,!1,52,8)};function Qe(X,F,j,ae,ve,Ee){if(!c.isBuffer(X))throw new TypeError('"buffer" argument must be a Buffer instance');if(F>ve||F<Ee)throw new RangeError('"value" argument is out of bounds');if(j+ae>X.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(F,j,ae,ve){if(F=+F,j=j>>>0,ae=ae>>>0,!ve){const tt=Math.pow(2,8*ae)-1;Qe(this,F,j,ae,tt,0)}let Ee=1,Ce=0;for(this[j]=F&255;++Ce<ae&&(Ee*=256);)this[j+Ce]=F/Ee&255;return j+ae},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(F,j,ae,ve){if(F=+F,j=j>>>0,ae=ae>>>0,!ve){const tt=Math.pow(2,8*ae)-1;Qe(this,F,j,ae,tt,0)}let Ee=ae-1,Ce=1;for(this[j+Ee]=F&255;--Ee>=0&&(Ce*=256);)this[j+Ee]=F/Ce&255;return j+ae},c.prototype.writeUint8=c.prototype.writeUInt8=function(F,j,ae){return F=+F,j=j>>>0,ae||Qe(this,F,j,1,255,0),this[j]=F&255,j+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(F,j,ae){return F=+F,j=j>>>0,ae||Qe(this,F,j,2,65535,0),this[j]=F&255,this[j+1]=F>>>8,j+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(F,j,ae){return F=+F,j=j>>>0,ae||Qe(this,F,j,2,65535,0),this[j]=F>>>8,this[j+1]=F&255,j+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(F,j,ae){return F=+F,j=j>>>0,ae||Qe(this,F,j,4,4294967295,0),this[j+3]=F>>>24,this[j+2]=F>>>16,this[j+1]=F>>>8,this[j]=F&255,j+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(F,j,ae){return F=+F,j=j>>>0,ae||Qe(this,F,j,4,4294967295,0),this[j]=F>>>24,this[j+1]=F>>>16,this[j+2]=F>>>8,this[j+3]=F&255,j+4};function Lt(X,F,j,ae,ve){et(F,ae,ve,X,j,7);let Ee=Number(F&BigInt(4294967295));X[j++]=Ee,Ee=Ee>>8,X[j++]=Ee,Ee=Ee>>8,X[j++]=Ee,Ee=Ee>>8,X[j++]=Ee;let Ce=Number(F>>BigInt(32)&BigInt(4294967295));return X[j++]=Ce,Ce=Ce>>8,X[j++]=Ce,Ce=Ce>>8,X[j++]=Ce,Ce=Ce>>8,X[j++]=Ce,j}function gt(X,F,j,ae,ve){et(F,ae,ve,X,j,7);let Ee=Number(F&BigInt(4294967295));X[j+7]=Ee,Ee=Ee>>8,X[j+6]=Ee,Ee=Ee>>8,X[j+5]=Ee,Ee=Ee>>8,X[j+4]=Ee;let Ce=Number(F>>BigInt(32)&BigInt(4294967295));return X[j+3]=Ce,Ce=Ce>>8,X[j+2]=Ce,Ce=Ce>>8,X[j+1]=Ce,Ce=Ce>>8,X[j]=Ce,j+8}c.prototype.writeBigUInt64LE=Kt(function(F,j=0){return Lt(this,F,j,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=Kt(function(F,j=0){return gt(this,F,j,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(F,j,ae,ve){if(F=+F,j=j>>>0,!ve){const mt=Math.pow(2,8*ae-1);Qe(this,F,j,ae,mt-1,-mt)}let Ee=0,Ce=1,tt=0;for(this[j]=F&255;++Ee<ae&&(Ce*=256);)F<0&&tt===0&&this[j+Ee-1]!==0&&(tt=1),this[j+Ee]=(F/Ce>>0)-tt&255;return j+ae},c.prototype.writeIntBE=function(F,j,ae,ve){if(F=+F,j=j>>>0,!ve){const mt=Math.pow(2,8*ae-1);Qe(this,F,j,ae,mt-1,-mt)}let Ee=ae-1,Ce=1,tt=0;for(this[j+Ee]=F&255;--Ee>=0&&(Ce*=256);)F<0&&tt===0&&this[j+Ee+1]!==0&&(tt=1),this[j+Ee]=(F/Ce>>0)-tt&255;return j+ae},c.prototype.writeInt8=function(F,j,ae){return F=+F,j=j>>>0,ae||Qe(this,F,j,1,127,-128),F<0&&(F=255+F+1),this[j]=F&255,j+1},c.prototype.writeInt16LE=function(F,j,ae){return F=+F,j=j>>>0,ae||Qe(this,F,j,2,32767,-32768),this[j]=F&255,this[j+1]=F>>>8,j+2},c.prototype.writeInt16BE=function(F,j,ae){return F=+F,j=j>>>0,ae||Qe(this,F,j,2,32767,-32768),this[j]=F>>>8,this[j+1]=F&255,j+2},c.prototype.writeInt32LE=function(F,j,ae){return F=+F,j=j>>>0,ae||Qe(this,F,j,4,2147483647,-2147483648),this[j]=F&255,this[j+1]=F>>>8,this[j+2]=F>>>16,this[j+3]=F>>>24,j+4},c.prototype.writeInt32BE=function(F,j,ae){return F=+F,j=j>>>0,ae||Qe(this,F,j,4,2147483647,-2147483648),F<0&&(F=4294967295+F+1),this[j]=F>>>24,this[j+1]=F>>>16,this[j+2]=F>>>8,this[j+3]=F&255,j+4},c.prototype.writeBigInt64LE=Kt(function(F,j=0){return Lt(this,F,j,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=Kt(function(F,j=0){return gt(this,F,j,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ae(X,F,j,ae,ve,Ee){if(j+ae>X.length)throw new RangeError("Index out of range");if(j<0)throw new RangeError("Index out of range")}function Ye(X,F,j,ae,ve){return F=+F,j=j>>>0,ve||Ae(X,F,j,4),I.write(X,F,j,ae,23,4),j+4}c.prototype.writeFloatLE=function(F,j,ae){return Ye(this,F,j,!0,ae)},c.prototype.writeFloatBE=function(F,j,ae){return Ye(this,F,j,!1,ae)};function qt(X,F,j,ae,ve){return F=+F,j=j>>>0,ve||Ae(X,F,j,8),I.write(X,F,j,ae,52,8),j+8}c.prototype.writeDoubleLE=function(F,j,ae){return qt(this,F,j,!0,ae)},c.prototype.writeDoubleBE=function(F,j,ae){return qt(this,F,j,!1,ae)},c.prototype.copy=function(F,j,ae,ve){if(!c.isBuffer(F))throw new TypeError("argument should be a Buffer");if(ae||(ae=0),!ve&&ve!==0&&(ve=this.length),j>=F.length&&(j=F.length),j||(j=0),ve>0&&ve<ae&&(ve=ae),ve===ae||F.length===0||this.length===0)return 0;if(j<0)throw new RangeError("targetStart out of bounds");if(ae<0||ae>=this.length)throw new RangeError("Index out of range");if(ve<0)throw new RangeError("sourceEnd out of bounds");ve>this.length&&(ve=this.length),F.length-j<ve-ae&&(ve=F.length-j+ae);const Ee=ve-ae;return this===F&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(j,ae,ve):Uint8Array.prototype.set.call(F,this.subarray(ae,ve),j),Ee},c.prototype.fill=function(F,j,ae,ve){if(typeof F=="string"){if(typeof j=="string"?(ve=j,j=0,ae=this.length):typeof ae=="string"&&(ve=ae,ae=this.length),ve!==void 0&&typeof ve!="string")throw new TypeError("encoding must be a string");if(typeof ve=="string"&&!c.isEncoding(ve))throw new TypeError("Unknown encoding: "+ve);if(F.length===1){const Ce=F.charCodeAt(0);(ve==="utf8"&&Ce<128||ve==="latin1")&&(F=Ce)}}else typeof F=="number"?F=F&255:typeof F=="boolean"&&(F=Number(F));if(j<0||this.length<j||this.length<ae)throw new RangeError("Out of range index");if(ae<=j)return this;j=j>>>0,ae=ae===void 0?this.length:ae>>>0,F||(F=0);let Ee;if(typeof F=="number")for(Ee=j;Ee<ae;++Ee)this[Ee]=F;else{const Ce=c.isBuffer(F)?F:c.from(F,ve),tt=Ce.length;if(tt===0)throw new TypeError('The value "'+F+'" is invalid for argument "value"');for(Ee=0;Ee<ae-j;++Ee)this[Ee+j]=Ce[Ee%tt]}return this};const Ot={};function Ke(X,F,j){Ot[X]=class extends j{constructor(){super(),Object.defineProperty(this,"message",{value:F.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${X}]`,this.stack,delete this.name}get code(){return X}set code(ve){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:ve,writable:!0})}toString(){return`${this.name} [${X}]: ${this.message}`}}}Ke("ERR_BUFFER_OUT_OF_BOUNDS",function(X){return X?`${X} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Ke("ERR_INVALID_ARG_TYPE",function(X,F){return`The "${X}" argument must be of type number. Received type ${typeof F}`},TypeError),Ke("ERR_OUT_OF_RANGE",function(X,F,j){let ae=`The value of "${X}" is out of range.`,ve=j;return Number.isInteger(j)&&Math.abs(j)>2**32?ve=Ve(String(j)):typeof j=="bigint"&&(ve=String(j),(j>BigInt(2)**BigInt(32)||j<-(BigInt(2)**BigInt(32)))&&(ve=Ve(ve)),ve+="n"),ae+=` It must be ${F}. Received ${ve}`,ae},RangeError);function Ve(X){let F="",j=X.length;const ae=X[0]==="-"?1:0;for(;j>=ae+4;j-=3)F=`_${X.slice(j-3,j)}${F}`;return`${X.slice(0,j)}${F}`}function Xe(X,F,j){ut(F,"offset"),(X[F]===void 0||X[F+j]===void 0)&&Tt(F,X.length-(j+1))}function et(X,F,j,ae,ve,Ee){if(X>j||X<F){const Ce=typeof F=="bigint"?"n":"";let tt;throw F===0||F===BigInt(0)?tt=`>= 0${Ce} and < 2${Ce} ** ${(Ee+1)*8}${Ce}`:tt=`>= -(2${Ce} ** ${(Ee+1)*8-1}${Ce}) and < 2 ** ${(Ee+1)*8-1}${Ce}`,new Ot.ERR_OUT_OF_RANGE("value",tt,X)}Xe(ae,ve,Ee)}function ut(X,F){if(typeof X!="number")throw new Ot.ERR_INVALID_ARG_TYPE(F,"number",X)}function Tt(X,F,j){throw Math.floor(X)!==X?(ut(X,j),new Ot.ERR_OUT_OF_RANGE("offset","an integer",X)):F<0?new Ot.ERR_BUFFER_OUT_OF_BOUNDS:new Ot.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${F}`,X)}const Ct=/[^+/0-9A-Za-z-_]/g;function Dt(X){if(X=X.split("=")[0],X=X.trim().replace(Ct,""),X.length<2)return"";for(;X.length%4!==0;)X=X+"=";return X}function Ht(X,F){F=F||1/0;let j;const ae=X.length;let ve=null;const Ee=[];for(let Ce=0;Ce<ae;++Ce){if(j=X.charCodeAt(Ce),j>55295&&j<57344){if(!ve){if(j>56319){(F-=3)>-1&&Ee.push(239,191,189);continue}else if(Ce+1===ae){(F-=3)>-1&&Ee.push(239,191,189);continue}ve=j;continue}if(j<56320){(F-=3)>-1&&Ee.push(239,191,189),ve=j;continue}j=(ve-55296<<10|j-56320)+65536}else ve&&(F-=3)>-1&&Ee.push(239,191,189);if(ve=null,j<128){if((F-=1)<0)break;Ee.push(j)}else if(j<2048){if((F-=2)<0)break;Ee.push(j>>6|192,j&63|128)}else if(j<65536){if((F-=3)<0)break;Ee.push(j>>12|224,j>>6&63|128,j&63|128)}else if(j<1114112){if((F-=4)<0)break;Ee.push(j>>18|240,j>>12&63|128,j>>6&63|128,j&63|128)}else throw new Error("Invalid code point")}return Ee}function Ft(X){const F=[];for(let j=0;j<X.length;++j)F.push(X.charCodeAt(j)&255);return F}function rn(X,F){let j,ae,ve;const Ee=[];for(let Ce=0;Ce<X.length&&!((F-=2)<0);++Ce)j=X.charCodeAt(Ce),ae=j>>8,ve=j%256,Ee.push(ve),Ee.push(ae);return Ee}function Zt(X){return N.toByteArray(Dt(X))}function Gt(X,F,j,ae){let ve;for(ve=0;ve<ae&&!(ve+j>=F.length||ve>=X.length);++ve)F[ve+j]=X[ve];return ve}function Ut(X,F){return X instanceof F||X!=null&&X.constructor!=null&&X.constructor.name!=null&&X.constructor.name===F.name}function jt(X){return X!==X}const dn=function(){const X="0123456789abcdef",F=new Array(256);for(let j=0;j<16;++j){const ae=j*16;for(let ve=0;ve<16;++ve)F[ae+ve]=X[j]+X[ve]}return F}();function Kt(X){return typeof BigInt>"u"?zt:X}function zt(){throw new Error("BigInt not supported")}}(buffer)),buffer}var toolsEbml={},hasRequiredToolsEbml;function requireToolsEbml(){if(hasRequiredToolsEbml)return toolsEbml;hasRequiredToolsEbml=1;var O=toolsEbml&&toolsEbml.__assign||function(){return O=Object.assign||function(f){for(var k,i=1,c=arguments.length;i<c;i++){k=arguments[i];for(var $ in k)Object.prototype.hasOwnProperty.call(k,$)&&(f[$]=k[$])}return f},O.apply(this,arguments)},N=toolsEbml&&toolsEbml.__spreadArray||function(f,k,i){if(i||arguments.length===2)for(var c=0,$=k.length,C;c<$;c++)(C||!(c in k))&&(C||(C=Array.prototype.slice.call(k,0,c)),C[c]=k[c]);return f.concat(C||Array.prototype.slice.call(k))};Object.defineProperty(toolsEbml,"__esModule",{value:!0});var I=requireTools(),D=function(){function f(){}return f.readVint=function(k,i){i===void 0&&(i=0);var c=8-Math.floor(Math.log2(k[i]));if(c>8){var $=f.readHexString(k,i,i+c);throw new Error("Unrepresentable length: ".concat(c," ").concat($))}if(i+c>k.length)return null;for(var C=k[i]&(1<<8-c)-1,M=1;M<c;M+=1){if(M===7&&C>=Math.pow(2,8)&&k[i+7]>0)return{length:c,value:-1};C*=Math.pow(2,8),C+=k[i+M]}return{length:c,value:C}},f.writeVint=function(k){if(k<0||k>Math.pow(2,53))throw new Error("Unrepresentable value: ".concat(k));var i=1;for(i=1;i<=8&&!(k<Math.pow(2,7*i)-1);i+=1);for(var c=I.Buffer.alloc(i),$=k,C=1;C<=i;C+=1){var M=$&255;c[i-C]=M,$-=M,$/=Math.pow(2,8)}return c[0]|=1<<8-i,c},f.concatenate=function(k,i){return!k&&!i?I.Buffer.from([]):!k||k.byteLength===0?i:!i||i.byteLength===0?k:I.Buffer.from(N(N([],k,!0),i,!0))},f.readHexString=function(k,i,c){return i===void 0&&(i=0),c===void 0&&(c=k.byteLength),Array.from(k.slice(i,c)).map(function($){return Number($).toString(16)}).reduce(function($,C){return"".concat($).concat(C.padStart(2,"0"))},"")},f.readUtf8=function(k){try{return I.Buffer.from(k).toString("utf8")}catch{return null}},f.readUnsigned=function(k){var i=new DataView(k.buffer,k.byteOffset,k.byteLength);switch(k.byteLength){case 1:return i.getUint8(0);case 2:return i.getUint16(0);case 4:return i.getUint32(0)}return k.byteLength<=6?k.reduce(function(c,$){return c*256+$},0):f.readHexString(k,0,k.byteLength)},f.readSigned=function(k){var i=new DataView(k.buffer,k.byteOffset,k.byteLength);switch(k.byteLength){case 1:return i.getInt8(0);case 2:return i.getInt16(0);case 4:return i.getInt32(0);default:return NaN}},f.readFloat=function(k){var i=new DataView(k.buffer,k.byteOffset,k.byteLength);switch(k.byteLength){case 4:return i.getFloat32(0);case 8:return i.getFloat64(0);default:return NaN}},f.readDate=function(k){var i=new DataView(k.buffer,k.byteOffset,k.byteLength);switch(k.byteLength){case 1:return new Date(i.getUint8(0));case 2:return new Date(i.getUint16(0));case 4:return new Date(i.getUint32(0));case 8:return new Date(Number.parseInt(f.readHexString(k),16));default:return new Date(0)}},f.readDataFromTag=function(k,i){var c=k.type,$=k.name,C=k.track,M=k.discardable||!1,Z=k.keyframe||!1,J=null,z;switch(c){case"u":z=f.readUnsigned(i);break;case"f":z=f.readFloat(i);break;case"i":z=f.readSigned(i);break;case"s":z=String.fromCharCode.apply(String,i);break;case"8":z=f.readUtf8(i);break;case"d":z=f.readDate(i);break}if($==="SimpleBlock"||$==="Block"){var Q=0,ee=f.readVint(i,Q),Y=ee.length,te=ee.value;Q+=Y,C=te,z=f.readSigned(i.subarray(Q,Q+2)),Q+=2,$==="SimpleBlock"&&(Z=!!(i[Y+2]&128),M=!!(i[Y+2]&1)),Q+=1,J=i.subarray(Q)}return O(O({},k),{data:i,discardable:M,keyframe:Z,payload:J,track:C,value:z})},f}();return toolsEbml.default=D,toolsEbml}var vint,hasRequiredVint;function requireVint(){return hasRequiredVint||(hasRequiredVint=1,vint=function(O,N,I){N=N||0;for(var D=1;D<=8&&!(O[N]>=Math.pow(2,8-D));D++);if(D>8)throw new Error("Unrepresentable length: "+D+" "+O.toString("hex",N,N+D));if(N+D>O.length)return null;var f,k=O[N]&(1<<8-D)-1;for(f=1;f<D;f++){if(f===7&&k>=Math.pow(2,45)&&O[N+7]>0)return{length:D,value:-1};k*=Math.pow(2,8),k+=O[N+f]}return I&&(k-=Math.pow(2,D*7-1)-1),{length:D,value:k}}),vint}var bufferReader,hasRequiredBufferReader;function requireBufferReader(){if(hasRequiredBufferReader)return bufferReader;hasRequiredBufferReader=1;var O=requireVint();function N(I){this.buffer=I,this.offset=0}return N.prototype.nextInt16BE=function(){var I=this.buffer.readInt16BE(this.offset);return this.offset+=2,I},N.prototype.nextUInt8=function(){var I=this.buffer.readUInt8(this.offset);return this.offset+=1,I},N.prototype.nextUIntV=function(){var I=O(this.buffer,this.offset);return this.offset+=I.length,I.value},N.prototype.nextIntV=function(){var I=O(this.buffer,this.offset,!0);return this.offset+=I.length,I.value},N.prototype.nextBuffer=function(I){var D=I?this.buffer.slice(this.offset,this.offset+I):this.buffer.slice(this.offset);return this.offset+=I||this.length,D},Object.defineProperty(N.prototype,"length",{get:function(){return this.buffer.length-this.offset}}),bufferReader=N,bufferReader}var ebmlBlock,hasRequiredEbmlBlock;function requireEbmlBlock(){if(hasRequiredEbmlBlock)return ebmlBlock;hasRequiredEbmlBlock=1;var O=requireBufferReader(),N=1,I=3,D=2;ebmlBlock=function(k){var i={},c=new O(k);i.trackNumber=c.nextUIntV(),i.timecode=c.nextInt16BE();var $=c.nextUInt8();i.invisible=!!($&8),i.keyframe=!!($&128),i.discardable=!!($&1);var C=($&6)>>1;return i.frames=f(c,C),i};function f(k,i){if(!i)return[k.nextBuffer()];var c,$,C=[],M=k.nextUInt8()+1;if(i===D){if(k.length%M!==0)throw new Error("Fixed-Size Lacing Error");for($=k.length/M,c=0;c<M;c++)C.push(k.nextBuffer($));return C}var Z=[];if(i===N)for(c=0;c<M-1;c++){var J;$=0;do J=k.nextUInt8(),$+=J;while(J===255);Z.push($)}else if(i===I)for($=k.nextUIntV(),Z.push($),c=1;c<M-1;c++)$+=k.nextIntV(),Z.push($);for(c=0;c<M-1;c++)C.push(k.nextBuffer(Z[c]));return C.push(k.nextBuffer()),C}return ebmlBlock}var hasRequiredTools;function requireTools(){return hasRequiredTools||(hasRequiredTools=1,function(O){Object.defineProperty(O,"__esModule",{value:!0}),O.convertEBMLDateToJSDate=O.createFloatBuffer=O.createIntBuffer=O.createUIntBuffer=O.encodeValueToBuffer=O.concat=O.putRefinedMetaData=O.extractElement=O.removeElement=O.makeMetadataSeekable=O.createRIFFChunk=O.VP8BitStreamToRiffWebPBuffer=O.WebPBlockFilter=O.encodeTag=O.readBlock=O.ebmlBlock=O.writeVint=O.readVint=O.Buffer=void 0;var N=requireInt64Buffer(),I=requireEBMLEncoder(),D=requireBuffer(),f=requireToolsEbml(),k=requireEbmlBlock();O.Buffer=D.Buffer,O.readVint=f.default.readVint,O.writeVint=f.default.writeVint,O.ebmlBlock=k;function i(fe){return(0,O.ebmlBlock)(new O.Buffer(fe))}O.readBlock=i;function c(fe,me,Re){return Re===void 0&&(Re=!1),re([fe,Re?new O.Buffer("01ffffffffffffff","hex"):(0,O.writeVint)(me.length),me])}O.encodeTag=c;function $(fe){return fe.reduce(function(me,Re){if(Re.type!=="b"||Re.name!=="SimpleBlock")return me;var Ue=(0,O.ebmlBlock)(Re.data),Pe=Ue.frames.some(function(De){var vt=De.slice(3,6).toString("hex");return vt==="9d012a"});return Pe?me.concat(Re):me},[])}O.WebPBlockFilter=$;function C(fe){var me=M("VP8 ",fe),Re=re([new O.Buffer("WEBP","ascii"),me]);return M("RIFF",Re)}O.VP8BitStreamToRiffWebPBuffer=C;function M(fe,me){var Re=new O.Buffer(4);return Re.writeUInt32LE(me.byteLength,0),re([new O.Buffer(fe.substr(0,4),"ascii"),Re,me,new O.Buffer(me.byteLength%2===0?0:1)])}O.createRIFFChunk=M;function Z(fe,me,Re){var Ue=z("EBML",fe),Pe=ee(Ue),De=Pe+12,vt=fe[fe.length-1].dataEnd-De,_t=z("Info",fe);J("Duration",_t),_t.splice(1,0,{name:"Duration",type:"f",data:he(me,8)});for(var St=ee(_t),Mt=z("Tracks",fe),At=ee(Mt),ct=47,Qe=[],Lt=5+Re.length*15,gt=[],Ae=-1,Ye=10,qt=function(et){var ut=ct,Tt=ut+St,Ct=Tt+At,Dt=Ct+Lt,Ht=Dt-vt;if(Qe=[],Qe.push({name:"SeekHead",type:"m",isEnd:!1}),Qe.push({name:"Seek",type:"m",isEnd:!1}),Qe.push({name:"SeekID",type:"b",data:new O.Buffer([21,73,169,102])}),Qe.push({name:"SeekPosition",type:"u",data:se(ut)}),Qe.push({name:"Seek",type:"m",isEnd:!0}),Qe.push({name:"Seek",type:"m",isEnd:!1}),Qe.push({name:"SeekID",type:"b",data:new O.Buffer([22,84,174,107])}),Qe.push({name:"SeekPosition",type:"u",data:se(Tt)}),Qe.push({name:"Seek",type:"m",isEnd:!0}),Qe.push({name:"Seek",type:"m",isEnd:!1}),Qe.push({name:"SeekID",type:"b",data:new O.Buffer([28,83,187,107])}),Qe.push({name:"SeekPosition",type:"u",data:se(Ct)}),Qe.push({name:"Seek",type:"m",isEnd:!0}),Qe.push({name:"SeekHead",type:"m",isEnd:!0}),ct=ee(Qe),gt=[],gt.push({name:"Cues",type:"m",isEnd:!1}),Re.forEach(function(Ft){var rn=Ft.CueTrack,Zt=Ft.CueClusterPosition,Gt=Ft.CueTime;gt.push({name:"CuePoint",type:"m",isEnd:!1}),gt.push({name:"CueTime",type:"u",data:se(Gt)}),gt.push({name:"CueTrackPositions",type:"m",isEnd:!1}),gt.push({name:"CueTrack",type:"u",data:se(rn)}),Zt-=De,Zt+=Ht,gt.push({name:"CueClusterPosition",type:"u",data:se(Zt)}),gt.push({name:"CueTrackPositions",type:"m",isEnd:!0}),gt.push({name:"CuePoint",type:"m",isEnd:!0})}),gt.push({name:"Cues",type:"m",isEnd:!0}),Lt=ee(gt),Ae!==Ht){if(Ae=Ht,et===Ye-1)throw new Error("Failed to converge to a stable metadata size")}else return"break"},Ot=0;Ot<Ye;Ot++){var Ke=qt(Ot);if(Ke==="break")break}var Ve=[].concat.apply([],[Ue,{name:"Segment",type:"m",isEnd:!1,unknownSize:!0},Qe,_t,Mt,gt]),Xe=new I.default().encode(Ve);return Xe}O.makeMetadataSeekable=Z;function J(fe,me){for(var Re=-1,Ue=0;Ue<me.length;Ue++){var Pe=me[Ue];if(Pe.name===fe)if(Pe.type==="m")if(!Pe.isEnd)Re=Ue;else{if(Re==-1)throw new Error("Detected ".concat(fe," closing element before finding the start"));me.splice(Re,Ue-Re+1);return}else{me.splice(Ue,1);return}}}O.removeElement=J;function z(fe,me){for(var Re=[],Ue=-1,Pe=0;Pe<me.length;Pe++){var De=me[Pe];if(De.name===fe)if(De.type==="m")if(!De.isEnd)Ue=Pe;else{if(Ue==-1)throw new Error("Detected ".concat(fe," closing element before finding the start"));Re=me.slice(Ue,Pe+1);break}else{Re.push(me[Pe]);break}}return Re}O.extractElement=z;function Q(fe,me){Array.isArray(me.cueInfos)&&!Array.isArray(me.cues)&&(console.warn("putRefinedMetaData: info.cueInfos property is deprecated. please use info.cues"),me.cues=me.cueInfos);for(var Re=[],Ue=[],Pe=0;Pe<fe.length;Pe++){var De=fe[Pe];if(De.type==="m"&&De.name==="Segment"){if(Re=fe.slice(0,Pe),Ue=fe.slice(Pe),De.unknownSize){Ue.shift();break}throw new Error("this metadata is not streaming webm file")}}if(!(Ue[Ue.length-1].dataEnd>0))throw new Error("metadata dataEnd has wrong number");var vt=Ue[Ue.length-1].dataEnd,_t=Re[Re.length-1].dataEnd,St=new I.default().encode(Re).byteLength,Mt=St-_t,At=vt-Ue[0].tagStart;Ue[0].tagStart-_t,Ue[0].tagStart;var ct=new O.Buffer([24,83,128,103]),Qe=new O.Buffer("01ffffffffffffff","hex"),Lt=ct.byteLength+Qe.byteLength,gt=At,Ae;for(Ae=1;Ae<20;Ae++){var Ye=_t+Lt+gt,qt=Ye-vt,Ot=Mt+qt,Ke=Y(Ue,Ot,me),Ve=new I.default().encode(Ke).byteLength;if(Ve===gt)return new I.default().encode([].concat(Re,[{type:"m",name:"Segment",isEnd:!1,unknownSize:!0}],Ke));gt=Ve}throw new Error("unable to refine metadata, stable size could not be found in "+Ae+" iterations!")}O.putRefinedMetaData=Q;function ee(fe){var me=new I.default;return fe.reduce(function(Re,Ue){return Re.concat(me.encode([Ue]))},[]).reduce(function(Re,Ue){return Re+Ue.byteLength},0)}function Y(fe,me,Re){var Ue=Re.duration,Pe=Re.clusterPtrs,De=Re.cues,vt=fe.slice(0);if(typeof Ue=="number"){var _t=!1;vt.forEach(function(Mt){Mt.type==="f"&&Mt.name==="Duration"&&(_t=!0,Mt.data=he(Ue,8))}),_t||ye(vt,"Info",[{name:"Duration",type:"f",data:he(Ue,8)}])}Array.isArray(De)&&ye(vt,"Cues",ie(De,me));var St=[];return Array.isArray(Pe)&&(console.warn("append cluster pointers to seekhead is deprecated. please use cues"),St=te(Pe,me)),ye(vt,"SeekHead",St,!0),vt}function te(fe,me){var Re=[];return fe.forEach(function(Ue){Re.push({name:"Seek",type:"m",isEnd:!1}),Re.push({name:"SeekID",type:"b",data:new O.Buffer([31,67,182,117])}),Re.push({name:"SeekPosition",type:"u",data:se(Ue+me)}),Re.push({name:"Seek",type:"m",isEnd:!0})}),Re}function ie(fe,me){var Re=[];return fe.forEach(function(Ue){var Pe=Ue.CueTrack,De=Ue.CueClusterPosition,vt=Ue.CueTime;Re.push({name:"CuePoint",type:"m",isEnd:!1}),Re.push({name:"CueTime",type:"u",data:se(vt)}),Re.push({name:"CueTrackPositions",type:"m",isEnd:!1}),Re.push({name:"CueTrack",type:"u",data:se(Pe)}),Re.push({name:"CueClusterPosition",type:"u",data:se(De+me)}),Re.push({name:"CueTrackPositions",type:"m",isEnd:!0}),Re.push({name:"CuePoint",type:"m",isEnd:!0})}),Re}function ye(fe,me,Re,Ue){Ue===void 0&&(Ue=!1);for(var Pe=-1,De=0;De<fe.length;De++){var vt=fe[De];if(vt.type==="m"&&vt.name===me&&vt.isEnd===!1){Pe=De;break}}Pe>=0?Array.prototype.splice.apply(fe,[Pe+1,0].concat(Re)):Ue?[].concat([{name:me,type:"m",isEnd:!1}],Re,[{name:me,type:"m",isEnd:!0}]).reverse().forEach(function(_t){fe.unshift(_t)}):(fe.push({name:me,type:"m",isEnd:!1}),Re.forEach(function(_t){fe.push(_t)}),fe.push({name:me,type:"m",isEnd:!0}))}function re(fe){return O.Buffer.concat(fe)}O.concat=re;function de(fe){var me=new O.Buffer(0);if(fe.type==="m")return fe;switch(fe.type){case"u":me=se(fe.value);break;case"i":me=ue(fe.value);break;case"f":me=he(fe.value);break;case"s":me=new O.Buffer(fe.value,"ascii");break;case"8":me=new O.Buffer(fe.value,"utf8");break;case"b":me=fe.value;break;case"d":me=new N.Int64BE(fe.value.getTime().toString()).toBuffer();break}return Object.assign({},fe,{data:me})}O.encodeValueToBuffer=de;function se(fe){for(var me=1;fe>=Math.pow(2,8*me);me++);if(me>=7)return console.warn("7bit or more bigger uint not supported."),new N.Uint64BE(fe).toBuffer();var Re=new O.Buffer(me);return Re.writeUIntBE(fe,0,me),Re}O.createUIntBuffer=se;function ue(fe){for(var me=1;fe>=Math.pow(2,8*me);me++);if(me>=7)return console.warn("7bit or more bigger uint not supported."),new N.Int64BE(fe).toBuffer();var Re=new O.Buffer(me);return Re.writeIntBE(fe,0,me),Re}O.createIntBuffer=ue;function he(fe,me){if(me===void 0&&(me=8),me===8){var Re=new O.Buffer(8);return Re.writeDoubleBE(fe,0),Re}else if(me===4){var Re=new O.Buffer(4);return Re.writeFloatBE(fe,0),Re}else throw new Error("float type bits must 4bytes or 8bytes")}O.createFloatBuffer=he;function we(fe){return fe instanceof Date?fe:new Date(new Date("2001-01-01T00:00:00.000Z").getTime()+Number(fe)/1e3/1e3)}O.convertEBMLDateToJSDate=we}(tools)),tools}var hasRequiredEBMLDecoder;function requireEBMLDecoder(){if(hasRequiredEBMLDecoder)return EBMLDecoder;hasRequiredEBMLDecoder=1,Object.defineProperty(EBMLDecoder,"__esModule",{value:!0});var O=requireInt64Buffer(),N=requireTools(),I=requireTools(),D=requireEbmlID(),f;(function(i){i[i.STATE_TAG=1]="STATE_TAG",i[i.STATE_SIZE=2]="STATE_SIZE",i[i.STATE_CONTENT=3]="STATE_CONTENT"})(f||(f={}));var k=function(){function i(){this._buffer=new N.Buffer(0),this._tag_stack=[],this._state=f.STATE_TAG,this._cursor=0,this._total=0,this._schema=D.byEbmlID,this._result=[]}return i.prototype.decode=function(c){this.readChunk(c);var $=this._result;return this._result=[],$},i.prototype.readChunk=function(c){for(this._buffer=I.concat([this._buffer,new N.Buffer(c)]);this._cursor<this._buffer.length&&!(this._state===f.STATE_TAG&&!this.readTag()||this._state===f.STATE_SIZE&&!this.readSize()||this._state===f.STATE_CONTENT&&!this.readContent()););},i.prototype.getSchemaInfo=function(c){return this._schema[c]||{name:"unknown",level:-1,type:"unknown",description:"unknown"}},i.prototype.readTag=function(){if(this._cursor>=this._buffer.length)return!1;var c=(0,N.readVint)(this._buffer,this._cursor);if(c==null)return!1;var $=this._buffer.slice(this._cursor,this._cursor+c.length),C=$.reduce(function(J,z,Q,ee){return J+z*Math.pow(16,2*(ee.length-1-Q))},0),M=this.getSchemaInfo(C),Z={EBML_ID:C.toString(16),schema:M,type:M.type,name:M.name,level:M.level,tagStart:this._total,tagEnd:this._total+c.length,sizeStart:this._total+c.length,sizeEnd:null,dataStart:null,dataEnd:null,dataSize:null,data:null};return this._tag_stack.push(Z),this._cursor+=c.length,this._total+=c.length,this._state=f.STATE_SIZE,!0},i.prototype.readSize=function(){if(this._cursor>=this._buffer.length)return!1;var c=(0,N.readVint)(this._buffer,this._cursor);if(c==null)return!1;var $=this._tag_stack[this._tag_stack.length-1];return $.sizeEnd=$.sizeStart+c.length,$.dataStart=$.sizeEnd,$.dataSize=c.value,c.value===-1?($.dataEnd=-1,$.type==="m"&&($.unknownSize=!0)):$.dataEnd=$.sizeEnd+c.value,this._cursor+=c.length,this._total+=c.length,this._state=f.STATE_CONTENT,!0},i.prototype.readContent=function(){var c=this._tag_stack[this._tag_stack.length-1];if(c.type==="m"){if(c.isEnd=!1,this._result.push(c),this._state=f.STATE_TAG,c.dataSize===0){var $=Object.assign({},c,{isEnd:!0});this._result.push($),this._tag_stack.pop()}return!0}if(this._buffer.length<this._cursor+c.dataSize)return!1;var C=this._buffer.slice(this._cursor,this._cursor+c.dataSize);switch(this._buffer=this._buffer.slice(this._cursor+c.dataSize),c.data=C,c.type){case"u":c.value=C.readUIntBE(0,C.length);break;case"i":c.value=C.readIntBE(0,C.length);break;case"f":c.value=c.dataSize===4?C.readFloatBE(0):c.dataSize===8?C.readDoubleBE(0):(console.warn("cannot read ".concat(c.dataSize," octets float. failback to 0")),0);break;case"s":c.value=C.toString("ascii");break;case"8":c.value=C.toString("utf8");break;case"b":c.value=C;break;case"d":c.value=(0,N.convertEBMLDateToJSDate)(new O.Int64BE(C).toNumber());break}if(c.value===null)throw new Error("unknown tag type:"+c.type);for(this._result.push(c),this._total+=c.dataSize,this._state=f.STATE_TAG,this._cursor=0,this._tag_stack.pop();this._tag_stack.length>0;){var M=this._tag_stack[this._tag_stack.length-1];if(M.dataEnd<0)return this._tag_stack.pop(),!0;if(this._total<M.dataEnd)break;if(M.type!=="m")throw new Error("parent element is not master element");var $=Object.assign({},M,{isEnd:!0});this._result.push($),this._tag_stack.pop()}return!0},i}();return EBMLDecoder.default=k,EBMLDecoder}var EBMLReader={},events={exports:{}},hasRequiredEvents;function requireEvents(){if(hasRequiredEvents)return events.exports;hasRequiredEvents=1;var O=typeof Reflect=="object"?Reflect:null,N=O&&typeof O.apply=="function"?O.apply:function(de,se,ue){return Function.prototype.apply.call(de,se,ue)},I;O&&typeof O.ownKeys=="function"?I=O.ownKeys:Object.getOwnPropertySymbols?I=function(de){return Object.getOwnPropertyNames(de).concat(Object.getOwnPropertySymbols(de))}:I=function(de){return Object.getOwnPropertyNames(de)};function D(re){console&&console.warn&&console.warn(re)}var f=Number.isNaN||function(de){return de!==de};function k(){k.init.call(this)}events.exports=k,events.exports.once=te,k.EventEmitter=k,k.prototype._events=void 0,k.prototype._eventsCount=0,k.prototype._maxListeners=void 0;var i=10;function c(re){if(typeof re!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof re)}Object.defineProperty(k,"defaultMaxListeners",{enumerable:!0,get:function(){return i},set:function(re){if(typeof re!="number"||re<0||f(re))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+re+".");i=re}}),k.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},k.prototype.setMaxListeners=function(de){if(typeof de!="number"||de<0||f(de))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+de+".");return this._maxListeners=de,this};function $(re){return re._maxListeners===void 0?k.defaultMaxListeners:re._maxListeners}k.prototype.getMaxListeners=function(){return $(this)},k.prototype.emit=function(de){for(var se=[],ue=1;ue<arguments.length;ue++)se.push(arguments[ue]);var he=de==="error",we=this._events;if(we!==void 0)he=he&&we.error===void 0;else if(!he)return!1;if(he){var fe;if(se.length>0&&(fe=se[0]),fe instanceof Error)throw fe;var me=new Error("Unhandled error."+(fe?" ("+fe.message+")":""));throw me.context=fe,me}var Re=we[de];if(Re===void 0)return!1;if(typeof Re=="function")N(Re,this,se);else for(var Ue=Re.length,Pe=Q(Re,Ue),ue=0;ue<Ue;++ue)N(Pe[ue],this,se);return!0};function C(re,de,se,ue){var he,we,fe;if(c(se),we=re._events,we===void 0?(we=re._events=Object.create(null),re._eventsCount=0):(we.newListener!==void 0&&(re.emit("newListener",de,se.listener?se.listener:se),we=re._events),fe=we[de]),fe===void 0)fe=we[de]=se,++re._eventsCount;else if(typeof fe=="function"?fe=we[de]=ue?[se,fe]:[fe,se]:ue?fe.unshift(se):fe.push(se),he=$(re),he>0&&fe.length>he&&!fe.warned){fe.warned=!0;var me=new Error("Possible EventEmitter memory leak detected. "+fe.length+" "+String(de)+" listeners added. Use emitter.setMaxListeners() to increase limit");me.name="MaxListenersExceededWarning",me.emitter=re,me.type=de,me.count=fe.length,D(me)}return re}k.prototype.addListener=function(de,se){return C(this,de,se,!1)},k.prototype.on=k.prototype.addListener,k.prototype.prependListener=function(de,se){return C(this,de,se,!0)};function M(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Z(re,de,se){var ue={fired:!1,wrapFn:void 0,target:re,type:de,listener:se},he=M.bind(ue);return he.listener=se,ue.wrapFn=he,he}k.prototype.once=function(de,se){return c(se),this.on(de,Z(this,de,se)),this},k.prototype.prependOnceListener=function(de,se){return c(se),this.prependListener(de,Z(this,de,se)),this},k.prototype.removeListener=function(de,se){var ue,he,we,fe,me;if(c(se),he=this._events,he===void 0)return this;if(ue=he[de],ue===void 0)return this;if(ue===se||ue.listener===se)--this._eventsCount===0?this._events=Object.create(null):(delete he[de],he.removeListener&&this.emit("removeListener",de,ue.listener||se));else if(typeof ue!="function"){for(we=-1,fe=ue.length-1;fe>=0;fe--)if(ue[fe]===se||ue[fe].listener===se){me=ue[fe].listener,we=fe;break}if(we<0)return this;we===0?ue.shift():ee(ue,we),ue.length===1&&(he[de]=ue[0]),he.removeListener!==void 0&&this.emit("removeListener",de,me||se)}return this},k.prototype.off=k.prototype.removeListener,k.prototype.removeAllListeners=function(de){var se,ue,he;if(ue=this._events,ue===void 0)return this;if(ue.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):ue[de]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete ue[de]),this;if(arguments.length===0){var we=Object.keys(ue),fe;for(he=0;he<we.length;++he)fe=we[he],fe!=="removeListener"&&this.removeAllListeners(fe);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(se=ue[de],typeof se=="function")this.removeListener(de,se);else if(se!==void 0)for(he=se.length-1;he>=0;he--)this.removeListener(de,se[he]);return this};function J(re,de,se){var ue=re._events;if(ue===void 0)return[];var he=ue[de];return he===void 0?[]:typeof he=="function"?se?[he.listener||he]:[he]:se?Y(he):Q(he,he.length)}k.prototype.listeners=function(de){return J(this,de,!0)},k.prototype.rawListeners=function(de){return J(this,de,!1)},k.listenerCount=function(re,de){return typeof re.listenerCount=="function"?re.listenerCount(de):z.call(re,de)},k.prototype.listenerCount=z;function z(re){var de=this._events;if(de!==void 0){var se=de[re];if(typeof se=="function")return 1;if(se!==void 0)return se.length}return 0}k.prototype.eventNames=function(){return this._eventsCount>0?I(this._events):[]};function Q(re,de){for(var se=new Array(de),ue=0;ue<de;++ue)se[ue]=re[ue];return se}function ee(re,de){for(;de+1<re.length;de++)re[de]=re[de+1];re.pop()}function Y(re){for(var de=new Array(re.length),se=0;se<de.length;++se)de[se]=re[se].listener||re[se];return de}function te(re,de){return new Promise(function(se,ue){function he(fe){re.removeListener(de,we),ue(fe)}function we(){typeof re.removeListener=="function"&&re.removeListener("error",he),se([].slice.call(arguments))}ye(re,de,we,{once:!0}),de!=="error"&&ie(re,he,{once:!0})})}function ie(re,de,se){typeof re.on=="function"&&ye(re,"error",de,se)}function ye(re,de,se,ue){if(typeof re.on=="function")ue.once?re.once(de,se):re.on(de,se);else if(typeof re.addEventListener=="function")re.addEventListener(de,function he(we){ue.once&&re.removeEventListener(de,he),se(we)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof re)}return events.exports}var hasRequiredEBMLReader;function requireEBMLReader(){if(hasRequiredEBMLReader)return EBMLReader;hasRequiredEBMLReader=1;var O=EBMLReader&&EBMLReader.__extends||function(){var f=function(k,i){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,$){c.__proto__=$}||function(c,$){for(var C in $)Object.prototype.hasOwnProperty.call($,C)&&(c[C]=$[C])},f(k,i)};return function(k,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");f(k,i);function c(){this.constructor=k}k.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}}();Object.defineProperty(EBMLReader,"__esModule",{value:!0});var N=requireEvents(),I=requireTools(),D=function(f){O(k,f);function k(){var i=f.call(this)||this;return i.logGroup="",i.hasLoggingStarted=!1,i.metadataloaded=!1,i.chunks=[],i.stack=[],i.segmentOffset=0,i.last2SimpleBlockVideoTrackTimecode=[0,0],i.last2SimpleBlockAudioTrackTimecode=[0,0],i.lastClusterTimecode=0,i.lastClusterPosition=0,i.timecodeScale=1e6,i.metadataSize=0,i.metadatas=[],i.cues=[],i.firstVideoBlockRead=!1,i.firstAudioBlockRead=!1,i.currentTrack={TrackNumber:-1,TrackType:-1,DefaultDuration:null,CodecDelay:null},i.trackTypes=[],i.trackDefaultDuration=[],i.trackCodecDelay=[],i.trackInfo={type:"nothing"},i.ended=!1,i.logging=!1,i.use_duration_every_simpleblock=!1,i.use_webp=!1,i.use_segment_info=!0,i.drop_default_duration=!0,i}return k.prototype.stop=function(){for(this.ended=!0,this.emit_segment_info();this.stack.length;)this.stack.pop(),this.logging&&console.groupEnd();this.logging&&this.hasLoggingStarted&&this.logGroup&&console.groupEnd()},k.prototype.emit_segment_info=function(){var i=this.chunks;if(this.chunks=[],this.metadataloaded){if(!this.use_segment_info)return;var C=this.lastClusterTimecode,M=this.duration,Z=this.timecodeScale;this.emit("cluster",{timecode:C,data:i}),this.emit("duration",{timecodeScale:Z,duration:M})}else{this.metadataloaded=!0,this.metadatas=i;var c=this.trackTypes.indexOf(1),$=this.trackTypes.indexOf(2);if(this.trackInfo=c>=0&&$>=0?{type:"both",trackNumber:c}:c>=0?{type:"video",trackNumber:c}:$>=0?{type:"audio",trackNumber:$}:{type:"nothing"},!this.use_segment_info)return;this.emit("metadata",{data:i,metadataSize:this.metadataSize})}},k.prototype.read=function(i){var c=this,$=!1;if(!this.ended){if(i.type==="m")if(i.isEnd)this.stack.pop();else{var C=this.stack[this.stack.length-1];if(C!=null&&C.level>=i.level){this.stack.pop(),this.logging&&console.groupEnd(),C.dataEnd=i.dataEnd,C.dataSize=i.dataEnd-C.dataStart,C.unknownSize=!1;var M=Object.assign({},C,{name:C.name,type:C.type,isEnd:!0});this.chunks.push(M)}this.stack.push(i)}if(i.type==="m"&&i.name=="Segment")this.segmentOffset!=0&&console.warn("Multiple segments detected!"),this.segmentOffset=i.dataStart,this.emit("segment_offset",this.segmentOffset);else if(i.type==="b"&&i.name==="SimpleBlock"){var Z=I.ebmlBlock(i.data),J=Z.timecode,z=Z.trackNumber,Q=Z.frames;if(this.trackTypes[z]===1){if(!this.firstVideoBlockRead&&(this.firstVideoBlockRead=!0,this.trackInfo.type==="both"||this.trackInfo.type==="video")){var ee=this.lastClusterTimecode+J;this.cues.push({CueTrack:z,CueClusterPosition:this.lastClusterPosition,CueTime:ee}),this.emit("cue_info",{CueTrack:z,CueClusterPosition:this.lastClusterPosition,CueTime:this.lastClusterTimecode}),this.emit("cue",{CueTrack:z,CueClusterPosition:this.lastClusterPosition,CueTime:ee})}this.last2SimpleBlockVideoTrackTimecode=[this.last2SimpleBlockVideoTrackTimecode[1],J]}else if(this.trackTypes[z]===2){if(!this.firstAudioBlockRead&&(this.firstAudioBlockRead=!0,this.trackInfo.type==="audio")){var ee=this.lastClusterTimecode+J;this.cues.push({CueTrack:z,CueClusterPosition:this.lastClusterPosition,CueTime:ee}),this.emit("cue_info",{CueTrack:z,CueClusterPosition:this.lastClusterPosition,CueTime:this.lastClusterTimecode}),this.emit("cue",{CueTrack:z,CueClusterPosition:this.lastClusterPosition,CueTime:ee})}this.last2SimpleBlockAudioTrackTimecode=[this.last2SimpleBlockAudioTrackTimecode[1],J]}this.use_duration_every_simpleblock&&this.emit("duration",{timecodeScale:this.timecodeScale,duration:this.duration}),this.use_webp&&Q.forEach(function(Y){var te=Y.slice(3,6).toString("hex");if(te==="9d012a"){var ie=I.VP8BitStreamToRiffWebPBuffer(Y),ye=new Blob([ie],{type:"image/webp"}),re=c.duration;c.emit("webp",{currentTime:re,webp:ye})}})}else i.type==="m"&&i.name==="Cluster"&&i.isEnd===!1?(this.firstVideoBlockRead=!1,this.firstAudioBlockRead=!1,this.emit_segment_info(),this.emit("cluster_ptr",i.tagStart),this.lastClusterPosition=i.tagStart):i.type==="u"&&i.name==="Timecode"?this.lastClusterTimecode=i.value:i.type==="u"&&i.name==="TimecodeScale"?this.timecodeScale=i.value:i.type==="m"&&i.name==="TrackEntry"?i.isEnd?(this.trackTypes[this.currentTrack.TrackNumber]=this.currentTrack.TrackType,this.trackDefaultDuration[this.currentTrack.TrackNumber]=this.currentTrack.DefaultDuration,this.trackCodecDelay[this.currentTrack.TrackNumber]=this.currentTrack.CodecDelay):this.currentTrack={TrackNumber:-1,TrackType:-1,DefaultDuration:null,CodecDelay:null}:i.type==="u"&&i.name==="TrackType"?this.currentTrack.TrackType=i.value:i.type==="u"&&i.name==="TrackNumber"?this.currentTrack.TrackNumber=i.value:i.type==="u"&&i.name==="CodecDelay"?this.currentTrack.CodecDelay=i.value:i.type==="u"&&i.name==="DefaultDuration"?this.drop_default_duration?(console.warn("DefaultDuration detected!, remove it"),$=!0):this.currentTrack.DefaultDuration=i.value:i.name==="unknown"&&console.warn(i);!this.metadataloaded&&i.dataEnd>0&&(this.metadataSize=i.dataEnd),$||this.chunks.push(i),this.logging&&this.put(i)}},Object.defineProperty(k.prototype,"duration",{get:function(){if(this.trackInfo.type==="nothing")return console.warn("no video, no audio track"),0;var i=0,c=0,$=0,C=this.trackDefaultDuration[this.trackInfo.trackNumber];if(typeof C=="number")i=C;else if(this.trackInfo.type==="both")if(this.last2SimpleBlockAudioTrackTimecode[1]>this.last2SimpleBlockVideoTrackTimecode[1]){i=(this.last2SimpleBlockAudioTrackTimecode[1]-this.last2SimpleBlockAudioTrackTimecode[0])*this.timecodeScale;var M=this.trackCodecDelay[this.trackTypes.indexOf(2)];typeof M=="number"&&(c=M),$=this.last2SimpleBlockAudioTrackTimecode[1]}else{i=(this.last2SimpleBlockVideoTrackTimecode[1]-this.last2SimpleBlockVideoTrackTimecode[0])*this.timecodeScale;var M=this.trackCodecDelay[this.trackTypes.indexOf(1)];typeof M=="number"&&(c=M),$=this.last2SimpleBlockVideoTrackTimecode[1]}else if(this.trackInfo.type==="video"){i=(this.last2SimpleBlockVideoTrackTimecode[1]-this.last2SimpleBlockVideoTrackTimecode[0])*this.timecodeScale;var M=this.trackCodecDelay[this.trackInfo.trackNumber];typeof M=="number"&&(c=M),$=this.last2SimpleBlockVideoTrackTimecode[1]}else if(this.trackInfo.type==="audio"){i=(this.last2SimpleBlockAudioTrackTimecode[1]-this.last2SimpleBlockAudioTrackTimecode[0])*this.timecodeScale;var M=this.trackCodecDelay[this.trackInfo.trackNumber];typeof M=="number"&&(c=M),$=this.last2SimpleBlockAudioTrackTimecode[1]}var Z=(this.lastClusterTimecode+$)*this.timecodeScale+i-c,J=Z/this.timecodeScale;return Math.floor(J)},enumerable:!1,configurable:!0}),k.prototype.addListener=function(i,c){return f.prototype.addListener.call(this,i,c)},k.prototype.put=function(i){this.hasLoggingStarted||(this.hasLoggingStarted=!0,this.logging&&this.logGroup&&console.groupCollapsed(this.logGroup)),i.type==="m"?i.isEnd?console.groupEnd():console.group(i.name+":"+i.tagStart):i.type==="b"?console.log(i.name,i.type):console.log(i.name,i.tagStart,i.type,i.value)},k}(N.EventEmitter);return EBMLReader.default=D,EBMLReader}var hasRequiredEbml;function requireEbml(){return hasRequiredEbml||(hasRequiredEbml=1,function(O){var N=ebml&&ebml.__createBinding||(Object.create?function(c,$,C,M){M===void 0&&(M=C),Object.defineProperty(c,M,{enumerable:!0,get:function(){return $[C]}})}:function(c,$,C,M){M===void 0&&(M=C),c[M]=$[C]}),I=ebml&&ebml.__exportStar||function(c,$){for(var C in c)C!=="default"&&!Object.prototype.hasOwnProperty.call($,C)&&N($,c,C)};Object.defineProperty(O,"__esModule",{value:!0}),O.tools=O.Reader=O.Encoder=O.Decoder=void 0,I(requireEBML(),O);var D=requireEBMLDecoder();O.Decoder=D.default;var f=requireEBMLEncoder();O.Encoder=f.default;var k=requireEBMLReader();O.Reader=k.default;var i=requireTools();O.tools=i}(ebml)),ebml}var hasRequiredLib;function requireLib(){if(hasRequiredLib)return lib;hasRequiredLib=1;var O=lib&&lib.__awaiter||function(f,k,i,c){function $(C){return C instanceof i?C:new i(function(M){M(C)})}return new(i||(i=Promise))(function(C,M){function Z(Q){try{z(c.next(Q))}catch(ee){M(ee)}}function J(Q){try{z(c.throw(Q))}catch(ee){M(ee)}}function z(Q){Q.done?C(Q.value):$(Q.value).then(Z,J)}z((c=c.apply(f,k||[])).next())})},N=lib&&lib.__generator||function(f,k){var i={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},c,$,C,M;return M={next:Z(0),throw:Z(1),return:Z(2)},typeof Symbol=="function"&&(M[Symbol.iterator]=function(){return this}),M;function Z(z){return function(Q){return J([z,Q])}}function J(z){if(c)throw new TypeError("Generator is already executing.");for(;i;)try{if(c=1,$&&(C=z[0]&2?$.return:z[0]?$.throw||((C=$.return)&&C.call($),0):$.next)&&!(C=C.call($,z[1])).done)return C;switch($=0,C&&(z=[z[0]&2,C.value]),z[0]){case 0:case 1:C=z;break;case 4:return i.label++,{value:z[1],done:!1};case 5:i.label++,$=z[1],z=[0];continue;case 7:z=i.ops.pop(),i.trys.pop();continue;default:if(C=i.trys,!(C=C.length>0&&C[C.length-1])&&(z[0]===6||z[0]===2)){i=0;continue}if(z[0]===3&&(!C||z[1]>C[0]&&z[1]<C[3])){i.label=z[1];break}if(z[0]===6&&i.label<C[1]){i.label=C[1],C=z;break}if(C&&i.label<C[2]){i.label=C[2],i.ops.push(z);break}C[2]&&i.ops.pop(),i.trys.pop();continue}z=k.call(f,i)}catch(Q){z=[6,Q],$=0}finally{c=C=0}if(z[0]&5)throw z[1];return{value:z[0]?z[1]:void 0,done:!0}}};Object.defineProperty(lib,"__esModule",{value:!0});var I=requireEbml();function D(f){return O(this,void 0,void 0,function(){var k,i,c,$,C,M,Z,J,z,Q,ee,Y;return N(this,function(te){switch(te.label){case 0:if(!f)throw Error("call to fixWebmDuration requires a blob");k=new I.Decoder,i=new I.Reader,c=f.stream(),$=c.getReader(),te.label=1;case 1:return[4,$.read()];case 2:return C=te.sent(),M=C.done,Z=C.value,M?(i.stop(),[3,3]):(J=k.decode(Z),J=J==null?void 0:J.filter(function(ie){return ie.type!=="unknown"}),J.forEach(function(ie){i.read(ie)}),Z=null,[3,1]);case 3:return z=I.tools.makeMetadataSeekable(i.metadatas,i.duration,i.cues),Q=new Blob([z],{type:f.type}),ee=f.slice(i.metadataSize),Y=new Blob([Q,ee],{type:f.type}),[2,Y]}})})}return lib.default=D,lib}var libExports=requireLib();const fixWebmDuration=getDefaultExportFromCjs(libExports);class StreamRecorder{constructor(){Ge(this,Wt);Ge(this,cn,!1);Ge(this,an,!1);Ge(this,gn,0);Ge(this,kn,0);Ge(this,Xt,0);Ge(this,tn,0);Ge(this,ln,0);_e(this,"onchange",N=>{});_e(this,"onDurationChange",N=>{});_e(this,"start",async(N="")=>{N||(N=`video_Record_${E(Date.now())}`);let I=[];return navigator.mediaDevices.getDisplayMedia({audio:!0,video:!0}).then(D=>{const f=D.getTracks();for(const i of f)i.onended=()=>this.stop();kt(this,cn,!0),kt(this,an,!1),kt(this,Wt,new MediaRecorder(D)),Oe(this,Wt).start();const k=new Date().getTime();kt(this,gn,k),kt(this,Xt,k),Oe(this,un).call(this),Oe(this,Sn).call(this),Oe(this,Wt).addEventListener("dataavailable",i=>{I.push(i.data)}),Oe(this,Wt).addEventListener("stop",async()=>{kt(this,cn,!1);const i=new Date().getTime();kt(this,kn,i),kt(this,tn,Oe(this,tn)+(i-Oe(this,Xt))),Oe(this,un).call(this),clearInterval(Oe(this,ln));const c=D.getTracks();for(const J of c)J.stop();if(Oe(this,Wt)===null)return;const $=new Blob(I,{type:Oe(this,Wt).mimeType}),C=await fixWebmDuration($),M=URL.createObjectURL(C),Z=document.createElement("a");Z.href=M,Z.download=`${N}.mp4`,Z.click(),URL.revokeObjectURL(M),I=[],kt(this,Wt,null)})})});_e(this,"pause",async()=>{var I;await new Promise(D=>setTimeout(()=>D(!0),300)),(I=Oe(this,Wt))==null||I.pause(),kt(this,an,!0);const N=new Date().getTime();kt(this,tn,Oe(this,tn)+(N-Oe(this,Xt))),Oe(this,un).call(this),clearInterval(Oe(this,ln))});_e(this,"resume",async()=>{var I;(I=Oe(this,Wt))==null||I.resume(),kt(this,an,!1);const N=new Date().getTime();kt(this,Xt,N),Oe(this,un).call(this),Oe(this,Sn).call(this)});_e(this,"stop",async()=>{var N;(N=Oe(this,Wt))==null||N.stop()});_e(this,"getDuration",()=>{if(Oe(this,Xt)===0)return 0;let N=Oe(this,tn);const I=new Date().getTime();if(Oe(this,cn)&&Oe(this,an)===!1){const D=I-Oe(this,Xt);kt(this,Xt,I),N=N+D}return N});_e(this,"getInfo",()=>({active:Oe(this,cn),pause:Oe(this,an),startTime:Oe(this,gn),endTime:Oe(this,kn),duration:Oe(this,tn)}));Ge(this,un,()=>{const N=this.getInfo();this.onchange(N)});Ge(this,Sn,()=>{clearInterval(Oe(this,ln)),kt(this,ln,window.setInterval(()=>{kt(this,tn,this.getDuration()),this.onDurationChange(Oe(this,tn))},500))})}}Wt=new WeakMap,cn=new WeakMap,an=new WeakMap,gn=new WeakMap,kn=new WeakMap,Xt=new WeakMap,tn=new WeakMap,ln=new WeakMap,un=new WeakMap,Sn=new WeakMap;var l=Object.defineProperty,y=O=>{throw TypeError(O)},q=(O,N,I)=>N in O?l(O,N,{enumerable:!0,configurable:!0,writable:!0,value:I}):O[N]=I,s=(O,N,I)=>q(O,typeof N!="symbol"?N+"":N,I),P=(O,N,I)=>N.has(O)||y("Cannot "+I),n=(O,N,I)=>(P(O,N,"read from private field"),I?I.call(O):N.get(O)),a=(O,N,I)=>N.has(O)?y("Cannot add the same private member more than once"):N instanceof WeakSet?N.add(O):N.set(O,I),d,x,u;class p{constructor(N={}){s(this,"queue",[]),s(this,"timer",0),s(this,"activeIndex",0),s(this,"activePromise"),s(this,"options",{timeout:0}),s(this,"add",(I,D={})=>new Promise(async(f,k)=>{const i=D.timeout||this.options.timeout,c=D.key||n(this,d).call(this),$=D.describe||"";if(this.queue.findIndex(M=>M.key===c)!==-1)return k(`${c} is exist.`);const C={key:c,func:I,describe:$,timeout:i,resolve:f,reject:k};this.queue.unshift(C),this.activePromise||n(this,u).call(this)})),s(this,"clear",()=>{this.queue=[],clearTimeout(this.timer)}),a(this,d,()=>(this.activeIndex=this.activeIndex+1,`${this.activeIndex}`)),a(this,x,I=>{const D=this.queue.findIndex(f=>f.key===I);this.queue.splice(D,1)}),a(this,u,async()=>{const I=this.queue.length;if(I===0)return;const D=I-1,f=this.queue[D];this.activePromise=f;const{key:k,func:i,resolve:c,reject:$,timeout:C}=this.activePromise;C&&(this.timer=window.setTimeout(()=>{$(`pr-async-queue: ${k} is timeout.`),n(this,u).call(this)},C)),await i().then(c).catch($).finally(()=>{clearTimeout(this.timer),this.activePromise=void 0,n(this,x).call(this,k),n(this,u).call(this)})}),this.options={timeout:0,...N}}}d=new WeakMap,x=new WeakMap,u=new WeakMap;class RoomBase{constructor(N){_e(this,"options",{appid:"",sdkToken:"",roomId:"",userId:"",earlyId:"",callType:0,debug:!1,reportErr:!0,logUrl:"https://logs1.quickvo.org",newPublishAutoSubscribe:!0});_e(this,"sdk_service_version","1.0.6");_e(this,"prohibitNotify",!1);_e(this,"isEarly",!1);_e(this,"isInRoom",!1);_e(this,"asyncQueue");_e(this,"roomState","ready");_e(this,"createAt",Date.now());_e(this,"cwsIns");_e(this,"peerIns");_e(this,"transceiverMap",new Map);_e(this,"sendChannel");_e(this,"receiveChannel");_e(this,"userMap",new Map);_e(this,"setLocalStreamActiveMap",new Map);_e(this,"phoneyStreams",new Map);_e(this,"recorder",new StreamRecorder);_e(this,"networkQualityTester",new NetworkQualityTester);_e(this,"mediaDevicesErrInfo",{microphoneCamera_audio:"",microphoneCamera_video:"",screenSharing_video:"",screenSharing_audio:""});_e(this,"reportLogs",(N,I="未知错误")=>{const{appid:D,userId:f,earlyId:k="",logUrl:i,reportErr:c}=this.options;if(!c)return;const $="web",C=M=>({ws_c_timeout:0,webrtc_c_timeout:1,join_room_error:2,publish_error:3,subscribe_error:4,close_track_error:5,heartbeat_e_timeout:6,heartbeat_i_timeout:7,quit_room_error:8})[M].toString();{const M=C(N),Z={origin:$,type:M,app_id:D,user_id:f,ins_id:k,desc:I},J=btoa(encodeURI(JSON.stringify(Z))),z=`${i}/upload/log?log_key=${J}`;{const Q=localStorage.getItem("#quickvo.logs")||JSON.stringify([]),Y=new TextEncoder().encode(Q),te=pako.deflate(Y,{gzip:!0});this.options.debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: reportLogs",{obj:Z,url:z,size:lt(te.byteLength)}),fetch(z,{headers:{"Content-Type":"multipart/form-data"},method:"POST",body:te})}}});_e(this,"initPhoneyStreams",(N,I=[])=>{I.length===0&&(I=mediaType_keys);for(const D of I){const f=this.phoneyStreams.get(D);if(f){const k=f.getTracks();for(const i of k)i.stop()}switch(D){case"microphoneCamera_audio":this.phoneyStreams.set("microphoneCamera_audio",createMutedAudioStream(N));break;case"microphoneCamera_video":this.phoneyStreams.set("microphoneCamera_video",createFakeVideoStream());break;case"screenSharing_audio":this.phoneyStreams.set("screenSharing_audio",createMutedAudioStream(N));break;case"screenSharing_video":this.phoneyStreams.set("screenSharing_video",createFakeVideoStream());break}}});_e(this,"getPhoneyStreams",N=>this.phoneyStreams.get(N));_e(this,"getRoomInfo",()=>{const{options:N,roomState:I,createAt:D}=this;return{...N,roomState:I,createAt:D}});_e(this,"setRoomState",N=>{this.roomState=N;const I=enum_roomState[N],D={state:N,stateStr:I};this.cwsIns.emitNotify("onRoomState",{code:200,data:D,desc:"room state is change."})});_e(this,"setOptions",async N=>{const I={...this.options,...N};this.options=I});_e(this,"stopStream",async N=>{const I=N.getTracks();for(const D of I)D.stop()});_e(this,"getMediaDevicesErrInfo",async()=>{try{const N=await navigator.mediaDevices.enumerateDevices();N.find(D=>D.kind==="audioinput")||(this.mediaDevicesErrInfo.microphoneCamera_audio="audioinput is not available."),N.find(D=>D.kind==="videoinput")||(this.mediaDevicesErrInfo.microphoneCamera_video="videoinput is not available.")}catch(N){this.options.debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: getMediaDevicesErrInfo is error.",N)}return this.mediaDevicesErrInfo});_e(this,"getUserMediaKey",(N,I)=>`${N}-${I}`);_e(this,"getCallAction",async N=>{let I="";const D=k=>N.findIndex(({type:c,enabled:$=!0})=>c===k&&$)===-1?"0":"1";return I=`${D(0)}${I}`,I=`${D(1)}${I}`,I=`${D(2)}${I}`,I=`${D(3)}${I}`,parseInt(I,2)});_e(this,"getCallActionMap",(N=0)=>{const D=Number(N).toString(2).padStart(4,"0").split(""),[f,k,i,c]=D;return{microphoneCamera_audio:!!Number(c),microphoneCamera_video:!!Number(i),screenSharing_video:!!Number(k),screenSharing_audio:!!Number(f)}});_e(this,"getBanBehaviorMap",(N=0)=>{const D=Number(N).toString(2).padStart(4,"0").split(""),[f,k,i,c]=D;return{microphoneCamera_audio:!!Number(c),microphoneCamera_video:!!Number(i),screenSharing_video:!!Number(k),screenSharing_audio:!!Number(f)}});_e(this,"getAverageVolume",(N,I)=>{N.getByteFrequencyData(I);let D=0;for(let k=0;k<I.length;k++)D+=I[k];return Math.ceil(D/I.length)});_e(this,"getTrackNamesFormTracks",(N,I=[],D="trackName")=>{const f=[];for(const k of N){const{type:i}=k;if(I.length===0||I.includes(i)){const c=k[D];c&&f.push(`${c}`)}}return f});_e(this,"usersFilter",N=>dt(N,["id","isSelf","isOwner","joinTime","tracks","network","permissions","isPublished","updateStreams","callAction","callActionStr","callActionMap","banBehavior","banBehaviorStr","banBehaviorMap"]).sort((f,k)=>f.id.localeCompare(k.id,"en")));this.setOptions(N),this.cwsIns=new CallsWebSocket({...N}),this.asyncQueue=new p}}var m=Object.defineProperty,G=(O,N,I)=>N in O?m(O,N,{enumerable:!0,configurable:!0,writable:!0,value:I}):O[N]=I,e$1=(O,N,I)=>G(O,typeof N!="symbol"?N+"":N,I);class g{constructor(N,I){e$1(this,"inputStream",new MediaStream),e$1(this,"outputStream",new MediaStream),e$1(this,"inputGain",1),e$1(this,"enhanceGain",1),e$1(this,"bgsGain",1),e$1(this,"bgmGain",1),e$1(this,"outputGain",1),e$1(this,"mixAudioMap",new Map),e$1(this,"audioContext",new AudioContext),e$1(this,"sourceNode"),e$1(this,"inputGainNode"),e$1(this,"enhanceGainNode"),e$1(this,"bgsGainNode"),e$1(this,"bgmGainNode"),e$1(this,"analyserNode"),e$1(this,"analyserArrayData"),e$1(this,"outputGainNode"),e$1(this,"destinationNode"),e$1(this,"filterStream",D=>D),e$1(this,"stop",()=>{{const D=this.inputStream.getTracks();for(const f of D)f.stop(),this.inputStream.removeTrack(f)}}),e$1(this,"getStream",()=>this.filterStream(this.outputStream)),e$1(this,"setMute",(D=!0)=>{D?this.analyserNode.disconnect(this.outputGainNode):this.analyserNode.connect(this.outputGainNode)}),e$1(this,"setInputGain",D=>{this.inputGain=D,this.inputGainNode.gain.setValueAtTime(D,this.audioContext.currentTime)}),e$1(this,"setEnhanceGain",async D=>{this.enhanceGain=D+1,this.enhanceGainNode.gain.setValueAtTime(this.enhanceGain,this.audioContext.currentTime)}),e$1(this,"setBgsGain",D=>{this.bgsGain=D,this.bgsGainNode.gain.setValueAtTime(D,this.audioContext.currentTime)}),e$1(this,"setBgmGain",D=>{this.bgmGain=D,this.bgmGainNode.gain.setValueAtTime(D,this.audioContext.currentTime)}),e$1(this,"setOutputGain",D=>{this.outputGain=D,this.outputGainNode.gain.setValueAtTime(this.outputGain,this.audioContext.currentTime)}),e$1(this,"getVolume",()=>{const{analyserNode:D,analyserArrayData:f}=this;D.getByteFrequencyData(f);let k=0;for(let i=0;i<f.length;i++)k+=f[i];return Math.ceil(k/f.length)}),e$1(this,"mixAudio",(D,f="bgm")=>new Promise(async(k,i)=>{try{{const C=this.mixAudioMap.get(f);C&&C.stop()}const c=f==="bgs"?this.bgsGainNode:this.bgmGainNode,$=this.audioContext.createBufferSource();this.mixAudioMap.set(f,$),$.buffer=D,$.connect(c),$.onended=()=>{$.disconnect(c),this.mixAudioMap.delete(f),k(!0)},$.start(0)}catch(c){i(c)}})),e$1(this,"mixAudioStop",D=>{const f=this.mixAudioMap.get(D);f==null||f.stop()}),e$1(this,"changeMix",(D,f)=>{const k=D==="bgs"?this.bgsGainNode:this.bgmGainNode;f?k.connect(this.destinationNode):k.disconnect(this.destinationNode)}),I&&(this.audioContext=I),this.inputStream=N,this.sourceNode=this.audioContext.createMediaStreamSource(this.inputStream),this.inputGainNode=this.audioContext.createGain(),this.inputGainNode.gain.setValueAtTime(this.inputGain,this.audioContext.currentTime),this.enhanceGainNode=this.audioContext.createGain(),this.enhanceGainNode.gain.setValueAtTime(this.enhanceGain,this.audioContext.currentTime),this.bgsGainNode=this.audioContext.createGain(),this.bgsGainNode.gain.setValueAtTime(this.bgsGain,this.audioContext.currentTime),this.bgmGainNode=this.audioContext.createGain(),this.bgmGainNode.gain.setValueAtTime(this.bgmGain,this.audioContext.currentTime),this.analyserNode=this.audioContext.createAnalyser(),this.analyserNode.fftSize=512,this.analyserArrayData=new Uint8Array(this.analyserNode.frequencyBinCount),this.outputGainNode=this.audioContext.createGain(),this.outputGainNode.gain.setValueAtTime(this.outputGain,this.audioContext.currentTime),this.destinationNode=this.audioContext.createMediaStreamDestination(),this.outputStream=this.destinationNode.stream;{const{sourceNode:D,inputGainNode:f,enhanceGainNode:k,bgsGainNode:i,bgmGainNode:c,analyserNode:$,outputGainNode:C,destinationNode:M}=this;D.connect(f),f.connect(k),k.connect($),i.connect($),c.connect($),k.connect(M),i.connect(M),c.connect(M),$.connect(C),C.connect(this.audioContext.destination)}this.setMute(!0),this.audioContext.resume()}}class RoomMedias extends RoomBase{constructor(I){super(I);Ge(this,pn,[]);Ge(this,Vt,new Map);Ge(this,Nt,new Map);Ge(this,en,new Map);Ge(this,nn,new Map);Ge(this,sn,new Map);_e(this,"localStreamsActionMap",new Map);Ge(this,mn,new Map);_e(this,"audioContext",new(window.AudioContext||window.webkitAudioContext));_e(this,"initMediaPhoneyStreams",(I=[])=>this.initPhoneyStreams(this.audioContext,I));_e(this,"initLocalStreamsFilter",()=>{for(const I of mediaType_keys){const D=async f=>f;Oe(this,mn).set(I,D)}});_e(this,"setLocalFilterStream",(I,D)=>{Oe(this,mn).set(I,D)});Ge(this,Nn,()=>{Oe(this,Nt).set("microphoneCamera_audio",{autoGainControl:!0,echoCancellation:!0,noiseSuppression:!0}),Oe(this,Nt).set("microphoneCamera_video",{frameRate:{min:10,ideal:30}}),Oe(this,Nt).set("screenSharing_video",{frameRate:{min:10,ideal:30}}),Oe(this,Nt).set("screenSharing_audio",{autoGainControl:!0,echoCancellation:!0,noiseSuppression:!0})});Ge(this,Mn,()=>{Oe(this,Vt).set("audioinput","default"),Oe(this,Vt).set("videoinput","default"),Oe(this,Vt).set("audiooutput","default")});_e(this,"emitNotifyUpdateUsersStreams",async I=>{this.cwsIns.emitNotify("onRoomUsersStreams",{code:200,data:I,desc:"users streams is change."})});_e(this,"initUserMediaStreamContext",async(I,D,f)=>{const[k]=f.getTracks();if(!k){console.warn("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: tracks.length is 0.",{userId:I,mediaType:D,stream:f});return}this.removeUserMediaStreamContext(I,D);const i=this.getUserMediaKey(I,D),{kind:c}=k;switch(c){case"audio":{const $=new MediaStream;$.addTrack(k);const C=new g($,this.audioContext);Oe(this,en).set(i,C)}break;case"video":{const $=new VideoMediaContext(k);Oe(this,nn).set(i,$)}break}});_e(this,"getUserMediaStreamContext",(I,D)=>{const f=this.getUserMediaKey(I,D);if(["microphoneCamera_audio","screenSharing_audio"].includes(D))return Oe(this,en).get(f);if(["microphoneCamera_video","screenSharing_video"].includes(D))return Oe(this,nn).get(f)});_e(this,"getUserAudioMediaStreamContext",(I,D)=>{const f=this.getUserMediaKey(I,D);return Oe(this,en).get(f)});_e(this,"removeUserMediaStreamContext",(I,D)=>{const f=this.getUserMediaKey(I,D);if(["microphoneCamera_audio","screenSharing_audio"].includes(D)){const k=Oe(this,en).get(f);return k==null||k.stop(),Oe(this,en).delete(f)}if(["microphoneCamera_video","screenSharing_video"].includes(D)){const k=Oe(this,nn).get(f);return k==null||k.stop(),Oe(this,nn).get(f)}});_e(this,"getUserStream",(I,D)=>{const f=this.getUserMediaStreamContext(I,D);return(f==null?void 0:f.getStream())||new MediaStream});_e(this,"getUserStreams",(I,D=[])=>{D.length===0&&(D=mediaType_keys);const f={};for(const k of D){const i=this.getUserStream(I,k);f[k]=i}return f});_e(this,"removeUserStreams",async(I,D=[])=>{D.length===0&&(D=mediaType_keys);for(const f of D)this.removeUserMediaStreamContext(I,f)});_e(this,"clearUserStreams",()=>{{const I=Oe(this,en).values();for(const D of I)D.stop();kt(this,en,new Map)}{const I=Oe(this,nn).values();for(const D of I)D.stop();kt(this,nn,new Map)}});_e(this,"setMediaTrackConstraints",async(I,D)=>{Oe(this,Nt).set(I,D);const f=await this.getLocalStream(I);if(!f)return;const k=f.getTracks();if(k.length!==0)for(const i of k){const c=i.getConstraints(),C={...Oe(this,Nt).get(I),...c,...D};await i.applyConstraints(C)}});_e(this,"stopLocalStreams",async(I=[])=>{I.length===0&&(I=mediaType_keys);for(const D of I){const f=Oe(this,sn).get(D);f&&await this.stopStream(f),Oe(this,sn).delete(D)}});_e(this,"addLocalStream",(I,D)=>{const f=Oe(this,sn).get(I);f&&this.stopStream(f),Oe(this,sn).set(I,D)});_e(this,"initLocalStream",async I=>{switch(I){case"microphoneCamera_audio":{const D=Oe(this,Vt).get("audioinput"),f=Oe(this,Nt).get("microphoneCamera_audio"),k=await navigator.mediaDevices.getUserMedia({audio:{deviceId:D,...f},video:!1});this.addLocalStream("microphoneCamera_audio",k)}break;case"microphoneCamera_video":{const D=Oe(this,Vt).get("videoinput"),f=Oe(this,Nt).get("microphoneCamera_video"),k=await navigator.mediaDevices.getUserMedia({audio:!1,video:{deviceId:D,...f}});this.addLocalStream("microphoneCamera_video",k)}break;case"microphoneCamera":{const D=Oe(this,Vt).get("audioinput"),f=Oe(this,Vt).get("videoinput"),k=Oe(this,Nt).get("microphoneCamera_audio"),i=Oe(this,Nt).get("microphoneCamera_video"),$=(await navigator.mediaDevices.getUserMedia({audio:{deviceId:D,...k},video:{deviceId:f,...i}})).getTracks();for(const C of $){const{kind:M}=C;if(M==="audio"){const Z=new MediaStream;Z.addTrack(C),this.addLocalStream("microphoneCamera_audio",Z)}if(M==="video"){const Z=new MediaStream;Z.addTrack(C),this.addLocalStream("microphoneCamera_video",Z)}}}break;case"screenSharing_audio":{const D=Oe(this,Nt).get("screenSharing_audio"),k=(await navigator.mediaDevices.getDisplayMedia({audio:!0,video:!0,...D})).getTracks();for(const i of k){const{kind:c}=i;if(c==="audio"){const $=new MediaStream;$.addTrack(i),this.addLocalStream("screenSharing_audio",$)}}}break;case"screenSharing_video":{const D=Oe(this,Nt).get(I),k=(await navigator.mediaDevices.getDisplayMedia({audio:!1,video:!0,...D})).getTracks();for(const i of k){const{kind:c}=i;if(c==="video"){const $=new MediaStream;$.addTrack(i),this.addLocalStream("screenSharing_video",$)}}}break;case"screenSharing":{const D=Oe(this,Nt).get("screenSharing_audio"),f=Oe(this,Nt).get("screenSharing_video"),i=(await navigator.mediaDevices.getDisplayMedia({audio:!0,video:!0,...D,...f})).getTracks();for(const c of i){const{kind:$}=c;if($==="audio"){const C=new MediaStream;C.addTrack(c),this.addLocalStream("screenSharing_audio",C)}if($==="video"){const C=new MediaStream;C.addTrack(c),this.addLocalStream("screenSharing_video",C)}}}break}});_e(this,"getLocalStream",async I=>{const D=Oe(this,sn).get(I),f=Oe(this,mn).get(I);let k=D;return D&&f&&(k=await f(D)),k});_e(this,"getLocalStreams",async(I=[])=>{I.length===0&&(I=mediaType_keys);const D={};for(const f of I)D[f]=await this.getLocalStream(f);return D});Ge(this,yn,async()=>!navigator.mediaDevices||!navigator.mediaDevices.enumerateDevices?(console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: 不支持 enumerateDevices"),[]):(await navigator.mediaDevices.enumerateDevices().then(I=>{const D=I.filter(f=>!["communications"].includes(f.deviceId));kt(this,pn,D.sort((f,k)=>f.label.localeCompare(k.label,"zh-Hans-CN",{sensitivity:"accent"})))}).catch(function(I){console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: getEnumerateDevices is err",I)}),Oe(this,pn)));Ge(this,qn,()=>{navigator.mediaDevices&&(navigator.mediaDevices.ondevicechange=async()=>{await Oe(this,yn).call(this),this.cwsIns.emitNotify("onDevicechange",{code:200,data:{},desc:"device is change."})}),Oe(this,yn).call(this)});_e(this,"getMediaDeviceKind",I=>Oe(this,Vt).get(I));_e(this,"changeAudiooutput",async()=>{try{const I=Oe(this,Vt).get("audiooutput");await this.audioContext.setSinkId(I)}catch(I){console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: setSinkId is error.",I)}});_e(this,"setDeviceKind",(I,D)=>{Oe(this,Vt).set(I,D)});_e(this,"setAudioOutputDevice",I=>this.setDeviceKind("audiooutput",I));_e(this,"getEnumerateDevices",async I=>(await Oe(this,yn).call(this),Oe(this,pn).filter(f=>f.kind===I)));_e(this,"getEnumerateAudioinputDevices",()=>this.getEnumerateDevices("audioinput"));_e(this,"getEnumerateAudioOutputDevices",()=>this.getEnumerateDevices("audiooutput"));_e(this,"getEnumerateVideoinputDevices",()=>this.getEnumerateDevices("videoinput"));Oe(this,qn).call(this),Oe(this,Mn).call(this),Oe(this,Nn).call(this),this.initPhoneyStreams(this.audioContext),document.addEventListener("click",()=>{var D;((D=this.audioContext)==null?void 0:D.state)==="suspended"&&this.audioContext.resume()})}}pn=new WeakMap,Vt=new WeakMap,Nt=new WeakMap,en=new WeakMap,nn=new WeakMap,sn=new WeakMap,mn=new WeakMap,Nn=new WeakMap,Mn=new WeakMap,yn=new WeakMap,qn=new WeakMap;class RoomUsers extends RoomMedias{constructor(I){super(I);_e(this,"getMaxVolumeUser",()=>{const I=Array.from(this.userMap.values(),({id:f})=>f);if(I.length===0)return;let D=[];for(const f of I){const k=this.getUserAudioMediaStreamContext(f,"microphoneCamera_audio");if(!k)continue;const i=k.getVolume();D.push({id:f,volume:i})}return D=D.sort((f,k)=>f.volume-k.volume>0?-1:1),D[0]});_e(this,"setVolume",(I,D,f)=>{const k=this.getUserAudioMediaStreamContext(I,D);k==null||k.setInputGain(f)});_e(this,"setEnhanceGain",async(I,D,f)=>{const k=this.getUserAudioMediaStreamContext(I,D);k==null||k.setEnhanceGain(f)});_e(this,"setSpeaker",(I,D,f)=>{const k=this.getUserAudioMediaStreamContext(I,D);k==null||k.setOutputGain(f);const i=f===0;k==null||k.setMute(i)});_e(this,"playBgs",(I,D,f)=>{const k=this.getUserAudioMediaStreamContext(I,D);return k==null?void 0:k.mixAudio(f,"bgs")});_e(this,"setBgsGain",(I,D,f)=>{const k=this.getUserAudioMediaStreamContext(I,D);k==null||k.setBgsGain(f)});_e(this,"stopBgs",(I,D)=>{const f=this.getUserAudioMediaStreamContext(I,D);f==null||f.mixAudioStop("bgs")});_e(this,"playBgm",(I,D,f)=>{const k=this.getUserAudioMediaStreamContext(I,D);return k==null?void 0:k.mixAudio(f,"bgm")});_e(this,"setBgmGain",(I,D,f)=>{const k=this.getUserAudioMediaStreamContext(I,D);k==null||k.setBgmGain(f)});_e(this,"stopBgm",(I,D)=>{const f=this.getUserAudioMediaStreamContext(I,D);f==null||f.mixAudioStop("bgm")});_e(this,"changBgsMix",(I,D,f)=>{const k=this.getUserAudioMediaStreamContext(I,D);k==null||k.changeMix("bgs",f)});_e(this,"changBgmMix",(I,D,f)=>{const k=this.getUserAudioMediaStreamContext(I,D);k==null||k.changeMix("bgm",f)});_e(this,"getVolume",(I,D)=>{const f=this.getUserAudioMediaStreamContext(I,D);return f==null?void 0:f.getVolume()});_e(this,"clearUsers",()=>{this.userMap=new Map});_e(this,"removeUsers",async I=>{for(const D of I)this.userMap.delete(D),await this.removeUserStreams(D)});_e(this,"createUser",async I=>{const D=Date.now(),f={id:I,permissions:0,callAction:0,callActionStr:"",callActionMap:{microphoneCamera_audio:!1,microphoneCamera_video:!1,screenSharing_video:!1,screenSharing_audio:!1},banBehavior:0,banBehaviorStr:"",banBehaviorMap:{microphoneCamera_audio:!1,microphoneCamera_video:!1,screenSharing_video:!1,screenSharing_audio:!1},callState:0,isOwner:this.userMap.size===0,isSelf:I===this.options.userId,isPublished:!1,joinTime:D,updateAt:D,network:{egress:0,ingress:0},tracks:[],channels:[],updateStreams:{microphoneCamera_audio:!1,microphoneCamera_video:!1,screenSharing_video:!1,screenSharing_audio:!1}};this.userMap.set(I,f)});_e(this,"getUser",async I=>(this.userMap.has(I)||await this.createUser(I),this.userMap.get(I)));_e(this,"getUsers",async(I=[])=>{I.length===0&&(I=[...this.userMap.keys()]);const D=[];for(const f of I){const k=await this.getUser(f);D.push(k)}return D});_e(this,"getAllUserTrackMids",async()=>{const I=await this.getUsers(),D=[];for(const f of I){const{tracks:k=[]}=f;for(const i of k)D.push(i.mid)}return D});_e(this,"getUserTrackByTrackName",async I=>{const D=await this.getUsers(),f=[];for(const k of D){const{tracks:i=[]}=k;for(const c of i){const{trackName:$}=c;I.includes($)&&f.push(c)}}return f});_e(this,"getUserTrackFromMid",async I=>{const D=await this.getUsers();let f;for(const k of D){const{tracks:i=[]}=k;for(const c of i)if(c.mid===I){f=c;break}}return f});_e(this,"checkUserInRoom",I=>this.userMap.has(I));_e(this,"getUsersId",async()=>[...this.userMap.keys()]);_e(this,"getSelfInfo",async()=>await this.getUser(this.options.userId));_e(this,"updateIsPublished",async(I,D=!1)=>{const f=await this.getUser(I);f.isPublished=D});_e(this,"setUserUpdateStreams",async(I,D,f=!0)=>{const k=await this.getUser(I),i={microphoneCamera_audio:!1,microphoneCamera_video:!1,screenSharing_video:!1,screenSharing_audio:!1};i[D]=f,k.updateStreams=i});_e(this,"updateUserChannels",async(I,D=[],f)=>{const k=await this.getUser(I);f&&(D=[...k.channels,...D]),k.channels=D});_e(this,"updateUsertracks",async(I,D=[],f)=>{const k=await this.getUser(I);f&&(D=[...k.tracks,...D]),D=D.filter(({mid:$=""})=>$!==""),D=pt(D,["type"]),D=D.sort(($,C)=>$.type-C.type<0?-1:1);for(const $ of D)$.userId=I,$.mediaType=mediaType_keys[$.type],$.enabled===void 0&&($.enabled=!0);k.updateStreams={microphoneCamera_audio:!1,microphoneCamera_video:!1,screenSharing_video:!1,screenSharing_audio:!1};const i=dt(k.tracks,["mediaType","enabled","mid","msid","trackName"]),c=dt(D,["mediaType","enabled","mid","msid","trackName"]);{const $="microphoneCamera_audio",C=c.find(J=>J.mediaType===$),M=i.find(J=>J.mediaType===$),Z=JSON.stringify(C)!==JSON.stringify(M);k.updateStreams[$]=Z}{const $="microphoneCamera_video",C=c.find(J=>J.mediaType===$),M=i.find(J=>J.mediaType===$),Z=JSON.stringify(C)!==JSON.stringify(M);k.updateStreams[$]=Z}{const $="screenSharing_audio",C=c.find(J=>J.mediaType===$),M=i.find(J=>J.mediaType===$),Z=JSON.stringify(C)!==JSON.stringify(M);k.updateStreams[$]=Z}{const $="screenSharing_video",C=c.find(J=>J.mediaType===$),M=i.find(J=>J.mediaType===$),Z=JSON.stringify(C)!==JSON.stringify(M);k.updateStreams[$]=Z}k.tracks=D});_e(this,"updateUserCallAction",async(I,D=0)=>{const f=await this.getUser(I);f.callAction=D,f.callActionStr=D.toString(2).padStart(4,"0"),f.callActionMap=this.getCallActionMap(D)});_e(this,"updateUserBehaviors",async(I,D=0)=>{const f=await this.getUser(I);f.banBehavior=D,f.banBehaviorStr=D.toString(2).padStart(4,"0"),f.banBehaviorMap=this.getBanBehaviorMap(D)});_e(this,"updateUserNetwork",async(I,D={egress:5,ingress:5})=>{const f=await this.getUser(I);f.network=D});_e(this,"updateUserPermissions",async(I,D)=>{if(D){const f=await this.getUser(I);f.permissions=D}});_e(this,"updateUserBase",async I=>{const D=await this.getUser(I);D.isSelf=I===this.options.userId,D.updateAt=Date.now()});_e(this,"updateUsers",async I=>{for(const D of I){const{id:f,tracks:k,callAction:i,permissions:c,isPublished:$}=D;await this.updateUserBase(f),await this.updateIsPublished(f,$),await this.updateUserPermissions(f,c),await this.updateUsertracks(f,k,!0),await this.updateUserCallAction(f,i),await this.updateUserNetwork(f)}});_e(this,"emitNotifyUpdateUser",async I=>{const D=await this.getUsers([I]),[f]=this.usersFilter(D);this.cwsIns.emitNotify("onRoomUser",{code:200,data:f,desc:"user info is change."})});_e(this,"emitNotifyUpdateUsers",async()=>{const I=await this.getUsers(),D=this.usersFilter(I);this.cwsIns.emitNotify("onRoomUsers",{code:200,data:D,desc:"all users info is change."})})}}const t=(O,N=4294967295,I=79764919)=>{const D=new Int32Array(256);let f,k,i,c=N;for(f=0;f<256;f++){for(i=f<<24,k=8;k>0;--k)i=2147483648&i?i<<1^I:i<<1;D[f]=i}for(f=0;f<O.length;f++)c=c<<8^D[255&(c>>24^O[f])];return c},e=(O,N=t)=>{const I=Y=>new Uint8Array(Y.length/2).map((te,ie)=>parseInt(Y.substring(2*ie,2*(ie+1)),16)),D=Y=>I(Y)[0],f=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((Y,te)=>f.set(Y,te));const k=new Uint8Array(O.length);let i,c,$,C=!1,M=0,Z=42,J=O.length>13&&O.substring(0,9)==="dynEncode",z=0;J&&(z=11,c=D(O.substring(9,z)),c<=1&&(z+=2,Z=D(O.substring(11,z))),c===1&&(z+=8,$=(Y=>new DataView(I(Y).buffer).getInt32(0,!0))(O.substring(13,z))));const Q=256-Z;for(let Y=z;Y<O.length;Y++)if(i=O.charCodeAt(Y),i!==61||C){if(i===92&&Y<O.length-5&&J){const te=O.charCodeAt(Y+1);te!==117&&te!==85||(i=parseInt(O.substring(Y+2,Y+6),16),Y+=5)}if(i>255){const te=f.get(i);te&&(i=te+127)}C&&(C=!1,i-=64),k[M++]=i<Z&&i>0?i+Q:i-Z}else C=!0;const ee=k.subarray(0,M);if(J&&c===1){const Y=N(ee);if(Y!==$){const te="Decode failed crc32 validation";throw console.error("`simple-yenc`\n",te+`
|
|
14
|
-
`,"Expected: "+$+"; Got: "+Y+`
|
|
15
|
-
`,"Visit https://github.com/eshaz/simple-yenc for more information"),Error(te)}}return ee};function WASMAudioDecoderCommon(){const O=Uint8Array,N=Float32Array;WASMAudioDecoderCommon.modules||Object.defineProperties(WASMAudioDecoderCommon,{modules:{value:new WeakMap},setModule:{value(I,D){WASMAudioDecoderCommon.modules.set(I,Promise.resolve(D))}},getModule:{value(I,D){let f=WASMAudioDecoderCommon.modules.get(I);return f||(D?f=WebAssembly.compile(e(D)):(D=I.wasm,f=WASMAudioDecoderCommon.inflateDynEncodeString(D).then(k=>WebAssembly.compile(k))),WASMAudioDecoderCommon.modules.set(I,f)),f}},concatFloat32:{value(I,D){let f=new N(D),k=0,i=0;for(;k<I.length;)f.set(I[k],i),i+=I[k++].length;return f}},getDecodedAudio:{value:(I,D,f,k,i)=>({errors:I,channelData:D,samplesDecoded:f,sampleRate:k,bitDepth:i})},getDecodedAudioMultiChannel:{value(I,D,f,k,i,c){let $=[],C,M;for(C=0;C<f;C++){const Z=[];for(M=0;M<D.length;)Z.push(D[M++][C]||[]);$.push(WASMAudioDecoderCommon.concatFloat32(Z,k))}return WASMAudioDecoderCommon.getDecodedAudio(I,$,k,i,c)}},inflateDynEncodeString:{value(I){return I=e(I),new Promise(D=>{const f=String.raw`dynEncode012804c7886d()((()>+*§§)§,§§§§)§+§§§)§+.-()(*)-+)(.7*§)i¸¸,3§(i¸¸,3/G+.¡*(,(,3+)2å:-),§H(P*DI*H(P*@I++hH)H*r,hH(H(P*<J,i)^*<H,H(P*4U((I-H(H*i0J,^*DH+H-H*I+H,I*4)33H(H*H)^*DH(H+H)^*@H+i§H)i§3æ*).§K(iHI/+§H,iHn,§H+i(H+i(rCJ0I,H*I-+hH,,hH(H-V)(i)J.H.W)(i)c)(H,i)I,H-i*I-4)33i(I.*hH(V)(H+n5(H(i*I-i(I,i)I.+hH,i*J+iHn,hi(I-i*I,+hH,H/H-c)(H,iFn,hi(I,+hH,H0n5-H*V)(J(,hH/H(i)J(H(V)(J(i)c)(H)H(i)H,c)(3H*i*I*H,i)I,4(3(-H(H,W)(H-I-H,i*I,4)3(3(3H,H-I1H+I,H.i)H1V)(J.i(v5(33H.-H(H,i(c)(H,i*I,4)333)-§i*I*+§H*iHn,hi73H,H(i)8(H+J+H)P*(H*V)(J-r,§H)P*,H.i)H+H,i)V)(-H*i*I*H+i)I+H-H.I.H,H-i)I,4)333Ã+)-§iø7i(^*(iü7I,*h+hH+iDn,h*hilI+i)I,+hH+,hH+iô7H,c)(i)H+i´8W)(H,I,H+i*I+4)-+hH(H)8*J-i(p5.*h*h*hH-i')u,hH(P*(J+,hH(P*0J,H(P*,n50H+H,H-b((3H(P*0i)I.4)3H-i¨*n5*H-iÅ*s,hi73H-i)J+V)&+I,H(H+V)æ,8(I.H(H*8*J-i(p51H-i)J+i¸7V)(H(H+iø7V)(8(J/H(P*0J+s,hi73H+H,H.J,I.H(P*(m5(H.H(P*,s5.+hH,m5*H(P*(J.H+H.H+H/U((b((H(H(P*0i)J+^*0H,i)I,4(3(3H(H.^*03H-i¨*o5)33i(73(3(3-H,H+i)c)(H,i*I,H+i)I+4)33i)I-3H-3!2)0§K(i2J,L(H,H(^*(H,H*^*4H,i(^*0H,i(^*DH,j(_*<H,H)P*(^*,H,H+P*(^*8*h*h+hH,i)8(I3i§I**h*h*h*h*h*h*hH,i*8(6+(),03H,j(_*@i*I-H,P*<J.i,J(H,P*8J/s50H,H.i+J0^*<i¦I*H.H,P*4J1J.U(*H.U((J2i')o5/H.U()I.H,H(^*<H0H1U((H.i0J.i§i0i')o5/H/H.H2J*H(J.q50H,P*0J/H*I-H,P*(J0,hH,P*,H-q,hi)I-423+hH*m5+H/H0H(H1U((b((H/i)I/H(i)I(H*i)I*4(3(3H,H.^*<H,H-^*04*3iØ1U((5+i(I(i¨7i1^*(i$6iè1^*(i°7iè6^*(i¬7iÈ6^*(+hH(iÈ*n,hiÈ*I(+hH(i¨,n,hi¨,I(+hH(iØ,n,hiØ,I(+hH(iè,o,hH,i-H(i0c)(H(i*I(4)33iè1i1H,i-iÈ*8)Bi(I(+hH(ido,hH,i-H(i-c)(H(i*I(4)33iÈ6iè6H,i-iF8)BiØ1i)b((41-H,i-H(i/c)(H(i*I(4)3(3(-H,i-H(i1c)(H(i*I(4)3(3(-H,i-H(i0c)(H(i*I(4)3(3(3H,H/^*0H,H(^*<3i(I*4*3H,H,i¸)^*TH,H,iø-^*PH,H,iX^*LH,H,i(^*HH,i-8(I(H,i-8(I-i¥I*H,i,8(I.H(iErH-iEr5)H(i©*I1H-i)I0i(i;H.i,J(i(H(i(rCJ(J*H*i;sCI*i¨1I-H(I/+hH/,hH,i-H-V)(i)H,i+8(c)(H/i)I/H-i*I-H*i)I*4)-H(i)i¨1I/+hH(H*o,hH,i-H/V)(i)i(c)(H/i*I/H(i)I(4)33i¤I*H,iø-H,i¸)H,i-i;8)5+H0H1I2i(I-+hH-H2p,hH,H,iP8*J*i(p5-H*i7u,hH,i-H-i)H*c)(H-i)I-4*3i(I/i+I.i+I(*h*h*hH*i86*(*)3H-m,hi£I*403H-i)H,W)-I/i*I(4)3i3I.i/I(3H2H,H(8(H.J(H-J.p,hi¢I*4.3H,i-H-i)I*+hH(,hH*H/c)(H*i*I*H(i)I(4)-H.I-4+3(3(33H,W)1m,hiI*4,3H,iø-H,i¸)H,i-H18)J(,hi¡I*H(i(p5,H1H,V)ú-H,V)ø-o5,3H,i(H,iXH,i-H1i)H08)J(,hi I*H(i(p5,H0H,V)H,V)o5,3H,H,iPH,iH8+I*4+3(3(3H,i$6i¬78+I*3H*H3m5(3i)I-H*i(r5)3H)H,P*0^*(H+H,P*<^*(H*I-3H,i2L(H-33Á)+(i¨03b+(,(-(.(/(0(1(2(3(5(7(9(;(?(C(G(K(S([(c(k({(((«(Ë(ë((*)(iø03O)()()()(*(*(*(*(+(+(+(+(,(,(,(,(-(-(-(-(i¨13M8(9(:(((0(/(1(.(2(-(3(,(4(+(5(*(6()(7(T7*S7US0U `;WASMAudioDecoderCommon.getModule(WASMAudioDecoderCommon,f).then(k=>WebAssembly.instantiate(k,{})).then(({exports:k})=>{const i=new Map(Object.entries(k)),c=i.get("puff"),$=i.get("memory").buffer,C=new O($),M=new DataView($);let Z=i.get("__heap_base");const J=I.length,z=Z;Z+=4,M.setInt32(z,J,!0);const Q=Z;Z+=J,C.set(I,Q);const ee=Z;Z+=4,M.setInt32(ee,C.byteLength-Z,!0),c(Z,ee,Q,z),D(C.slice(Z,Z+M.getInt32(ee,!0)))})})}}}),Object.defineProperty(this,"wasm",{enumerable:!0,get:()=>this._wasm}),this.getOutputChannels=(I,D,f)=>{let k=[],i=0;for(;i<D;)k.push(I.slice(i*f,i++*f+f));return k},this.allocateTypedArray=(I,D,f=!0)=>{const k=this._wasm.malloc(D.BYTES_PER_ELEMENT*I);return f&&this._pointers.add(k),{ptr:k,len:I,buf:new D(this._wasm.HEAP,k,I)}},this.free=()=>{this._pointers.forEach(I=>{this._wasm.free(I)}),this._pointers.clear()},this.codeToString=I=>{const D=[],f=new Uint8Array(this._wasm.HEAP);for(let k=f[I];k!==0;k=f[++I])D.push(k);return String.fromCharCode.apply(null,D)},this.addError=(I,D,f,k,i,c)=>{I.push({message:D,frameLength:f,frameNumber:k,inputBytes:i,outputSamples:c})},this.instantiate=(I,D)=>(D&&WASMAudioDecoderCommon.setModule(I,D),this._wasm=new I(WASMAudioDecoderCommon).instantiate(),this._pointers=new Set,this._wasm.ready.then(()=>this))}var browser,hasRequiredBrowser;function requireBrowser(){return hasRequiredBrowser||(hasRequiredBrowser=1,browser=Worker),browser}var browserExports=requireBrowser();const NodeWorker=getDefaultExportFromCjs(browserExports),getWorker=()=>globalThis.Worker||NodeWorker;class WASMAudioDecoderWorker extends getWorker(){constructor(N,I,D,f){WASMAudioDecoderCommon.modules||new WASMAudioDecoderCommon;let k=WASMAudioDecoderCommon.modules.get(D);if(!k){let i="text/javascript",c,$=`'use strict';(${((C,M,Z)=>{let J,z,Q=new Promise(ee=>{z=ee});self.onmessage=({data:{id:ee,command:Y,data:te}})=>{let ie=Q,ye={id:ee},re;Y==="init"?(Object.defineProperties(C,{WASMAudioDecoderCommon:{value:M},EmscriptenWASM:{value:Z},module:{value:te.module},isWebWorker:{value:!0}}),J=new C(te.options),z()):Y==="free"?J.free():Y==="ready"?ie=ie.then(()=>J.ready):Y==="reset"?ie=ie.then(()=>J.reset()):(Object.assign(ye,J[Y](Array.isArray(te)?te.map(de=>new Uint8Array(de)):new Uint8Array(te))),re=ye.channelData?ye.channelData.map(de=>de.buffer):[]),ie.then(()=>self.postMessage(ye,re))}}).toString()})(${D}, ${WASMAudioDecoderCommon}, ${f})`;try{c=typeof process.versions.node<"u"}catch{}k=c?`data:${i};base64,${Buffer.from($).toString("base64")}`:URL.createObjectURL(new Blob([$],{type:i})),WASMAudioDecoderCommon.modules.set(D,k)}super(k,{name:I}),this._id=Number.MIN_SAFE_INTEGER,this._enqueuedOperations=new Map,this.onmessage=({data:i})=>{const{id:c,...$}=i;this._enqueuedOperations.get(c)($),this._enqueuedOperations.delete(c)},new f(WASMAudioDecoderCommon).getModule().then(i=>{this.postToDecoder("init",{module:i,options:N})})}async postToDecoder(N,I){return new Promise(D=>{this.postMessage({command:N,id:this._id,data:I}),this._enqueuedOperations.set(this._id++,D)})}get ready(){return this.postToDecoder("ready")}async free(){await this.postToDecoder("free").finally(()=>{this.terminate()})}async reset(){await this.postToDecoder("reset")}}const assignNames=(O,N)=>{Object.defineProperty(O,"name",{value:N})};function EmscriptenWASM(O){function N(){}function I(me){throw me}var D,f;function k(){var me=f.buffer;D=new Uint8Array(me),new BigInt64Array(me),new BigUint64Array(me)}for(var i=()=>I(""),c=()=>{},$={},C=me=>me(),M=()=>performance.now(),Z=(me,Re)=>{if($[me]&&(clearTimeout($[me].id),delete $[me]),!Re)return 0;var Ue=setTimeout(()=>{delete $[me],C(()=>he(me,M()))},Re);return $[me]={id:Ue,timeout_ms:Re},0},J=Math.cos,z=me=>(D.length,!1),Q=me=>{throw`exit(${me})`},ee=new Uint8Array(123),Y=25;Y>=0;--Y)ee[48+Y]=52+Y,ee[65+Y]=Y,ee[97+Y]=26+Y;ee[43]=62,ee[47]=63;var te={d:i,c,e:Z,a:J,f:z,b:Q};function ie(me){ye=me.i,re=me.j,de=me.k,se=me.l,ue=me.m,he=me.o}var ye,re,de,se,ue,he;function we(me){me.h()}EmscriptenWASM.wasm||Object.defineProperty(EmscriptenWASM,"wasm",{get:()=>String.raw`dynEncode0158c8b8d85e¼æ=M]lGu³õPo]ÐãÞ·£3² ÁÚ= Êöc/ÓZ8s³íÛ³uÐ¥t"+¦¦~dòR\(nº}÷£¢¢ë¢k}t¡) ,äÕüP
|
|
16
|
-
*øüäÖeùiÝWͦÖPM¨[æu>Ü(«l'Ë$c¿9ZEúº¼ù¼=}äÍÂý²\åôÒ
'.õtÅXî=}~õ"uÊrÁýóòÝ ÔúéÊ
|
|
17
|
-
/Îÿ4ñ3sl¬8mæÑå68à8uNÑçmhÔ¶©hwÒ½¸t¡î¾¾|®½®ê²
|
|
18
|
-
#Hzò44Bv½!;1Û÷Ô±xü½#Ó7(
0#,È$Ï#$$GÓéËEä àoç7ãoéJÉíï7±çOHAWáì@ì>j_»·ÄBg¡& ºËáPÍþÕâ|óZ5qíê£1(£=Mj»-³;Éb¸mÍIÙãË[@ºk¶äáV9t#wäÔy£óþN÷¸åKS W£)ýÌQ<¼°ì=}=}ÊÌ@㼤j@V¸0Wïú!÷ý£¾±²BMïðô=MãÕ2Úÿ¤ÜïV&¸áÇòßBÕØ&eÞj«@ߥ¬/Ï©Ì).ø~|V}o:¶çBj '¯ÅIÝBVU0¦~VBq´µOF#ÑÈVï ó>±w
5ooø«òÏ©2ú*Yó×&Øscò,óWû® =M«À3ÃUK£AhV!.ßÖª33pêPÃ¥¢;×òZ¹N´*Rwç²Ã= +2pæOôïÈ5 È5p£µ~ØÎE2¿×zÝê
LÂP7]O(&³BTJn6ì¬vøzýOb_¯ëSº [Þá4'þI&xa^ík¨a¨(bñý"w®×µØg),LèÏþ¬1×ü= àúN(5F:kTçZòË"êþÄUÏa%/Áïâ×*Ï3}~èKKnw][sÆ\3²( ¥o)1|()¥Õå¾!?= Ó¹O4xÙ¨ÌÕÆh£§×w¬¢¾9B{ÍØJÙ÷Âwf«E¢ÒpBÒGïÎUW¾£ÓYáG»mU^ðÛ7Lôyí¾7Nì?}Ádt|Öñåu&qýq¶
|
|
19
|
-
1#bh2múÕ@_¿8\WÒüáÉc«fU9nvXu¢½Ó
|
|
20
|
-
¼ÃÃ
|
|
21
|
-
ýLÇ[Ñbå3h}§SªÙ¡óÏGvä¬á¸²Êý7dóIdÚKpsB¢¯§µ¦°ÂUÓÏl¶ª¾Oyl<»+üs´¾pOhhѱ»rºøº¼¡ÛhFçó@Ñ\@Øâv ul$½q¶= ª_irI+ê%Fz2«
|
|
22
|
-
b¼{tFçØÐ}:-N|Úéûçp¾¦'ØÀ©ã»
)íNµ-d-2-Y5{ýö\¢cÃäL8ÈbSwfÖ·K2 ~8¡>CW1/1jð\kª]è¹â=}S A³IP¡NT9c*7=MÕлÍ~¦yV.&¤f´:C[s˺¤ãL$%õ~Ñ=}£ºBÓ¿zIWÎÉþpÂchÎr¿Îðm§ü¹C °Ë 1®}êêùÌ+ìôÝ]}õ¨@$íxk= Ýá<û:«dno¥f.ed0´y¯Ê}-{þañ¨~Æa±Ã¡¢DüÀjüÀm.fÌýÅZ;µ*rÝÕ½VtÚi%·
|
|
23
|
-
#rÔàªúw«ðP¼c»Õ°´Þ¬À3ÿ; #,ò¶B®ê#¬¢þË*ª¥ô¼dqÝç8jJrc¤X§.ö@¢¬u@¦´'¥Æ%ó¼aâÕ=}¯IñÖíÕX
Ü0,¼@ÒkðÕª½GëǤ|}õSk³*!eÄDËf 1ÌT!Uµ³®Ççú@QO1ÑxL Üb$}* ásÄú9ÆP10.\2XV6#íDÅåµfpT)[Éfêùh½ó¡g&TSüÂ^L-_9ì6¸* ǤÜq;ÙVN
|
|
24
|
-
²ï¹ñ|S%Ø"3ß9¥4ÇO1¾¦ïZ"âPuÏÉ¥ørÉM¹Õùº°'~vÉå ø²ÒÅ¿³Mk¡8ÉÐsæ
óvºÄµ7?äµRykDÇßÀhß-\Ù¦Îñi¡É$|¹OBÁb¡5ö[¸ëc~puÏoÇÝU)+ÂÀâµ·¶ót¸EöF%yP÷ W¸<
|
|
25
|
-
ÎvQ ÆÒ= ÐÅn¦yêj,ò¡'>gÚSWè
|
|
26
|
-
ïZfZpÌÕ:¢ »¶c$Zöq3||r¦ÛCy
|
|
27
|
-
ø½Ùß@)÷¾Ýì:+ñq» ÒÐîèü§kæd{Qî¾B¬KÃrÎlxÙQê×-3·Tù£ÿÇñÿW2§ÖUé#u¹ÉRSa= Ñûzð£»>*lÝò¦ÿdóðºÈMÁ³Ü®âO'ëÔk°÷á|wF SCO{c@Ï ®P2S~Ã<iReYÙg>
|
|
28
|
-
Ù:Æa,ð]2Åm-¥<îÀ˸Ô7Ä
n+7Ë(Ú¤ÎjÂtIúý©ùª4ÈÈܦ¿s&è¨ÔAÎ2ÍC
|
|
29
|
-
V¦Ò°= ±W¤b]xouyKa2E¨~Øz9tR\f>Ë»¾Îÿý´èÙ i³cÒrjÅb;¯Ùàcñ3 .Y]¬Ñù3ã@ȶҤý(j]¡·øuºÙþÛx4= e× ÝxQRW"ð£ýs4:x_²3ïLf>òðß$u ÈeCÐÆc-êCJÈ.Tyu@[Ãù2àjd ±@®>-¤q)«\=}Çé$ÔȦþÅ6æØò_ÕøËM_·øE {ðâËÁ#øcªÖí.©¸~FDÅEÏáûê¬ "ÏÃþ%¾_¡þ±BÈiÖ~yôr}J.$¨Ë«¿ù¿Èdépñóu#¨à娨¼¹§á
4ÚQ@?¦1D¢Xmª&[oXBí= ABá[T%MG=}GÆu´(>= T$èlD\+3
|
|
30
|
-
øÒÞe}f£« :ø}¦gz,z£üv·©¼iç²"i"^ÛÝ=}YÚ¢!Êtë3\ƾ~ÿ_<Ù_ø÷¥ÌW|µlgT?4yÂ{Êbmen±Ù= -½GëÞf2ââºA4æsäzuãF{®e´ÏËñ,ëb°Slö«o6êÅb87Ù¶»LÏlæn¬¼È4¤õã-¹w~X¥á½YµÕÍo¬*óϦùÑÑ£Ò øþ>¤)ãI¬]àq§È<Ó:)ÐöJh§ÞðQüJÏß¼çõìy]¤Cñß¼yüêqNìy¼ ÷5¢yݰáYý¿5ÈQb¾ª.LÈáÊ/%~Ú/ZÍàµkLgÊ/ZË">Kk®§U¢ãFe¬1óQP¾= PñLk),W'÷T>w£¨Nºû»Fj$/«-ÚB?lT{Hqæ·~+cU¯OBPñÏr.E¶Ð#ê¬wâ¥ÎÀÁ~§$Üì²3+zxe±12ÔöAbc"QÃAs¦'
|
|
31
|
-
>
sRP"hÿZkOO÷?^%àRÀþÇ-S««tòvå{½^ùêFvéÛ~M}×85§W¤T°j*tºbϧÀ#ÏäiÜûÏ(´ùЬgH}RHI['Õj¦TXL|TåFa99ÔäQGå@£÷Ö?Ê>£M&״˰§ÒwG"§ Ë"'o[÷mT§W ßÌ"ww*©%ê¢,tÏaSð{k}7êkÜsïÇÀXYs¯Ç³°SÄTèàJÏÓ$ïÖB7ÔáQ=}k¢EþűJ;wAbF´ÖRÓt
|
|
32
|
-
1z/nyÔNrV£W<xJnÙ0´æT.L»æ&ÜÈlF:fÒM'¢ÞkçÃèJHhØ']¬Ët¾®vI"= SwhÁ¦ìÏÒfZ}þñÞQÑJ ñ± søcûÝ,GZS¶ËÀÐ,áüDdaN òÎå?·7{!NµFa÷D«³yÆ{S©Äª|§ÐÇwÛp#}]A{GJ!,½DÇåáTëù#7TwQ9ÆÄ³æ¢·3r²
vð÷
À¥&Îq;û´Þæï«o©¦<Tè+(£¾Å¨Y@áÅ:¾]bhT+£ìP3r#F(³ZØ@.jj¹ø¶á&¹5=}Ù¦Ñï+;ÿãUÌɹØoS®f:%¾t_"0/»m*þ¨JMýÁòã°HÌhø¡ÿîdÚªøÝcT?^q-jþ-H(Ù\ð¶{ç\qÞoTÐ>-&0|4èo6ÇÈgAÙÊ«ä&¨
®½
|
|
33
|
-
Ôâ×çÄé}]YøÜ~#Âi9Ãàl¼Ô´1Ú=}»¢ëi;ûL6¥!D»¢´Ê*¸A]Úwâ³vóCÙÀzSÖø ýjÀT©äSü$¬õRµ[-Výç=}§[ íTFXÐEghiÇKT7=MOí?À¶¼Kp¥%g˰K§ syPEëêÊç?ÑØÒÛÕx©'ÕU©çHÓ^+= C1ez%
4{ëý)Ë!=M4-^¦#S
|
|
34
|
-
±hçTï0dÜW5 Âdxâ%¾È~ÓdûÛ«>ÿ'*_ØÇó«NñfwO2Øg6#ã×à¢Ç§¯ÌäØô§@ýW2¨lïSmÜèôOÕðgÎG
ÈÿÒ¹ØÌÀc¬Ä9Õ±@~ 1Ë1´§â¥KéLÐ3P÷Vsì´xÐ$OOix-¼ðIÈt)CALr¸sG&íXcÍËLîÃÔ5Wp= ÷æÙÅ
|
|
35
|
-
M%V,Î.ûDÊìvêK=}R= XÝ*tUïp¼jÐÃ8e-<^{û¿À߯lONGïàç¨,cq%ÜmDTîaõó7tËl«wØ»!)^(õ¡X0ÀUOg2{°WËälüÊ1]G6Wô[1ÔdéLG§9±cWTúÞ;Ûת¸ÀaÑ6¿}ÑÛµPb#hÔYjæÜ£Uß ñÞÍSó>c:DeÄù'¿6êEOo ´n=}øØéÕdBØÂnùA_课x÷Ë uRVx'ÿo^Þ¬´ µªF1.
u@;Ù>߯N¨#{,=}
Sº,{= 6S
_«.+®7ÀnR´#ÜÞ2/íº}ý=}¥ÀæY¸È%¾ PNùéÎ6PuW÷ßpÈPL#V÷gUã!Ê,{yÅò¯ªÝ§å·õVuNŦ'}p{âzæWô-0bùN}ÃÙç'qQ¯ö= 6
â;0ØwÐ-¬4>Æ9=M³W{ÌGjU÷S;pP³@(%çE7Bv1É9B~ÓÌkÚ«9'µÊLn&ÚæfÀøÀôê1iInj2ç÷M~X2=}wÚÂÖPÄÀWk3ÑÕãóù5çúÒb vEÀëÀñÛP§V
I7V÷Ì©ÜñQ'ìqç Ôî÷ºnãªHÂM±X¿Ý©Ê$¥òf¤x4f?!·vÍÿߦô^ò:&6¨$@½0$kVOù0»D÷ZâËòýÖuxV¡íRUÜ©= Kðì4@Z1ï%d,éB8ã4?ìª{ÎoP'ZG]7â]ÖøªÔßÐÕñ"Èt»åeï*Ëñ²3~>oáôºÞ´þ̪pøË\à<½ÅKàtÄHqpøR|ÒËqU|tm£>t}×ÒÉå'ïH¼h¿¿³½èÞv+±0ed]¾¶:¤zkóÂÙMuHURC!_0»O´ôøüÁ¸¡^§WADþîÝV×WǽÍÊW´)ÊA´g̯Èè-¸ùøý«pthRÑÞè2AöðßÅàû·NÀi=}·KäJßÖLCó¯s9ã
|
|
36
|
-
x3[ÀÒ1õ¿âÒå¼%Jsç|Íp¸Ð+ÝǼ7nÆc~û
|
|
37
|
-
ìtÉaÆîF=MÚ.ës _&iÇpHÉh_yXÇD8$DZ®åç59Cª÷ËQmÎ"8ÍwÖ¡Eé%ùGjØ,kÈìWxò«Km«1ÚM¶É» *ÿô.!t
|
|
38
|
-
n|®\= ^D'%wª1°t-J#Ç7ÎÑÂÏçjwÄ£<¡,ÝwíÈ·µw´æî!ñ.Êyk¯ÝsSÞ7¬SV.²3S$la&3íܱ:[®@vÛ\9õû¹õ·JöÎÓtbß¶#)Ì*%{%ì³åÚ´÷ (®±º¹ÚwcÿçµQþàN.8¬uïVPlç·Ñv"øÂ²xåÀ%3,]>VHf¶)²c@m_Æ»'aî6év
|
|
39
|
-
àýðHÒ?7´-U°NÔ ÷ÕqJÁ-®ÌFfîöÁ£ÀKíÀ:®ø&m¤8É^JÕ7.Â=}+ ÉññUlÂ&Äfõê_ÅaUF×ò= ÷¯ü8ï;¦C¯ÿCa@Ï"=}³«·Ú+^VÈ®¹0=}ø<í®î7t´{Ý%ÍQ9éâ³Ã¸Jªî®ËqR9vnDãôêN2~]Xn®àÝ.ÓѤ¼:.
ôñc0¡Qy_ß3= C%[p:_MZ¡ÁHÈù-ËÓJx´TåÞÊE8¯= ÑZ= 0îÙ1Î:¦Ä3ª¦(ZçÎÒ£>ê]½Û¼¢±÷$̹>o6S¶ôAOí= ûO>{1º¸ìn0ØFèì|Ãè)ÿXÇ/ÈÿêôX¼+³aÐ~ÐYZ~p.ǤW¢ù[vàt~ÐDûcÝÙ ~3»µ¤ûmJ,À
|
|
40
|
-
kÉu´9"ÇÚ/1wQP"YÏz²¾~˦!%¥hxÐDÔ&
÷t<S4OüWK1v¿-íÍP|±Hãô]UÎH½HÆã)$Êà¥y,K&HÿqB@MàøQòË}0SÆn\7«íÛ3¤Zs³8¢È¢òú¦ÊÀ?²8ùÄøsh(Ì.ÈÙOé
|
|
41
|
-
Ú+Þ|VÕÊlASdéùÞÇvØ9@xû¨CMÕRþ@=}:GáæÃLã°ü·Ø4JBä(«KÂ)&ôÛ^\¬îÂM>¥oIóÍ$½
|
|
42
|
-
½Kèª}yå.ûZQ±ÚÏkyìvìÞìËØóÚq¾í×K#¡{ªÜ9úø§¹/K]ÕVÙó©"w²;Öûí%= B÷ !+¬N&/%ÉîÊ-0¢ÿq
|
|
43
|
-
G8'QW
|
|
44
|
-
XUâ?Tg{-=MmYÇQ)¦ õÓ2©''ÆÍþñ¢üH¦þ¥Þº= ¥Ë^!Ç l>íU>Nä¶¹ïJg¹VòHÕ¼«¢h@8"dp½n5m]NFð&¿|Ô¯2Z9×ÞVsöÀ-û±«cM¤£= °¬§Î¹e<I&ìç6\°$<×¼möS¨& ï¢íj¯ÏðoÚ§¹T!Û ¶êÙkôP"£sÇ&ÔSÊl6]GBN¤=MËíêÕ:´
ñPS·×Ã"²ÇíkW^S=M£³ªúè½<©ZÛ/y¡·C§Ü§Ä9üY#ê*pÙçÉU1ÿL7ûWGQá ÌE]Ù¦EÈÂjAK,DPói[y@׳XP±,jFº?k3y[D\VKø¨ST5
|
|
45
|
-
ïøFÍrVn^ºR=MKH¬àí\7ØAÎFVþý¯g¢~gx1
WÆëÙ¢GÊ=}
R5ÈâõÓh÷øÌüÈÝ7ÚÛz.²Ú
|
|
46
|
-
.aõ7öÙ3ÚbÌqÀbÔGBö·Z[ddTòK ªE;ª"IEö#ЮÓÍü1Ä]lwü0ìLîQgÊJ]×-u¯¡¢ÊKfGºàP£¼;£öV÷GnömXï3¸Ô´ÒôÊÁ_]ätxPæ?Ê7i
½vx?"ée2U¨Y;{+É=}ZÒÈêÎ{ÔH¡Á5ÉâLP
3{±1ð: Ø=}G«.R~ÜP±éM=}¤tµKµûKµjæâG 6Ù³ßpåç6tïÀù¢¢i9³Q³{/CÆpæÈͤ¸¼ÅgÊáVÍ6u1u"* ±ï\î¿kª.Ü}'¡^5«tù=}<RÜ©!5¾¹ ½?P#üíôܶ/ÿÅ_ǹPëkó¥±EI+IÿËÅ!¬ßx½±Qä~þ\= ÃÍÙ<©ù[9kw?8i¥üH««§}ûül£¢
|
|
47
|
-
ԶżËù|¨o§Î½yò ¨Î\éßæ4IçbVY¥ OMg±(gabÌ}gè ~ݱ®ý0<Îñ¥Â
s[¾(BþWãÌ/åBb:P2JU2=M(}îxn|q9°bcÚÑä /óÄmállªÿ «¨¨(Hf¡ïo Bì <T&4ÃàÉ9ËV¿OöGQ'$1b3»= ñÔq£Ã~d̬~GNe«lu ËìZgÃÜ£gß=}¹Ìg·NÈ=MÃgg$1'áé²sñjø©á¸*qìCé6ïV¦Å1ÿ´¶ ¼ÒÐÁQñ*ë°TÛæJܹíý9ÿ/Ìo ýâ0,u°àåpA:{,´*&hÕìÒoéCÕò&iRX)+ßÉÆ¦<ù¬ÁÐÈ;MÖÈaÛðtcn=}.´zÎ3ç5_órÞ> ¸eK0i0e([3d%»ß¸ºpòþ¸³ÞùÑDXÄÄpòjz²ç?DÊ÷âûȤòw1^EÃ(T~¸CÞùÑÄ_d%»b¾pòÎÒÞùµÀNXûKÎ~5< g)9i8<ÂW°zþ¼æç?4ÅÇ
+ ¬ÊGdîZ=}£N#"ö²¯_tDE1³üÊqª1 ëÛ>¯)OèÙѲ CÁò:¤Ô+I÷*¶¾s¾Ue;ñhAÂgEè©ü.úl
|
|
48
|
-
¥Ö= Ú~±+{®Y Àæ±² LB§¸
|
|
49
|
-
Ïú¹þD7 |hæXWRÊËé4394\VåïÌd~¬ ¯Z¦¾dO/Põ¯OS¦ûÿ]nàûùȶ³.
|
|
50
|
-
ÕáR¢üW8ÓVÖQÅÔR^ÔÌÂÆÇ¶\6ðw±P®ñrÇÉYÂÒq"° <P>×E
¼¼A¤öáR¡>U#úÅ%³ÚÚäÔ:{sæ«ÀÄ4ÐÔP _¼XÈ/ÊÐ6sÞ$Æï?Ð1
|
|
51
|
-
ü,5Äq¢ÉÃ= 4úe6ýñNÃY÷Óy÷AVʹOÃ[®©Jl'>F
°XpÀä]϶àñ§"ôòVVÆ)̱¹l3{þQѶþ
|
|
52
|
-
$fÂyÙFÎö*øå«Ã¶³Q©N<
y*;=M*è¨
»É ÖàÄ=}©Â)36ïAf×nhÔ² ãÆöP\¹:îhsÅÚ+ÇúëDÌQõÄu«2(ÉW»½YÒ¢¼V+·A"51Vïx7öé!@heùiQC¨2ëúC¬6ÍÂÀÀ¼óEÒõ5O±PW/Ûg¼.0µ{LuUÚû>ÍK{ëVT÷õ&æaæ06m³M(#[éRªêÒ6DkÁÛ%Höç²%# ³uoýcNìG'[©[øDæ¼¶õ=MĹ^YêDus¢8°c¹{îfió¨¶ð(^:âæi{m\vÆl=MFzA6LiýFxÊõ°Ös Sàöv¤M fü@Ð9äE¬GNA$\ýXj 3ÞùÑÄZd%»¸eKðÚ5d%»NdK0d%»¸³ÞùÑD00ßÁy;é|ù
éT2¨çÅØsÞ> #¸ý¹ÀvsÚqÞ> i°'c%N´èú;<æcýüOÕÚ«§ÜþtÎoáèí=MÛµ¤>Æ'kBiÉËFrgÈzoÕg¨y%!y¹m Õ¡¦ÌÜF³gü3éßjÄå³f'ir¼Ã'NÒõI¦RIW'b%= MmAëÕ[ß ÂÇHU+éÝ·-.zo <máÙÀëѦ÷59á¡< !\ùAãpäaÕzl0ëJÃGY~ÉüáîCFBFAò$Èxúâx= èxYéxáý@òüèÚEZüAÆåFCvÊol ?ÚSüKÏj?u'EÕ²ö³Ñû5KÒÃÑ6Ó×FW;'Â[{I8ó"" $ $ $ à§/ã¶bþÇ:Ø<½,ÔJõµÔ¬Ë9ÖKTÞJÚK±È½Qtc&ÿÚ]?&Ú˿ѸQä]¿öÑ^¸÷²¿,^zseÕ· H'ê¬_G'ÉbÁÓ~²@ÎÍéào±îìÿõ·ÅÃÂuÿDâ)¤
398T|uEAÿgìrô°'¼%éÿºvtKZovÝY
µ9ñaîÒs æºÅV@×f¥Qù_-+HîK
<fkg)É>_¨Ïè:,mLKßQÕÅJQ²sI®wÅ&;üF¦G¤?5¿}ÍÄE= ¬Úaû2bë3õ··Ð6¤©Aâ5D3óg'®(Tðfd°[Í'ë#¦î@#Mv,=Mâ¯Ë QùÒE7%ücÕLV=}Ò=MñPÚÓã¯fÍIwfMÝÛ+Ú³¹UÁ3´Å¶ËïïvD°¸×¿è5 ÝÇ¥Ù«(qQC
|
|
53
|
-
2,]Á+Øf5¨_Ö°[æ4QÊ
4ÑlFÔÃÈ%Oav}ÇÓ¯^±ìñwóüC0õDbv"æ¿Q'"¼îõPÔ
|
|
54
|
-
Èò^àçà=M'99ÒM= AËøGÍ·5§
|
|
55
|
-
díöSª®ùÚå,ºù~dÕñ0v|NªûºõÇ%f ¯s]l¯ÊÁ¥Í²ÿýÆ,ÀÁ¿ÄæM¾ãXIhÉ}±(ÊyqKHòe+?7
=M?úúq-1ôåO¼Rí§òËue9}d9DÌØ 5±û0[°ÇìNp[ä
hÎeª*Ãfà
Z¾WáW¥ýwgeºîhbïñâ»IDÁâÂÝú|¦ë&¶3®>²yææ@m=MT)V)Zy ÕhlùKaçÛG\2é 8p*YA¼g£T±¬+a*Ó¬q*ÈDýèÌgÌÚ ä¨TvSl4zíÜ^éòÆ\«íÁL¢=M>ÒQîéJò³pOùù
Ó7æTRì¿lÈÏ÷³^x@ùÉA'¥5Czvì:ÔVw×xv=M?ø3V'¬uç5úYª[b<
K©Dø´=}Z Bàjß
ßû1³1¯ÃÒ$\÷
|
|
56
|
-
&[ÌvEõ8!ü²6TcZ:¨1\.=M»_Cí!Z }Äg ;IÖ:µõ)u.o$[p g¨#»F¾ÍØÏs#R@õ(ªGñ_ÑGÙotÐc8 É´(Q;Ù!ªnÉênûYÒlç½£3Û_J´tOuPêç.§Ö?çK^&ÃI$)¦aägkãwXM³uB7ØW z+}u8zGØ®[_Û¢Ü(÷§y7FQ;QÆ[»ÅÝìS1[û·ßXQû= ç6nxÇÌi¦¸ë!k9ü£jqtÈÁ~R=}_è@ßNçz| cí·&!ÈÇ¿£ª6}¤ ºÖÇTQ1¸ÀÞZÑ¥hïý{ÜlXj÷pÞ|¶í/,P0l1»ºÖvL :gíSÕs5~OxÍ«²)aJ¢= -3ÐÐókHóG¹3Â'³±C¼]CåB0j#¸r¢W¶ ÌØ!4GnøÛÎÞáÝÊT2ÕlÝzèð^ÇöuòD\ä³ Ï [_$ܸ־û¾ÞuG¼ÀªÀ ñÕ.DhòÛëhsññ7¶µÎC»oàé¿w(e=MÁ³tª³\°Ýªù<BÅ¹ÎÆGa=}$9w~d2Íù¿ªl-ìö·©Ò¯°Ö͹Ö4^LlzÆ)ÍG%Ç·M5RwÙÞÑâ@Ô= ÷-wT×L³VRGѸO)ÛÖRãÐ,ÏÜ6WÑ9ùã¼I@ÞK»Å{'U M%ì:Ã)°#1² F´¥:«ðe;n7<͹ԧJpv ývõbr^wdRO±o2ÿÁgØÛè/Jð[UÉë ®T ¦£¬4¢ÁO¤¯Üè'Þ}÷ö,A#ÖÙîßf.Ûdî$È ÍS8®õy_ã#X¢#â¤' ûÝwxÊçÑÜn/òTé»
|
|
57
|
-
è»út)lTÞã@äè{G¢hoì.dñ¦PÎø-ë¤nåþsÁF *õîâ ~ü°õÅ|¿MòÅáb¥s^9Ä Ý;ͼÖm·)zìñ%2:¢
ÊÃi|dPzÏår¶ð¹bçðn´ÝÁ©üÿ¥¤Ï<ѹ¢ÎãTì|o°| R6M+AÇ¢ù<oáhCç
|
|
58
|
-
àh¥à^Ã%ÄVWö·MÑ4
â·sI1]¶Â
|
|
59
|
-
NK¶õê¡l¼j4fã¡ÈÃè±³¤MèÒtS°&U(ÖºCs³´
|
|
60
|
-
Ô(ÃaCóîìÓ0¥:TÚä]MS
ݤØ~³*Ã$UÚç-Ä0kD ²°ùÕisìþÄ¡hOϹv±£a¥éÎ[´P
|
|
61
|
-
D+8ÖÍ,óº#}Up\yõ:ø
BlçôÐÌ#ýðò×
|
|
62
|
-
Ѥj£àaIøj1
|
|
63
|
-
!HVRÒÊ;Ó@4iµ7=}EüøÒÎoæäi5
|
|
64
|
-
Ä)·J:~"iÙ®ßóÓK<Ïrj¬7{~$ÄGaqu7ØæÀ#¹WgN¡³_]Â«áø sêön*f.º*'æpiçáÎ!Z1zߤ·Ö)vµ¨d(xefX@4ìtj;r¢ßÁßP<³_ÂÏçÔh6a¯ÍGβËG\yÜ5
ÓdÓ]=}hÛMüs!ø"¬ÝKO3é¦!-E Cε©&'jûRp°-Êþ(>uÐxëûºì¤:ìãRu{²ÏËãúå ò®#9¹Í_%»RÎø&QY
|
|
65
|
-
òàb)à}]Éa¯2Íßç{ÍÖ ÆX@ÚA«Íc[lèk3wQ<ö»Ù¹ç}í;Iòv{Ûæ'Éÿßàãðí¢yÔF¯Bk ß'aÄ[÷æa+wmO§ 0öº¹i'ú]}ÈF´¾e±©$uëµ7:
b OáKMµûåõb?YìT5¿ÅÞ6ã_OÛÒ¨@,³ÑæÏ5¢ÿÞlç3ùunbÒWÐó4Çë±ý3ØBN¥#Ñ'ÅdnoCÒÅÈ vª°Y¯7ð}ñi=}ö,ºp´j&"'èÞKKe¹@1©^/Y=MY£¨Àdý«D2ýyÔOª5 ð
G2âí= 'ïþ¨.E^\âãMêgrr^¢Z+'uÏ!¥èm ?ñ7$ùgO0^K~4©ühmv½Js=}r
|
|
66
|
-
7yÓ(FsûFºÕy1ææÂSÌ5jRçÛUíÕ-¸Ù°séĨbò¬ÌþéhÅf©é׳°Xfùþ^ý
^3>úû£ AØ{-qaM
1âq®Tr¬uêÑrGè娪n,Fxev}å©(&©ê6µú;z]ò[#àïßh)h%
ú=M³2.i-Ø8ÆÉþxº(W vàtßú}©Ú%&&ÙíÃi#&]ÑÍÄXJ9þbÙTº5e(ÂämzÈõûTj^ikÅæ{ºRäðôÑø³l÷ZÙÔ ÿÌàÃ2ÀFÞÖFèоùEçÂ!_3æ
|
|
67
|
-
EÇK Å+]ðZ2@àçu{}ØnMÜñ¦]ªÇL/5ruÉ5ù¦¹6Étd<l= ÂiÉÀØ0ÇuûúyQÒÃ!f1lO\vÙìv,×@és,WÃØUþ]0MXyâ0c0%ãMD»c8
ØÇ_HÕ*åXßRyp¸ç®Yn%5\0[oJX9FÐ'êCX-30]뱸íÛË#NE2ååHòñ-Îë= ·£¾iÍÀµ[EE¶\ßvCÜ^íÏØ®é
"´MJ²lHjÙ/Åu¬Gm¬û-FÙè²¼ÁC¶2î>#fí.hâ±
|
|
68
|
-
ÙïÉhQ<\Jè]bïóz¾&ÐÄ* 0%Ô4Ä_I8<yFü8eÛùD¼¤Cðî0j1/'æ0[
|
|
69
|
-
¹=MÿÃFfçtJq>Þ@èà>þ{nÝw¦%D¸°Û9ö|ÕAÃÙÖà$碰ý,RèÛ>ÄW(ôQo$wfã¾SÝw'[U|ð\ôN«¼"ai°ñ{²k}¹mñÂmÑð©æÓH.é°á= k²ìüýêô«ü
?+|Ñý·l_D¬£ÔrÒ-°
ÅG¸ÀÎòxÅÏö{ê.ÝìÊ#
|
|
70
|
-
ýûßy9ÃFß²±þlírÜ[FNrñî}¬Ô§Yp=}rÖ-mÂ~ïTÑîÍm#Ö¶ïç]K&)oî¥ ô3Ò4Ëa¢©úd;ZW}"@à@uv Yçðç$=}F¤Ôi ûÑ®?öåÍ;ØÀòø=M°À:#Þx~«÷7üÙLm#¶RìÝ¥r%qiáIx¡\5=Mìûk,)
ÔY=M¼+ T>ÒY2±ÂÑ1Eõ¦j)þ
×Åî98Î"R[ÉtƦ/ HZÅ{$2_¹ã Ä¿DÚ¨~[èÜðúæAà詸ì|z¢ö¶xºqWkÚB@Âì+dÌaÉû/ÖÙâ4°êÌ9°VtÏ[îAºy
Å;¸/¥ºuñá"½ïÝÎÀ_}.uòöîYTá¤"MÈp8k±ýzqÚ.}:$vò§?¶'¿Bné¦ÙÌJÜ}ü³ýæS§þIj[úlú£ù6|ý1©çÌIß\ÿ³Å60
d|ûN5·Ó¯AìLR»¦ôo¼TwUI¦¨{;xîtNDÓrÅlÁÿñÑWJoþAP&Û0ÉtÍó0$õÐJ㥠ÒZÎ×Ë(¸ß¯íåÎk:×5׿rXcúûF5a2»Þ-
|
|
71
|
-
TwW6¯ÿHÔo®µºÍµnõ fK¼r}¿Y®Jõ_?Ñ9e®ós×z#îÄï¿´6íÐ{q´¦yI*xOËÏp*;yàûþØå¯?ýÊê@¡ï¢BßYàF»áJxhÛ9ÞªìÀ]zq¬Ê¸Ó~¢l70Yª&Ô½ñ3×cÚl«¸>ØHo'\×\×#|P#þÚÐ~PãyP»ÔPHo³÷3ãÛ8Ç¢ÚÑ9ÛPàìÔH/ê8çzVA½f>V]Ã;iDcbâo´Â#sGa_Â,
|
|
72
|
-
~ñ¾Òf>*?n©,TQa?íëd¦Hqj,ÐöL0SÏȺ9hnõ¨ tÖ_ÛG2¶ýýV°.®;¸ðëë/1½ÒôëõQwªÈ-¤3¼Æ½èÞëÝèt}·õÐáÁéÆüÆA,Z#äÉ ÊñLd
éTË£0ÆçaÞá¤|
âôü1Hasð|8?8oAWh}(SP%79²5ÖLß×Mù5w{ù(Ux«:¶²Ò¶:$\%ÍHK³´K =}ÎvË¢»FV¤5ÖuW¿B&C§ÂÐ"% «}¬;©°Æª«iÅr#D+ m"UÐR ¦?Æ/®a¡Ë~¥oDÉV¼cNS @öî&A³¼ú½~âæÞáyµ×s*°¬læ¨âP°ÎåVf¾#Z7gD²(\Pk4£}ºSPî³Å×ä'"ZaÒ±A¡Wr+þiì½Ì¾½ÄI3äÅ^¿½Dêåh#'ZÓÄc2*J!¨|)-=}ä&ìØC=M£-ÑM/ÎÝBÍzðãûæ= 9ͶC3úµ8t4®=},]®ØIyeqåÇq½93ÕÔU#çVçÛ¹=M2,J²ðf_vGHÃÞþÃ.^ë6u$YÁ2ÁhAÊ}èa*1] ²c%ô]²Â5ÍcD©Û²úä0Ê¥)Cóå¯ÂÁéjßRà&Å,,ÈÙ6¥JcIGñîjå_ûûLÇLh§ÆIpD>RÞγ=}:J±Ò²ÊoçÛ= ¶×Þà\£p#!&ÏÔuÞCÙ",ä{©3Hõ¢Iöck½6zÏçN_Ð÷ÈEXDs«rÇPbô&¿´¿J¬ñ@bd *H-p7ë@-Þ>éPySß©Ô#°1J¬)gAÌ@U>ÔE,§j]$límÃJn/ñFDÍSlð×l[:3Ü=}ÛZ3÷°¨1úF´ûÒõÝB º.NÍÖ-ðAú¿mC/³¹Ñ6ÿv@±oö¯Ôå·k-
|
|
73
|
-
;_×B߸åöÍÝéãÌ\K¢"ÜÃW2©u¹oä@Ry{E¢#Úu§uÝÞ=}Ñäí]KGJn÷ܳO´aÏ÷H"g³ò3Pê+Ó* v
|
|
74
|
-
õ/´i-å+.çTz§L nKá[HpNXXÙ=MG|t´+¤cëJ[åý]Æ»B~!ƾ´½lÓÆqßIcâCèѾoïªÇÊ"û~úÁ(×-ªTw§öOú&°XA
|
|
75
|
-
3ãeèPû#¢-.êÅØ$°;Ä´Ö#[=MÑnÂê%-¼¹}çg·½vËÕªé|ðoìlâp_ïäÕnü/ ÍVÊR/âmÕ"PU¤h(,³jÃÄS4W£]¸t lãG{4´*7»rʼ<rqm= m$¦iÉuBkK{ý:Ë,(ùºÊ»WF®²,)¥ò¡HW»~ÈàwåhÄÊÞVº= ½cÉUÝj6×é
©:ÝW<èÓíJÈ]¡ÄóÔtÜu$;¤^%sújf´ÃzD[)ùWDI&0ü_Ó=}Î0Ê[÷ÄzK*Rʱ(Òm{é¥If%p}o¾Ã7öTö9ALY$@CÔðÔ½a¤ÑÊI £5%=}míAl@#ÙÔkÜ4CYÒRSãÊQ?Nµ§dتäàÂ?T<£MâRàÙuLM?-ÆTMBwÎ^Ê×Kï2ÿ^AþtL=MÕé°*´¯@\óo1½Êy¢ÒÎmg£¿¾Ñ颩´óo4U=}ÙjÈpý@¨¿Öé´¿îÞc!£ôJÁ6aqÖkyÄj´=Mx+ù«ý)ÖGNÔáå\ù2Ä$®éìî\ÞTîÖáej¾ärs3ô#Ìb˸ÿJ¹,]|nj;1ó·ï³·Ò=M²¦¶ý¡ëyáNå¿#çRM
|
|
76
|
-
O¼VâCDØZ9=}_¡|³ðöµ°Èã?bÆóG08ìßÚ«í«rI±Äf4W- g¢Æ×¢V*+ªââÁ1¨ = 4>Á£Bó¸0ËúOI3B{߯vÖæu]4sêÏ0ÕÞ6±xE°@Kû>ÁSíèqÊê{Å£âLåc¤ÂV¶ùKzûª)4»üqw:B«¢<ïNº¸ôÞieX¶O% ¨Äé= ñnãÅ[ë·°D'{T®\«mÚW[!!s= °mÒ,\¾eÖÍ{1ß-K:Ë?GQ2¼àÔ½Æ]
D#tºµ%ÆÇ|m(Ùù½³Çî|©ûng9R÷iÀÏãð)"§pr@0ðGÄ$×ÓU_9í?]P÷øåað¼éCÞÂ#£9¥pêP+åxÆáGyg¾ Ãý'Sü§8ùMêFýô3´pîKïÃ*#-ößÒéY¡|¸_KÚËyDC$oFýêZJ¥ª#ÂêK[^F6½D ¯/Å5 _Ð
ñõ¬ÓD8ê}צ7»TW}bë öíØEc,ßõÚêÑ6¼îÄO
;iYÍWvsWÜÙ®1û×W**L£xl
|
|
77
|
-
ÁBáþáw³F6
çvUá6@¥OÍÊ#'´R IÅs¯´®U ö×2 v® ª¹-í[¶äí«
îGÁ\ñ¤Ê©öLÝÂL»Ó)ħõ62q
£GÕJüÜÇJÓÑcÙlÖ¢uXNÀØSÀÕï5$~t¾,¯í{-
pÔN3"ÌÀQNmó5]½ëÿ¸¼»7ð*4Ù².Gaû}Ïn~§OdIq{ÃUÌ<ë·g'4È,(ç ÞÆ=}Í)ȬÎ=M9½òQ¿b¬*¾JAô_ŶÆd=M©þy«r¹K7Îp2jeI°ü¸@ä(j³ÿæÏ£Òc¯(mË_²Mç-.fãzæK'ÌÕ6IbsäG:9FF{"ÛèiX.Çθÿ2®(G9=}¡³þ^À<y%@±ÁTбOʸn·=MÂÝ'Ã-vWÔV¥.PÔ3Ͳd{ÝÞB³^øÓLCKÕ¼Ã4|¥þ Tw"MLÔLBLvO?ûOû?û¯nú_Wâ3CSÉ4m~-¸mѾ&æ= sæ8áê'+P|ÿ0ÈQ<Áã{=M !Hs³«ëdÐ/ ¢¾3ÞH<|Ü@¾xLa%
úò,FÍ÷-
|
|
78
|
-
ÆkÆÇ7a6l!ð´}Gó5ýß=M(#-n.-w®ePi56)ÒÕÔĬJ ¶J ²I ªK©®xS:la$ÓÀ0
|
|
79
|
-
[ÄøÂ¸Í2´?¦¿
ÊùÞ*ÒY{¯tAz ØæùQsqÏÉd%E»4yìªðâ_J²à³¹ôæùQY;ó4;l(æLé/e¶¦Céäu¡£º_8ð¥1:詸lþP]>áê$ë/KKF4-Î*QEc°+Ç+<ÂC,Ë\0ÇËdµÕñU×®7lµG=M¥©NììÁSMKmöSÉuú{·ýL M L8A¥²üÁíðI(íZ²:k2:ù°)¿²I=M³ ±2Äa'EÈÎØ}M¿:/Æ!3>)@ÞÝÉæQõÏò³´:aõ ®¦Kó
ä£.°¶Å)3*<îzHã³b#bwB<ÈDãuåËr-ã/þ5ZPR-àUx¯Lý)°yË;Uõ'?Ú@«®uç<¸FÀçTö)r¹ç7ò4Ó9JdÍ1~i;GäÒ<ÏcPOkF&×T§d vN7©&cãlKµõý?²1XÕñës3LöRê«}1¤0´±dÚè6§xÑ>°Ó!ª®wj³ElÐQTÔâ%g¼¾×8õðlVFä¹5 æë³¬ä
QYòÔJúgJ(øÄIª53×vuûP]¬âÑñÆmÎ-JçîäÃvçôÞ5|>GÆ:õ×Fý«"Ýï´6¡Dó1ÌÏv
|
|
80
|
-
Øô>iêVèè5AH>F¡t¼ºÚå;æõª«çY~ñ§°Q~ÚMçÕºÿCx= çãÒßzôVt¹«ÍÝ= ÕE{D¬0AMæq÷V{DÄV= sv¹?ÂsaPÎiÎnFpÓþqûMñ!hÕO!Ëá×}m¿<÷oÞt=Msº¯#æêã;Pò1\Ùdû±Þ)qÞv>dì;&?¿xDN_= PÛásÉÈ«l'âsÉ;þÆ4lùt,¢ù¡1µÌxÒ§áV5÷ÃOÍæ(襁·"L Uä7S¥{ê2ÞvZíÿÒ]¾/Êýäìg¯q3Àì÷\K±¢g<xÒD6ÑrG\dVVçèmÍBþO?º.ñìÕ*:Ó©Â"SÒÈÌà¾~Eøì0vºt|é*úí2 /ÉUÞÞzyËe¥EF0ò¦ó.X¢<ì)=}ú¾äz®ÒȳôÌ&;»4gÅ Äúîõ· 9wBìòPæ§EâãwE]à²ÊA«g#÷î>c?PuËG¤D"s¡B&$¥(fUz(·µª»X(ýâkÊpµ9¡ï÷,)ï
|
|
81
|
-
ËÛÚÖZ7LàÝCÐL˧³LÝ*~äI;ð§ÛÁÉoÞJÓÐãlÊ·¾¾!¼: üäSûß&)µmuc0aU¡ì<£l}ܸå:¾$:ߤJ4%kTZRæÑm®8uÿÈ8vÂÁÒ/q¢âÁAh}+zgs¯°W
ObÍ7ÊñX@
|
|
82
|
-
P½F:PÝõj¬= §hãÃbRDt¥d¿ªÜ®A±F\®Ð¹
SL2¿OÿùEkøí¯6¡aãh{?gmU·ÙÔÂÍtS£À?å°±TJëÿ³Åyc¨X]DxÙ=MÏÑú"}KíLX ¼®¸YìÑÊ´#ÊGÃ~
|
|
83
|
-
\ õr¦¼©A»zok§äÿ^F³+%Ëäâyr̨$_:)WDº¯sówjºXIÌ\õóà]/ÂcÎ2 .þÚjæ½uTÕiËîb³ÖÇFÙ/ÕÁ
F9{[EÑP åe=}QòÒ= Í1 ]SjúupFnÛÌnkbÃÑ!°
|
|
84
|
-
y·îêUìÆ0KB£,Å|üÊjl Ýá?Ê®Z¡í²ßÍU«ï*øCèã±~N¤DÖA 3=}eãåù<É vÑ7ë¿GzTDõê4ÛTí(¨Ñf¨ÏwF\DRéw%,s´Ò¡ý²càí«.6µâ]
»ú!^2/Ä@©"Á²32üî¯;ÌXtf2R*¡Íü×AÏÔkêÊÄ$¼y>
WàË÷¤:ÊÆUi®úåËÇu Êî9<Í¥®=M̧½î%2l+ã t±:½.fµËÅùå= øÉQ::=}ÍiR¹Ó=}¥Lí½'FðB8§»8mûç³SÄÏRÍVöÒõ÷&J?_ª6Zü7ýd¼aä9Ú'è/ê{´ïÄÍò«Òñ¹6í:ã´Û/ôoµÔß
ëBnþH:M!¶!)-x%¼3.9Û,ËBõ¥/æö%ÜÄz ߨzÙyëfõ¬M Gs8J¢¾ÐûxÅ?%ÏÊî&«<Ô¶3æÒ âf yAlhènîÈÓZKõÍÒhò<4ôËý»ÿtú$&êfн{´ßÕÝ4¼÷~¬ÀkûfC\/kòx
ó5ª¥®$½ÜÜ]#áÀÚm#b ð÷8ñÝ/YK÷9ÿäîpå¥gUOG¤È¹Qí8íB¾ÉRÒXO¿z/{/n(ìÝ!óî¸5=M_Äí»H¡æÿiVXî6¿ÜôÆøN¯õxs=Mk;RùÉÍ´"õÂ÷7év-ؽ1¡Ã;^¾¸-bwÚ½6VÑ3ÉÆUë¹uJør븦ýßYCÁ _Ðè¨6AâEó\Ór9LоiÃuÂëH
|
|
85
|
-
yãxt3˺OOß[°wÅG7ê)÷ðrc-ü¶oMõÎÿï¶³Ñ3¸x,åb%²&Ywp)£ÄÕL-ÂDå_Qàð:Å4©Û¹v$D&èió¤ũÒÈÌ#ëDTIx¤®Õ1¥ IWõD3çVtç¹YÞ/´á¸÷hLÙY-ªã
|
|
86
|
-
Ô¬º5N$ÞWÚóÃ=}å´Ãî¼÷þ#K'»'JöM1*å}eQßÍlǼ_+ÁÐQìì¾8 Ðl:>"é§³Úßõ¬÷ NL>G¤
|
|
87
|
-
Ykj¶seÞÑå4N/'ë×8z2p¢·cúñ>k,ú#9¼}ÁîÏÂglWsJçɬHW<_W¹¢%-ï6ôÊ¥ ÎkÑ0òÃ0îí½¹zÅþ-[ý®ìà~À{J¶j¼Õîðöæ!)GUÊÅS
Óº_@yQ% [èTôåQ É6ÿ*示ÿ]WÄyé ï= àhþu¢íÜnIþhÕr'/¾Q©÷yDõ«Å®}º®Ès3Ȯ֨ÖW2= ôñ)¾-x;ÑÊM_<²6ÃÅ&÷=}ûçÿ\6³bÚèZáò&ø5¡ÖI÷ÔL¯*SÏCÎObÖhM1²=}aG4B$ì¦cèû7Iu7Ihª£×Ñþ<#Ö>)wS"AßÎçp-'ÐHºMÉ^KRÁgúLã-P}Ã8EAã-Ë@hU!)LÆ8qö);A±Î'úÎwçD2¨~N¡ÓÒ/Æ¿ÏE16MñB{N¤Ý°»¿ÿE1BDm7Þ²YòRwû¡ÃvE¼g
|
|
88
|
-
£ÏWè¢Ëå<0#Ïgeé¨Ãý>Q¢Toõx_¯V+¬sbÆgéÄL:JÆC²úϸêç#;lË#
W7r´êïËt£ÀÃìÆJÀ³OТ½Çúò= b:z}ÇÒK¼$jðcyû&W.|÷w}QcvÃðÀL¿}Ø>X8= ÝriÓ1K%ø¨=}õøèGò»jdÓ
óǼ÷@+£ç6Í/µgEßܧÛ1úL%ÿb=}³z¡'/þÌ15
|
|
89
|
-
ÍÈèaKuÏú?vßâs>ܰ¬wYÅÿ=}= ¦)çH(*)´²¾¤Àwt±ÂvpϺöeW¥\-ßöi OùÀýñf)ÿp~Æç¶2¤¸³%\ÎÔLV>µ:å»ê#mÌL³õú)ü_Ûçõ¾=}ªßö/s=}г*ÞßKÔÅÕéÕR{OVG3]kiSð¿·ÖfÊBðfÛ.éOá¨t¨6·q,k{ÕXÙ +D^\ö¾äòÄKE)^«åa(£E§Â¾£ø5~<ðìI¥L÷ß¡Rz«=}úRIÃV=}«V}NÅWJ#ïæ·Æ3ÔØ!¡æçyàºEMi;ëväB§xàËN©
|
|
90
|
-
yìP#eøwXÔ4öcC«vOÕêÉ'Fd;ÖñUºÃà[ÛSÕpE¬
|
|
91
|
-
BiwéÕjm~÷k×#0ÃÖÙÑqÏ1EÄ07Öq7.PN=}ÔS7¢~Ýç*æ¸IÃÈ#q\ âjßÕ¥= N÷c»¾ºùTqmÝ'yDîÊ ®ÔÝcQÂå(x{¶P¹åMÌá$né轤=}4ÜÊæÃ= åóÒë_;ïßV$9JiS§ôwÖÆ#&Tþ.¿Ï© ¥ .ã_Ôá¹rjh+äÍ´¦#8Æ æ!P,n=M½ó:ëT ¥ÞÕÅ<ÛþTPÜK¸ãÎ~#zg¨»Ã7}X·¯täìrÃ.iÂæëRQµE¶+H¼©½ð1¢e§ÍCKCÚ¿.¥ò¯üÑU"ÖPy¾G|#ÝÓñËå¶ùÃórWótW´lG-ý ÖÑEé¼pBm8+Ýù&rTáÞÜwSïÇÌ¿xF^×q^׳ÛdÛ·Þ7.8PóYÖ%w^P_Wf°´ÃHdýìÃDwEÝ%ɧ¢Æ"¦¸Ü 6Ç=Mç2Y*8ýRÁ¾nJÁVÓb[,q=}îhBäø½¿Zì^g8*Øgà-ÊÉïÙÅâA?£óbø¡ø~&=}¯Tä2£[4Ze38¯´$:Ðü&©Ù£&+ARä¦ûÃ)Gºï y) ç4oî)zw²p
|
|
92
|
-
>4_ð#¡IÎÿtúÈp×Ñ&= 9}:HãÎ'7L̤ýP_ÒrÆ,f ó²ua| åUoEåêÕ6ªá=M¾íºNL!-˳dÅÁ/u4ÔÖ9ûiûÎè{ÞÁ9K\q½/Þý'vH5w
«qKÿÈÆÒJ3KJÙ¢É$¹æ^G¼íR>é!¦Äª!/»@÷s|®åí9[P7Ff#µ
|
|
93
|
-
o[N¸¿5îç¸+2ð_ù#ÅåbkèÔFI¢&à£=Mcãws]Ѿ¡½ÿÖDÕyzñUv¶DC¥>ÂF°sPöùu¦!8Ñ1!¨62=}¢%QDç¢ÛnÍH§«H±ª= M~ÝjgDêzØó¢qçÆô0µÿñÖL2§úg#P¯X¿ë"§æ* ÇcRü$FúàÞ]ÌSnOitÈqË×°xͯuG{ÊÆê4 iç^¶»ú= âAàJéàjÝKë³êÿL¿èöO
|
|
94
|
-
°ëïæ3Î.òÆN°cM4a=}x7&:EùQv¿÷KùI½Ó®Õ\5TD}öA^0·tBk³ïLæÜ÷0&ØT= çü d¿Õö&ln{:ñ£Ëì
|
|
95
|
-
4áOTðEy[+éSQSùì>.!¶ÑRÓwü¬í*ú)3·æMèAÒô¼Z(7æÐ³?.u$6×zÞUþSÅïMe1ÚW¿·ö9@e,p²ä(B«,[ÿÞ7ê[fK§çÑݼ QÍ¡ÆL7:©SÃ2Oû³,ÅÞ3iñòÇ ±¦£Äþø.Êv[àó~oô[¥G({\½Ì_LJËWÜ[Ï>ñ±76ÍDUÎ-¡5µ ÿ3<EÊHÖÇÔKcë¨
|
|
96
|
-
æo´TªÚ´Zi>e¹;kÍïÄf
|
|
97
|
-
ý2{èsζú4:Çt+©ç}ún!ïÕØ-ÅÌSHS*¿fétõsåØö¬ud北ºæÞ2¦Î=}½*òØù|ôï¼3¦?o¹BVà$J0èÌXT{jÂàdÍÎݰÉ3ÅË*O9£w>s2û$FûêX
|
|
98
|
-
S8Â?Hµ+· d,áY=}t%o¾5g@Ôþþczü¶My0hGs#â¶Mn_l@ºxgxE¹iF+-»,ç"Pù2çòïJçàôP¿¡sÆ*l±ßcÙul¦_;O´òëÂÃY;E¡O_23FÕËE²g¸ö-ÝÅõ LzÆÈ&5»ÔðãÀ>ÁX.
,á:±¾H\д¦]î_´I½¢Ìf:jÈ<3t:5eÐ_Ì«¬fÒ8ùQmdâDæyácè1ëóýÌúÑfµfäÂ62êÛ5sñ6oÐR1ù~µ=}û»&Óæn§6TKÙr#?>Ü&a*½1@y¡[_q=Mª
|
|
99
|
-
Ñb]{ËiäM¬vt¢Ì§Çùõ{ÓtÉ!ĬcÛ8@®ÖÊd¬'VÂLÄ_ólÜs¹Q8#ñRói!UøÏ7;¡Õ2O¶#Ûбû ¶,õôÛMÕ9 AÝ´w2ÁóÜiéÊaÌæùßx»x¿faÎAÕ´-6@tÍqÌL2O|ôÒÀ}²ÅpÊùÅ{=M"v"ç:lÏH ¥øä;½ÑµïÍ4Xü&½«Å³Öayð0SX)òD¬Ý@Ѹ|«¶d÷Jæ=MEì×K1Ñ]LÆåª*c¢;G\ñvîQv=}[*°¶v³ [;K¾ß©m|9zº fâ#CÆ+%¬fY@=}®6 _õ4B/dNrè;/Bu&|rã48&V¾«5Æ#¶ß&=}yJô¥ò©@?3YÅ;í ¨[eRæ(Yr{ ±í2¼á©,$°Ék}³O,Ôþe¾¬Ì¡Þ1PfÐ9þ®TlÑv¿UεûcÍ
|
|
100
|
-
ÑÈÚR³rÙ´ÊE.ul&Çùië}=MEú³e@Û·U?ùcq7#¸Z¦¼£Ün J¾Ê ú7ÄÝÈî\ ú#c%m ¶[Pµ@¶ÇþrhÞduHªÑw[ã¬ZÁ0"BLäùñ2s°æÞîR!£t·;^Ý5ع¾Q
)gx¯aÃî=}ØòêÞ
|
|
101
|
-
Ý|#¥Ê(x[B?Ù%YEØ,){2@^2°ò*jáDÛ2°òûå+Z5õ¥aÛGu,ÚMÛÛ= Î[ú·Ù·9ý?®$;/H¶o1¹é®= §ÈURÎÒÓP¤ÑnçEEµ*éé=MØöGj£OMä㺶ïë{Ï3ü8ÆâÑ!?¶ÔA{2
4ÀùS%Ò×PÏj¼¡¤Ó®ª¡ø+!p¼T,-kÒ½9Û.üüeYHÞ¨<E¨md3ùÉfîç³0èþ9>ðÇ3bÇ8 yµ¹&ÙÄöä1ÞÜëÖÀãÛÊ(Í£RñãÈzs{æ(¸³y d?ø}+nkéá=}b§WjØkàö^èüz3´ü=}P±ífmý ©ÐúÁ,YÓÿu¨Â/v@¥¶ÈÕüY<2Iü?Áoá^ËecÕ®
|
|
102
|
-
_ÒÀ_¥q4¸üÝ#çoè óbjÁµßF=M˵álLò{ù'Kº]ôR0ßú'OB1ÙÉÕHùáÜ#¿±.K}t
PÉ^_-4¨¨¸EëZ1»£Ù¾/áüó s÷Õd|,)ÆX6NlÖ+= $5Æ
= 1ouÒZ¬«gü t3 ëõ¿dé$-)÷P »ÅQ¢MxÉ/,[@&YðôÿQ:=}þoÈùÚFñ{?ùïðe
|
|
103
|
-
X.SëÊù;=M¹g0Û,nHÎ0&ÁÖgtcÊyXàtóHWÐx|½z÷aàôË%AñòµÒ^®XÀÙ üRóôhÛ0n-§I»s<»Ì¸amîs¡FØ^("?2¡J%OâÓ BûâúrÚñ}#ÚÊ
q.fxÇоa.Bõk[luäâÜ1=M¥§SfA
|
|
104
|
-
'¹5âúÖ<#ìh>ÇÔ<:v
ñ
|
|
105
|
-
ðô×+uôô8ÇLû2ÉbýÁìÞ¦(öô«(¹Ù,iþ&뽯9 8úò+Û)ÅMcMëJ¡Ô3>x"v?û·Õxµfìá¤fP¥(÷,zõúSÅå<·wyK½2U6v{ooÎâÛ¬ærÖÀO\Î&ÍÑÖfñÓèÁ¾O±0VÉ/UÜÄìa.gOPÅþP2ÐU=}°ª×+ȧJçPÇbçèݪ¯qÚôNI\5{°^¿¤nkíp¤ÍYþ=}{S"EKÐÊøÔm-£êµp}XÖÚóàλ.ÍpÙ¡U= ¿ý¡Ïëàöm{~¼ÌSòVº=Mïå%é«ÍM´dÀâ´ÆhKß.sO|GØr,ÌM©>hßI£cø_Õ%ÓUÉFvy3ÐÔÃ:¯Áº;¡Z'¹yÖ'I¢qÉU¶´á×ö# .ĵ ¤áe,øXÅMP}äKg÷4zÁ
Æÿî{BÆüC1k^¼JkØõTZIeA¡z~.tÙ¨¾áßk
=}IâÍVÉOÃDåT!ævÏ{ê<(N= »HûpGhÃÛZ
|
|
106
|
-
)³üEÕ|ARéÖ_tr64eeS8;MbnhÁÅÜy0¶ÐtÉ"N Ó+Öÿ©ÀuÅ=M~ âª1Ôc;b<2Ù-Rº9T|¢Òõøn®³áY(Ô¦´}û2ìuJväí?E|ðîG¶<f-ì¹ÐPzÃYIÜ=}£ÌÎçÅʺ
´ÈÑD[ýìg¤úßOvÁ
|
|
107
|
-
Í®
|
|
108
|
-
,mLZöo}Ðö+¹÷öª¦à³¤×ä?]Æ]g@tWx¬UD¬Ä¹VEÚ2úÈò¸Ý©ètæÓÆ=MüD : TÃÿ¨e÷r=MMÔ,¥;ZðM
yMn-)óJÞ}¯= JnÇñsæú-3jCp1;³-ßô
|
|
109
|
-
cã= Pâ÷£Î!6[vPv£(L¶ÙÏi(ßýEÉ{³ÌȦH=}UF[ú:{N{Bä\GqÅË=M¶¨nß'6[Æwôy®¿p"ò(d)v½Íìçà]¢KG»æ lsU*©bP¹sºíÀó^»n÷¹/O²ó= =Me= ø{¢**Ö<¯qU80~§¤QòIm?òíN=}%³Ýï½æè¨¹wòGÛÛ@=MùÅcQóüÕ=}é´:w:ö©".¿Uðò¨¥x{\»þ#]´³3¬ò!oâ:
|
|
110
|
-
²(ï¾!Oaú^$Q@¯¡À³¼9C^<ÃWSÓ6ÅóO§(YWRwuW²)<
ä¬iDºv3J¬Û;xA;gß|Eï"ö=M¶l׫^/XJ¨L"-K;I±ip'¯»¿â<àÚêûßÑy«92syìdjµ¨Øw¢'>Dâ?´¨jÐ>ºM¤3k<A'J{ãMHVùÂ\&R
§DGk8 SitÜ$ËÀ:}ózº¦ÕW¤ÞÿbõU:Çö)CqöeO¢ö}ÔÃi@¶Ð¿T,AX§Øn[ã ûɬ®Çbæ!åqÖZäÇ;é_S§À"M^®´!á×µ¦,ÌnQ§1BÜÆ¼*
|
|
111
|
-
<= ÐÃf [=M.ozNßÝ-ÍlY/K]a_dÎ;y ²îm,éiã«Ñ´æÍñD+íÁn.LgòCG:ßiæ5¨¶±úÂg×çHpþæZC zµ_ð3t<6R¼=MwçU£srûX³òCÆ-ÍÍÊvvÓg»Ö»Xê9oW
|
|
112
|
-
K%wYµ)zt¿Ñ«2F¿î»æ¼6ß¾ BĹÎ_ä½¢#^v[^BðÙV?'TþB{9ØWyãa³560ðÁMXu|íZx²9ü»NlúÖÞß'Å©aÛ93(/0´$AvþósÜðÞ©½ÒêTW}= æ9#iÃì/6ßmGíIì®9"¶ÂSOHOÿwU³;Öf¿4'¦m5eJ]ìÚ²K²Ë<¯×f.½Ì
ÁDhF,0Q:}Y=}íá¶òt?×üm:{pþ½ÙA¾Gø+;qíÏJ¾7ÚÑ8ô¤Bðó>ºÖ;¿ÿÿÐØh£+ üurJ#àÕW¦Å¹Ô¸O±÷ý®vc=MrJ+t£Â¦«j+ç¥JFJ¿6cóµEïáÄaOKPËâø¿QKy4ǧ:Ú¶wà_.Mó i+':áêg§«· á¶J|á8øB}ÂËù°õNÜhÜ__Îò{rä8o~àâÑ]sFP0 é5ÎäÚR|Fʯ9.I©Ó,ѦjrK;_æÚªÂj{gÜÌ>ÑmôΤoàd˼kÃϹn¤5M:G5LøÕkÑZácg÷ÇïâSl,Õº:PZÂôùF Ø31Éûx©OdÄ2,µáþØgÔÀlF©{®Êý¡´±3¦¥K=}WGQ5.¸2°B Ü»cç= ®b±£«Ý}¼9!cÒôøIäQÉõâÐÜÌa Z±
¡ã#u!êÇ£êNA]#4¾ÑÇúeãdº£ÿèú@,3Sz»¸¥â>â¹U²Ù&BLòëGS"ù©ÿËG¦çÖ=}ß¶Å/ñ=}v-gÍÎ÷ËÞ³¦ÚâMíKßÃÅ¡u/ôô¹ù(þ&+.(±]R%3ýãÔD¤?´Æ}c¯ëÚÃ]¯®M?Ôø=M£ÖA;éõ^9ò¦²û·þ>Cèç²9[.HV©xwbC òvCÖL( ljOCeF3MôCªÎ5N¸®Ç Õå7wCÈíå¬l¹X5ÃX0Ô6
|
|
113
|
-
9Ñ4ro©ä³¿4èÉH?É೿4èÉäÛ¿(½ç³Æ,³³Ôäî6Nù4åͧ2 =}_DõÍ}ô¹,¢9Z¢í亣íÛr/²Ô¨´ÍðoÚ$FÞÁÎC+DÞ+D®ìõJAÜ´c'ñ½]$I= qh_¾ÜͽÜùéJFvÂ*ÅE:´Eî}¯ ¯¦fÿs?.Yëd¡{¥ÌxæÏmF$ØæBÙh½69"OXÒ
|
|
114
|
-
¦è"ÞÈ)ÿMw¤@ÈãÞõõØÿ';Ö@«oürøñÜ¥1@fö»¿àÁ§þNÏc>= N¾vÚÕ]©ëmµÊg¯öaâ"PذA·á
»[äÃÁ(èé$ä!=MX[7èMçâ¸æÛ±;Puï^×Éå
VIc/ÐÜSe¡êµàÉW±p
fxqzÜéá-À4ïXnmîzCëͪ8ZØ.ÅXp0Ïà&YïÈk¡^S"esZv$þ a õ¶ÿ¢&40¥þùµC¶\"iÌxkShÀ*YìIÐ jÔw>Üc1ª-GÁðÝ^#0¸4kIÆ*Vë÷QMDD
Ç{Än be>rÇÞÈrhæ?h.É>má<z &ðÄb×IÍCUþH>L{ïnEX}$8[³Ë¼ìâl<,Sa.)¯úD_7H±B°¨¨ÇJwò8 5IE*sCð§çØ?:Õ]8å)Üô}iÁNòÌ)3ÞW9nj7<ùA:oM!'ÙHÀßóÛ åuf¼6®A¸¾GÏP}R'¡OCmÑÿs Àjügo4:gZwÿàÄäîÁMñ*§H·$4Õ1>k¢X5&£ûGrÕ.è.R®:OÑîµ9 §ï(Ô;ÛT,úW5§$Æd·öÈ0q:(þXâêÚN¦Ç915:EMW3ê2P=}Ðw1ÜÂÊë;űÉHôÆUJrÝÐ4 Ô>,L^GsiÐUeÈ4â¾jÀäÝHºYù¬Ô÷ÿų¯ÅMr±$ÞÂX¯zXÆÚ÷/3rF¼ÓfRÒu«¬åÒ]B=MãçV3ãï§8|2µÈ1{ÅCU,Û$×oG-O6Vh7IRE58÷×+}'yy*bt0{¦8Ð/XF1·<GçÞêrUE:)·U7Cëfô¾û¢l&l= Ö®t½fç£ùþß)=MÛÙ=MH¹«Û4°æ?ÝË®,)cDx¼Ûïÿ-©/Ü£¥TVîÈTlçTϸE¥ Ku(W×s§ì¢xî§ËÂQä
µm¼Rå"Ô8¾ë#¥-àܺ©ßÍýJ(ÊÄæúÖ_ûÝÄW#Âu¦à7åaÏ1&K»*çgÍöpvÿÈÂ8æÓ¦{7}(Msýïc= K²Ü'Í&§ms§øq³f¨Y¨aýK$VÝG?º'RÚQlïQìý¶À¢;$«CÃ##«1}ãÔ¶Xñh)hñ©ßªBÍZ¢l3 $;¡n¸]o_uåü\½ïÿàÍ0ÏcÎþª2±w£Ézy}YtªzËù&åÒØ¡8âܽëßÊ4ÜÞkîØ3%ª¸20Æô~9H7êm@Y^I§n\jRàhUò]Yç¾bª«ÒóT~ÉxùååîA ¿<ðZ&S¨ô´}6B~¾ªjΡ7ªZq'©pÊ7!,Ûû Hp{ ÕÔëó0ìødƺq°Ìkó r:,¥m
|
|
115
|
-
¤÷ìõ³\kYs¡Ur³ÎmÁN[ó«ªÀvým¡óµ¸-0}uGån8ËmĬs³cÿÀ)Ë"âBL?õ%òlä:=}àÝ޿òx©ÝQÓQ'Õ]ÜÙÏøâ%ÂX|%¯ÊÄ
.@Ô+e_pf>LVÅs9>PÍIÛ{*Jº3vGK+l¼óV?\Ò¥D#Ø3nB¯:/Ùa.b#,£9y*ìcï|{Ê6ÀÙK
|
|
116
|
-
/=}ì)M½l}ÅG·ofÉþ/>>.})nôó¾5êõ0¬¾ý÷ÖÃjϸ¨#º
|
|
117
|
-
ðF4õ5nÅÄÉ!ìÐ cßw8g+ðO9^ÇxCaû9r<ú&ñ]¶ßM'8þëªþ?,ký½=}=Mè÷þH6Ô9±9Q/t¿BÍ3²Z°TéÁ»Ó}%÷.ÒõÖs¡öRÞÒÌ^àM»°oÌÔ÷j&µÈFp¶ìô¦§À!´@lt÷J.h{µÒY2´¤|´J²:,ógþþi»&»¤e6
|
|
118
|
-
׺½Áðù°Óî:¹Qo= G?vh5¥!À$·oªc{ðS kÊP+
Óv18¨IáéÄ,ÌÃ:Ë:I&cqLüÝzQZ ±I5Å#=}à)((Õo!kvnUJ£¨Ýssx¦ø£.êx"ð«®k¢FÅsý=MyõdËǯ%,ø$Åþ
|
|
119
|
-
ÎÉFÈú= /Ûãa=}¡¨>xY²§¡¢/Á"(©0>\÷º×Ybç·Ï:û;ÐsUÝkÒ³ZÛ0È^áN£-fÞ²Ñ «héz«ñhWB{ĶÀ4HQ&÷ãÚV£yþÞ½s÷ÈS+5qU»»R«ËÝ1£Pqö[Ѳ»=}ɽ¿L=}û»æÂ)ÓûÁ$5é7¬³ÌùY80ÇLñÓàìúЧ¾Å9À£2¥ ¹_pznç!Ñ\%æeƽÂþj]G®°=M2ÒRÖQA7ugðÈÚÁ·Ø©ntã\EøÇ7]EhwD9+*ÈäNÅjLó\·¡¥ëdá8]ßr¨·ÐçøÊ/CüûJî=}÷âô/;A+ÍÖ½êºZP8I¸;íØðâ=Mh¾CÛ$°~ó ïy¸ïfãÍZÎâÜ6#¤ð¹¯´c ³º7sO±¢Ûy1w*âê¢(%{®Ôïäncíyâ¦Dì|= ÂiÆ= .̨²7AD¯XªRܽ056ðéÏiîD1¾«t/ uÈ4¬;y«º1eåõKúÏû3~b
O÷ýÞvývÑiúîfÁóYô£´Õ+òåØÁÞecR+PÚÙO/t3C"¦Å7ÒF«3û*=}r\ÂSòÆ,ú# $gRÚQ§ü
|
|
120
|
-
ÝGãÞ8¡9ûú(t r¾K´å¸§OXíä0)1À«õ= ºÍæSÛ³ÖbÑ%óÁ>zXJtý åѳ{ê³&l
ÛâB ±¹Ç¥k¼RpäãgÁI p!@f«y5L+ëòvdÕ-Qp>2ãZ4¯¾PJ>¹\nk*V·*]%óF¦Ù櫯¡¾å÷b>;Pi´S_gøÞâÆVrSòÕ>WÁT×~LW±HUõØç_ùú1ò#Å
|
|
121
|
-
¾Í*èÍr
|
|
122
|
-
&·w¨[|/%Mê°æ}v&B¸¡ÖàíM¬ö;Ù:ÿ³Àr>k¸c³Û"¬<²¹Ç«ó= ñTê~}EÕgV©gn4·õRI9IÊõ6_OÞ)>Ó;ÊÇ%/æaëôÁ7:®Põ3ônHâÒY>ÅeØ\ÌFã~ÿtuË!Aå%å(l8þ*dÖÁåâR}'sÚ7nRM*ßr(O±£îöd!èzÁ´gÖ7ò¤Ìü%= £«}¤Û@<"¡aÍG¶ëá¥(õoeE s¼u¾²2t¼>1¡!FAÉNÚ®Q)û°ʹþãý K«Òk
a #4J)PõmR2A¦àky6qhvg)Ópß×Å¥ÅOímtïñJJÚSúPbº jù6Æ
8÷²ë¾"K(qØ:&;7uyáÕö$
|
|
123
|
-
cp VOÑcøR×»ÅBß?v,.#ÔóJPóD+»<eh
|
|
124
|
-
¾ã^fæ;:^BQIúkqf¶=}YY=}(µÊ|jËg2g¹¦tÀ´¶«ñôôøTº5®vàÁ¥3
:&¼7|æñpÔvÓj®ó¨¶CúL^vU2ÃÇɳtSöÛüoøvÀî(ܰúIÅÜý#¢õ-ÇÜO(SÜ. c¶¥´S#»
|
|
125
|
-
q¶(*C4{JÔàg$÷ùp~âìè«ë¯èFÉÀDáß <:ßz
7=}a"¾ZÒÖQ!ô{_.½±Bi>è§ìý"»ªÆO?ø§×@+U¼^UV_UÖaÀºuÁÑz97âR÷/$ùú>| ëXj_EV:#Ó:½20ÿàe¶C%Õ~ò·ÎëËnïoôe(+úV ªKt±®Rè¬#îßä×ÿò
_++<èØTZ1qw0ݤþ&²p{êVOUjûäÝ¡R}DÈü²¡Ñ£Û¦H rCs=Mñ±÷·í!:ZãïW¨G9ÀÝ4Ì2ذbç[=}2éÃ:>ðï¿(±eÔè¯(Þ@Ëô9¨êÿEp]îß\Pfî]̺Øô=}ÚS=}/ßCaFßC·w'Jÿ0êV¯V¶wl0ÑVÄ´wĸ7÷ECÛbÄßÎÕÍÙUbVt0Þåßg§I? M]NÉVt0åZÓîg¾Z#÷k/_]NyV4×Õ[Z%÷ßgΨ^³¦I?h
|
|
126
|
-
]ßéûÿh3pC0J¬É§v|üüÆ·¢f<ݪ&m«OxϬ¾³é+)Ýþy«= ר~XÔþÐÂc¼bèax³XUCZ<Zc(kBÍYRZ0êXc¨.qYY nXÒÊ7ØÚ.ØO$i/] \ÈWÍY2ZɵشXc(k CZL]È<X£Z̵Ø(Ä_BæXhnµÏ{>3Ì5zµZµä;·÷;×TµT¿7uSF0Uß6uUFUÏEwÓÏ4V9ÏEG×Ï4V;N'ôÛã3×Ðxï¾£h[@ºV(G0PrÁ¡L¹
ìîôjñîîs#üìRíÁRàAPÌí¯|¸,-3Mä&Gßk³ÇHw¡O o.¾Ýî$&=}7¥DJza:ãl÷ÃÕÒR_Í^1=M¹üBHý¡ÆÛ=MîÓìu6¿ÒÇKÓÛaËQäõ>Ó_7+ÓO7ö£ ,Lgx-Ô×ÊbJ±WÌ0jtÁm¢Ügéç9
¿óÍòv²@éÀòz¾bQJKlþ¶CÚæªã[Ò&ÈÀAÆS=}P#Æú±Û3nÇ= S¾½>\´æ×U 4¼E¢uðñÿiJ$ûÁ>©ëÑðÑà"ÜbÜh¨©)â"~ÝÓbW"ÄÑÐLG4Õ?Àò
|
|
127
|
-
à®ìH#ãEÐÿãvYMºVij¨pï
|
|
128
|
-
ü)Ö~îP&}£!Ê">3"Ê-úÊ=MPéí¼õÂÕT<_ÇÕ°1{}[3Ì.5^î¸ÿôßôÕáìÒ_¨¼15tPùtbnn 4ÌlQÐuçY§F§8½ñèÖ
|
|
129
|
-
I¯HFÊÅû½®àÊ=M$^J*3KuÙFºYÖLâkfåX6&
|
|
130
|
-
K)6?ùszâ5(*A®h±+ÏðÌÑAñDbäyßj´Và§´r´º9Yrö¡©êJ¶²ßK°ÂF("A9
r;ïyH@ç#ûÍÏÁ[ä/E®r ¸5°Ïûì}©\Úq}8Èåò¥H@nã=}º£ µ^0»£Àä1tv.úüB(äÿñÔ=MÎH
|
|
131
|
-
0jöa6ÿ^"ùù,õÈ|Òù̸ÝS*Àà4@
|
|
132
|
-
ÍÞ¥ØnDäýÌÂHû
yP
|
|
133
|
-
å4lÛ
|
|
134
|
-
rå-t
|
|
135
|
-
Öçfts=}K7ÈMh¶ÏÔ¯CB\*±<"p¡:¡=d{©F«F'Ð@!ÄD_J½,ïÏÏúË-rÖíþPý¯7wßÀUè=MóÎRsQ@Åç"˳޼X;XqoÌGÀU=}KN}g¿³vU£h öWb'v ûÿÚÒ
|
|
136
|
-
$²÷Þ·ÍÎ3Muz0
|
|
137
|
-
Í>çÊ= =MWúR?õ)CL
{93T©¤}TËJ£:båýý¯1sÈ!î76iC~\ªf\lsÃIɤwü|¿©kLßÈ´?åå¢+ßÿ<:íaÄÐoõ\¾èë#ÏA7F8:UØF¹l)@Ëhñí}¹{ðQ!ÆO§1ã!êQ¼Úi&¢Ì½KáN~j¤·¢¸ §ygæóCròtñ§ETÙ¿XÆÞbøÁüÃ'ä]º¤êàó*´Ú«Þ$JÇY¶%~±_Ã1h'r_µ
Hp=M½æFß= â¥A¬Sñ1YëÖÞÉ3¤1èyB\_]*¿4õò½sL =M¢
9)sqKaÉþé1Á¡b35/
vqgÛj"´ýÆ4?Qô!îÑÃazÖ3䢾©óåC3Ö=MX0>k·HÍãè,õ³íb"ðÖÍëÏò¼ ïµ!ì3°ö!,ô£Q¦½Äÿº²gçI h£Aú³ãWw^Rë)¿5ýà÷Rp2éÜêÆF;驲«.MøêÏ]íäMFßKÊnÂLé=}ÂíårÌ*-jqÊêâ~t´,á4åCü#²'/ä,©Zóé±Éå7ræ,è%Ü)¹ó¬7|Ä'¼¿YyP#:¸VË^ÍrrÚ7SütøòHrH>§P¼I-Dçh~×Ó¦Ò±îzÜÉÇAÜâl ëÖÚüBq*»e{ÎÇè§»¦<lõʰÏ<¥ÞWóüöWoú»FLû+Üæ¦kFZ¾;}ººÖo¦Ñ½ò7ÝTYyeé/YÌ2yì¢Î!ð£õHÐîS÷ú-Ès'ßóÊææ¯IýuJÇl1@<²rÓsv¼¹Ü|Ï+yR ù Tüº ò+µ¡uª/£ñ})[µÂ#MâϬ£¯ÝÞVèb ðùà·&"3ʵ¸ãåóUî#;ãÖ"¹IhæôR/®=}w9ݵ, /Ó¨àÒÊEÝ»=}óI£Ä³_´kÁ+×*³êï\yò= nØc%Î%YÚºûQ2Àn6cßöZÊxâ"ÿ¸=}ΰ úlª:a aDóÈ&K$T¿ÎÑÎG,kç°. ]{ª0nÕâf¯cÝú 9m<=}ã<îJ²Kµ>>
[fdÈuHÄíqÆîÅÂŲÂ:ÂÊ-05Púé)Éá9^Û'
|
|
138
|
-
¸±á¬zå-/ãë4nsâú¬AþkÏÉt÷x$Æc0Z§ÖjGOêk&6RkyòæE#GÕ,\OÄE@BCÌE¤PÑ ûû5Õµ3åw0ç!׿×WÎÇÃÅÄÉÆ1+ÆbÅW%P³B¯Mï]·§P´Q!O+EçëSøR(IÖSùGÇãÖÿWFÒ;â½;3ÞôÞ]esBÇ/?,-'Ow²Ç°ç/C©J6åkÛðØ£ètÝKPicaQtg» ]½sæ
|
|
139
|
-
~zúÄÛ+Âðz¦=}°÷OàNÒÀè}AáÞ0´óVê>û1ÀÕqqù¼%e;o%Ì
uÙ¦)÷A.ÐeÞgJ²2Ê;öo¢óÁ}r%ÙÄý÷wanÕ⸽)¾ê=M&÷ú0,5fÒ= Ê-LÁaíù³ÕGÒÙïm;W@ÑJ_åèdñzvÂøÃÀeEåéXH¹L«äôjúÖÒÛÏãÛVþó@GsñøxÂô6§÷ûuéê=MôUäÛI"Ð÷N®Byj¹àÝ@Ì{µgf
|
|
140
|
-
¬ØÖxg.Ò®CfcM+¬(Üuñpçn*-°4 L^mÌÂÀN/þ03,ÑË£@d¦Ô×"LÕ¦ÂÃÖRf£Eõ$±POqSòÑ,'
|
|
141
|
-
ô¶$VE?yÂRÏ.Ç5ý\wÉèØÛ°ºKMÉêã0¨¬ mÈißl= hBEÆSJL:Ùü0+Z5d=MéâàaPß%-çw®5Ѹ,ÜéÛ$¼zô'½{G;zúrÏA,ù$Í#o%dIOÌÎuºý(ïà t;Ão·
òñÈôåæJjÞ³Zyotãpz4ÿ¥W=ML9Ó ðø·.wÓÂEÃá
|
|
142
|
-
w¡kݡӧ7=MMc·=M=}°AÛ^"ȬÀÌÂÎAÛOºk³H-b7¢åêÎo´×¾Èdᤰ°M&4&Ò5Ùú"ÒQàác/D T<Û,¼üW4õQ¶ó²Ò¦´ðS¬£ëÙ&V¯F$Ìb´pJ$4É´ÐTÚ³ÇdmfK;Oe;Ù¦ÉóË¢G.sdH÷iÆ×¹£+Ùûþw7¸¾A×Á")-e++æì4ÕÅÁ;iÏ-)Ëgpñç¶K<Ýw<Ûõ¿}ü<ôS!Ô0Á#ÏôQ.$yÊ«&Ý"?÷%ß§°F¸!E2>Ù.vë>Ò>©ÛQqvRPõ Ô<,[QïdÊHòríèÕF6Zo4â=Mº¨ÛqÙn HÈ9°º6ÛµjÙÍ øÙ/©ãÔàÛåæ¹hï
\·æã\G¢¥ÜØ·ó£³ÿ^~U þ"uE"pêHðFæE«ò¥æmn»µ¬Åýà;¬_ÙÂæhÍdsÝb;Ü2"ɲ&^U7z©fþ^BxDzÑðä#áõh¸gVx7ëIfÔ8Fؽl><i;ÉgmNØEf8¤;i3ÜYÆ8ØÝ]UÁSH{Gê1bùN}aëÈs[/&_Òa>«çÜò(¸Ú:VA¤ú^«åcYu.¹ëÌô"iHú¦íÄQìcÍ[áªrcÙ¢ïY)Ê)Ð)oà4^=MK0¦ût¹æÙxù\ÏdßrÊúnjðYÝøè IP8@m~·ûE¬aÀÞÛM
ÉòDØÝèkΰð&|àYd2Æ8·8F!¸ÆËú#ð¸kÎk'¯:§8Õ¿êQ详ÙáÜ¥0+KSªîð| %1ÁÜÛõMùÛíîbYá˰àÆÇÃR*H
|
|
143
|
-
BÒ!17NǵºÎ°ØS sY¡H(Ý$ÅSfFÔH¼4!ÆËZ>xG¼{:k£ÚØnSíøÖ"éîÉiV}iî6+Ôÿ;w"¤ªNz{ø=}CÓVÑѹ3ã¯b3´ÑõqÑ{F*)³+·îím>ò-NӱѹFã¯ñ'ζÕ(ÕC)Ú$2/±WÔé©ÈûTÍÑþ¢=M±m¹ACJ
ÒK8,é©Vuq±q·&úSÒ³$VOÁ¶±AìFÆ´*©iØâþA*¼¤Ôe/»ì&RúÝÊk+¬×èØÝ-c+Ìr×%¨+´IZª|8eûôpÇAËZ&-s3lÛÊÇÕØÛÃQ ;µûÁ¿Op·iåRsÉhwܹÆWQYcycÜ{ñâ=MØ(ÉdaÜnØ|køë= XYzr2ÇòÅGáKw/=Mª~P¥±º;æ·ã¬-á¹L= ök¹Cù«=}gr,Ù*ÉÄ T0e3×
N8¥öÄèë³Hð=Móg<î¯;ºcÿɹc®üD Îap<<u
|
|
144
|
-
À=}Þ$û]oÆÑâ
äeö yÅ7J/¥jÝ*¼N*Üâ7Å~^0¦ð=M|Á#Ù*"rK}[E5&á±óéUÓQõ¿eܬÆCZYÃtRUJ÷êªËÓïØñüLÕÑoGPú¿¼½GtÒE¾ÓWÅ 'Æ,0ẮÿwRHå²wBt; )=M_Çó}ªýÛ#üq£j*gôWKk¿xĶ,ÞSË6Ó+v4¼9Bìuc¢v/=M¸zõ¿H=}sÏvÓ;©µöÔÜ¿ ôðL5'´·S¥|2ѤòÌ¥>é+èÝ,¯0§òuK )íSÇòÝ%Wé*NW=M%ÒÞ®.Ë»/¿u
R¶åá
u¥±Åg4çMì¼ð'PAKï¿tÑA¹Ïë{¦ôkéðCP1öÖêЧ©Ç2S3ñÏÃ6UpAÖ>Vë?pÔjK9vëûkyø\J^®æv;ÿ䥤1ÖNN>Iú½WÓÙïiʺo¡é1Ür#¸ß»ÄªÊ8Ô¬ÔôÄyèaÜræHr¸.N©ã{ªC!b®âV4øUIC*C*\úõÊÙ¯gs'¤Ä¥óÕ¥*s}1Þ7ùëçR¨·zÌP´àf´eÐ$ÃJñè¿áp1YÁëhÿÆ«ØèÌøJ= ¾Ë7= søô°áìæîaLA½cà§(Ê{¶â5Ùwzu!@Pþú;W*û}³øêZÒd,Îðe¬ØéöÌy¢}ú+üZºpÇx0kx<.Èi$Çc!¤
YBqê»q&k>,"h¶zm.é\øóY ù»ñ´Òð<ᯪc!ºr=Mù_H4![)ÃðA
|
|
145
|
-
ÖÔ·ûkXi¹V÷àï,Áêñ×ùØýdbϪ{ Ý/1nðô[yÈ®Mù¢<¯u$Ce~r^ÛÙÏl-$ZÉÒ.ºþ´Í¯ÃvùZ&[®kæ°³##xC~!¡cýðÑ_Â;XïnuÀÂðw¤W÷ÓDOY²´ø·ÿè´¡ÏäÐcpü2qÄ¡â¹;QÐ
&xÛ22d¤\ëy©* 5WcQ×)yr
Ëé.¸©,[)¢¢!9ñ ]d9mÖköW=M,zÊÁ¦§oø(VÂ(\EP=}÷úÕê¹Þ²Þï¤|ÛÚàú¶ª>,Á5ÄS?¯]i¹Èe¯Øg²çfÁÐûÚ¸BGz·[wüêÔÔkÔê!H9ÐUÓ½ï&>t}ÉM"0½ão%gIuA@¸¿»ù+àFQNIA"ãÿJ§v$´osmv!7'&*0ظVóYõ5Ï<ÔIñ4Ë¿6É)/+Ö²Ð.ÛæGâe~Ʊ= Ðï
o<<ìïî¿ÐQv v¿ÅW;¨Q)]©QiiiA\|éø(½=}±éÖPH2 }*j#ÏH5
|
|
146
|
-
*ÇéǼªú%³×
ÐÃK;Ú&á/Îá p¹aQM0-7
|
|
147
|
-
.î¿1À£,-ýú%×·×ww#T= ·}óÝ1**UÁ¦®¤$ä= -CMW" ष=M}»¡©û½FE#gá¹WÐ1Üóæ½v¡ðI£:àåì¢w·]i}ºgíÑ~í%®|}Çq{PÎÀ{SuB_Cìö´*NÇ*KÄé·ö*?¿#ÑøÌÿêÚ¼pÉߥ+ÌO= %(= Itªá©f¤rNqôa
|
|
148
|
-
q«f¢ÓØå³n;¢KÉLáøAT¡»ÿÁ,§p>yiæ= (|Z'.Ö ¨8znú¸Ùpâèo Z¼= íØx[üý×¶×É F »Nüþ×=M5/ä<Ä~¢~i>kÔÞ<æBR1)6N=MR'ÓÏÇõñD>¾y¡8YJ_(K×?çõäØ
|
|
149
|
-
x7fè|ìDÝ?8@{RI>×X¶
|
|
150
|
-
Ø;[Ï<Øâþùs8×È|a-l}§MæHÚàùjY_/mGÃéFÇþI_T¶³UÃØûM¸ÙbKY¾þ~Þ^HiãM·W¥Ô¹bÈÙ´J¹£ô<6!3=MÆ1ÚYv¦.nºdÕÇPC&íßÏüµ=M¼$(o3[%å½jª »{³pq = ´ ØßhsyÊ¢K«ÄÅzºMÑfS1 ³A>R= }ú[©©Þä ²A½.5Ýç )» nã7¹,'ë2¶&´åAh¦s]i¦3ƨù0}Sýã#A7_R
|
|
151
|
-
åR0OáÙ¼°ñh¶M¤'5óùÓÖ¢?ñW<ºoÃæW¹«tH3,îÎSðV¸_{üN÷Jå8=MsÎÎsÉõK_ÈF7ÁFÞÐI½¥d&NÅmJ2=}K?7Æ0àÏé+"SÁÿë-Ã@ÿ@öå¼ô5¡»Â×0VãSäÈ\Ä|¿~ô¢èi**Ò«ÕIW}ï0qV§£%áÆnh\sßå²eèTOðFg¯¤Ïê£tCÌÕ'¦æô:"ÒøÙvÝûÇgËkÚD%|oOÎ=M.Véõ%½èép?Ë1¸AAÀÈÀ5úá»Þòsàñ·K÷=Mú±g(ÝÔ°Þ8÷jÒ7÷§÷¹ð= -5Tͳ#hÕ>·±i_±!@ñRîÄØ2"Za,Q1²Øsb¥ÐÿANÞ)Rt,5J/ !®ºvBV¬èËìawÁ²¶ìG³r¬÷ãÒ×4!§fÏ©¨t,/I=}Aý#3r9X³µÏs[}Ô¾¿ÁS¬UwÓº2óèþë&îí!Ë4Læ5k!¤|8ä{ø£çt©«âd=Mï_:~òçs×÷¹·ª½´,5L@P:9Òt·¶¤csÓ.ïÓº¼Ä¨¤öFÀ|X=}=}=}Õ£Uß@ÐrGZ¿½2¹gy²Ì%¦~'Mt|-úCCV6P84F=}y¦Êw*A+úråþpùN
|
|
152
|
-
IBÖöäß÷ãÿs˨RÆâðåÒ3¶>&sä¨ÇÓ;=MLXYÀu÷æ
ɺÌÖÁ2ÈçI;¥ ÐWüÎ/ETRpNi_ä
¾ôª/Å365[D»$öÆGP²$5h?@,{YµCâýòõõú¿Ô^5d^5O¿isF/ó«KnÂ÷ÇþÒsÒ²W 0¦$½,wÍï+~d|2YÕT¿áã n§G'Ç'ü§=MíbR)-v³9ÿlC(M£&u»ÈÌ/ò.mIëMäÓ'À$>a3)69©á³8Îç~ZSäcòÏIÅ7°ùûEÕÚ¿$ãÒÎJù?
³ ùËì·@$QiàÝh{òS0Õô¶Zí^=MçÛ«h0$bYdL·Öå¾Û_¬= +ÑÀ>ß¾Îó+9À4v¶Ïgã'ÖVf¤×«÷ÙX£08÷X®ÜpeØÞ+/_0þÛb$A[sï3#C-HÔ¶g.5+}<3= _|Qb¡È@o̼.°üý< äìd(¹ oØ,ÛE Êàh@TMb¤ ¹r÷h2b 4O«ßòe)´Ô|Øôzé= ¡èdqûY jef u]{mJÆÏy±9ùkUçpÂÁ+©ÿ^_Ð1e íé»Ä<4AùkU5ewjËi(Þm©K¿¥afLÉwÔàÝávaàǤ²mÈNõÍðíé\¿E" µ>ïQ§JOÊÙ$[¥+/·
|
|
153
|
-
À&L(a;ä©"°æF3 Á;ò-£{nܧebØÒNÊ.Aô*.à®%óiØë5Eÿ3¶·´È?Hì<µGt;º j
sXs{ËpØjAÒÎ?!¯<0ê²/,>qÆqã'ÉVkXW]4Ïtûö)JVÞIóh]Ü«>¼iáÚß÷ë#
|
|
154
|
-
ý)$¬9lâOf}_1Lj·wÀ/â;ªìw¬ºæÈïת³ß¸gçð=}îÑ3öÈFþ0sS¸i ú(Ð1ì9d«B6EJ^áShZw²^|÷b¨6fnkdñ[ô©tóÅ3®ÎU
|
|
155
|
-
Å3µ9å¾3Å3N:Ä;Ó7÷°2騪g~N9JìY¬így«ZÚ(Åf-çMñ)põf>ô|?õe0Ùy&´Èû
|
|
156
|
-
ëg¬pRë°sà= 9?çZ{1
|
|
157
|
-
ò»ÿ»Êöοkq±ÐveJÑâôRAtb%ø'
|
|
158
|
-
¤æ´"W½³ËðËïosJ '¿ h]-?mb«úO!mßæ@û> ´%ÞÂÔ®Ððø¯È·Óö8:ÎÚöÏ\k¶= vnDV|QS£ÈSçø!!/ Vç<ý§«AynnQñri*ÿ@Õãþ*OÀ±aÜíuíÔi ÷²ª¡ ñËÞWümê§RðI³rOÿ¯ÁæçZ%ª´{=}÷£=}gýRóÚ<ãÚüQNcfÅiô±@§È¤= ¶ÿa
|
|
159
|
-
û]&Zñå8 æ¸Ö×âÚ÷×,««Ö³%Ý»ÂTq³å¨Ë¶¥ÙòñRÂ6M¬ò-Æ´¨iÝ5ÌmññP:®¿mþ·íÔ<CÎ}æ«í¢©J¡çÙ¢.U¨Ð¯&Åb£lTæ¬( Üb$KÉ0÷'JâÔ´ûü¶ó<ûÑç¶CK= "'û.çµKP©í㺿Æ;Ë!È%ýÃ3·<ÈÁ«fTxß>¥Ëèµ!¾(DÄܼ«.s+.¿c%¾Ë~~ññp@¾ªPÛé3p'xÓ¬^5C*Aõð ÌòO¤ÿ)ETÿüù9è×ÊÔO ë+ÐøôÓ»A¬î®»ñL^ýÐ_!2¬®ýü*¿G&ÿ({ݽ۫pÏ{ñ[zqçi!°4¦úÄ´j2ë(é dz[já÷µÑZÃÈCiiIä¿"òÌô:(×u#ôJ°TêËÞ4ÄqSe)ÄËà¾Ã½lÅɯl÷Nê;u¡ ó= ®n8.Ú89´Èc¿É½pl¹ 3Ýy³u"Í;¨>·f9̼= Ù÷ÛI= ¾Ëï¸*/^ à)¿[q:w ¹½XFqY= åXìS+=Mók®R9çqSÔNQúg¿ÔÔ0T(óÒ6tKú®FÝPB!\ÝwWÑȽú_5óÐÈ0õ÷
4ñ²F$.Æó:"ó.°®(íc~ý&ÃB$ç!¦¤GܨJNß[¯upP&öaNdÓÆUxÆ0
|
|
160
|
-
!îåÄ(¹$¾ÃîgþÔmG²²ÉÎô}5³¨q¿(Ó¨A\fòËÉü7nò ýqßmþÜ,ñèm¸K+L*¾+j{fh'?^4Ï8ÆÕêSBë±÷ga*½uîf-Ëâ®·süß{ò¬d,¼£)pÔ·ç¾SÀçz ;Þ¼ç|Q&= dd¨ÏI7ßÉ)×pSÏg+¨ÌÞÈ<B¸Æçr¤¶!x.¬e|*ÂxCneM§R˽»´sO{7OL¹¨3çGå>é¶E4ãIñÌ_5N=Mr91sR¡µ1Îc2ÎyÎÍz¡ö]Ì<=}fà÷E19,öÉK3©µ3îr¤ÄÙ³p(òJ®4êu%³J+]§îRÅbäò9s¹£/~P¾Þ¤T4è¾eó4ØïB«( #ÚCi´Û/Vk\gXYX
|
|
161
|
-
Å3W#Å3µ¿3Å3ÅÃÃWÄs[b³HÒ4ä·Ã{»8vQ²Ò¤b=Míì°ì{dajb.mû<¶à9ZÞÓ?éï¶1 Æ&:å¯^Ys*Ñ9î"÷=MLÈ zÇÁzc$;¡÷uûÎdÇ˧êèYi ×c{ܧکb¼>ÝX¾Rù+ï·6ìJ§3Û){4!SF"T¿Ç |!Ù"õNÌýÄþec=}BÂ!Bß>Ì£=}0kn2qy1è¯×L+ýTÚfÇÚè·!^mͶͫ»#umûíè´û = ¥ÑnMì{Kædûü@ªêG"W©ÃW##×(JSÝ<D÷¤RKõ[½·ñÊ8cJî÷pJéÏpBSRcn&Ô¢±FA4;I3óÈÛ£¡¯è PÙËäAÓòh÷;<Em_³oÏ5µ õ1¦*è
_ÄxD8êð=}8*ªVFµþ¦KÑÃ󥯾xÔOT~êTÄt¡ËÆb·ßÈÒ1ô
|
|
162
|
-
Rº)ã{Ìþmã²ç·Í:¹®°þ¨Dï$j9Q!®â*¹{7·¬MlWõÜÏî=M4¬×/kk-ÝRtIF=MìcV
X×XØWctÝß/ÔÎǵlº. ¬¦hC=}Þzwi
|
|
163
|
-
¯\=M;E¸o+΢cÕõÚR§V|rg!ñÿÕ.*É6;þäÙµ9ºáøüDU"18îL _ënm\[¸p^l1¶Å3Å3Å3åÅ3RÅ3G<55yJ×.qÄpri%7Ρ;mAQ R^èJóG½7 ]òø~E'̽¬k¡&
|
|
164
|
-
ê×¢ tgAHij¢m} òAº§N?í íÏ-ê=M¡,ª¼ã/ÏUOkçW"l?ÈS=}w*ÏWçâ±g¢²Òk=Mþ-^ ùÐ1J%ãpæÎ(¼öö÷ÞûC¤æWïónÕÓJ啕m%/Ê%Ã[S×1ÚUE´2Ý2¶d 7ëÇÖôÙíÿp=}tb/
|
|
165
|
-
%Ab¿rkKGÇ6!Ay/G¾ÑGÿ{ÂSc¶-|S+ê=}ª d¦Ô82Ï÷ ,T¤6æAjç×®yí1Btä)8Nq
ÞÖÿYµ¤*?ÖØYßNqi©Å¤c«®N¿ë=M]±£ç>;³³D°W&ÙcUõP"ñ¡c´ádÏû¼÷_§¢]Ý3ödT1óùbÀgJ;Ý¥[áMaº RhÊjQW¨æiP·âº¡«;wJLÐî¥8T¡Ì|+4í5rÁLwðb5¤ºß¼;÷J÷yÝ$*
:óÙ}d+¯ÏlWâÇQGß²®4{
|
|
166
|
-
öÚ8Y\Yø¸Å3Å3³Å3®'NãÉ=M»±ÓV¬TÈOÉ1³ÝKW7êj¦ôU= rÛT×»¿»9HÆt¹KC\JÄêOÖ·á8}6 Mà¯sðÇþ"#WJ¾òr#Ú,QW»ÍNÇ(³ë8ɲþÝÇÛÞú9µBtMPåv£þCû9¿Ø-
[
4à·vréð<pkÖÖÂÜ-þôãCñq¯ò«oÅK{c y,â÷DZ¹ò¶¬ÕÃîÅDËfù%öµ²fìw˸ù{%×ûÎñ§ÚcªÃ¯þõËÿ2eÿ§Æ´28&gîV8§LÖ ãǦ5Oð:%Ô±ËïñÖÔIg5!VbxB¨XÞáÙÌVt ÇhCíÚA±w$½Gh®¶b9Ö©wßJ¶j]%ÈÇf?Ï\Ç'Èxê÷ÆâuGûàös¥ö©dÈ/îÂÑÑáÉVo*ÐVk'ÝN\~Vö|éß;ëðáe2!¤2ÝÝóª@
|
|
167
|
-
£=}T&¬¾üåçÌ_+q?í3Ûq,Ò¾jÊxkñ³nÖÓ
|
|
168
|
-
È$>V.ÄF²>è_¿Û´n=}ºê0,%;¬ÇÞçK©µØFÏ]t¦<,QôZãpà°ãºö>;0jÞS¢³.TªÊí*@¯E
½´,²&=}´xJÔ]Fíl<G§íÔÂúQWPݬ«òëÂ/¶@ïdѵ
ë.ªª«*ãÍ,;v1UÒÚjs 4)=}IåÁ<7â%ò pºEï¥ÓëñÛóAbÁ¹6ên~Â9ß®¬®
|
|
169
|
-
T¡:@ï©JåÎÀE±6utð4WpB<³<õ íH@:%µðEº¸¥ë±Ôs
5vFïLøýßgÒ@I@½ËÇæÿÒqSo7 ¦§F»QÝåG}w3AU¼·D?# [Dær8£!X1¿^QÕØ\GÀu¼NNÎVàù9h¼dIºRhJy̶e¹9äÌp/ÝõwR¾psßidc÷Ck{TÐÏ\µiÃûLÍà0Ü9½i¶àP#¤¥ôp+Î#à<ºÇãªî¨Fy9½æÜ^|¤´{¹þ´jR¢¹½ÅüìÅmª6âýIJ{½A¡·ÕýNìmq
ÎÆÝ#0x;ÄßdqëÉAàdåV|»cqaPr= Ïl(cnp¤nÈnÇj@thð¥89zYëMZÎa¬um@wmPF
|
|
170
|
-
äW= ¤Q®82ZmÏ]zvchK¸'÷ZJ'dä[Ì´Ylë2Å Å3.rÅ3Å3Åtå?W5ǽGùWQ·½GçbÕWW8Qù)Ý>m§D7þh¨ù% Ý.ÑbiYbÓܪÀQ$¤¾ú~òî¼~qS~ÔçñðåXkñ0Í& +éõäUÆ8L['ûdîÈÓëö
©Ò&³BA qusFÁý/:¥£áýr¢L-TW¬K %é|¨à<ïÝ4
¼9UZfÜm(O̽!ÿòÎ.#»6ø´v$¹Ü·fk¼»±
ó#±¬ö!.~ñt¯½8ÖõÍ*ññôF¬ÎÔ£ÄC÷¤FÙ|n±|i¹ë ÐZ¶:qËæHÂÉ ç½Ô¦dÿ«¾×lKöÊÄ|+2H+
ô7¡¹$ßJÐÊ= ?®\ëàQÿ[qÍØ.§U©KO-ïvÔ°Qó×L#ë©7OõØ?Æ|7ÉMcOÀõkç¿*¼[®NL= ûÒ·®§pNÞ®/1)â¶ûS
|
|
171
|
-
g%Ò º¢6EÙÉ¥Ïs=MÍÎ9=M¦Ëjê(YnEáÐ,îÉc2HþQͳ)Jc"fǦËÁÞBÕk¢Ä$ÝØ
|
|
172
|
-
ÀàEBR4gã,µ®ó¥6=M°I^®¿çÂô°]T"¬úým2í?L-
|
|
173
|
-
$ Ë#*Dö¬ê¢¨Ô£$¦î°P¯ÊÎTêw¿#áÓ·<)3ç:WCõ,M´ìÓ÷!CBç«UÙdʯ²ì}¹£Gï½)cÊRN±±ÓBì\ÄÓové{g¢õÚÕª¼°L1yOÂÇí5÷"TKC¼J"-
|
|
174
|
-
¸8bs¬²Ï²|s>ãFTÄqÇÞ4%ö»S¦êÑ£«ûý<iêq¬rdê+ÏR!ndª½ÇéD&é;ó«»ÜàèÚ×|ÖÌiï°Ðô@*µ¥Ax]²"ØÊ¹¯u©/~âNwÛ.X7-33ÆÎöFKõÅ3ÄÖ
3ÅEg1.D
gWÕÐNÉ.Væsj1z<ÍQp¬lê«G= 6]%â+ðÕíåêEã]e?Á'¤ù¤
°$ÜÅÝÜîuÜA¥Hɵ5ÄFn"ÚôsÓ¥Jõ"¦SÁÕì³²Iå¡åüg½]*e}S.½ª¥PnÁáÛª Ï¡Bó²íF£?î*:rýüÛÅêõÿæ@ó&O:÷k_Ê«-iÔ7¾vxðJFOI³±.ÔÞw"íïrPH½ÿÚЫ|Èö'f¡;Oö¼K!<ô_v?=}wÿÉc±Æ/¶Ø5´$?®IqÃÑRe´
|
|
175
|
-
ñ3V5K=MÏIC¶Ó³9YVÀ%¹¶çI¦JâbFÜKÂã´WZç >É"ÆP2ÔÛÌó¬6;<Wf¸T>ÐS×ÔOE/AµV ôW£¦H0ÕPòÍQ8¥TÑ'Å_í%E¹*«]Ç"¹T¥e¥érH)(ué þkGÚä<@¯/e~Ƕ§R0cϵSøÀ³·<V/g¿Ú_xÖWPÍpäø=MËWrÞæ{ø=MÐ|<ç³³_ëÌ)9èv$C»2=}s¹9¹»(¿kÀ@ñù2tîåµ%p´ÃrãÞ;IÌZÖ§óàf_
øÉ7j®ÀpÆÛCNZ.P¤~·Ãã,;ÎÌvEW?ØÖuùúFäcµhmä4HÊF°Ò¸8a
JÚ{KÞ¸EÛÇ;ÕiÆBߪÅ×Ogõ®xÖWa=M/Hiäô«yðylC"t$ZÝz¹Oj³¹1.ÀLâ ?°¬Lâ¿ÉhϻϾZZ1ð= 5¡È#¤Ã5lTÑòÚ!£ªyˤGÁÁjÓü;¤»ö$ú~Ôw½º«ÉnZÒ¾{ѧvªfÎ7"5P´Ô#ÝígQÀõíç¿õb(»¶Y®ÀmzÕ²ynlúµ¶iü¯l°äV?âÉ\£ïíøJÇaL{£I
|
|
176
|
-
l¯SïùÖq¢C"¸¤^E´q' ¨3±æú¸º.#=}ýt¨tÿØ#Ò]ÔFøj¢t"©º!^}Î/IáÖzdÌgo¹¬ú¼ àDéºSi÷à VyúKT÷àgÅzV{*æzñ,â|7|*Jd颥¯*9Q¢B¼ú|x×Ï]. ¡7²¦ Âû!Ö½<ìÞ6y
=MjB½¬¤&&è{c z|÷â´Jï¡e.$ùeg
|
|
177
|
-
ÀSÞ¤
|
|
178
|
-
e'x½ÿÌ¢ê[ÔªÁ#¼Â¤£zNÙ>+ߣ ìo"*t+Þ«ØÃÅ
aþs[Á<§ÕÁCkÇêöÑ*;SF,í<_õ!ÌÙ{1}2+=M)LAïH§ï!-êNOö 5§çûq» 8ÛqMùünr·þ§óA(ýð©ÌþÒE+w¢ÿdúÏSëS ¼ð2ãîFD¦3¶Ìy±¦¼Á¡!ÂLξ_ÉÆ»i×1"7ñN&'$A ³¾ËL}K4KP·×Íï-"v´#öC÷¿åD<)k;hwß
1"J+/dåíD:2ÀfÕÄ&»{*±ç °¾8h²ß9ðFÑ{Å.¨¾:*ÛÝÜ'AîHC9± ÒùÑMlùÂ÷çèÐø»å9¦Ãó}O¤tËF/¯ÑîC¡#¡Õ4¿£9B3ü$¢å¤ÕÑÏRy-SÁÈQGS{PNF¾Ôßõe§ô<>\KójGVtF̨\¤?sÂ>Jn£Ð'%Ð
|
|
179
|
-
"æ@ETéEÊw¤>4HP]VPu7Êëe'c¥öJÞ M TJ÷7I·Sá7æÄ_c³mvúæ=Mi¶5aï̸ÀgPNCå/Sº·QX4väÙßzÃ\NÂ;<ªµldM²{EÅâ"A>(U^Õ{À',³5!^±p~nË2{ø÷kb8éÿs*(cÕT¾XæNe6?¸´= ʽưzVÕln.|f¿: &
i/ÂêH© U¬D,ò\0Ì\F#ñ+!×fNn<z½¶v-QÐX#ïn= :ãÉ
|
|
180
|
-
\¾Bý0¨µâÖ"èù£õd½Ê4ÕW]0«]Äõíp¥áìHºz.íá ¯Bóztá.ºó #B²ü2z±¤©ªCi])¡qì)Ï«©m+áÝÌÏÔÁÂ=}ª9RÃöã¾üé1)¼bñ+îêÃl5c{mn¤ëUÁÈÿA&ÁUxèE¨£BêæûñSdA;^uúÚ9ìÁà:Où5MÌ¢GüþKV»§G
|
|
181
|
-
Þ¤ÔOàEÑå%âv¿ÞÙñ7ÍM2îQÒb®ó&:RË7áDNãy[ã§ 3ióµÝ3Åo_¯~beí¿jüìõªÇAáü*!K©Ô4³ÙÇa=}6Ñ? qÔ2ªFRÖ¯ççEÔògìµ<i-Q-§G/OR*§@Ì@îÓ¿$,[!U¨©p&æ÷/ÈWÀÜ83>à°v«õ(Òíù½ô[¢µø°CÙÁÕXóMèÈztïÞf5"jIx]r;¹05dDN à E9Ln;/(ªä°®ÞøÿÜ!)LÙ_íÈn)EP×EOÖW×X]ò¸p\Ü-d£p¦4»ÈTM[ÐYû~¬rdïX9_^ÁÍdâÂøT_rgXd]lrÚøuhÞþ>¼hxtd;Ùà Ú æ ñi9QcÐ;pã^éÛ·´¶¡¥µ«£³¯§·7( 0,$44*"2.&66)!1-%5µ©+,*.!-5+3x~yø
|
|
182
|
-
þ´501+}
|
|
183
|
-
þ Ç:ìÁ¿'·Ä=}òÍs#pR~¿o,=MÌL¦ôËV*-sD4Ó8P1#FÔR:U/7úâ®Vá]=Mõ«>³ÅG9ë?ÇÖUQø
|
|
184
|
-
Õ°®ÍOäýsÏwÏE6|=}%û£s~%²º5îõS¦´ÖGACg·Wc>¤ðÎ?éKwRLã³+¹RòUowÖT'E÷/=MÐ/Q7Ð,5ë1ÎD2ëç×ÍZcS®tNR¹¬UÚUÏqUâµÒNæÇ1¤j/µPÂñUË®CTÑÿòÿ§6UØ-þÈ9wæCw/ÇÓ]£ gø¸YhD4Ë+þmÅgÈVTQ»[ðÿ]yp]X1=M"ÎÄ3E%Å3Å;HÅ=}>RÓÚñqqT®ß¦õÍ8.!9ÙÃÍ;B-ÿ¦EõiqT®ÿ¶#àøo:=MÒA*ýûϦãdM¶ÿ§÷ÐÈ3ìàøo:=MÌVTQ{Τåd~:×jW¨ ¦êhaÏý9\³Ñ*Ì:z¦ðáÔ¤}²áå ëo¥Æê7ñ>¿~·«#õ.º¡D=}¥+àßlÏù± 'Jøå r_Q(p;tÃfJ×".Ê}ÞEÃZÉí4¦«QôÂÆ=Mr³¡¸òÚÖ4ýË
$´ÿöÓ¶ª0'¾¸p§Eª£ì7Á>©óÉìdfK*ò«¼Íì±q×àÈíi³Ó"Ì>jy¦Ü¡Ô½±ñ¥=Mï¤¢ÇÆ©±n¸n7¨3µ.¾o¡EE
+ðìÈé}°Nèå²_S ð?tYæØÉÔÑ/±öÍ?¤ ÏéÁ>¹r·¨5Å®¿saEF«*÷ÓlÉöðg,Ï÷M1¢SÓ'äd?q½´¾qîI_%¾Ëæé)9rÅ¥óå)Tï ¯s!Âú1+ûcï!A¼Ëñ§:¾ñÐÎI
|
|
185
|
-
!@Åb3Ú$>³B3D~ñÕÅÞHðê|ãQí~vaß¡?hwsãfô(I^ög8Òö°ÎHá@ÍJ5¤?£Â5rÄéÆ^È÷ú&KQé^FYS¡=}XGóái,=}Þ
|
|
186
|
-
ôÁ9ɳÈô¤æH)Á#q
|
|
187
|
-
Dä9×ìÍå½±Ì3ÒPÌ=}bôºþHq5ºh7¶Õy?°àÔµO°ï|Ϥ'¨ö¨"}îºa),{=}= AuBk»+éc\x~Him5¸h3æ¶¿ðçqԥϰëu|ÿ¤%v¨$]n»Y)([<Xu@[ê×i>b°·LÜ
¾RydàÂSC×Ûû«qqnOUû׫¬eÙÍ]Îs3%áÅ3Q©3ÅSE.Å3¾FËqöî:Aqµ¾lF±¡ÞÒldk¡¹¹ùxW²ZßGñjÌ«zDÍëøÖyIp¯ÎÿëºDѧ/ -ý: iï²)$EEPõ u_f_+Û:ôÖêºH÷´JÔ5Ú Ö-¬ÿ]˽LzqÇÞdý>T~ÐWp¥&ååÀóú^´ò=M
MÀËñ§µ#B»"ªRl«ã'®«eÔõé67ÌnEøþ{íP×pìüZ¢Çg*«ÿÊ4)2Ï¢Ét? ¶¬Ú!Á¯@ê¤î7úޱݰµWØmøNqås÷ßöÝÇ Lf¤ú)ëLĤT¯¼Î@µøIcd¢KÙFרb$F²³ê(´1ïEÆ~8Þ3XÖSF¶æ¼ºÉÚm°(àÞÂ×+æÁcάcár
|
|
188
|
-
§6ã'xpÂ@IQcY= 2Ä·¯Q5'ðÿP89a«n¹l¹kÖÑ89¹.7DÞ&3]ÝãEWÌw\Xd[ñ(
OÓvz(Ç¿ö?³V%ðäõñr)r%Àç6ëy±~«
|
|
189
|
-
¥¼õ$!u*½ý3̤/AôFxÞ¡0dûr¾¹dJe3gK×ÞAØXXh= °W«%½¸¤Ûð~Áå*Âòý5¤#Áò+ÿÑ2çÙ°pk º½$&pâým³».´Då°të »Í$Fpæ=}u3».ÔD'[ѹö sK ¶'<õK¨¶§=}K°¶'=}K¸¶§>%?)R3ÿð= X¹pØXhhûÀ²SÆ7wä~ÕÏQÖÎU'?1MÒÎ÷µC ÃÕÎEU1ÍvÎõçµ?½/Q1ÍwÎ5çµO½/U1gÎ%ßµKº/T0§Î%ïµK¾/T1í_J¹¯¶D"çµÑ
|
|
190
|
-
·Î=}%T1-_ÎMÛµÕ¹¯×0-ÎMãµÕ»¯W0-ÎMëµÕ½¯×1-¿ÎMóµÕ¿¯W1=}Ùµ0=}ݵÖ0=}áµ0=}åµV0=}éµ1=}íµ7VNð?ÃÓ¹
ò3vN
|
|
191
|
-
ÿõ±ô!1ô)±õ115µ4!54)µ515%$Ä$ $$D$(%,Ä%0%4D½xcñ
|
|
192
|
-
êñD¼£ñ"®
|
|
193
|
-
îDÍoÌ̯ÌÏÌ ï̢̤/̦Ǫoͪͬ¯Í®ÏͰïͲʹ/ͶOq¸Ùap¹ÝqÎpºáp»åNp¼é¡q½í±Î++mØd(rѲN<Jçø¥ÄAKT×W÷K&Q?ËWñ?$ïÑ×N!Ö1Sç<ëê·J¤!QÿçLë*·R¤AUßßHi¶§Ðb·9
Teç?HTf'OHTçg;PVä§;/PVåç;?PVæ';OPVW.aYØXØóiäÎ -Y£g*ßLzU §*ïL~U¡ç*ÿLU¢'*LU£g+LU¤§+/LU¥ç+?LU¦'+OLU'gJßTzW §JïT~W!çJÿTW"'JTW#gKTW$§K/T?×ÅÀ&÷KCT'7KSTvàg:ÝPyöà:åP{vá§:íP}öáÇ:õPvâç:ýPöâ:Pvã':=MP
öãG:Pväg;Pöä;%Pvå§;-PöåÇ;5Pvæç;=}Pöæ;EPvç';MPöçG;UP×
|
|
194
|
-
´_]XØhÜâÑU³QÙn$_>_KÝQÔºÖ7ð×$JëÔ}×!¿JóÔW!ßJûÔ×"ÿJÔW"JÔ
×#?JÔW#_KÔ×$K#ÔKTKÔLTLÔMTMÔNTNQFS\[xXXXõÅ3Å3Å3Å3Ås1ùå
|
|
195
|
-
R²CBrÃJÂÃV¢úÙÒûÞ~@ûÚ²@ú¡,®§½-,¬Õ¬¯£µmýò2Aýô²òAü÷¢BÁýóz«¦C4ë¦;DK¦E$Ë&ᬠ~ç¼* |ßÔª ã´j|ñÂÞ1>ñÄòñ>ðÇâA¾ñÃüª#ê£ôJ£Ê£ìP"CÇS*ÇU6#Q&S "^3D $róD'bCÄ #Ú}¯5È3ïµË+uOµÉ5
ϵ,ÂsÅ/ÊÃÅ+Ö-Æãî][ÄH^e¤È_]Ì]Yêºà
ö úáæPúàîzbäcaì(b ûæNÐ{ç>;çR°;æp ÉD4[ä|±XØ9Ųû.ÂÄ3t3¿3Å]?ð¿!AmKì"¯wÙQa½Êt¯T?V}ÃØ×¶m[KgÎëen\øyßntà§að8ÛÚdryÜ|b@Ýpf¨XjöDyí²a|ö´²É|j[ýLºâ¢Áî¨êük¯º }Û HºÁ,¹ha<)Þk©pûgT¨ékÎÜùýà4à;hdyóÕü«ç|ê§&÷ÊRw1»§âAõµtþò¹Øã|q¸â_JãcÕÕRÚ¿?¯18= Ywz¨¸ÙcYøn§1ÛæPjáj£´a|îм09pÓaú¨¹ÝséØtÓa¿w>;§ÂÉðµ|êÌ>r~!Y«Äè÷3S}CðöhÓ= X4ø·ý=}½k
ÖhUK²X¶&(_!piã4~U!>ga¡QµÎo5E¨·e×6Y~§KsÈHÐ=}3Ëݤ,3+=Mò|´D= s"19
¹94¿ß?¢Þ»g¢."ªæræsçqæAçÁ]U ââDâ
|
|
196
|
-
DÙ VààͳÄvÒ2; 5c±-ìÊöª§}Ou¡¡¦îGÇ D0jn²sõ=Mx|Pȱ½²½²¿· ¸(¸(;+ÞKϰÂVÚ1ãnç°B/qCf.ÿív§
'
"®Bójóë²ê^m;c+V=M¹ñ !½í¡©Eéµ [¹¹¹k¶«6Ë&£/15<Èû+ç°¿I
|
|
197
|
-
1î±ò0Íx4°ê²ôªé¶ï*ò(B¯LÓO¥D\Q.]¿å.pú{^»[Þ[ç^&\
Æ·EÊû?=M¶Ï8HE+®ãNÆçBR*JbJJò=MSs«3«Ò-â¡èº¨¿TÞØÍ72$= À*Þh~ø»þµß£ôæöoÔôùí¡pæz±/°0ÓÐÑSPRQ_\\^]]ãTù?ëÁ¢8>ÊZï²Ðvòxümî2xýuöo,= {ìXx¹U!Rí¸aP7WV&ít\9ÔæØ8b[öØ8cP[ÙHoÛLlajÛYÈÅGÇ3Å33Å3Å3ÅSvÂ5!ï|ê¤A¼ê¥Qlª¤=}¬ª¥
M*¤EÌ*¥Ud$;¤%só}³
3{ÓSËx_ËßË|ËËzËÿË~¿Ë?ËyoËïË}¯Ë
/Ë{ËËÏËOKxgKçK|§K'KzKK~ÇKGKywK÷K}·K
7K{KK×KWÏQè½±%².k ùÜk¡ ë üë¡<« ýì«¡=M,+ +¡L ûä!N,¦ï¢^1ékmA!Ä#ýÔ D=MT¡CÔ=}¯ÒoðsÙcEa· ¤À´Ä¾,ïòa³ëÿ/KbË»/íʲ½þD²~Ã$ác/23ͳǦ4q¸GZMl|ÿ¸ñßðsÂD6mÆGzD¼üå
|
|
198
|
-
)ÐuC7S¥Ú7~R§êW~xÝÁ&¤ÏÎÞ5í=}&tÏ?y§
Q¬³érã-²>=MïCðÿ®A²Ç=MÒ+ÃÛösM6Ûn±!üµõBêç$R¼/±f!Ì»vïMü$ÿ½Ã^sñ~¾
|
|
199
|
-
ñ1Ĺ³ñ-.¾1ÅÇÞÞñFÂóIö¾5/&F'Ù¶wDÕÏ7tAS' VÓ¦Ì.!&-1¿;Ïõ;&K4ÕÙr®#ý´ůIr=M¶ÿ>s,ÖvÆ-#uÒ£ÇO@IÖ?LVðdöì+Ѧ @½±¼Od7í=}_U°÷"Pc±Ç¸ðtø»¡TgÒɪ'¾ÄO¼Å3mN.2Å3Å/2rõÖËPóOV\7VZ¯WfføY[äaȨydbÙeY~]-øCö]ÊУÙAØ YH·g¦4Z<&8F_V©¸æß4h´[:¶÷YQvØÙjä
o¢øiôÐðö}= ÆCc$çÚ´*Å(ó°0±
?
÷n¾Îà ÍÐ;yT³ôP±= ±uµäð<VckÌhwâxãiôéRì>õ»KÅôÛÄìÇ˺¥d§äçù¾!wE£ø§¸ßë UëÐw|iÃþgþp³ñå{áo¼è=M±4c
|
|
200
|
-
½ZËÍ]íí\gz.VübÑ ¦
|
|
201
|
-
^Õ»e¾å²Öf-³'á7,{'Ãx°ú¢jKdÊß&EôÝV×nNëéÿ&3ÒúÉv$¿D;QÐg
kIA o;Æ\×Ìþ¿qî=}\¯ì;¯ºzÓóÈ®ÃÇ.Ú1í5ÞË"COG¾a^Ò¨_LºC{OÑF4L0e{Ëf6bÉM= þ"0;ÑÃ8³W2 Pß·´w=My(\¿ÄÚðqNÕó{0j?ï(¿ÇÛA7WNïGà2º¿¦1mQÆ\¯EÙÈ$ <¾Fßó7w}8¾c:iH»øhÛó?Ù7dJxÖ@ãeIW¸Ñÿ¤bT/]²
|
|
202
|
-
¨ËPÏÞàÇr>>\M=UÐì=}ç17ãy*a®-ÍnÉ»¡pFeçñlþ =M¹3ÃþÈsæt¦ÔNñ¤bsl¾¾¾¾¾÷RBUGG³¬ ¨ædH¨íPpXŽ\Ä_k]¾õ X$rÈ
¹fåÉ^L)euYIX>ÞgqµX«yÝUfÀ§8
|
|
203
|
-
Ùup3q@ݱuXtX07=Mp_¤I¬ø®®[¦ó[ÀRVsX?F^":ha?ØÎeÄQc{Yíz0j¹{b ×c4ö= %¡ì?XÜñÊ,xþÀf©ûyO}:Fà= NuÙO_hÌÍtÝg|ȳ]²(a= TÜøN»j/Ì|éÚ{^ëÐÖ{¡Çzñú_|Åûl*Ztì{8¯a@©¥ZKبc¿i<±üFÇkº-cy5±4§o9Ñ,;KzÌ $à1I=MºôÉ©¤=MêÈ5
|
|
204
|
-
}õíë(ðìÍäWD?£©ÿãª=MäÒ±ì6í)ÏÙtbFÐöÚFÈ´Ù§R1.]¢¦¨ùû,9ïtö»LÂôâ¦qªk{ä(9«4>°»B¶ñ»GÓ½vÃâ£d$°A0ô¼¦d=M¢«£Àß}â$æ0òÊ6¾%¼>3(
-D+ÂÔÂ
o7#æFåEIîkNDÒ_&3iÍHÌúk&@âk1ýîW¶Y¬XÞXáXâ¢XEeØØÈ\gi,Ç~æ{
Ü-ïÈÛx6Û{í8+¾\g¦ñÛírô9³®°3D_åãxQÈxþÚ·/ª= Íu_ÌuL^t^{g9áq?ª(üo!*Írâ&ÃËì÷¨Pd׺ÓG)àþê¤sJ
ñAÉå$AÐNÎçõnD1MøhO¥me Qʸ[F< ^MBÜÛ
|
|
205
|
-
Aãϧüï4î%M°6M
ùtN)FR[¾FqV6¥óðlò©Ë= c»R=}Ù8õ.%BÂIµÃI&æ×U1Q«Ïñ3&ÑóÓÝ»ñ²eL°(ÑòOzBð·Q]üôföê+h.³´)ÅKé¥JR#/GóuÉɾ¯Áõ¿-½ñ'î<·Q¼=MÛ²6+þçYdb_öcHmöôزj¾
nÚ7aÌvØOå¹÷e0FfÂÊÈønØ#?ÁhÊÀcÝåõ(åû)ü)éðк¿ÓÜ¡]qákÈÛÝL·ºrCMmp_ÀÏ Óìcç6®þsosÒÝóô1¬Ã6<2#Ò±C65Q"4B&pç
|
|
206
|
-
gUn
g= !þ+µèm M½Êê½½²¦é%0Yg~´p5.\Ø®zy9%ÔiÜ!ÙcÝŦH>ÓXÿZR[¬&ønÇlÓ_:ïi«ñ<ø"QÚ©yz
®ªOL¥ÎêÌÝi?Ê'/Ne»:2NÅÝ_òspüR Oø!!ù+##üÓkéªX-fpdq[U*]@ ö¨5ÍpÖYhܪ= ÛN3{ü® À)¡9þ-1® ÂcBNö÷0+È6òÒÑ;lÅ^_>ÓÛQ&jðMI줳àlS×j΢@ÈåÕ¢on=M°©xÉûÖäav=MM©²öÖ¹?{ÃßîøyÛ= 0òûÏ4grèNÒíÏqëðð-êö¸á¥$¨Q.Ò4ä¿V$N_Ý><´æë[â²F#T1É'utÿZXÁ(oàx¡Jo"öùSæ÷ÒUFÓs* U¡ÓºUµøGáL¨÷©ASjÕ®'!L¢ÕvC¿m·Gâ¼N¹³OÃã§1T:ê¹\Z£ËZæ.î}ª°O'ãà ¾I;ûÁHÃä&ÃÐÐK@3EÅÓÉ>½e@ã/òi¡|ÃE³{ñSCm
ÎëöÁÐÐ%Ó>d''¶9Á/T.N?äª æÿÀÐÐ%Ó¶ö¾ì¦)ÃÕ÷×"e|ÃþBåýrv¶K6öuâÐÌRÎËýæ×%IOIø¦Ä(HTJ~),ÕDCWWÃö(VwV=M§TsLP³ þV'tT#¡ZLêé;ßù[`});var fe={a:te};this.setModule=me=>{O.setModule(EmscriptenWASM,me)},this.getModule=()=>O.getModule(EmscriptenWASM),this.instantiate=()=>(this.getModule().then(me=>WebAssembly.instantiate(me,fe)).then(me=>{const Re=me.exports;ie(Re),f=Re.g,k(),we(Re),N()}),this.ready=new Promise(me=>{N=me}).then(()=>{this.HEAP=f.buffer,this.malloc=re,this.free=ue,this.opus_frame_decoder_create=ye,this.opus_frame_decode_float_deinterleaved=de,this.opus_frame_decoder_destroy=se}),this)}function OpusDecoder(O={}){OpusDecoder.errors||Object.defineProperties(OpusDecoder,{errors:{value:new Map([[-1,"OPUS_BAD_ARG: One or more invalid/out of range arguments"],[-2,"OPUS_BUFFER_TOO_SMALL: Not enough bytes allocated in the buffer"],[-3,"OPUS_INTERNAL_ERROR: An internal error was detected"],[-4,"OPUS_INVALID_PACKET: The compressed data passed is corrupted"],[-5,"OPUS_UNIMPLEMENTED: Invalid/unsupported request number"],[-6,"OPUS_INVALID_STATE: An encoder or decoder structure is invalid or already freed"],[-7,"OPUS_ALLOC_FAIL: Memory allocation has failed"]])}}),this._init=()=>new this._WASMAudioDecoderCommon(this).instantiate(this._EmscriptenWASM,this._module).then(M=>{this._common=M,this._inputBytes=0,this._outputSamples=0,this._frameNumber=0,this._input=this._common.allocateTypedArray(this._inputSize,Uint8Array),this._output=this._common.allocateTypedArray(this._outputChannels*this._outputChannelSize,Float32Array);const Z=this._common.allocateTypedArray(this._channels,Uint8Array);Z.buf.set(this._channelMappingTable),this._decoder=this._common.wasm.opus_frame_decoder_create(this._sampleRate,this._channels,this._streamCount,this._coupledStreamCount,Z.ptr,this._preSkip,this._forceStereo)}),Object.defineProperty(this,"ready",{enumerable:!0,get:()=>this._ready}),this.reset=()=>(this.free(),this._init()),this.free=()=>{this._common.free(),this._common.wasm.opus_frame_decoder_destroy(this._decoder),this._common.wasm.free(this._decoder)},this._decode=M=>{if(!(M instanceof Uint8Array))throw Error("Data to decode must be Uint8Array. Instead got "+typeof M);this._input.buf.set(M);let Z=this._common.wasm.opus_frame_decode_float_deinterleaved(this._decoder,this._input.ptr,M.length,this._output.ptr),J;return Z<0&&(J="libopus "+Z+" "+(OpusDecoder.errors.get(Z)||"Unknown Error"),console.error(J),Z=0),{outputBuffer:this._common.getOutputChannels(this._output.buf,this._outputChannels,Z),samplesDecoded:Z,error:J}},this.decodeFrame=M=>{let Z=[];const J=this._decode(M);return J.error&&this._common.addError(Z,J.error,M.length,this._frameNumber,this._inputBytes,this._outputSamples),this._frameNumber++,this._inputBytes+=M.length,this._outputSamples+=J.samplesDecoded,this._WASMAudioDecoderCommon.getDecodedAudioMultiChannel(Z,[J.outputBuffer],this._outputChannels,J.samplesDecoded,this._sampleRate)},this.decodeFrames=M=>{let Z=[],J=[],z=0,Q=0;for(;Q<M.length;){const ee=M[Q++],Y=this._decode(ee);Z.push(Y.outputBuffer),z+=Y.samplesDecoded,Y.error&&this._common.addError(J,Y.error,ee.length,this._frameNumber,this._inputBytes,this._outputSamples),this._frameNumber++,this._inputBytes+=ee.length,this._outputSamples+=Y.samplesDecoded}return this._WASMAudioDecoderCommon.getDecodedAudioMultiChannel(J,Z,this._outputChannels,z,this._sampleRate)},this._isWebWorker=OpusDecoder.isWebWorker,this._WASMAudioDecoderCommon=OpusDecoder.WASMAudioDecoderCommon||WASMAudioDecoderCommon,this._EmscriptenWASM=OpusDecoder.EmscriptenWASM||EmscriptenWASM,this._module=OpusDecoder.module;const N=8,I=M=>typeof M=="number",D=O.sampleRate,f=O.channels,k=O.streamCount,i=O.coupledStreamCount,c=O.channelMappingTable,$=O.preSkip,C=O.forceStereo?1:0;if(f>2&&(!I(k)||!I(i)||!Array.isArray(c)))throw new Error("Invalid Opus Decoder Options for multichannel decoding.");return this._sampleRate=[8e3,12e3,16e3,24e3,48e3].includes(D)?D:48e3,this._channels=I(f)?f:2,this._streamCount=I(k)?k:1,this._coupledStreamCount=I(i)?i:this._channels-1,this._channelMappingTable=c||(this._channels===2?[0,1]:[0]),this._preSkip=$||0,this._forceStereo=f<=N&&f!=2?C:0,this._inputSize=32e3*.12*this._channels,this._outputChannelSize=120*48,this._outputChannels=this._forceStereo?2:this._channels,this._ready=this._init(),this}class OpusDecoderWebWorker extends WASMAudioDecoderWorker{constructor(N){super(N,"opus-decoder",OpusDecoder,EmscriptenWASM)}async decodeFrame(N){return this.postToDecoder("decodeFrame",N)}async decodeFrames(N){return this.postToDecoder("decodeFrames",N)}}assignNames(OpusDecoder,"OpusDecoder"),assignNames(OpusDecoderWebWorker,"OpusDecoderWebWorker"),new OpusDecoder;class RoomPeer extends RoomUsers{constructor(I){super(I);_e(this,"getPeerStatsTimer",0);_e(this,"reports",[]);_e(this,"candidates",[]);Ge(this,Tn,[]);Ge(this,vn,0);_e(this,"peerNetwork",{inboundBytes:0,outboundBytes:0,lostRate:"0.00",roundTripTime:"0",jitter:"0"});_e(this,"initPeer",()=>{var I;clearTimeout(Oe(this,vn)),this.transceiverMap=new Map,(I=this.peerIns)==null||I.close(),this.peerIns=void 0,this.peerIns=new RTCPeerConnection({iceServers:[{urls:"stun:stun.cloudflare.com:3478"}],bundlePolicy:"max-bundle"}),this.peerIns.createDataChannel("scapegoat-channel"),Oe(this,Pn).call(this),Oe(this,Ln).call(this)});_e(this,"getNatType",()=>"normal");_e(this,"initSendChannel",(I="",D)=>{});_e(this,"initReceiveChannel",(I="",D)=>{});_e(this,"replaceSenderStream",async(I=[],D)=>{const{userId:f}=this.options;I.length===0&&(I=mediaType_keys);for(const k of I){const i=this.transceiverMap.get(k);let c;if(i){const{sender:$}=i;D?c=this.getUserStream(f,k):c=this.getPhoneyStreams(k);const[C]=c.getTracks();C&&await $.replaceTrack(C)}}});_e(this,"getSenderTracks",async(I=[])=>{const D=[];for(const f of I){const k=this.transceiverMap.get(f);if(!k)continue;const{mid:i,sender:c}=k,{track:$}=c;if(!$)continue;const{id:C,enabled:M}=$,Z=mediaType_keys.findIndex(z=>z===f),J={type:Z,enabled:M,trackName:`web-${Z}-${C}`,location:"local",mid:i};D.push(J)}return D});_e(this,"addSenders",async(I=[])=>{I.length===0&&(this.peerIns.addTransceiver("audio",{direction:"sendonly"}),this.peerIns.addTransceiver("video",{direction:"sendonly"}));const D=[];for(const f of I){if(this.transceiverMap.get(f))continue;const i=this.getPhoneyStreams(f),[c]=i.getTracks(),$=this.peerIns.addTransceiver(c,{direction:"sendonly"});this.transceiverMap.set(f,$),D.push(f)}if(I.length===0||D.length!==0){const f=await this.peerIns.createOffer();if(this.options.debug){const k=libExports$1.parse(f.sdp),i=dt(k.media,["mid","msid","type"]);console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#ffffff;","------->quickvo: setLocalDescription",{msidArr:i,sdpJson:k,description:f})}await this.peerIns.setLocalDescription(f)}return D});_e(this,"removeSenders",async(I=[])=>{I.length===0&&(I=mediaType_keys);for(const D of I)this.transceiverMap.has(D)&&this.transceiverMap.delete(D)});_e(this,"onSubscribeUserTracks",I=>{let D=0;return new Promise(async f=>{const k=[];for(const i of I){const{tracks:c=[]}=i;for(const $ of c){const{trackName:C,mid:M}=$,[Z]=await this.getUserTrackByTrackName([C]);k.push({...Z,mid:M})}}{let i=[];const c=async()=>{clearTimeout(D);const C=new Map;for(const Z of i){const{userId:J,mediaType:z}=Z;if(!J||!z)continue;C.has(J)||C.set(J,{userId:J,tracks:[],updateStreams:{}});const ee=C.get(J);ee.tracks.push(Z),ee.updateStreams[z]=!0}const M=[...C.values()];for(const Z of M){const{userId:J,tracks:z}=Z;await this.updateUsertracks(J,z,!0)}await this.emitNotifyUpdateUsersStreams(M),this.peerIns.removeEventListener("track",$);{const Z=Array.from(k,Q=>Q.trackName),J=Array.from(i,Q=>Q.trackName),z=Z.filter(Q=>!J.includes(Q));f({target:Z,success:J,fail:z})}},$=async C=>{const{streams:M,transceiver:Z}=C,[J]=M,{mid:z,receiver:Q}=Z,{track:ee}=Q,{id:Y}=ee,te=k.find(re=>re.mid===`${z}`);if(!te)return;const{userId:ie,mediaType:ye}=te;if(!(!ie||!ye)){{const re={...te,mid:z,msid:Y};i.push(re)}this.options.debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#00b60f;",`------->quickvo: await subscribe ${i.length}/${k.length}`,{mediaType:ye,mid:z,userTrack:te,e:C});{const re=new Audio;if(re.srcObject=J,await this.initUserMediaStreamContext(ie,ye,J),ye==="microphoneCamera_audio"||ye==="screenSharing_audio"){const de=this.getUserAudioMediaStreamContext(ie,ye);de==null||de.setMute(!1)}}k.length===i.length&&c()}};this.peerIns.addEventListener("track",$),D=window.setTimeout(()=>{this.reportLogs("subscribe_error",`incomplete subscription. (${i.length}/${k.length})`),c()},5*1e3)}})});Ge(this,Pn,()=>{const I=()=>{this.peerIns.close(),this.setRoomState("closed")};this.peerIns.oniceconnectionstatechange=async()=>{const D=this.peerIns.iceConnectionState;switch(clearTimeout(Oe(this,vn)),D){case"connected":{this.options.debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#00b60f;",`------->quickvo: connectionState:${D}`),this.setRoomState("connected");for(const f of Oe(this,Tn))await f()}break;case"disconnected":this.options.debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#b64900;",`------->quickvo: connectionState:${D}`),kt(this,vn,window.setTimeout(I,30*1e3));break;case"failed":this.options.debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#b60000;",`------->quickvo: connectionState:${D}`),this.setRoomState("failed");break;case"closed":this.options.debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#b60000;",`------->quickvo: connectionState:${D}`),I();break;default:this.options.debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#b64900;",`------->quickvo: connectionState:${D}`);break}}});_e(this,"iceConnected",()=>new Promise(I=>{if(this.peerIns.iceConnectionState==="connected")return I(!0);Oe(this,Tn).push(I)}));_e(this,"closeUserTracks",async(I,D=[],f=!1)=>{const k=[];for(const C of D){const{trackName:M,msid:Z}=C;k.push(M),Z&&k.push(Z)}const i=C=>k.includes(C),c=this.peerIns.getTransceivers();for(const C of c){const{mid:M,sender:Z,receiver:J}=C;Z.track&&i(Z.track.id)&&(C.stop(),this.options.debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;",`------->quickvo: transceiver.sender: ${M} is stop.`,C)),J.track&&i(J.track.id)&&(C.stop(),this.options.debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;",`------->quickvo: transceiver.receiver: ${M} is stop.`,C))}const $=await this.getUser(I);if($){for(const C of $.tracks){const{trackName:M,msid:Z,userId:J,mediaType:z}=C;!J||!z||!i(M)||(this.removeUserMediaStreamContext(J,z),Z&&delete C.msid)}if(f){const C=$.tracks.filter(({trackName:M})=>!i(M));await this.updateUsertracks(I,C,!1)}}});_e(this,"createOffer",async()=>{const I=await this.peerIns.createOffer();if(this.options.debug){const D=libExports$1.parse(I.sdp),f=dt(D.media,["mid","msid","type"]);console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#ffffff;","------->quickvo: createOffer",{msidArr:f,sdpJson:D,description:I})}await this.peerIns.setLocalDescription(I)});_e(this,"createAnswer",async()=>{const I=await this.peerIns.createAnswer();if(this.options.debug){const D=libExports$1.parse(I.sdp),f=dt(D.media,["mid","msid","type"]);console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#ffffff;","------->quickvo: createAnswer",{msidArr:f,sdpJson:D,description:I})}await this.peerIns.setLocalDescription(I)});_e(this,"getSdp",()=>{var I;return(I=this.peerIns.localDescription)==null?void 0:I.sdp});_e(this,"setRemoteDescription",async I=>{if(this.options.debug){const D=libExports$1.parse(I.sdp),f=dt(D.media,["mid","msid","type"]);console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#ffffff;","------->quickvo: setRemoteDescription",{msidArr:f,sdpJson:D,description:I})}return await this.peerIns.setRemoteDescription(I),I});_e(this,"setCallStrategy",async(I,D=[])=>{D.length===0&&(D=mediaType_keys);let f="balanced";switch(I){case"qualityPriority":f="maintain-resolution";break;case"fluencyPriority":f="maintain-framerate";break;case"balancedDowngrade":f="balanced";break}const k=await this.getSelfInfo(),i=Array.from(k.tracks,({trackName:$})=>$),c=this.peerIns.getSenders();for(const $ of c){const{track:C}=$;if(!C||!i.includes(C.id))continue;const M=$.getParameters();$.setParameters({...M,degradationPreference:f})}});_e(this,"setRTCRtpSenderParameters",I=>{try{const D=this.peerIns.getSenders();for(const f of D){const k=f.getParameters();f.setParameters({...k,...I})}}catch(D){console.error("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: setRTCRtpSenderParameters is error.",D)}});_e(this,"getReportsByMid",async(I=[])=>I.length===0?this.reports:this.reports.filter(D=>I.includes(D.mid)));_e(this,"getRoomNetwork",()=>this.peerNetwork);_e(this,"getPeerNetwork",()=>this.peerNetwork);Ge(this,Un,async()=>{try{const I=await this.peerIns.getStats(),D=["inbound-rtp","remote-inbound-rtp","outbound-rtp","transport"],k=[...I.values()].filter(de=>D.includes(de.type));let i=0,c=0,$=0,C=0,M=0,Z=0,J=[],z=[];for(const de of this.reports){const{packetsSent:se,packetsLost:ue}=de;se&&($+=se),ue&&(C+=ue)}this.reports=k;for(const de of this.reports){const{bytesSent:se,bytesReceived:ue,packetsSent:he,packetsLost:we,roundTripTime:fe,jitter:me}=de;se&&(c=se),ue&&(i=ue),he&&(M+=he),we&&(Z+=we),fe&&J.push((fe*100).toFixed(2)),me&&z.push(me.toFixed(2))}z.sort().reverse(),J.sort().reverse();const Q=M-$,ee=Z-C,Y=Q===0?"0.00":(ee/Q).toFixed(2),[te="0"]=J,[ie="0"]=z,ye={outboundBytes:c,inboundBytes:i,lostRate:Y,roundTripTime:te,jitter:ie};this.peerNetwork=ye;const re=(de,se,ue)=>{const he=Number(de),we=Number(se),fe=Number(ue);let me="0";return he<.03&&we<100&&fe<.05?me="5":he<.06&&we<160&&fe<.1?me="4":he<.1&&we<250&&fe<.15?me="3":he<.15&&we<400&&fe<.2?me="2":me="1",Number(me)};{const de=re(Y,te,ie),se=await this.getSelfInfo(),{network:ue}=se,he={egress:de,ingress:de};$t("updateUserNetwork",async()=>{if(await this.updateUserNetwork(this.options.userId,he),JSON.stringify(ue)!==JSON.stringify(he)){this.emitNotifyUpdateUsers();const{userId:me,roomId:Re}=this.options;this.cwsIns.sendMessage({event:"networkQualityChange",data:{...he,userId:me,roomId:Re}},!1)}},3*1e3)}}catch(I){console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: setNetQuality is err.",I)}});Ge(this,Ln,()=>{const I=async()=>{this.peerIns.connectionState!=="connected"||!this.options.roomId||Oe(this,Un).call(this)};this.getPeerStatsTimer=window.setInterval(I,1*1e3)});_e(this,"stopGetPeerStats",()=>clearInterval(this.getPeerStatsTimer))}}Tn=new WeakMap,vn=new WeakMap,Pn=new WeakMap,Un=new WeakMap,Ln=new WeakMap;class RoomCalls extends RoomPeer{constructor(I){super(I);Ge(this,bn,0);Ge(this,On,[]);_e(this,"setLocalStream",(I,D)=>new Promise(async(f,k)=>{try{typeof I=="string"&&(I=[I]);for(const c of I)this.localStreamsActionMap.set(c,D);if(D){if(I.includes("microphoneCamera_audio")&&I.includes("microphoneCamera_video")?await this.initLocalStream("microphoneCamera"):I.includes("microphoneCamera_audio")?await this.initLocalStream("microphoneCamera_audio"):I.includes("microphoneCamera_video")?await this.initLocalStream("microphoneCamera_video"):I.includes("screenSharing_audio")&&I.includes("screenSharing_video")?await this.initLocalStream("screenSharing"):I.includes("screenSharing_audio")&&!I.includes("screenSharing_video")?await this.initLocalStream("screenSharing_audio"):I.includes("screenSharing_video")&&!I.includes("screenSharing_audio")&&await this.initLocalStream("screenSharing_video"),I.includes("screenSharing_audio")){const c=await this.getLocalStream("screenSharing_audio");if(c){const $=c.getTracks();for(const C of $)C.onended=()=>this.stopPublish(["screenSharing_audio","screenSharing_video"])}}if(I.includes("screenSharing_video")){const c=await this.getLocalStream("screenSharing_video");if(c){const $=c.getTracks();for(const C of $)C.onended=()=>this.stopPublish(["screenSharing_audio","screenSharing_video"])}}}else await this.stopLocalStreams(I);const i=await this.getLocalStreams(I);await this.cwsIns.emitNotify("onLocalStream",{code:200,data:i,desc:"local stream is change."}),f(i)}catch(i){k(i)}}));_e(this,"setMediaDeviceKind",(I,D)=>new Promise(async(f,k)=>{this.setDeviceKind(I,D);const i=await this.getSelfInfo(),{id:c,tracks:$=[],callActionMap:C}=i,M=[],Z=async J=>{const z=this.localStreamsActionMap.get(J),Q=$.find(Y=>Y.mediaType===J),ee=C[J];if(z){M.push(J),await this.stopLocalStreams([J]);try{await this.initLocalStream(J)}catch(Y){this.options.debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: initLocalStream is error.",Y),await this.inactiveTracks([J],!1),k(Y)}}if(Q){const Y=await this.getLocalStream(J);Y&&(await this.initUserMediaStreamContext(c,J,Y),ee&&await this.replaceSenderStream([J],!0))}{const Y=await this.getLocalStreams(M);await this.cwsIns.emitNotify("onLocalStream",{code:200,data:Y,desc:"local stream is change."}),await this.emitNotifyUpdateUsers(),f(!0)}};I==="audioinput"&&await Z("microphoneCamera_audio"),I==="videoinput"&&await Z("microphoneCamera_video"),I==="audiooutput"&&(await this.changeAudiooutput(),f(!0))}));_e(this,"changeScreenSharing",async I=>{const D=await this.getSelfInfo(),{tracks:f=[],callActionMap:k}=D;try{await this.setLocalStream(I,!0);for(const i of I)f.find($=>$.mediaType===i&&k[i])&&await this.replaceSenderStream([i],!0)}catch(i){this.options.debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: changeScreenSharing is error.",i)}});_e(this,"createSession",()=>new Promise(async(I,D)=>{try{await this.addSenders(),await this.cwsIns.sendMessage({event:"connectCF",data:{sdp:this.getSdp()}}).then(async f=>{const{code:k=0,desc:i,data:c}=f;if(k!==200)throw new Error(i);const{remoteSdp:$}=c;if(this.options.debug){const C=libExports$1.parse($),M=dt(C.media,["mid","msid","type"]);console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#ffffff;","------->quickvo: setLocalDescription",{msidArr:M,sdpJson:C})}await this.setRemoteDescription({type:"answer",sdp:$}),await this.iceConnected().then(()=>{I(!0)})})}catch(f){D(f)}}));_e(this,"earlyConnect",(I=[])=>{this.isEarly=!0;const D=()=>new Promise(f=>{Oe(this,En).call(this).then(async()=>{await this.createSession(),I.length===0&&(I=["microphoneCamera_audio","microphoneCamera_video"]),await Oe(this,In).call(this,I),f(!0)})});this.asyncQueue.add(D,{describe:"earlyConnect"})});_e(this,"joinRoom",async I=>new Promise(async(D,f)=>{try{this.setOptions(I),this.asyncQueue.clear(),this.isEarly===!1&&await Oe(this,En).call(this),await Oe(this,Fn).call(this),this.clearUsers();const{roomId:k,userId:i,callType:c,sdkToken:$}=this.options;await this.cwsIns.sendMessage({event:this.isEarly?"joinRoomEx":"joinRoom",data:{callType:c,roomId:k,user:{id:i,tracks:[],callAction:0},token:$},version:2}).then(async C=>{const{code:M=0,desc:Z="服务器繁忙",data:J}=C;if(M!==200)throw new Error(Z);const{roomId:z="",roomUsers:Q=[]}=J;if(z!==k)return f("加入的房间不匹配");this.isInRoom=!0,this.initHeartbeat(),this.isEarly===!1&&await this.createSession(),await this.updateUsers(Q);const ee=[];for(const te of Q){const{id:ie,channelCache:ye}=te,{channels:re=[]}=ye;await this.updateUserBehaviors(ie,te.behavior),await this.updateUserChannels(ie,re,!1),re.length!==0&&ee.push({userId:ie,channels:re})}await this.subChannel(ee),await this.emitNotifyUpdateUsers();const Y=await this.getUsers();D(Y)})}catch(k){f(k)}}));_e(this,"quitRoom",()=>new Promise(async I=>{const{roomId:D,userId:f}=this.options,k={roomId:D,user:{id:f}};try{this.isInRoom=!1,this.asyncQueue.clear(),clearInterval(Oe(this,bn)),await this.stopLocalStreams(),this.stopSubscribe(),this.stopGetPeerStats(),this.clearUsers(),this.clearUserStreams(),this.cwsIns.clearEvents(),this.setRoomState("ready")}catch(i){this.reportLogs("quit_room_error",i.message||i)}await new Promise(i=>setTimeout(()=>i(!0),300)),await this.cwsIns.sendMessage({event:"quitRoom",data:k}),I(!0)}));_e(this,"quitRoomEx",()=>new Promise(async I=>{const{roomId:D,userId:f}=this.options,k={roomId:D,user:{id:f}};try{this.isInRoom=!1,this.asyncQueue.clear(),this.stopHeartbeat(),this.initHeartbeat(),await this.stopLocalStreams(),this.stopSubscribe(),this.stopGetPeerStats(),this.clearUsers(),this.clearUserStreams()}catch(i){this.reportLogs("quit_room_error",i.message||i)}await new Promise(i=>setTimeout(()=>i(!0),300)),this.cwsIns.sendMessage({event:"quitRoomEx",data:k}),I(!0)}));_e(this,"syncRoomInfo",()=>new Promise(async(I,D)=>{const{userId:f}=this.options,k=await this.getUser(f),{id:i=f,callAction:c=0}=k;await this.cwsIns.sendMessage({event:"syncRoomInfo",data:{user:{id:i,callAction:c}}}).then(async $=>{const{code:C=0,desc:M}=$;if(C!==200)throw new Error(M);const Z=$.data.users;this.clearUsers(),await this.updateUsers(Z),await this.updateUsertracks(k.id,k.tracks,!1);{const J=await this.getUsers();I(J)}}).catch($=>D($))}));_e(this,"checkInRoom",()=>new Promise(async I=>{const{userId:D}=this.options,f=await this.getUser(D),{id:k=D,callAction:i=0}=f;await this.cwsIns.sendMessage({event:"syncRoomInfo",data:{user:{id:k,callAction:i}}}).then(async c=>{var J;const{code:$=0,desc:C}=c;if($!==200)throw new Error(C);const M=c.data.users;return(J=c.data)!=null&&J.isActive||M.find(z=>z.id===this.options.userId)?I(!0):I(!1)}).catch(()=>I(!1))}));_e(this,"publish",I=>{const D=()=>new Promise(async(f,k)=>{try{{const J=await this.getSelfInfo(),{banBehaviorMap:z}=J;let Q=!0;for(const ee of I)if(z[ee]){Q=!1;break}if(Q===!1)return k("publish is error: prohibited by administrator.")}try{await this.setLocalStream(I,!0)}catch(J){this.options.debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: setLocalStream is error.",J)}const i=await this.getSelfInfo(),c=[];for(const J of I){{const z=this.getPhoneyStreams(J);await this.initUserMediaStreamContext(i.id,J,z)}{const z=await this.getLocalStream(J);z?await this.initUserMediaStreamContext(i.id,J,z):c.push(J)}}const $=I.filter(J=>!c.includes(J)||["microphoneCamera_audio","microphoneCamera_video"].includes(J));await this.replaceSenderStream(I,!1),await Oe(this,In).call(this,$);const C=await this.getSenderTracks($),M=[...i.tracks,...C];await this.updateUsertracks(i.id,M,!0),c.length!==0&&await this.inactiveTracks(c,!1),$.length!==0&&await this.replaceSenderStream($,!0);const Z=await this.getCallAction(M);await Oe(this,_n).call(this,Z),await new Promise(J=>setTimeout(()=>J(!0),230)),Oe(this,Hn).call(this,I);{await this.emitNotifyUpdateUsers();const J=await this.getSelfInfo();f(J)}}catch(i){this.reportLogs("publish_error",i.message||i),k(i)}});return this.asyncQueue.add(D,{describe:"publish"})});_e(this,"stopPublish",(I=[])=>{const D=()=>new Promise(async(f,k)=>{try{const i=await this.getSelfInfo();I.length===0&&(I=mediaType_keys);const c=i.tracks.filter(({mediaType:C})=>C&&I.includes(C)),$=async()=>{this.initMediaPhoneyStreams(I);const C=await this.getSelfInfo();await this.emitNotifyUpdateUsers(),f(C)};if(c.length===0)return $();await this.replaceSenderStream(I,!0),await this.closeUserTracks(i.id,c,!0),await this.removeSenders(I);{const C=await this.getCallAction(i.tracks);await Oe(this,_n).call(this,C)}await this.createOffer(),await this.cwsIns.sendMessage({event:"closeTrack",data:{roomId:this.options.roomId,sdp:this.getSdp(),tracks:c}}).then(async C=>{const{code:M=0,data:Z,desc:J}=C;if(M!==200)throw new Error(J);const{remoteSdp:z}=Z;await this.setRemoteDescription({type:"answer",sdp:z}),$()})}catch(i){this.reportLogs("close_track_error",i.message||i),k(i)}});return this.asyncQueue.add(D,{describe:"stopPublish"})});_e(this,"subscribe",(I=[],D=3)=>{const f=()=>new Promise(async(k,i)=>{try{await this.iceConnected();const c=await this.getUsers();let $=[];for(const J of c){const{isSelf:z,tracks:Q=[]}=J;if(!z){const ee=Q.filter(({trackName:Y,mid:te=""})=>te!==""&&(I.includes(Y)||I.length===0));ee.length!==0&&$.push({...J,tracks:ee})}}const C=async(J={})=>{const z=Array.from($,({id:ee})=>ee),Q=await this.getUsers(z);await this.emitNotifyUpdateUsers(),k({users:Q,detail:J})};if($.length===0)return C();const M=[];for(const J of $){const{id:z,tracks:Q}=J,ee=dt(Q,["type","trackName"]),Y={id:z,tracks:ee};M.push(Y)}const Z=async()=>{await this.cwsIns.sendMessage({event:"subscribe",data:{users:M}}).then(async J=>{const{code:z=0,data:Q,desc:ee}=J;if(z===2017&&ee.includes("renegotiation is expected before pulling or pushing tracks")&&await this.renegotiate(),z!==200){if(D>=0)return D--,await Z();throw new Error(ee)}const{remoteSdp:Y,users:te=[]}=Q;this.onSubscribeUserTracks(te).then(async ie=>{await this.renegotiate().then(()=>C(ie))}).catch(ie=>{throw new Error(ie)}),await this.setRemoteDescription({type:"offer",sdp:Y})})};await Z()}catch(c){this.reportLogs("subscribe_error",c.message||c),i(c)}});return this.asyncQueue.add(f,{describe:"subscribe"})});_e(this,"renegotiate",()=>new Promise(async(I,D)=>{try{await this.createAnswer(),await this.cwsIns.sendMessage({event:"renegotiate",data:{sdp:this.getSdp()}}).then(f=>{const{code:k=0,desc:i}=f;if(k!==200)throw new Error(i);I(f)})}catch(f){D(f)}}));_e(this,"stopSubscribe",(I=[])=>{const D=()=>new Promise(async(f,k)=>{try{const i=await this.getUsers(),c=[];for(const C of i){const{tracks:M=[]}=C;for(const Z of M){const{type:J,mid:z,trackName:Q,mediaType:ee,msid:Y}=Z;if(!(!ee||!Y)&&(I.length===0||I.includes(Q))){const te={type:J,mid:z,trackName:Y};c.push(te),await this.closeUserTracks(C.id,[Z])}}}const $=async()=>{await this.emitNotifyUpdateUsers(),f(!0)};if(c.length===0)return $();await this.createOffer(),await this.cwsIns.sendMessage({event:"closeTrack",data:{roomId:this.options.roomId,sdp:this.getSdp(),tracks:c}}).then(async C=>{const{remoteSdp:M}=C.data;await this.setRemoteDescription({type:"answer",sdp:M})}),$()}catch(i){this.reportLogs("close_track_error",i.message||i),k(i)}});return this.asyncQueue.add(D,{describe:"stopSubscribe"})});_e(this,"inactiveTracks",async(I,D)=>new Promise(async f=>{const k=await this.getSelfInfo();if(!k||!k.id)return f(!0);const{tracks:i=[]}=k,c=[...i];for(let C of c){const{mediaType:M}=C;if(M&&I.includes(M)){C.enabled=D;const Z=await this.getLocalStream(M);if(!Z)continue;const J=Z.getTracks();for(const z of J)z.enabled=D}}await this.replaceSenderStream(I,D);const $=await this.getCallAction(c);await Oe(this,_n).call(this,$),await this.emitNotifyUpdateUsers(),f(!0)}));_e(this,"setBanBehaviors",I=>new Promise(async(D,f)=>{try{const{roomId:k}=this.options,i=[];for(const c of I){const{id:$,banBehaviors:C}=c,M=Object.keys(C);if(M.length===0)continue;const Z=[];for(const z of M){const Q=mediaType_keys.findIndex(te=>te===z),ee=C[z],Y={type:Q,behavior:ee};Z.push(Y)}const J={id:$,behaviors:Z};i.push(J)}await this.cwsIns.sendMessage({event:"preventUsersBehavior",data:{roomId:k,users:i}}).then(async c=>{const{code:$=0,desc:C}=c;if($!==200)return f(C);D(c)})}catch(k){f(k)}}));_e(this,"pubChannel",()=>new Promise(async(I,D)=>{const k=[{dataChannelName:"web-channe"}];await this.cwsIns.sendMessage({event:"pubChannel",data:{channels:k}}).then(async i=>{const{code:c=0,data:$,desc:C}=i;if(c!==200)throw new Error(C);const{channels:M=[]}=$;for(const Z of M){const{channels:J=[]}=Z;for(const z of J){const{dataChannelName:Q,id:ee}=z;this.initSendChannel(Q,ee)}}I(!0)}).catch(i=>{D(i)})}));_e(this,"subChannel",(I=[])=>new Promise(async D=>{if(I.length===0)return D(!0);await this.cwsIns.sendMessage({event:"subChannel",data:{channels:I}}).then(async f=>{const{code:k=0,data:i,desc:c}=f;if(k!==200)throw new Error(c);const{channels:$=[]}=i;for(const C of $){const{channels:M=[]}=C;for(const Z of M){const{dataChannelName:J,id:z}=Z;this.initReceiveChannel(J,z)}}})}));_e(this,"debugger",()=>new Promise(async(I,D)=>{await this.cwsIns.sendMessage({event:"debugger"},!1).then(async f=>{if(f.code!==200)return D(f.desc);I(!0)}).catch(f=>{D(f)})}));_e(this,"shutdown",()=>new Promise(async(I,D)=>{await this.cwsIns.sendMessage({event:"shutdown"},!1).then(async f=>{if(f.code!==200)return D(f.desc);I(!0)}).catch(f=>{D(f)})}));_e(this,"initHeartbeat",()=>{this.stopHeartbeat();const I=()=>this.cwsIns.sendMessage({event:this.isInRoom?"heartbeat":"heartbeatEx"},!1),D=this.isInRoom?5*1e3:30*1e3;kt(this,bn,window.setInterval(I,D)),I()});_e(this,"stopHeartbeat",()=>{clearInterval(Oe(this,bn))});Ge(this,Hn,async I=>new Promise(async(D,f)=>{try{const{roomId:k}=this.options;if(!k)return;const{id:i,tracks:c=[]}=await this.getSelfInfo(),$=c.filter(C=>C.mediaType&&I.includes(C.mediaType));if($.length===0)return;await this.cwsIns.sendMessage({event:"pubNotify",data:{roomId:k,user:{id:i,tracks:$}}}),D(!0)}catch(k){f(k)}}));Ge(this,_n,async I=>new Promise(async(D,f)=>{const{roomId:k,userId:i}=this.options,c={roomId:k,user:{id:i,callAction:I}};await this.cwsIns.sendMessage({event:"updateCall",data:c}).then(async $=>{const{code:C=0}=$;if(C!==200)return f($);await this.updateUserCallAction(i,I),D(I)}).catch($=>f($))}));Ge(this,En,()=>new Promise(async(I,D)=>{try{if(["connecting","connected"].includes(this.cwsIns.state))return I(!0);this.cwsIns.clearEvents(),this.initPeer();const{appid:f,roomId:k,userId:i}=this.options;if(!f)return D("quickvo: createWs is error. You must first use QuickVO.setOptions to set the appid.");const c={c:f,r:k,v:this.sdk_service_version};if(this.isEarly){const C=xt();c.i=C,this.setOptions({earlyId:C})}else c.b=i;this.options.debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: createWs",c);const $=btoa(encodeURI(JSON.stringify(c)));await this.cwsIns.connect($),this.initHeartbeat();for(const C of Oe(this,On))await C();I(!0)}catch(f){console.error("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: createWs is error.",f),this.reportLogs("ws_c_timeout",f.message||f),D(f)}}));Ge(this,In,async I=>new Promise(async(D,f)=>{try{await this.iceConnected();const k=await this.addSenders(I),i=await this.getSenderTracks(k);if(i.length===0)return D(!0);await this.cwsIns.sendMessage({event:"publish",data:{sdp:this.getSdp(),tracks:i,callAction:0}}).then(async c=>{const{code:$=0,desc:C,data:M}=c;if($!==200)throw new Error(C);const{remoteSdp:Z}=M;await this.setRemoteDescription({type:"answer",sdp:Z}),D(!0)})}catch(k){this.reportLogs("publish_error",k.message||k),await this.removeSenders(I),f(k)}}));Ge(this,Fn,()=>new Promise(I=>{if(this.cwsIns.state==="connected")return I(!0);Oe(this,On).push(I)}))}}bn=new WeakMap,On=new WeakMap,Hn=new WeakMap,_n=new WeakMap,En=new WeakMap,In=new WeakMap,Fn=new WeakMap;class Room extends RoomCalls{constructor(N){super(N)}}class QuickVO extends Room{constructor(I){super(I);Ge(this,fn,new Map);_e(this,"reconstruct",async()=>{if(this.cwsIns.state!=="connected")return;this.setRoomState("ready"),this.initMediaPhoneyStreams(),this.asyncQueue.clear(),this.initPeer(),await this.createSession();const I=[],D=[],f=await this.getUsers();for(const k of f){const{isSelf:i,callActionMap:c,tracks:$=[]}=k;if(i)for(const C of mediaType_keys)c[C]&&I.push(C);for(const C of $)C.msid&&D.push(C.trackName)}await this.syncRoomInfo(),await this.publish(I),await this.subscribe(D)});Ge(this,jn,()=>{{const I=async D=>{const{state:f}=D.data;if(f==="closed"){const{roomId:k,userId:i}=this.options,c={roomId:k,user:{id:i}};this.stopHeartbeat(),this.cwsIns.sendMessage({event:"quitRoom",data:c}),this.cwsIns.close(),this.reportLogs("webrtc_c_timeout","webrtc state is closed.")}};this.cwsIns.addNotify({event:"onRoomState",callback:I},!0)}{const I=async D=>{const{qualities:f=[]}=D.data,[k]=f;if(!(k&&k.userId===this.options.userId&&f.length===1)){for(const i of f){const{userId:c,egress:$,ingress:C}=i;this.checkUserInRoom(c)&&await this.updateUserNetwork(c,{egress:$,ingress:C})}await this.emitNotifyUpdateUsers()}};this.cwsIns.addNotify({event:"onNetQuality",callback:I},!0)}{const I=async D=>{const f=D.data.user;await this.updateUsers([f]),await this.updateUsertracks(f.id,f.track,!1),await this.updateUserBehaviors(f.id,f.behavior),await this.emitNotifyUpdateUsers()};this.cwsIns.addNotify({event:"onJoinRoom",callback:I},!0)}{const I=async D=>{await this.removeUsers([D.data.user.id]),await this.emitNotifyUpdateUsers()};this.cwsIns.addNotify({event:"onQuitRoom",callback:I},!0)}{const I=async D=>{const{user:f}=D.data,{id:k,tracks:i=[],callAction:c=0}=f;if(await this.updateUserCallAction(k,c),await this.updateUserPermissions(k,3),await this.updateUsertracks(k,i,!0),this.options.newPublishAutoSubscribe){const $=this.getTrackNamesFormTracks(i);await this.subscribe($)}else await this.emitNotifyUpdateUsers()};this.cwsIns.addNotify({event:"onPublish",callback:I},!0)}{const I=async D=>{const f=[D.data];this.subChannel(f)};this.cwsIns.addNotify({event:"onDataChannelPublish",callback:I},!0)}{const I=async D=>{const{id:f,tracks:k}=D.data.user;f!==this.options.userId&&(await this.closeUserTracks(f,k,!0),await this.emitNotifyUpdateUsers())};this.cwsIns.addNotify({event:"onCloseTrack",callback:I},!0)}{const I=async D=>{const{id:f,callAction:k}=D.data.user;this.checkUserInRoom(f)&&(await this.updateUserCallAction(f,k),this.emitNotifyUpdateUsers())};this.cwsIns.addNotify({event:"onUpdateCall",callback:I},!0)}{const I=async D=>{const{user:f}=D.data,{id:k,permissions:i=1}=f;i===1?await this.removeUsers([k]):i===3&&await this.updateUsers([f]),await this.emitNotifyUpdateUsers()};this.cwsIns.addNotify({event:"onUpdatePermissions",callback:I},!0)}{const I=async D=>{const{users:f}=D.data;for(const k of f){const{id:i,behavior:c}=k;await this.updateUserBehaviors(i,c)}await this.emitNotifyUpdateUsers()};this.cwsIns.addNotify({event:"onUpdateBehavior",callback:I},!0)}this.cwsIns.addNotify({event:"onTokenExpired",callback:async I=>this.destroy()},!0),this.cwsIns.addNotify({event:"destroyRoom",callback:this.destroy},!0)});_e(this,"addNotify",I=>this.cwsIns.addNotify(I));Ge(this,zn,()=>{});Ge(this,Jn,()=>{this.cwsIns.onReconnectSuccess=async()=>{await this.checkInRoom()?await this.reconstruct():this.setRoomState("closed")}});Ge(this,Wn,async()=>{this.cwsIns.onReconnectStop=async()=>{this.setRoomState("closed")}});_e(this,"addRequestAnimationFrame",async(I,D)=>{{const k=Oe(this,fn).get(I);k&&cancelAnimationFrame(k)}const f=(k=Date.now())=>{D(k);const i=requestAnimationFrame(f);Oe(this,fn).set(I,i)};f()});_e(this,"clearRequestAnimationFrame",async(I=[])=>{I.length===0&&(I=[...Oe(this,fn).keys()]);const D=[];for(const f of I){const k=Oe(this,fn).get(f);k&&(cancelAnimationFrame(k),D.push(k))}return D});_e(this,"destroy",async()=>{this.options.debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: 销毁SDK"),this.cwsIns.emitNotify("onDestroy",{code:200,data:{},desc:"sdk is destroy."}),this.stopLocalStreams(),await new Promise(I=>setTimeout(()=>I(!0),300)),this.stopGetPeerStats(),this.clearUsers(),this.clearUserStreams(),this.stopHeartbeat(),this.cwsIns.clearEvents(),this.cwsIns.close()});Oe(this,zn).call(this),Oe(this,Jn).call(this),Oe(this,Wn).call(this),Oe(this,jn).call(this)}}fn=new WeakMap,jn=new WeakMap,zn=new WeakMap,Jn=new WeakMap,Wn=new WeakMap,exports.QuickVO=QuickVO,Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"})});
|
|
9
|
+
*/var hasRequiredBuffer;function requireBuffer(){return hasRequiredBuffer||(hasRequiredBuffer=1,function(O){const N=requireBase64Js(),I=requireIeee754(),D=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;O.Buffer=c,O.SlowBuffer=de,O.INSPECT_MAX_BYTES=50;const f=2147483647;O.kMaxLength=f,c.TYPED_ARRAY_SUPPORT=k(),!c.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function k(){try{const K=new Uint8Array(1),F={foo:function(){return 42}};return Object.setPrototypeOf(F,Uint8Array.prototype),Object.setPrototypeOf(K,F),K.foo()===42}catch{return!1}}Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}});function i(K){if(K>f)throw new RangeError('The value "'+K+'" is invalid for option "size"');const F=new Uint8Array(K);return Object.setPrototypeOf(F,c.prototype),F}function c(K,F,j){if(typeof K=="number"){if(typeof F=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return J(K)}return $(K,F,j)}c.poolSize=8192;function $(K,F,j){if(typeof K=="string")return Z(K,F);if(ArrayBuffer.isView(K))return X(K);if(K==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof K);if(nt(K,ArrayBuffer)||K&&nt(K.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(nt(K,SharedArrayBuffer)||K&&nt(K.buffer,SharedArrayBuffer)))return re(K,F,j);if(typeof K=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Y=K.valueOf&&K.valueOf();if(Y!=null&&Y!==K)return c.from(Y,F,j);const te=oe(K);if(te)return te;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof K[Symbol.toPrimitive]=="function")return c.from(K[Symbol.toPrimitive]("string"),F,j);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof K)}c.from=function(K,F,j){return $(K,F,j)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array);function C(K){if(typeof K!="number")throw new TypeError('"size" argument must be of type number');if(K<0)throw new RangeError('The value "'+K+'" is invalid for option "size"')}function M(K,F,j){return C(K),K<=0?i(K):F!==void 0?typeof j=="string"?i(K).fill(F,j):i(K).fill(F):i(K)}c.alloc=function(K,F,j){return M(K,F,j)};function J(K){return C(K),i(K<0?0:ne(K)|0)}c.allocUnsafe=function(K){return J(K)},c.allocUnsafeSlow=function(K){return J(K)};function Z(K,F){if((typeof F!="string"||F==="")&&(F="utf8"),!c.isEncoding(F))throw new TypeError("Unknown encoding: "+F);const j=ye(K,F)|0;let Y=i(j);const te=Y.write(K,F);return te!==j&&(Y=Y.slice(0,te)),Y}function z(K){const F=K.length<0?0:ne(K.length)|0,j=i(F);for(let Y=0;Y<F;Y+=1)j[Y]=K[Y]&255;return j}function X(K){if(nt(K,Uint8Array)){const F=new Uint8Array(K);return re(F.buffer,F.byteOffset,F.byteLength)}return z(K)}function re(K,F,j){if(F<0||K.byteLength<F)throw new RangeError('"offset" is outside of buffer bounds');if(K.byteLength<F+(j||0))throw new RangeError('"length" is outside of buffer bounds');let Y;return F===void 0&&j===void 0?Y=new Uint8Array(K):j===void 0?Y=new Uint8Array(K,F):Y=new Uint8Array(K,F,j),Object.setPrototypeOf(Y,c.prototype),Y}function oe(K){if(c.isBuffer(K)){const F=ne(K.length)|0,j=i(F);return j.length===0||K.copy(j,0,0,F),j}if(K.length!==void 0)return typeof K.length!="number"||on(K.length)?i(0):z(K);if(K.type==="Buffer"&&Array.isArray(K.data))return z(K.data)}function ne(K){if(K>=f)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f.toString(16)+" bytes");return K|0}function de(K){return+K!=K&&(K=0),c.alloc(+K)}c.isBuffer=function(F){return F!=null&&F._isBuffer===!0&&F!==c.prototype},c.compare=function(F,j){if(nt(F,Uint8Array)&&(F=c.from(F,F.offset,F.byteLength)),nt(j,Uint8Array)&&(j=c.from(j,j.offset,j.byteLength)),!c.isBuffer(F)||!c.isBuffer(j))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(F===j)return 0;let Y=F.length,te=j.length;for(let ue=0,pe=Math.min(Y,te);ue<pe;++ue)if(F[ue]!==j[ue]){Y=F[ue],te=j[ue];break}return Y<te?-1:te<Y?1:0},c.isEncoding=function(F){switch(String(F).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(F,j){if(!Array.isArray(F))throw new TypeError('"list" argument must be an Array of Buffers');if(F.length===0)return c.alloc(0);let Y;if(j===void 0)for(j=0,Y=0;Y<F.length;++Y)j+=F[Y].length;const te=c.allocUnsafe(j);let ue=0;for(Y=0;Y<F.length;++Y){let pe=F[Y];if(nt(pe,Uint8Array))ue+pe.length>te.length?(c.isBuffer(pe)||(pe=c.from(pe)),pe.copy(te,ue)):Uint8Array.prototype.set.call(te,pe,ue);else if(c.isBuffer(pe))pe.copy(te,ue);else throw new TypeError('"list" argument must be an Array of Buffers');ue+=pe.length}return te};function ye(K,F){if(c.isBuffer(K))return K.length;if(ArrayBuffer.isView(K)||nt(K,ArrayBuffer))return K.byteLength;if(typeof K!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof K);const j=K.length,Y=arguments.length>2&&arguments[2]===!0;if(!Y&&j===0)return 0;let te=!1;for(;;)switch(F){case"ascii":case"latin1":case"binary":return j;case"utf8":case"utf-8":return ct(K).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j*2;case"hex":return j>>>1;case"base64":return Et(K).length;default:if(te)return Y?-1:ct(K).length;F=(""+F).toLowerCase(),te=!0}}c.byteLength=ye;function Q(K,F,j){let Y=!1;if((F===void 0||F<0)&&(F=0),F>this.length||((j===void 0||j>this.length)&&(j=this.length),j<=0)||(j>>>=0,F>>>=0,j<=F))return"";for(K||(K="utf8");;)switch(K){case"hex":return Ye(this,F,j);case"utf8":case"utf-8":return ge(this,F,j);case"ascii":return Le(this,F,j);case"latin1":case"binary":return Fe(this,F,j);case"base64":return be(this,F,j);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ft(this,F,j);default:if(Y)throw new TypeError("Unknown encoding: "+K);K=(K+"").toLowerCase(),Y=!0}}c.prototype._isBuffer=!0;function ae(K,F,j){const Y=K[F];K[F]=K[j],K[j]=Y}c.prototype.swap16=function(){const F=this.length;if(F%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let j=0;j<F;j+=2)ae(this,j,j+1);return this},c.prototype.swap32=function(){const F=this.length;if(F%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let j=0;j<F;j+=4)ae(this,j,j+3),ae(this,j+1,j+2);return this},c.prototype.swap64=function(){const F=this.length;if(F%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let j=0;j<F;j+=8)ae(this,j,j+7),ae(this,j+1,j+6),ae(this,j+2,j+5),ae(this,j+3,j+4);return this},c.prototype.toString=function(){const F=this.length;return F===0?"":arguments.length===0?ge(this,0,F):Q.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(F){if(!c.isBuffer(F))throw new TypeError("Argument must be a Buffer");return this===F?!0:c.compare(this,F)===0},c.prototype.inspect=function(){let F="";const j=O.INSPECT_MAX_BYTES;return F=this.toString("hex",0,j).replace(/(.{2})/g,"$1 ").trim(),this.length>j&&(F+=" ... "),"<Buffer "+F+">"},D&&(c.prototype[D]=c.prototype.inspect),c.prototype.compare=function(F,j,Y,te,ue){if(nt(F,Uint8Array)&&(F=c.from(F,F.offset,F.byteLength)),!c.isBuffer(F))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof F);if(j===void 0&&(j=0),Y===void 0&&(Y=F?F.length:0),te===void 0&&(te=0),ue===void 0&&(ue=this.length),j<0||Y>F.length||te<0||ue>this.length)throw new RangeError("out of range index");if(te>=ue&&j>=Y)return 0;if(te>=ue)return-1;if(j>=Y)return 1;if(j>>>=0,Y>>>=0,te>>>=0,ue>>>=0,this===F)return 0;let pe=ue-te,Ie=Y-j;const qe=Math.min(pe,Ie),De=this.slice(te,ue),Ue=F.slice(j,Y);for(let Ae=0;Ae<qe;++Ae)if(De[Ae]!==Ue[Ae]){pe=De[Ae],Ie=Ue[Ae];break}return pe<Ie?-1:Ie<pe?1:0};function he(K,F,j,Y,te){if(K.length===0)return-1;if(typeof j=="string"?(Y=j,j=0):j>2147483647?j=2147483647:j<-2147483648&&(j=-2147483648),j=+j,on(j)&&(j=te?0:K.length-1),j<0&&(j=K.length+j),j>=K.length){if(te)return-1;j=K.length-1}else if(j<0)if(te)j=0;else return-1;if(typeof F=="string"&&(F=c.from(F,Y)),c.isBuffer(F))return F.length===0?-1:se(K,F,j,Y,te);if(typeof F=="number")return F=F&255,typeof Uint8Array.prototype.indexOf=="function"?te?Uint8Array.prototype.indexOf.call(K,F,j):Uint8Array.prototype.lastIndexOf.call(K,F,j):se(K,[F],j,Y,te);throw new TypeError("val must be string, number or Buffer")}function se(K,F,j,Y,te){let ue=1,pe=K.length,Ie=F.length;if(Y!==void 0&&(Y=String(Y).toLowerCase(),Y==="ucs2"||Y==="ucs-2"||Y==="utf16le"||Y==="utf-16le")){if(K.length<2||F.length<2)return-1;ue=2,pe/=2,Ie/=2,j/=2}function qe(Ue,Ae){return ue===1?Ue[Ae]:Ue.readUInt16BE(Ae*ue)}let De;if(te){let Ue=-1;for(De=j;De<pe;De++)if(qe(K,De)===qe(F,Ue===-1?0:De-Ue)){if(Ue===-1&&(Ue=De),De-Ue+1===Ie)return Ue*ue}else Ue!==-1&&(De-=De-Ue),Ue=-1}else for(j+Ie>pe&&(j=pe-Ie),De=j;De>=0;De--){let Ue=!0;for(let Ae=0;Ae<Ie;Ae++)if(qe(K,De+Ae)!==qe(F,Ae)){Ue=!1;break}if(Ue)return De}return-1}c.prototype.includes=function(F,j,Y){return this.indexOf(F,j,Y)!==-1},c.prototype.indexOf=function(F,j,Y){return he(this,F,j,Y,!0)},c.prototype.lastIndexOf=function(F,j,Y){return he(this,F,j,Y,!1)};function fe(K,F,j,Y){j=Number(j)||0;const te=K.length-j;Y?(Y=Number(Y),Y>te&&(Y=te)):Y=te;const ue=F.length;Y>ue/2&&(Y=ue/2);let pe;for(pe=0;pe<Y;++pe){const Ie=parseInt(F.substr(pe*2,2),16);if(on(Ie))return pe;K[j+pe]=Ie}return pe}function me(K,F,j,Y){return Rt(ct(F,K.length-j),K,j,Y)}function ee(K,F,j,Y){return Rt(mt(F),K,j,Y)}function le(K,F,j,Y){return Rt(Et(F),K,j,Y)}function ve(K,F,j,Y){return Rt(rn(F,K.length-j),K,j,Y)}c.prototype.write=function(F,j,Y,te){if(j===void 0)te="utf8",Y=this.length,j=0;else if(Y===void 0&&typeof j=="string")te=j,Y=this.length,j=0;else if(isFinite(j))j=j>>>0,isFinite(Y)?(Y=Y>>>0,te===void 0&&(te="utf8")):(te=Y,Y=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const ue=this.length-j;if((Y===void 0||Y>ue)&&(Y=ue),F.length>0&&(Y<0||j<0)||j>this.length)throw new RangeError("Attempt to write outside buffer bounds");te||(te="utf8");let pe=!1;for(;;)switch(te){case"hex":return fe(this,F,j,Y);case"utf8":case"utf-8":return me(this,F,j,Y);case"ascii":case"latin1":case"binary":return ee(this,F,j,Y);case"base64":return le(this,F,j,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ve(this,F,j,Y);default:if(pe)throw new TypeError("Unknown encoding: "+te);te=(""+te).toLowerCase(),pe=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function be(K,F,j){return F===0&&j===K.length?N.fromByteArray(K):N.fromByteArray(K.slice(F,j))}function ge(K,F,j){j=Math.min(K.length,j);const Y=[];let te=F;for(;te<j;){const ue=K[te];let pe=null,Ie=ue>239?4:ue>223?3:ue>191?2:1;if(te+Ie<=j){let qe,De,Ue,Ae;switch(Ie){case 1:ue<128&&(pe=ue);break;case 2:qe=K[te+1],(qe&192)===128&&(Ae=(ue&31)<<6|qe&63,Ae>127&&(pe=Ae));break;case 3:qe=K[te+1],De=K[te+2],(qe&192)===128&&(De&192)===128&&(Ae=(ue&15)<<12|(qe&63)<<6|De&63,Ae>2047&&(Ae<55296||Ae>57343)&&(pe=Ae));break;case 4:qe=K[te+1],De=K[te+2],Ue=K[te+3],(qe&192)===128&&(De&192)===128&&(Ue&192)===128&&(Ae=(ue&15)<<18|(qe&63)<<12|(De&63)<<6|Ue&63,Ae>65535&&Ae<1114112&&(pe=Ae))}}pe===null?(pe=65533,Ie=1):pe>65535&&(pe-=65536,Y.push(pe>>>10&1023|55296),pe=56320|pe&1023),Y.push(pe),te+=Ie}return Ne(Y)}const $e=4096;function Ne(K){const F=K.length;if(F<=$e)return String.fromCharCode.apply(String,K);let j="",Y=0;for(;Y<F;)j+=String.fromCharCode.apply(String,K.slice(Y,Y+=$e));return j}function Le(K,F,j){let Y="";j=Math.min(K.length,j);for(let te=F;te<j;++te)Y+=String.fromCharCode(K[te]&127);return Y}function Fe(K,F,j){let Y="";j=Math.min(K.length,j);for(let te=F;te<j;++te)Y+=String.fromCharCode(K[te]);return Y}function Ye(K,F,j){const Y=K.length;(!F||F<0)&&(F=0),(!j||j<0||j>Y)&&(j=Y);let te="";for(let ue=F;ue<j;++ue)te+=sn[K[ue]];return te}function ft(K,F,j){const Y=K.slice(F,j);let te="";for(let ue=0;ue<Y.length-1;ue+=2)te+=String.fromCharCode(Y[ue]+Y[ue+1]*256);return te}c.prototype.slice=function(F,j){const Y=this.length;F=~~F,j=j===void 0?Y:~~j,F<0?(F+=Y,F<0&&(F=0)):F>Y&&(F=Y),j<0?(j+=Y,j<0&&(j=0)):j>Y&&(j=Y),j<F&&(j=F);const te=this.subarray(F,j);return Object.setPrototypeOf(te,c.prototype),te};function Re(K,F,j){if(K%1!==0||K<0)throw new RangeError("offset is not uint");if(K+F>j)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUintLE=c.prototype.readUIntLE=function(F,j,Y){F=F>>>0,j=j>>>0,Y||Re(F,j,this.length);let te=this[F],ue=1,pe=0;for(;++pe<j&&(ue*=256);)te+=this[F+pe]*ue;return te},c.prototype.readUintBE=c.prototype.readUIntBE=function(F,j,Y){F=F>>>0,j=j>>>0,Y||Re(F,j,this.length);let te=this[F+--j],ue=1;for(;j>0&&(ue*=256);)te+=this[F+--j]*ue;return te},c.prototype.readUint8=c.prototype.readUInt8=function(F,j){return F=F>>>0,j||Re(F,1,this.length),this[F]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(F,j){return F=F>>>0,j||Re(F,2,this.length),this[F]|this[F+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(F,j){return F=F>>>0,j||Re(F,2,this.length),this[F]<<8|this[F+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(F,j){return F=F>>>0,j||Re(F,4,this.length),(this[F]|this[F+1]<<8|this[F+2]<<16)+this[F+3]*16777216},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(F,j){return F=F>>>0,j||Re(F,4,this.length),this[F]*16777216+(this[F+1]<<16|this[F+2]<<8|this[F+3])},c.prototype.readBigUInt64LE=yt(function(F){F=F>>>0,Ce(F,"offset");const j=this[F],Y=this[F+7];(j===void 0||Y===void 0)&&je(F,this.length-8);const te=j+this[++F]*2**8+this[++F]*2**16+this[++F]*2**24,ue=this[++F]+this[++F]*2**8+this[++F]*2**16+Y*2**24;return BigInt(te)+(BigInt(ue)<<BigInt(32))}),c.prototype.readBigUInt64BE=yt(function(F){F=F>>>0,Ce(F,"offset");const j=this[F],Y=this[F+7];(j===void 0||Y===void 0)&&je(F,this.length-8);const te=j*2**24+this[++F]*2**16+this[++F]*2**8+this[++F],ue=this[++F]*2**24+this[++F]*2**16+this[++F]*2**8+Y;return(BigInt(te)<<BigInt(32))+BigInt(ue)}),c.prototype.readIntLE=function(F,j,Y){F=F>>>0,j=j>>>0,Y||Re(F,j,this.length);let te=this[F],ue=1,pe=0;for(;++pe<j&&(ue*=256);)te+=this[F+pe]*ue;return ue*=128,te>=ue&&(te-=Math.pow(2,8*j)),te},c.prototype.readIntBE=function(F,j,Y){F=F>>>0,j=j>>>0,Y||Re(F,j,this.length);let te=j,ue=1,pe=this[F+--te];for(;te>0&&(ue*=256);)pe+=this[F+--te]*ue;return ue*=128,pe>=ue&&(pe-=Math.pow(2,8*j)),pe},c.prototype.readInt8=function(F,j){return F=F>>>0,j||Re(F,1,this.length),this[F]&128?(255-this[F]+1)*-1:this[F]},c.prototype.readInt16LE=function(F,j){F=F>>>0,j||Re(F,2,this.length);const Y=this[F]|this[F+1]<<8;return Y&32768?Y|4294901760:Y},c.prototype.readInt16BE=function(F,j){F=F>>>0,j||Re(F,2,this.length);const Y=this[F+1]|this[F]<<8;return Y&32768?Y|4294901760:Y},c.prototype.readInt32LE=function(F,j){return F=F>>>0,j||Re(F,4,this.length),this[F]|this[F+1]<<8|this[F+2]<<16|this[F+3]<<24},c.prototype.readInt32BE=function(F,j){return F=F>>>0,j||Re(F,4,this.length),this[F]<<24|this[F+1]<<16|this[F+2]<<8|this[F+3]},c.prototype.readBigInt64LE=yt(function(F){F=F>>>0,Ce(F,"offset");const j=this[F],Y=this[F+7];(j===void 0||Y===void 0)&&je(F,this.length-8);const te=this[F+4]+this[F+5]*2**8+this[F+6]*2**16+(Y<<24);return(BigInt(te)<<BigInt(32))+BigInt(j+this[++F]*2**8+this[++F]*2**16+this[++F]*2**24)}),c.prototype.readBigInt64BE=yt(function(F){F=F>>>0,Ce(F,"offset");const j=this[F],Y=this[F+7];(j===void 0||Y===void 0)&&je(F,this.length-8);const te=(j<<24)+this[++F]*2**16+this[++F]*2**8+this[++F];return(BigInt(te)<<BigInt(32))+BigInt(this[++F]*2**24+this[++F]*2**16+this[++F]*2**8+Y)}),c.prototype.readFloatLE=function(F,j){return F=F>>>0,j||Re(F,4,this.length),I.read(this,F,!0,23,4)},c.prototype.readFloatBE=function(F,j){return F=F>>>0,j||Re(F,4,this.length),I.read(this,F,!1,23,4)},c.prototype.readDoubleLE=function(F,j){return F=F>>>0,j||Re(F,8,this.length),I.read(this,F,!0,52,8)},c.prototype.readDoubleBE=function(F,j){return F=F>>>0,j||Re(F,8,this.length),I.read(this,F,!1,52,8)};function xe(K,F,j,Y,te,ue){if(!c.isBuffer(K))throw new TypeError('"buffer" argument must be a Buffer instance');if(F>te||F<ue)throw new RangeError('"value" argument is out of bounds');if(j+Y>K.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(F,j,Y,te){if(F=+F,j=j>>>0,Y=Y>>>0,!te){const Ie=Math.pow(2,8*Y)-1;xe(this,F,j,Y,Ie,0)}let ue=1,pe=0;for(this[j]=F&255;++pe<Y&&(ue*=256);)this[j+pe]=F/ue&255;return j+Y},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(F,j,Y,te){if(F=+F,j=j>>>0,Y=Y>>>0,!te){const Ie=Math.pow(2,8*Y)-1;xe(this,F,j,Y,Ie,0)}let ue=Y-1,pe=1;for(this[j+ue]=F&255;--ue>=0&&(pe*=256);)this[j+ue]=F/pe&255;return j+Y},c.prototype.writeUint8=c.prototype.writeUInt8=function(F,j,Y){return F=+F,j=j>>>0,Y||xe(this,F,j,1,255,0),this[j]=F&255,j+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(F,j,Y){return F=+F,j=j>>>0,Y||xe(this,F,j,2,65535,0),this[j]=F&255,this[j+1]=F>>>8,j+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(F,j,Y){return F=+F,j=j>>>0,Y||xe(this,F,j,2,65535,0),this[j]=F>>>8,this[j+1]=F&255,j+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(F,j,Y){return F=+F,j=j>>>0,Y||xe(this,F,j,4,4294967295,0),this[j+3]=F>>>24,this[j+2]=F>>>16,this[j+1]=F>>>8,this[j]=F&255,j+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(F,j,Y){return F=+F,j=j>>>0,Y||xe(this,F,j,4,4294967295,0),this[j]=F>>>24,this[j+1]=F>>>16,this[j+2]=F>>>8,this[j+3]=F&255,j+4};function ot(K,F,j,Y,te){Oe(F,Y,te,K,j,7);let ue=Number(F&BigInt(4294967295));K[j++]=ue,ue=ue>>8,K[j++]=ue,ue=ue>>8,K[j++]=ue,ue=ue>>8,K[j++]=ue;let pe=Number(F>>BigInt(32)&BigInt(4294967295));return K[j++]=pe,pe=pe>>8,K[j++]=pe,pe=pe>>8,K[j++]=pe,pe=pe>>8,K[j++]=pe,j}function Pe(K,F,j,Y,te){Oe(F,Y,te,K,j,7);let ue=Number(F&BigInt(4294967295));K[j+7]=ue,ue=ue>>8,K[j+6]=ue,ue=ue>>8,K[j+5]=ue,ue=ue>>8,K[j+4]=ue;let pe=Number(F>>BigInt(32)&BigInt(4294967295));return K[j+3]=pe,pe=pe>>8,K[j+2]=pe,pe=pe>>8,K[j+1]=pe,pe=pe>>8,K[j]=pe,j+8}c.prototype.writeBigUInt64LE=yt(function(F,j=0){return ot(this,F,j,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=yt(function(F,j=0){return Pe(this,F,j,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(F,j,Y,te){if(F=+F,j=j>>>0,!te){const qe=Math.pow(2,8*Y-1);xe(this,F,j,Y,qe-1,-qe)}let ue=0,pe=1,Ie=0;for(this[j]=F&255;++ue<Y&&(pe*=256);)F<0&&Ie===0&&this[j+ue-1]!==0&&(Ie=1),this[j+ue]=(F/pe>>0)-Ie&255;return j+Y},c.prototype.writeIntBE=function(F,j,Y,te){if(F=+F,j=j>>>0,!te){const qe=Math.pow(2,8*Y-1);xe(this,F,j,Y,qe-1,-qe)}let ue=Y-1,pe=1,Ie=0;for(this[j+ue]=F&255;--ue>=0&&(pe*=256);)F<0&&Ie===0&&this[j+ue+1]!==0&&(Ie=1),this[j+ue]=(F/pe>>0)-Ie&255;return j+Y},c.prototype.writeInt8=function(F,j,Y){return F=+F,j=j>>>0,Y||xe(this,F,j,1,127,-128),F<0&&(F=255+F+1),this[j]=F&255,j+1},c.prototype.writeInt16LE=function(F,j,Y){return F=+F,j=j>>>0,Y||xe(this,F,j,2,32767,-32768),this[j]=F&255,this[j+1]=F>>>8,j+2},c.prototype.writeInt16BE=function(F,j,Y){return F=+F,j=j>>>0,Y||xe(this,F,j,2,32767,-32768),this[j]=F>>>8,this[j+1]=F&255,j+2},c.prototype.writeInt32LE=function(F,j,Y){return F=+F,j=j>>>0,Y||xe(this,F,j,4,2147483647,-2147483648),this[j]=F&255,this[j+1]=F>>>8,this[j+2]=F>>>16,this[j+3]=F>>>24,j+4},c.prototype.writeInt32BE=function(F,j,Y){return F=+F,j=j>>>0,Y||xe(this,F,j,4,2147483647,-2147483648),F<0&&(F=4294967295+F+1),this[j]=F>>>24,this[j+1]=F>>>16,this[j+2]=F>>>8,this[j+3]=F&255,j+4},c.prototype.writeBigInt64LE=yt(function(F,j=0){return ot(this,F,j,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=yt(function(F,j=0){return Pe(this,F,j,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Xe(K,F,j,Y,te,ue){if(j+Y>K.length)throw new RangeError("Index out of range");if(j<0)throw new RangeError("Index out of range")}function at(K,F,j,Y,te){return F=+F,j=j>>>0,te||Xe(K,F,j,4),I.write(K,F,j,Y,23,4),j+4}c.prototype.writeFloatLE=function(F,j,Y){return at(this,F,j,!0,Y)},c.prototype.writeFloatBE=function(F,j,Y){return at(this,F,j,!1,Y)};function Qe(K,F,j,Y,te){return F=+F,j=j>>>0,te||Xe(K,F,j,8),I.write(K,F,j,Y,52,8),j+8}c.prototype.writeDoubleLE=function(F,j,Y){return Qe(this,F,j,!0,Y)},c.prototype.writeDoubleBE=function(F,j,Y){return Qe(this,F,j,!1,Y)},c.prototype.copy=function(F,j,Y,te){if(!c.isBuffer(F))throw new TypeError("argument should be a Buffer");if(Y||(Y=0),!te&&te!==0&&(te=this.length),j>=F.length&&(j=F.length),j||(j=0),te>0&&te<Y&&(te=Y),te===Y||F.length===0||this.length===0)return 0;if(j<0)throw new RangeError("targetStart out of bounds");if(Y<0||Y>=this.length)throw new RangeError("Index out of range");if(te<0)throw new RangeError("sourceEnd out of bounds");te>this.length&&(te=this.length),F.length-j<te-Y&&(te=F.length-j+Y);const ue=te-Y;return this===F&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(j,Y,te):Uint8Array.prototype.set.call(F,this.subarray(Y,te),j),ue},c.prototype.fill=function(F,j,Y,te){if(typeof F=="string"){if(typeof j=="string"?(te=j,j=0,Y=this.length):typeof Y=="string"&&(te=Y,Y=this.length),te!==void 0&&typeof te!="string")throw new TypeError("encoding must be a string");if(typeof te=="string"&&!c.isEncoding(te))throw new TypeError("Unknown encoding: "+te);if(F.length===1){const pe=F.charCodeAt(0);(te==="utf8"&&pe<128||te==="latin1")&&(F=pe)}}else typeof F=="number"?F=F&255:typeof F=="boolean"&&(F=Number(F));if(j<0||this.length<j||this.length<Y)throw new RangeError("Out of range index");if(Y<=j)return this;j=j>>>0,Y=Y===void 0?this.length:Y>>>0,F||(F=0);let ue;if(typeof F=="number")for(ue=j;ue<Y;++ue)this[ue]=F;else{const pe=c.isBuffer(F)?F:c.from(F,te),Ie=pe.length;if(Ie===0)throw new TypeError('The value "'+F+'" is invalid for argument "value"');for(ue=0;ue<Y-j;++ue)this[ue+j]=pe[ue%Ie]}return this};const He={};function Se(K,F,j){He[K]=class extends j{constructor(){super(),Object.defineProperty(this,"message",{value:F.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${K}]`,this.stack,delete this.name}get code(){return K}set code(te){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:te,writable:!0})}toString(){return`${this.name} [${K}]: ${this.message}`}}}Se("ERR_BUFFER_OUT_OF_BOUNDS",function(K){return K?`${K} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Se("ERR_INVALID_ARG_TYPE",function(K,F){return`The "${K}" argument must be of type number. Received type ${typeof F}`},TypeError),Se("ERR_OUT_OF_RANGE",function(K,F,j){let Y=`The value of "${K}" is out of range.`,te=j;return Number.isInteger(j)&&Math.abs(j)>2**32?te=ke(String(j)):typeof j=="bigint"&&(te=String(j),(j>BigInt(2)**BigInt(32)||j<-(BigInt(2)**BigInt(32)))&&(te=ke(te)),te+="n"),Y+=` It must be ${F}. Received ${te}`,Y},RangeError);function ke(K){let F="",j=K.length;const Y=K[0]==="-"?1:0;for(;j>=Y+4;j-=3)F=`_${K.slice(j-3,j)}${F}`;return`${K.slice(0,j)}${F}`}function Te(K,F,j){Ce(F,"offset"),(K[F]===void 0||K[F+j]===void 0)&&je(F,K.length-(j+1))}function Oe(K,F,j,Y,te,ue){if(K>j||K<F){const pe=typeof F=="bigint"?"n":"";let Ie;throw F===0||F===BigInt(0)?Ie=`>= 0${pe} and < 2${pe} ** ${(ue+1)*8}${pe}`:Ie=`>= -(2${pe} ** ${(ue+1)*8-1}${pe}) and < 2 ** ${(ue+1)*8-1}${pe}`,new He.ERR_OUT_OF_RANGE("value",Ie,K)}Te(Y,te,ue)}function Ce(K,F){if(typeof K!="number")throw new He.ERR_INVALID_ARG_TYPE(F,"number",K)}function je(K,F,j){throw Math.floor(K)!==K?(Ce(K,j),new He.ERR_OUT_OF_RANGE("offset","an integer",K)):F<0?new He.ERR_BUFFER_OUT_OF_BOUNDS:new He.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${F}`,K)}const Ve=/[^+/0-9A-Za-z-_]/g;function Je(K){if(K=K.split("=")[0],K=K.trim().replace(Ve,""),K.length<2)return"";for(;K.length%4!==0;)K=K+"=";return K}function ct(K,F){F=F||1/0;let j;const Y=K.length;let te=null;const ue=[];for(let pe=0;pe<Y;++pe){if(j=K.charCodeAt(pe),j>55295&&j<57344){if(!te){if(j>56319){(F-=3)>-1&&ue.push(239,191,189);continue}else if(pe+1===Y){(F-=3)>-1&&ue.push(239,191,189);continue}te=j;continue}if(j<56320){(F-=3)>-1&&ue.push(239,191,189),te=j;continue}j=(te-55296<<10|j-56320)+65536}else te&&(F-=3)>-1&&ue.push(239,191,189);if(te=null,j<128){if((F-=1)<0)break;ue.push(j)}else if(j<2048){if((F-=2)<0)break;ue.push(j>>6|192,j&63|128)}else if(j<65536){if((F-=3)<0)break;ue.push(j>>12|224,j>>6&63|128,j&63|128)}else if(j<1114112){if((F-=4)<0)break;ue.push(j>>18|240,j>>12&63|128,j>>6&63|128,j&63|128)}else throw new Error("Invalid code point")}return ue}function mt(K){const F=[];for(let j=0;j<K.length;++j)F.push(K.charCodeAt(j)&255);return F}function rn(K,F){let j,Y,te;const ue=[];for(let pe=0;pe<K.length&&!((F-=2)<0);++pe)j=K.charCodeAt(pe),Y=j>>8,te=j%256,ue.push(te),ue.push(Y);return ue}function Et(K){return N.toByteArray(Je(K))}function Rt(K,F,j,Y){let te;for(te=0;te<Y&&!(te+j>=F.length||te>=K.length);++te)F[te+j]=K[te];return te}function nt(K,F){return K instanceof F||K!=null&&K.constructor!=null&&K.constructor.name!=null&&K.constructor.name===F.name}function on(K){return K!==K}const sn=function(){const K="0123456789abcdef",F=new Array(256);for(let j=0;j<16;++j){const Y=j*16;for(let te=0;te<16;++te)F[Y+te]=K[j]+K[te]}return F}();function yt(K){return typeof BigInt>"u"?ln:K}function ln(){throw new Error("BigInt not supported")}}(buffer)),buffer}var toolsEbml={},hasRequiredToolsEbml;function requireToolsEbml(){if(hasRequiredToolsEbml)return toolsEbml;hasRequiredToolsEbml=1;var O=toolsEbml&&toolsEbml.__assign||function(){return O=Object.assign||function(f){for(var k,i=1,c=arguments.length;i<c;i++){k=arguments[i];for(var $ in k)Object.prototype.hasOwnProperty.call(k,$)&&(f[$]=k[$])}return f},O.apply(this,arguments)},N=toolsEbml&&toolsEbml.__spreadArray||function(f,k,i){if(i||arguments.length===2)for(var c=0,$=k.length,C;c<$;c++)(C||!(c in k))&&(C||(C=Array.prototype.slice.call(k,0,c)),C[c]=k[c]);return f.concat(C||Array.prototype.slice.call(k))};Object.defineProperty(toolsEbml,"__esModule",{value:!0});var I=requireTools(),D=function(){function f(){}return f.readVint=function(k,i){i===void 0&&(i=0);var c=8-Math.floor(Math.log2(k[i]));if(c>8){var $=f.readHexString(k,i,i+c);throw new Error("Unrepresentable length: ".concat(c," ").concat($))}if(i+c>k.length)return null;for(var C=k[i]&(1<<8-c)-1,M=1;M<c;M+=1){if(M===7&&C>=Math.pow(2,8)&&k[i+7]>0)return{length:c,value:-1};C*=Math.pow(2,8),C+=k[i+M]}return{length:c,value:C}},f.writeVint=function(k){if(k<0||k>Math.pow(2,53))throw new Error("Unrepresentable value: ".concat(k));var i=1;for(i=1;i<=8&&!(k<Math.pow(2,7*i)-1);i+=1);for(var c=I.Buffer.alloc(i),$=k,C=1;C<=i;C+=1){var M=$&255;c[i-C]=M,$-=M,$/=Math.pow(2,8)}return c[0]|=1<<8-i,c},f.concatenate=function(k,i){return!k&&!i?I.Buffer.from([]):!k||k.byteLength===0?i:!i||i.byteLength===0?k:I.Buffer.from(N(N([],k,!0),i,!0))},f.readHexString=function(k,i,c){return i===void 0&&(i=0),c===void 0&&(c=k.byteLength),Array.from(k.slice(i,c)).map(function($){return Number($).toString(16)}).reduce(function($,C){return"".concat($).concat(C.padStart(2,"0"))},"")},f.readUtf8=function(k){try{return I.Buffer.from(k).toString("utf8")}catch{return null}},f.readUnsigned=function(k){var i=new DataView(k.buffer,k.byteOffset,k.byteLength);switch(k.byteLength){case 1:return i.getUint8(0);case 2:return i.getUint16(0);case 4:return i.getUint32(0)}return k.byteLength<=6?k.reduce(function(c,$){return c*256+$},0):f.readHexString(k,0,k.byteLength)},f.readSigned=function(k){var i=new DataView(k.buffer,k.byteOffset,k.byteLength);switch(k.byteLength){case 1:return i.getInt8(0);case 2:return i.getInt16(0);case 4:return i.getInt32(0);default:return NaN}},f.readFloat=function(k){var i=new DataView(k.buffer,k.byteOffset,k.byteLength);switch(k.byteLength){case 4:return i.getFloat32(0);case 8:return i.getFloat64(0);default:return NaN}},f.readDate=function(k){var i=new DataView(k.buffer,k.byteOffset,k.byteLength);switch(k.byteLength){case 1:return new Date(i.getUint8(0));case 2:return new Date(i.getUint16(0));case 4:return new Date(i.getUint32(0));case 8:return new Date(Number.parseInt(f.readHexString(k),16));default:return new Date(0)}},f.readDataFromTag=function(k,i){var c=k.type,$=k.name,C=k.track,M=k.discardable||!1,J=k.keyframe||!1,Z=null,z;switch(c){case"u":z=f.readUnsigned(i);break;case"f":z=f.readFloat(i);break;case"i":z=f.readSigned(i);break;case"s":z=String.fromCharCode.apply(String,i);break;case"8":z=f.readUtf8(i);break;case"d":z=f.readDate(i);break}if($==="SimpleBlock"||$==="Block"){var X=0,re=f.readVint(i,X),oe=re.length,ne=re.value;X+=oe,C=ne,z=f.readSigned(i.subarray(X,X+2)),X+=2,$==="SimpleBlock"&&(J=!!(i[oe+2]&128),M=!!(i[oe+2]&1)),X+=1,Z=i.subarray(X)}return O(O({},k),{data:i,discardable:M,keyframe:J,payload:Z,track:C,value:z})},f}();return toolsEbml.default=D,toolsEbml}var vint,hasRequiredVint;function requireVint(){return hasRequiredVint||(hasRequiredVint=1,vint=function(O,N,I){N=N||0;for(var D=1;D<=8&&!(O[N]>=Math.pow(2,8-D));D++);if(D>8)throw new Error("Unrepresentable length: "+D+" "+O.toString("hex",N,N+D));if(N+D>O.length)return null;var f,k=O[N]&(1<<8-D)-1;for(f=1;f<D;f++){if(f===7&&k>=Math.pow(2,45)&&O[N+7]>0)return{length:D,value:-1};k*=Math.pow(2,8),k+=O[N+f]}return I&&(k-=Math.pow(2,D*7-1)-1),{length:D,value:k}}),vint}var bufferReader,hasRequiredBufferReader;function requireBufferReader(){if(hasRequiredBufferReader)return bufferReader;hasRequiredBufferReader=1;var O=requireVint();function N(I){this.buffer=I,this.offset=0}return N.prototype.nextInt16BE=function(){var I=this.buffer.readInt16BE(this.offset);return this.offset+=2,I},N.prototype.nextUInt8=function(){var I=this.buffer.readUInt8(this.offset);return this.offset+=1,I},N.prototype.nextUIntV=function(){var I=O(this.buffer,this.offset);return this.offset+=I.length,I.value},N.prototype.nextIntV=function(){var I=O(this.buffer,this.offset,!0);return this.offset+=I.length,I.value},N.prototype.nextBuffer=function(I){var D=I?this.buffer.slice(this.offset,this.offset+I):this.buffer.slice(this.offset);return this.offset+=I||this.length,D},Object.defineProperty(N.prototype,"length",{get:function(){return this.buffer.length-this.offset}}),bufferReader=N,bufferReader}var ebmlBlock,hasRequiredEbmlBlock;function requireEbmlBlock(){if(hasRequiredEbmlBlock)return ebmlBlock;hasRequiredEbmlBlock=1;var O=requireBufferReader(),N=1,I=3,D=2;ebmlBlock=function(k){var i={},c=new O(k);i.trackNumber=c.nextUIntV(),i.timecode=c.nextInt16BE();var $=c.nextUInt8();i.invisible=!!($&8),i.keyframe=!!($&128),i.discardable=!!($&1);var C=($&6)>>1;return i.frames=f(c,C),i};function f(k,i){if(!i)return[k.nextBuffer()];var c,$,C=[],M=k.nextUInt8()+1;if(i===D){if(k.length%M!==0)throw new Error("Fixed-Size Lacing Error");for($=k.length/M,c=0;c<M;c++)C.push(k.nextBuffer($));return C}var J=[];if(i===N)for(c=0;c<M-1;c++){var Z;$=0;do Z=k.nextUInt8(),$+=Z;while(Z===255);J.push($)}else if(i===I)for($=k.nextUIntV(),J.push($),c=1;c<M-1;c++)$+=k.nextIntV(),J.push($);for(c=0;c<M-1;c++)C.push(k.nextBuffer(J[c]));return C.push(k.nextBuffer()),C}return ebmlBlock}var hasRequiredTools;function requireTools(){return hasRequiredTools||(hasRequiredTools=1,function(O){Object.defineProperty(O,"__esModule",{value:!0}),O.convertEBMLDateToJSDate=O.createFloatBuffer=O.createIntBuffer=O.createUIntBuffer=O.encodeValueToBuffer=O.concat=O.putRefinedMetaData=O.extractElement=O.removeElement=O.makeMetadataSeekable=O.createRIFFChunk=O.VP8BitStreamToRiffWebPBuffer=O.WebPBlockFilter=O.encodeTag=O.readBlock=O.ebmlBlock=O.writeVint=O.readVint=O.Buffer=void 0;var N=requireInt64Buffer(),I=requireEBMLEncoder(),D=requireBuffer(),f=requireToolsEbml(),k=requireEbmlBlock();O.Buffer=D.Buffer,O.readVint=f.default.readVint,O.writeVint=f.default.writeVint,O.ebmlBlock=k;function i(ee){return(0,O.ebmlBlock)(new O.Buffer(ee))}O.readBlock=i;function c(ee,le,ve){return ve===void 0&&(ve=!1),Q([ee,ve?new O.Buffer("01ffffffffffffff","hex"):(0,O.writeVint)(le.length),le])}O.encodeTag=c;function $(ee){return ee.reduce(function(le,ve){if(ve.type!=="b"||ve.name!=="SimpleBlock")return le;var be=(0,O.ebmlBlock)(ve.data),ge=be.frames.some(function($e){var Ne=$e.slice(3,6).toString("hex");return Ne==="9d012a"});return ge?le.concat(ve):le},[])}O.WebPBlockFilter=$;function C(ee){var le=M("VP8 ",ee),ve=Q([new O.Buffer("WEBP","ascii"),le]);return M("RIFF",ve)}O.VP8BitStreamToRiffWebPBuffer=C;function M(ee,le){var ve=new O.Buffer(4);return ve.writeUInt32LE(le.byteLength,0),Q([new O.Buffer(ee.substr(0,4),"ascii"),ve,le,new O.Buffer(le.byteLength%2===0?0:1)])}O.createRIFFChunk=M;function J(ee,le,ve){var be=z("EBML",ee),ge=re(be),$e=ge+12,Ne=ee[ee.length-1].dataEnd-$e,Le=z("Info",ee);Z("Duration",Le),Le.splice(1,0,{name:"Duration",type:"f",data:fe(le,8)});for(var Fe=re(Le),Ye=z("Tracks",ee),ft=re(Ye),Re=47,xe=[],ot=5+ve.length*15,Pe=[],Xe=-1,at=10,Qe=function(Oe){var Ce=Re,je=Ce+Fe,Ve=je+ft,Je=Ve+ot,ct=Je-Ne;if(xe=[],xe.push({name:"SeekHead",type:"m",isEnd:!1}),xe.push({name:"Seek",type:"m",isEnd:!1}),xe.push({name:"SeekID",type:"b",data:new O.Buffer([21,73,169,102])}),xe.push({name:"SeekPosition",type:"u",data:he(Ce)}),xe.push({name:"Seek",type:"m",isEnd:!0}),xe.push({name:"Seek",type:"m",isEnd:!1}),xe.push({name:"SeekID",type:"b",data:new O.Buffer([22,84,174,107])}),xe.push({name:"SeekPosition",type:"u",data:he(je)}),xe.push({name:"Seek",type:"m",isEnd:!0}),xe.push({name:"Seek",type:"m",isEnd:!1}),xe.push({name:"SeekID",type:"b",data:new O.Buffer([28,83,187,107])}),xe.push({name:"SeekPosition",type:"u",data:he(Ve)}),xe.push({name:"Seek",type:"m",isEnd:!0}),xe.push({name:"SeekHead",type:"m",isEnd:!0}),Re=re(xe),Pe=[],Pe.push({name:"Cues",type:"m",isEnd:!1}),ve.forEach(function(mt){var rn=mt.CueTrack,Et=mt.CueClusterPosition,Rt=mt.CueTime;Pe.push({name:"CuePoint",type:"m",isEnd:!1}),Pe.push({name:"CueTime",type:"u",data:he(Rt)}),Pe.push({name:"CueTrackPositions",type:"m",isEnd:!1}),Pe.push({name:"CueTrack",type:"u",data:he(rn)}),Et-=$e,Et+=ct,Pe.push({name:"CueClusterPosition",type:"u",data:he(Et)}),Pe.push({name:"CueTrackPositions",type:"m",isEnd:!0}),Pe.push({name:"CuePoint",type:"m",isEnd:!0})}),Pe.push({name:"Cues",type:"m",isEnd:!0}),ot=re(Pe),Xe!==ct){if(Xe=ct,Oe===at-1)throw new Error("Failed to converge to a stable metadata size")}else return"break"},He=0;He<at;He++){var Se=Qe(He);if(Se==="break")break}var ke=[].concat.apply([],[be,{name:"Segment",type:"m",isEnd:!1,unknownSize:!0},xe,Le,Ye,Pe]),Te=new I.default().encode(ke);return Te}O.makeMetadataSeekable=J;function Z(ee,le){for(var ve=-1,be=0;be<le.length;be++){var ge=le[be];if(ge.name===ee)if(ge.type==="m")if(!ge.isEnd)ve=be;else{if(ve==-1)throw new Error("Detected ".concat(ee," closing element before finding the start"));le.splice(ve,be-ve+1);return}else{le.splice(be,1);return}}}O.removeElement=Z;function z(ee,le){for(var ve=[],be=-1,ge=0;ge<le.length;ge++){var $e=le[ge];if($e.name===ee)if($e.type==="m")if(!$e.isEnd)be=ge;else{if(be==-1)throw new Error("Detected ".concat(ee," closing element before finding the start"));ve=le.slice(be,ge+1);break}else{ve.push(le[ge]);break}}return ve}O.extractElement=z;function X(ee,le){Array.isArray(le.cueInfos)&&!Array.isArray(le.cues)&&(console.warn("putRefinedMetaData: info.cueInfos property is deprecated. please use info.cues"),le.cues=le.cueInfos);for(var ve=[],be=[],ge=0;ge<ee.length;ge++){var $e=ee[ge];if($e.type==="m"&&$e.name==="Segment"){if(ve=ee.slice(0,ge),be=ee.slice(ge),$e.unknownSize){be.shift();break}throw new Error("this metadata is not streaming webm file")}}if(!(be[be.length-1].dataEnd>0))throw new Error("metadata dataEnd has wrong number");var Ne=be[be.length-1].dataEnd,Le=ve[ve.length-1].dataEnd,Fe=new I.default().encode(ve).byteLength,Ye=Fe-Le,ft=Ne-be[0].tagStart;be[0].tagStart-Le,be[0].tagStart;var Re=new O.Buffer([24,83,128,103]),xe=new O.Buffer("01ffffffffffffff","hex"),ot=Re.byteLength+xe.byteLength,Pe=ft,Xe;for(Xe=1;Xe<20;Xe++){var at=Le+ot+Pe,Qe=at-Ne,He=Ye+Qe,Se=oe(be,He,le),ke=new I.default().encode(Se).byteLength;if(ke===Pe)return new I.default().encode([].concat(ve,[{type:"m",name:"Segment",isEnd:!1,unknownSize:!0}],Se));Pe=ke}throw new Error("unable to refine metadata, stable size could not be found in "+Xe+" iterations!")}O.putRefinedMetaData=X;function re(ee){var le=new I.default;return ee.reduce(function(ve,be){return ve.concat(le.encode([be]))},[]).reduce(function(ve,be){return ve+be.byteLength},0)}function oe(ee,le,ve){var be=ve.duration,ge=ve.clusterPtrs,$e=ve.cues,Ne=ee.slice(0);if(typeof be=="number"){var Le=!1;Ne.forEach(function(Ye){Ye.type==="f"&&Ye.name==="Duration"&&(Le=!0,Ye.data=fe(be,8))}),Le||ye(Ne,"Info",[{name:"Duration",type:"f",data:fe(be,8)}])}Array.isArray($e)&&ye(Ne,"Cues",de($e,le));var Fe=[];return Array.isArray(ge)&&(console.warn("append cluster pointers to seekhead is deprecated. please use cues"),Fe=ne(ge,le)),ye(Ne,"SeekHead",Fe,!0),Ne}function ne(ee,le){var ve=[];return ee.forEach(function(be){ve.push({name:"Seek",type:"m",isEnd:!1}),ve.push({name:"SeekID",type:"b",data:new O.Buffer([31,67,182,117])}),ve.push({name:"SeekPosition",type:"u",data:he(be+le)}),ve.push({name:"Seek",type:"m",isEnd:!0})}),ve}function de(ee,le){var ve=[];return ee.forEach(function(be){var ge=be.CueTrack,$e=be.CueClusterPosition,Ne=be.CueTime;ve.push({name:"CuePoint",type:"m",isEnd:!1}),ve.push({name:"CueTime",type:"u",data:he(Ne)}),ve.push({name:"CueTrackPositions",type:"m",isEnd:!1}),ve.push({name:"CueTrack",type:"u",data:he(ge)}),ve.push({name:"CueClusterPosition",type:"u",data:he($e+le)}),ve.push({name:"CueTrackPositions",type:"m",isEnd:!0}),ve.push({name:"CuePoint",type:"m",isEnd:!0})}),ve}function ye(ee,le,ve,be){be===void 0&&(be=!1);for(var ge=-1,$e=0;$e<ee.length;$e++){var Ne=ee[$e];if(Ne.type==="m"&&Ne.name===le&&Ne.isEnd===!1){ge=$e;break}}ge>=0?Array.prototype.splice.apply(ee,[ge+1,0].concat(ve)):be?[].concat([{name:le,type:"m",isEnd:!1}],ve,[{name:le,type:"m",isEnd:!0}]).reverse().forEach(function(Le){ee.unshift(Le)}):(ee.push({name:le,type:"m",isEnd:!1}),ve.forEach(function(Le){ee.push(Le)}),ee.push({name:le,type:"m",isEnd:!0}))}function Q(ee){return O.Buffer.concat(ee)}O.concat=Q;function ae(ee){var le=new O.Buffer(0);if(ee.type==="m")return ee;switch(ee.type){case"u":le=he(ee.value);break;case"i":le=se(ee.value);break;case"f":le=fe(ee.value);break;case"s":le=new O.Buffer(ee.value,"ascii");break;case"8":le=new O.Buffer(ee.value,"utf8");break;case"b":le=ee.value;break;case"d":le=new N.Int64BE(ee.value.getTime().toString()).toBuffer();break}return Object.assign({},ee,{data:le})}O.encodeValueToBuffer=ae;function he(ee){for(var le=1;ee>=Math.pow(2,8*le);le++);if(le>=7)return console.warn("7bit or more bigger uint not supported."),new N.Uint64BE(ee).toBuffer();var ve=new O.Buffer(le);return ve.writeUIntBE(ee,0,le),ve}O.createUIntBuffer=he;function se(ee){for(var le=1;ee>=Math.pow(2,8*le);le++);if(le>=7)return console.warn("7bit or more bigger uint not supported."),new N.Int64BE(ee).toBuffer();var ve=new O.Buffer(le);return ve.writeIntBE(ee,0,le),ve}O.createIntBuffer=se;function fe(ee,le){if(le===void 0&&(le=8),le===8){var ve=new O.Buffer(8);return ve.writeDoubleBE(ee,0),ve}else if(le===4){var ve=new O.Buffer(4);return ve.writeFloatBE(ee,0),ve}else throw new Error("float type bits must 4bytes or 8bytes")}O.createFloatBuffer=fe;function me(ee){return ee instanceof Date?ee:new Date(new Date("2001-01-01T00:00:00.000Z").getTime()+Number(ee)/1e3/1e3)}O.convertEBMLDateToJSDate=me}(tools)),tools}var hasRequiredEBMLDecoder;function requireEBMLDecoder(){if(hasRequiredEBMLDecoder)return EBMLDecoder;hasRequiredEBMLDecoder=1,Object.defineProperty(EBMLDecoder,"__esModule",{value:!0});var O=requireInt64Buffer(),N=requireTools(),I=requireTools(),D=requireEbmlID(),f;(function(i){i[i.STATE_TAG=1]="STATE_TAG",i[i.STATE_SIZE=2]="STATE_SIZE",i[i.STATE_CONTENT=3]="STATE_CONTENT"})(f||(f={}));var k=function(){function i(){this._buffer=new N.Buffer(0),this._tag_stack=[],this._state=f.STATE_TAG,this._cursor=0,this._total=0,this._schema=D.byEbmlID,this._result=[]}return i.prototype.decode=function(c){this.readChunk(c);var $=this._result;return this._result=[],$},i.prototype.readChunk=function(c){for(this._buffer=I.concat([this._buffer,new N.Buffer(c)]);this._cursor<this._buffer.length&&!(this._state===f.STATE_TAG&&!this.readTag()||this._state===f.STATE_SIZE&&!this.readSize()||this._state===f.STATE_CONTENT&&!this.readContent()););},i.prototype.getSchemaInfo=function(c){return this._schema[c]||{name:"unknown",level:-1,type:"unknown",description:"unknown"}},i.prototype.readTag=function(){if(this._cursor>=this._buffer.length)return!1;var c=(0,N.readVint)(this._buffer,this._cursor);if(c==null)return!1;var $=this._buffer.slice(this._cursor,this._cursor+c.length),C=$.reduce(function(Z,z,X,re){return Z+z*Math.pow(16,2*(re.length-1-X))},0),M=this.getSchemaInfo(C),J={EBML_ID:C.toString(16),schema:M,type:M.type,name:M.name,level:M.level,tagStart:this._total,tagEnd:this._total+c.length,sizeStart:this._total+c.length,sizeEnd:null,dataStart:null,dataEnd:null,dataSize:null,data:null};return this._tag_stack.push(J),this._cursor+=c.length,this._total+=c.length,this._state=f.STATE_SIZE,!0},i.prototype.readSize=function(){if(this._cursor>=this._buffer.length)return!1;var c=(0,N.readVint)(this._buffer,this._cursor);if(c==null)return!1;var $=this._tag_stack[this._tag_stack.length-1];return $.sizeEnd=$.sizeStart+c.length,$.dataStart=$.sizeEnd,$.dataSize=c.value,c.value===-1?($.dataEnd=-1,$.type==="m"&&($.unknownSize=!0)):$.dataEnd=$.sizeEnd+c.value,this._cursor+=c.length,this._total+=c.length,this._state=f.STATE_CONTENT,!0},i.prototype.readContent=function(){var c=this._tag_stack[this._tag_stack.length-1];if(c.type==="m"){if(c.isEnd=!1,this._result.push(c),this._state=f.STATE_TAG,c.dataSize===0){var $=Object.assign({},c,{isEnd:!0});this._result.push($),this._tag_stack.pop()}return!0}if(this._buffer.length<this._cursor+c.dataSize)return!1;var C=this._buffer.slice(this._cursor,this._cursor+c.dataSize);switch(this._buffer=this._buffer.slice(this._cursor+c.dataSize),c.data=C,c.type){case"u":c.value=C.readUIntBE(0,C.length);break;case"i":c.value=C.readIntBE(0,C.length);break;case"f":c.value=c.dataSize===4?C.readFloatBE(0):c.dataSize===8?C.readDoubleBE(0):(console.warn("cannot read ".concat(c.dataSize," octets float. failback to 0")),0);break;case"s":c.value=C.toString("ascii");break;case"8":c.value=C.toString("utf8");break;case"b":c.value=C;break;case"d":c.value=(0,N.convertEBMLDateToJSDate)(new O.Int64BE(C).toNumber());break}if(c.value===null)throw new Error("unknown tag type:"+c.type);for(this._result.push(c),this._total+=c.dataSize,this._state=f.STATE_TAG,this._cursor=0,this._tag_stack.pop();this._tag_stack.length>0;){var M=this._tag_stack[this._tag_stack.length-1];if(M.dataEnd<0)return this._tag_stack.pop(),!0;if(this._total<M.dataEnd)break;if(M.type!=="m")throw new Error("parent element is not master element");var $=Object.assign({},M,{isEnd:!0});this._result.push($),this._tag_stack.pop()}return!0},i}();return EBMLDecoder.default=k,EBMLDecoder}var EBMLReader={},events={exports:{}},hasRequiredEvents;function requireEvents(){if(hasRequiredEvents)return events.exports;hasRequiredEvents=1;var O=typeof Reflect=="object"?Reflect:null,N=O&&typeof O.apply=="function"?O.apply:function(ae,he,se){return Function.prototype.apply.call(ae,he,se)},I;O&&typeof O.ownKeys=="function"?I=O.ownKeys:Object.getOwnPropertySymbols?I=function(ae){return Object.getOwnPropertyNames(ae).concat(Object.getOwnPropertySymbols(ae))}:I=function(ae){return Object.getOwnPropertyNames(ae)};function D(Q){console&&console.warn&&console.warn(Q)}var f=Number.isNaN||function(ae){return ae!==ae};function k(){k.init.call(this)}events.exports=k,events.exports.once=ne,k.EventEmitter=k,k.prototype._events=void 0,k.prototype._eventsCount=0,k.prototype._maxListeners=void 0;var i=10;function c(Q){if(typeof Q!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof Q)}Object.defineProperty(k,"defaultMaxListeners",{enumerable:!0,get:function(){return i},set:function(Q){if(typeof Q!="number"||Q<0||f(Q))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+Q+".");i=Q}}),k.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},k.prototype.setMaxListeners=function(ae){if(typeof ae!="number"||ae<0||f(ae))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+ae+".");return this._maxListeners=ae,this};function $(Q){return Q._maxListeners===void 0?k.defaultMaxListeners:Q._maxListeners}k.prototype.getMaxListeners=function(){return $(this)},k.prototype.emit=function(ae){for(var he=[],se=1;se<arguments.length;se++)he.push(arguments[se]);var fe=ae==="error",me=this._events;if(me!==void 0)fe=fe&&me.error===void 0;else if(!fe)return!1;if(fe){var ee;if(he.length>0&&(ee=he[0]),ee instanceof Error)throw ee;var le=new Error("Unhandled error."+(ee?" ("+ee.message+")":""));throw le.context=ee,le}var ve=me[ae];if(ve===void 0)return!1;if(typeof ve=="function")N(ve,this,he);else for(var be=ve.length,ge=X(ve,be),se=0;se<be;++se)N(ge[se],this,he);return!0};function C(Q,ae,he,se){var fe,me,ee;if(c(he),me=Q._events,me===void 0?(me=Q._events=Object.create(null),Q._eventsCount=0):(me.newListener!==void 0&&(Q.emit("newListener",ae,he.listener?he.listener:he),me=Q._events),ee=me[ae]),ee===void 0)ee=me[ae]=he,++Q._eventsCount;else if(typeof ee=="function"?ee=me[ae]=se?[he,ee]:[ee,he]:se?ee.unshift(he):ee.push(he),fe=$(Q),fe>0&&ee.length>fe&&!ee.warned){ee.warned=!0;var le=new Error("Possible EventEmitter memory leak detected. "+ee.length+" "+String(ae)+" listeners added. Use emitter.setMaxListeners() to increase limit");le.name="MaxListenersExceededWarning",le.emitter=Q,le.type=ae,le.count=ee.length,D(le)}return Q}k.prototype.addListener=function(ae,he){return C(this,ae,he,!1)},k.prototype.on=k.prototype.addListener,k.prototype.prependListener=function(ae,he){return C(this,ae,he,!0)};function M(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function J(Q,ae,he){var se={fired:!1,wrapFn:void 0,target:Q,type:ae,listener:he},fe=M.bind(se);return fe.listener=he,se.wrapFn=fe,fe}k.prototype.once=function(ae,he){return c(he),this.on(ae,J(this,ae,he)),this},k.prototype.prependOnceListener=function(ae,he){return c(he),this.prependListener(ae,J(this,ae,he)),this},k.prototype.removeListener=function(ae,he){var se,fe,me,ee,le;if(c(he),fe=this._events,fe===void 0)return this;if(se=fe[ae],se===void 0)return this;if(se===he||se.listener===he)--this._eventsCount===0?this._events=Object.create(null):(delete fe[ae],fe.removeListener&&this.emit("removeListener",ae,se.listener||he));else if(typeof se!="function"){for(me=-1,ee=se.length-1;ee>=0;ee--)if(se[ee]===he||se[ee].listener===he){le=se[ee].listener,me=ee;break}if(me<0)return this;me===0?se.shift():re(se,me),se.length===1&&(fe[ae]=se[0]),fe.removeListener!==void 0&&this.emit("removeListener",ae,le||he)}return this},k.prototype.off=k.prototype.removeListener,k.prototype.removeAllListeners=function(ae){var he,se,fe;if(se=this._events,se===void 0)return this;if(se.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):se[ae]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete se[ae]),this;if(arguments.length===0){var me=Object.keys(se),ee;for(fe=0;fe<me.length;++fe)ee=me[fe],ee!=="removeListener"&&this.removeAllListeners(ee);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(he=se[ae],typeof he=="function")this.removeListener(ae,he);else if(he!==void 0)for(fe=he.length-1;fe>=0;fe--)this.removeListener(ae,he[fe]);return this};function Z(Q,ae,he){var se=Q._events;if(se===void 0)return[];var fe=se[ae];return fe===void 0?[]:typeof fe=="function"?he?[fe.listener||fe]:[fe]:he?oe(fe):X(fe,fe.length)}k.prototype.listeners=function(ae){return Z(this,ae,!0)},k.prototype.rawListeners=function(ae){return Z(this,ae,!1)},k.listenerCount=function(Q,ae){return typeof Q.listenerCount=="function"?Q.listenerCount(ae):z.call(Q,ae)},k.prototype.listenerCount=z;function z(Q){var ae=this._events;if(ae!==void 0){var he=ae[Q];if(typeof he=="function")return 1;if(he!==void 0)return he.length}return 0}k.prototype.eventNames=function(){return this._eventsCount>0?I(this._events):[]};function X(Q,ae){for(var he=new Array(ae),se=0;se<ae;++se)he[se]=Q[se];return he}function re(Q,ae){for(;ae+1<Q.length;ae++)Q[ae]=Q[ae+1];Q.pop()}function oe(Q){for(var ae=new Array(Q.length),he=0;he<ae.length;++he)ae[he]=Q[he].listener||Q[he];return ae}function ne(Q,ae){return new Promise(function(he,se){function fe(ee){Q.removeListener(ae,me),se(ee)}function me(){typeof Q.removeListener=="function"&&Q.removeListener("error",fe),he([].slice.call(arguments))}ye(Q,ae,me,{once:!0}),ae!=="error"&&de(Q,fe,{once:!0})})}function de(Q,ae,he){typeof Q.on=="function"&&ye(Q,"error",ae,he)}function ye(Q,ae,he,se){if(typeof Q.on=="function")se.once?Q.once(ae,he):Q.on(ae,he);else if(typeof Q.addEventListener=="function")Q.addEventListener(ae,function fe(me){se.once&&Q.removeEventListener(ae,fe),he(me)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof Q)}return events.exports}var hasRequiredEBMLReader;function requireEBMLReader(){if(hasRequiredEBMLReader)return EBMLReader;hasRequiredEBMLReader=1;var O=EBMLReader&&EBMLReader.__extends||function(){var f=function(k,i){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,$){c.__proto__=$}||function(c,$){for(var C in $)Object.prototype.hasOwnProperty.call($,C)&&(c[C]=$[C])},f(k,i)};return function(k,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");f(k,i);function c(){this.constructor=k}k.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}}();Object.defineProperty(EBMLReader,"__esModule",{value:!0});var N=requireEvents(),I=requireTools(),D=function(f){O(k,f);function k(){var i=f.call(this)||this;return i.logGroup="",i.hasLoggingStarted=!1,i.metadataloaded=!1,i.chunks=[],i.stack=[],i.segmentOffset=0,i.last2SimpleBlockVideoTrackTimecode=[0,0],i.last2SimpleBlockAudioTrackTimecode=[0,0],i.lastClusterTimecode=0,i.lastClusterPosition=0,i.timecodeScale=1e6,i.metadataSize=0,i.metadatas=[],i.cues=[],i.firstVideoBlockRead=!1,i.firstAudioBlockRead=!1,i.currentTrack={TrackNumber:-1,TrackType:-1,DefaultDuration:null,CodecDelay:null},i.trackTypes=[],i.trackDefaultDuration=[],i.trackCodecDelay=[],i.trackInfo={type:"nothing"},i.ended=!1,i.logging=!1,i.use_duration_every_simpleblock=!1,i.use_webp=!1,i.use_segment_info=!0,i.drop_default_duration=!0,i}return k.prototype.stop=function(){for(this.ended=!0,this.emit_segment_info();this.stack.length;)this.stack.pop(),this.logging&&console.groupEnd();this.logging&&this.hasLoggingStarted&&this.logGroup&&console.groupEnd()},k.prototype.emit_segment_info=function(){var i=this.chunks;if(this.chunks=[],this.metadataloaded){if(!this.use_segment_info)return;var C=this.lastClusterTimecode,M=this.duration,J=this.timecodeScale;this.emit("cluster",{timecode:C,data:i}),this.emit("duration",{timecodeScale:J,duration:M})}else{this.metadataloaded=!0,this.metadatas=i;var c=this.trackTypes.indexOf(1),$=this.trackTypes.indexOf(2);if(this.trackInfo=c>=0&&$>=0?{type:"both",trackNumber:c}:c>=0?{type:"video",trackNumber:c}:$>=0?{type:"audio",trackNumber:$}:{type:"nothing"},!this.use_segment_info)return;this.emit("metadata",{data:i,metadataSize:this.metadataSize})}},k.prototype.read=function(i){var c=this,$=!1;if(!this.ended){if(i.type==="m")if(i.isEnd)this.stack.pop();else{var C=this.stack[this.stack.length-1];if(C!=null&&C.level>=i.level){this.stack.pop(),this.logging&&console.groupEnd(),C.dataEnd=i.dataEnd,C.dataSize=i.dataEnd-C.dataStart,C.unknownSize=!1;var M=Object.assign({},C,{name:C.name,type:C.type,isEnd:!0});this.chunks.push(M)}this.stack.push(i)}if(i.type==="m"&&i.name=="Segment")this.segmentOffset!=0&&console.warn("Multiple segments detected!"),this.segmentOffset=i.dataStart,this.emit("segment_offset",this.segmentOffset);else if(i.type==="b"&&i.name==="SimpleBlock"){var J=I.ebmlBlock(i.data),Z=J.timecode,z=J.trackNumber,X=J.frames;if(this.trackTypes[z]===1){if(!this.firstVideoBlockRead&&(this.firstVideoBlockRead=!0,this.trackInfo.type==="both"||this.trackInfo.type==="video")){var re=this.lastClusterTimecode+Z;this.cues.push({CueTrack:z,CueClusterPosition:this.lastClusterPosition,CueTime:re}),this.emit("cue_info",{CueTrack:z,CueClusterPosition:this.lastClusterPosition,CueTime:this.lastClusterTimecode}),this.emit("cue",{CueTrack:z,CueClusterPosition:this.lastClusterPosition,CueTime:re})}this.last2SimpleBlockVideoTrackTimecode=[this.last2SimpleBlockVideoTrackTimecode[1],Z]}else if(this.trackTypes[z]===2){if(!this.firstAudioBlockRead&&(this.firstAudioBlockRead=!0,this.trackInfo.type==="audio")){var re=this.lastClusterTimecode+Z;this.cues.push({CueTrack:z,CueClusterPosition:this.lastClusterPosition,CueTime:re}),this.emit("cue_info",{CueTrack:z,CueClusterPosition:this.lastClusterPosition,CueTime:this.lastClusterTimecode}),this.emit("cue",{CueTrack:z,CueClusterPosition:this.lastClusterPosition,CueTime:re})}this.last2SimpleBlockAudioTrackTimecode=[this.last2SimpleBlockAudioTrackTimecode[1],Z]}this.use_duration_every_simpleblock&&this.emit("duration",{timecodeScale:this.timecodeScale,duration:this.duration}),this.use_webp&&X.forEach(function(oe){var ne=oe.slice(3,6).toString("hex");if(ne==="9d012a"){var de=I.VP8BitStreamToRiffWebPBuffer(oe),ye=new Blob([de],{type:"image/webp"}),Q=c.duration;c.emit("webp",{currentTime:Q,webp:ye})}})}else i.type==="m"&&i.name==="Cluster"&&i.isEnd===!1?(this.firstVideoBlockRead=!1,this.firstAudioBlockRead=!1,this.emit_segment_info(),this.emit("cluster_ptr",i.tagStart),this.lastClusterPosition=i.tagStart):i.type==="u"&&i.name==="Timecode"?this.lastClusterTimecode=i.value:i.type==="u"&&i.name==="TimecodeScale"?this.timecodeScale=i.value:i.type==="m"&&i.name==="TrackEntry"?i.isEnd?(this.trackTypes[this.currentTrack.TrackNumber]=this.currentTrack.TrackType,this.trackDefaultDuration[this.currentTrack.TrackNumber]=this.currentTrack.DefaultDuration,this.trackCodecDelay[this.currentTrack.TrackNumber]=this.currentTrack.CodecDelay):this.currentTrack={TrackNumber:-1,TrackType:-1,DefaultDuration:null,CodecDelay:null}:i.type==="u"&&i.name==="TrackType"?this.currentTrack.TrackType=i.value:i.type==="u"&&i.name==="TrackNumber"?this.currentTrack.TrackNumber=i.value:i.type==="u"&&i.name==="CodecDelay"?this.currentTrack.CodecDelay=i.value:i.type==="u"&&i.name==="DefaultDuration"?this.drop_default_duration?(console.warn("DefaultDuration detected!, remove it"),$=!0):this.currentTrack.DefaultDuration=i.value:i.name==="unknown"&&console.warn(i);!this.metadataloaded&&i.dataEnd>0&&(this.metadataSize=i.dataEnd),$||this.chunks.push(i),this.logging&&this.put(i)}},Object.defineProperty(k.prototype,"duration",{get:function(){if(this.trackInfo.type==="nothing")return console.warn("no video, no audio track"),0;var i=0,c=0,$=0,C=this.trackDefaultDuration[this.trackInfo.trackNumber];if(typeof C=="number")i=C;else if(this.trackInfo.type==="both")if(this.last2SimpleBlockAudioTrackTimecode[1]>this.last2SimpleBlockVideoTrackTimecode[1]){i=(this.last2SimpleBlockAudioTrackTimecode[1]-this.last2SimpleBlockAudioTrackTimecode[0])*this.timecodeScale;var M=this.trackCodecDelay[this.trackTypes.indexOf(2)];typeof M=="number"&&(c=M),$=this.last2SimpleBlockAudioTrackTimecode[1]}else{i=(this.last2SimpleBlockVideoTrackTimecode[1]-this.last2SimpleBlockVideoTrackTimecode[0])*this.timecodeScale;var M=this.trackCodecDelay[this.trackTypes.indexOf(1)];typeof M=="number"&&(c=M),$=this.last2SimpleBlockVideoTrackTimecode[1]}else if(this.trackInfo.type==="video"){i=(this.last2SimpleBlockVideoTrackTimecode[1]-this.last2SimpleBlockVideoTrackTimecode[0])*this.timecodeScale;var M=this.trackCodecDelay[this.trackInfo.trackNumber];typeof M=="number"&&(c=M),$=this.last2SimpleBlockVideoTrackTimecode[1]}else if(this.trackInfo.type==="audio"){i=(this.last2SimpleBlockAudioTrackTimecode[1]-this.last2SimpleBlockAudioTrackTimecode[0])*this.timecodeScale;var M=this.trackCodecDelay[this.trackInfo.trackNumber];typeof M=="number"&&(c=M),$=this.last2SimpleBlockAudioTrackTimecode[1]}var J=(this.lastClusterTimecode+$)*this.timecodeScale+i-c,Z=J/this.timecodeScale;return Math.floor(Z)},enumerable:!1,configurable:!0}),k.prototype.addListener=function(i,c){return f.prototype.addListener.call(this,i,c)},k.prototype.put=function(i){this.hasLoggingStarted||(this.hasLoggingStarted=!0,this.logging&&this.logGroup&&console.groupCollapsed(this.logGroup)),i.type==="m"?i.isEnd?console.groupEnd():console.group(i.name+":"+i.tagStart):i.type==="b"?console.log(i.name,i.type):console.log(i.name,i.tagStart,i.type,i.value)},k}(N.EventEmitter);return EBMLReader.default=D,EBMLReader}var hasRequiredEbml;function requireEbml(){return hasRequiredEbml||(hasRequiredEbml=1,function(O){var N=ebml&&ebml.__createBinding||(Object.create?function(c,$,C,M){M===void 0&&(M=C),Object.defineProperty(c,M,{enumerable:!0,get:function(){return $[C]}})}:function(c,$,C,M){M===void 0&&(M=C),c[M]=$[C]}),I=ebml&&ebml.__exportStar||function(c,$){for(var C in c)C!=="default"&&!Object.prototype.hasOwnProperty.call($,C)&&N($,c,C)};Object.defineProperty(O,"__esModule",{value:!0}),O.tools=O.Reader=O.Encoder=O.Decoder=void 0,I(requireEBML(),O);var D=requireEBMLDecoder();O.Decoder=D.default;var f=requireEBMLEncoder();O.Encoder=f.default;var k=requireEBMLReader();O.Reader=k.default;var i=requireTools();O.tools=i}(ebml)),ebml}var hasRequiredLib;function requireLib(){if(hasRequiredLib)return lib;hasRequiredLib=1;var O=lib&&lib.__awaiter||function(f,k,i,c){function $(C){return C instanceof i?C:new i(function(M){M(C)})}return new(i||(i=Promise))(function(C,M){function J(X){try{z(c.next(X))}catch(re){M(re)}}function Z(X){try{z(c.throw(X))}catch(re){M(re)}}function z(X){X.done?C(X.value):$(X.value).then(J,Z)}z((c=c.apply(f,k||[])).next())})},N=lib&&lib.__generator||function(f,k){var i={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},c,$,C,M;return M={next:J(0),throw:J(1),return:J(2)},typeof Symbol=="function"&&(M[Symbol.iterator]=function(){return this}),M;function J(z){return function(X){return Z([z,X])}}function Z(z){if(c)throw new TypeError("Generator is already executing.");for(;i;)try{if(c=1,$&&(C=z[0]&2?$.return:z[0]?$.throw||((C=$.return)&&C.call($),0):$.next)&&!(C=C.call($,z[1])).done)return C;switch($=0,C&&(z=[z[0]&2,C.value]),z[0]){case 0:case 1:C=z;break;case 4:return i.label++,{value:z[1],done:!1};case 5:i.label++,$=z[1],z=[0];continue;case 7:z=i.ops.pop(),i.trys.pop();continue;default:if(C=i.trys,!(C=C.length>0&&C[C.length-1])&&(z[0]===6||z[0]===2)){i=0;continue}if(z[0]===3&&(!C||z[1]>C[0]&&z[1]<C[3])){i.label=z[1];break}if(z[0]===6&&i.label<C[1]){i.label=C[1],C=z;break}if(C&&i.label<C[2]){i.label=C[2],i.ops.push(z);break}C[2]&&i.ops.pop(),i.trys.pop();continue}z=k.call(f,i)}catch(X){z=[6,X],$=0}finally{c=C=0}if(z[0]&5)throw z[1];return{value:z[0]?z[1]:void 0,done:!0}}};Object.defineProperty(lib,"__esModule",{value:!0});var I=requireEbml();function D(f){return O(this,void 0,void 0,function(){var k,i,c,$,C,M,J,Z,z,X,re,oe;return N(this,function(ne){switch(ne.label){case 0:if(!f)throw Error("call to fixWebmDuration requires a blob");k=new I.Decoder,i=new I.Reader,c=f.stream(),$=c.getReader(),ne.label=1;case 1:return[4,$.read()];case 2:return C=ne.sent(),M=C.done,J=C.value,M?(i.stop(),[3,3]):(Z=k.decode(J),Z=Z==null?void 0:Z.filter(function(de){return de.type!=="unknown"}),Z.forEach(function(de){i.read(de)}),J=null,[3,1]);case 3:return z=I.tools.makeMetadataSeekable(i.metadatas,i.duration,i.cues),X=new Blob([z],{type:f.type}),re=f.slice(i.metadataSize),oe=new Blob([X,re],{type:f.type}),[2,oe]}})})}return lib.default=D,lib}var libExports=requireLib();const fixWebmDuration=getDefaultExportFromCjs(libExports);class StreamRecorder{constructor(){_e(this,We);_e(this,vt,!1);_e(this,st,!1);_e(this,At,0);_e(this,Bt,0);_e(this,et,0);_e(this,it,0);_e(this,bt,0);ie(this,"onchange",N=>{});ie(this,"onDurationChange",N=>{});ie(this,"start",async(N="")=>{N||(N=`video_Record_${E(Date.now())}`);let I=[];return navigator.mediaDevices.getDisplayMedia({audio:!0,video:!0}).then(D=>{const f=D.getTracks();for(const i of f)i.onended=()=>this.stop();Be(this,vt,!0),Be(this,st,!1),Be(this,We,new MediaRecorder(D)),ce(this,We).start();const k=new Date().getTime();Be(this,At,k),Be(this,et,k),ce(this,_t).call(this),ce(this,Dt).call(this),ce(this,We).addEventListener("dataavailable",i=>{I.push(i.data)}),ce(this,We).addEventListener("stop",async()=>{Be(this,vt,!1);const i=new Date().getTime();Be(this,Bt,i),Be(this,it,ce(this,it)+(i-ce(this,et))),ce(this,_t).call(this),clearInterval(ce(this,bt));const c=D.getTracks();for(const Z of c)Z.stop();if(ce(this,We)===null)return;const $=new Blob(I,{type:ce(this,We).mimeType}),C=await fixWebmDuration($),M=URL.createObjectURL(C),J=document.createElement("a");J.href=M,J.download=`${N}.mp4`,J.click(),URL.revokeObjectURL(M),I=[],Be(this,We,null)})})});ie(this,"pause",async()=>{var I;await new Promise(D=>setTimeout(()=>D(!0),300)),(I=ce(this,We))==null||I.pause(),Be(this,st,!0);const N=new Date().getTime();Be(this,it,ce(this,it)+(N-ce(this,et))),ce(this,_t).call(this),clearInterval(ce(this,bt))});ie(this,"resume",async()=>{var I;(I=ce(this,We))==null||I.resume(),Be(this,st,!1);const N=new Date().getTime();Be(this,et,N),ce(this,_t).call(this),ce(this,Dt).call(this)});ie(this,"stop",async()=>{var N;(N=ce(this,We))==null||N.stop()});ie(this,"getDuration",()=>{if(ce(this,et)===0)return 0;let N=ce(this,it);const I=new Date().getTime();if(ce(this,vt)&&ce(this,st)===!1){const D=I-ce(this,et);Be(this,et,I),N=N+D}return N});ie(this,"getInfo",()=>({active:ce(this,vt),pause:ce(this,st),startTime:ce(this,At),endTime:ce(this,Bt),duration:ce(this,it)}));_e(this,_t,()=>{const N=this.getInfo();this.onchange(N)});_e(this,Dt,()=>{clearInterval(ce(this,bt)),Be(this,bt,window.setInterval(()=>{Be(this,it,this.getDuration()),this.onDurationChange(ce(this,it))},500))})}}We=new WeakMap,vt=new WeakMap,st=new WeakMap,At=new WeakMap,Bt=new WeakMap,et=new WeakMap,it=new WeakMap,bt=new WeakMap,_t=new WeakMap,Dt=new WeakMap;var l=Object.defineProperty,y=O=>{throw TypeError(O)},q=(O,N,I)=>N in O?l(O,N,{enumerable:!0,configurable:!0,writable:!0,value:I}):O[N]=I,s=(O,N,I)=>q(O,typeof N!="symbol"?N+"":N,I),P=(O,N,I)=>N.has(O)||y("Cannot "+I),n=(O,N,I)=>(P(O,N,"read from private field"),I?I.call(O):N.get(O)),a=(O,N,I)=>N.has(O)?y("Cannot add the same private member more than once"):N instanceof WeakSet?N.add(O):N.set(O,I),d,x,u;class p{constructor(N={}){s(this,"queue",[]),s(this,"timer",0),s(this,"activeIndex",0),s(this,"activePromise"),s(this,"options",{timeout:0}),s(this,"add",(I,D={})=>new Promise(async(f,k)=>{const i=D.timeout||this.options.timeout,c=D.key||n(this,d).call(this),$=D.describe||"";if(this.queue.findIndex(M=>M.key===c)!==-1)return k(`${c} is exist.`);const C={key:c,func:I,describe:$,timeout:i,resolve:f,reject:k};this.queue.unshift(C),this.activePromise||n(this,u).call(this)})),s(this,"clear",()=>{this.queue=[],clearTimeout(this.timer)}),a(this,d,()=>(this.activeIndex=this.activeIndex+1,`${this.activeIndex}`)),a(this,x,I=>{const D=this.queue.findIndex(f=>f.key===I);this.queue.splice(D,1)}),a(this,u,async()=>{const I=this.queue.length;if(I===0)return;const D=I-1,f=this.queue[D];this.activePromise=f;const{key:k,func:i,resolve:c,reject:$,timeout:C}=this.activePromise;C&&(this.timer=window.setTimeout(()=>{$(`pr-async-queue: ${k} is timeout.`),n(this,u).call(this)},C)),await i().then(c).catch($).finally(()=>{clearTimeout(this.timer),this.activePromise=void 0,n(this,x).call(this,k),n(this,u).call(this)})}),this.options={timeout:0,...N}}}d=new WeakMap,x=new WeakMap,u=new WeakMap;class RoomBase{constructor(N){ie(this,"options",{appid:"",sdkToken:"",roomId:"",userId:"",earlyId:"",callType:0,debug:!1,reportErr:!0,logUrl:"https://logs1.quickvo.org",newPublishAutoSubscribe:!0});ie(this,"sdk_service_version","1.0.6");ie(this,"prohibitNotify",!1);ie(this,"isEarly",!1);ie(this,"isInRoom",!1);ie(this,"asyncQueue");ie(this,"roomState","ready");ie(this,"createAt",Date.now());ie(this,"cwsIns");ie(this,"peerIns");ie(this,"transceiverMap",new Map);ie(this,"sendChannel");ie(this,"receiveChannel");ie(this,"userMap",new Map);ie(this,"setLocalStreamActiveMap",new Map);ie(this,"phoneyStreams",new Map);ie(this,"recorder",new StreamRecorder);ie(this,"networkQualityTester",new NetworkQualityTester);ie(this,"mediaDevicesErrInfo",{microphoneCamera_audio:"",microphoneCamera_video:"",screenSharing_video:"",screenSharing_audio:""});ie(this,"reportLogs",(N,I="未知错误")=>{const{appid:D,userId:f,earlyId:k="",logUrl:i,reportErr:c}=this.options;if(!c)return;const $="web",C=M=>({ws_c_timeout:0,webrtc_c_timeout:1,join_room_error:2,publish_error:3,subscribe_error:4,close_track_error:5,heartbeat_e_timeout:6,heartbeat_i_timeout:7,quit_room_error:8})[M].toString();{const M=C(N),J={origin:$,type:M,app_id:D,user_id:f,ins_id:k,desc:I},Z=btoa(encodeURI(JSON.stringify(J))),z=`${i}/upload/log?log_key=${Z}`;{const X=localStorage.getItem("#quickvo.logs")||JSON.stringify([]),oe=new TextEncoder().encode(X),ne=pako.deflate(oe,{gzip:!0});this.options.debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: reportLogs",{obj:J,url:z,size:lt(ne.byteLength)}),fetch(z,{headers:{"Content-Type":"multipart/form-data"},method:"POST",body:ne})}}});ie(this,"initPhoneyStreams",(N,I=[])=>{I.length===0&&(I=mediaType_keys);for(const D of I){const f=this.phoneyStreams.get(D);if(f){const k=f.getTracks();for(const i of k)i.stop()}switch(D){case"microphoneCamera_audio":this.phoneyStreams.set("microphoneCamera_audio",createMutedAudioStream(N));break;case"microphoneCamera_video":this.phoneyStreams.set("microphoneCamera_video",createFakeVideoStream());break;case"screenSharing_audio":this.phoneyStreams.set("screenSharing_audio",createMutedAudioStream(N));break;case"screenSharing_video":this.phoneyStreams.set("screenSharing_video",createFakeVideoStream());break}}});ie(this,"getPhoneyStreams",N=>this.phoneyStreams.get(N));ie(this,"getRoomInfo",()=>{const{options:N,roomState:I,createAt:D}=this;return{...N,roomState:I,createAt:D}});ie(this,"setRoomState",N=>{this.roomState=N;const I=enum_roomState[N],D={state:N,stateStr:I};this.cwsIns.emitNotify("onRoomState",{code:200,data:D,desc:"room state is change."})});ie(this,"setOptions",async N=>{const I={...this.options,...N};this.options=I});ie(this,"stopStream",async N=>{const I=N.getTracks();for(const D of I)D.stop()});ie(this,"getMediaDevicesErrInfo",async()=>{try{const N=await navigator.mediaDevices.enumerateDevices();N.find(D=>D.kind==="audioinput")||(this.mediaDevicesErrInfo.microphoneCamera_audio="audioinput is not available."),N.find(D=>D.kind==="videoinput")||(this.mediaDevicesErrInfo.microphoneCamera_video="videoinput is not available.")}catch(N){this.options.debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: getMediaDevicesErrInfo is error.",N)}return this.mediaDevicesErrInfo});ie(this,"getUserMediaKey",(N,I)=>`${N}-${I}`);ie(this,"getCallAction",async N=>{let I="";const D=k=>N.findIndex(({type:c,enabled:$=!0})=>c===k&&$)===-1?"0":"1";return I=`${D(0)}${I}`,I=`${D(1)}${I}`,I=`${D(2)}${I}`,I=`${D(3)}${I}`,parseInt(I,2)});ie(this,"getCallActionMap",(N=0)=>{const D=Number(N).toString(2).padStart(4,"0").split(""),[f,k,i,c]=D;return{microphoneCamera_audio:!!Number(c),microphoneCamera_video:!!Number(i),screenSharing_video:!!Number(k),screenSharing_audio:!!Number(f)}});ie(this,"getBanBehaviorMap",(N=0)=>{const D=Number(N).toString(2).padStart(4,"0").split(""),[f,k,i,c]=D;return{microphoneCamera_audio:!!Number(c),microphoneCamera_video:!!Number(i),screenSharing_video:!!Number(k),screenSharing_audio:!!Number(f)}});ie(this,"getAverageVolume",(N,I)=>{N.getByteFrequencyData(I);let D=0;for(let k=0;k<I.length;k++)D+=I[k];return Math.ceil(D/I.length)});ie(this,"getTrackNamesFormTracks",(N,I=[],D="trackName")=>{const f=[];for(const k of N){const{type:i}=k;if(I.length===0||I.includes(i)){const c=k[D];c&&f.push(`${c}`)}}return f});ie(this,"usersFilter",N=>dt(N,["id","isSelf","isOwner","joinTime","tracks","network","permissions","isPublished","updateStreams","callAction","callActionStr","callActionMap","banBehavior","banBehaviorStr","banBehaviorMap"]).sort((f,k)=>f.id.localeCompare(k.id,"en")));this.setOptions(N),this.cwsIns=new CallsWebSocket({...N}),this.asyncQueue=new p}}var m=Object.defineProperty,G=(O,N,I)=>N in O?m(O,N,{enumerable:!0,configurable:!0,writable:!0,value:I}):O[N]=I,e=(O,N,I)=>G(O,typeof N!="symbol"?N+"":N,I);class g{constructor(N,I){e(this,"inputStream",new MediaStream),e(this,"outputStream",new MediaStream),e(this,"inputGain",1),e(this,"enhanceGain",1),e(this,"bgsGain",1),e(this,"bgmGain",1),e(this,"outputGain",1),e(this,"mixAudioMap",new Map),e(this,"audioContext",new AudioContext),e(this,"sourceNode"),e(this,"inputGainNode"),e(this,"enhanceGainNode"),e(this,"bgsGainNode"),e(this,"bgmGainNode"),e(this,"analyserNode"),e(this,"analyserArrayData"),e(this,"outputGainNode"),e(this,"destinationNode"),e(this,"filterStream",D=>D),e(this,"stop",()=>{{const D=this.inputStream.getTracks();for(const f of D)f.stop(),this.inputStream.removeTrack(f)}}),e(this,"getStream",()=>this.filterStream(this.outputStream)),e(this,"setMute",(D=!0)=>{D?this.analyserNode.disconnect(this.outputGainNode):this.analyserNode.connect(this.outputGainNode)}),e(this,"setInputGain",D=>{this.inputGain=D,this.inputGainNode.gain.setValueAtTime(D,this.audioContext.currentTime)}),e(this,"setEnhanceGain",async D=>{this.enhanceGain=D+1,this.enhanceGainNode.gain.setValueAtTime(this.enhanceGain,this.audioContext.currentTime)}),e(this,"setBgsGain",D=>{this.bgsGain=D,this.bgsGainNode.gain.setValueAtTime(D,this.audioContext.currentTime)}),e(this,"setBgmGain",D=>{this.bgmGain=D,this.bgmGainNode.gain.setValueAtTime(D,this.audioContext.currentTime)}),e(this,"setOutputGain",D=>{this.outputGain=D,this.outputGainNode.gain.setValueAtTime(this.outputGain,this.audioContext.currentTime)}),e(this,"getVolume",()=>{const{analyserNode:D,analyserArrayData:f}=this;D.getByteFrequencyData(f);let k=0;for(let i=0;i<f.length;i++)k+=f[i];return Math.ceil(k/f.length)}),e(this,"mixAudio",(D,f="bgm")=>new Promise(async(k,i)=>{try{{const C=this.mixAudioMap.get(f);C&&C.stop()}const c=f==="bgs"?this.bgsGainNode:this.bgmGainNode,$=this.audioContext.createBufferSource();this.mixAudioMap.set(f,$),$.buffer=D,$.connect(c),$.onended=()=>{$.disconnect(c),this.mixAudioMap.delete(f),k(!0)},$.start(0)}catch(c){i(c)}})),e(this,"mixAudioStop",D=>{const f=this.mixAudioMap.get(D);f==null||f.stop()}),e(this,"changeMix",(D,f)=>{const k=D==="bgs"?this.bgsGainNode:this.bgmGainNode;f?k.connect(this.destinationNode):k.disconnect(this.destinationNode)}),I&&(this.audioContext=I),this.inputStream=N,this.sourceNode=this.audioContext.createMediaStreamSource(this.inputStream),this.inputGainNode=this.audioContext.createGain(),this.inputGainNode.gain.setValueAtTime(this.inputGain,this.audioContext.currentTime),this.enhanceGainNode=this.audioContext.createGain(),this.enhanceGainNode.gain.setValueAtTime(this.enhanceGain,this.audioContext.currentTime),this.bgsGainNode=this.audioContext.createGain(),this.bgsGainNode.gain.setValueAtTime(this.bgsGain,this.audioContext.currentTime),this.bgmGainNode=this.audioContext.createGain(),this.bgmGainNode.gain.setValueAtTime(this.bgmGain,this.audioContext.currentTime),this.analyserNode=this.audioContext.createAnalyser(),this.analyserNode.fftSize=512,this.analyserArrayData=new Uint8Array(this.analyserNode.frequencyBinCount),this.outputGainNode=this.audioContext.createGain(),this.outputGainNode.gain.setValueAtTime(this.outputGain,this.audioContext.currentTime),this.destinationNode=this.audioContext.createMediaStreamDestination(),this.outputStream=this.destinationNode.stream;{const{sourceNode:D,inputGainNode:f,enhanceGainNode:k,bgsGainNode:i,bgmGainNode:c,analyserNode:$,outputGainNode:C,destinationNode:M}=this;D.connect(f),f.connect(k),k.connect($),i.connect($),c.connect($),k.connect(M),i.connect(M),c.connect(M),$.connect(C),C.connect(this.audioContext.destination)}this.setMute(!0),this.audioContext.resume()}}class RoomMedias extends RoomBase{constructor(I){super(I);_e(this,wt,[]);_e(this,Ke,new Map);_e(this,ze,new Map);_e(this,tt,new Map);_e(this,rt,new Map);_e(this,ut,new Map);ie(this,"localStreamsActionMap",new Map);_e(this,gt,new Map);ie(this,"audioContext",new(window.AudioContext||window.webkitAudioContext));ie(this,"initMediaPhoneyStreams",(I=[])=>this.initPhoneyStreams(this.audioContext,I));ie(this,"initLocalStreamsFilter",()=>{for(const I of mediaType_keys){const D=async f=>f;ce(this,gt).set(I,D)}});ie(this,"setLocalFilterStream",(I,D)=>{ce(this,gt).set(I,D)});_e(this,Zt,()=>{ce(this,ze).set("microphoneCamera_audio",{autoGainControl:!0,echoCancellation:!0,noiseSuppression:!0}),ce(this,ze).set("microphoneCamera_video",{frameRate:{min:10,ideal:30}}),ce(this,ze).set("screenSharing_video",{frameRate:{min:10,ideal:30}}),ce(this,ze).set("screenSharing_audio",{autoGainControl:!0,echoCancellation:!0,noiseSuppression:!0})});_e(this,Jt,()=>{ce(this,Ke).set("audioinput","default"),ce(this,Ke).set("videoinput","default"),ce(this,Ke).set("audiooutput","default")});ie(this,"emitNotifyUpdateUsersStreams",async I=>{this.cwsIns.emitNotify("onRoomUsersStreams",{code:200,data:I,desc:"users streams is change."})});ie(this,"initUserMediaStreamContext",async(I,D,f)=>{const[k]=f.getTracks();if(!k){console.warn("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: tracks.length is 0.",{userId:I,mediaType:D,stream:f});return}this.removeUserMediaStreamContext(I,D);const i=this.getUserMediaKey(I,D),{kind:c}=k;switch(c){case"audio":{const $=new MediaStream;$.addTrack(k);const C=new g($,this.audioContext);ce(this,tt).set(i,C)}break;case"video":{const $=new VideoMediaContext(k);ce(this,rt).set(i,$)}break}});ie(this,"getUserMediaStreamContext",(I,D)=>{const f=this.getUserMediaKey(I,D);if(["microphoneCamera_audio","screenSharing_audio"].includes(D))return ce(this,tt).get(f);if(["microphoneCamera_video","screenSharing_video"].includes(D))return ce(this,rt).get(f)});ie(this,"getUserAudioMediaStreamContext",(I,D)=>{const f=this.getUserMediaKey(I,D);return ce(this,tt).get(f)});ie(this,"removeUserMediaStreamContext",(I,D)=>{const f=this.getUserMediaKey(I,D);if(["microphoneCamera_audio","screenSharing_audio"].includes(D)){const k=ce(this,tt).get(f);return k==null||k.stop(),ce(this,tt).delete(f)}if(["microphoneCamera_video","screenSharing_video"].includes(D)){const k=ce(this,rt).get(f);return k==null||k.stop(),ce(this,rt).get(f)}});ie(this,"getUserStream",(I,D)=>{const f=this.getUserMediaStreamContext(I,D);return(f==null?void 0:f.getStream())||new MediaStream});ie(this,"getUserStreams",(I,D=[])=>{D.length===0&&(D=mediaType_keys);const f={};for(const k of D){const i=this.getUserStream(I,k);f[k]=i}return f});ie(this,"removeUserStreams",async(I,D=[])=>{D.length===0&&(D=mediaType_keys);for(const f of D)this.removeUserMediaStreamContext(I,f)});ie(this,"clearUserStreams",()=>{{const I=ce(this,tt).values();for(const D of I)D.stop();Be(this,tt,new Map)}{const I=ce(this,rt).values();for(const D of I)D.stop();Be(this,rt,new Map)}});ie(this,"setMediaTrackConstraints",async(I,D)=>{ce(this,ze).set(I,D);const f=await this.getLocalStream(I);if(!f)return;const k=f.getTracks();if(k.length!==0)for(const i of k){const c=i.getConstraints(),C={...ce(this,ze).get(I),...c,...D};await i.applyConstraints(C)}});ie(this,"stopLocalStreams",async(I=[])=>{I.length===0&&(I=mediaType_keys);for(const D of I){const f=ce(this,ut).get(D);f&&await this.stopStream(f),ce(this,ut).delete(D)}});ie(this,"addLocalStream",(I,D)=>{const f=ce(this,ut).get(I);f&&this.stopStream(f),ce(this,ut).set(I,D)});ie(this,"initLocalStream",async I=>{switch(I){case"microphoneCamera_audio":{const D=ce(this,Ke).get("audioinput"),f=ce(this,ze).get("microphoneCamera_audio"),k=await navigator.mediaDevices.getUserMedia({audio:{deviceId:D,...f},video:!1});this.addLocalStream("microphoneCamera_audio",k)}break;case"microphoneCamera_video":{const D=ce(this,Ke).get("videoinput"),f=ce(this,ze).get("microphoneCamera_video"),k=await navigator.mediaDevices.getUserMedia({audio:!1,video:{deviceId:D,...f}});this.addLocalStream("microphoneCamera_video",k)}break;case"microphoneCamera":{const D=ce(this,Ke).get("audioinput"),f=ce(this,Ke).get("videoinput"),k=ce(this,ze).get("microphoneCamera_audio"),i=ce(this,ze).get("microphoneCamera_video"),$=(await navigator.mediaDevices.getUserMedia({audio:{deviceId:D,...k},video:{deviceId:f,...i}})).getTracks();for(const C of $){const{kind:M}=C;if(M==="audio"){const J=new MediaStream;J.addTrack(C),this.addLocalStream("microphoneCamera_audio",J)}if(M==="video"){const J=new MediaStream;J.addTrack(C),this.addLocalStream("microphoneCamera_video",J)}}}break;case"screenSharing_audio":{const D=ce(this,ze).get("screenSharing_audio"),k=(await navigator.mediaDevices.getDisplayMedia({audio:!0,video:!0,...D})).getTracks();for(const i of k){const{kind:c}=i;if(c==="audio"){const $=new MediaStream;$.addTrack(i),this.addLocalStream("screenSharing_audio",$)}}}break;case"screenSharing_video":{const D=ce(this,ze).get(I),k=(await navigator.mediaDevices.getDisplayMedia({audio:!1,video:!0,...D})).getTracks();for(const i of k){const{kind:c}=i;if(c==="video"){const $=new MediaStream;$.addTrack(i),this.addLocalStream("screenSharing_video",$)}}}break;case"screenSharing":{const D=ce(this,ze).get("screenSharing_audio"),f=ce(this,ze).get("screenSharing_video"),i=(await navigator.mediaDevices.getDisplayMedia({audio:!0,video:!0,...D,...f})).getTracks();for(const c of i){const{kind:$}=c;if($==="audio"){const C=new MediaStream;C.addTrack(c),this.addLocalStream("screenSharing_audio",C)}if($==="video"){const C=new MediaStream;C.addTrack(c),this.addLocalStream("screenSharing_video",C)}}}break}});ie(this,"getLocalStream",async I=>{const D=ce(this,ut).get(I),f=ce(this,gt).get(I);let k=D;return D&&f&&(k=await f(D)),k});ie(this,"getLocalStreams",async(I=[])=>{I.length===0&&(I=mediaType_keys);const D={};for(const f of I)D[f]=await this.getLocalStream(f);return D});_e(this,St,async()=>!navigator.mediaDevices||!navigator.mediaDevices.enumerateDevices?(console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: 不支持 enumerateDevices"),[]):(await navigator.mediaDevices.enumerateDevices().then(I=>{const D=I.filter(f=>!["communications"].includes(f.deviceId));Be(this,wt,D.sort((f,k)=>f.label.localeCompare(k.label,"zh-Hans-CN",{sensitivity:"accent"})))}).catch(function(I){console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: getEnumerateDevices is err",I)}),ce(this,wt)));_e(this,Vt,()=>{navigator.mediaDevices&&(navigator.mediaDevices.ondevicechange=async()=>{await ce(this,St).call(this),this.cwsIns.emitNotify("onDevicechange",{code:200,data:{},desc:"device is change."})}),ce(this,St).call(this)});ie(this,"getMediaDeviceKind",I=>ce(this,Ke).get(I));ie(this,"changeAudiooutput",async()=>{try{const I=ce(this,Ke).get("audiooutput");await this.audioContext.setSinkId(I)}catch(I){console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: setSinkId is error.",I)}});ie(this,"setDeviceKind",(I,D)=>{ce(this,Ke).set(I,D)});ie(this,"setAudioOutputDevice",I=>this.setDeviceKind("audiooutput",I));ie(this,"getEnumerateDevices",async I=>(await ce(this,St).call(this),ce(this,wt).filter(f=>f.kind===I)));ie(this,"getEnumerateAudioinputDevices",()=>this.getEnumerateDevices("audioinput"));ie(this,"getEnumerateAudioOutputDevices",()=>this.getEnumerateDevices("audiooutput"));ie(this,"getEnumerateVideoinputDevices",()=>this.getEnumerateDevices("videoinput"));ce(this,Vt).call(this),ce(this,Jt).call(this),ce(this,Zt).call(this),this.initPhoneyStreams(this.audioContext),document.addEventListener("click",()=>{var D;((D=this.audioContext)==null?void 0:D.state)==="suspended"&&this.audioContext.resume()})}}wt=new WeakMap,Ke=new WeakMap,ze=new WeakMap,tt=new WeakMap,rt=new WeakMap,ut=new WeakMap,gt=new WeakMap,Zt=new WeakMap,Jt=new WeakMap,St=new WeakMap,Vt=new WeakMap;class RoomUsers extends RoomMedias{constructor(I){super(I);ie(this,"getMaxVolumeUser",()=>{const I=Array.from(this.userMap.values(),({id:f})=>f);if(I.length===0)return;let D=[];for(const f of I){const k=this.getUserAudioMediaStreamContext(f,"microphoneCamera_audio");if(!k)continue;const i=k.getVolume();D.push({id:f,volume:i})}return D=D.sort((f,k)=>f.volume-k.volume>0?-1:1),D[0]});ie(this,"setVolume",(I,D,f)=>{const k=this.getUserAudioMediaStreamContext(I,D);k==null||k.setInputGain(f)});ie(this,"setEnhanceGain",async(I,D,f)=>{const k=this.getUserAudioMediaStreamContext(I,D);k==null||k.setEnhanceGain(f)});ie(this,"setSpeaker",(I,D,f)=>{const k=this.getUserAudioMediaStreamContext(I,D);k==null||k.setOutputGain(f);const i=f===0;k==null||k.setMute(i)});ie(this,"playBgs",(I,D,f)=>{const k=this.getUserAudioMediaStreamContext(I,D);return k==null?void 0:k.mixAudio(f,"bgs")});ie(this,"setBgsGain",(I,D,f)=>{const k=this.getUserAudioMediaStreamContext(I,D);k==null||k.setBgsGain(f)});ie(this,"stopBgs",(I,D)=>{const f=this.getUserAudioMediaStreamContext(I,D);f==null||f.mixAudioStop("bgs")});ie(this,"playBgm",(I,D,f)=>{const k=this.getUserAudioMediaStreamContext(I,D);return k==null?void 0:k.mixAudio(f,"bgm")});ie(this,"setBgmGain",(I,D,f)=>{const k=this.getUserAudioMediaStreamContext(I,D);k==null||k.setBgmGain(f)});ie(this,"stopBgm",(I,D)=>{const f=this.getUserAudioMediaStreamContext(I,D);f==null||f.mixAudioStop("bgm")});ie(this,"changBgsMix",(I,D,f)=>{const k=this.getUserAudioMediaStreamContext(I,D);k==null||k.changeMix("bgs",f)});ie(this,"changBgmMix",(I,D,f)=>{const k=this.getUserAudioMediaStreamContext(I,D);k==null||k.changeMix("bgm",f)});ie(this,"getVolume",(I,D)=>{const f=this.getUserAudioMediaStreamContext(I,D);return f==null?void 0:f.getVolume()});ie(this,"clearUsers",()=>{this.userMap=new Map});ie(this,"removeUsers",async I=>{for(const D of I)this.userMap.delete(D),await this.removeUserStreams(D)});ie(this,"createUser",async I=>{const D=Date.now(),f={id:I,permissions:0,callAction:0,callActionStr:"",callActionMap:{microphoneCamera_audio:!1,microphoneCamera_video:!1,screenSharing_video:!1,screenSharing_audio:!1},banBehavior:0,banBehaviorStr:"",banBehaviorMap:{microphoneCamera_audio:!1,microphoneCamera_video:!1,screenSharing_video:!1,screenSharing_audio:!1},callState:0,isOwner:this.userMap.size===0,isSelf:I===this.options.userId,isPublished:!1,joinTime:D,updateAt:D,network:{egress:0,ingress:0},tracks:[],channels:[],updateStreams:{microphoneCamera_audio:!1,microphoneCamera_video:!1,screenSharing_video:!1,screenSharing_audio:!1}};this.userMap.set(I,f)});ie(this,"getUser",async I=>(this.userMap.has(I)||await this.createUser(I),this.userMap.get(I)));ie(this,"getUsers",async(I=[])=>{I.length===0&&(I=[...this.userMap.keys()]);const D=[];for(const f of I){const k=await this.getUser(f);D.push(k)}return D});ie(this,"getAllUserTrackMids",async()=>{const I=await this.getUsers(),D=[];for(const f of I){const{tracks:k=[]}=f;for(const i of k)D.push(i.mid)}return D});ie(this,"getUserTrackByTrackName",async I=>{const D=await this.getUsers(),f=[];for(const k of D){const{tracks:i=[]}=k;for(const c of i){const{trackName:$}=c;I.includes($)&&f.push(c)}}return f});ie(this,"getUserTrackFromMid",async I=>{const D=await this.getUsers();let f;for(const k of D){const{tracks:i=[]}=k;for(const c of i)if(c.mid===I){f=c;break}}return f});ie(this,"checkUserInRoom",I=>this.userMap.has(I));ie(this,"getUsersId",async()=>[...this.userMap.keys()]);ie(this,"getSelfInfo",async()=>await this.getUser(this.options.userId));ie(this,"updateIsPublished",async(I,D=!1)=>{const f=await this.getUser(I);f.isPublished=D});ie(this,"setUserUpdateStreams",async(I,D,f=!0)=>{const k=await this.getUser(I),i={microphoneCamera_audio:!1,microphoneCamera_video:!1,screenSharing_video:!1,screenSharing_audio:!1};i[D]=f,k.updateStreams=i});ie(this,"updateUserChannels",async(I,D=[],f)=>{const k=await this.getUser(I);f&&(D=[...k.channels,...D]),k.channels=D});ie(this,"updateUsertracks",async(I,D=[],f)=>{const k=await this.getUser(I);f&&(D=[...k.tracks,...D]),D=D.filter(({mid:$=""})=>$!==""),D=pt(D,["type"]),D=D.sort(($,C)=>$.type-C.type<0?-1:1);for(const $ of D)$.userId=I,$.mediaType=mediaType_keys[$.type],$.enabled===void 0&&($.enabled=!0);k.updateStreams={microphoneCamera_audio:!1,microphoneCamera_video:!1,screenSharing_video:!1,screenSharing_audio:!1};const i=dt(k.tracks,["mediaType","enabled","mid","msid","trackName"]),c=dt(D,["mediaType","enabled","mid","msid","trackName"]);{const $="microphoneCamera_audio",C=c.find(Z=>Z.mediaType===$),M=i.find(Z=>Z.mediaType===$),J=JSON.stringify(C)!==JSON.stringify(M);k.updateStreams[$]=J}{const $="microphoneCamera_video",C=c.find(Z=>Z.mediaType===$),M=i.find(Z=>Z.mediaType===$),J=JSON.stringify(C)!==JSON.stringify(M);k.updateStreams[$]=J}{const $="screenSharing_audio",C=c.find(Z=>Z.mediaType===$),M=i.find(Z=>Z.mediaType===$),J=JSON.stringify(C)!==JSON.stringify(M);k.updateStreams[$]=J}{const $="screenSharing_video",C=c.find(Z=>Z.mediaType===$),M=i.find(Z=>Z.mediaType===$),J=JSON.stringify(C)!==JSON.stringify(M);k.updateStreams[$]=J}k.tracks=D});ie(this,"updateUserCallAction",async(I,D=0)=>{const f=await this.getUser(I);f.callAction=D,f.callActionStr=D.toString(2).padStart(4,"0"),f.callActionMap=this.getCallActionMap(D)});ie(this,"updateUserBehaviors",async(I,D=0)=>{const f=await this.getUser(I);f.banBehavior=D,f.banBehaviorStr=D.toString(2).padStart(4,"0"),f.banBehaviorMap=this.getBanBehaviorMap(D)});ie(this,"updateUserNetwork",async(I,D={egress:5,ingress:5})=>{const f=await this.getUser(I);f.network=D});ie(this,"updateUserPermissions",async(I,D)=>{if(D){const f=await this.getUser(I);f.permissions=D}});ie(this,"updateUserBase",async I=>{const D=await this.getUser(I);D.isSelf=I===this.options.userId,D.updateAt=Date.now()});ie(this,"updateUsers",async I=>{for(const D of I){const{id:f,tracks:k,callAction:i,permissions:c,isPublished:$}=D;await this.updateUserBase(f),await this.updateIsPublished(f,$),await this.updateUserPermissions(f,c),await this.updateUsertracks(f,k,!0),await this.updateUserCallAction(f,i),await this.updateUserNetwork(f)}});ie(this,"emitNotifyUpdateUser",async I=>{const D=await this.getUsers([I]),[f]=this.usersFilter(D);this.cwsIns.emitNotify("onRoomUser",{code:200,data:f,desc:"user info is change."})});ie(this,"emitNotifyUpdateUsers",async()=>{const I=await this.getUsers(),D=this.usersFilter(I);this.cwsIns.emitNotify("onRoomUsers",{code:200,data:D,desc:"all users info is change."})})}}class RoomPeer extends RoomUsers{constructor(I){super(I);ie(this,"getPeerStatsTimer",0);ie(this,"reports",[]);ie(this,"candidates",[]);_e(this,Nt,[]);_e(this,Tt,0);ie(this,"peerNetwork",{inboundBytes:0,outboundBytes:0,lostRate:"0.00",roundTripTime:"0",jitter:"0"});ie(this,"initPeer",()=>{var I;clearTimeout(ce(this,Tt)),this.transceiverMap=new Map,(I=this.peerIns)==null||I.close(),this.peerIns=void 0,this.peerIns=new RTCPeerConnection({iceServers:[{urls:"stun:stun.cloudflare.com:3478"}],bundlePolicy:"max-bundle"}),this.peerIns.createDataChannel("scapegoat-channel"),ce(this,Gt).call(this),ce(this,Kt).call(this)});ie(this,"initSendChannel",(I="",D)=>{const f=this.peerIns.createDataChannel(I,{negotiated:!0,id:D});f.addEventListener("open",async k=>{console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->sendChannel: onopen",k),setInterval(()=>{const i=new Date().getTime();f.send(`Hi you! on: ${E(i)}`)},1e3)}),f.addEventListener("close",k=>{console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->sendChannel: close",k)}),f.addEventListener("message",k=>{console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->sendChannel: onmessage",k)}),this.sendChannel=f,this.options.debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: initSendChannel",{label:I,id:D,channel:f})});ie(this,"initReceiveChannel",(I="",D)=>{const f=this.peerIns.createDataChannel(I,{negotiated:!0,id:D});f.addEventListener("open",k=>{console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->receiveChannel: onopen",k)}),f.addEventListener("close",k=>{console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->receiveChannel: close",k)}),f.addEventListener("message",async k=>{console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->receiveChannel: onmessage",k)}),this.receiveChannel=f,this.options.debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: initReceiveChannel",{label:I,id:D,channel:f}),this.receiveChannel.send("hello")});ie(this,"replaceSenderStream",async(I=[],D)=>{const{userId:f}=this.options;I.length===0&&(I=mediaType_keys);for(const k of I){const i=this.transceiverMap.get(k);let c;if(i){const{sender:$}=i;D?c=this.getUserStream(f,k):c=this.getPhoneyStreams(k);const[C]=c.getTracks();C&&await $.replaceTrack(C)}}});ie(this,"getSenderTracks",async(I=[])=>{const D=[];for(const f of I){const k=this.transceiverMap.get(f);if(!k)continue;const{mid:i,sender:c}=k,{track:$}=c;if(!$)continue;const{id:C,enabled:M}=$,J=mediaType_keys.findIndex(z=>z===f),Z={type:J,enabled:M,trackName:`web-${J}-${C}`,location:"local",mid:i};D.push(Z)}return D});ie(this,"addSenders",async(I=[])=>{I.length===0&&(this.peerIns.addTransceiver("audio",{direction:"sendonly"}),this.peerIns.addTransceiver("video",{direction:"sendonly"}));const D=[];for(const f of I){if(this.transceiverMap.get(f))continue;const i=this.getPhoneyStreams(f),[c]=i.getTracks(),$=this.peerIns.addTransceiver(c,{direction:"sendonly"});this.transceiverMap.set(f,$),D.push(f)}if(I.length===0||D.length!==0){const f=await this.peerIns.createOffer();if(this.options.debug){const k=libExports$1.parse(f.sdp),i=dt(k.media,["mid","msid","type"]);console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#ffffff;","------->quickvo: setLocalDescription",{msidArr:i,sdpJson:k,description:f})}await this.peerIns.setLocalDescription(f)}return D});ie(this,"removeSenders",async(I=[])=>{I.length===0&&(I=mediaType_keys);for(const D of I)this.transceiverMap.has(D)&&this.transceiverMap.delete(D)});ie(this,"onSubscribeUserTracks",I=>{let D=0;return new Promise(async f=>{const k=[];for(const i of I){const{tracks:c=[]}=i;for(const $ of c){const{trackName:C,mid:M}=$,[J]=await this.getUserTrackByTrackName([C]);k.push({...J,mid:M})}}{let i=[];const c=async()=>{clearTimeout(D);const C=new Map;for(const J of i){const{userId:Z,mediaType:z}=J;if(!Z||!z)continue;C.has(Z)||C.set(Z,{userId:Z,tracks:[],updateStreams:{}});const re=C.get(Z);re.tracks.push(J),re.updateStreams[z]=!0}const M=[...C.values()];for(const J of M){const{userId:Z,tracks:z}=J;await this.updateUsertracks(Z,z,!0)}await this.emitNotifyUpdateUsersStreams(M),this.peerIns.removeEventListener("track",$);{const J=Array.from(k,X=>X.trackName),Z=Array.from(i,X=>X.trackName),z=J.filter(X=>!Z.includes(X));f({target:J,success:Z,fail:z})}},$=async C=>{const{streams:M,transceiver:J}=C,[Z]=M,{mid:z,receiver:X}=J,{track:re}=X,{id:oe}=re,ne=k.find(Q=>Q.mid===`${z}`);if(!ne)return;const{userId:de,mediaType:ye}=ne;if(!(!de||!ye)){{const Q={...ne,mid:z,msid:oe};i.push(Q)}this.options.debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#00b60f;",`------->quickvo: await subscribe ${i.length}/${k.length}`,{mediaType:ye,mid:z,userTrack:ne,e:C});{const Q=new Audio;if(Q.srcObject=Z,await this.initUserMediaStreamContext(de,ye,Z),ye==="microphoneCamera_audio"||ye==="screenSharing_audio"){const ae=this.getUserAudioMediaStreamContext(de,ye);ae==null||ae.setMute(!1)}}k.length===i.length&&c()}};this.peerIns.addEventListener("track",$),D=window.setTimeout(()=>{this.reportLogs("subscribe_error",`incomplete subscription. (${i.length}/${k.length})`),c()},5*1e3)}})});_e(this,Gt,()=>{const I=()=>{this.peerIns.close(),this.setRoomState("closed")};this.peerIns.oniceconnectionstatechange=async()=>{const D=this.peerIns.iceConnectionState;switch(clearTimeout(ce(this,Tt)),D){case"connected":{this.options.debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#00b60f;",`------->quickvo: connectionState:${D}`),this.setRoomState("connected");for(const f of ce(this,Nt))await f()}break;case"disconnected":this.options.debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#b64900;",`------->quickvo: connectionState:${D}`),Be(this,Tt,window.setTimeout(I,30*1e3));break;case"failed":this.options.debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#b60000;",`------->quickvo: connectionState:${D}`),this.setRoomState("failed");break;case"closed":this.options.debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#b60000;",`------->quickvo: connectionState:${D}`),I();break;default:this.options.debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#b64900;",`------->quickvo: connectionState:${D}`);break}}});ie(this,"iceConnected",()=>new Promise(I=>{if(this.peerIns.iceConnectionState==="connected")return I(!0);ce(this,Nt).push(I)}));ie(this,"closeUserTracks",async(I,D=[],f=!1)=>{const k=[];for(const C of D){const{trackName:M,msid:J}=C;k.push(M),J&&k.push(J)}const i=C=>k.includes(C),c=this.peerIns.getTransceivers();for(const C of c){const{mid:M,sender:J,receiver:Z}=C;J.track&&i(J.track.id)&&(C.stop(),this.options.debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;",`------->quickvo: transceiver.sender: ${M} is stop.`,C)),Z.track&&i(Z.track.id)&&(C.stop(),this.options.debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;",`------->quickvo: transceiver.receiver: ${M} is stop.`,C))}const $=await this.getUser(I);if($){for(const C of $.tracks){const{trackName:M,msid:J,userId:Z,mediaType:z}=C;!Z||!z||!i(M)||(this.removeUserMediaStreamContext(Z,z),J&&delete C.msid)}if(f){const C=$.tracks.filter(({trackName:M})=>!i(M));await this.updateUsertracks(I,C,!1)}}});ie(this,"createOffer",async()=>{const I=await this.peerIns.createOffer();if(this.options.debug){const D=libExports$1.parse(I.sdp),f=dt(D.media,["mid","msid","type"]);console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#ffffff;","------->quickvo: createOffer",{msidArr:f,sdpJson:D,description:I})}await this.peerIns.setLocalDescription(I)});ie(this,"createAnswer",async()=>{const I=await this.peerIns.createAnswer();if(this.options.debug){const D=libExports$1.parse(I.sdp),f=dt(D.media,["mid","msid","type"]);console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#ffffff;","------->quickvo: createAnswer",{msidArr:f,sdpJson:D,description:I})}await this.peerIns.setLocalDescription(I)});ie(this,"getSdp",()=>{var I;return(I=this.peerIns.localDescription)==null?void 0:I.sdp});ie(this,"setRemoteDescription",async I=>{if(this.options.debug){const D=libExports$1.parse(I.sdp),f=dt(D.media,["mid","msid","type"]);console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#ffffff;","------->quickvo: setRemoteDescription",{msidArr:f,sdpJson:D,description:I})}return await this.peerIns.setRemoteDescription(I),I});ie(this,"setCallStrategy",async(I,D=[])=>{D.length===0&&(D=mediaType_keys);let f="balanced";switch(I){case"qualityPriority":f="maintain-resolution";break;case"fluencyPriority":f="maintain-framerate";break;case"balancedDowngrade":f="balanced";break}const k=await this.getSelfInfo(),i=Array.from(k.tracks,({trackName:$})=>$),c=this.peerIns.getSenders();for(const $ of c){const{track:C}=$;if(!C||!i.includes(C.id))continue;const M=$.getParameters();$.setParameters({...M,degradationPreference:f})}});ie(this,"setRTCRtpSenderParameters",I=>{try{const D=this.peerIns.getSenders();for(const f of D){const k=f.getParameters();f.setParameters({...k,...I})}}catch(D){console.error("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: setRTCRtpSenderParameters is error.",D)}});ie(this,"getReportsByMid",async(I=[])=>I.length===0?this.reports:this.reports.filter(D=>I.includes(D.mid)));ie(this,"getRoomNetwork",()=>this.peerNetwork);ie(this,"getPeerNetwork",()=>this.peerNetwork);_e(this,Wt,async()=>{try{const I=await this.peerIns.getStats(),D=["inbound-rtp","remote-inbound-rtp","outbound-rtp","transport"],k=[...I.values()].filter(ae=>D.includes(ae.type));let i=0,c=0,$=0,C=0,M=0,J=0,Z=[],z=[];for(const ae of this.reports){const{packetsSent:he,packetsLost:se}=ae;he&&($+=he),se&&(C+=se)}this.reports=k;for(const ae of this.reports){const{bytesSent:he,bytesReceived:se,packetsSent:fe,packetsLost:me,roundTripTime:ee,jitter:le}=ae;he&&(c=he),se&&(i=se),fe&&(M+=fe),me&&(J+=me),ee&&Z.push((ee*100).toFixed(2)),le&&z.push(le.toFixed(2))}z.sort().reverse(),Z.sort().reverse();const X=M-$,re=J-C,oe=X===0?"0.00":(re/X).toFixed(2),[ne="0"]=Z,[de="0"]=z,ye={outboundBytes:c,inboundBytes:i,lostRate:oe,roundTripTime:ne,jitter:de};this.peerNetwork=ye;const Q=(ae,he,se)=>{const fe=Number(ae),me=Number(he),ee=Number(se);let le="0";return fe<.03&&me<100&&ee<.05?le="5":fe<.06&&me<160&&ee<.1?le="4":fe<.1&&me<250&&ee<.15?le="3":fe<.15&&me<400&&ee<.2?le="2":le="1",Number(le)};{const ae=Q(oe,ne,de),he=await this.getSelfInfo(),{network:se}=he,fe={egress:ae,ingress:ae};$t("updateUserNetwork",async()=>{if(await this.updateUserNetwork(this.options.userId,fe),JSON.stringify(se)!==JSON.stringify(fe)){this.emitNotifyUpdateUsers();const{userId:le,roomId:ve}=this.options;this.cwsIns.sendMessage({event:"networkQualityChange",data:{...fe,userId:le,roomId:ve}},!1)}},3*1e3)}}catch(I){console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: setNetQuality is err.",I)}});_e(this,Kt,()=>{const I=async()=>{this.peerIns.connectionState!=="connected"||!this.options.roomId||ce(this,Wt).call(this)};this.getPeerStatsTimer=window.setInterval(I,1*1e3)});ie(this,"stopGetPeerStats",()=>clearInterval(this.getPeerStatsTimer))}}Nt=new WeakMap,Tt=new WeakMap,Gt=new WeakMap,Wt=new WeakMap,Kt=new WeakMap;class RoomCalls extends RoomPeer{constructor(I){super(I);_e(this,Ot,0);_e(this,qt,[]);ie(this,"setLocalStream",(I,D)=>new Promise(async(f,k)=>{try{typeof I=="string"&&(I=[I]);for(const c of I)this.localStreamsActionMap.set(c,D);if(D){if(I.includes("microphoneCamera_audio")&&I.includes("microphoneCamera_video")?await this.initLocalStream("microphoneCamera"):I.includes("microphoneCamera_audio")?await this.initLocalStream("microphoneCamera_audio"):I.includes("microphoneCamera_video")?await this.initLocalStream("microphoneCamera_video"):I.includes("screenSharing_audio")&&I.includes("screenSharing_video")?await this.initLocalStream("screenSharing"):I.includes("screenSharing_audio")&&!I.includes("screenSharing_video")?await this.initLocalStream("screenSharing_audio"):I.includes("screenSharing_video")&&!I.includes("screenSharing_audio")&&await this.initLocalStream("screenSharing_video"),I.includes("screenSharing_audio")){const c=await this.getLocalStream("screenSharing_audio");if(c){const $=c.getTracks();for(const C of $)C.onended=()=>this.stopPublish(["screenSharing_audio","screenSharing_video"])}}if(I.includes("screenSharing_video")){const c=await this.getLocalStream("screenSharing_video");if(c){const $=c.getTracks();for(const C of $)C.onended=()=>this.stopPublish(["screenSharing_audio","screenSharing_video"])}}}else await this.stopLocalStreams(I);const i=await this.getLocalStreams(I);await this.cwsIns.emitNotify("onLocalStream",{code:200,data:i,desc:"local stream is change."}),f(i)}catch(i){k(i)}}));ie(this,"setMediaDeviceKind",(I,D)=>new Promise(async(f,k)=>{this.setDeviceKind(I,D);const i=await this.getSelfInfo(),{id:c,tracks:$=[],callActionMap:C}=i,M=[],J=async Z=>{const z=this.localStreamsActionMap.get(Z),X=$.find(oe=>oe.mediaType===Z),re=C[Z];if(z){M.push(Z),await this.stopLocalStreams([Z]);try{await this.initLocalStream(Z)}catch(oe){this.options.debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: initLocalStream is error.",oe),await this.inactiveTracks([Z],!1),k(oe)}}if(X){const oe=await this.getLocalStream(Z);oe&&(await this.initUserMediaStreamContext(c,Z,oe),re&&await this.replaceSenderStream([Z],!0))}{const oe=await this.getLocalStreams(M);await this.cwsIns.emitNotify("onLocalStream",{code:200,data:oe,desc:"local stream is change."}),await this.emitNotifyUpdateUsers(),f(!0)}};I==="audioinput"&&await J("microphoneCamera_audio"),I==="videoinput"&&await J("microphoneCamera_video"),I==="audiooutput"&&(await this.changeAudiooutput(),f(!0))}));ie(this,"changeScreenSharing",async I=>{const D=await this.getSelfInfo(),{tracks:f=[],callActionMap:k}=D;try{await this.setLocalStream(I,!0);for(const i of I)f.find($=>$.mediaType===i&&k[i])&&await this.replaceSenderStream([i],!0)}catch(i){this.options.debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: changeScreenSharing is error.",i)}});ie(this,"createSession",()=>new Promise(async(I,D)=>{try{await this.addSenders(),await this.cwsIns.sendMessage({event:"connectCF",data:{sdp:this.getSdp()}}).then(async f=>{const{code:k=0,desc:i,data:c}=f;if(k!==200)throw new Error(i);const{remoteSdp:$}=c;if(this.options.debug){const C=libExports$1.parse($),M=dt(C.media,["mid","msid","type"]);console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#ffffff;","------->quickvo: setLocalDescription",{msidArr:M,sdpJson:C})}await this.setRemoteDescription({type:"answer",sdp:$}),await this.iceConnected().then(()=>{I(!0)})})}catch(f){D(f)}}));ie(this,"earlyConnect",(I=[])=>(this.isEarly=!0,ce(this,Ut).call(this).then(async()=>{await this.createSession(),I.length===0&&(I=["microphoneCamera_audio","microphoneCamera_video"]),await ce(this,Mt).call(this,I)})));ie(this,"joinRoom",async I=>new Promise(async(D,f)=>{try{this.setOptions(I),this.isEarly===!1&&await ce(this,Ut).call(this),await ce(this,Xt).call(this),this.clearUsers();const{roomId:k,userId:i,callType:c,sdkToken:$}=this.options;await this.cwsIns.sendMessage({event:this.isEarly?"joinRoomEx":"joinRoom",data:{callType:c,roomId:k,user:{id:i,tracks:[],callAction:0},token:$},version:2}).then(async C=>{const{code:M=0,desc:J="服务器繁忙",data:Z}=C;if(M!==200)throw new Error(J);const{roomId:z="",roomUsers:X=[]}=Z;if(z!==k)return f("加入的房间不匹配");this.isInRoom=!0,this.initHeartbeat(),this.isEarly===!1&&await this.createSession(),await this.updateUsers(X);const re=[];for(const ne of X){const{id:de,channelCache:ye}=ne,{channels:Q=[]}=ye;await this.updateUserBehaviors(de,ne.behavior),await this.updateUserChannels(de,Q,!1),Q.length!==0&&re.push({userId:de,channels:Q})}await this.subChannel(re),await this.emitNotifyUpdateUsers();const oe=await this.getUsers();D(oe)})}catch(k){f(k)}}));ie(this,"quitRoom",()=>new Promise(async I=>{const{roomId:D,userId:f}=this.options,k={roomId:D,user:{id:f}};try{this.isInRoom=!1,this.asyncQueue.clear(),clearInterval(ce(this,Ot)),await this.stopLocalStreams(),this.stopSubscribe(),this.stopGetPeerStats(),this.clearUsers(),this.clearUserStreams(),this.cwsIns.clearEvents(),this.setRoomState("ready")}catch(i){this.reportLogs("quit_room_error",i.message||i)}await new Promise(i=>setTimeout(()=>i(!0),300)),await this.cwsIns.sendMessage({event:"quitRoom",data:k}),I(!0)}));ie(this,"quitRoomEx",()=>new Promise(async I=>{const{roomId:D,userId:f}=this.options,k={roomId:D,user:{id:f}};try{this.isInRoom=!1,this.asyncQueue.clear(),this.stopHeartbeat(),this.initHeartbeat(),await this.stopLocalStreams(),this.stopSubscribe(),this.stopGetPeerStats(),this.clearUsers(),this.clearUserStreams()}catch(i){this.reportLogs("quit_room_error",i.message||i)}await new Promise(i=>setTimeout(()=>i(!0),300)),this.cwsIns.sendMessage({event:"quitRoomEx",data:k}),I(!0)}));ie(this,"syncRoomInfo",()=>new Promise(async(I,D)=>{const{userId:f}=this.options,k=await this.getUser(f),{id:i=f,callAction:c=0}=k;await this.cwsIns.sendMessage({event:"syncRoomInfo",data:{user:{id:i,callAction:c}}}).then(async $=>{const{code:C=0,desc:M}=$;if(C!==200)throw new Error(M);const J=$.data.users;this.clearUsers(),await this.updateUsers(J),await this.updateUsertracks(k.id,k.tracks,!1);{const Z=await this.getUsers();I(Z)}}).catch($=>D($))}));ie(this,"checkInRoom",()=>new Promise(async I=>{const{userId:D}=this.options,f=await this.getUser(D),{id:k=D,callAction:i=0}=f;await this.cwsIns.sendMessage({event:"syncRoomInfo",data:{user:{id:k,callAction:i}}}).then(async c=>{var Z;const{code:$=0,desc:C}=c;if($!==200)throw new Error(C);const M=c.data.users;return(Z=c.data)!=null&&Z.isActive||M.find(z=>z.id===this.options.userId)?I(!0):I(!1)}).catch(()=>I(!1))}));ie(this,"publish",I=>{const D=()=>new Promise(async(f,k)=>{try{{const Z=await this.getSelfInfo(),{banBehaviorMap:z}=Z;let X=!0;for(const re of I)if(z[re]){X=!1;break}if(X===!1)return k("publish is error: prohibited by administrator.")}try{await this.setLocalStream(I,!0)}catch(Z){this.options.debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: setLocalStream is error.",Z)}const i=await this.getSelfInfo(),c=[];for(const Z of I){{const z=this.getPhoneyStreams(Z);await this.initUserMediaStreamContext(i.id,Z,z)}{const z=await this.getLocalStream(Z);z?await this.initUserMediaStreamContext(i.id,Z,z):c.push(Z)}}const $=I.filter(Z=>!c.includes(Z)||["microphoneCamera_audio","microphoneCamera_video"].includes(Z));await this.replaceSenderStream(I,!1),await ce(this,Mt).call(this,$);const C=await this.getSenderTracks($),M=[...i.tracks,...C];await this.updateUsertracks(i.id,M,!0),c.length!==0&&await this.inactiveTracks(c,!1),$.length!==0&&await this.replaceSenderStream($,!0);const J=await this.getCallAction(M);await ce(this,It).call(this,J),await new Promise(Z=>setTimeout(()=>Z(!0),230)),ce(this,Yt).call(this,I);{await this.emitNotifyUpdateUsers();const Z=await this.getSelfInfo();f(Z)}}catch(i){this.reportLogs("publish_error",i.message||i),k(i)}});return this.asyncQueue.add(D,{describe:"publish"})});ie(this,"stopPublish",(I=[])=>{const D=()=>new Promise(async(f,k)=>{try{const i=await this.getSelfInfo();I.length===0&&(I=mediaType_keys);const c=i.tracks.filter(({mediaType:C})=>C&&I.includes(C)),$=async()=>{this.initMediaPhoneyStreams(I);const C=await this.getSelfInfo();await this.emitNotifyUpdateUsers(),f(C)};if(c.length===0)return $();await this.replaceSenderStream(I,!0),await this.closeUserTracks(i.id,c,!0),await this.removeSenders(I);{const C=await this.getCallAction(i.tracks);await ce(this,It).call(this,C)}await this.createOffer(),await this.cwsIns.sendMessage({event:"closeTrack",data:{roomId:this.options.roomId,sdp:this.getSdp(),tracks:c}}).then(async C=>{const{code:M=0,data:J,desc:Z}=C;if(M!==200)throw new Error(Z);const{remoteSdp:z}=J;await this.setRemoteDescription({type:"answer",sdp:z}),$()})}catch(i){this.reportLogs("close_track_error",i.message||i),k(i)}});return this.asyncQueue.add(D,{describe:"stopPublish"})});ie(this,"subscribe",(I=[],D=3)=>{const f=()=>new Promise(async(k,i)=>{try{await this.iceConnected();const c=await this.getUsers();let $=[];for(const Z of c){const{isSelf:z,tracks:X=[]}=Z;if(!z){const re=X.filter(({trackName:oe,mid:ne=""})=>ne!==""&&(I.includes(oe)||I.length===0));re.length!==0&&$.push({...Z,tracks:re})}}const C=async(Z={})=>{const z=Array.from($,({id:re})=>re),X=await this.getUsers(z);await this.emitNotifyUpdateUsers(),k({users:X,detail:Z})};if($.length===0)return C();const M=[];for(const Z of $){const{id:z,tracks:X}=Z,re=dt(X,["type","trackName"]),oe={id:z,tracks:re};M.push(oe)}const J=async()=>{await this.cwsIns.sendMessage({event:"subscribe",data:{users:M}}).then(async Z=>{const{code:z=0,data:X,desc:re}=Z;if(z===2017&&re.includes("renegotiation is expected before pulling or pushing tracks")&&await this.renegotiate(),z!==200){if(D>=0)return D--,await J();throw new Error(re)}const{remoteSdp:oe,users:ne=[]}=X;this.onSubscribeUserTracks(ne).then(async de=>{await this.renegotiate().then(()=>C(de))}).catch(de=>{throw new Error(de)}),await this.setRemoteDescription({type:"offer",sdp:oe})})};await J()}catch(c){this.reportLogs("subscribe_error",c.message||c),i(c)}});return this.asyncQueue.add(f,{describe:"subscribe"})});ie(this,"renegotiate",()=>new Promise(async(I,D)=>{try{await this.createAnswer(),await this.cwsIns.sendMessage({event:"renegotiate",data:{sdp:this.getSdp()}}).then(f=>{const{code:k=0,desc:i}=f;if(k!==200)throw new Error(i);I(f)})}catch(f){D(f)}}));ie(this,"stopSubscribe",(I=[])=>{const D=()=>new Promise(async(f,k)=>{try{const i=await this.getUsers(),c=[];for(const C of i){const{tracks:M=[]}=C;for(const J of M){const{type:Z,mid:z,trackName:X,mediaType:re,msid:oe}=J;if(!(!re||!oe)&&(I.length===0||I.includes(X))){const ne={type:Z,mid:z,trackName:oe};c.push(ne),await this.closeUserTracks(C.id,[J])}}}const $=async()=>{await this.emitNotifyUpdateUsers(),f(!0)};if(c.length===0)return $();await this.createOffer(),await this.cwsIns.sendMessage({event:"closeTrack",data:{roomId:this.options.roomId,sdp:this.getSdp(),tracks:c}}).then(async C=>{const{remoteSdp:M}=C.data;await this.setRemoteDescription({type:"answer",sdp:M})}),$()}catch(i){this.reportLogs("close_track_error",i.message||i),k(i)}});return this.asyncQueue.add(D,{describe:"stopSubscribe"})});ie(this,"inactiveTracks",async(I,D)=>new Promise(async f=>{const k=await this.getSelfInfo();if(!k||!k.id)return f(!0);const{tracks:i=[]}=k,c=[...i];for(let C of c){const{mediaType:M}=C;if(M&&I.includes(M)){C.enabled=D;const J=await this.getLocalStream(M);if(!J)continue;const Z=J.getTracks();for(const z of Z)z.enabled=D}}await this.replaceSenderStream(I,D);const $=await this.getCallAction(c);await ce(this,It).call(this,$),await this.emitNotifyUpdateUsers(),f(!0)}));ie(this,"setBanBehaviors",I=>new Promise(async(D,f)=>{try{const{roomId:k}=this.options,i=[];for(const c of I){const{id:$,banBehaviors:C}=c,M=Object.keys(C);if(M.length===0)continue;const J=[];for(const z of M){const X=mediaType_keys.findIndex(ne=>ne===z),re=C[z],oe={type:X,behavior:re};J.push(oe)}const Z={id:$,behaviors:J};i.push(Z)}await this.cwsIns.sendMessage({event:"preventUsersBehavior",data:{roomId:k,users:i}}).then(async c=>{const{code:$=0,desc:C}=c;if($!==200)return f(C);D(c)})}catch(k){f(k)}}));ie(this,"pubChannel",()=>new Promise(async(I,D)=>{const k=[{dataChannelName:"web-channe"}];await this.cwsIns.sendMessage({event:"pubChannel",data:{channels:k}}).then(async i=>{const{code:c=0,data:$,desc:C}=i;if(c!==200)throw new Error(C);const{channels:M=[]}=$;for(const J of M){const{channels:Z=[]}=J;for(const z of Z){const{dataChannelName:X,id:re}=z;this.initSendChannel(X,re)}}I(!0)}).catch(i=>{D(i)})}));ie(this,"subChannel",(I=[])=>new Promise(async D=>{if(I.length===0)return D(!0);await this.cwsIns.sendMessage({event:"subChannel",data:{channels:I}}).then(async f=>{const{code:k=0,data:i,desc:c}=f;if(k!==200)throw new Error(c);const{channels:$=[]}=i;for(const C of $){const{channels:M=[]}=C;for(const J of M){const{dataChannelName:Z,id:z}=J;this.initReceiveChannel(Z,z)}}})}));ie(this,"debugger",()=>new Promise(async(I,D)=>{await this.cwsIns.sendMessage({event:"debugger"},!1).then(async f=>{if(f.code!==200)return D(f.desc);I(!0)}).catch(f=>{D(f)})}));ie(this,"shutdown",()=>new Promise(async(I,D)=>{await this.cwsIns.sendMessage({event:"shutdown"},!1).then(async f=>{if(f.code!==200)return D(f.desc);I(!0)}).catch(f=>{D(f)})}));ie(this,"initHeartbeat",()=>{this.stopHeartbeat();const I=()=>this.cwsIns.sendMessage({event:this.isInRoom?"heartbeat":"heartbeatEx"},!1),D=this.isInRoom?5*1e3:30*1e3;Be(this,Ot,window.setInterval(I,D)),I()});ie(this,"stopHeartbeat",()=>{clearInterval(ce(this,Ot))});_e(this,Yt,async I=>new Promise(async(D,f)=>{try{const{roomId:k}=this.options;if(!k)return;const{id:i,tracks:c=[]}=await this.getSelfInfo(),$=c.filter(C=>C.mediaType&&I.includes(C.mediaType));if($.length===0)return;await this.cwsIns.sendMessage({event:"pubNotify",data:{roomId:k,user:{id:i,tracks:$}}}),D(!0)}catch(k){f(k)}}));_e(this,It,async I=>new Promise(async(D,f)=>{const{roomId:k,userId:i}=this.options,c={roomId:k,user:{id:i,callAction:I}};await this.cwsIns.sendMessage({event:"updateCall",data:c}).then(async $=>{const{code:C=0}=$;if(C!==200)return f($);await this.updateUserCallAction(i,I),D(I)}).catch($=>f($))}));_e(this,Ut,()=>new Promise(async(I,D)=>{try{if(["connecting","connected"].includes(this.cwsIns.state))return I(!0);this.cwsIns.clearEvents(),this.initPeer();const{appid:f,roomId:k,userId:i}=this.options;if(!f)return D("quickvo: createWs is error. You must first use QuickVO.setOptions to set the appid.");const c={c:f,r:k,v:this.sdk_service_version};if(this.isEarly){const C=xt();c.i=C,this.setOptions({earlyId:C})}else c.b=i;this.options.debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: createWs",c);const $=btoa(encodeURI(JSON.stringify(c)));await this.cwsIns.connect($),this.initHeartbeat();for(const C of ce(this,qt))await C();I(!0)}catch(f){console.error("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: createWs is error.",f),this.reportLogs("ws_c_timeout",f.message||f),D(f)}}));_e(this,Mt,async I=>new Promise(async(D,f)=>{try{await this.iceConnected();const k=await this.addSenders(I),i=await this.getSenderTracks(k);if(i.length===0)return D(!0);await this.cwsIns.sendMessage({event:"publish",data:{sdp:this.getSdp(),tracks:i,callAction:0}}).then(async c=>{const{code:$=0,desc:C,data:M}=c;if($!==200)throw new Error(C);const{remoteSdp:J}=M;await this.setRemoteDescription({type:"answer",sdp:J}),D(!0)})}catch(k){this.reportLogs("publish_error",k.message||k),await this.removeSenders(I),f(k)}}));_e(this,Xt,()=>new Promise(I=>{if(this.cwsIns.state==="connected")return I(!0);ce(this,qt).push(I)}))}}Ot=new WeakMap,qt=new WeakMap,Yt=new WeakMap,It=new WeakMap,Ut=new WeakMap,Mt=new WeakMap,Xt=new WeakMap;class Room extends RoomCalls{constructor(N){super(N)}}class QuickVO extends Room{constructor(I){super(I);_e(this,kt,new Map);ie(this,"reconstruct",async()=>{if(this.cwsIns.state!=="connected")return;this.setRoomState("ready"),this.initMediaPhoneyStreams(),this.asyncQueue.clear(),this.initPeer(),await this.createSession();const I=[],D=[],f=await this.getUsers();for(const k of f){const{isSelf:i,callActionMap:c,tracks:$=[]}=k;if(i)for(const C of mediaType_keys)c[C]&&I.push(C);for(const C of $)C.msid&&D.push(C.trackName)}await this.syncRoomInfo(),await this.publish(I),await this.subscribe(D)});_e(this,Qt,()=>{{const I=async D=>{const{state:f}=D.data;if(f==="closed"){const{roomId:k,userId:i}=this.options,c={roomId:k,user:{id:i}};this.stopHeartbeat(),this.cwsIns.sendMessage({event:"quitRoom",data:c}),this.cwsIns.close(),this.reportLogs("webrtc_c_timeout","webrtc state is closed.")}};this.cwsIns.addNotify({event:"onRoomState",callback:I},!0)}{const I=async D=>{const{qualities:f=[]}=D.data,[k]=f;if(!(k&&k.userId===this.options.userId&&f.length===1)){for(const i of f){const{userId:c,egress:$,ingress:C}=i;this.checkUserInRoom(c)&&await this.updateUserNetwork(c,{egress:$,ingress:C})}await this.emitNotifyUpdateUsers()}};this.cwsIns.addNotify({event:"onNetQuality",callback:I},!0)}{const I=async D=>{const f=D.data.user;await this.updateUsers([f]),await this.updateUsertracks(f.id,f.track,!1),await this.updateUserBehaviors(f.id,f.behavior),await this.emitNotifyUpdateUsers()};this.cwsIns.addNotify({event:"onJoinRoom",callback:I},!0)}{const I=async D=>{await this.removeUsers([D.data.user.id]),await this.emitNotifyUpdateUsers()};this.cwsIns.addNotify({event:"onQuitRoom",callback:I},!0)}{const I=async D=>{const{user:f}=D.data,{id:k,tracks:i=[],callAction:c=0}=f;if(await this.updateUserCallAction(k,c),await this.updateUserPermissions(k,3),await this.updateUsertracks(k,i,!0),this.options.newPublishAutoSubscribe){const $=this.getTrackNamesFormTracks(i);await this.subscribe($)}else await this.emitNotifyUpdateUsers()};this.cwsIns.addNotify({event:"onPublish",callback:I},!0)}{const I=async D=>{const f=[D.data];this.subChannel(f)};this.cwsIns.addNotify({event:"onDataChannelPublish",callback:I},!0)}{const I=async D=>{const{id:f,tracks:k}=D.data.user;f!==this.options.userId&&(await this.closeUserTracks(f,k,!0),await this.emitNotifyUpdateUsers())};this.cwsIns.addNotify({event:"onCloseTrack",callback:I},!0)}{const I=async D=>{const{id:f,callAction:k}=D.data.user;this.checkUserInRoom(f)&&(await this.updateUserCallAction(f,k),this.emitNotifyUpdateUsers())};this.cwsIns.addNotify({event:"onUpdateCall",callback:I},!0)}{const I=async D=>{const{user:f}=D.data,{id:k,permissions:i=1}=f;i===1?await this.removeUsers([k]):i===3&&await this.updateUsers([f]),await this.emitNotifyUpdateUsers()};this.cwsIns.addNotify({event:"onUpdatePermissions",callback:I},!0)}{const I=async D=>{const{users:f}=D.data;for(const k of f){const{id:i,behavior:c}=k;await this.updateUserBehaviors(i,c)}await this.emitNotifyUpdateUsers()};this.cwsIns.addNotify({event:"onUpdateBehavior",callback:I},!0)}this.cwsIns.addNotify({event:"onTokenExpired",callback:async I=>this.destroy()},!0),this.cwsIns.addNotify({event:"destroyRoom",callback:this.destroy},!0)});ie(this,"addNotify",I=>this.cwsIns.addNotify(I));_e(this,en,()=>{});_e(this,tn,()=>{this.cwsIns.onReconnectSuccess=async()=>{if(this.isInRoom&&await this.checkInRoom())return await this.reconstruct()}});_e(this,nn,async()=>{this.cwsIns.onReconnectStop=async()=>{this.setRoomState("closed")}});ie(this,"addRequestAnimationFrame",async(I,D)=>{{const k=ce(this,kt).get(I);k&&cancelAnimationFrame(k)}const f=(k=Date.now())=>{D(k);const i=requestAnimationFrame(f);ce(this,kt).set(I,i)};f()});ie(this,"clearRequestAnimationFrame",async(I=[])=>{I.length===0&&(I=[...ce(this,kt).keys()]);const D=[];for(const f of I){const k=ce(this,kt).get(f);k&&(cancelAnimationFrame(k),D.push(k))}return D});ie(this,"destroy",async()=>{this.options.debug&&console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m","color:#0097ff;","------->quickvo: 销毁SDK"),this.stopLocalStreams(),this.stopGetPeerStats(),this.quitRoom(),this.clearUsers(),this.clearUserStreams(),this.stopHeartbeat(),await new Promise(I=>setTimeout(()=>I(!0),300)),this.cwsIns.emitNotify("onDestroy",{code:200,data:{},desc:"sdk is destroy."}),this.cwsIns.clearEvents(),this.cwsIns.close()});ce(this,en).call(this),ce(this,tn).call(this),ce(this,nn).call(this),ce(this,Qt).call(this)}}kt=new WeakMap,Qt=new WeakMap,en=new WeakMap,tn=new WeakMap,nn=new WeakMap,exports.QuickVO=QuickVO,Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"})});
|