@vinay.kumar.ha/videosdk-ui-toolkit 2.3.5-1.5 → 2.3.5-1.7

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.
Files changed (54) hide show
  1. package/dist/lib/annoter.min.js +3 -0
  2. package/dist/lib/audio.encode.wasm +0 -0
  3. package/dist/lib/audio.light.simd.wasm +0 -0
  4. package/dist/lib/audio.simd.wasm +0 -0
  5. package/dist/lib/audio_light_simd.min.js +2 -0
  6. package/dist/lib/audio_simd.min.js +2 -0
  7. package/dist/lib/graphics.min.js +2 -0
  8. package/dist/lib/js_audio_level_worklet_process.min.js +2 -0
  9. package/dist/lib/js_audio_level_worklet_process_light.min.js +2 -0
  10. package/dist/lib/js_audio_process.min.js +2 -0
  11. package/dist/lib/js_audio_processor_worklet.min.js +2 -0
  12. package/dist/lib/js_audio_worklet.min.js +2 -0
  13. package/dist/lib/js_audio_worklet_light_simd.min.js +2 -0
  14. package/dist/lib/js_audio_worklet_process.min.js +2 -0
  15. package/dist/lib/js_audio_worklet_simd.min.js +2 -0
  16. package/dist/lib/js_media.min.js +3 -0
  17. package/dist/lib/js_sharing_audio_worklet.min.js +2 -0
  18. package/dist/lib/manifest.json +338 -0
  19. package/dist/lib/mesh_thread.min.js +2 -0
  20. package/dist/lib/net.wasm +0 -0
  21. package/dist/lib/net_thread.min.js +2 -0
  22. package/dist/lib/pako.min.js +2 -0
  23. package/dist/lib/qrscanner.min.js +2 -0
  24. package/dist/lib/share_processor.min.js +2 -0
  25. package/dist/lib/sharing_m.min.js +3 -0
  26. package/dist/lib/sharing_mtsimd.min.js +3 -0
  27. package/dist/lib/sharing_s.min.js +2 -0
  28. package/dist/lib/sharing_simd.min.js +2 -0
  29. package/dist/lib/tp.min.js +2 -0
  30. package/dist/lib/tp.wasm +0 -0
  31. package/dist/lib/vb-resource/dualModel.bin +0 -0
  32. package/dist/lib/vb-resource/tf.min.js +18 -0
  33. package/dist/lib/vb.min.js +2 -0
  34. package/dist/lib/vb_worker.min.js +2 -0
  35. package/dist/lib/video.decode.js +1 -0
  36. package/dist/lib/video.decode.wasm +0 -0
  37. package/dist/lib/video.mt.js +1 -0
  38. package/dist/lib/video.mt.wasm +0 -0
  39. package/dist/lib/video.mtsimd.js +1 -0
  40. package/dist/lib/video.mtsimd.wasm +0 -0
  41. package/dist/lib/video.simd.js +1 -0
  42. package/dist/lib/video.simd.wasm +0 -0
  43. package/dist/lib/video_m.min.js +3 -0
  44. package/dist/lib/video_mtsimd.min.js +3 -0
  45. package/dist/lib/video_processor.min.js +2 -0
  46. package/dist/lib/video_s.min.js +2 -0
  47. package/dist/lib/video_share_mtsimd.min.js +3 -0
  48. package/dist/lib/video_simd.min.js +2 -0
  49. package/dist/lib/wasm_ssrc_stream_service_dynmod.min.js +2 -0
  50. package/dist/lib/webgpu_renderer_dynmod.min.js +2 -0
  51. package/dist/lib/wmsc.min.js +2 -0
  52. package/dist/videosdk-ui-toolkit.min.esm.js +1832 -1832
  53. package/dist/videosdk-ui-toolkit.min.umd.js +82 -82
  54. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ (()=>{var t={7201:(t,e,r)=>{t.exports=r(3042)},1829:(t,e,r)=>{"use strict";var n=r(2222);t.exports=n},6040:(t,e,r)=>{"use strict";var n=r(8251);t.exports=n},7264:(t,e,r)=>{"use strict";var n=r(4139);r(768),r(8549),r(7152),r(1372),t.exports=n},9692:(t,e,r)=>{"use strict";var n=r(7045);t.exports=n},5663:(t,e,r)=>{"use strict";var n=r(70);t.exports=n},6823:(t,e,r)=>{"use strict";var n=r(8280),s=r(2017),i=String.prototype;t.exports=function(t){var e=t.replaceAll;return"string"==typeof t||t===i||n(i,t)&&e===i.replaceAll?s:e}},1926:(t,e,r)=>{"use strict";r(6750);var n=r(2046).Object,s=t.exports=function(t,e,r){return n.defineProperty(t,e,r)};n.defineProperty.sham&&(s.sham=!0)},2017:(t,e,r)=>{"use strict";r(1398),r(1995),r(929);var n=r(1747);t.exports=n("String","replaceAll")},3842:(t,e,r)=>{"use strict";r(8545),r(3643),r(4452),r(3997),r(5084),r(2596),r(5721),r(4954),r(4123),r(3377),r(2230),r(5344),r(1660),r(4610),r(3669),r(4810),r(3325),r(7024),r(8172),r(5205);var n=r(2046);t.exports=n.Symbol},1730:(t,e,r)=>{"use strict";r(9363),r(3643),r(7057),r(4954);var n=r(560);t.exports=n.f("iterator")},1661:(t,e,r)=>{"use strict";r(8537),r(3669);var n=r(560);t.exports=n.f("toPrimitive")},3042:(t,e,r)=>{"use strict";t.exports=r(9604)},9604:(t,e,r)=>{"use strict";r(6038);var n=r(1829);t.exports=n},4997:(t,e,r)=>{"use strict";var n=r(6040);t.exports=n},2321:(t,e,r)=>{"use strict";var n=r(7264);r(3939),r(1785),r(1697),r(4664),r(3422),r(36),r(8703),r(6878),r(9671),r(359),t.exports=n},2231:(t,e,r)=>{"use strict";var n=r(9692);t.exports=n},9280:(t,e,r)=>{"use strict";var n=r(5663);t.exports=n},2159:(t,e,r)=>{"use strict";var n=r(2250),s=r(4640),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(s(t)+" is not a function")}},43:(t,e,r)=>{"use strict";var n=r(4018),s=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i("Can't set "+s(t)+" as a prototype")}},2156:t=>{"use strict";t.exports=function(){}},6624:(t,e,r)=>{"use strict";var n=r(6285),s=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(s(t)+" is not an object")}},4436:(t,e,r)=>{"use strict";var n=r(7374),s=r(4849),i=r(575),o=function(t){return function(e,r,o){var a=n(e),u=i(a);if(0===u)return!t&&-1;var c,l=s(o,u);if(t&&r!=r){for(;u>l;)if((c=a[l++])!=c)return!0}else for(;u>l;l++)if((t||l in a)&&a[l]===r)return t||l||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},726:(t,e,r)=>{"use strict";var n=r(8311),s=r(1907),i=r(6946),o=r(9298),a=r(575),u=r(6968),c=s([].push),l=function(t){var e=1===t,r=2===t,s=3===t,l=4===t,_=6===t,h=7===t,d=5===t||_;return function(f,p,m,g){for(var v,y,b=o(f),w=i(b),M=a(w),E=n(p,m),S=0,A=g||u,T=e?A(f,M):r||h?A(f,0):void 0;M>S;S++)if((d||S in w)&&(y=E(v=w[S],S,b),t))if(e)T[S]=y;else if(y)switch(t){case 3:return!0;case 5:return v;case 6:return S;case 2:c(T,v)}else switch(t){case 4:return!1;case 7:c(T,v)}return _?-1:s||l?l:T}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},7171:(t,e,r)=>{"use strict";var n=r(8828),s=r(6264),i=r(798),o=s("species");t.exports=function(t){return i>=51||!n((function(){var e=[];return(e.constructor={})[o]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},3427:(t,e,r)=>{"use strict";var n=r(1907);t.exports=n([].slice)},4010:(t,e,r)=>{"use strict";var n=r(1793),s=r(5468),i=r(6285),o=r(6264)("species"),a=Array;t.exports=function(t){var e;return n(t)&&(e=t.constructor,(s(e)&&(e===a||n(e.prototype))||i(e)&&null===(e=e[o]))&&(e=void 0)),void 0===e?a:e}},6968:(t,e,r)=>{"use strict";var n=r(4010);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},5807:(t,e,r)=>{"use strict";var n=r(1907),s=n({}.toString),i=n("".slice);t.exports=function(t){return i(s(t),8,-1)}},3948:(t,e,r)=>{"use strict";var n=r(2623),s=r(2250),i=r(5807),o=r(6264)("toStringTag"),a=Object,u="Arguments"===i(function(){return arguments}());t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=a(t),o))?r:u?i(e):"Object"===(n=i(e))&&s(e.callee)?"Arguments":n}},7382:(t,e,r)=>{"use strict";var n=r(8828);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},9550:t=>{"use strict";t.exports=function(t,e){return{value:t,done:e}}},1626:(t,e,r)=>{"use strict";var n=r(9447),s=r(4284),i=r(5817);t.exports=n?function(t,e,r){return s.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},5817:t=>{"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},5543:(t,e,r)=>{"use strict";var n=r(9447),s=r(4284),i=r(5817);t.exports=function(t,e,r){n?s.f(t,e,i(0,r)):t[e]=r}},9251:(t,e,r)=>{"use strict";var n=r(4284);t.exports=function(t,e,r){return n.f(t,e,r)}},8055:(t,e,r)=>{"use strict";var n=r(1626);t.exports=function(t,e,r,s){return s&&s.enumerable?t[e]=r:n(t,e,r),t}},2532:(t,e,r)=>{"use strict";var n=r(5951),s=Object.defineProperty;t.exports=function(t,e){try{s(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},9447:(t,e,r)=>{"use strict";var n=r(8828);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9552:(t,e,r)=>{"use strict";var n=r(5951),s=r(6285),i=n.document,o=s(i)&&s(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},8024:t=>{"use strict";var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},9287:t=>{"use strict";t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},376:t=>{"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6794:(t,e,r)=>{"use strict";var n=r(5951).navigator,s=n&&n.userAgent;t.exports=s?String(s):""},798:(t,e,r)=>{"use strict";var n,s,i=r(5951),o=r(6794),a=i.process,u=i.Deno,c=a&&a.versions||u&&u.version,l=c&&c.v8;l&&(s=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(s=+n[1]),t.exports=s},1091:(t,e,r)=>{"use strict";var n=r(5951),s=r(6024),i=r(2361),o=r(2250),a=r(3846).f,u=r(7463),c=r(2046),l=r(8311),_=r(1626),h=r(9724);r(6128);var d=function(t){var e=function(r,n,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,i)}return s(t,this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var r,s,f,p,m,g,v,y,b,w=t.target,M=t.global,E=t.stat,S=t.proto,A=M?n:E?n[w]:n[w]&&n[w].prototype,T=M?c:c[w]||_(c,w,{})[w],P=T.prototype;for(p in e)s=!(r=u(M?p:w+(E?".":"#")+p,t.forced))&&A&&h(A,p),g=T[p],s&&(v=t.dontCallGetSet?(b=a(A,p))&&b.value:A[p]),m=s&&v?v:e[p],(r||S||typeof g!=typeof m)&&(y=t.bind&&s?l(m,n):t.wrap&&s?d(m):S&&o(m)?i(m):m,(t.sham||m&&m.sham||g&&g.sham)&&_(y,"sham",!0),_(T,p,y),S&&(h(c,f=w+"Prototype")||_(c,f,{}),_(c[f],p,m),t.real&&P&&(r||!P[p])&&_(P,p,m)))}},8828:t=>{"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},6024:(t,e,r)=>{"use strict";var n=r(1505),s=Function.prototype,i=s.apply,o=s.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})},8311:(t,e,r)=>{"use strict";var n=r(2361),s=r(2159),i=r(1505),o=n(n.bind);t.exports=function(t,e){return s(t),void 0===e?t:i?o(t,e):function(){return t.apply(e,arguments)}}},1505:(t,e,r)=>{"use strict";var n=r(8828);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},3930:(t,e,r)=>{"use strict";var n=r(1505),s=Function.prototype.call;t.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},6833:(t,e,r)=>{"use strict";var n=r(9447),s=r(9724),i=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,a=s(i,"name"),u=a&&"something"===function(){}.name,c=a&&(!n||n&&o(i,"name").configurable);t.exports={EXISTS:a,PROPER:u,CONFIGURABLE:c}},1871:(t,e,r)=>{"use strict";var n=r(1907),s=r(2159);t.exports=function(t,e,r){try{return n(s(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}},2361:(t,e,r)=>{"use strict";var n=r(5807),s=r(1907);t.exports=function(t){if("Function"===n(t))return s(t)}},1907:(t,e,r)=>{"use strict";var n=r(1505),s=Function.prototype,i=s.call,o=n&&s.bind.bind(i,i);t.exports=n?o:function(t){return function(){return i.apply(t,arguments)}}},1747:(t,e,r)=>{"use strict";var n=r(5951),s=r(2046);t.exports=function(t,e){var r=s[t+"Prototype"],i=r&&r[e];if(i)return i;var o=n[t],a=o&&o.prototype;return a&&a[e]}},5582:(t,e,r)=>{"use strict";var n=r(2046),s=r(5951),i=r(2250),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(n[t])||o(s[t]):n[t]&&n[t][e]||s[t]&&s[t][e]}},6656:(t,e,r)=>{"use strict";var n=r(1907),s=r(1793),i=r(2250),o=r(5807),a=r(160),u=n([].push);t.exports=function(t){if(i(t))return t;if(s(t)){for(var e=t.length,r=[],n=0;n<e;n++){var c=t[n];"string"==typeof c?u(r,c):"number"!=typeof c&&"Number"!==o(c)&&"String"!==o(c)||u(r,a(c))}var l=r.length,_=!0;return function(t,e){if(_)return _=!1,e;if(s(this))return e;for(var n=0;n<l;n++)if(r[n]===t)return e}}}},9367:(t,e,r)=>{"use strict";var n=r(2159),s=r(7136);t.exports=function(t,e){var r=t[e];return s(r)?void 0:n(r)}},7703:(t,e,r)=>{"use strict";var n=r(1907),s=r(9298),i=Math.floor,o=n("".charAt),a=n("".replace),u=n("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,r,n,_,h){var d=r+t.length,f=n.length,p=l;return void 0!==_&&(_=s(_),p=c),a(h,p,(function(s,a){var c;switch(o(a,0)){case"$":return"$";case"&":return t;case"`":return u(e,0,r);case"'":return u(e,d);case"<":c=_[u(a,1,-1)];break;default:var l=+a;if(0===l)return s;if(l>f){var h=i(l/10);return 0===h?s:h<=f?void 0===n[h-1]?o(a,1):n[h-1]+o(a,1):s}c=n[l-1]}return void 0===c?"":c}))}},5951:function(t,e,r){"use strict";var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9724:(t,e,r)=>{"use strict";var n=r(1907),s=r(9298),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(s(t),e)}},8530:t=>{"use strict";t.exports={}},2416:(t,e,r)=>{"use strict";var n=r(5582);t.exports=n("document","documentElement")},3648:(t,e,r)=>{"use strict";var n=r(9447),s=r(8828),i=r(9552);t.exports=!n&&!s((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},6946:(t,e,r)=>{"use strict";var n=r(1907),s=r(8828),i=r(5807),o=Object,a=n("".split);t.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?a(t,""):o(t)}:o},2647:(t,e,r)=>{"use strict";var n=r(1907),s=r(2250),i=r(6128),o=n(Function.toString);s(i.inspectSource)||(i.inspectSource=function(t){return o(t)}),t.exports=i.inspectSource},4932:(t,e,r)=>{"use strict";var n,s,i,o=r(551),a=r(5951),u=r(6285),c=r(1626),l=r(9724),_=r(6128),h=r(2522),d=r(8530),f="Object already initialized",p=a.TypeError,m=a.WeakMap;if(o||_.state){var g=_.state||(_.state=new m);g.get=g.get,g.has=g.has,g.set=g.set,n=function(t,e){if(g.has(t))throw new p(f);return e.facade=t,g.set(t,e),e},s=function(t){return g.get(t)||{}},i=function(t){return g.has(t)}}else{var v=h("state");d[v]=!0,n=function(t,e){if(l(t,v))throw new p(f);return e.facade=t,c(t,v,e),e},s=function(t){return l(t,v)?t[v]:{}},i=function(t){return l(t,v)}}t.exports={set:n,get:s,has:i,enforce:function(t){return i(t)?s(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!u(e)||(r=s(e)).type!==t)throw new p("Incompatible receiver, "+t+" required");return r}}}},1793:(t,e,r)=>{"use strict";var n=r(5807);t.exports=Array.isArray||function(t){return"Array"===n(t)}},2250:t=>{"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},5468:(t,e,r)=>{"use strict";var n=r(1907),s=r(8828),i=r(2250),o=r(3948),a=r(5582),u=r(2647),c=function(){},l=a("Reflect","construct"),_=/^\s*(?:class|function)\b/,h=n(_.exec),d=!_.test(c),f=function(t){if(!i(t))return!1;try{return l(c,[],t),!0}catch(t){return!1}},p=function(t){if(!i(t))return!1;switch(o(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!h(_,u(t))}catch(t){return!0}};p.sham=!0,t.exports=!l||s((function(){var t;return f(f.call)||!f(Object)||!f((function(){t=!0}))||t}))?p:f},7463:(t,e,r)=>{"use strict";var n=r(8828),s=r(2250),i=/#|\.prototype\./,o=function(t,e){var r=u[a(t)];return r===l||r!==c&&(s(e)?n(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},u=o.data={},c=o.NATIVE="N",l=o.POLYFILL="P";t.exports=o},7136:t=>{"use strict";t.exports=function(t){return null==t}},6285:(t,e,r)=>{"use strict";var n=r(2250);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},4018:(t,e,r)=>{"use strict";var n=r(6285);t.exports=function(t){return n(t)||null===t}},7376:t=>{"use strict";t.exports=!0},2087:(t,e,r)=>{"use strict";var n=r(6285),s=r(5807),i=r(6264)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[i])?!!e:"RegExp"===s(t))}},5594:(t,e,r)=>{"use strict";var n=r(5582),s=r(2250),i=r(8280),o=r(1175),a=Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return s(e)&&i(e.prototype,a(t))}},7181:(t,e,r)=>{"use strict";var n=r(5116).IteratorPrototype,s=r(8075),i=r(5817),o=r(4840),a=r(3742),u=function(){return this};t.exports=function(t,e,r,c){var l=e+" Iterator";return t.prototype=s(n,{next:i(+!c,r)}),o(t,l,!1,!0),a[l]=u,t}},183:(t,e,r)=>{"use strict";var n=r(1091),s=r(3930),i=r(7376),o=r(6833),a=r(2250),u=r(7181),c=r(5972),l=r(9192),_=r(4840),h=r(1626),d=r(8055),f=r(6264),p=r(3742),m=r(5116),g=o.PROPER,v=o.CONFIGURABLE,y=m.IteratorPrototype,b=m.BUGGY_SAFARI_ITERATORS,w=f("iterator"),M="keys",E="values",S="entries",A=function(){return this};t.exports=function(t,e,r,o,f,m,T){u(r,e,o);var P,C,I,R=function(t){if(t===f&&D)return D;if(!b&&t&&t in L)return L[t];switch(t){case M:case E:case S:return function(){return new r(this,t)}}return function(){return new r(this)}},O=e+" Iterator",x=!1,L=t.prototype,k=L[w]||L["@@iterator"]||f&&L[f],D=!b&&k||R(f),F="Array"===e&&L.entries||k;if(F&&(P=c(F.call(new t)))!==Object.prototype&&P.next&&(i||c(P)===y||(l?l(P,y):a(P[w])||d(P,w,A)),_(P,O,!0,!0),i&&(p[O]=A)),g&&f===E&&k&&k.name!==E&&(!i&&v?h(L,"name",E):(x=!0,D=function(){return s(k,this)})),f)if(C={values:R(E),keys:m?D:R(M),entries:R(S)},T)for(I in C)(b||x||!(I in L))&&d(L,I,C[I]);else n({target:e,proto:!0,forced:b||x},C);return i&&!T||L[w]===D||d(L,w,D,{name:f}),p[e]=D,C}},5116:(t,e,r)=>{"use strict";var n,s,i,o=r(8828),a=r(2250),u=r(6285),c=r(8075),l=r(5972),_=r(8055),h=r(6264),d=r(7376),f=h("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(s=l(l(i)))!==Object.prototype&&(n=s):p=!0),!u(n)||o((function(){var t={};return n[f].call(t)!==t}))?n={}:d&&(n=c(n)),a(n[f])||_(n,f,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:p}},3742:t=>{"use strict";t.exports={}},575:(t,e,r)=>{"use strict";var n=r(3121);t.exports=function(t){return n(t.length)}},1176:t=>{"use strict";var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},8075:(t,e,r)=>{"use strict";var n,s=r(6624),i=r(2220),o=r(376),a=r(8530),u=r(2416),c=r(9552),l=r(2522),_="prototype",h="script",d=l("IE_PROTO"),f=function(){},p=function(t){return"<"+h+">"+t+"</"+h+">"},m=function(t){t.write(p("")),t.close();var e=t.parentWindow.Object;return t=null,e},g=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;g="undefined"!=typeof document?document.domain&&n?m(n):(e=c("iframe"),r="java"+h+":",e.style.display="none",u.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(p("document.F=Object")),t.close(),t.F):m(n);for(var s=o.length;s--;)delete g[_][o[s]];return g()};a[d]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(f[_]=s(t),r=new f,f[_]=null,r[d]=t):r=g(),void 0===e?r:i.f(r,e)}},2220:(t,e,r)=>{"use strict";var n=r(9447),s=r(8661),i=r(4284),o=r(6624),a=r(7374),u=r(2875);e.f=n&&!s?Object.defineProperties:function(t,e){o(t);for(var r,n=a(e),s=u(e),c=s.length,l=0;c>l;)i.f(t,r=s[l++],n[r]);return t}},4284:(t,e,r)=>{"use strict";var n=r(9447),s=r(3648),i=r(8661),o=r(6624),a=r(470),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,_="enumerable",h="configurable",d="writable";e.f=n?i?function(t,e,r){if(o(t),e=a(e),o(r),"function"==typeof t&&"prototype"===e&&"value"in r&&d in r&&!r[d]){var n=l(t,e);n&&n[d]&&(t[e]=r.value,r={configurable:h in r?r[h]:n[h],enumerable:_ in r?r[_]:n[_],writable:!1})}return c(t,e,r)}:c:function(t,e,r){if(o(t),e=a(e),o(r),s)try{return c(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new u("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},3846:(t,e,r)=>{"use strict";var n=r(9447),s=r(3930),i=r(2574),o=r(5817),a=r(7374),u=r(470),c=r(9724),l=r(3648),_=Object.getOwnPropertyDescriptor;e.f=n?_:function(t,e){if(t=a(t),e=u(e),l)try{return _(t,e)}catch(t){}if(c(t,e))return o(!s(i.f,t,e),t[e])}},5407:(t,e,r)=>{"use strict";var n=r(5807),s=r(7374),i=r(4443).f,o=r(3427),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"Window"===n(t)?function(t){try{return i(t)}catch(t){return o(a)}}(t):i(s(t))}},4443:(t,e,r)=>{"use strict";var n=r(3045),s=r(376).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,s)}},7170:(t,e)=>{"use strict";e.f=Object.getOwnPropertySymbols},5972:(t,e,r)=>{"use strict";var n=r(9724),s=r(2250),i=r(9298),o=r(2522),a=r(7382),u=o("IE_PROTO"),c=Object,l=c.prototype;t.exports=a?c.getPrototypeOf:function(t){var e=i(t);if(n(e,u))return e[u];var r=e.constructor;return s(r)&&e instanceof r?r.prototype:e instanceof c?l:null}},8280:(t,e,r)=>{"use strict";var n=r(1907);t.exports=n({}.isPrototypeOf)},3045:(t,e,r)=>{"use strict";var n=r(1907),s=r(9724),i=r(7374),o=r(4436).indexOf,a=r(8530),u=n([].push);t.exports=function(t,e){var r,n=i(t),c=0,l=[];for(r in n)!s(a,r)&&s(n,r)&&u(l,r);for(;e.length>c;)s(n,r=e[c++])&&(~o(l,r)||u(l,r));return l}},2875:(t,e,r)=>{"use strict";var n=r(3045),s=r(376);t.exports=Object.keys||function(t){return n(t,s)}},2574:(t,e)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);e.f=s?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},9192:(t,e,r)=>{"use strict";var n=r(1871),s=r(6285),i=r(4239),o=r(43);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=n(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return i(r),o(n),s(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0)},4878:(t,e,r)=>{"use strict";var n=r(2623),s=r(3948);t.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},581:(t,e,r)=>{"use strict";var n=r(3930),s=r(2250),i=r(6285),o=TypeError;t.exports=function(t,e){var r,a;if("string"===e&&s(r=t.toString)&&!i(a=n(r,t)))return a;if(s(r=t.valueOf)&&!i(a=n(r,t)))return a;if("string"!==e&&s(r=t.toString)&&!i(a=n(r,t)))return a;throw new o("Can't convert object to primitive value")}},2046:t=>{"use strict";t.exports={}},5606:(t,e,r)=>{"use strict";var n=r(6624);t.exports=function(){var t=n(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},663:(t,e,r)=>{"use strict";var n=r(3930),s=r(9724),i=r(8280),o=r(5606),a=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in a||s(t,"flags")||!i(a,t)?e:n(o,t)}},4239:(t,e,r)=>{"use strict";var n=r(7136),s=TypeError;t.exports=function(t){if(n(t))throw new s("Can't call method on "+t);return t}},4840:(t,e,r)=>{"use strict";var n=r(2623),s=r(4284).f,i=r(1626),o=r(9724),a=r(4878),u=r(6264)("toStringTag");t.exports=function(t,e,r,c){var l=r?t:t&&t.prototype;l&&(o(l,u)||s(l,u,{configurable:!0,value:e}),c&&!n&&i(l,"toString",a))}},2522:(t,e,r)=>{"use strict";var n=r(5816),s=r(6499),i=n("keys");t.exports=function(t){return i[t]||(i[t]=s(t))}},6128:(t,e,r)=>{"use strict";var n=r(7376),s=r(5951),i=r(2532),o="__core-js_shared__",a=t.exports=s[o]||i(o,{});(a.versions||(a.versions=[])).push({version:"3.39.0",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5816:(t,e,r)=>{"use strict";var n=r(6128);t.exports=function(t,e){return n[t]||(n[t]=e||{})}},1470:(t,e,r)=>{"use strict";var n=r(1907),s=r(5482),i=r(160),o=r(4239),a=n("".charAt),u=n("".charCodeAt),c=n("".slice),l=function(t){return function(e,r){var n,l,_=i(o(e)),h=s(r),d=_.length;return h<0||h>=d?t?"":void 0:(n=u(_,h))<55296||n>56319||h+1===d||(l=u(_,h+1))<56320||l>57343?t?a(_,h):n:t?c(_,h,h+2):l-56320+(n-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},9846:(t,e,r)=>{"use strict";var n=r(798),s=r(8828),i=r(5951).String;t.exports=!!Object.getOwnPropertySymbols&&!s((function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},3467:(t,e,r)=>{"use strict";var n=r(3930),s=r(5582),i=r(6264),o=r(8055);t.exports=function(){var t=s("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,a=i("toPrimitive");e&&!e[a]&&o(e,a,(function(t){return n(r,this)}),{arity:1})}},2595:(t,e,r)=>{"use strict";var n=r(5582),s=r(1907),i=n("Symbol"),o=i.keyFor,a=s(i.prototype.valueOf);t.exports=i.isRegisteredSymbol||function(t){try{return void 0!==o(a(t))}catch(t){return!1}}},9197:(t,e,r)=>{"use strict";for(var n=r(5816),s=r(5582),i=r(1907),o=r(5594),a=r(6264),u=s("Symbol"),c=u.isWellKnownSymbol,l=s("Object","getOwnPropertyNames"),_=i(u.prototype.valueOf),h=n("wks"),d=0,f=l(u),p=f.length;d<p;d++)try{var m=f[d];o(u[m])&&a(m)}catch(t){}t.exports=function(t){if(c&&c(t))return!0;try{for(var e=_(t),r=0,n=l(h),s=n.length;r<s;r++)if(h[n[r]]==e)return!0}catch(t){}return!1}},4411:(t,e,r)=>{"use strict";var n=r(9846);t.exports=n&&!!Symbol.for&&!!Symbol.keyFor},4849:(t,e,r)=>{"use strict";var n=r(5482),s=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?s(r+e,0):i(r,e)}},7374:(t,e,r)=>{"use strict";var n=r(6946),s=r(4239);t.exports=function(t){return n(s(t))}},5482:(t,e,r)=>{"use strict";var n=r(1176);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},3121:(t,e,r)=>{"use strict";var n=r(5482),s=Math.min;t.exports=function(t){var e=n(t);return e>0?s(e,9007199254740991):0}},9298:(t,e,r)=>{"use strict";var n=r(4239),s=Object;t.exports=function(t){return s(n(t))}},6028:(t,e,r)=>{"use strict";var n=r(3930),s=r(6285),i=r(5594),o=r(9367),a=r(581),u=r(6264),c=TypeError,l=u("toPrimitive");t.exports=function(t,e){if(!s(t)||i(t))return t;var r,u=o(t,l);if(u){if(void 0===e&&(e="default"),r=n(u,t,e),!s(r)||i(r))return r;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},470:(t,e,r)=>{"use strict";var n=r(6028),s=r(5594);t.exports=function(t){var e=n(t,"string");return s(e)?e:e+""}},2623:(t,e,r)=>{"use strict";var n={};n[r(6264)("toStringTag")]="z",t.exports="[object z]"===String(n)},160:(t,e,r)=>{"use strict";var n=r(3948),s=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return s(t)}},4640:t=>{"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},6499:(t,e,r)=>{"use strict";var n=r(1907),s=0,i=Math.random(),o=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++s+i,36)}},1175:(t,e,r)=>{"use strict";var n=r(9846);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8661:(t,e,r)=>{"use strict";var n=r(9447),s=r(8828);t.exports=n&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},551:(t,e,r)=>{"use strict";var n=r(5951),s=r(2250),i=n.WeakMap;t.exports=s(i)&&/native code/.test(String(i))},366:(t,e,r)=>{"use strict";var n=r(2046),s=r(9724),i=r(560),o=r(4284).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});s(e,t)||o(e,t,{value:i.f(t)})}},560:(t,e,r)=>{"use strict";var n=r(6264);e.f=n},6264:(t,e,r)=>{"use strict";var n=r(5951),s=r(5816),i=r(9724),o=r(6499),a=r(9846),u=r(1175),c=n.Symbol,l=s("wks"),_=u?c.for||c:c&&c.withoutSetter||o;t.exports=function(t){return i(l,t)||(l[t]=a&&i(c,t)?c[t]:_("Symbol."+t)),l[t]}},8545:(t,e,r)=>{"use strict";var n=r(1091),s=r(8828),i=r(1793),o=r(6285),a=r(9298),u=r(575),c=r(8024),l=r(5543),_=r(6968),h=r(7171),d=r(6264),f=r(798),p=d("isConcatSpreadable"),m=f>=51||!s((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),g=function(t){if(!o(t))return!1;var e=t[p];return void 0!==e?!!e:i(t)};n({target:"Array",proto:!0,arity:1,forced:!m||!h("concat")},{concat:function(t){var e,r,n,s,i,o=a(this),h=_(o,0),d=0;for(e=-1,n=arguments.length;e<n;e++)if(g(i=-1===e?o:arguments[e]))for(s=u(i),c(d+s),r=0;r<s;r++,d++)r in i&&l(h,d,i[r]);else c(d+1),l(h,d++,i);return h.length=d,h}})},9363:(t,e,r)=>{"use strict";var n=r(7374),s=r(2156),i=r(3742),o=r(4932),a=r(4284).f,u=r(183),c=r(9550),l=r(7376),_=r(9447),h="Array Iterator",d=o.set,f=o.getterFor(h);t.exports=u(Array,"Array",(function(t,e){d(this,{type:h,target:n(t),index:0,kind:e})}),(function(){var t=f(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,c(void 0,!0);switch(t.kind){case"keys":return c(r,!1);case"values":return c(e[r],!1)}return c([r,e[r]],!1)}),"values");var p=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!l&&_&&"values"!==p.name)try{a(p,"name",{value:"values"})}catch(t){}},8537:()=>{},9721:(t,e,r)=>{"use strict";var n=r(1091),s=r(5582),i=r(6024),o=r(3930),a=r(1907),u=r(8828),c=r(2250),l=r(5594),_=r(3427),h=r(6656),d=r(9846),f=String,p=s("JSON","stringify"),m=a(/./.exec),g=a("".charAt),v=a("".charCodeAt),y=a("".replace),b=a(1..toString),w=/[\uD800-\uDFFF]/g,M=/^[\uD800-\uDBFF]$/,E=/^[\uDC00-\uDFFF]$/,S=!d||u((function(){var t=s("Symbol")("stringify detection");return"[null]"!==p([t])||"{}"!==p({a:t})||"{}"!==p(Object(t))})),A=u((function(){return'"\\udf06\\ud834"'!==p("\udf06\ud834")||'"\\udead"'!==p("\udead")})),T=function(t,e){var r=_(arguments),n=h(e);if(c(n)||void 0!==t&&!l(t))return r[1]=function(t,e){if(c(n)&&(e=o(n,this,f(t),e)),!l(e))return e},i(p,null,r)},P=function(t,e,r){var n=g(r,e-1),s=g(r,e+1);return m(M,t)&&!m(E,s)||m(E,t)&&!m(M,n)?"\\u"+b(v(t,0),16):t};p&&n({target:"JSON",stat:!0,arity:3,forced:S||A},{stringify:function(t,e,r){var n=_(arguments),s=i(S?T:p,null,n);return A&&"string"==typeof s?y(s,w,P):s}})},7024:(t,e,r)=>{"use strict";var n=r(5951);r(4840)(n.JSON,"JSON",!0)},8172:()=>{},6750:(t,e,r)=>{"use strict";var n=r(1091),s=r(9447),i=r(4284).f;n({target:"Object",stat:!0,forced:Object.defineProperty!==i,sham:!s},{defineProperty:i})},5264:(t,e,r)=>{"use strict";var n=r(1091),s=r(9846),i=r(8828),o=r(7170),a=r(9298);n({target:"Object",stat:!0,forced:!s||i((function(){o.f(1)}))},{getOwnPropertySymbols:function(t){var e=o.f;return e?e(a(t)):[]}})},3643:()=>{},5205:()=>{},1398:()=>{},7057:(t,e,r)=>{"use strict";var n=r(1470).charAt,s=r(160),i=r(4932),o=r(183),a=r(9550),u="String Iterator",c=i.set,l=i.getterFor(u);o(String,"String",(function(t){c(this,{type:u,string:s(t),index:0})}),(function(){var t,e=l(this),r=e.string,s=e.index;return s>=r.length?a(void 0,!0):(t=n(r,s),e.index+=t.length,a(t,!1))}))},929:(t,e,r)=>{"use strict";var n=r(1091),s=r(3930),i=r(1907),o=r(4239),a=r(2250),u=r(7136),c=r(2087),l=r(160),_=r(9367),h=r(663),d=r(7703),f=r(6264),p=r(7376),m=f("replace"),g=TypeError,v=i("".indexOf),y=i("".replace),b=i("".slice),w=Math.max;n({target:"String",proto:!0},{replaceAll:function(t,e){var r,n,i,f,M,E,S,A,T,P,C=o(this),I=0,R="";if(!u(t)){if((r=c(t))&&(n=l(o(h(t))),!~v(n,"g")))throw new g("`.replaceAll` does not allow non-global regexes");if(i=_(t,m))return s(i,t,C,e);if(p&&r)return y(l(C),t,e)}for(f=l(C),M=l(t),(E=a(e))||(e=l(e)),S=M.length,A=w(1,S),T=v(f,M);-1!==T;)P=E?l(e(M,T,f)):d(M,f,T,[],void 0,e),R+=b(f,I,T)+P,I=T+S,T=T+A>f.length?-1:v(f,M,T+A);return I<f.length&&(R+=b(f,I)),R}})},1995:()=>{},3997:(t,e,r)=>{"use strict";r(366)("asyncIterator")},3674:(t,e,r)=>{"use strict";var n=r(1091),s=r(5951),i=r(3930),o=r(1907),a=r(7376),u=r(9447),c=r(9846),l=r(8828),_=r(9724),h=r(8280),d=r(6624),f=r(7374),p=r(470),m=r(160),g=r(5817),v=r(8075),y=r(2875),b=r(4443),w=r(5407),M=r(7170),E=r(3846),S=r(4284),A=r(2220),T=r(2574),P=r(8055),C=r(9251),I=r(5816),R=r(2522),O=r(8530),x=r(6499),L=r(6264),k=r(560),D=r(366),F=r(3467),U=r(4840),H=r(4932),N=r(726).forEach,B=R("hidden"),j="Symbol",q="prototype",Q=H.set,W=H.getterFor(j),V=Object[q],Y=s.Symbol,z=Y&&Y[q],G=s.RangeError,$=s.TypeError,K=s.QObject,X=E.f,J=S.f,Z=w.f,tt=T.f,et=o([].push),rt=I("symbols"),nt=I("op-symbols"),st=I("wks"),it=!K||!K[q]||!K[q].findChild,ot=function(t,e,r){var n=X(V,e);n&&delete V[e],J(t,e,r),n&&t!==V&&J(V,e,n)},at=u&&l((function(){return 7!==v(J({},"a",{get:function(){return J(this,"a",{value:7}).a}})).a}))?ot:J,ut=function(t,e){var r=rt[t]=v(z);return Q(r,{type:j,tag:t,description:e}),u||(r.description=e),r},ct=function(t,e,r){t===V&&ct(nt,e,r),d(t);var n=p(e);return d(r),_(rt,n)?(r.enumerable?(_(t,B)&&t[B][n]&&(t[B][n]=!1),r=v(r,{enumerable:g(0,!1)})):(_(t,B)||J(t,B,g(1,v(null))),t[B][n]=!0),at(t,n,r)):J(t,n,r)},lt=function(t,e){d(t);var r=f(e),n=y(r).concat(ft(r));return N(n,(function(e){u&&!i(_t,r,e)||ct(t,e,r[e])})),t},_t=function(t){var e=p(t),r=i(tt,this,e);return!(this===V&&_(rt,e)&&!_(nt,e))&&(!(r||!_(this,e)||!_(rt,e)||_(this,B)&&this[B][e])||r)},ht=function(t,e){var r=f(t),n=p(e);if(r!==V||!_(rt,n)||_(nt,n)){var s=X(r,n);return!s||!_(rt,n)||_(r,B)&&r[B][n]||(s.enumerable=!0),s}},dt=function(t){var e=Z(f(t)),r=[];return N(e,(function(t){_(rt,t)||_(O,t)||et(r,t)})),r},ft=function(t){var e=t===V,r=Z(e?nt:f(t)),n=[];return N(r,(function(t){!_(rt,t)||e&&!_(V,t)||et(n,rt[t])})),n};c||(P(z=(Y=function(){if(h(z,this))throw new $("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,e=x(t),r=function(t){var n=void 0===this?s:this;n===V&&i(r,nt,t),_(n,B)&&_(n[B],e)&&(n[B][e]=!1);var o=g(1,t);try{at(n,e,o)}catch(t){if(!(t instanceof G))throw t;ot(n,e,o)}};return u&&it&&at(V,e,{configurable:!0,set:r}),ut(e,t)})[q],"toString",(function(){return W(this).tag})),P(Y,"withoutSetter",(function(t){return ut(x(t),t)})),T.f=_t,S.f=ct,A.f=lt,E.f=ht,b.f=w.f=dt,M.f=ft,k.f=function(t){return ut(L(t),t)},u&&(C(z,"description",{configurable:!0,get:function(){return W(this).description}}),a||P(V,"propertyIsEnumerable",_t,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:Y}),N(y(st),(function(t){D(t)})),n({target:j,stat:!0,forced:!c},{useSetter:function(){it=!0},useSimple:function(){it=!1}}),n({target:"Object",stat:!0,forced:!c,sham:!u},{create:function(t,e){return void 0===e?v(t):lt(v(t),e)},defineProperty:ct,defineProperties:lt,getOwnPropertyDescriptor:ht}),n({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:dt}),F(),U(Y,j),O[B]=!0},5084:()=>{},3313:(t,e,r)=>{"use strict";var n=r(1091),s=r(5582),i=r(9724),o=r(160),a=r(5816),u=r(4411),c=a("string-to-symbol-registry"),l=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!u},{for:function(t){var e=o(t);if(i(c,e))return c[e];var r=s("Symbol")(e);return c[e]=r,l[r]=e,r}})},2596:(t,e,r)=>{"use strict";r(366)("hasInstance")},5721:(t,e,r)=>{"use strict";r(366)("isConcatSpreadable")},4954:(t,e,r)=>{"use strict";r(366)("iterator")},4452:(t,e,r)=>{"use strict";r(3674),r(3313),r(751),r(9721),r(5264)},751:(t,e,r)=>{"use strict";var n=r(1091),s=r(9724),i=r(5594),o=r(4640),a=r(5816),u=r(4411),c=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!u},{keyFor:function(t){if(!i(t))throw new TypeError(o(t)+" is not a symbol");if(s(c,t))return c[t]}})},3377:(t,e,r)=>{"use strict";r(366)("matchAll")},4123:(t,e,r)=>{"use strict";r(366)("match")},2230:(t,e,r)=>{"use strict";r(366)("replace")},5344:(t,e,r)=>{"use strict";r(366)("search")},1660:(t,e,r)=>{"use strict";r(366)("species")},4610:(t,e,r)=>{"use strict";r(366)("split")},3669:(t,e,r)=>{"use strict";var n=r(366),s=r(3467);n("toPrimitive"),s()},4810:(t,e,r)=>{"use strict";var n=r(5582),s=r(366),i=r(4840);s("toStringTag"),i(n("Symbol"),"Symbol")},3325:(t,e,r)=>{"use strict";r(366)("unscopables")},768:(t,e,r)=>{"use strict";var n=r(6264),s=r(4284).f,i=n("metadata"),o=Function.prototype;void 0===o[i]&&s(o,i,{value:null})},6038:(t,e,r)=>{"use strict";r(929)},8549:(t,e,r)=>{"use strict";r(366)("asyncDispose")},1697:(t,e,r)=>{"use strict";r(366)("customMatcher")},7152:(t,e,r)=>{"use strict";r(366)("dispose")},3939:(t,e,r)=>{"use strict";r(1091)({target:"Symbol",stat:!0},{isRegisteredSymbol:r(2595)})},3422:(t,e,r)=>{"use strict";r(1091)({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:r(2595)})},1785:(t,e,r)=>{"use strict";r(1091)({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:r(9197)})},36:(t,e,r)=>{"use strict";r(1091)({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:r(9197)})},8703:(t,e,r)=>{"use strict";r(366)("matcher")},6878:(t,e,r)=>{"use strict";r(366)("metadataKey")},1372:(t,e,r)=>{"use strict";r(366)("metadata")},4664:(t,e,r)=>{"use strict";r(366)("observable")},9671:(t,e,r)=>{"use strict";r(366)("patternMatch")},359:(t,e,r)=>{"use strict";r(366)("replaceAll")},2560:(t,e,r)=>{"use strict";r(9363);var n=r(9287),s=r(5951),i=r(4840),o=r(3742);for(var a in n)i(s[a],a),o[a]=o.Array},2222:(t,e,r)=>{"use strict";var n=r(6823);t.exports=n},8251:(t,e,r)=>{"use strict";var n=r(1926);t.exports=n},4139:(t,e,r)=>{"use strict";var n=r(3842);r(2560),t.exports=n},7045:(t,e,r)=>{"use strict";var n=r(1730);r(2560),t.exports=n},70:(t,e,r)=>{"use strict";var n=r(1661);t.exports=n}},e={};function r(n){var s=e[n];if(void 0!==s)return s.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{"use strict";var t={};r.r(t),r.d(t,{LOG_OUT:()=>jt,mesh_as_network_info_indication:()=>Yt,mesh_audio_data_from_qos:()=>Kt,mesh_audio_network_info_indication:()=>Vt,mesh_bad_net_kick_child:()=>ee,mesh_bad_net_update_sub_mode_limit:()=>re,mesh_on_monitor_log:()=>Xt,mesh_out_filter_nodeid:()=>Zt,mesh_out_filter_nodeid_size:()=>Jt,mesh_qos_on_monitor_log:()=>te,mesh_video_as_data_from_qos:()=>Qt,mesh_video_data_from_qos:()=>Wt,mesh_video_network_info_indication:()=>Gt,network_quality_callback:()=>$t,video_encode_fec_retran_switch:()=>zt,wcl_trace_log:()=>qt});const e={VIDEO_ENCODE:"0",VIDEO_DECODE:"1",AUDIO_ENCODE:"2",AUDIO_DECODE:"3",SHARING_ENCODE:"4",SHARING_DECODE:"5",WORKER_SERVICE:"6",COMMON:"7",NET:"net",MESH:"mesh"};(()=>{const t={};for(const r in e)t[e[r]]="WCL_"+r})();var n=r(4997),s=r(2321),i=r(2231);function o(t){return o="function"==typeof s&&"symbol"==typeof i?function(t){return typeof t}:function(t){return t&&"function"==typeof s&&t.constructor===s&&t!==s.prototype?"symbol":typeof t},o(t)}var a=r(9280);function u(t,e,r){return(e=function(t){var e=function(t){if("object"!=o(t)||!t)return t;var e=t[a];if(void 0!==e){var r=e.call(t,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==o(e)?e:e+""}(e))in t?n(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var c=r(7201),l=r.n(c);function _(t){return t[0]<<24|t[1]<<16|t[2]<<8|t[3]}const h=function(t){return 21==t[4]&&0==t[13]},d=function(t){return 104==t[0]||16!=t[4]&&1!=t[5]?_(t.slice(19,23)):_(t.slice(15,19))},f=function(t){return 103==t[0]};class p{constructor(t){let e=t||{};this.last_report_time=0,this.timeout_count=0,this.interval_report_time=e.interval||3e3,this.tag=e.tag||"monitor",this.max_timeout=0,this.min_timeout=2147483647,this.reportcallback=e.reportcallback,this._timeoutid=0}_report(){this.reportcallback&&this.reportcallback(this.tag,Math.ceil(this.max_timeout),Math.ceil(this.min_timeout),this.timeout_count),this.timeout_count=0,this.max_timeout=0,this.min_timeout=2147483647}timeoutReport(t,e){if(this.timeout_count++,t>this.max_timeout&&(this.max_timeout=t),t<this.min_timeout&&(this.min_timeout=t),this._timeoutid)return;let r=this;this._timeoutid=setTimeout((()=>{r._report(),r._timeoutid=0}),this.interval_report_time)}}function m(t){let e=t||{};this._samples=[],this._interval_id=0,this._lasted_update_time=0,this._lasted_group_time=0,this._enable=!1,this._interval_time=e.interval||3e4,this._customer_callback=e.report_call,this._tag=e.tag||"netreport",this._group_interval=e.group_interval||1e3,this._enable_advanced=e.advanced||!1,this._current_count=0,this._qos_report=new p({tag:"jitter",interval:3e4,reportcallback:this._qos_report_timeout.bind(this)}),this._qos_report_samples=[],this._cureen_qos_report=0}m.prototype._qos_report_timeout=function(t,e,r,n){if(this._customer_callback){let s="".concat(t,",").concat(e,",").concat(r,",").concat(n);this._customer_callback(this._tag+"TimeOut",s)}},m.prototype._report=function(){let t=(new Date).getTime(),e="".concat(t,"-").concat(this._samples.length,"-").concat(this._samples),r="".concat(t,"-").concat(this._qos_report_samples.length,"-").concat(this._qos_report_samples);e=l()(e).call(e,",","|"),r=l()(r).call(r,",","|"),this._customer_callback?(this._customer_callback(this._tag,e),this._enable_advanced&&this._customer_callback(this._tag+"QOS",r)):console.error("tag:".concat(this._tag,",").concat(e))},m.prototype._group=function(){let t=performance.now();if(t>=this._lasted_group_time+1700){let e=Math.round((t-this._lasted_group_time)/1e3)-1;for(let t=0;t<e;t++)this._samples.push(-1)}this._lasted_group_time=t,this._samples.push(this._current_count),this._qos_report_samples.push(this._cureen_qos_report),this._cureen_qos_report=0,this._current_count=0,t>=this._lasted_update_time+this._interval_time&&(this._lasted_update_time=t,this._report(),this._samples=[],this._qos_report_samples=[])},m.prototype.start=function(){this._enable||(this._lasted_update_time=performance.now(),this._lasted_group_time=this._lasted_update_time,this._samples=[],this._current_count=0,this._qos_report_samples=[],this._cureen_qos_report=0,this._interval_id=setInterval(this._group.bind(this),this._group_interval),this._enable=!0)},m.prototype.stop=function(){this._enable&&(clearInterval(this._interval_id),this._interval_id=0,this._enable=!1)},m.prototype.sample=function(t){if(this._enable&&(this._current_count++,this._enable_advanced)){if(h(t))return void this._cureen_qos_report++;if(f(t)){let e=d(t),r=performance.now();if(this._lasted_qos_ts){let t=r-this._lasted_sys_ts-(e-this._lasted_qos_ts);t>30&&this._qos_report.timeoutReport(t,r)}this._lasted_qos_ts=e,this._lasted_sys_ts=r,this._lasted_data=t}}};const g=35,v=127,y=128,b=133,w=199,M=200;class E{constructor(t,e){this.sendsize=0,this.dropsize=0,this.presamples={sendsize:0,drop:0,time:0,size:0,nosendcount:0,dckbps:0,updatetime:0,smoothsend:0},this.channel=e,this.id=0,this.wraper=t,this.overusetime=0}send(t){this.sendsize+=t}drop(t){this.dropsize+=t}setbuffer(t){const e=performance.now(),{sendsize:r,drop:n,size:s,time:i}=this.presamples,o=e-i,a=this.sendsize-r,u=this.dropsize-n,c=t-s;if(o>150&&a>5e3){const r=100*u/a,n=8e3*(a-u-c)/(o*(this.presamples.nosendcount+1)),s=8e3*a/o,i=8e3*(t+u+Math.max(c/2,0)),l=0==n?5e3:i/n;if(0==n?this.presamples.nosendcount++:(this.presamples.nosendcount=0,this.presamples.dckbps=n),0==this.presamples.smoothsend)this.presamples.smoothsend=s;else{const t=.5;this.presamples.smoothsend=t*this.presamples.smoothsend+s*(1-t)}r>10&&t>16384||o<500&&l>500?0==this.overusetime?this.overusetime=Math.min(250,o)/2:this.overusetime+=Math.min(250,o):t<16384&&l<100&&(this.overusetime=0);const _=n||this.presamples.dckbps/(this.presamples.nosendcount+1),h=_/this.presamples.smoothsend;if(this.overusetime>700&&h<.75&&e>this.presamples.updatetime+3e3){const t={status:1,dckbps:_,sendkbps:this.presamples.smoothsend,overusetime:this.overusetime,nosendcount:this.presamples.nosendcount};this.wraper._onbadnet(t),this.presamples.updatetime=e}this.presamples.sendsize=this.sendsize,this.presamples.drop=this.dropsize,this.presamples.size=t,this.presamples.time=e}}start(){this.id||(this.presamples.time=performance.now(),this.id=setInterval((()=>{let t=this.channel.bufferedAmount;this.setbuffer(t)}),100))}stop(){this.id&&(clearInterval(this.id),this.id=0)}}class S{constructor(t,e,r,n,s,i){this.id=t,this.tag=s||"",this.type=e,this.datachannel=r,this._recv_statistic=null,this.onmessageFn=()=>{},this.disconnectedFn=null,this.connectedFn=null,this._status=S.UNINIT,this.target_thread=n,this.transfered=!1,this._listener=null,this.transportlists=[],this._send_statistic=null,this.report_monitor_func=()=>{},this.bsuppend=!1,this.mgr=i,this.bufferIncreaseCount=0,this.lastBufferedAmount=0,this.highWaterMarkCount=0,this.sendcount=0,this.sendStatic=null,this.enableSendStatic=!1,this.onnetbadFn=t=>{}}isReady(){return this._status===S.CONNECTED}isTransfered(){return!!this.transfered}send(t){if(this.enableSendStatic){if(this.sendcount++,this.sendStatic.send(t.length),this.datachannel.bufferedAmount>65536)return void this.sendStatic.drop(t.length);if(this.datachannel.bufferedAmount>32768&&(this.sendcount%5==0||21==t[4]&&1==t[1]&&51==t[13]))return void this.sendStatic.drop(t.length)}this.datachannel.send(t),this._send_statistic.sample(!1)}open(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.target_thread)try{var e;return this.target_thread.postMessage({command:134,id:this.id,type:this.type,channel:this.datachannel,transportlists:this.transportlists,tag:this.tag},[this.datachannel]),this.transfered=!0,this.datachannel=null,void(null===(e=this.mgr)||void 0===e||e.addRTCChannel(this))}catch(t){this.target_thread=null}this._addEventListener(t)}close(){var t;null===(t=this.mgr)||void 0===t||t.removeRTCChannel(this);let e=this.disconnectedFn;this.transfered&&this.target_thread&&this.target_thread.postMessage({command:135,id:this.id,type:this.type}),this._status!=S.DISCONNECT&&this._clear(),this._status=S.DISCONNECT,null==e||e()}onmessage(t){this.onmessageFn=t}onopen(t){this.connectedFn=t}onclose(t){this.disconnectedFn=t}onerror(t){this.errorFn=t}onbadnet(t){this.onnetbadFn=t||(t=>{})}_onbadnet(t){this.onnetbadFn(t)}_addEventListener(t){this.datachannel.onmessage=t?this._onmessage2.bind(this):this._onmessage.bind(this),this.datachannel.onopen=this._onopen.bind(this),this.datachannel.onclose=this._onclose.bind(this),this.datachannel.onclosing=this._onclose.bind(this),this.datachannel.onerror=this._onerror.bind(this),"open"==this.datachannel.readyState&&this._status==S.UNINIT&&this._onopen()}_onmessage2(t){this._status==S.UNINIT&&this._onopen(),this._recv_statistic.sample(!1),this.onmessageFn(t)}_onmessage(t){this._recv_statistic.sample(!1),this.onmessageFn(t)}_onopen(t){let e=this._status;if(this._status=S.CONNECTED,!this.transfered){const t=this.report_monitor_func;if(!this._send_statistic){const e=this.tag?this.tag+"_SEND":3==this.type?"VDCS":"ADCS";this._send_statistic=new m({tag:e,report_call:t})}if(!this._recv_statistic){const e=this.tag?this.tag+"_RECV":3==this.type?"VDCR":"ADCR";this._recv_statistic=new m({tag:e,report_call:t})}this._send_statistic.start(),this._recv_statistic.start(),this.enableSendStatic=3==this.type,this.sendStatic=new E(this,this.datachannel),this.enableSendStatic&&this.sendStatic.start()}var r;e!=S.CONNECTED&&(null===(r=this.connectedFn)||void 0===r||r.call(this))}_onerror(t){var e;null===(e=this.errorFn)||void 0===e||e.call(this,t),this._onclose(t)}_onclose(t){let e=this._status;this._status=S.DISCONNECT;let r=this.disconnectedFn;this._clear(),e!=S.DISCONNECT&&(null==r||r())}_clear(){var t,e,r;!this.transfered&&this.datachannel&&(this.datachannel.onmessage=null,this.datachannel.onopen=null,this.datachannel.onclose=null,this.datachannel.onclosing=null,this.datachannel.onerror=null),this.onmessageFn=null,this.connectedFn=null,this.disconnectedFn=null,this.errorFn=null;let n=this.datachannel;this.datachannel=null,null===(t=this._send_statistic)||void 0===t||t.stop(),null===(e=this._recv_statistic)||void 0===e||e.stop(),null===(r=this.sendStatic)||void 0===r||r.stop(),null==n||n.close()}mesagelistener(t){let e=t.data;if(e&&e.id==this.id)switch(e.cmd){case 126:this._onclose();break;case 124:this._onopen();break;case 125:this._onerror(e.ev);break;case 21:this.report_monitor_func(e.tag,e.data)}}}function A(){this.a=[],this.b=0,this.residue=null}u(S,"UNINIT",0),u(S,"CONNECTED",1),u(S,"DISCONNECT",2),A.prototype.getLength=function(){return this.a.length-this.b},A.prototype.isEmpty=function(){return 0==this.a.length},A.prototype.enqueue=function(t){this.a.push(t)},A.prototype.dequeue=function(){if(0!=this.a.length){var t=this.a[this.b];return 2*++this.b>=this.a.length&&(this.a=this.a.slice(this.b),this.b=0),t}return null},A.prototype.peek=function(){return 0<this.a.length?this.a[this.b]:void 0},A.prototype.clear=function(){this.a=[],this.b=0};const T=A,P="MEDIASDK_CACHE_INFO",C=new class{constructor(){this._highFrequencyLogs={},this.fixVersion="",this.cacheLogStack=[],this.isFlushing=!1}setInstance(t,e){this._instance=t,this.fixVersion=e}getMessageFromErrorOrEvent(t,e){let r=t;return e instanceof ErrorEvent?(e.filename&&(r+=` File: ${e.filename}`),(e.lineno||e.colno)&&(r+=` Line: ${e.lineno}:${e.colno}`),e.message&&(r+=` Message: ${e.message}`),e.error&&(r+=`\nStack: ${e.error.stack}`)):e instanceof Error?(e.message&&(r+=` Message: ${e.message}`),e.stack&&(r+=` Stack: ${e.stack}`),e.name&&(r+=` Name: ${e.name}`),e.constraint&&(r+=` Constraint: ${e.constraint}`)):e instanceof CloseEvent?(e.code&&(r+=` Code: ${e.code}`),e.reason&&(r+=` Reason: ${e.reason}`),r+=` wasClean: ${e.wasClean}`):e instanceof DOMException?(e.message&&(r+=` Message: ${e.message}`),e.name&&(r+=` Name: ${e.name}`)):r+=e?e.toString():"",r}_addCacheLog(t,e){this.cacheLogStack.length<100&&this.cacheLogStack.push({type:t,message:e})}flushCacheLog(){if(this._instance&&this.cacheLogStack.length>0&&!this.isFlushing){this.isFlushing=!0;let t="";this.cacheLogStack.forEach((e=>{let{type:r,message:{message:n="",tags:s=[]}}=e;const i=n?`${s.join("|")}:${n}|----|`:"";switch(r){case"log":this._log(n,[...s,P]);break;case"warn":case"error":case"severityerror":case"directReport":t+=i}})),t&&this._directReport(t,[P]),this.cacheLogStack=[],this.isFlushing=!1}}log(t,e=[]){this._instance?(this.flushCacheLog(),this._log(t,e)):this._addCacheLog("log",{message:t,tags:e})}warn(t,e=null,r=[]){t=this.getMessageFromErrorOrEvent(t,e),this._instance?(this.flushCacheLog(),this._warn(t,r)):this._addCacheLog("warn",{message:t,tags:r})}error(t,e=null,r=[]){var n;t=this.getMessageFromErrorOrEvent(t,e),this._highFrequencyLogs[t]?this._highFrequencyLogs[t]+=1:this._highFrequencyLogs[t]=1,!((n=this._highFrequencyLogs[t])&n-1)&&(this._instance?(this.flushCacheLog(),this._error(t,r)):this._addCacheLog("error",{message:t,tags:r}))}severityerror(t,e=[]){this._instance?(this.flushCacheLog(),this._severityerror(JSON.stringify(t),e)):this._addCacheLog("severityerror",{message:JSON.stringify(t),tags:e})}directReport(t,e=["MEDIASDK_INFO"]){var r;this._instance?(this.flushCacheLog(),null===(r=this._directReport)||void 0===r||r.call(this,t,e)):this._addCacheLog("directReport",{message:t,tags:e})}_log(t,e=[]){this._instance&&this._instance.log(t,e)}_warn(t,e=[]){this._instance&&this._instance.warn(t,e)}_error(t,e=[]){this._instance&&this._instance.error(t,[this.fixVersion,...e])}_severityerror(t,e=[]){this._instance&&this._instance.error(t,e)}_directReport(t,e=[]){var r,n;this._instance&&(null===(n=(r=this._instance).directReport)||void 0===n||n.call(r,{msg:t},e))}clearHighFrequencyLogs(){this._highFrequencyLogs={}}};class I{static getStorageForCapacity(){return new SharedArrayBuffer(8+((arguments.length>0&&void 0!==arguments[0]?arguments[0]:80)+1)*(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1500))}constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1500,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t.byteLength,o=arguments.length>6?arguments[6]:void 0;this.offset=s,this._BYTES_PER_ELEMENT=e,this.capacity=(i-8)/e,this.usableCapacity=this.capacity-1,this.buf=t,this.write_ptr=new Uint32Array(this.buf,s,1),this.read_ptr=new Uint32Array(this.buf,s+4,1),this.storageUint8sByteOffset=s+8,this.storageUint8s=new Uint8Array(this.buf,this.storageUint8sByteOffset,i-8),this.byteLength=i,this.label=r,this.usingOneElementBuffer=n,o&&(this.wasmMemory=o),n&&(this.oneElementBuffer=new ArrayBuffer(e)),this.repushhander=0,this.repushlogcount=0,this.monitorpace=0}checkBuffer(){this.wasmMemory&&this.wasmMemory.buffer!=this.buf&&(this.buf=this.wasmMemory.buffer,this.storageUint8s=new Uint8Array(this.buf,this.storageUint8sByteOffset,this.byteLength-8))}enqueue(t){return this.available_write()>0&&this.push(t),{rd:Atomics.load(this.read_ptr,0),wr:Atomics.load(this.write_ptr,0)}}enqueueSafe(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;for(this.dataBuffer||(this.dataBuffer=new T);this.dataBuffer.getLength()>0&&this.available_write()>0;){let t=this.dataBuffer.dequeue();t&&this.push(t)}let n=this.dataBuffer.getLength();if(t){if(this.available_write()>0&&0==n)return this.push(t),!0;if(!e)return!1;this.dataBuffer.enqueue(t),++n}if(n>0&&!this.repushhander&&(this.repushhander=setTimeout((()=>{this.repushlogcount%10==0&&console.warn("<<< retry consume cache data"),this.repushlogcount++,this.repushhander=0,this.enqueueSafe(null)}),30)),n>=1e3&&(C.warn("Cached data in SAB reached critical value, will be cleared"),this.dataBuffer.clear(),r&&r("vqslclear")),n>0&&r){let t=performance.now();(!this.monitorpace||t-this.monitorpace>2e4)&&(this.monitorpace=t,r&&r("vqsl"+n))}return!0}push(t){return t instanceof Array?this._pushArray(t):this._push(t)}_pushArray(t){var e=Atomics.load(this.write_ptr,0);this.checkBuffer();let r=0;t.forEach((t=>{this.storageUint8s.set(t,e*this._BYTES_PER_ELEMENT+8+4+r),r+=t.byteLength})),new Uint32Array(this.buf,this.offset+e*this._BYTES_PER_ELEMENT+8,1)[0]=r;let n=(e+1)%this.capacity;return Atomics.store(this.write_ptr,0,n),!0}_push(t){var e=Atomics.load(this.write_ptr,0);this.checkBuffer(),this.storageUint8s.set(t,e*this._BYTES_PER_ELEMENT+8+4,t.byteLength),new Uint32Array(this.buf,this.offset+e*this._BYTES_PER_ELEMENT+8,1)[0]=t.byteLength;let r=(e+1)%this.capacity;return Atomics.store(this.write_ptr,0,r),!0}addReadPtr(){var t=Atomics.load(this.read_ptr,0);Atomics.store(this.read_ptr,0,(t+1)%this.capacity)}dequeue(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];var e=Atomics.load(this.read_ptr,0);this.checkBuffer();let r,n,s,i=new Uint32Array(this.buf,this.offset+e*this._BYTES_PER_ELEMENT+8,1);if(t){r=this.oneElementBuffer?new Uint8Array(this.oneElementBuffer,0,i[0]):new Uint8Array(i[0]);let t=new Uint8Array(this.storageUint8s.buffer,e*this._BYTES_PER_ELEMENT+8+4+this.storageUint8sByteOffset,r.byteLength);r.set(t,0)}else r=this.storageUint8s.subarray(e*this._BYTES_PER_ELEMENT+8+4,e*this._BYTES_PER_ELEMENT+8+4+i[0]),n=e*this._BYTES_PER_ELEMENT+8+4+this.storageUint8sByteOffset,s=e*this._BYTES_PER_ELEMENT+8+4+i[0]+this.storageUint8sByteOffset;return t&&Atomics.store(this.read_ptr,0,(e+1)%this.capacity),t?r:{bCopyData:t,uint8s:r,begin:n,end:s}}available_read(){var t=Atomics.load(this.read_ptr,0),e=Atomics.load(this.write_ptr,0);return this._available_read(t,e)}available_write(){var t=Atomics.load(this.read_ptr,0),e=Atomics.load(this.write_ptr,0);return this._available_write(t,e)}is_available_write(){var t=Atomics.load(this.read_ptr,0),e=Atomics.load(this.write_ptr,0);return this._is_available_write(t,e)}_available_read(t,e){return(e+this.capacity-t)%this.capacity}_available_write(t,e){return this.usableCapacity-this._available_read(t,e)}_is_available_write(t,e){return this._available_write(t,e)>0}_storage_capacity(){return this.capacity}}class R{constructor(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:50,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:80;if(!(t instanceof I))throw new Error("RingBuffer required");this.rb=t,this.dataCallback=e,this.interval=null,this.requestID=null,this.timeout_call=r,this.tick_lasted_time=0,this.timeoutMS=n,this.maxCount=s}setDataCallback(t){this.dataCallback=t}consume(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.interval||(this.bCopyData=e,this.interval=setInterval((()=>{let t=performance.now();if(this.timeout_call){if(0!=this.tick_lasted_time){let e=t-this.tick_lasted_time;e>=this.timeoutMS&&this.timeout_call(e,t)}this.tick_lasted_time=t}this._dequeue()}),t))}consumeAll(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.bCopyData=t,this._dequeue()}_dequeue(){let t=Math.min(this.rb.available_read(),this.maxCount);for(this.consoume_count=0;this.consoume_count<t;){this.consoume_count++;let t=this.rb.dequeue(this.bCopyData);this.dataCallback(t),this.bCopyData||this.rb.addReadPtr()}}_consumeForAnimationFrame(){this._dequeue(),this.requestID=requestAnimationFrame(this._consumeForAnimationFrame.bind(this))}consumeUsingRequestAnimationFrame(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.requestID||(this.bCopyData=t,this._consumeForAnimationFrame())}cancelConsume(){console.log("cancelConsume interval ".concat(this.interval," requestID ").concat(this.requestID)),this.tick_lasted_time=0,clearInterval(this.interval),this.requestID&&cancelAnimationFrame(this.requestID),this.interval=null,this.requestID=null}}class O{constructor(t){let e=t||{};this.type=e.type||O.THREAD_MAIN,this.refs={},this.transportlists=[],this.mainThread=e.remote,this.subthreadlistner=null,this.transportListeners=[],this.onRemoteTransportFn=()=>{}}_onrecvmainthreadlistener(t){let{cmd:e,transportId:r,data:n}=t.data,s=this.transportlists.find((t=>t.id===r));if(s||e==b)switch(e){case b:this.addRemoteTransport(t.data,null);break;case 136:s.setMsgPort(n||new U);break;case 135:s.setSabBuffer(t.data.sender,t.data.reciver);break;case 132:s.remote=null,this.removeTransport(s)}}_onrecvsubthreadlistener(t,e){let{cmd:r,transportId:n}=e.data,s=this.transportlists.find((t=>t.id===n));switch(r){case b:this.addRemoteTransport(e.data,t);break;case 135:this.setSabBufferInfo(s,e.data.sender,e.data.reciver);break;case 132:s.remote==t&&(s.remote=null),this.removeTransport(s)}}createTransport(t){this.transportlists.push(t),setTimeout((()=>{this.transportListeners.forEach((e=>{e.TransportListChange(t,!0)}))}),0)}transportIsExit(t){return-1!=this.transportlists.indexOf(t)}closeTransport(t){let e=this.transportlists.indexOf(t);return-1!=e&&(this.transportlists.splice(e,1),setTimeout((()=>{this.transportListeners.forEach((e=>{e.TransportListChange(t,!1)}))}),0),!0)}createRemoteTransportRPC(t,e){let r={cmd:b,transportType:t.type,transportId:t.id};t.portInfo?(r.port=t.portInfo,e.postMessage(r,[t.portInfo])):e.postMessage(r)}closeRemoteTransportRPC(t,e){e.postMessage({cmd:132,transportType:t.type,transportId:t.id})}setRemoteTransportSABBUfferRPC(t,e){var r,n,s,i;(null!==(r=t.sabInfo)&&void 0!==r&&r.sender||null!==(n=t.sabInfo)&&void 0!==n&&n.reciver)&&e.postMessage({cmd:135,transportId:t.id,sender:null===(s=t.sabInfo)||void 0===s?void 0:s.sender,reciver:null===(i=t.sabInfo)||void 0===i?void 0:i.reciver})}addRemoteTransport(t,e){let{transportId:r,port:n,transportType:s}=t,i=this.createMsgSocketTransport(s,r);var o;i.id=r,i.remote=e,i.portInfo=n,n?i.setMsgPort(i.portInfo):this.bindMessageChannel(i),n&&(null===(o=this.onRemoteTransportFn)||void 0===o||o.call(this,i))}removeTransport(t){-1!=this.transportlists.indexOf(t)&&(this.closeTransport(t),t.close(),t.remote&&this.closeRemoteTransportRPC(t,t.remote),this.closeTransportForTargetThread(t))}createMsgSocketTransport(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=null;return r=new F({mgr:this,sock:new k,type:t,local:!0,id:e}),r}bindMessageChannel(t){if(this.type!=O.THREAD_MAIN)return void console.error("error this call only in main thread");let e=new MessageChannel;t.portInfo=e.port1,t.remote.postMessage({cmd:136,transportId:t.id,data:e.port2},[e.port2])}setSabBufferInfo(t,e,r){this.type==O.THREAD_MAIN&&(t.sabInfo||(t.sabInfo={}),r&&(r.useCopy=!0),e&&(e.useCopy=!0),t.sabInfo={sender:e,reciver:r},0!=t.target_thread&&(1!=t.target_thread?this.setRemoteTransportSABBUfferRPC(t,t.target_thread):t.setSabBuffer(e,r)))}removeTransportByRemote(t){let e=[];for(let r=0;r<this.transportlists.length;r++){let n=this.transportlists[r];n.remote===t&&e.push(n)}for(let t=0;t<e.length;t++)this.removeTransport(e[t])}reinit(){let t=[...this.transportlists];for(let e=0;e<t.length;e++)this.removeTransport(t[e])}getTransportByType(t){for(let e in this.transportlists){let r=this.transportlists[e],n=1==r.target_thread;if(r.type==t&&n)return r}return null}addTransportListChangeListener(t){-1==this.transportListeners.indexOf(t)&&this.transportListeners.push(t)}remoteTransportListChangeListener(t){let e=this.transportListeners.indexOf(t);-1!=e&&this.transportListeners.splice(e,1)}checkTransport(t){this.transportlists.forEach((e=>{if(!t.transportlists.includes(e.type))return;let r=t.target_thread||1;this.addTransportForTargetThread(e,r)}))}checkTransportForThread(){setTimeout((()=>{this.transportlists.forEach((t=>{this.transportListeners.forEach((e=>{e.TransportListChange(t,!0)}))}))}),0)}addTransportForTargetThread(t,e){const r=e;var n,s,i,o;t.target_thread!=r&&0!=r&&(this.type==O.THREAD_MAIN&&0!=t.target_thread&&t.target_thread!=r&&(this.closeTransportForTargetThread(t),this.bindMessageChannel(t)),t.target_thread=r,1!=r?(this.createRemoteTransportRPC(t,r),this.setRemoteTransportSABBUfferRPC(t,r)):(t.portInfo&&t.setMsgPort(t.portInfo),(null!==(n=t.sabInfo)&&void 0!==n&&n.sender||null!==(s=t.sabInfo)&&void 0!==s&&s.reciver)&&t.setSabBuffer(null===(i=t.sabInfo)||void 0===i?void 0:i.sender,null===(o=t.sabInfo)||void 0===o?void 0:o.reciver)))}closeTransportForTargetThread(t){0!=t.target_thread&&1!=t.target_thread&&this.type==O.THREAD_MAIN&&this.closeRemoteTransportRPC(t,t.target_thread),t.target_thread=0}}u(O,"THREAD_MAIN",1),u(O,"THREAD_SUB",2);const x=t=>{};class L{constructor(){this.onmessage=x,this.status=L.CLOSED,this.onopen=x,this.onclose=x,this.onwer=null}send(t){}delete(){this.onmessage=x,this.onopen=x,this.onclose=x,this.close()}sendVideo(t,e){}sendWasm(t){}sendCommand(t){}open(){this.status=L.OPEN,this.onopen()}close(){this.status=L.CLOSED,this.onclose()}isReady(){return!1}}u(L,"OPEN",1),u(L,"CLOSED",2);class k extends L{constructor(){super({}),this.sab={},this.port=null,this.onmessage=x,this.sender=x,this.videoSender=x,this.reciver=x,this.wasmSender=x,this.oncommand=t=>{}}sendCommand(t){var e;null===(e=this.port)||void 0===e||e.postMessage({cmd:130,data:t})}send(t){this.sender(t)}sendVideo(t,e){this.videoSender(t,e)}sendWasm(t){this.wasmSender(t)}delete(){try{var t,e;this.onmessage=x,this.sender=x,this.videoSender=x,this.reciver=x,this.wasmSender=x;let{consumer:r}=(null===(t=this.sab)||void 0===t?void 0:t.reciver)||{};null==r||r.setDataCallback(x),null==r||r.cancelConsume(),this.sab={},this.port&&(this.port.onmessage=x),null===(e=this.port)||void 0===e||e.close()}catch(t){}}open(){this.status!=L.OPEN||this.onopen()}close(){this.status=L.CLOSED,this.delete(),this.onclose()}_onmessage(t){let{cmd:e,data:r}=t.data;switch(e){case y:this.reciver();break;case v:this.onmessage(r,0);break;case 129:this.status=r,this.status==L.OPEN?this.onopen():this.onclose();break;case 130:this.oncommand(r)}}createSendAndReceive(){if(!this.port)return;let{sender:t,reciver:e}=this.sab,{sabqueue:r,interval:n}=t||{};r?n?(this.sender=t=>{r.enqueue(t)},this.wasmSender=t=>{r.enqueue(t)},this.videoSender=(t,e)=>{if(!r.enqueueSafe([t,e],!1)){let n=new Uint8Array(e.length+t.length);n.set(t,0),n.set(e,t.length),r.enqueueSafe(n)}}):(this.sender=t=>{r.enqueue(t),this.port.postMessage({cmd:y})},this.wasmSender=t=>{r.enqueue(t),this.port.postMessage({cmd:y})},this.videoSender=(t,e)=>{if(!r.enqueueSafe([t,e],!1)){let n=new Uint8Array(e.length+t.length);n.set(t,0),n.set(e,t.length),r.enqueueSafe(n)}this.port.postMessage({cmd:y})}):(this.sender=t=>{this.port.postMessage({cmd:v,data:t},[t.buffer])},this.wasmSender=t=>{let e=new Uint8Array(t.length);e.set(t,0),this.port.postMessage({cmd:v,data:e},[e.buffer])},this.videoSender=(t,e)=>{let r=new Uint8Array(e.length+t.length);r.set(t,0),r.set(e,t.length),this.port.postMessage({cmd:v,data:r},[r.buffer])});let{sabqueue:s,consumer:i,useCopy:o,interval:a,offset:u}=e||{};if(i&&(i.cancelConsume(),i=null),s){const t=o?t=>{this.onmessage(t,0)}:u?t=>{this.onmessage(t.uint8s,t.begin)}:t=>{this.onmessage(t.uint8s,0)};let r=null,n=F.dataTransportMgr.monitorlogfn;if(a&&n){var c;let t=new p({tag:"WCL_M,VDRB"+(null===(c=this.onwer)||void 0===c?void 0:c.type),interval:1e4,reportcallback:H});r=t.timeoutReport.bind(t)}i=new R(s,t,r),e.consumer=i,a?i.consume(a,o):this.reciver=()=>{i.consumeAll(o)}}}setMsgPort(t){t!=this.port&&(this.port&&(this.port.onmessage=x,this.port.close(),this.port=null),this.port=t,this.port&&(this._listeners||(this._listeners=this._onmessage.bind(this)),this.port.onmessage=this._listeners,this.createSendAndReceive()))}setSabBuffer(t,e){if(null!=t&&t.sab){let{sab:e,useCopy:r,interval:n,offset:s,length:i,useOneElement:o}=t,a=new I(s>0?e.buffer:e,void 0,void 0,!!o,s,i,s>0?e:null);this.sab.sender={sabqueue:a,interval:n,useCopy:r,offset:s}}if(null!=e&&e.sab){var r;let{sab:t,useCopy:n,interval:s,offset:i,length:o,useOneElement:a}=e,u=new I(i>0?t.buffer:t,void 0,void 0,!!a,i,o,i>0?t:null),{consumer:c}=(null===(r=this.sab)||void 0===r?void 0:r.reciver)||{};c&&(c.cancelConsume(),this.sab.reciver.consumer=null,this.sab.reciver.sabqueue=null),this.sab.reciver={sabqueue:u,interval:s,useCopy:n,offset:i}}this.createSendAndReceive()}setStatus(t){this.port?this.status!=t&&(this.status=t,this.port.postMessage({cmd:129,data:t})):console.error("MsgQueueSocket not initialized")}}class D{constructor(){}TransportListChange(t,e){}}class F{constructor(t){this.onmessage=x,this.onopen=x,this.onclose=x,this.oncommand=x,this.type=t.type,this.id=t.id||Math.floor(performance.now())<<10|t.type,this.sock=t.sock||new L,this.mgr=t.mgr,this.sock.onmessage=this._onmessage.bind(this),this.sock.onclose=this._onclose.bind(this),this.sock.onopen=this._onopen.bind(this),this.sock.oncommand=this._oncommand.bind(this),this.sock.onwer=this,this.remote=t.remote,this.sabInfo=null,this.portInfo=null,this.target_thread=0,this.local=!!t.local,this.args=t.args,this._create()}_create(){let t=F.dataTransportMgr;t.createTransport(this),!this.local&&t&&t.mainThread&&t.type==O.THREAD_SUB&&t.createRemoteTransportRPC(this,t.mainThread)}_close(){let t=F.dataTransportMgr;const e=t.transportIsExit(this);!this.local&&e&&t.type==O.THREAD_SUB&&t.closeRemoteTransportRPC(this,t.mainThread),e&&t.closeTransport(this)}_oncommand(t){this.oncommand(t)}_onmessage(t,e){this.onmessage(t,e)}_onclose(){this.onclose()}_onopen(){this.onopen()}isReady(){return!0}send(t){this.sock.send(t)}sendCommand(t){this.sock.sendCommand(t)}sendVideo(t,e){this.sock.sendVideo(t,e)}sendWasmData(t){this.sock.sendWasm(t)}setSocket(t){let e=this.sock;this.sock=t,this.sock&&(this.sock.onwer=this,this.sock.onmessage=this._onmessage.bind(this),this.sock.onclose=this._onclose.bind(this),this.sock.onopen=this._onopen.bind(this)),e&&e.delete()}open(){this.sock.open()}close(){this._close(),this.sock.close()}setMsgPort(t){if(!(this.sock instanceof k))throw new Error("tansport sock is not a MsgQueueSocket");this.sock.setMsgPort(t)}setSabBuffer(t,e){if(!(this.sock instanceof k))throw new Error("tansport sock is not a MsgQueueSocket");this.sock.setSabBuffer(t,e)}setStatus(t){this.sock instanceof k&&this.sock.setStatus(t)}}u(F,"UDP",0),u(F,"TCP",1),u(F,"RLB_UDP",2),u(F,"dataTransportMgr",null);class U{constructor(t){this.sock=null,this.onmessage=x}isReady(){return!1}send(){}sendVideo(){}sendCommand(){}setStatus(t){}}function H(t,e,r,n){var s;null===(s=O.monitorlogfn)||void 0===s||s.call(O,t,"".concat(e,",").concat(r,",").concat(n))}class N extends D{constructor(){super()}TransportListChange(t,e){}TransportStatus(t,e,r){}DataChannelStatus(t,e){}}class B extends D{constructor(t){super(),this.transportMap={},this.type=t.type,this.mgr=t,this.channellists=[],this.channelListeners=[]}addDataChannel(t){if(t instanceof S){if(-1==this.channellists.findIndex((e=>e==t))){this.channellists.push(t);try{this.mgr.checkTransport(t)}catch(t){console.error("addDataChannel error",t)}this.channelListeners.forEach((e=>{e.DataChannelStatus(t,!0)}))}}else console.error("channel must be a DataChannelWrapper")}TransportListChange(t,e){let r=this.getChannelByTransportType(t.type);if(e&&null!=r&&r.isReady()){let e=r.target_thread||1;this.mgr.addTransportForTargetThread(t,e)}e||this.mgr.closeTransportForTargetThread(t),r&&this.channelListeners.forEach((n=>{n.TransportStatus(t,r,e)})),this.channelListeners.forEach((r=>{r.TransportListChange(t,e)}))}removeDataChannel(t){if(!(t instanceof S))return void console.error("channel must be a DataChannelWrapper");let e=this.channellists.indexOf(t);-1!==e&&this.channellists.splice(e,1),this.channelListeners.forEach((e=>{e.DataChannelStatus(t,!1)}))}addMediaChannelController(t){t instanceof N?-1==this.channelListeners.findIndex((e=>e==t))&&this.channelListeners.push(t):console.error("controller must be a MediaChannelController")}rmMediaChannelController(t){let e=this.channelListeners.findIndex((e=>e==t));-1!=e&&this.channelListeners.splice(e,1)}getChannelByTransportType(t){for(let e=0;e<this.channellists.length;e++){let r=this.channellists[e];if(r.isReady()&&r.transportlists.includes(t))return r}return null}reinit(){let t=this.channellists;this.channellists=[],t.forEach((t=>{t.isReady()&&(t.close(),this.channelListeners.forEach((e=>{e.DataChannelStatus(t,!1)})))}))}}function j(t,e){return new F({sock:new k,type:t,local:!1,userArgs:e})}function q(t){postMessage({status:g,data:t})}function Q(t,e=null){var r,n;if(e instanceof Error||e instanceof ErrorEvent){const s=e;t+=" Code: "+(null==s?void 0:s.code)+" Message: "+(null==e?void 0:e.message)+" Stack: "+(null!==(n=null===(r=null==s?void 0:s.error)||void 0===r?void 0:r.stack)&&void 0!==n?n:null==s?void 0:s.stack),e=null}postMessage({status:61,errorMessage:t,errorEvent:e})}function W(t){var e,r,n,s,i,o;for(e="",n=t.length,r=0;r<n;)switch((s=t[r++])>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:e+=String.fromCharCode(s);break;case 12:case 13:i=t[r++],e+=String.fromCharCode((31&s)<<6|63&i);break;case 14:i=t[r++],o=t[r++],e+=String.fromCharCode((15&s)<<12|(63&i)<<6|63&o)}return e}u(B,"target",null),new Error,new Map,new Map,new class{constructor(){this.ssrcInfoMap=new Map,this.timer=null}updateSSRCInfo(t,e){this.ssrcInfoMap.has(t)||this.ssrcInfoMap.set(t,{firstTime:0,lastTime:0,frames:0,fps:0}),this._calculateFPS(t,e),this._removeZeroFPS()}_calculateFPS(t,e){const r=this.ssrcInfoMap.get(t);if(0===r.frames?r.firstTime=e:r.lastTime=e,r.frames+=1,r.frames>2&&r.frames%5==0&&r.lastTime-r.firstTime>=1e3){const e=Math.floor(1e3/((r.lastTime-r.firstTime)/(r.frames-1)));r.fps!==e&&(this._notifyFPS(t,e),r.fps=e),r.firstTime=r.lastTime,r.frames=1}}_removeZeroFPS(){let t=Date.now();this.ssrcInfoMap.forEach(((e,r)=>{const n=this.ssrcInfoMap.get(r);n&&n.lastTime&&t-n.lastTime>2e3&&(this.ssrcInfoMap.delete(r),this._notifyFPS(r,0))}))}_notifyFPS(t,e){postMessage({status:66.6,data:{ssrc:t,fps:e}})}_checkIfNewFrameComing(){this.timer&&(clearTimeout(this.timer),this.timer=null),this.timer=setTimeout((()=>{this._removeZeroFPS(),this.timer=null}),2500)}},new class{constructor(){this.ssrcInfoMap=new Map,this.timer=null}updateSSRCInfo(t,e){this.ssrcInfoMap.has(t)||this.ssrcInfoMap.set(t,{timeList:[],lastTime:0,fps:0}),this._calculateFPS(t,e),this._removeZeroFPS(),this._checkIfNewFrameComing()}_calculateFPS(t,e){const r=this.ssrcInfoMap.get(t);if(r.timeList.push(e),r.lastTime=e,r.timeList.length>2){const e=r.timeList[0],n=r.timeList[r.timeList.length-1];if(n-e>=1e3){const s=Math.floor(1e3/((n-e)/(r.timeList.length-1)));r.fps!==s&&(this._notifyFPS(t,s),r.fps=s),r.timeList=[]}}r.timeList.length>30&&(r.timeList=r.timeList.slice(r.timeList.length-30))}_removeZeroFPS(){this.ssrcInfoMap.forEach(((t,e)=>{const r=this.ssrcInfoMap.get(e);r&&Date.now()-r.lastTime>2e3&&(this.ssrcInfoMap.delete(e),this._notifyFPS(e,0))}))}_notifyFPS(t,e){postMessage({status:66.6,data:{ssrc:t,fps:e}})}_checkIfNewFrameComing(){this.timer&&(clearTimeout(this.timer),this.timer=null),this.timer=setTimeout((()=>{this._removeZeroFPS(),this.timer=null}),2500)}};const V=(new Map([["useinbandfec",1],["maxaveragebitrate",48e3],["maxplaybackrate",24e3],["sprop-maxcapturerate",24e3],["sprop-stereo",null],["stereo",null]]),new Map([["useinbandfec",null],["maxaveragebitrate",96e3],["maxplaybackrate",48e3],["sprop-maxcapturerate",48e3],["sprop-stereo",1],["stereo",1]]),new Map([["useinbandfec",null],["maxaveragebitrate",96e3],["maxplaybackrate",48e3],["sprop-maxcapturerate",48e3],["sprop-stereo",1],["stereo",1]]),new Map([["useinbandfec",null],["maxaveragebitrate",128e3],["maxplaybackrate",48e3],["sprop-maxcapturerate",48e3],["sprop-stereo",1],["stereo",1]]),new Map([["useinbandfec",null],["maxaveragebitrate",128e3],["maxplaybackrate",48e3],["sprop-maxcapturerate",48e3],["sprop-stereo",1],["stereo",1]]),new Map([["useinbandfec",null],["maxaveragebitrate",96e3],["maxplaybackrate",48e3],["sprop-maxcapturerate",48e3]]),new Map([["useinbandfec",1],["maxaveragebitrate",64e3],["maxplaybackrate",24e3],["sprop-maxcapturerate",24e3],["sprop-stereo",null],["stereo",null]]),new Map([["stereo",1]]),t=>btoa(String.fromCharCode(...new Uint8Array(t))));class Y{constructor(t){u(this,"process",(async()=>{if(this.processList.length){const t=this.processList.splice(0,30),e=await this.encryptData(this.mergeBuffer(t));this.writeLog(V(e)),this.writeLog(this.EOL)}requestAnimationFrame(this.process)})),this.textEncoder=new TextEncoder,this.textDecoder=new TextDecoder,this.EOL=this.textEncoder.encode("\n"),this.processList=[],this.writeLog=t,this.key=null,this.initEncryptPromise=this.initEncrypt()}addLogData(t,e){if(!t||!e)return;const r=this.textEncoder.encode(t);this.processList.push(r),this.processList.push(e),this.processList.push(this.EOL)}async initEncrypt(){this.key=await crypto.subtle.generateKey({name:"AES-GCM",length:256},!0,["encrypt","decrypt"]),this.iv=crypto.getRandomValues(new Uint8Array(12));const t=new Uint8Array(await crypto.subtle.exportKey("raw",this.key)),e=new Uint8Array([0]);this.writeLog("v"),this.writeLog(this.EOL),this.writeLog(V(e.buffer)),this.writeLog(this.EOL);const r=[t,this.iv];this.writeLog("h"),this.writeLog(this.EOL),this.writeLog(V(this.mergeBuffer(r).buffer)),this.writeLog(this.EOL),this.startProcess()}mergeBuffer(t){const e=t.reduce(((t,e)=>t+e.length),0),r=new Uint8Array(e);let n=0;for(const e of t)r.set(e,n),n+=e.length;return r}async encryptData(t){return await this.initEncryptPromise,await crypto.subtle.encrypt({name:"AES-GCM",iv:this.iv},this.key,t)}startProcess(){requestAnimationFrame(this.process)}}class z{constructor(t){this.port=null,this.cache=[],this.stopCache=!1,t&&(this.logProcesser=new Y(this.writeLog.bind(this)))}readyForLog(){}sendLog(t){}writeLog(t){this.readyForLog()?(this.stopCache||(this.cache.forEach((t=>this.sendLog(t))),this.clearCache()),this.sendLog(t)):this.stopCache||this.cache.push(t)}clearCache(){this.stopCache=!0,this.cache=[]}getTime(){const t=new Date;return t.getHours()+":"+t.getMinutes()+":"+t.getSeconds()+":"+t.getMilliseconds()}getLogData(t,e,r){if(e){var n=new Uint8Array(r?e+1:e),s=(self.GROWABLE_HEAP_I8?self.GROWABLE_HEAP_I8():Module.HEAP8).subarray(t+0,t+e);return n.set(s,0,e),r&&(n[e]=10),n}return t.data}writeWasmLog(t,e){const r=this.getTime(),n=this.getLogData(t,e);this.logProcesser?this.logProcesser.addLogData(r,n):(this.writeLog(r),this.writeLog(n),this.writeLog("\n"))}}class G extends z{constructor(){super(!0),this.port=null,this.ready=!1}init(){let t=0;const e=r=>{"local_log_port"===r.data.command?this.port||(this.port=r.data.data):"local_log_ready"===r.data.command&&(this.ready=!0,self.removeEventListener("message",e),clearTimeout(t),this.stopCache||(this.cache.forEach((t=>this.sendLog(t))),this.clearCache()))};self.addEventListener("message",e),t=setTimeout((()=>{self.removeEventListener("message",e),this.clearCache()}),6e4)}readyForLog(){return!!this.port&&this.ready}sendLog(t){this.port.postMessage(t)}}var $,K,X,J;!function(t){t[t.Unknow=0]="Unknow",t[t.MediaCommand=1]="MediaCommand",t[t.P2PControl=2]="P2PControl",t[t.MeshControl=3]="MeshControl"}($||($={})),function(t){t[t.normal=0]="normal",t[t.child=1]="child",t[t.parent=2]="parent",t[t.invalid=31]="invalid"}(K||(K={})),function(t){t[t.bridge=0]="bridge",t[t.setRole=1]="setRole",t[t.connectTestParams=2]="connectTestParams",t[t.reportConnectedSet=3]="reportConnectedSet",t[t.notifyChildParentLeave=4]="notifyChildParentLeave",t[t.notifyParentChildLeave=5]="notifyParentChildLeave",t[t.availableParents=6]="availableParents",t[t.updateNodeStatus=7]="updateNodeStatus",t[t.joinSuccess=8]="joinSuccess",t[t.kickChild=9]="kickChild",t[t.leaveParent=10]="leaveParent",t[t.subscriptionMap=11]="subscriptionMap",t[t.channelopt=12]="channelopt",t[t.joinSuccessConfirm=13]="joinSuccessConfirm",t[t.registerMeshNode=14]="registerMeshNode",t[t.meshAllowTalk=15]="meshAllowTalk",t[t.statInfo=16]="statInfo",t[t.adapt=17]="adapt",t[t.refershConnectParams=18]="refershConnectParams",t[t.joinConnectedSetConfirm=19]="joinConnectedSetConfirm",t[t.registerMeshNodeResult=20]="registerMeshNodeResult",t[t.meshSigType=21]="meshSigType",t[t.meshSigKey=22]="meshSigKey",t[t.mediaAccess=23]="mediaAccess",t[t.unknown=1e3]="unknown"}(X||(X={})),function(t){t[t.Unknow=0]="Unknow",t[t.Offer=1]="Offer",t[t.Answer=2]="Answer"}(J||(J={}));class Z{constructor(){this._interval=-1,this.monitorworkers={},this.timeoutcallbackfn=(t,e)=>{}}setTimeoutCallback(t){this.timeoutcallbackfn=t}registerWorker(t,e){if(t in this.monitorworkers){let e=this.monitorworkers[t];e.worker.removeEventListener("message",e.listener),delete this.monitorworkers[t]}let r={id:t,worker:e},n=this._recvheartbeat.bind(this,r);r.listener=n,r.lastedtimestamp=Date.now(),r.timeoutcount=0,r.worker.addEventListener("message",r.listener),this.monitorworkers[t]=r}unRegisterWorker(t){if(!(t in this.monitorworkers))return;let e=this.monitorworkers[t];delete this.monitorworkers[t],e.worker.removeEventListener("message",e.listener)}_recvheartbeat(t,e){let r=e.data;137===r.cmd&&(t.lastedtimestamp=r.timestamp,t.timeoutcount=0)}start(t){const e="undefined"!=typeof DedicatedWorkerGlobalScope&&t&&t instanceof DedicatedWorkerGlobalScope;if(-1!=this._interval)return;if(e)return void(this._interval=setInterval((()=>{t.postMessage({cmd:137,timestamp:Date.now()})}),Z.INTREVAL_TIME_MS));const r=()=>{this._interval=setTimeout((()=>{r();let t=Z.instance,e=Object.keys(t.monitorworkers),n=Date.now();e.forEach((e=>{let r=t.monitorworkers[e];r.timeoutcount>5?n-r.lastedtimestamp>Z.HEART_TIMEOUT_MS&&(t.timeoutcallbackfn(r.id,n-r.lastedtimestamp),r.lastedtimestamp=n):(r.timeoutcount++,r.worker.postMessage({command:138}))}))}),Z.INTREVAL_TIME_MS)};r()}close(){try{this._interval&&clearTimeout(this._interval),this._interval=-1,Object.keys(this.monitorworkers).forEach((t=>{let e=this.monitorworkers[t];delete this.monitorworkers[t],e.worker.removeEventListener("message",e.listener)}))}catch(t){}}}u(Z,"INTREVAL_TIME_MS",3e3),u(Z,"HEART_TIMEOUT_MS",15e3),u(Z,"MAX_HEART_TIMEOUT_MS",3e4),u(Z,"instance",null);const tt=Date.now()-performance.now();function et(){return{meetingType:0,oldRole:1,newRole:1,udid:"",duration:1,dataDistributeVideo:0,latencyVideo:-1,dataDistributeAudio:0,latencyAudio:-1,dataDistributeAs:0,latencyAs:-1,qosScore:-1,deviceName:"WEB-CLIENT",childNode:-1,dataDistribute:0,latency:-1,createTime:performance.now(),modifyTime:performance.now()}}self.wasmSuccessEvent=7,self.wasmFailEvent=-7,self.downloadAndInstantiateWebAssembly=async function(t,e){try{const r=await new Promise(((t,e)=>{const r=n=>{let s=n.data;"DOWNLOAD_WASM_FROM_MAIN_THREAD_OK"===s.command?(q("DE"),self.removeEventListener("message",r),t(s.data)):"DOWNLOAD_WASM_FROM_MAIN_THREAD_FAILED"===s.command&&(self.removeEventListener("message",r),e(new Error("Failed to download WASM file: ".concat(wasmUrl," from main thread"))))};self.addEventListener("message",r),q("DS"),postMessage({status:30,url:wasmUrl})}));let n=await WebAssembly.instantiate(r,t);n.instance?(self.wasmModuleToShare=n.module,e(n.instance)):(self.wasmModuleToShare=r,e(n))}catch(t){q("IF"),Q("E:H Failed to download and instantiate WASM file: ".concat(wasmUrl),t)}};const rt=1,nt=3,st=2;self.addEventListener("error",(t=>{Q(t)}));let it="undefined"!=typeof RTCDataChannel;var ot,at,ut,ct,lt,_t,ht,dt,ft,pt,mt;postMessage({status:131,data:it});var gt=new Promise(((t,e)=>{mt=t}));self.onWasmModuleReady=()=>{ot=Module.cwrap("_mesh_init","number",[]),Module.cwrap("_mesh_uninit",null,["number"]),at=Module.cwrap("_mesh_set_role",null,["number","number"]),pt=Module.cwrap("_mesh_thread_run","number",["number"]),ut=Module.cwrap("_mesh_add_child","number",["number","number","number"]),lt=Module.cwrap("_mesh_bad_net","number",["number","number","number"]),ct=Module.cwrap("_mesh_rm_child","number",["number","number","number"]),_t=Module.cwrap("_mesh_send",null,["number","number","number","number","number","number"]),ht=Module.cwrap("_mesh_recv",null,["number","number","number","number","number"]),Module.cwrap("_mesh_reciver_recv",null,["number","number","number","number"]),dt=Module.cwrap("_mesh_sub_infomap",null,["number","number","number"]),ft=Module.cwrap("_mesh_channle_opt","number",["number","number","number"]),Module.cwrap("_mesh_out_filter_test",null,["number","number","number","number","number","number"]),Module.cwrap("_wcl_enable_log","number",["number","string","number"]),Et(new Uint8Array(1500)),mt(!0),postMessage({status:194})},self.onmessage=async t=>{await gt;const e=t.data;switch(e.command){case 136:e.isSafar,Bt||null===(r=Bt=function(){let t=!1;try{t=!1}catch(t){}return t?new G:null}())||void 0===r||r.init({workerType:"mesh"});break;case 144:!function(t){let e=Mt;Mt=t.data,q("MESHROLE:".concat(Mt)),at(vt,Mt),yt&&Mt!=e&&(clearInterval(yt),yt=0);const r=Mt==K.parent?10:50;yt||Mt==K.normal||(yt=setInterval((()=>{pt(vt)}),r))}(e);break;case 140:!function(t){const{opt:e}=t;"add"==e?function(t){const{cid:e,nodeid:r,peerId:n}=t;if(q("MESHCHILDADD:".concat(n,",").concat(e,",").concat(r)),It.has(e))return!1;const s=Ot.findIndex((t=>0==t));if(-1==s)return q("MESHERR:no sender"),!1;Ot[s]=1,It.set(e,{idx:s,nodeid:r,peerId:n,cid:e}),Ht(n,!0),se()}(t):"remove"==e&&function(t){const{cid:e,peerId:r}=t;if(q("MESHCHILDRM:".concat(r,",").concat(e)),!It.has(e))return!1;Ht(r,!1);const{idx:n}=It.get(e);It.delete(e),Ot[n]=0,xt[n]=St,Rt.delete(r),se()}(t)}(e);break;case 134:!function(t){const{id:e,channel:r,tag:n,type:s}=t,i=Mt;q("MESHP2PNEW:".concat(e));let o=new S(e,s,r,null,n);Rt.set(e,{datachannel:o,open:!1});o.onopen(((t,r)=>{postMessage({cmd:124,id:t.id}),q("MESHP2PADD:".concat(null==t?void 0:t.id));try{i==K.parent&&(Rt.has(e)?(Rt.get(e).open=!0,Ht(e,!0)):o.close())}catch(t){Q("mesh add p2pchannel error",t)}}).bind(null,o)),o.onclose(((t,e)=>{q("MESHP2PDEL:".concat(null==t?void 0:t.id)),postMessage({cmd:126,id:t.id}),Ut(t)}).bind(null,o)),o.open(!0)}(e);break;case 135:!function(t){try{const{id:e}=t;q("MESHP2PRM:".concat(e)),Ht(e,!1),Rt.delete(e)}catch(t){Q("mesh remove p2pchannel error",t)}}(e);break;case 143:!function(t){const{type:e,info:r}=t;let n=Et(r);q("MESHOPT:".concat(e,":").concat(r.length)),"subInfo"==e&&dt(vt,n,r.length),"channelOpt"==e&&ft(vt,n,r.length)}(e);break;case 138:self.postMessage({cmd:137,timestamp:Date.now()})}var r};var vt=null,yt=0,bt=null,wt=0,Mt=0;function Et(t){return t.length>wt&&(wt=2*t.length,bt&&_free(bt),bt=_malloc(wt)),writeArrayToMemory(t,bt),bt}gt.then((()=>{vt=ot()}));const St={send:()=>{}};function At(t){const e=new DataView(t.buffer),r=e.getUint32(0);if(2==r){const r=e.getUint32(4),n=e.getUint32(8),s=Et(t),i=t.length-12;_t(vt,r,s+12,i,n,nt)}else r==kt?Nt(t):function(t){if(t[0]==Dt||t[0]==Ft)Nt(t);else{const e=new DataView(t.buffer),r=e.getUint32(4),n=e.getUint32(8),s=Et(t),i=t.length-12;_t(vt,r,s+12,i,n,st)}}(t)}function Tt(t){if(t[0]==Lt)Nt(t);else if(Mt==K.parent){const e=Et(t),r=t[4]|t[5]<<8|t[6]<<16|t[7]<<24,n=t.length-8;_t(vt,r,e+8,n,0,rt)}}var Pt=null,Ct=null,It=new Map,Rt=new Map,Ot=Array(30).fill(0),xt=Array(41).fill(St);const Lt=6,kt=7,Dt=78,Ft=79;function Ut(t){let e=xt.findIndex((e=>e==t));-1!=e&&(xt[e]=St),null==t||t.onopen((()=>{})),null==t||t.onclose((()=>{})),null==t||t.onmessage((()=>{})),null==t||t.close()}function Ht(t,e){const r=Array.from(It.values()).find((e=>e.peerId==t));if(!r)return;const{open:n,datachannel:s}=Rt.get(t)||{},{idx:i,nodeid:o}=r;if(e&&n&&s){xt[i]=s;const t=t=>{let e=new Uint8Array(t.data),r=e[2];if(0==e[0])s.send(e);else{let t=Et(e);ht(vt,t,e.length,r,i)}};s.onmessage(t),ut(vt,i,o);let e=131072;s.datachannel.bufferedAmountLowThreshold=e,s.datachannel.onbufferedamountlow=()=>{lt(vt,i,0),s.bufferIncreaseCount=0,s.lastBufferedAmount=0,s.highWaterMarkCount=0},s.meshDowngradeTimerId=setInterval((()=>{s.lastBufferedAmount<s.datachannel.bufferedAmount?s.bufferIncreaseCount+=1:s.bufferIncreaseCount=0,s.datachannel.bufferedAmount>2*e?(s.highWaterMarkCount+=1,s.bufferIncreaseCount>=5||s.highWaterMarkCount>=5||s.datachannel.bufferedAmount>=8*e?(q("MESHBMKICK:".concat(s.datachannel.bufferedAmount,"-").concat(s.lastBufferedAmount,"-").concat(s.bufferIncreaseCount,"-").concat(s.highWaterMarkCount)),ee(o,1)):lt(vt,i,1)):s.highWaterMarkCount=0,s.lastBufferedAmount=s.datachannel.bufferedAmount}),2e3)}e||(xt[i]=St,ct(vt,i,o),clearInterval(s.meshDowngradeTimerId),Ut(s))}function Nt(t){xt.forEach((e=>{e.send(t)}))}var Bt=null;function jt(t,e){Bt&&Bt.writeWasmLog(t,e)}function qt(t,e){let r=W(HEAPU8.subarray(t,t+e));r.includes("qos_sender_t::smooth_send")||r.includes("pwa_mesh_data_filter_t")||r.includes("channel_data_filter_t")||Bt&&Bt.writeWasmLog(t,e)}function Qt(t,e,r,n,s,i,o){var a=new Uint8Array(e+4),u=HEAPU8.subarray(t+0,t+e);a.set(u,4,e),a[0]=r,a[1]=n,a[2]=st,xt[o].send(a),ne.statInfo.dataDistributeAs+=a.length}function Wt(t,e,r,n,s,i,o){var a=103==r?8:4,u=new Uint8Array(e+a),c=HEAPU8.subarray(t+0,t+e);u.set(c,a,e),u[0]=r,u[1]=n,u[2]=nt,103==r&&(u[4]=255&o,u[5]=o>>8&255,u[6]=o>>16&255,u[7]=o>>24&255),xt[i].send(u),ne.statInfo.dataDistributeVideo+=u.length}function Vt(t,e,r,n,s,i,o,a){const u=ne.statInfo;u.latencyAudio=(3*u.latencyAudio+e)/4}function Yt(t,e,r,n,s,i,o,a){const u=ne.statInfo;u.latencyAs=(3*u.latencyAs+e)/4}function zt(){}function Gt(t,e,r,n,s,i,o,a){const u=ne.statInfo;u.latencyVideo=(3*u.latencyVideo+e)/4}function $t(t,e,r,n,s){const i=ne.statInfo,o=Math.max(i.qosScore,r);i.qosScore=o}function Kt(t,e,r,n,s,i){var o=new Uint8Array(r+4),a=HEAPU8.subarray(e+0,e+r);o.set(a,4,r),o[0]=t,o[1]=n,o[2]=rt,xt[i].send(o),ne.statInfo.dataDistributeAudio+=o.length}function Xt(t,e){const r=W(HEAPU8.subarray(t,t+e));q("MESHLOG:".concat(r))}function Jt(t){}function Zt(t,e){}function te(t,e,r){const n=W(HEAPU8.subarray(t,t+e));q("MESHQOS:".concat(n))}function ee(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const r=Array.from(It.values()).find((e=>e.nodeid>>10==t>>10));if(!r)return;const{nodeid:n,cid:s,peerId:i}=r;postMessage({status:M,nodeid:n,cid:s,peerId:i,reason:e})}function re(t,e,r){const n=Array.from(It.values()).find((e=>e.nodeid>>10==t>>10));if(!n)return;const{nodeid:s,cid:i,peerId:o}=n;postMessage({status:w,nodeid:s,cid:i,peerId:o,session_type:e,sub_mode_limit:r})}let ne=new class{constructor(){this.intervalid=-1,this.onreportfn=null,this.statInfo=et()}set onreport(t){this.onreportfn=t}start(){-1==this.intervalid&&(this.statInfo.createTime=performance.now(),this.intervalid=setInterval(this._updatedata.bind(this),3e4))}_updatedata(){var t;let e=this.statInfo;this.statInfo=et(),e.modifyTime=performance.now(),e.duration=Math.round(e.modifyTime-e.createTime),e.createTime=Math.round(e.createTime+tt),e.modifyTime=Math.round(e.modifyTime+tt),e.dataDistribute=e.dataDistributeAs+e.dataDistributeAudio+e.dataDistributeVideo,e.latencyAs=Math.floor(e.latencyAs),e.latencyAudio=Math.floor(e.latencyAudio),e.latencyVideo=Math.floor(e.latencyVideo),e.latency=Math.max(e.latencyAs,e.latencyAudio,e.latencyVideo),null===(t=this.onreportfn)||void 0===t||t.call(this,e)}stop(){-1!=this.intervalid&&(this._updatedata(),clearInterval(this.intervalid),this.intervalid=-1)}};function se(){It.size?ne.start():ne.stop()}var ie;ne.onreport=function(t){t.newRole=K.parent,postMessage({status:171,data:t})},function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;try{const e="undefined"!=typeof DedicatedWorkerGlobalScope;if(F.dataTransportMgr)return;let r=new O({type:e?O.THREAD_SUB:O.THREAD_MAIN,remote:e?self:null});F.dataTransportMgr=r,r.monitorlogfn=t,B.target||(B.target=new B(r),r.addTransportListChangeListener(B.target)),e&&self.addEventListener("message",r._onrecvmainthreadlistener.bind(r))}catch(t){console.error("<<<< InitDataTransportModule",t)}}((function(t,e){postMessage({status:21,data:"".concat(t,":").concat(e)})})),ie=self,Z.instance||(Z.instance=new Z),Z.instance.start(ie),async function(){var t,e;await gt,null===(t=Pt)||void 0===t||t.close(),null===(e=Ct)||void 0===e||e.close(),Pt=j(-2147483647),Ct=j(-2147483646),Pt.onmessage=Tt,Ct.onmessage=At}(),Object.keys(t).forEach((e=>self[e]=t[e]))})()})(),self.__wasmCodeDataEndFlag=1,(Module=void 0!==Module?Module:{}).locateFile=function(t){if(t.endsWith("wasm"))return wasmUrl},Module.instantiateWasm=function(t,e){return self.downloadAndInstantiateWebAssembly(t,e),{}},isZoomWasm32Bit&&(Module.wasmMemory=new WebAssembly.Memory({initial:(nonsabVB,1024),maximum:nonsabVB?1024:4096})),Module.onRuntimeInitialized=function(){postMessage({status:wasmSuccessEvent}),self.onWasmModuleReady()},Module.onAbort=function(t){postMessage({status:wasmFailEvent,data:t})};var read_,readAsync,readBinary,setWindowTitle,Module=void 0!==Module?Module:{},moduleOverrides=Object.assign({},Module),arguments_=[],thisProgram="./this.program",quit_=(t,e)=>{throw e},ENVIRONMENT_IS_WEB=!1,ENVIRONMENT_IS_WORKER=!0,scriptDirectory="";function locateFile(t){return Module.locateFile?Module.locateFile(t,scriptDirectory):scriptDirectory+t}(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&(ENVIRONMENT_IS_WORKER?scriptDirectory=self.location.href:"undefined"!=typeof document&&document.currentScript&&(scriptDirectory=document.currentScript.src),scriptDirectory=0!==scriptDirectory.indexOf("blob:")?scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1):"",read_=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},ENVIRONMENT_IS_WORKER&&(readBinary=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),readAsync=(t,e,r)=>{var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?e(n.response):r()},n.onerror=r,n.send(null)},setWindowTitle=t=>document.title=t);var wasmBinary,out=Module.print||console.log.bind(console),err=Module.printErr||console.warn.bind(console);Object.assign(Module,moduleOverrides),moduleOverrides=null,Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram),Module.quit&&(quit_=Module.quit),Module.wasmBinary&&(wasmBinary=Module.wasmBinary);var wasmMemory,noExitRuntime=Module.noExitRuntime||!0;"object"!=typeof WebAssembly&&abort("no native wasm support detected");var EXITSTATUS,buffer,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64,ABORT=!1,UTF8Decoder="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function UTF8ArrayToString(t,e,r){for(var n=e+r,s=e;t[s]&&!(s>=n);)++s;if(s-e>16&&t.buffer&&UTF8Decoder)return UTF8Decoder.decode(t.subarray(e,s));for(var i="";e<s;){var o=t[e++];if(128&o){var a=63&t[e++];if(192!=(224&o)){var u=63&t[e++];if((o=224==(240&o)?(15&o)<<12|a<<6|u:(7&o)<<18|a<<12|u<<6|63&t[e++])<65536)i+=String.fromCharCode(o);else{var c=o-65536;i+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else i+=String.fromCharCode((31&o)<<6|a)}else i+=String.fromCharCode(o)}return i}function UTF8ToString(t,e){return t?UTF8ArrayToString(HEAPU8,t,e):""}function stringToUTF8Array(t,e,r,n){if(!(n>0))return 0;for(var s=r,i=r+n-1,o=0;o<t.length;++o){var a=t.charCodeAt(o);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&t.charCodeAt(++o)),a<=127){if(r>=i)break;e[r++]=a}else if(a<=2047){if(r+1>=i)break;e[r++]=192|a>>6,e[r++]=128|63&a}else if(a<=65535){if(r+2>=i)break;e[r++]=224|a>>12,e[r++]=128|a>>6&63,e[r++]=128|63&a}else{if(r+3>=i)break;e[r++]=240|a>>18,e[r++]=128|a>>12&63,e[r++]=128|a>>6&63,e[r++]=128|63&a}}return e[r]=0,r-s}function stringToUTF8(t,e,r){return stringToUTF8Array(t,HEAPU8,e,r)}function lengthBytesUTF8(t){for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++r):e+=3}return e}function updateGlobalBufferAndViews(t){buffer=t,Module.HEAP8=HEAP8=new Int8Array(t),Module.HEAP16=HEAP16=new Int16Array(t),Module.HEAP32=HEAP32=new Int32Array(t),Module.HEAPU8=HEAPU8=new Uint8Array(t),Module.HEAPU16=HEAPU16=new Uint16Array(t),Module.HEAPU32=HEAPU32=new Uint32Array(t),Module.HEAPF32=HEAPF32=new Float32Array(t),Module.HEAPF64=HEAPF64=new Float64Array(t)}var wasmTable,INITIAL_MEMORY=Module.INITIAL_MEMORY||20971520;(wasmMemory=Module.wasmMemory?Module.wasmMemory:new WebAssembly.Memory({initial:INITIAL_MEMORY/65536,maximum:2048}))&&(buffer=wasmMemory.buffer),INITIAL_MEMORY=buffer.byteLength,updateGlobalBufferAndViews(buffer);var __ATPRERUN__=[],__ATINIT__=[],__ATPOSTRUN__=[],runtimeInitialized=!1;function preRun(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=!0,callRuntimeCallbacks(__ATINIT__)}function postRun(){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(t){__ATPRERUN__.unshift(t)}function addOnInit(t){__ATINIT__.unshift(t)}function addOnPostRun(t){__ATPOSTRUN__.unshift(t)}var runDependencies=0,runDependencyWatcher=null,dependenciesFulfilled=null;function addRunDependency(t){runDependencies++,Module.monitorRunDependencies&&Module.monitorRunDependencies(runDependencies)}function removeRunDependency(t){if(runDependencies--,Module.monitorRunDependencies&&Module.monitorRunDependencies(runDependencies),0==runDependencies&&(null!==runDependencyWatcher&&(clearInterval(runDependencyWatcher),runDependencyWatcher=null),dependenciesFulfilled)){var e=dependenciesFulfilled;dependenciesFulfilled=null,e()}}function abort(t){throw Module.onAbort&&Module.onAbort(t),err(t="Aborted("+t+")"),ABORT=!0,EXITSTATUS=1,t+=". Build with -sASSERTIONS for more info.",new WebAssembly.RuntimeError(t)}var wasmBinaryFile,dataURIPrefix="data:application/octet-stream;base64,";function isDataURI(t){return t.startsWith(dataURIPrefix)}function getBinary(t){try{if(t==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(t);throw"both async and sync fetching of the wasm failed"}catch(t){abort(t)}}function getBinaryPromise(){return wasmBinary||!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_WORKER||"function"!=typeof fetch?Promise.resolve().then((function(){return getBinary(wasmBinaryFile)})):fetch(wasmBinaryFile,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at '"+wasmBinaryFile+"'";return t.arrayBuffer()})).catch((function(){return getBinary(wasmBinaryFile)}))}function createWasm(){var t={a:asmLibraryArg};function e(t,e){var r=t.exports;Module.asm=r,wasmTable=Module.asm.W,addOnInit(Module.asm.B),removeRunDependency("wasm-instantiate")}function r(t){e(t.instance)}function n(e){return getBinaryPromise().then((function(e){return WebAssembly.instantiate(e,t)})).then((function(t){return t})).then(e,(function(t){err("failed to asynchronously prepare wasm: "+t),abort(t)}))}if(addRunDependency("wasm-instantiate"),Module.instantiateWasm)try{return Module.instantiateWasm(t,e)}catch(t){return err("Module.instantiateWasm callback failed with error: "+t),!1}return wasmBinary||"function"!=typeof WebAssembly.instantiateStreaming||isDataURI(wasmBinaryFile)||"function"!=typeof fetch?n(r):fetch(wasmBinaryFile,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,t).then(r,(function(t){return err("wasm streaming compile failed: "+t),err("falling back to ArrayBuffer instantiation"),n(r)}))})),{}}isDataURI(wasmBinaryFile="net.wasm")||(wasmBinaryFile=locateFile(wasmBinaryFile));var ASM_CONSTS={38804:(t,e,r,n,s,i,o)=>{video_data_from_qos(t,e,r,n,s,i,o)},38856:(t,e,r)=>{video_encode_fec_info(t,e,r)},38894:(t,e,r)=>{video_encode_bandwidth_alloc(t,e,r)},38939:(t,e,r,n,s,i,o,a,u)=>{video_network_info_indication(t,e,r,n,s,i,o,a,u)},39001:(t,e,r,n,s,i,o,a,u)=>{as_network_info_indication(t,e,r,n,s,i,o,a,u)},39060:(t,e,r,n,s,i,o,a)=>{video_as_data_from_qos(t,e,r,n,s,i,o,a)},39118:(t,e,r)=>{as_encode_fec_info(t,e,r)},39153:(t,e,r)=>{as_encode_bandwidth_alloc(t,e,r)},39195:(t,e,r,n,s,i)=>{recv_share_rtp_data(t,e,r,n,s,i)},39243:(t,e,r,n,s,i)=>{recv_share_rtp_data(t,e,r,n,s,i)},39291:(t,e,r,n,s,i)=>{as_out_filter_data(t,e,r,n,s,i)},39336:(t,e,r,n,s,i)=>{recv_video_rtp_data(t,e,r,n,s,i)},39383:(t,e,r,n,s,i)=>{recv_video_rtp_data(t,e,r,n,s,i)},39430:(t,e,r,n,s,i)=>{video_out_filter_data(t,e,r,n,s,i)},39478:(t,e,r,n,s)=>{network_quality_callback(t,e,r,n,s)},39524:(t,e,r,n)=>{video_encode_fec_retran_switch(t,e,r,n)},39574:(t,e,r,n)=>{as_encode_fec_retran_switch(t,e,r,n)},39621:(t,e,r,n,s,i,o,a)=>{mesh_video_as_data_from_qos(t,e,r,n,s,i,o,a)},39684:(t,e,r,n,s,i,o)=>{mesh_video_data_from_qos(t,e,r,n,s,i,o)},39741:(t,e,r,n,s,i,o,a,u)=>{mesh_video_network_info_indication(t,e,r,n,s,i,o,a,u)},39808:(t,e,r,n,s,i,o,a,u)=>{mesh_as_network_info_indication(t,e,r,n,s,i,o,a,u)},39872:(t,e,r,n,s,i)=>{mesh_recv_as_data(t,e,r,n,s,i)},39918:(t,e,r,n,s,i)=>{mesh_recv_video_data(t,e,r,n,s,i)},39967:(t,e,r,n,s,i,o)=>{mesh_recv_audio_data(t,e,r,n,s,i,o)},40020:(t,e,r,n,s,i)=>{mesh_audio_data_from_qos(t,e,r,n,s,i)},40074:(t,e,r,n,s,i,o,a,u)=>{mesh_audio_network_info_indication(t,e,r,n,s,i,o,a,u)},40141:t=>{mesh_bad_net_kick_child(t)},40173:(t,e,r)=>{mesh_bad_net_update_sub_mode_limit(t,e,r)},40224:t=>{mesh_bad_net_kick_child(t)},40256:(t,e,r)=>{mesh_bad_net_update_sub_mode_limit(t,e,r)},40307:(t,e,r)=>{mesh_qos_on_monitor_log(t,e,r)},40345:(t,e)=>{mesh_on_monitor_log(t,e)},40376:t=>{mesh_out_filter_nodeid_size(t)},40414:(t,e)=>{mesh_out_filter_nodeid(t,e)},40450:t=>{mesh_out_filter_nodeid(t)},40482:(t,e)=>{LOG_OUT(t,e)},40503:(t,e)=>{wcl_trace_log(t,e)}};function callRuntimeCallbacks(t){for(;t.length>0;)t.shift()(Module)}function ___cxa_allocate_exception(t){return _malloc(t+24)+24}function ExceptionInfo(t){this.excPtr=t,this.ptr=t-24,this.set_type=function(t){HEAPU32[this.ptr+4>>2]=t},this.get_type=function(){return HEAPU32[this.ptr+4>>2]},this.set_destructor=function(t){HEAPU32[this.ptr+8>>2]=t},this.get_destructor=function(){return HEAPU32[this.ptr+8>>2]},this.set_refcount=function(t){HEAP32[this.ptr>>2]=t},this.set_caught=function(t){t=t?1:0,HEAP8[this.ptr+12|0]=t},this.get_caught=function(){return 0!=HEAP8[this.ptr+12|0]},this.set_rethrown=function(t){t=t?1:0,HEAP8[this.ptr+13|0]=t},this.get_rethrown=function(){return 0!=HEAP8[this.ptr+13|0]},this.init=function(t,e){this.set_adjusted_ptr(0),this.set_type(t),this.set_destructor(e),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var t=HEAP32[this.ptr>>2];HEAP32[this.ptr>>2]=t+1},this.release_ref=function(){var t=HEAP32[this.ptr>>2];return HEAP32[this.ptr>>2]=t-1,1===t},this.set_adjusted_ptr=function(t){HEAPU32[this.ptr+16>>2]=t},this.get_adjusted_ptr=function(){return HEAPU32[this.ptr+16>>2]},this.get_exception_ptr=function(){if(___cxa_is_pointer_type(this.get_type()))return HEAPU32[this.excPtr>>2];var t=this.get_adjusted_ptr();return 0!==t?t:this.excPtr}}var exceptionLast=0,uncaughtExceptionCount=0;function ___cxa_throw(t,e,r){throw new ExceptionInfo(t).init(e,r),exceptionLast=t,uncaughtExceptionCount++,t}var SYSCALLS={varargs:void 0,get:function(){return SYSCALLS.varargs+=4,HEAP32[SYSCALLS.varargs-4>>2]},getStr:function(t){return UTF8ToString(t)}};function ___syscall_fcntl64(t,e,r){return SYSCALLS.varargs=r,0}function ___syscall_getcwd(t,e){}function ___syscall_mkdirat(t,e,r){}function ___syscall_openat(t,e,r,n){SYSCALLS.varargs=n}function ___syscall_pipe(t){}function ___syscall_poll(t,e,r){}var nowIsMonotonic=!0;function __emscripten_get_now_is_monotonic(){return nowIsMonotonic}function readI53FromI64(t){return HEAPU32[t>>2]+4294967296*HEAP32[t+4>>2]}function __gmtime_js(t,e){var r=new Date(1e3*readI53FromI64(t));HEAP32[e>>2]=r.getUTCSeconds(),HEAP32[e+4>>2]=r.getUTCMinutes(),HEAP32[e+8>>2]=r.getUTCHours(),HEAP32[e+12>>2]=r.getUTCDate(),HEAP32[e+16>>2]=r.getUTCMonth(),HEAP32[e+20>>2]=r.getUTCFullYear()-1900,HEAP32[e+24>>2]=r.getUTCDay();var n=Date.UTC(r.getUTCFullYear(),0,1,0,0,0,0),s=(r.getTime()-n)/864e5|0;HEAP32[e+28>>2]=s}function __isLeapYear(t){return t%4==0&&(t%100!=0||t%400==0)}var __MONTH_DAYS_LEAP_CUMULATIVE=[0,31,60,91,121,152,182,213,244,274,305,335],__MONTH_DAYS_REGULAR_CUMULATIVE=[0,31,59,90,120,151,181,212,243,273,304,334];function __yday_from_date(t){return(__isLeapYear(t.getFullYear())?__MONTH_DAYS_LEAP_CUMULATIVE:__MONTH_DAYS_REGULAR_CUMULATIVE)[t.getMonth()]+t.getDate()-1}function __localtime_js(t,e){var r=new Date(1e3*readI53FromI64(t));HEAP32[e>>2]=r.getSeconds(),HEAP32[e+4>>2]=r.getMinutes(),HEAP32[e+8>>2]=r.getHours(),HEAP32[e+12>>2]=r.getDate(),HEAP32[e+16>>2]=r.getMonth(),HEAP32[e+20>>2]=r.getFullYear()-1900,HEAP32[e+24>>2]=r.getDay();var n=0|__yday_from_date(r);HEAP32[e+28>>2]=n,HEAP32[e+36>>2]=-60*r.getTimezoneOffset();var s=new Date(r.getFullYear(),0,1),i=new Date(r.getFullYear(),6,1).getTimezoneOffset(),o=s.getTimezoneOffset(),a=0|(i!=o&&r.getTimezoneOffset()==Math.min(o,i));HEAP32[e+32>>2]=a}function allocateUTF8(t){var e=lengthBytesUTF8(t)+1,r=_malloc(e);return r&&stringToUTF8Array(t,HEAP8,r,e),r}function __tzset_js(t,e,r){var n=(new Date).getFullYear(),s=new Date(n,0,1),i=new Date(n,6,1),o=s.getTimezoneOffset(),a=i.getTimezoneOffset(),u=Math.max(o,a);function c(t){var e=t.toTimeString().match(/\(([A-Za-z ]+)\)$/);return e?e[1]:"GMT"}HEAPU32[t>>2]=60*u,HEAP32[e>>2]=Number(o!=a);var l=c(s),_=c(i),h=allocateUTF8(l),d=allocateUTF8(_);a<o?(HEAPU32[r>>2]=h,HEAPU32[r+4>>2]=d):(HEAPU32[r>>2]=d,HEAPU32[r+4>>2]=h)}function _abort(){abort("")}var _emscripten_get_now,readEmAsmArgsArray=[];function readEmAsmArgs(t,e){var r;for(readEmAsmArgsArray.length=0,e>>=2;r=HEAPU8[t++];)e+=105!=r&e,readEmAsmArgsArray.push(105==r?HEAP32[e]:HEAPF64[e++>>1]),++e;return readEmAsmArgsArray}function runEmAsmFunction(t,e,r){var n=readEmAsmArgs(e,r);return ASM_CONSTS[t].apply(null,n)}function _emscripten_asm_const_int(t,e,r){return runEmAsmFunction(t,e,r)}function _emscripten_date_now(){return Date.now()}function _emscripten_memcpy_big(t,e,r){HEAPU8.copyWithin(t,e,e+r)}function getHeapMax(){return 134217728}function emscripten_realloc_buffer(t){try{return wasmMemory.grow(t-buffer.byteLength+65535>>>16),updateGlobalBufferAndViews(wasmMemory.buffer),1}catch(t){}}function _emscripten_resize_heap(t){var e=HEAPU8.length;t>>>=0;var r,n=getHeapMax();if(t>n)return self.wasm_memory_alert(t,n),!1;for(var s=1;s<=4;s*=2){var i=e*(1+.2/s);if(i=Math.min(i,t+100663296),emscripten_realloc_buffer(Math.min(n,(r=Math.max(t,i))+(65536-r%65536)%65536)))return!0}return!1}var ENV={};function getExecutableName(){return thisProgram||"./this.program"}function getEnvStrings(){if(!getEnvStrings.strings){var t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:getExecutableName()};for(var e in ENV)void 0===ENV[e]?delete t[e]:t[e]=ENV[e];var r=[];for(var e in t)r.push(e+"="+t[e]);getEnvStrings.strings=r}return getEnvStrings.strings}function writeAsciiToMemory(t,e,r){for(var n=0;n<t.length;++n)HEAP8[0|e++]=t.charCodeAt(n);r||(HEAP8[0|e]=0)}function _environ_get(t,e){var r=0;return getEnvStrings().forEach((function(n,s){var i=e+r;HEAPU32[t+4*s>>2]=i,writeAsciiToMemory(n,i),r+=n.length+1})),0}function _environ_sizes_get(t,e){var r=getEnvStrings();HEAPU32[t>>2]=r.length;var n=0;return r.forEach((function(t){n+=t.length+1})),HEAPU32[e>>2]=n,0}function _fd_close(t){return 52}function _fd_read(t,e,r,n){return 52}function _fd_seek(t,e,r,n,s){return 70}var printCharBuffers=[null,[],[]];function printChar(t,e){var r=printCharBuffers[t];0===e||10===e?((1===t?out:err)(UTF8ArrayToString(r,0)),r.length=0):r.push(e)}function _fd_write(t,e,r,n){for(var s=0,i=0;i<r;i++){var o=HEAPU32[e>>2],a=HEAPU32[e+4>>2];e+=8;for(var u=0;u<a;u++)printChar(t,HEAPU8[o+u]);s+=a}return HEAPU32[n>>2]=s,0}function __arraySum(t,e){for(var r=0,n=0;n<=e;r+=t[n++]);return r}var __MONTH_DAYS_LEAP=[31,29,31,30,31,30,31,31,30,31,30,31],__MONTH_DAYS_REGULAR=[31,28,31,30,31,30,31,31,30,31,30,31];function __addDays(t,e){for(var r=new Date(t.getTime());e>0;){var n=__isLeapYear(r.getFullYear()),s=r.getMonth(),i=(n?__MONTH_DAYS_LEAP:__MONTH_DAYS_REGULAR)[s];if(!(e>i-r.getDate()))return r.setDate(r.getDate()+e),r;e-=i-r.getDate()+1,r.setDate(1),s<11?r.setMonth(s+1):(r.setMonth(0),r.setFullYear(r.getFullYear()+1))}return r}function intArrayFromString(t,e,r){var n=r>0?r:lengthBytesUTF8(t)+1,s=new Array(n),i=stringToUTF8Array(t,s,0,s.length);return e&&(s.length=i),s}function writeArrayToMemory(t,e){HEAP8.set(t,e)}function _strftime(t,e,r,n){var s=HEAP32[n+40>>2],i={tm_sec:HEAP32[n>>2],tm_min:HEAP32[n+4>>2],tm_hour:HEAP32[n+8>>2],tm_mday:HEAP32[n+12>>2],tm_mon:HEAP32[n+16>>2],tm_year:HEAP32[n+20>>2],tm_wday:HEAP32[n+24>>2],tm_yday:HEAP32[n+28>>2],tm_isdst:HEAP32[n+32>>2],tm_gmtoff:HEAP32[n+36>>2],tm_zone:s?UTF8ToString(s):""},o=UTF8ToString(r),a={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var u in a)o=o.replace(new RegExp(u,"g"),a[u]);var c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],l=["January","February","March","April","May","June","July","August","September","October","November","December"];function _(t,e,r){for(var n="number"==typeof t?t.toString():t||"";n.length<e;)n=r[0]+n;return n}function h(t,e){return _(t,e,"0")}function d(t,e){function r(t){return t<0?-1:t>0?1:0}var n;return 0===(n=r(t.getFullYear()-e.getFullYear()))&&0===(n=r(t.getMonth()-e.getMonth()))&&(n=r(t.getDate()-e.getDate())),n}function f(t){switch(t.getDay()){case 0:return new Date(t.getFullYear()-1,11,29);case 1:return t;case 2:return new Date(t.getFullYear(),0,3);case 3:return new Date(t.getFullYear(),0,2);case 4:return new Date(t.getFullYear(),0,1);case 5:return new Date(t.getFullYear()-1,11,31);case 6:return new Date(t.getFullYear()-1,11,30)}}function p(t){var e=__addDays(new Date(t.tm_year+1900,0,1),t.tm_yday),r=new Date(e.getFullYear(),0,4),n=new Date(e.getFullYear()+1,0,4),s=f(r),i=f(n);return d(s,e)<=0?d(i,e)<=0?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var m={"%a":function(t){return c[t.tm_wday].substring(0,3)},"%A":function(t){return c[t.tm_wday]},"%b":function(t){return l[t.tm_mon].substring(0,3)},"%B":function(t){return l[t.tm_mon]},"%C":function(t){return h((t.tm_year+1900)/100|0,2)},"%d":function(t){return h(t.tm_mday,2)},"%e":function(t){return _(t.tm_mday,2," ")},"%g":function(t){return p(t).toString().substring(2)},"%G":function(t){return p(t)},"%H":function(t){return h(t.tm_hour,2)},"%I":function(t){var e=t.tm_hour;return 0==e?e=12:e>12&&(e-=12),h(e,2)},"%j":function(t){return h(t.tm_mday+__arraySum(__isLeapYear(t.tm_year+1900)?__MONTH_DAYS_LEAP:__MONTH_DAYS_REGULAR,t.tm_mon-1),3)},"%m":function(t){return h(t.tm_mon+1,2)},"%M":function(t){return h(t.tm_min,2)},"%n":function(){return"\n"},"%p":function(t){return t.tm_hour>=0&&t.tm_hour<12?"AM":"PM"},"%S":function(t){return h(t.tm_sec,2)},"%t":function(){return"\t"},"%u":function(t){return t.tm_wday||7},"%U":function(t){var e=t.tm_yday+7-t.tm_wday;return h(Math.floor(e/7),2)},"%V":function(t){var e=Math.floor((t.tm_yday+7-(t.tm_wday+6)%7)/7);if((t.tm_wday+371-t.tm_yday-2)%7<=2&&e++,e){if(53==e){var r=(t.tm_wday+371-t.tm_yday)%7;4==r||3==r&&__isLeapYear(t.tm_year)||(e=1)}}else{e=52;var n=(t.tm_wday+7-t.tm_yday-1)%7;(4==n||5==n&&__isLeapYear(t.tm_year%400-1))&&e++}return h(e,2)},"%w":function(t){return t.tm_wday},"%W":function(t){var e=t.tm_yday+7-(t.tm_wday+6)%7;return h(Math.floor(e/7),2)},"%y":function(t){return(t.tm_year+1900).toString().substring(2)},"%Y":function(t){return t.tm_year+1900},"%z":function(t){var e=t.tm_gmtoff,r=e>=0;return e=(e=Math.abs(e)/60)/60*100+e%60,(r?"+":"-")+String("0000"+e).slice(-4)},"%Z":function(t){return t.tm_zone},"%%":function(){return"%"}};for(var u in o=o.replace(/%%/g,"\0\0"),m)o.includes(u)&&(o=o.replace(new RegExp(u,"g"),m[u](i)));var g=intArrayFromString(o=o.replace(/\0\0/g,"%"),!1);return g.length>e?0:(writeArrayToMemory(g,t),g.length-1)}function _strftime_l(t,e,r,n,s){return _strftime(t,e,r,n)}function getCFunc(t){return Module["_"+t]}function ccall(t,e,r,n,s){var i={string:t=>{var e=0;if(null!=t&&0!==t){var r=1+(t.length<<2);stringToUTF8(t,e=stackAlloc(r),r)}return e},array:t=>{var e=stackAlloc(t.length);return writeArrayToMemory(t,e),e}},o=getCFunc(t),a=[],u=0;if(n)for(var c=0;c<n.length;c++){var l=i[r[c]];l?(0===u&&(u=stackSave()),a[c]=l(n[c])):a[c]=n[c]}var _=o.apply(null,a);return function(t){return 0!==u&&stackRestore(u),function(t){return"string"===e?UTF8ToString(t):"boolean"===e?Boolean(t):t}(t)}(_)}function cwrap(t,e,r,n){var s=(r=r||[]).every((t=>"number"===t||"boolean"===t));return"string"!==e&&s&&!n?getCFunc(t):function(){return ccall(t,e,r,arguments,n)}}var calledRun,asmLibraryArg={g:___cxa_allocate_exception,f:___cxa_throw,c:___syscall_fcntl64,A:___syscall_getcwd,z:___syscall_mkdirat,y:___syscall_openat,x:___syscall_pipe,w:___syscall_poll,s:__emscripten_get_now_is_monotonic,r:__gmtime_js,q:__localtime_js,p:__tzset_js,i:_abort,b:_emscripten_asm_const_int,h:_emscripten_date_now,o:_emscripten_get_now=()=>performance.now(),n:_emscripten_memcpy_big,m:_emscripten_resize_heap,v:_environ_get,u:_environ_sizes_get,d:_fd_close,t:_fd_read,l:_fd_seek,e:_fd_write,a:wasmMemory,k:_strftime,j:_strftime_l},asm=createWasm(),___wasm_call_ctors=Module.___wasm_call_ctors=function(){return(___wasm_call_ctors=Module.___wasm_call_ctors=Module.asm.B).apply(null,arguments)},__Qos_Init=Module.__Qos_Init=function(){return(__Qos_Init=Module.__Qos_Init=Module.asm.C).apply(null,arguments)},__Qos_UnInit=Module.__Qos_UnInit=function(){return(__Qos_UnInit=Module.__Qos_UnInit=Module.asm.D).apply(null,arguments)},__Qos_Start_Send=Module.__Qos_Start_Send=function(){return(__Qos_Start_Send=Module.__Qos_Start_Send=Module.asm.E).apply(null,arguments)},__Qos_Stop_Send=Module.__Qos_Stop_Send=function(){return(__Qos_Stop_Send=Module.__Qos_Stop_Send=Module.asm.F).apply(null,arguments)},__Qos_Change_Connect_Type_Or_Video_Share=Module.__Qos_Change_Connect_Type_Or_Video_Share=function(){return(__Qos_Change_Connect_Type_Or_Video_Share=Module.__Qos_Change_Connect_Type_Or_Video_Share=Module.asm.G).apply(null,arguments)},__Qos_Send_Data_Packet=Module.__Qos_Send_Data_Packet=function(){return(__Qos_Send_Data_Packet=Module.__Qos_Send_Data_Packet=Module.asm.H).apply(null,arguments)},__Qos_Send_Data_Multi_Packet=Module.__Qos_Send_Data_Multi_Packet=function(){return(__Qos_Send_Data_Multi_Packet=Module.__Qos_Send_Data_Multi_Packet=Module.asm.I).apply(null,arguments)},_free=Module._free=function(){return(_free=Module._free=Module.asm.J).apply(null,arguments)},__Qos_Data_From_Rwg=Module.__Qos_Data_From_Rwg=function(){return(__Qos_Data_From_Rwg=Module.__Qos_Data_From_Rwg=Module.asm.K).apply(null,arguments)},__Qos_AS_Data_From_Rwg=Module.__Qos_AS_Data_From_Rwg=function(){return(__Qos_AS_Data_From_Rwg=Module.__Qos_AS_Data_From_Rwg=Module.asm.L).apply(null,arguments)},__Qos_Audio_Data_From_Rwg=Module.__Qos_Audio_Data_From_Rwg=function(){return(__Qos_Audio_Data_From_Rwg=Module.__Qos_Audio_Data_From_Rwg=Module.asm.M).apply(null,arguments)},__Qos_Smooth_Send_Periodically_For_Qos=Module.__Qos_Smooth_Send_Periodically_For_Qos=function(){return(__Qos_Smooth_Send_Periodically_For_Qos=Module.__Qos_Smooth_Send_Periodically_For_Qos=Module.asm.N).apply(null,arguments)},__Qos_Request_Nack_T_Periodically_For_Qos=Module.__Qos_Request_Nack_T_Periodically_For_Qos=function(){return(__Qos_Request_Nack_T_Periodically_For_Qos=Module.__Qos_Request_Nack_T_Periodically_For_Qos=Module.asm.O).apply(null,arguments)},__Qos_Update_Required_Bandwidth=Module.__Qos_Update_Required_Bandwidth=function(){return(__Qos_Update_Required_Bandwidth=Module.__Qos_Update_Required_Bandwidth=Module.asm.P).apply(null,arguments)},__Qos_Update_Video_Hd_Info=Module.__Qos_Update_Video_Hd_Info=function(){return(__Qos_Update_Video_Hd_Info=Module.__Qos_Update_Video_Hd_Info=Module.asm.Q).apply(null,arguments)},__Qos_Reset_As_Qos_Buffer=Module.__Qos_Reset_As_Qos_Buffer=function(){return(__Qos_Reset_As_Qos_Buffer=Module.__Qos_Reset_As_Qos_Buffer=Module.asm.R).apply(null,arguments)},__Qos_Set_OutFilter=Module.__Qos_Set_OutFilter=function(){return(__Qos_Set_OutFilter=Module.__Qos_Set_OutFilter=Module.asm.S).apply(null,arguments)},__Qos_Enable_OutFilter=Module.__Qos_Enable_OutFilter=function(){return(__Qos_Enable_OutFilter=Module.__Qos_Enable_OutFilter=Module.asm.T).apply(null,arguments)},__Qos_Set_NodeId=Module.__Qos_Set_NodeId=function(){return(__Qos_Set_NodeId=Module.__Qos_Set_NodeId=Module.asm.U).apply(null,arguments)},__Qos_Set_BandWidth_Limit=Module.__Qos_Set_BandWidth_Limit=function(){return(__Qos_Set_BandWidth_Limit=Module.__Qos_Set_BandWidth_Limit=Module.asm.V).apply(null,arguments)},__wcl_enable_log=Module.__wcl_enable_log=function(){return(__wcl_enable_log=Module.__wcl_enable_log=Module.asm.X).apply(null,arguments)},__mesh_init=Module.__mesh_init=function(){return(__mesh_init=Module.__mesh_init=Module.asm.Y).apply(null,arguments)},__mesh_set_role=Module.__mesh_set_role=function(){return(__mesh_set_role=Module.__mesh_set_role=Module.asm.Z).apply(null,arguments)},__mesh_thread_run=Module.__mesh_thread_run=function(){return(__mesh_thread_run=Module.__mesh_thread_run=Module.asm._).apply(null,arguments)},__mesh_add_child=Module.__mesh_add_child=function(){return(__mesh_add_child=Module.__mesh_add_child=Module.asm.$).apply(null,arguments)},__mesh_rm_child=Module.__mesh_rm_child=function(){return(__mesh_rm_child=Module.__mesh_rm_child=Module.asm.aa).apply(null,arguments)},__mesh_bad_net=Module.__mesh_bad_net=function(){return(__mesh_bad_net=Module.__mesh_bad_net=Module.asm.ba).apply(null,arguments)},__mesh_channle_opt=Module.__mesh_channle_opt=function(){return(__mesh_channle_opt=Module.__mesh_channle_opt=Module.asm.ca).apply(null,arguments)},__mesh_sub_infomap=Module.__mesh_sub_infomap=function(){return(__mesh_sub_infomap=Module.__mesh_sub_infomap=Module.asm.da).apply(null,arguments)},__mesh_send=Module.__mesh_send=function(){return(__mesh_send=Module.__mesh_send=Module.asm.ea).apply(null,arguments)},__mesh_recv=Module.__mesh_recv=function(){return(__mesh_recv=Module.__mesh_recv=Module.asm.fa).apply(null,arguments)},__mesh_reciver_recv=Module.__mesh_reciver_recv=function(){return(__mesh_reciver_recv=Module.__mesh_reciver_recv=Module.asm.ga).apply(null,arguments)},__mesh_uninit=Module.__mesh_uninit=function(){return(__mesh_uninit=Module.__mesh_uninit=Module.asm.ha).apply(null,arguments)},__mesh_set_as_mode=Module.__mesh_set_as_mode=function(){return(__mesh_set_as_mode=Module.__mesh_set_as_mode=Module.asm.ia).apply(null,arguments)},__mesh_out_filter_test=Module.__mesh_out_filter_test=function(){return(__mesh_out_filter_test=Module.__mesh_out_filter_test=Module.asm.ja).apply(null,arguments)},_malloc=Module._malloc=function(){return(_malloc=Module._malloc=Module.asm.ka).apply(null,arguments)},stackSave=Module.stackSave=function(){return(stackSave=Module.stackSave=Module.asm.la).apply(null,arguments)},stackRestore=Module.stackRestore=function(){return(stackRestore=Module.stackRestore=Module.asm.ma).apply(null,arguments)},stackAlloc=Module.stackAlloc=function(){return(stackAlloc=Module.stackAlloc=Module.asm.na).apply(null,arguments)},___cxa_is_pointer_type=Module.___cxa_is_pointer_type=function(){return(___cxa_is_pointer_type=Module.___cxa_is_pointer_type=Module.asm.oa).apply(null,arguments)};function run(t){function e(){calledRun||(calledRun=!0,Module.calledRun=!0,ABORT||(initRuntime(),Module.onRuntimeInitialized&&Module.onRuntimeInitialized(),postRun()))}t=t||arguments_,runDependencies>0||(preRun(),runDependencies>0||(Module.setStatus?(Module.setStatus("Running..."),setTimeout((function(){setTimeout((function(){Module.setStatus("")}),1),e()}),1)):e()))}if(Module.cwrap=cwrap,dependenciesFulfilled=function t(){calledRun||run(),calledRun||(dependenciesFulfilled=t)},Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.pop()();run();
2
+ //# sourceMappingURL=https://d1cdksi819e9z7.cloudfront.net/sourcemap/mesh_thread.min.js-9101ca8b2e96beca825b.map
Binary file