gh-camp-video-portal/public/lib/trtc/trtc.js

3 lines
295 KiB
JavaScript
Raw Normal View History

2025-05-21 10:20:18 +08:00
/* eslint-disable */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).TRTC=t()}(this,function(){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t){return e(t={exports:{}},t.exports),t.exports}var n=function(e){return e&&e.Math==Math&&e},r=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")(),i=function(e){try{return!!e()}catch(t){return!0}},o=!i(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),a={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,c={f:s&&!a.call({1:2},1)?function(e){var t=s(this,e);return!!t&&t.enumerable}:a},u=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},d={}.toString,l=function(e){return d.call(e).slice(8,-1)},p="".split,f=i(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==l(e)?p.call(e,""):Object(e)}:Object,h=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},m=function(e){return f(h(e))},v=function(e){return"object"==typeof e?null!==e:"function"==typeof e},g=function(e,t){if(!v(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!v(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!v(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!v(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},_={}.hasOwnProperty,y=function(e,t){return _.call(e,t)},S=r.document,b=v(S)&&v(S.createElement),k=function(e){return b?S.createElement(e):{}},w=!o&&!i(function(){return 7!=Object.defineProperty(k("div"),"a",{get:function(){return 7}}).a}),R=Object.getOwnPropertyDescriptor,T={f:o?R:function(e,t){if(e=m(e),t=g(t,!0),w)try{return R(e,t)}catch(n){}if(y(e,t))return u(!c.f.call(e,t),e[t])}},C=function(e){if(!v(e))throw TypeError(String(e)+" is not an object");return e},E=Object.defineProperty,I={f:o?E:function(e,t,n){if(C(e),t=g(t,!0),C(n),w)try{return E(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},P=o?function(e,t,n){return I.f(e,t,u(1,n))}:function(e,t,n){return e[t]=n,e},x=function(e,t){try{P(r,e,t)}catch(n){r[e]=t}return t},A=r["__core-js_shared__"]||x("__core-js_shared__",{}),O=Function.toString;"function"!=typeof A.inspectSource&&(A.inspectSource=function(e){return O.call(e)});var D,N,L,M=A.inspectSource,j=r.WeakMap,U="function"==typeof j&&/native code/.test(M(j)),V=t(function(e){(e.exports=function(e,t){return A[e]||(A[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.1",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),F=0,W=Math.random(),B=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++F+W).toString(36)},G=V("keys"),H=function(e){return G[e]||(G[e]=B(e))},z={},J=r.WeakMap;if(U){var q=new J,Q=q.get,K=q.has,$=q.set;D=function(e,t){return $.call(q,e,t),t},N=function(e){return Q.call(q,e)||{}},L=function(e){return K.call(q,e)}}else{var Y=H("state");z[Y]=!0,D=function(e,t){return P(e,Y,t),t},N=function(e){return y(e,Y)?e[Y]:{}},L=function(e){return y(e,Y)}}var X,Z,ee={set:D,get:N,has:L,enforce:function(e){return L(e)?N(e):D(e,{})},getterFor:function(e){return function(t){var n;if(!v(t)||(n=N(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},te=t(function(e){var t=ee.get,n=ee.enforce,i=String(String).split("String");(e.exports=function(e,t,o,a){var s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,u=!!a&&!!a.noTargetGet;"function"==typeof o&&("string"!=typeof t||y(o,"name")||P(o,"name",t),n(o).source=i.join("string"==typeof t?t:"")),e!==r?(s?!u&&e[t]&&(c=!0):delete e[t],c?e[t]=o:P(e,t,o)):c?e[t]=o:x(t,o)})(Function.prototype,"toString",function(){return"function"==typeof this&&t(this).source||M(this)})}),ne=r,re=function(e){return"function"==typeof e?e:void 0},ie=function(e,t){return arguments.le