仲裁视频会议H5

http.js 22KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681
  1. 'use strict';
  2. import utils from './../utils.js';
  3. import settle from './../core/settle.js';
  4. import buildFullPath from '../core/buildFullPath.js';
  5. import buildURL from './../helpers/buildURL.js';
  6. import {getProxyForUrl} from 'proxy-from-env';
  7. import http from 'http';
  8. import https from 'https';
  9. import util from 'util';
  10. import followRedirects from 'follow-redirects';
  11. import zlib from 'zlib';
  12. import {VERSION} from '../env/data.js';
  13. import transitionalDefaults from '../defaults/transitional.js';
  14. import AxiosError from '../core/AxiosError.js';
  15. import CanceledError from '../cancel/CanceledError.js';
  16. import platform from '../platform/index.js';
  17. import fromDataURI from '../helpers/fromDataURI.js';
  18. import stream from 'stream';
  19. import AxiosHeaders from '../core/AxiosHeaders.js';
  20. import AxiosTransformStream from '../helpers/AxiosTransformStream.js';
  21. import EventEmitter from 'events';
  22. import formDataToStream from "../helpers/formDataToStream.js";
  23. import readBlob from "../helpers/readBlob.js";
  24. import ZlibHeaderTransformStream from '../helpers/ZlibHeaderTransformStream.js';
  25. import callbackify from "../helpers/callbackify.js";
  26. const zlibOptions = {
  27. flush: zlib.constants.Z_SYNC_FLUSH,
  28. finishFlush: zlib.constants.Z_SYNC_FLUSH
  29. };
  30. const brotliOptions = {
  31. flush: zlib.constants.BROTLI_OPERATION_FLUSH,
  32. finishFlush: zlib.constants.BROTLI_OPERATION_FLUSH
  33. }
  34. const isBrotliSupported = utils.isFunction(zlib.createBrotliDecompress);
  35. const {http: httpFollow, https: httpsFollow} = followRedirects;
  36. const isHttps = /https:?/;
  37. const supportedProtocols = platform.protocols.map(protocol => {
  38. return protocol + ':';
  39. });
  40. /**
  41. * If the proxy or config beforeRedirects functions are defined, call them with the options
  42. * object.
  43. *
  44. * @param {Object<string, any>} options - The options object that was passed to the request.
  45. *
  46. * @returns {Object<string, any>}
  47. */
  48. function dispatchBeforeRedirect(options) {
  49. if (options.beforeRedirects.proxy) {
  50. options.beforeRedirects.proxy(options);
  51. }
  52. if (options.beforeRedirects.config) {
  53. options.beforeRedirects.config(options);
  54. }
  55. }
  56. /**
  57. * If the proxy or config afterRedirects functions are defined, call them with the options
  58. *
  59. * @param {http.ClientRequestArgs} options
  60. * @param {AxiosProxyConfig} configProxy configuration from Axios options object
  61. * @param {string} location
  62. *
  63. * @returns {http.ClientRequestArgs}
  64. */
  65. function setProxy(options, configProxy, location) {
  66. let proxy = configProxy;
  67. if (!proxy && proxy !== false) {
  68. const proxyUrl = getProxyForUrl(location);
  69. if (proxyUrl) {
  70. proxy = new URL(proxyUrl);
  71. }
  72. }
  73. if (proxy) {
  74. // Basic proxy authorization
  75. if (proxy.username) {
  76. proxy.auth = (proxy.username || '') + ':' + (proxy.password || '');
  77. }
  78. if (proxy.auth) {
  79. // Support proxy auth object form
  80. if (proxy.auth.username || proxy.auth.password) {
  81. proxy.auth = (proxy.auth.username || '') + ':' + (proxy.auth.password || '');
  82. }
  83. const base64 = Buffer
  84. .from(proxy.auth, 'utf8')
  85. .toString('base64');
  86. options.headers['Proxy-Authorization'] = 'Basic ' + base64;
  87. }
  88. options.headers.host = options.hostname + (options.port ? ':' + options.port : '');
  89. const proxyHost = proxy.hostname || proxy.host;
  90. options.hostname = proxyHost;
  91. // Replace 'host' since options is not a URL object
  92. options.host = proxyHost;
  93. options.port = proxy.port;
  94. options.path = location;
  95. if (proxy.protocol) {
  96. options.protocol = proxy.protocol.includes(':') ? proxy.protocol : `${proxy.protocol}:`;
  97. }
  98. }
  99. options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {
  100. // Configure proxy for redirected request, passing the original config proxy to apply
  101. // the exact same logic as if the redirected request was performed by axios directly.
  102. setProxy(redirectOptions, configProxy, redirectOptions.href);
  103. };
  104. }
  105. const isHttpAdapterSupported = typeof process !== 'undefined' && utils.kindOf(process) === 'process';
  106. // temporary hotfix
  107. const wrapAsync = (asyncExecutor) => {
  108. return new Promise((resolve, reject) => {
  109. let onDone;
  110. let isDone;
  111. const done = (value, isRejected) => {
  112. if (isDone) return;
  113. isDone = true;
  114. onDone && onDone(value, isRejected);
  115. }
  116. const _resolve = (value) => {
  117. done(value);
  118. resolve(value);
  119. };
  120. const _reject = (reason) => {
  121. done(reason, true);
  122. reject(reason);
  123. }
  124. asyncExecutor(_resolve, _reject, (onDoneHandler) => (onDone = onDoneHandler)).catch(_reject);
  125. })
  126. };
  127. const resolveFamily = ({address, family}) => {
  128. if (!utils.isString(address)) {
  129. throw TypeError('address must be a string');
  130. }
  131. return ({
  132. address,
  133. family: family || (address.indexOf('.') < 0 ? 6 : 4)
  134. });
  135. }
  136. const buildAddressEntry = (address, family) => resolveFamily(utils.isObject(address) ? address : {address, family});
  137. /*eslint consistent-return:0*/
  138. export default isHttpAdapterSupported && function httpAdapter(config) {
  139. return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
  140. let {data, lookup, family} = config;
  141. const {responseType, responseEncoding} = config;
  142. const method = config.method.toUpperCase();
  143. let isDone;
  144. let rejected = false;
  145. let req;
  146. if (lookup) {
  147. const _lookup = callbackify(lookup, (value) => utils.isArray(value) ? value : [value]);
  148. // hotfix to support opt.all option which is required for node 20.x
  149. lookup = (hostname, opt, cb) => {
  150. _lookup(hostname, opt, (err, arg0, arg1) => {
  151. const addresses = utils.isArray(arg0) ? arg0.map(addr => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
  152. opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
  153. });
  154. }
  155. }
  156. // temporary internal emitter until the AxiosRequest class will be implemented
  157. const emitter = new EventEmitter();
  158. const onFinished = () => {
  159. if (config.cancelToken) {
  160. config.cancelToken.unsubscribe(abort);
  161. }
  162. if (config.signal) {
  163. config.signal.removeEventListener('abort', abort);
  164. }
  165. emitter.removeAllListeners();
  166. }
  167. onDone((value, isRejected) => {
  168. isDone = true;
  169. if (isRejected) {
  170. rejected = true;
  171. onFinished();
  172. }
  173. });
  174. function abort(reason) {
  175. emitter.emit('abort', !reason || reason.type ? new CanceledError(null, config, req) : reason);
  176. }
  177. emitter.once('abort', reject);
  178. if (config.cancelToken || config.signal) {
  179. config.cancelToken && config.cancelToken.subscribe(abort);
  180. if (config.signal) {
  181. config.signal.aborted ? abort() : config.signal.addEventListener('abort', abort);
  182. }
  183. }
  184. // Parse url
  185. const fullPath = buildFullPath(config.baseURL, config.url);
  186. const parsed = new URL(fullPath, 'http://localhost');
  187. const protocol = parsed.protocol || supportedProtocols[0];
  188. if (protocol === 'data:') {
  189. let convertedData;
  190. if (method !== 'GET') {
  191. return settle(resolve, reject, {
  192. status: 405,
  193. statusText: 'method not allowed',
  194. headers: {},
  195. config
  196. });
  197. }
  198. try {
  199. convertedData = fromDataURI(config.url, responseType === 'blob', {
  200. Blob: config.env && config.env.Blob
  201. });
  202. } catch (err) {
  203. throw AxiosError.from(err, AxiosError.ERR_BAD_REQUEST, config);
  204. }
  205. if (responseType === 'text') {
  206. convertedData = convertedData.toString(responseEncoding);
  207. if (!responseEncoding || responseEncoding === 'utf8') {
  208. convertedData = utils.stripBOM(convertedData);
  209. }
  210. } else if (responseType === 'stream') {
  211. convertedData = stream.Readable.from(convertedData);
  212. }
  213. return settle(resolve, reject, {
  214. data: convertedData,
  215. status: 200,
  216. statusText: 'OK',
  217. headers: new AxiosHeaders(),
  218. config
  219. });
  220. }
  221. if (supportedProtocols.indexOf(protocol) === -1) {
  222. return reject(new AxiosError(
  223. 'Unsupported protocol ' + protocol,
  224. AxiosError.ERR_BAD_REQUEST,
  225. config
  226. ));
  227. }
  228. const headers = AxiosHeaders.from(config.headers).normalize();
  229. // Set User-Agent (required by some servers)
  230. // See https://github.com/axios/axios/issues/69
  231. // User-Agent is specified; handle case where no UA header is desired
  232. // Only set header if it hasn't been set in config
  233. headers.set('User-Agent', 'axios/' + VERSION, false);
  234. const onDownloadProgress = config.onDownloadProgress;
  235. const onUploadProgress = config.onUploadProgress;
  236. const maxRate = config.maxRate;
  237. let maxUploadRate = undefined;
  238. let maxDownloadRate = undefined;
  239. // support for spec compliant FormData objects
  240. if (utils.isSpecCompliantForm(data)) {
  241. const userBoundary = headers.getContentType(/boundary=([-_\w\d]{10,70})/i);
  242. data = formDataToStream(data, (formHeaders) => {
  243. headers.set(formHeaders);
  244. }, {
  245. tag: `axios-${VERSION}-boundary`,
  246. boundary: userBoundary && userBoundary[1] || undefined
  247. });
  248. // support for https://www.npmjs.com/package/form-data api
  249. } else if (utils.isFormData(data) && utils.isFunction(data.getHeaders)) {
  250. headers.set(data.getHeaders());
  251. if (!headers.hasContentLength()) {
  252. try {
  253. const knownLength = await util.promisify(data.getLength).call(data);
  254. Number.isFinite(knownLength) && knownLength >= 0 && headers.setContentLength(knownLength);
  255. /*eslint no-empty:0*/
  256. } catch (e) {
  257. }
  258. }
  259. } else if (utils.isBlob(data)) {
  260. data.size && headers.setContentType(data.type || 'application/octet-stream');
  261. headers.setContentLength(data.size || 0);
  262. data = stream.Readable.from(readBlob(data));
  263. } else if (data && !utils.isStream(data)) {
  264. if (Buffer.isBuffer(data)) {
  265. // Nothing to do...
  266. } else if (utils.isArrayBuffer(data)) {
  267. data = Buffer.from(new Uint8Array(data));
  268. } else if (utils.isString(data)) {
  269. data = Buffer.from(data, 'utf-8');
  270. } else {
  271. return reject(new AxiosError(
  272. 'Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream',
  273. AxiosError.ERR_BAD_REQUEST,
  274. config
  275. ));
  276. }
  277. // Add Content-Length header if data exists
  278. headers.setContentLength(data.length, false);
  279. if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
  280. return reject(new AxiosError(
  281. 'Request body larger than maxBodyLength limit',
  282. AxiosError.ERR_BAD_REQUEST,
  283. config
  284. ));
  285. }
  286. }
  287. const contentLength = utils.toFiniteNumber(headers.getContentLength());
  288. if (utils.isArray(maxRate)) {
  289. maxUploadRate = maxRate[0];
  290. maxDownloadRate = maxRate[1];
  291. } else {
  292. maxUploadRate = maxDownloadRate = maxRate;
  293. }
  294. if (data && (onUploadProgress || maxUploadRate)) {
  295. if (!utils.isStream(data)) {
  296. data = stream.Readable.from(data, {objectMode: false});
  297. }
  298. data = stream.pipeline([data, new AxiosTransformStream({
  299. length: contentLength,
  300. maxRate: utils.toFiniteNumber(maxUploadRate)
  301. })], utils.noop);
  302. onUploadProgress && data.on('progress', progress => {
  303. onUploadProgress(Object.assign(progress, {
  304. upload: true
  305. }));
  306. });
  307. }
  308. // HTTP basic authentication
  309. let auth = undefined;
  310. if (config.auth) {
  311. const username = config.auth.username || '';
  312. const password = config.auth.password || '';
  313. auth = username + ':' + password;
  314. }
  315. if (!auth && parsed.username) {
  316. const urlUsername = parsed.username;
  317. const urlPassword = parsed.password;
  318. auth = urlUsername + ':' + urlPassword;
  319. }
  320. auth && headers.delete('authorization');
  321. let path;
  322. try {
  323. path = buildURL(
  324. parsed.pathname + parsed.search,
  325. config.params,
  326. config.paramsSerializer
  327. ).replace(/^\?/, '');
  328. } catch (err) {
  329. const customErr = new Error(err.message);
  330. customErr.config = config;
  331. customErr.url = config.url;
  332. customErr.exists = true;
  333. return reject(customErr);
  334. }
  335. headers.set(
  336. 'Accept-Encoding',
  337. 'gzip, compress, deflate' + (isBrotliSupported ? ', br' : ''), false
  338. );
  339. const options = {
  340. path,
  341. method: method,
  342. headers: headers.toJSON(),
  343. agents: { http: config.httpAgent, https: config.httpsAgent },
  344. auth,
  345. protocol,
  346. family,
  347. beforeRedirect: dispatchBeforeRedirect,
  348. beforeRedirects: {}
  349. };
  350. // cacheable-lookup integration hotfix
  351. !utils.isUndefined(lookup) && (options.lookup = lookup);
  352. if (config.socketPath) {
  353. options.socketPath = config.socketPath;
  354. } else {
  355. options.hostname = parsed.hostname;
  356. options.port = parsed.port;
  357. setProxy(options, config.proxy, protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path);
  358. }
  359. let transport;
  360. const isHttpsRequest = isHttps.test(options.protocol);
  361. options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
  362. if (config.transport) {
  363. transport = config.transport;
  364. } else if (config.maxRedirects === 0) {
  365. transport = isHttpsRequest ? https : http;
  366. } else {
  367. if (config.maxRedirects) {
  368. options.maxRedirects = config.maxRedirects;
  369. }
  370. if (config.beforeRedirect) {
  371. options.beforeRedirects.config = config.beforeRedirect;
  372. }
  373. transport = isHttpsRequest ? httpsFollow : httpFollow;
  374. }
  375. if (config.maxBodyLength > -1) {
  376. options.maxBodyLength = config.maxBodyLength;
  377. } else {
  378. // follow-redirects does not skip comparison, so it should always succeed for axios -1 unlimited
  379. options.maxBodyLength = Infinity;
  380. }
  381. if (config.insecureHTTPParser) {
  382. options.insecureHTTPParser = config.insecureHTTPParser;
  383. }
  384. // Create the request
  385. req = transport.request(options, function handleResponse(res) {
  386. if (req.destroyed) return;
  387. const streams = [res];
  388. const responseLength = +res.headers['content-length'];
  389. if (onDownloadProgress) {
  390. const transformStream = new AxiosTransformStream({
  391. length: utils.toFiniteNumber(responseLength),
  392. maxRate: utils.toFiniteNumber(maxDownloadRate)
  393. });
  394. onDownloadProgress && transformStream.on('progress', progress => {
  395. onDownloadProgress(Object.assign(progress, {
  396. download: true
  397. }));
  398. });
  399. streams.push(transformStream);
  400. }
  401. // decompress the response body transparently if required
  402. let responseStream = res;
  403. // return the last request in case of redirects
  404. const lastRequest = res.req || req;
  405. // if decompress disabled we should not decompress
  406. if (config.decompress !== false && res.headers['content-encoding']) {
  407. // if no content, but headers still say that it is encoded,
  408. // remove the header not confuse downstream operations
  409. if (method === 'HEAD' || res.statusCode === 204) {
  410. delete res.headers['content-encoding'];
  411. }
  412. switch ((res.headers['content-encoding'] || '').toLowerCase()) {
  413. /*eslint default-case:0*/
  414. case 'gzip':
  415. case 'x-gzip':
  416. case 'compress':
  417. case 'x-compress':
  418. // add the unzipper to the body stream processing pipeline
  419. streams.push(zlib.createUnzip(zlibOptions));
  420. // remove the content-encoding in order to not confuse downstream operations
  421. delete res.headers['content-encoding'];
  422. break;
  423. case 'deflate':
  424. streams.push(new ZlibHeaderTransformStream());
  425. // add the unzipper to the body stream processing pipeline
  426. streams.push(zlib.createUnzip(zlibOptions));
  427. // remove the content-encoding in order to not confuse downstream operations
  428. delete res.headers['content-encoding'];
  429. break;
  430. case 'br':
  431. if (isBrotliSupported) {
  432. streams.push(zlib.createBrotliDecompress(brotliOptions));
  433. delete res.headers['content-encoding'];
  434. }
  435. }
  436. }
  437. responseStream = streams.length > 1 ? stream.pipeline(streams, utils.noop) : streams[0];
  438. const offListeners = stream.finished(responseStream, () => {
  439. offListeners();
  440. onFinished();
  441. });
  442. const response = {
  443. status: res.statusCode,
  444. statusText: res.statusMessage,
  445. headers: new AxiosHeaders(res.headers),
  446. config,
  447. request: lastRequest
  448. };
  449. if (responseType === 'stream') {
  450. response.data = responseStream;
  451. settle(resolve, reject, response);
  452. } else {
  453. const responseBuffer = [];
  454. let totalResponseBytes = 0;
  455. responseStream.on('data', function handleStreamData(chunk) {
  456. responseBuffer.push(chunk);
  457. totalResponseBytes += chunk.length;
  458. // make sure the content length is not over the maxContentLength if specified
  459. if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
  460. // stream.destroy() emit aborted event before calling reject() on Node.js v16
  461. rejected = true;
  462. responseStream.destroy();
  463. reject(new AxiosError('maxContentLength size of ' + config.maxContentLength + ' exceeded',
  464. AxiosError.ERR_BAD_RESPONSE, config, lastRequest));
  465. }
  466. });
  467. responseStream.on('aborted', function handlerStreamAborted() {
  468. if (rejected) {
  469. return;
  470. }
  471. const err = new AxiosError(
  472. 'maxContentLength size of ' + config.maxContentLength + ' exceeded',
  473. AxiosError.ERR_BAD_RESPONSE,
  474. config,
  475. lastRequest
  476. );
  477. responseStream.destroy(err);
  478. reject(err);
  479. });
  480. responseStream.on('error', function handleStreamError(err) {
  481. if (req.destroyed) return;
  482. reject(AxiosError.from(err, null, config, lastRequest));
  483. });
  484. responseStream.on('end', function handleStreamEnd() {
  485. try {
  486. let responseData = responseBuffer.length === 1 ? responseBuffer[0] : Buffer.concat(responseBuffer);
  487. if (responseType !== 'arraybuffer') {
  488. responseData = responseData.toString(responseEncoding);
  489. if (!responseEncoding || responseEncoding === 'utf8') {
  490. responseData = utils.stripBOM(responseData);
  491. }
  492. }
  493. response.data = responseData;
  494. } catch (err) {
  495. return reject(AxiosError.from(err, null, config, response.request, response));
  496. }
  497. settle(resolve, reject, response);
  498. });
  499. }
  500. emitter.once('abort', err => {
  501. if (!responseStream.destroyed) {
  502. responseStream.emit('error', err);
  503. responseStream.destroy();
  504. }
  505. });
  506. });
  507. emitter.once('abort', err => {
  508. reject(err);
  509. req.destroy(err);
  510. });
  511. // Handle errors
  512. req.on('error', function handleRequestError(err) {
  513. // @todo remove
  514. // if (req.aborted && err.code !== AxiosError.ERR_FR_TOO_MANY_REDIRECTS) return;
  515. reject(AxiosError.from(err, null, config, req));
  516. });
  517. // set tcp keep alive to prevent drop connection by peer
  518. req.on('socket', function handleRequestSocket(socket) {
  519. // default interval of sending ack packet is 1 minute
  520. socket.setKeepAlive(true, 1000 * 60);
  521. });
  522. // Handle request timeout
  523. if (config.timeout) {
  524. // This is forcing a int timeout to avoid problems if the `req` interface doesn't handle other types.
  525. const timeout = parseInt(config.timeout, 10);
  526. if (Number.isNaN(timeout)) {
  527. reject(new AxiosError(
  528. 'error trying to parse `config.timeout` to int',
  529. AxiosError.ERR_BAD_OPTION_VALUE,
  530. config,
  531. req
  532. ));
  533. return;
  534. }
  535. // Sometime, the response will be very slow, and does not respond, the connect event will be block by event loop system.
  536. // And timer callback will be fired, and abort() will be invoked before connection, then get "socket hang up" and code ECONNRESET.
  537. // At this time, if we have a large number of request, nodejs will hang up some socket on background. and the number will up and up.
  538. // And then these socket which be hang up will devouring CPU little by little.
  539. // ClientRequest.setTimeout will be fired on the specify milliseconds, and can make sure that abort() will be fired after connect.
  540. req.setTimeout(timeout, function handleRequestTimeout() {
  541. if (isDone) return;
  542. let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';
  543. const transitional = config.transitional || transitionalDefaults;
  544. if (config.timeoutErrorMessage) {
  545. timeoutErrorMessage = config.timeoutErrorMessage;
  546. }
  547. reject(new AxiosError(
  548. timeoutErrorMessage,
  549. transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
  550. config,
  551. req
  552. ));
  553. abort();
  554. });
  555. }
  556. // Send the request
  557. if (utils.isStream(data)) {
  558. let ended = false;
  559. let errored = false;
  560. data.on('end', () => {
  561. ended = true;
  562. });
  563. data.once('error', err => {
  564. errored = true;
  565. req.destroy(err);
  566. });
  567. data.on('close', () => {
  568. if (!ended && !errored) {
  569. abort(new CanceledError('Request stream has been aborted', config, req));
  570. }
  571. });
  572. data.pipe(req);
  573. } else {
  574. req.end(data);
  575. }
  576. });
  577. }
  578. export const __setProxy = setProxy;