@leofcoin/peernet 0.14.4 → 0.14.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/pako.js +6732 -0
- package/dist/browser/peernet.js +700 -826
- package/dist/browser/wrtc.js +29 -0
- package/package.json +1 -1
package/dist/browser/peernet.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/******/ (function() { // webpackBootstrap
|
|
2
2
|
/******/ var __webpack_modules__ = ({
|
|
3
3
|
|
|
4
|
-
/***/
|
|
4
|
+
/***/ 7865:
|
|
5
5
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
6
6
|
|
|
7
7
|
"use strict";
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var codecFormatInterface = __webpack_require__(
|
|
10
|
+
var codecFormatInterface = __webpack_require__(3427);
|
|
11
11
|
|
|
12
12
|
var proto$b = `
|
|
13
13
|
// PeernetMessage
|
|
@@ -324,16 +324,16 @@ exports.ResponseMessage = ResponseMessage;
|
|
|
324
324
|
|
|
325
325
|
/***/ }),
|
|
326
326
|
|
|
327
|
-
/***/
|
|
327
|
+
/***/ 2659:
|
|
328
328
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
329
329
|
|
|
330
330
|
"use strict";
|
|
331
|
-
/* provided dependency */ var Buffer = __webpack_require__(
|
|
331
|
+
/* provided dependency */ var Buffer = __webpack_require__(8834)["Buffer"];
|
|
332
332
|
|
|
333
333
|
|
|
334
334
|
__webpack_require__(307);
|
|
335
|
-
var PubSub = __webpack_require__(
|
|
336
|
-
var codecFormatInterface = __webpack_require__(
|
|
335
|
+
var PubSub = __webpack_require__(7037);
|
|
336
|
+
var codecFormatInterface = __webpack_require__(3427);
|
|
337
337
|
|
|
338
338
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
339
339
|
|
|
@@ -713,7 +713,7 @@ class MessageHandler {
|
|
|
713
713
|
let identity = await walletStore.get('identity');
|
|
714
714
|
identity = JSON.parse(identity);
|
|
715
715
|
if (!globalThis.MultiWallet) {
|
|
716
|
-
const importee = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(__webpack_require__(/* webpackChunkName: "multi-wallet" */
|
|
716
|
+
const importee = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(__webpack_require__(/* webpackChunkName: "multi-wallet" */ 9755)); });
|
|
717
717
|
globalThis.MultiWallet = importee.default;
|
|
718
718
|
}
|
|
719
719
|
const wallet = new MultiWallet(this.network);
|
|
@@ -817,7 +817,7 @@ class Peernet {
|
|
|
817
817
|
|
|
818
818
|
async addStore(name, prefix, root, isPrivate = true) {
|
|
819
819
|
if (!globalThis.LeofcoinStorage) {
|
|
820
|
-
const importee = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(__webpack_require__(/* webpackChunkName: "storage" */
|
|
820
|
+
const importee = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(__webpack_require__(/* webpackChunkName: "storage" */ 3613)); });
|
|
821
821
|
globalThis.LeofcoinStorage = importee.default;
|
|
822
822
|
}
|
|
823
823
|
if (name === 'block' || name === 'transaction' || name === 'chain' ||
|
|
@@ -906,7 +906,7 @@ class Peernet {
|
|
|
906
906
|
ChatMessage,
|
|
907
907
|
PeernetFile
|
|
908
908
|
// FolderMessageResponse
|
|
909
|
-
} = await Promise.resolve().then(function () { return __webpack_require__(/* webpackChunkName: "messages" */
|
|
909
|
+
} = await Promise.resolve().then(function () { return __webpack_require__(/* webpackChunkName: "messages" */ 7865); });
|
|
910
910
|
|
|
911
911
|
/**
|
|
912
912
|
* proto Object containing protos
|
|
@@ -958,7 +958,7 @@ class Peernet {
|
|
|
958
958
|
this.accounts = [accounts.split(',')];
|
|
959
959
|
}
|
|
960
960
|
} else {
|
|
961
|
-
const importee = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(__webpack_require__(/* webpackChunkName: "generate-account" */
|
|
961
|
+
const importee = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(__webpack_require__(/* webpackChunkName: "generate-account" */ 5162)); });
|
|
962
962
|
const generateAccount = importee.default;
|
|
963
963
|
const {identity, accounts, config} = await generateAccount(this.network);
|
|
964
964
|
// await accountStore.put('config', JSON.stringify(config));
|
|
@@ -991,7 +991,7 @@ class Peernet {
|
|
|
991
991
|
pubsub.subscribe('peer:data', dataHandler);
|
|
992
992
|
|
|
993
993
|
|
|
994
|
-
const importee = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(__webpack_require__(/* webpackChunkName: "peernet-swarm" */
|
|
994
|
+
const importee = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(__webpack_require__(/* webpackChunkName: "peernet-swarm" */ 96)); });
|
|
995
995
|
/**
|
|
996
996
|
* @access public
|
|
997
997
|
* @type {PeernetClient}
|
|
@@ -1450,20 +1450,20 @@ module.exports = Peernet;
|
|
|
1450
1450
|
|
|
1451
1451
|
/***/ }),
|
|
1452
1452
|
|
|
1453
|
-
/***/
|
|
1453
|
+
/***/ 3427:
|
|
1454
1454
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1455
1455
|
|
|
1456
1456
|
"use strict";
|
|
1457
|
-
/* provided dependency */ var Buffer = __webpack_require__(
|
|
1457
|
+
/* provided dependency */ var Buffer = __webpack_require__(8834)["Buffer"];
|
|
1458
1458
|
|
|
1459
1459
|
|
|
1460
1460
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1461
1461
|
|
|
1462
|
-
var bs32 = __webpack_require__(
|
|
1462
|
+
var bs32 = __webpack_require__(4894);
|
|
1463
1463
|
var bs58 = __webpack_require__(158);
|
|
1464
|
-
var isHex = __webpack_require__(
|
|
1465
|
-
var varint = __webpack_require__(
|
|
1466
|
-
var createKeccakHash = __webpack_require__(
|
|
1464
|
+
var isHex = __webpack_require__(6187);
|
|
1465
|
+
var varint = __webpack_require__(4676);
|
|
1466
|
+
var createKeccakHash = __webpack_require__(5811);
|
|
1467
1467
|
|
|
1468
1468
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
1469
1469
|
|
|
@@ -2023,12 +2023,12 @@ exports.FormatInterface = FormatInterface;
|
|
|
2023
2023
|
|
|
2024
2024
|
/***/ }),
|
|
2025
2025
|
|
|
2026
|
-
/***/
|
|
2026
|
+
/***/ 5162:
|
|
2027
2027
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
2028
2028
|
|
|
2029
2029
|
"use strict";
|
|
2030
2030
|
__webpack_require__.r(__webpack_exports__);
|
|
2031
|
-
/* harmony import */ var _leofcoin_multi_wallet__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
2031
|
+
/* harmony import */ var _leofcoin_multi_wallet__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9755);
|
|
2032
2032
|
|
|
2033
2033
|
|
|
2034
2034
|
/**
|
|
@@ -2071,7 +2071,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2071
2071
|
|
|
2072
2072
|
/***/ }),
|
|
2073
2073
|
|
|
2074
|
-
/***/
|
|
2074
|
+
/***/ 9755:
|
|
2075
2075
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
2076
2076
|
|
|
2077
2077
|
"use strict";
|
|
@@ -2084,704 +2084,252 @@ var t={9809:(t,e,i)=>{const r=e;r.bignum=i(4590),r.define=i(2500).define,r.base=
|
|
|
2084
2084
|
|
|
2085
2085
|
/***/ }),
|
|
2086
2086
|
|
|
2087
|
-
/***/
|
|
2087
|
+
/***/ 96:
|
|
2088
2088
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
2089
2089
|
|
|
2090
2090
|
"use strict";
|
|
2091
|
+
// ESM COMPAT FLAG
|
|
2091
2092
|
__webpack_require__.r(__webpack_exports__);
|
|
2092
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2093
|
-
/* harmony export */ "default": function() { return /* binding */ __webpack_exports__default; }
|
|
2094
|
-
/* harmony export */ });
|
|
2095
|
-
/* provided dependency */ var process = __webpack_require__(406);
|
|
2096
|
-
/******/ var __webpack_modules__ = ({
|
|
2097
|
-
|
|
2098
|
-
/***/ 307:
|
|
2099
|
-
/***/ (() => {
|
|
2100
|
-
|
|
2101
|
-
if (!globalThis.DEBUG) {
|
|
2102
|
-
if (globalThis.localStorage) globalThis.DEBUG = Boolean(globalThis.localStorage.getItem('DEBUG') === 'true')
|
|
2103
|
-
}
|
|
2104
|
-
|
|
2105
|
-
globalThis.debug = text => {
|
|
2106
|
-
if (globalThis.DEBUG) console.log('\x1b[34m\x1b[1m%s', text, '\x1b[0m'); // bright blue
|
|
2107
|
-
}
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
/***/ }),
|
|
2111
|
-
|
|
2112
|
-
/***/ 284:
|
|
2113
|
-
/***/ ((module) => {
|
|
2114
|
-
|
|
2115
|
-
var naiveFallback = function () {
|
|
2116
|
-
if (typeof self === "object" && self) return self;
|
|
2117
|
-
if (typeof window === "object" && window) return window;
|
|
2118
|
-
throw new Error("Unable to resolve global `this`");
|
|
2119
|
-
};
|
|
2120
|
-
|
|
2121
|
-
module.exports = (function () {
|
|
2122
|
-
if (this) return this;
|
|
2123
|
-
|
|
2124
|
-
// Unexpected strict mode (may happen if e.g. bundled into ESM module)
|
|
2125
|
-
|
|
2126
|
-
// Fallback to standard globalThis if available
|
|
2127
|
-
if (typeof globalThis === "object" && globalThis) return globalThis;
|
|
2128
|
-
|
|
2129
|
-
// Thanks @mathiasbynens -> https://mathiasbynens.be/notes/globalthis
|
|
2130
|
-
// In all ES5+ engines global object inherits from Object.prototype
|
|
2131
|
-
// (if you approached one that doesn't please report)
|
|
2132
|
-
try {
|
|
2133
|
-
Object.defineProperty(Object.prototype, "__global__", {
|
|
2134
|
-
get: function () { return this; },
|
|
2135
|
-
configurable: true
|
|
2136
|
-
});
|
|
2137
|
-
} catch (error) {
|
|
2138
|
-
// Unfortunate case of updates to Object.prototype being restricted
|
|
2139
|
-
// via preventExtensions, seal or freeze
|
|
2140
|
-
return naiveFallback();
|
|
2141
|
-
}
|
|
2142
|
-
try {
|
|
2143
|
-
// Safari case (window.__global__ works, but __global__ does not)
|
|
2144
|
-
if (!__global__) return naiveFallback();
|
|
2145
|
-
return __global__;
|
|
2146
|
-
} finally {
|
|
2147
|
-
delete Object.prototype.__global__;
|
|
2148
|
-
}
|
|
2149
|
-
})();
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
/***/ }),
|
|
2153
|
-
|
|
2154
|
-
/***/ 840:
|
|
2155
|
-
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_1582__) => {
|
|
2156
|
-
|
|
2157
|
-
var _globalThis;
|
|
2158
|
-
if (typeof globalThis === 'object') {
|
|
2159
|
-
_globalThis = globalThis;
|
|
2160
|
-
} else {
|
|
2161
|
-
try {
|
|
2162
|
-
_globalThis = __nested_webpack_require_1582__(284);
|
|
2163
|
-
} catch (error) {
|
|
2164
|
-
} finally {
|
|
2165
|
-
if (!_globalThis && typeof window !== 'undefined') { _globalThis = window; }
|
|
2166
|
-
if (!_globalThis) { throw new Error('Could not determine global this'); }
|
|
2167
|
-
}
|
|
2168
|
-
}
|
|
2169
|
-
|
|
2170
|
-
var NativeWebSocket = _globalThis.WebSocket || _globalThis.MozWebSocket;
|
|
2171
|
-
var websocket_version = __nested_webpack_require_1582__(387);
|
|
2172
|
-
|
|
2173
2093
|
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
*/
|
|
2177
|
-
|
|
2178
|
-
var native_instance;
|
|
2094
|
+
// EXPORTS
|
|
2095
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
2096
|
+
"default": function() { return /* binding */ Client; }
|
|
2097
|
+
});
|
|
2179
2098
|
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
native_instance = new NativeWebSocket(uri);
|
|
2185
|
-
}
|
|
2099
|
+
;// CONCATENATED MODULE: ./node_modules/socket-request-client/dist/es/index.js
|
|
2100
|
+
/* provided dependency */ var process = __webpack_require__(4406);
|
|
2101
|
+
/* socket-request-client version 1.6.3 */
|
|
2102
|
+
const ENVIRONMENT = {version: '1.6.3', production: true};
|
|
2186
2103
|
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
}
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2104
|
+
class LittlePubSub {
|
|
2105
|
+
constructor(verbose = true) {
|
|
2106
|
+
this.subscribers = {};
|
|
2107
|
+
this.verbose = verbose;
|
|
2108
|
+
}
|
|
2109
|
+
subscribe(event, handler, context) {
|
|
2110
|
+
if (typeof context === 'undefined') {
|
|
2111
|
+
context = handler;
|
|
2112
|
+
}
|
|
2113
|
+
this.subscribers[event] = this.subscribers[event] || { handlers: [], value: null};
|
|
2114
|
+
this.subscribers[event].handlers.push(handler.bind(context));
|
|
2115
|
+
}
|
|
2116
|
+
unsubscribe(event, handler, context) {
|
|
2117
|
+
if (typeof context === 'undefined') {
|
|
2118
|
+
context = handler;
|
|
2119
|
+
}
|
|
2120
|
+
if (this.subscribers[event]) {
|
|
2121
|
+
const index = this.subscribers[event].handlers.indexOf(handler.bind(context));
|
|
2122
|
+
this.subscribers[event].handlers.splice(index);
|
|
2123
|
+
if (this.subscribers[event].handlers.length === 0) delete this.subscribers[event];
|
|
2124
|
+
}
|
|
2125
|
+
}
|
|
2126
|
+
publish(event, change) {
|
|
2127
|
+
if (this.subscribers[event]) {
|
|
2128
|
+
if (this.verbose || this.subscribers[event].value !== change) {
|
|
2129
|
+
this.subscribers[event].value = change;
|
|
2130
|
+
this.subscribers[event].handlers.forEach(handler => {
|
|
2131
|
+
handler(change, this.subscribers[event].value);
|
|
2132
|
+
});
|
|
2133
|
+
}
|
|
2134
|
+
}
|
|
2135
|
+
}
|
|
2202
2136
|
}
|
|
2203
2137
|
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2138
|
+
var clientApi = _pubsub => {
|
|
2139
|
+
const subscribe = (topic, cb) => {
|
|
2140
|
+
_pubsub.subscribe(topic, cb);
|
|
2141
|
+
};
|
|
2142
|
+
const unsubscribe = (topic, cb) => {
|
|
2143
|
+
_pubsub.unsubscribe(topic, cb);
|
|
2144
|
+
};
|
|
2145
|
+
const publish = (topic, value) => {
|
|
2146
|
+
_pubsub.publish(topic, value);
|
|
2147
|
+
};
|
|
2148
|
+
const _connectionState = (state) => {
|
|
2149
|
+
switch (state) {
|
|
2150
|
+
case 0:
|
|
2151
|
+
return 'connecting'
|
|
2152
|
+
case 1:
|
|
2153
|
+
return 'open'
|
|
2154
|
+
case 2:
|
|
2155
|
+
return 'closing'
|
|
2156
|
+
case 3:
|
|
2157
|
+
return 'closed'
|
|
2158
|
+
}
|
|
2159
|
+
};
|
|
2160
|
+
const request = (client, request) => {
|
|
2161
|
+
return new Promise((resolve, reject) => {
|
|
2162
|
+
const state = _connectionState(client.readyState);
|
|
2163
|
+
if (state !== 'open') return reject(`coudn't send request to ${client.id}, no open connection found.`)
|
|
2164
|
+
request.id = Math.random().toString(36).slice(-12);
|
|
2165
|
+
const handler = result => {
|
|
2166
|
+
if (result && result.error) return reject(result.error)
|
|
2167
|
+
resolve({result, id: request.id, handler});
|
|
2168
|
+
unsubscribe(request.id, handler);
|
|
2169
|
+
};
|
|
2170
|
+
subscribe(request.id, handler);
|
|
2171
|
+
send(client, request);
|
|
2172
|
+
});
|
|
2173
|
+
};
|
|
2174
|
+
const send = async (client, request) => {
|
|
2175
|
+
return client.send(JSON.stringify(request))
|
|
2176
|
+
};
|
|
2177
|
+
const pubsub = client => {
|
|
2178
|
+
return {
|
|
2179
|
+
publish: (topic = 'pubsub', value) => {
|
|
2180
|
+
return send(client, {url: 'pubsub', params: { topic, value }})
|
|
2181
|
+
},
|
|
2182
|
+
subscribe: (topic = 'pubsub', cb) => {
|
|
2183
|
+
subscribe(topic, cb);
|
|
2184
|
+
return send(client, {url: 'pubsub', params: { topic, subscribe: true }})
|
|
2185
|
+
},
|
|
2186
|
+
unsubscribe: (topic = 'pubsub', cb) => {
|
|
2187
|
+
unsubscribe(topic, cb);
|
|
2188
|
+
return send(client, {url: 'pubsub', params: { topic, unsubscribe: true }})
|
|
2189
|
+
},
|
|
2190
|
+
subscribers: _pubsub.subscribers
|
|
2191
|
+
}
|
|
2192
|
+
};
|
|
2193
|
+
const server = (client) => {
|
|
2194
|
+
return {
|
|
2195
|
+
uptime: async () => {
|
|
2196
|
+
try {
|
|
2197
|
+
const { result, id, handler } = await request(client, {url: 'uptime'});
|
|
2198
|
+
unsubscribe(id, handler);
|
|
2199
|
+
return result
|
|
2200
|
+
} catch (e) {
|
|
2201
|
+
throw e
|
|
2202
|
+
}
|
|
2203
|
+
},
|
|
2204
|
+
ping: async () => {
|
|
2205
|
+
try {
|
|
2206
|
+
const now = new Date().getTime();
|
|
2207
|
+
const { result, id, handler } = await request(client, {url: 'ping'});
|
|
2208
|
+
unsubscribe(id, handler);
|
|
2209
|
+
return (Number(result) - now)
|
|
2210
|
+
} catch (e) {
|
|
2211
|
+
throw e
|
|
2212
|
+
}
|
|
2213
|
+
}
|
|
2214
|
+
}
|
|
2215
|
+
};
|
|
2216
|
+
const peernet = (client) => {
|
|
2217
|
+
return {
|
|
2218
|
+
join: async (params) => {
|
|
2219
|
+
try {
|
|
2220
|
+
params.join = true;
|
|
2221
|
+
const requested = { url: 'peernet', params };
|
|
2222
|
+
const { result, id, handler } = await request(client, requested);
|
|
2223
|
+
unsubscribe(id, handler);
|
|
2224
|
+
return result
|
|
2225
|
+
} catch (e) {
|
|
2226
|
+
throw e
|
|
2227
|
+
}
|
|
2228
|
+
},
|
|
2229
|
+
leave: async (params) => {
|
|
2230
|
+
try {
|
|
2231
|
+
params.join = false;
|
|
2232
|
+
const requested = { url: 'peernet', params };
|
|
2233
|
+
const { result, id, handler } = await request(client, requested);
|
|
2234
|
+
unsubscribe(id, handler);
|
|
2235
|
+
return result
|
|
2236
|
+
} catch (e) {
|
|
2237
|
+
throw e
|
|
2238
|
+
}
|
|
2239
|
+
}
|
|
2240
|
+
}
|
|
2241
|
+
};
|
|
2242
|
+
return { send, request, pubsub, server, subscribe, unsubscribe, publish, peernet }
|
|
2210
2243
|
};
|
|
2211
2244
|
|
|
2245
|
+
if (!globalThis.PubSub) globalThis.PubSub = LittlePubSub;
|
|
2246
|
+
if (!globalThis.pubsub) globalThis.pubsub = new LittlePubSub({verbose: false});
|
|
2247
|
+
const socketRequestClient = (url, protocols = 'echo-protocol', options = { retry: false }) => {
|
|
2248
|
+
const { retry } = options;
|
|
2249
|
+
const api = clientApi(pubsub);
|
|
2250
|
+
let tries = 0;
|
|
2251
|
+
const onerror = error => {
|
|
2252
|
+
if (pubsub.subscribers['error']) {
|
|
2253
|
+
pubsub.publish('error', error);
|
|
2254
|
+
} else {
|
|
2255
|
+
console.error(error);
|
|
2256
|
+
}
|
|
2257
|
+
};
|
|
2258
|
+
const onmessage = message => {
|
|
2259
|
+
const {value, url, status, id} = JSON.parse(message.data.toString());
|
|
2260
|
+
const publisher = id ? id : url;
|
|
2261
|
+
if (status === 200) {
|
|
2262
|
+
pubsub.publish(publisher, value);
|
|
2263
|
+
} else {
|
|
2264
|
+
pubsub.publish(publisher, {error: value});
|
|
2265
|
+
}
|
|
2266
|
+
};
|
|
2267
|
+
const clientConnection = client => {
|
|
2268
|
+
const startTime = new Date().getTime();
|
|
2269
|
+
return {
|
|
2270
|
+
client,
|
|
2271
|
+
request: async req => {
|
|
2272
|
+
const { result, id, handler } = await api.request(client, req);
|
|
2273
|
+
pubsub.unsubscribe(id, handler);
|
|
2274
|
+
return result
|
|
2275
|
+
},
|
|
2276
|
+
send: req => api.send(client, req),
|
|
2277
|
+
subscribe: api.subscribe,
|
|
2278
|
+
unsubscribe: api.unsubscribe,
|
|
2279
|
+
subscribers: api.subscribers,
|
|
2280
|
+
publish: api.publish,
|
|
2281
|
+
pubsub: api.pubsub(client),
|
|
2282
|
+
uptime: () => {
|
|
2283
|
+
const now = new Date().getTime();
|
|
2284
|
+
return (now - startTime)
|
|
2285
|
+
},
|
|
2286
|
+
peernet: api.peernet(client),
|
|
2287
|
+
server: api.server(client),
|
|
2288
|
+
close: exit => {
|
|
2289
|
+
client.close();
|
|
2290
|
+
}
|
|
2291
|
+
}
|
|
2292
|
+
};
|
|
2293
|
+
return new Promise((resolve, reject) => {
|
|
2294
|
+
const init = () => {
|
|
2295
|
+
let ws;
|
|
2296
|
+
if (typeof process === 'object' && !globalThis.WebSocket) {
|
|
2297
|
+
ws = (__webpack_require__(5840).w3cwebsocket);
|
|
2298
|
+
} else {
|
|
2299
|
+
ws = WebSocket;
|
|
2300
|
+
}
|
|
2301
|
+
const client = new ws(url, protocols);
|
|
2302
|
+
client.onmessage = onmessage;
|
|
2303
|
+
client.onerror = onerror;
|
|
2304
|
+
client.onopen = () => {
|
|
2305
|
+
tries = 0;
|
|
2306
|
+
resolve(clientConnection(client));
|
|
2307
|
+
};
|
|
2308
|
+
client.onclose = message => {
|
|
2309
|
+
tries++;
|
|
2310
|
+
if (!retry) return reject(options)
|
|
2311
|
+
if (tries > 5) {
|
|
2312
|
+
console.log(`${protocols} Client Closed`);
|
|
2313
|
+
console.error(`could not connect to - ${url}/`);
|
|
2314
|
+
return resolve(clientConnection(client))
|
|
2315
|
+
}
|
|
2316
|
+
if (message.code === 1006) {
|
|
2317
|
+
console.log('Retrying in 10 seconds');
|
|
2318
|
+
setTimeout(() => {
|
|
2319
|
+
return init();
|
|
2320
|
+
}, retry);
|
|
2321
|
+
}
|
|
2322
|
+
};
|
|
2323
|
+
};
|
|
2324
|
+
return init();
|
|
2325
|
+
});
|
|
2326
|
+
};
|
|
2212
2327
|
|
|
2213
|
-
/***/ }),
|
|
2214
|
-
|
|
2215
|
-
/***/ 387:
|
|
2216
|
-
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_3072__) => {
|
|
2217
|
-
|
|
2218
|
-
module.exports = __nested_webpack_require_3072__(794).version;
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
/***/ }),
|
|
2222
|
-
|
|
2223
|
-
/***/ 794:
|
|
2224
|
-
/***/ ((module) => {
|
|
2225
|
-
|
|
2226
|
-
module.exports = {"version":"1.0.34"};
|
|
2227
|
-
|
|
2228
|
-
/***/ })
|
|
2229
|
-
|
|
2230
|
-
/******/ });
|
|
2231
|
-
/************************************************************************/
|
|
2232
|
-
/******/ // The module cache
|
|
2233
|
-
/******/ var __webpack_module_cache__ = {};
|
|
2234
|
-
/******/
|
|
2235
|
-
/******/ // The require function
|
|
2236
|
-
/******/ function __nested_webpack_require_3459__(moduleId) {
|
|
2237
|
-
/******/ // Check if module is in cache
|
|
2238
|
-
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
2239
|
-
/******/ if (cachedModule !== undefined) {
|
|
2240
|
-
/******/ return cachedModule.exports;
|
|
2241
|
-
/******/ }
|
|
2242
|
-
/******/ // Create a new module (and put it into the cache)
|
|
2243
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
2244
|
-
/******/ // no module.id needed
|
|
2245
|
-
/******/ // no module.loaded needed
|
|
2246
|
-
/******/ exports: {}
|
|
2247
|
-
/******/ };
|
|
2248
|
-
/******/
|
|
2249
|
-
/******/ // Execute the module function
|
|
2250
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __nested_webpack_require_3459__);
|
|
2251
|
-
/******/
|
|
2252
|
-
/******/ // Return the exports of the module
|
|
2253
|
-
/******/ return module.exports;
|
|
2254
|
-
/******/ }
|
|
2255
|
-
/******/
|
|
2256
|
-
/******/ // expose the modules object (__webpack_modules__)
|
|
2257
|
-
/******/ __nested_webpack_require_3459__.m = __webpack_modules__;
|
|
2258
|
-
/******/
|
|
2259
|
-
/************************************************************************/
|
|
2260
|
-
/******/ /* webpack/runtime/create fake namespace object */
|
|
2261
|
-
/******/ (() => {
|
|
2262
|
-
/******/ var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);
|
|
2263
|
-
/******/ var leafPrototypes;
|
|
2264
|
-
/******/ // create a fake namespace object
|
|
2265
|
-
/******/ // mode & 1: value is a module id, require it
|
|
2266
|
-
/******/ // mode & 2: merge all properties of value into the ns
|
|
2267
|
-
/******/ // mode & 4: return value when already ns object
|
|
2268
|
-
/******/ // mode & 16: return value when it's Promise-like
|
|
2269
|
-
/******/ // mode & 8|1: behave like require
|
|
2270
|
-
/******/ __nested_webpack_require_3459__.t = function(value, mode) {
|
|
2271
|
-
/******/ if(mode & 1) value = this(value);
|
|
2272
|
-
/******/ if(mode & 8) return value;
|
|
2273
|
-
/******/ if(typeof value === 'object' && value) {
|
|
2274
|
-
/******/ if((mode & 4) && value.__esModule) return value;
|
|
2275
|
-
/******/ if((mode & 16) && typeof value.then === 'function') return value;
|
|
2276
|
-
/******/ }
|
|
2277
|
-
/******/ var ns = Object.create(null);
|
|
2278
|
-
/******/ __nested_webpack_require_3459__.r(ns);
|
|
2279
|
-
/******/ var def = {};
|
|
2280
|
-
/******/ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];
|
|
2281
|
-
/******/ for(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {
|
|
2282
|
-
/******/ Object.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));
|
|
2283
|
-
/******/ }
|
|
2284
|
-
/******/ def['default'] = () => (value);
|
|
2285
|
-
/******/ __nested_webpack_require_3459__.d(ns, def);
|
|
2286
|
-
/******/ return ns;
|
|
2287
|
-
/******/ };
|
|
2288
|
-
/******/ })();
|
|
2289
|
-
/******/
|
|
2290
|
-
/******/ /* webpack/runtime/define property getters */
|
|
2291
|
-
/******/ (() => {
|
|
2292
|
-
/******/ // define getter functions for harmony exports
|
|
2293
|
-
/******/ __nested_webpack_require_3459__.d = (exports, definition) => {
|
|
2294
|
-
/******/ for(var key in definition) {
|
|
2295
|
-
/******/ if(__nested_webpack_require_3459__.o(definition, key) && !__nested_webpack_require_3459__.o(exports, key)) {
|
|
2296
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
2297
|
-
/******/ }
|
|
2298
|
-
/******/ }
|
|
2299
|
-
/******/ };
|
|
2300
|
-
/******/ })();
|
|
2301
|
-
/******/
|
|
2302
|
-
/******/ /* webpack/runtime/ensure chunk */
|
|
2303
|
-
/******/ (() => {
|
|
2304
|
-
/******/ __nested_webpack_require_3459__.f = {};
|
|
2305
|
-
/******/ // This file contains only the entry chunk.
|
|
2306
|
-
/******/ // The chunk loading function for additional chunks
|
|
2307
|
-
/******/ __nested_webpack_require_3459__.e = (chunkId) => {
|
|
2308
|
-
/******/ return Promise.all(Object.keys(__nested_webpack_require_3459__.f).reduce((promises, key) => {
|
|
2309
|
-
/******/ __nested_webpack_require_3459__.f[key](chunkId, promises);
|
|
2310
|
-
/******/ return promises;
|
|
2311
|
-
/******/ }, []));
|
|
2312
|
-
/******/ };
|
|
2313
|
-
/******/ })();
|
|
2314
|
-
/******/
|
|
2315
|
-
/******/ /* webpack/runtime/get javascript chunk filename */
|
|
2316
|
-
/******/ (() => {
|
|
2317
|
-
/******/ // This function allow to reference async chunks
|
|
2318
|
-
/******/ __nested_webpack_require_3459__.u = (chunkId) => {
|
|
2319
|
-
/******/ // return url for filenames based on template
|
|
2320
|
-
/******/ return "" + {"228":"wrtc","682":"pako"}[chunkId] + ".js";
|
|
2321
|
-
/******/ };
|
|
2322
|
-
/******/ })();
|
|
2323
|
-
/******/
|
|
2324
|
-
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
2325
|
-
/******/ (() => {
|
|
2326
|
-
/******/ __nested_webpack_require_3459__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
2327
|
-
/******/ })();
|
|
2328
|
-
/******/
|
|
2329
|
-
/******/ /* webpack/runtime/load script */
|
|
2330
|
-
/******/ (() => {
|
|
2331
|
-
/******/ var inProgress = {};
|
|
2332
|
-
/******/ var dataWebpackPrefix = "@leofcoin/peernet-swarm:";
|
|
2333
|
-
/******/ // loadScript function to load a script via script tag
|
|
2334
|
-
/******/ __nested_webpack_require_3459__.l = (url, done, key, chunkId) => {
|
|
2335
|
-
/******/ if(inProgress[url]) { inProgress[url].push(done); return; }
|
|
2336
|
-
/******/ var script, needAttach;
|
|
2337
|
-
/******/ if(key !== undefined) {
|
|
2338
|
-
/******/ var scripts = document.getElementsByTagName("script");
|
|
2339
|
-
/******/ for(var i = 0; i < scripts.length; i++) {
|
|
2340
|
-
/******/ var s = scripts[i];
|
|
2341
|
-
/******/ if(s.getAttribute("src") == url || s.getAttribute("data-webpack") == dataWebpackPrefix + key) { script = s; break; }
|
|
2342
|
-
/******/ }
|
|
2343
|
-
/******/ }
|
|
2344
|
-
/******/ if(!script) {
|
|
2345
|
-
/******/ needAttach = true;
|
|
2346
|
-
/******/ script = document.createElement('script');
|
|
2347
|
-
/******/ script.type = "module";
|
|
2348
|
-
/******/ script.charset = 'utf-8';
|
|
2349
|
-
/******/ script.timeout = 120;
|
|
2350
|
-
/******/ if (__nested_webpack_require_3459__.nc) {
|
|
2351
|
-
/******/ script.setAttribute("nonce", __nested_webpack_require_3459__.nc);
|
|
2352
|
-
/******/ }
|
|
2353
|
-
/******/ script.setAttribute("data-webpack", dataWebpackPrefix + key);
|
|
2354
|
-
/******/ script.src = url;
|
|
2355
|
-
/******/ }
|
|
2356
|
-
/******/ inProgress[url] = [done];
|
|
2357
|
-
/******/ var onScriptComplete = (prev, event) => {
|
|
2358
|
-
/******/ // avoid mem leaks in IE.
|
|
2359
|
-
/******/ script.onerror = script.onload = null;
|
|
2360
|
-
/******/ clearTimeout(timeout);
|
|
2361
|
-
/******/ var doneFns = inProgress[url];
|
|
2362
|
-
/******/ delete inProgress[url];
|
|
2363
|
-
/******/ script.parentNode && script.parentNode.removeChild(script);
|
|
2364
|
-
/******/ doneFns && doneFns.forEach((fn) => (fn(event)));
|
|
2365
|
-
/******/ if(prev) return prev(event);
|
|
2366
|
-
/******/ }
|
|
2367
|
-
/******/ ;
|
|
2368
|
-
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
|
2369
|
-
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
|
|
2370
|
-
/******/ script.onload = onScriptComplete.bind(null, script.onload);
|
|
2371
|
-
/******/ needAttach && document.head.appendChild(script);
|
|
2372
|
-
/******/ };
|
|
2373
|
-
/******/ })();
|
|
2374
|
-
/******/
|
|
2375
|
-
/******/ /* webpack/runtime/make namespace object */
|
|
2376
|
-
/******/ (() => {
|
|
2377
|
-
/******/ // define __esModule on exports
|
|
2378
|
-
/******/ __nested_webpack_require_3459__.r = (exports) => {
|
|
2379
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
2380
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2381
|
-
/******/ }
|
|
2382
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
2383
|
-
/******/ };
|
|
2384
|
-
/******/ })();
|
|
2385
|
-
/******/
|
|
2386
|
-
/******/ /* webpack/runtime/publicPath */
|
|
2387
|
-
/******/ (() => {
|
|
2388
|
-
/******/ var scriptUrl;
|
|
2389
|
-
/******/ if (true) scriptUrl = "file:///D:/Workspace/leofcoin/peernet/node_modules/@leofcoin/peernet-swarm/dist/browser/client.js"
|
|
2390
|
-
/******/ // When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration
|
|
2391
|
-
/******/ // or pass an empty string ("") and set the __webpack_public_path__ variable from your code to use your own logic.
|
|
2392
|
-
/******/ if (!scriptUrl) throw new Error("Automatic publicPath is not supported in this browser");
|
|
2393
|
-
/******/ scriptUrl = scriptUrl.replace(/#.*$/, "").replace(/\?.*$/, "").replace(/\/[^\/]+$/, "/");
|
|
2394
|
-
/******/ __nested_webpack_require_3459__.p = scriptUrl;
|
|
2395
|
-
/******/ })();
|
|
2396
|
-
/******/
|
|
2397
|
-
/******/ /* webpack/runtime/jsonp chunk loading */
|
|
2398
|
-
/******/ (() => {
|
|
2399
|
-
/******/ // no baseURI
|
|
2400
|
-
/******/
|
|
2401
|
-
/******/ // object to store loaded and loading chunks
|
|
2402
|
-
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
|
2403
|
-
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
|
|
2404
|
-
/******/ var installedChunks = {
|
|
2405
|
-
/******/ 47: 0
|
|
2406
|
-
/******/ };
|
|
2407
|
-
/******/
|
|
2408
|
-
/******/ __nested_webpack_require_3459__.f.j = (chunkId, promises) => {
|
|
2409
|
-
/******/ // JSONP chunk loading for javascript
|
|
2410
|
-
/******/ var installedChunkData = __nested_webpack_require_3459__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;
|
|
2411
|
-
/******/ if(installedChunkData !== 0) { // 0 means "already installed".
|
|
2412
|
-
/******/
|
|
2413
|
-
/******/ // a Promise means "currently loading".
|
|
2414
|
-
/******/ if(installedChunkData) {
|
|
2415
|
-
/******/ promises.push(installedChunkData[2]);
|
|
2416
|
-
/******/ } else {
|
|
2417
|
-
/******/ if(true) { // all chunks have JS
|
|
2418
|
-
/******/ // setup Promise in chunk cache
|
|
2419
|
-
/******/ var promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));
|
|
2420
|
-
/******/ promises.push(installedChunkData[2] = promise);
|
|
2421
|
-
/******/
|
|
2422
|
-
/******/ // start chunk loading
|
|
2423
|
-
/******/ var url = __nested_webpack_require_3459__.p + __nested_webpack_require_3459__.u(chunkId);
|
|
2424
|
-
/******/ // create error before stack unwound to get useful stacktrace later
|
|
2425
|
-
/******/ var error = new Error();
|
|
2426
|
-
/******/ var loadingEnded = (event) => {
|
|
2427
|
-
/******/ if(__nested_webpack_require_3459__.o(installedChunks, chunkId)) {
|
|
2428
|
-
/******/ installedChunkData = installedChunks[chunkId];
|
|
2429
|
-
/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
|
|
2430
|
-
/******/ if(installedChunkData) {
|
|
2431
|
-
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
|
2432
|
-
/******/ var realSrc = event && event.target && event.target.src;
|
|
2433
|
-
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
|
2434
|
-
/******/ error.name = 'ChunkLoadError';
|
|
2435
|
-
/******/ error.type = errorType;
|
|
2436
|
-
/******/ error.request = realSrc;
|
|
2437
|
-
/******/ installedChunkData[1](error);
|
|
2438
|
-
/******/ }
|
|
2439
|
-
/******/ }
|
|
2440
|
-
/******/ };
|
|
2441
|
-
/******/ __nested_webpack_require_3459__.l(url, loadingEnded, "chunk-" + chunkId, chunkId);
|
|
2442
|
-
/******/ } else {}
|
|
2443
|
-
/******/ }
|
|
2444
|
-
/******/ }
|
|
2445
|
-
/******/ };
|
|
2446
|
-
/******/
|
|
2447
|
-
/******/ // no prefetching
|
|
2448
|
-
/******/
|
|
2449
|
-
/******/ // no preloaded
|
|
2450
|
-
/******/
|
|
2451
|
-
/******/ // no HMR
|
|
2452
|
-
/******/
|
|
2453
|
-
/******/ // no HMR manifest
|
|
2454
|
-
/******/
|
|
2455
|
-
/******/ // no on chunks loaded
|
|
2456
|
-
/******/
|
|
2457
|
-
/******/ // install a JSONP callback for chunk loading
|
|
2458
|
-
/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
|
|
2459
|
-
/******/ var [chunkIds, moreModules, runtime] = data;
|
|
2460
|
-
/******/ // add "moreModules" to the modules object,
|
|
2461
|
-
/******/ // then flag all "chunkIds" as loaded and fire callback
|
|
2462
|
-
/******/ var moduleId, chunkId, i = 0;
|
|
2463
|
-
/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
|
|
2464
|
-
/******/ for(moduleId in moreModules) {
|
|
2465
|
-
/******/ if(__nested_webpack_require_3459__.o(moreModules, moduleId)) {
|
|
2466
|
-
/******/ __nested_webpack_require_3459__.m[moduleId] = moreModules[moduleId];
|
|
2467
|
-
/******/ }
|
|
2468
|
-
/******/ }
|
|
2469
|
-
/******/ if(runtime) var result = runtime(__nested_webpack_require_3459__);
|
|
2470
|
-
/******/ }
|
|
2471
|
-
/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
|
|
2472
|
-
/******/ for(;i < chunkIds.length; i++) {
|
|
2473
|
-
/******/ chunkId = chunkIds[i];
|
|
2474
|
-
/******/ if(__nested_webpack_require_3459__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
|
|
2475
|
-
/******/ installedChunks[chunkId][0]();
|
|
2476
|
-
/******/ }
|
|
2477
|
-
/******/ installedChunks[chunkId] = 0;
|
|
2478
|
-
/******/ }
|
|
2479
|
-
/******/
|
|
2480
|
-
/******/ }
|
|
2481
|
-
/******/
|
|
2482
|
-
/******/ var chunkLoadingGlobal = self["webpackChunk_leofcoin_peernet_swarm"] = self["webpackChunk_leofcoin_peernet_swarm"] || [];
|
|
2483
|
-
/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
|
|
2484
|
-
/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
|
|
2485
|
-
/******/ })();
|
|
2486
|
-
/******/
|
|
2487
|
-
/************************************************************************/
|
|
2488
|
-
var __webpack_exports__ = {};
|
|
2489
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
2490
|
-
(() => {
|
|
2491
|
-
|
|
2492
|
-
// EXPORTS
|
|
2493
|
-
__nested_webpack_require_3459__.d(__webpack_exports__, {
|
|
2494
|
-
"Z": () => (/* binding */ Client)
|
|
2495
|
-
});
|
|
2496
|
-
|
|
2497
|
-
;// CONCATENATED MODULE: ./node_modules/@vandeurenglenn/little-pubsub/src/index.js
|
|
2498
|
-
class LittlePubSub {
|
|
2499
|
-
|
|
2500
|
-
/**
|
|
2501
|
-
* Creates handlers
|
|
2502
|
-
*/
|
|
2503
|
-
constructor(verbose = true) {
|
|
2504
|
-
this.subscribers = {};
|
|
2505
|
-
this.verbose = verbose
|
|
2506
|
-
}
|
|
2507
|
-
|
|
2508
|
-
/**
|
|
2509
|
-
* @param {String} event
|
|
2510
|
-
* @param {Method} handler
|
|
2511
|
-
* @param {HTMLElement} context
|
|
2512
|
-
*/
|
|
2513
|
-
subscribe(event, handler, context) {
|
|
2514
|
-
if (typeof context === 'undefined') {
|
|
2515
|
-
context = handler;
|
|
2516
|
-
}
|
|
2517
|
-
this.subscribers[event] = this.subscribers[event] || { handlers: [], value: null};
|
|
2518
|
-
this.subscribers[event].handlers.push(handler.bind(context))
|
|
2519
|
-
}
|
|
2520
|
-
|
|
2521
|
-
/**
|
|
2522
|
-
* @param {String} event
|
|
2523
|
-
* @param {Method} handler
|
|
2524
|
-
* @param {HTMLElement} context
|
|
2525
|
-
*/
|
|
2526
|
-
unsubscribe(event, handler, context) {
|
|
2527
|
-
if (typeof context === 'undefined') {
|
|
2528
|
-
context = handler;
|
|
2529
|
-
}
|
|
2530
|
-
if (this.subscribers[event]) {
|
|
2531
|
-
const index = this.subscribers[event].handlers.indexOf(handler.bind(context));
|
|
2532
|
-
this.subscribers[event].handlers.splice(index);
|
|
2533
|
-
if (this.subscribers[event].handlers.length === 0) delete this.subscribers[event];
|
|
2534
|
-
}
|
|
2535
|
-
|
|
2536
|
-
}
|
|
2537
|
-
|
|
2538
|
-
/**
|
|
2539
|
-
* @param {String} event
|
|
2540
|
-
* @param {String|Number|Boolean|Object|Array} change
|
|
2541
|
-
*/
|
|
2542
|
-
publish(event, change) {
|
|
2543
|
-
if (this.subscribers[event]) {
|
|
2544
|
-
if (this.verbose || this.subscribers[event].value !== change) {
|
|
2545
|
-
this.subscribers[event].value = change;
|
|
2546
|
-
this.subscribers[event].handlers.forEach(handler => {
|
|
2547
|
-
handler(change, this.subscribers[event].value)
|
|
2548
|
-
})
|
|
2549
|
-
}
|
|
2550
|
-
}
|
|
2551
|
-
}
|
|
2552
|
-
}
|
|
2553
|
-
|
|
2554
|
-
;// CONCATENATED MODULE: ./node_modules/socket-request-client/src/api.js
|
|
2555
|
-
/* harmony default export */ const src_api = (_pubsub => {
|
|
2556
|
-
|
|
2557
|
-
const subscribe = (topic, cb) => {
|
|
2558
|
-
_pubsub.subscribe(topic, cb);
|
|
2559
|
-
}
|
|
2560
|
-
|
|
2561
|
-
const unsubscribe = (topic, cb) => {
|
|
2562
|
-
_pubsub.unsubscribe(topic, cb);
|
|
2563
|
-
}
|
|
2564
|
-
|
|
2565
|
-
const publish = (topic, value) => {
|
|
2566
|
-
_pubsub.publish(topic, value);
|
|
2567
|
-
}
|
|
2568
|
-
|
|
2569
|
-
const _connectionState = (state) => {
|
|
2570
|
-
switch (state) {
|
|
2571
|
-
case 0:
|
|
2572
|
-
return 'connecting'
|
|
2573
|
-
break;
|
|
2574
|
-
case 1:
|
|
2575
|
-
return 'open'
|
|
2576
|
-
break;
|
|
2577
|
-
case 2:
|
|
2578
|
-
return 'closing'
|
|
2579
|
-
break;
|
|
2580
|
-
case 3:
|
|
2581
|
-
return 'closed'
|
|
2582
|
-
break;
|
|
2583
|
-
}
|
|
2584
|
-
}
|
|
2585
|
-
/**
|
|
2586
|
-
* @param {string} type
|
|
2587
|
-
* @param {string} name
|
|
2588
|
-
* @param {object} params
|
|
2589
|
-
*/
|
|
2590
|
-
const request = (client, request) => {
|
|
2591
|
-
return new Promise((resolve, reject) => {
|
|
2592
|
-
|
|
2593
|
-
const state = _connectionState(client.readyState)
|
|
2594
|
-
if (state !== 'open') return reject(`coudn't send request to ${client.id}, no open connection found.`)
|
|
2595
|
-
|
|
2596
|
-
request.id = Math.random().toString(36).slice(-12);
|
|
2597
|
-
const handler = result => {
|
|
2598
|
-
if (result && result.error) return reject(result.error)
|
|
2599
|
-
resolve({result, id: request.id, handler})
|
|
2600
|
-
unsubscribe(request.id, handler);
|
|
2601
|
-
}
|
|
2602
|
-
subscribe(request.id, handler);
|
|
2603
|
-
send(client, request);
|
|
2604
|
-
});
|
|
2605
|
-
}
|
|
2606
|
-
|
|
2607
|
-
const send = async (client, request) => {
|
|
2608
|
-
return client.send(JSON.stringify(request))
|
|
2609
|
-
}
|
|
2610
|
-
|
|
2611
|
-
const pubsub = client => {
|
|
2612
|
-
return {
|
|
2613
|
-
publish: (topic = 'pubsub', value) => {
|
|
2614
|
-
return send(client, {url: 'pubsub', params: { topic, value }})
|
|
2615
|
-
},
|
|
2616
|
-
subscribe: (topic = 'pubsub', cb) => {
|
|
2617
|
-
subscribe(topic, cb);
|
|
2618
|
-
return send(client, {url: 'pubsub', params: { topic, subscribe: true }})
|
|
2619
|
-
},
|
|
2620
|
-
unsubscribe: (topic = 'pubsub', cb) => {
|
|
2621
|
-
unsubscribe(topic, cb)
|
|
2622
|
-
return send(client, {url: 'pubsub', params: { topic, unsubscribe: true }})
|
|
2623
|
-
},
|
|
2624
|
-
subscribers: _pubsub.subscribers
|
|
2625
|
-
}
|
|
2626
|
-
}
|
|
2627
|
-
|
|
2628
|
-
const server = (client) => {
|
|
2629
|
-
return {
|
|
2630
|
-
uptime: async () => {
|
|
2631
|
-
try {
|
|
2632
|
-
const { result, id, handler } = await request(client, {url: 'uptime'})
|
|
2633
|
-
unsubscribe(id, handler);
|
|
2634
|
-
return result
|
|
2635
|
-
} catch (e) {
|
|
2636
|
-
throw e
|
|
2637
|
-
}
|
|
2638
|
-
},
|
|
2639
|
-
ping: async () => {
|
|
2640
|
-
try {
|
|
2641
|
-
const now = new Date().getTime()
|
|
2642
|
-
const { result, id, handler } = await request(client, {url: 'ping'})
|
|
2643
|
-
unsubscribe(id, handler);
|
|
2644
|
-
return (Number(result) - now)
|
|
2645
|
-
} catch (e) {
|
|
2646
|
-
throw e
|
|
2647
|
-
}
|
|
2648
|
-
}
|
|
2649
|
-
}
|
|
2650
|
-
}
|
|
2651
|
-
|
|
2652
|
-
const peernet = (client) => {
|
|
2653
|
-
return {
|
|
2654
|
-
join: async (params) => {
|
|
2655
|
-
try {
|
|
2656
|
-
params.join = true;
|
|
2657
|
-
const requested = { url: 'peernet', params }
|
|
2658
|
-
const { result, id, handler } = await request(client, requested)
|
|
2659
|
-
unsubscribe(id, handler);
|
|
2660
|
-
return result
|
|
2661
|
-
} catch (e) {
|
|
2662
|
-
throw e
|
|
2663
|
-
}
|
|
2664
|
-
},
|
|
2665
|
-
leave: async (params) => {
|
|
2666
|
-
try {
|
|
2667
|
-
params.join = false;
|
|
2668
|
-
const requested = { url: 'peernet', params }
|
|
2669
|
-
const { result, id, handler } = await request(client, requested)
|
|
2670
|
-
unsubscribe(id, handler);
|
|
2671
|
-
return result
|
|
2672
|
-
} catch (e) {
|
|
2673
|
-
throw e
|
|
2674
|
-
}
|
|
2675
|
-
}
|
|
2676
|
-
}
|
|
2677
|
-
}
|
|
2678
|
-
|
|
2679
|
-
return { send, request, pubsub, server, subscribe, unsubscribe, publish, peernet }
|
|
2680
|
-
});
|
|
2681
2328
|
|
|
2682
|
-
;// CONCATENATED MODULE: ./node_modules/socket-request-client/src/index.js
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
if (!globalThis.PubSub) globalThis.PubSub = LittlePubSub
|
|
2687
|
-
if (!globalThis.pubsub) globalThis.pubsub = new LittlePubSub({verbose: false})
|
|
2688
|
-
|
|
2689
|
-
const socketRequestClient = (url, protocols = 'echo-protocol', options = { retry: false }) => {
|
|
2690
|
-
const { retry } = options;
|
|
2691
|
-
|
|
2692
|
-
const api = src_api(pubsub)
|
|
2693
|
-
|
|
2694
|
-
let tries = 0;
|
|
2695
|
-
|
|
2696
|
-
const onerror = error => {
|
|
2697
|
-
if (pubsub.subscribers['error']) {
|
|
2698
|
-
pubsub.publish('error', error);
|
|
2699
|
-
} else {
|
|
2700
|
-
console.error(error);
|
|
2701
|
-
}
|
|
2702
|
-
}
|
|
2703
|
-
|
|
2704
|
-
const onmessage = message => {
|
|
2705
|
-
const {value, url, status, id} = JSON.parse(message.data.toString());
|
|
2706
|
-
const publisher = id ? id : url;
|
|
2707
|
-
if (status === 200) {
|
|
2708
|
-
pubsub.publish(publisher, value);
|
|
2709
|
-
} else {
|
|
2710
|
-
pubsub.publish(publisher, {error: value});
|
|
2711
|
-
}
|
|
2712
|
-
|
|
2713
|
-
}
|
|
2714
|
-
|
|
2715
|
-
const clientConnection = client => {
|
|
2716
|
-
const startTime = new Date().getTime()
|
|
2717
|
-
return {
|
|
2718
|
-
client,
|
|
2719
|
-
request: async req => {
|
|
2720
|
-
const { result, id, handler } = await api.request(client, req)
|
|
2721
|
-
pubsub.unsubscribe(id, handler);
|
|
2722
|
-
return result
|
|
2723
|
-
},
|
|
2724
|
-
send: req => api.send(client, req),
|
|
2725
|
-
subscribe: api.subscribe,
|
|
2726
|
-
unsubscribe: api.unsubscribe,
|
|
2727
|
-
subscribers: api.subscribers,
|
|
2728
|
-
publish: api.publish,
|
|
2729
|
-
pubsub: api.pubsub(client),
|
|
2730
|
-
uptime: () => {
|
|
2731
|
-
const now = new Date().getTime()
|
|
2732
|
-
return (now - startTime)
|
|
2733
|
-
},
|
|
2734
|
-
peernet: api.peernet(client),
|
|
2735
|
-
server: api.server(client),
|
|
2736
|
-
close: exit => {
|
|
2737
|
-
// client.onclose = message => {
|
|
2738
|
-
// if (exit) process.exit()
|
|
2739
|
-
// }
|
|
2740
|
-
client.close();
|
|
2741
|
-
}
|
|
2742
|
-
}
|
|
2743
|
-
}
|
|
2744
|
-
|
|
2745
|
-
return new Promise((resolve, reject) => {
|
|
2746
|
-
const init = () => {
|
|
2747
|
-
let ws;
|
|
2748
|
-
if (typeof process === 'object' && !globalThis.WebSocket) {
|
|
2749
|
-
ws = (__nested_webpack_require_3459__(840).w3cwebsocket);
|
|
2750
|
-
} else {
|
|
2751
|
-
ws = WebSocket;
|
|
2752
|
-
}
|
|
2753
|
-
const client = new ws(url, protocols);
|
|
2754
|
-
|
|
2755
|
-
client.onmessage = onmessage;
|
|
2756
|
-
client.onerror = onerror;
|
|
2757
|
-
client.onopen = () => {
|
|
2758
|
-
tries = 0;
|
|
2759
|
-
resolve(clientConnection(client))
|
|
2760
|
-
};
|
|
2761
|
-
client.onclose = message => {
|
|
2762
|
-
tries++
|
|
2763
|
-
if (!retry) return reject(options)
|
|
2764
|
-
if (tries > 5) {
|
|
2765
|
-
console.log(`${protocols} Client Closed`);
|
|
2766
|
-
console.error(`could not connect to - ${url}/`)
|
|
2767
|
-
return resolve(clientConnection(client))
|
|
2768
|
-
}
|
|
2769
|
-
if (message.code === 1006) {
|
|
2770
|
-
console.log('Retrying in 10 seconds');
|
|
2771
|
-
setTimeout(() => {
|
|
2772
|
-
return init();
|
|
2773
|
-
}, retry);
|
|
2774
|
-
}
|
|
2775
|
-
};
|
|
2776
|
-
}
|
|
2777
|
-
return init();
|
|
2778
|
-
});
|
|
2779
|
-
}
|
|
2780
|
-
/* harmony default export */ const src = (socketRequestClient);
|
|
2781
2329
|
|
|
2782
2330
|
// EXTERNAL MODULE: ./node_modules/@vandeurenglenn/debug/debug.js
|
|
2783
|
-
var debug_debug =
|
|
2784
|
-
;// CONCATENATED MODULE: ./src/client/peer.js
|
|
2331
|
+
var debug_debug = __webpack_require__(307);
|
|
2332
|
+
;// CONCATENATED MODULE: ./node_modules/@leofcoin/peernet-swarm/src/client/peer.js
|
|
2785
2333
|
|
|
2786
2334
|
|
|
2787
2335
|
class Peer {
|
|
@@ -2950,11 +2498,10 @@ class Peer {
|
|
|
2950
2498
|
try {
|
|
2951
2499
|
|
|
2952
2500
|
if (!globalThis.pako) {
|
|
2953
|
-
const importee = await
|
|
2501
|
+
const importee = await __webpack_require__.e(/* import() | pako */ 682).then(__webpack_require__.bind(__webpack_require__, 7885))
|
|
2954
2502
|
globalThis.pako = importee.default
|
|
2955
2503
|
}
|
|
2956
2504
|
|
|
2957
|
-
|
|
2958
2505
|
const iceServers = [{
|
|
2959
2506
|
urls: 'stun:stun.l.google.com:19302' // Google's public STUN server
|
|
2960
2507
|
}, {
|
|
@@ -3040,7 +2587,7 @@ class Peer {
|
|
|
3040
2587
|
let data = new Uint8Array(Object.values(this.#chunksQue[id]))
|
|
3041
2588
|
delete this.#chunksQue[id]
|
|
3042
2589
|
data = pako.inflate(data)
|
|
3043
|
-
pubsub.publish('peer:data', { id, data })
|
|
2590
|
+
pubsub.publish('peer:data', { id, data, from: this.peerId })
|
|
3044
2591
|
}
|
|
3045
2592
|
this.bw.down += message.byteLength || message.length
|
|
3046
2593
|
}
|
|
@@ -3097,7 +2644,7 @@ class Peer {
|
|
|
3097
2644
|
}
|
|
3098
2645
|
}
|
|
3099
2646
|
|
|
3100
|
-
;// CONCATENATED MODULE: ./src/client/client.js
|
|
2647
|
+
;// CONCATENATED MODULE: ./node_modules/@leofcoin/peernet-swarm/src/client/client.js
|
|
3101
2648
|
|
|
3102
2649
|
|
|
3103
2650
|
|
|
@@ -3134,7 +2681,7 @@ class Client {
|
|
|
3134
2681
|
this.starsConfig = stars
|
|
3135
2682
|
// reconnectJob()
|
|
3136
2683
|
|
|
3137
|
-
if (!globalThis.RTCPeerConnection) globalThis.wrtc = await
|
|
2684
|
+
if (!globalThis.RTCPeerConnection) globalThis.wrtc = await __webpack_require__.e(/* import() | wrtc */ 228).then(__webpack_require__.t.bind(__webpack_require__, 9347, 19))
|
|
3138
2685
|
else globalThis.wrtc = {
|
|
3139
2686
|
RTCPeerConnection,
|
|
3140
2687
|
RTCSessionDescription,
|
|
@@ -3143,7 +2690,7 @@ class Client {
|
|
|
3143
2690
|
|
|
3144
2691
|
for (const star of stars) {
|
|
3145
2692
|
try {
|
|
3146
|
-
this.socketClient = await
|
|
2693
|
+
this.socketClient = await socketRequestClient(star, identifiers[0])
|
|
3147
2694
|
const id = await this.socketClient.request({url: 'id', params: {from: this.id}})
|
|
3148
2695
|
this.socketClient.peerId = id
|
|
3149
2696
|
this.#stars[id] = this.socketClient
|
|
@@ -3187,7 +2734,7 @@ class Client {
|
|
|
3187
2734
|
|
|
3188
2735
|
for (const star of this.starsConfig) {
|
|
3189
2736
|
try {
|
|
3190
|
-
this.socketClient = await
|
|
2737
|
+
this.socketClient = await socketRequestClient(star, this.identifiers[0])
|
|
3191
2738
|
if (!this.socketClient?.client?._connection.connected) return
|
|
3192
2739
|
const id = await this.socketClient.request({url: 'id', params: {from: this.id}})
|
|
3193
2740
|
this.#stars[id] = this.socketClient
|
|
@@ -3249,15 +2796,10 @@ class Client {
|
|
|
3249
2796
|
|
|
3250
2797
|
}
|
|
3251
2798
|
|
|
3252
|
-
})();
|
|
3253
|
-
|
|
3254
|
-
var __webpack_exports__default = __webpack_exports__.Z;
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
2799
|
|
|
3258
2800
|
/***/ }),
|
|
3259
2801
|
|
|
3260
|
-
/***/
|
|
2802
|
+
/***/ 3613:
|
|
3261
2803
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3262
2804
|
|
|
3263
2805
|
"use strict";
|
|
@@ -3678,7 +3220,7 @@ class LeofcoinStorage {
|
|
|
3678
3220
|
async get(key) {
|
|
3679
3221
|
if (!key) return this.query()
|
|
3680
3222
|
if (typeof key === 'object') return this.many('get', key);
|
|
3681
|
-
return
|
|
3223
|
+
return this.db.get(new KeyPath(key))
|
|
3682
3224
|
}
|
|
3683
3225
|
/**
|
|
3684
3226
|
*
|
|
@@ -3761,7 +3303,7 @@ class LeofcoinStorage {
|
|
|
3761
3303
|
|
|
3762
3304
|
/***/ }),
|
|
3763
3305
|
|
|
3764
|
-
/***/
|
|
3306
|
+
/***/ 2353:
|
|
3765
3307
|
/***/ (function(__unused_webpack_module, __webpack_exports__) {
|
|
3766
3308
|
|
|
3767
3309
|
"use strict";
|
|
@@ -3891,12 +3433,12 @@ const base = ALPHABET => {
|
|
|
3891
3433
|
|
|
3892
3434
|
/***/ }),
|
|
3893
3435
|
|
|
3894
|
-
/***/
|
|
3436
|
+
/***/ 4894:
|
|
3895
3437
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3896
3438
|
|
|
3897
3439
|
"use strict";
|
|
3898
3440
|
__webpack_require__.r(__webpack_exports__);
|
|
3899
|
-
/* harmony import */ var _vandeurenglenn_base_x__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
3441
|
+
/* harmony import */ var _vandeurenglenn_base_x__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2353);
|
|
3900
3442
|
|
|
3901
3443
|
|
|
3902
3444
|
const base32 = 'abcdefghijklmnopqrstuvwxyz234567'
|
|
@@ -3931,7 +3473,7 @@ const decode = (uint8Array, hex = false) => {
|
|
|
3931
3473
|
|
|
3932
3474
|
"use strict";
|
|
3933
3475
|
__webpack_require__.r(__webpack_exports__);
|
|
3934
|
-
/* harmony import */ var _vandeurenglenn_base_x__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
3476
|
+
/* harmony import */ var _vandeurenglenn_base_x__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2353);
|
|
3935
3477
|
|
|
3936
3478
|
|
|
3937
3479
|
const base58 = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'
|
|
@@ -3968,7 +3510,7 @@ globalThis.debug = text => {
|
|
|
3968
3510
|
|
|
3969
3511
|
/***/ }),
|
|
3970
3512
|
|
|
3971
|
-
/***/
|
|
3513
|
+
/***/ 6187:
|
|
3972
3514
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3973
3515
|
|
|
3974
3516
|
"use strict";
|
|
@@ -3978,7 +3520,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3978
3520
|
|
|
3979
3521
|
/***/ }),
|
|
3980
3522
|
|
|
3981
|
-
/***/
|
|
3523
|
+
/***/ 7037:
|
|
3982
3524
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3983
3525
|
|
|
3984
3526
|
"use strict";
|
|
@@ -4045,7 +3587,49 @@ class LittlePubSub {
|
|
|
4045
3587
|
|
|
4046
3588
|
/***/ }),
|
|
4047
3589
|
|
|
4048
|
-
/***/
|
|
3590
|
+
/***/ 284:
|
|
3591
|
+
/***/ (function(module) {
|
|
3592
|
+
|
|
3593
|
+
var naiveFallback = function () {
|
|
3594
|
+
if (typeof self === "object" && self) return self;
|
|
3595
|
+
if (typeof window === "object" && window) return window;
|
|
3596
|
+
throw new Error("Unable to resolve global `this`");
|
|
3597
|
+
};
|
|
3598
|
+
|
|
3599
|
+
module.exports = (function () {
|
|
3600
|
+
if (this) return this;
|
|
3601
|
+
|
|
3602
|
+
// Unexpected strict mode (may happen if e.g. bundled into ESM module)
|
|
3603
|
+
|
|
3604
|
+
// Fallback to standard globalThis if available
|
|
3605
|
+
if (typeof globalThis === "object" && globalThis) return globalThis;
|
|
3606
|
+
|
|
3607
|
+
// Thanks @mathiasbynens -> https://mathiasbynens.be/notes/globalthis
|
|
3608
|
+
// In all ES5+ engines global object inherits from Object.prototype
|
|
3609
|
+
// (if you approached one that doesn't please report)
|
|
3610
|
+
try {
|
|
3611
|
+
Object.defineProperty(Object.prototype, "__global__", {
|
|
3612
|
+
get: function () { return this; },
|
|
3613
|
+
configurable: true
|
|
3614
|
+
});
|
|
3615
|
+
} catch (error) {
|
|
3616
|
+
// Unfortunate case of updates to Object.prototype being restricted
|
|
3617
|
+
// via preventExtensions, seal or freeze
|
|
3618
|
+
return naiveFallback();
|
|
3619
|
+
}
|
|
3620
|
+
try {
|
|
3621
|
+
// Safari case (window.__global__ works, but __global__ does not)
|
|
3622
|
+
if (!__global__) return naiveFallback();
|
|
3623
|
+
return __global__;
|
|
3624
|
+
} finally {
|
|
3625
|
+
delete Object.prototype.__global__;
|
|
3626
|
+
}
|
|
3627
|
+
})();
|
|
3628
|
+
|
|
3629
|
+
|
|
3630
|
+
/***/ }),
|
|
3631
|
+
|
|
3632
|
+
/***/ 7187:
|
|
4049
3633
|
/***/ (function(module) {
|
|
4050
3634
|
|
|
4051
3635
|
"use strict";
|
|
@@ -4550,7 +4134,7 @@ function eventTargetAgnosticAddListener(emitter, name, listener, flags) {
|
|
|
4550
4134
|
|
|
4551
4135
|
/***/ }),
|
|
4552
4136
|
|
|
4553
|
-
/***/
|
|
4137
|
+
/***/ 5717:
|
|
4554
4138
|
/***/ (function(module) {
|
|
4555
4139
|
|
|
4556
4140
|
if (typeof Object.create === 'function') {
|
|
@@ -4584,19 +4168,19 @@ if (typeof Object.create === 'function') {
|
|
|
4584
4168
|
|
|
4585
4169
|
/***/ }),
|
|
4586
4170
|
|
|
4587
|
-
/***/
|
|
4171
|
+
/***/ 5811:
|
|
4588
4172
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
4589
4173
|
|
|
4590
|
-
module.exports = __webpack_require__(
|
|
4174
|
+
module.exports = __webpack_require__(6066)(__webpack_require__(9653))
|
|
4591
4175
|
|
|
4592
4176
|
|
|
4593
4177
|
/***/ }),
|
|
4594
4178
|
|
|
4595
|
-
/***/
|
|
4179
|
+
/***/ 6066:
|
|
4596
4180
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
4597
4181
|
|
|
4598
|
-
const createKeccak = __webpack_require__(
|
|
4599
|
-
const createShake = __webpack_require__(
|
|
4182
|
+
const createKeccak = __webpack_require__(7016)
|
|
4183
|
+
const createShake = __webpack_require__(5675)
|
|
4600
4184
|
|
|
4601
4185
|
module.exports = function (KeccakState) {
|
|
4602
4186
|
const Keccak = createKeccak(KeccakState)
|
|
@@ -4626,11 +4210,11 @@ module.exports = function (KeccakState) {
|
|
|
4626
4210
|
|
|
4627
4211
|
/***/ }),
|
|
4628
4212
|
|
|
4629
|
-
/***/
|
|
4213
|
+
/***/ 7016:
|
|
4630
4214
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
4631
4215
|
|
|
4632
|
-
/* provided dependency */ var Buffer = __webpack_require__(
|
|
4633
|
-
const { Transform } = __webpack_require__(
|
|
4216
|
+
/* provided dependency */ var Buffer = __webpack_require__(8834)["Buffer"];
|
|
4217
|
+
const { Transform } = __webpack_require__(8473)
|
|
4634
4218
|
|
|
4635
4219
|
module.exports = (KeccakState) => class Keccak extends Transform {
|
|
4636
4220
|
constructor (rate, capacity, delimitedSuffix, hashBitLength, options) {
|
|
@@ -4711,11 +4295,11 @@ module.exports = (KeccakState) => class Keccak extends Transform {
|
|
|
4711
4295
|
|
|
4712
4296
|
/***/ }),
|
|
4713
4297
|
|
|
4714
|
-
/***/
|
|
4298
|
+
/***/ 5675:
|
|
4715
4299
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
4716
4300
|
|
|
4717
|
-
/* provided dependency */ var Buffer = __webpack_require__(
|
|
4718
|
-
const { Transform } = __webpack_require__(
|
|
4301
|
+
/* provided dependency */ var Buffer = __webpack_require__(8834)["Buffer"];
|
|
4302
|
+
const { Transform } = __webpack_require__(8473)
|
|
4719
4303
|
|
|
4720
4304
|
module.exports = (KeccakState) => class Shake extends Transform {
|
|
4721
4305
|
constructor (rate, capacity, delimitedSuffix, options) {
|
|
@@ -4787,7 +4371,7 @@ module.exports = (KeccakState) => class Shake extends Transform {
|
|
|
4787
4371
|
|
|
4788
4372
|
/***/ }),
|
|
4789
4373
|
|
|
4790
|
-
/***/
|
|
4374
|
+
/***/ 4040:
|
|
4791
4375
|
/***/ (function(__unused_webpack_module, exports) {
|
|
4792
4376
|
|
|
4793
4377
|
const P1600_ROUND_CONSTANTS = [1, 0, 32898, 0, 32906, 2147483648, 2147516416, 2147483648, 32907, 0, 2147483649, 0, 2147516545, 2147483648, 32777, 2147483648, 138, 0, 136, 0, 2147516425, 0, 2147483658, 0, 2147516555, 0, 139, 2147483648, 32905, 2147483648, 32771, 2147483648, 32770, 2147483648, 128, 2147483648, 32778, 0, 2147483658, 2147483648, 2147516545, 2147483648, 32896, 2147483648, 2147483649, 0, 2147516424, 2147483648]
|
|
@@ -4980,11 +4564,11 @@ exports.p1600 = function (s) {
|
|
|
4980
4564
|
|
|
4981
4565
|
/***/ }),
|
|
4982
4566
|
|
|
4983
|
-
/***/
|
|
4567
|
+
/***/ 9653:
|
|
4984
4568
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
4985
4569
|
|
|
4986
|
-
/* provided dependency */ var Buffer = __webpack_require__(
|
|
4987
|
-
const keccakState = __webpack_require__(
|
|
4570
|
+
/* provided dependency */ var Buffer = __webpack_require__(8834)["Buffer"];
|
|
4571
|
+
const keccakState = __webpack_require__(4040)
|
|
4988
4572
|
|
|
4989
4573
|
function Keccak () {
|
|
4990
4574
|
// much faster than `new Array(50)`
|
|
@@ -5056,7 +4640,7 @@ module.exports = Keccak
|
|
|
5056
4640
|
|
|
5057
4641
|
/***/ }),
|
|
5058
4642
|
|
|
5059
|
-
/***/
|
|
4643
|
+
/***/ 4281:
|
|
5060
4644
|
/***/ (function(module) {
|
|
5061
4645
|
|
|
5062
4646
|
"use strict";
|
|
@@ -5191,11 +4775,11 @@ module.exports.q = codes;
|
|
|
5191
4775
|
|
|
5192
4776
|
/***/ }),
|
|
5193
4777
|
|
|
5194
|
-
/***/
|
|
4778
|
+
/***/ 6753:
|
|
5195
4779
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
5196
4780
|
|
|
5197
4781
|
"use strict";
|
|
5198
|
-
/* provided dependency */ var process = __webpack_require__(
|
|
4782
|
+
/* provided dependency */ var process = __webpack_require__(4406);
|
|
5199
4783
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
5200
4784
|
//
|
|
5201
4785
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
@@ -5237,11 +4821,11 @@ var objectKeys = Object.keys || function (obj) {
|
|
|
5237
4821
|
|
|
5238
4822
|
module.exports = Duplex;
|
|
5239
4823
|
|
|
5240
|
-
var Readable = __webpack_require__(
|
|
4824
|
+
var Readable = __webpack_require__(9481);
|
|
5241
4825
|
|
|
5242
|
-
var Writable = __webpack_require__(
|
|
4826
|
+
var Writable = __webpack_require__(4229);
|
|
5243
4827
|
|
|
5244
|
-
__webpack_require__(
|
|
4828
|
+
__webpack_require__(5717)(Duplex, Readable);
|
|
5245
4829
|
|
|
5246
4830
|
{
|
|
5247
4831
|
// Allow the keys array to be GC'ed.
|
|
@@ -5338,7 +4922,7 @@ Object.defineProperty(Duplex.prototype, 'destroyed', {
|
|
|
5338
4922
|
|
|
5339
4923
|
/***/ }),
|
|
5340
4924
|
|
|
5341
|
-
/***/
|
|
4925
|
+
/***/ 2725:
|
|
5342
4926
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
5343
4927
|
|
|
5344
4928
|
"use strict";
|
|
@@ -5369,9 +4953,9 @@ Object.defineProperty(Duplex.prototype, 'destroyed', {
|
|
|
5369
4953
|
|
|
5370
4954
|
module.exports = PassThrough;
|
|
5371
4955
|
|
|
5372
|
-
var Transform = __webpack_require__(
|
|
4956
|
+
var Transform = __webpack_require__(4605);
|
|
5373
4957
|
|
|
5374
|
-
__webpack_require__(
|
|
4958
|
+
__webpack_require__(5717)(PassThrough, Transform);
|
|
5375
4959
|
|
|
5376
4960
|
function PassThrough(options) {
|
|
5377
4961
|
if (!(this instanceof PassThrough)) return new PassThrough(options);
|
|
@@ -5384,11 +4968,11 @@ PassThrough.prototype._transform = function (chunk, encoding, cb) {
|
|
|
5384
4968
|
|
|
5385
4969
|
/***/ }),
|
|
5386
4970
|
|
|
5387
|
-
/***/
|
|
4971
|
+
/***/ 9481:
|
|
5388
4972
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
5389
4973
|
|
|
5390
4974
|
"use strict";
|
|
5391
|
-
/* provided dependency */ var process = __webpack_require__(
|
|
4975
|
+
/* provided dependency */ var process = __webpack_require__(4406);
|
|
5392
4976
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
5393
4977
|
//
|
|
5394
4978
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
@@ -5420,7 +5004,7 @@ var Duplex;
|
|
|
5420
5004
|
Readable.ReadableState = ReadableState;
|
|
5421
5005
|
/*<replacement>*/
|
|
5422
5006
|
|
|
5423
|
-
var EE = (__webpack_require__(
|
|
5007
|
+
var EE = (__webpack_require__(7187).EventEmitter);
|
|
5424
5008
|
|
|
5425
5009
|
var EElistenerCount = function EElistenerCount(emitter, type) {
|
|
5426
5010
|
return emitter.listeners(type).length;
|
|
@@ -5430,11 +5014,11 @@ var EElistenerCount = function EElistenerCount(emitter, type) {
|
|
|
5430
5014
|
/*<replacement>*/
|
|
5431
5015
|
|
|
5432
5016
|
|
|
5433
|
-
var Stream = __webpack_require__(
|
|
5017
|
+
var Stream = __webpack_require__(2503);
|
|
5434
5018
|
/*</replacement>*/
|
|
5435
5019
|
|
|
5436
5020
|
|
|
5437
|
-
var Buffer = (__webpack_require__(
|
|
5021
|
+
var Buffer = (__webpack_require__(8834).Buffer);
|
|
5438
5022
|
|
|
5439
5023
|
var OurUint8Array = __webpack_require__.g.Uint8Array || function () {};
|
|
5440
5024
|
|
|
@@ -5448,7 +5032,7 @@ function _isUint8Array(obj) {
|
|
|
5448
5032
|
/*<replacement>*/
|
|
5449
5033
|
|
|
5450
5034
|
|
|
5451
|
-
var debugUtil = __webpack_require__(
|
|
5035
|
+
var debugUtil = __webpack_require__(4616);
|
|
5452
5036
|
|
|
5453
5037
|
var debug;
|
|
5454
5038
|
|
|
@@ -5460,14 +5044,14 @@ if (debugUtil && debugUtil.debuglog) {
|
|
|
5460
5044
|
/*</replacement>*/
|
|
5461
5045
|
|
|
5462
5046
|
|
|
5463
|
-
var BufferList = __webpack_require__(
|
|
5047
|
+
var BufferList = __webpack_require__(7327);
|
|
5464
5048
|
|
|
5465
|
-
var destroyImpl = __webpack_require__(
|
|
5049
|
+
var destroyImpl = __webpack_require__(1195);
|
|
5466
5050
|
|
|
5467
|
-
var _require = __webpack_require__(
|
|
5051
|
+
var _require = __webpack_require__(2457),
|
|
5468
5052
|
getHighWaterMark = _require.getHighWaterMark;
|
|
5469
5053
|
|
|
5470
|
-
var _require$codes = (__webpack_require__(
|
|
5054
|
+
var _require$codes = (__webpack_require__(4281)/* .codes */ .q),
|
|
5471
5055
|
ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE,
|
|
5472
5056
|
ERR_STREAM_PUSH_AFTER_EOF = _require$codes.ERR_STREAM_PUSH_AFTER_EOF,
|
|
5473
5057
|
ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,
|
|
@@ -5478,7 +5062,7 @@ var StringDecoder;
|
|
|
5478
5062
|
var createReadableStreamAsyncIterator;
|
|
5479
5063
|
var from;
|
|
5480
5064
|
|
|
5481
|
-
__webpack_require__(
|
|
5065
|
+
__webpack_require__(5717)(Readable, Stream);
|
|
5482
5066
|
|
|
5483
5067
|
var errorOrDestroy = destroyImpl.errorOrDestroy;
|
|
5484
5068
|
var kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume'];
|
|
@@ -5495,7 +5079,7 @@ function prependListener(emitter, event, fn) {
|
|
|
5495
5079
|
}
|
|
5496
5080
|
|
|
5497
5081
|
function ReadableState(options, stream, isDuplex) {
|
|
5498
|
-
Duplex = Duplex || __webpack_require__(
|
|
5082
|
+
Duplex = Duplex || __webpack_require__(6753);
|
|
5499
5083
|
options = options || {}; // Duplex streams are both readable and writable, but share
|
|
5500
5084
|
// the same options object.
|
|
5501
5085
|
// However, some cases require setting options to different
|
|
@@ -5551,14 +5135,14 @@ function ReadableState(options, stream, isDuplex) {
|
|
|
5551
5135
|
this.encoding = null;
|
|
5552
5136
|
|
|
5553
5137
|
if (options.encoding) {
|
|
5554
|
-
if (!StringDecoder) StringDecoder = (__webpack_require__(
|
|
5138
|
+
if (!StringDecoder) StringDecoder = (__webpack_require__(2553)/* .StringDecoder */ .s);
|
|
5555
5139
|
this.decoder = new StringDecoder(options.encoding);
|
|
5556
5140
|
this.encoding = options.encoding;
|
|
5557
5141
|
}
|
|
5558
5142
|
}
|
|
5559
5143
|
|
|
5560
5144
|
function Readable(options) {
|
|
5561
|
-
Duplex = Duplex || __webpack_require__(
|
|
5145
|
+
Duplex = Duplex || __webpack_require__(6753);
|
|
5562
5146
|
if (!(this instanceof Readable)) return new Readable(options); // Checking for a Stream.Duplex instance is faster here instead of inside
|
|
5563
5147
|
// the ReadableState constructor, at least with V8 6.5
|
|
5564
5148
|
|
|
@@ -5713,7 +5297,7 @@ Readable.prototype.isPaused = function () {
|
|
|
5713
5297
|
|
|
5714
5298
|
|
|
5715
5299
|
Readable.prototype.setEncoding = function (enc) {
|
|
5716
|
-
if (!StringDecoder) StringDecoder = (__webpack_require__(
|
|
5300
|
+
if (!StringDecoder) StringDecoder = (__webpack_require__(2553)/* .StringDecoder */ .s);
|
|
5717
5301
|
var decoder = new StringDecoder(enc);
|
|
5718
5302
|
this._readableState.decoder = decoder; // If setEncoding(null), decoder.encoding equals utf8
|
|
5719
5303
|
|
|
@@ -6397,7 +5981,7 @@ Readable.prototype.wrap = function (stream) {
|
|
|
6397
5981
|
if (typeof Symbol === 'function') {
|
|
6398
5982
|
Readable.prototype[Symbol.asyncIterator] = function () {
|
|
6399
5983
|
if (createReadableStreamAsyncIterator === undefined) {
|
|
6400
|
-
createReadableStreamAsyncIterator = __webpack_require__(
|
|
5984
|
+
createReadableStreamAsyncIterator = __webpack_require__(5850);
|
|
6401
5985
|
}
|
|
6402
5986
|
|
|
6403
5987
|
return createReadableStreamAsyncIterator(this);
|
|
@@ -6499,7 +6083,7 @@ function endReadableNT(state, stream) {
|
|
|
6499
6083
|
if (typeof Symbol === 'function') {
|
|
6500
6084
|
Readable.from = function (iterable, opts) {
|
|
6501
6085
|
if (from === undefined) {
|
|
6502
|
-
from = __webpack_require__(
|
|
6086
|
+
from = __webpack_require__(5167);
|
|
6503
6087
|
}
|
|
6504
6088
|
|
|
6505
6089
|
return from(Readable, iterable, opts);
|
|
@@ -6516,7 +6100,7 @@ function indexOf(xs, x) {
|
|
|
6516
6100
|
|
|
6517
6101
|
/***/ }),
|
|
6518
6102
|
|
|
6519
|
-
/***/
|
|
6103
|
+
/***/ 4605:
|
|
6520
6104
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
6521
6105
|
|
|
6522
6106
|
"use strict";
|
|
@@ -6585,15 +6169,15 @@ function indexOf(xs, x) {
|
|
|
6585
6169
|
|
|
6586
6170
|
module.exports = Transform;
|
|
6587
6171
|
|
|
6588
|
-
var _require$codes = (__webpack_require__(
|
|
6172
|
+
var _require$codes = (__webpack_require__(4281)/* .codes */ .q),
|
|
6589
6173
|
ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,
|
|
6590
6174
|
ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK,
|
|
6591
6175
|
ERR_TRANSFORM_ALREADY_TRANSFORMING = _require$codes.ERR_TRANSFORM_ALREADY_TRANSFORMING,
|
|
6592
6176
|
ERR_TRANSFORM_WITH_LENGTH_0 = _require$codes.ERR_TRANSFORM_WITH_LENGTH_0;
|
|
6593
6177
|
|
|
6594
|
-
var Duplex = __webpack_require__(
|
|
6178
|
+
var Duplex = __webpack_require__(6753);
|
|
6595
6179
|
|
|
6596
|
-
__webpack_require__(
|
|
6180
|
+
__webpack_require__(5717)(Transform, Duplex);
|
|
6597
6181
|
|
|
6598
6182
|
function afterTransform(er, data) {
|
|
6599
6183
|
var ts = this._transformState;
|
|
@@ -6724,11 +6308,11 @@ function done(stream, er, data) {
|
|
|
6724
6308
|
|
|
6725
6309
|
/***/ }),
|
|
6726
6310
|
|
|
6727
|
-
/***/
|
|
6311
|
+
/***/ 4229:
|
|
6728
6312
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
6729
6313
|
|
|
6730
6314
|
"use strict";
|
|
6731
|
-
/* provided dependency */ var process = __webpack_require__(
|
|
6315
|
+
/* provided dependency */ var process = __webpack_require__(4406);
|
|
6732
6316
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
6733
6317
|
//
|
|
6734
6318
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
@@ -6788,17 +6372,17 @@ Writable.WritableState = WritableState;
|
|
|
6788
6372
|
/*<replacement>*/
|
|
6789
6373
|
|
|
6790
6374
|
var internalUtil = {
|
|
6791
|
-
deprecate: __webpack_require__(
|
|
6375
|
+
deprecate: __webpack_require__(4927)
|
|
6792
6376
|
};
|
|
6793
6377
|
/*</replacement>*/
|
|
6794
6378
|
|
|
6795
6379
|
/*<replacement>*/
|
|
6796
6380
|
|
|
6797
|
-
var Stream = __webpack_require__(
|
|
6381
|
+
var Stream = __webpack_require__(2503);
|
|
6798
6382
|
/*</replacement>*/
|
|
6799
6383
|
|
|
6800
6384
|
|
|
6801
|
-
var Buffer = (__webpack_require__(
|
|
6385
|
+
var Buffer = (__webpack_require__(8834).Buffer);
|
|
6802
6386
|
|
|
6803
6387
|
var OurUint8Array = __webpack_require__.g.Uint8Array || function () {};
|
|
6804
6388
|
|
|
@@ -6810,12 +6394,12 @@ function _isUint8Array(obj) {
|
|
|
6810
6394
|
return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;
|
|
6811
6395
|
}
|
|
6812
6396
|
|
|
6813
|
-
var destroyImpl = __webpack_require__(
|
|
6397
|
+
var destroyImpl = __webpack_require__(1195);
|
|
6814
6398
|
|
|
6815
|
-
var _require = __webpack_require__(
|
|
6399
|
+
var _require = __webpack_require__(2457),
|
|
6816
6400
|
getHighWaterMark = _require.getHighWaterMark;
|
|
6817
6401
|
|
|
6818
|
-
var _require$codes = (__webpack_require__(
|
|
6402
|
+
var _require$codes = (__webpack_require__(4281)/* .codes */ .q),
|
|
6819
6403
|
ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE,
|
|
6820
6404
|
ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,
|
|
6821
6405
|
ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK,
|
|
@@ -6827,12 +6411,12 @@ var _require$codes = (__webpack_require__(281)/* .codes */ .q),
|
|
|
6827
6411
|
|
|
6828
6412
|
var errorOrDestroy = destroyImpl.errorOrDestroy;
|
|
6829
6413
|
|
|
6830
|
-
__webpack_require__(
|
|
6414
|
+
__webpack_require__(5717)(Writable, Stream);
|
|
6831
6415
|
|
|
6832
6416
|
function nop() {}
|
|
6833
6417
|
|
|
6834
6418
|
function WritableState(options, stream, isDuplex) {
|
|
6835
|
-
Duplex = Duplex || __webpack_require__(
|
|
6419
|
+
Duplex = Duplex || __webpack_require__(6753);
|
|
6836
6420
|
options = options || {}; // Duplex streams are both readable and writable, but share
|
|
6837
6421
|
// the same options object.
|
|
6838
6422
|
// However, some cases require setting options to different
|
|
@@ -6958,7 +6542,7 @@ if (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.protot
|
|
|
6958
6542
|
}
|
|
6959
6543
|
|
|
6960
6544
|
function Writable(options) {
|
|
6961
|
-
Duplex = Duplex || __webpack_require__(
|
|
6545
|
+
Duplex = Duplex || __webpack_require__(6753); // Writable ctor is applied to Duplexes, too.
|
|
6962
6546
|
// `realHasInstance` is necessary because using plain `instanceof`
|
|
6963
6547
|
// would return false, as no `_writableState` property is attached.
|
|
6964
6548
|
// Trying to use the custom `instanceof` for Writable here will also break the
|
|
@@ -7429,18 +7013,18 @@ Writable.prototype._destroy = function (err, cb) {
|
|
|
7429
7013
|
|
|
7430
7014
|
/***/ }),
|
|
7431
7015
|
|
|
7432
|
-
/***/
|
|
7016
|
+
/***/ 5850:
|
|
7433
7017
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
7434
7018
|
|
|
7435
7019
|
"use strict";
|
|
7436
|
-
/* provided dependency */ var process = __webpack_require__(
|
|
7020
|
+
/* provided dependency */ var process = __webpack_require__(4406);
|
|
7437
7021
|
|
|
7438
7022
|
|
|
7439
7023
|
var _Object$setPrototypeO;
|
|
7440
7024
|
|
|
7441
7025
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7442
7026
|
|
|
7443
|
-
var finished = __webpack_require__(
|
|
7027
|
+
var finished = __webpack_require__(8610);
|
|
7444
7028
|
|
|
7445
7029
|
var kLastResolve = Symbol('lastResolve');
|
|
7446
7030
|
var kLastReject = Symbol('lastReject');
|
|
@@ -7644,7 +7228,7 @@ module.exports = createReadableStreamAsyncIterator;
|
|
|
7644
7228
|
|
|
7645
7229
|
/***/ }),
|
|
7646
7230
|
|
|
7647
|
-
/***/
|
|
7231
|
+
/***/ 7327:
|
|
7648
7232
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
7649
7233
|
|
|
7650
7234
|
"use strict";
|
|
@@ -7662,10 +7246,10 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
7662
7246
|
|
|
7663
7247
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
7664
7248
|
|
|
7665
|
-
var _require = __webpack_require__(
|
|
7249
|
+
var _require = __webpack_require__(8834),
|
|
7666
7250
|
Buffer = _require.Buffer;
|
|
7667
7251
|
|
|
7668
|
-
var _require2 = __webpack_require__(
|
|
7252
|
+
var _require2 = __webpack_require__(2361),
|
|
7669
7253
|
inspect = _require2.inspect;
|
|
7670
7254
|
|
|
7671
7255
|
var custom = inspect && inspect.custom || 'inspect';
|
|
@@ -7861,11 +7445,11 @@ function () {
|
|
|
7861
7445
|
|
|
7862
7446
|
/***/ }),
|
|
7863
7447
|
|
|
7864
|
-
/***/
|
|
7448
|
+
/***/ 1195:
|
|
7865
7449
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
7866
7450
|
|
|
7867
7451
|
"use strict";
|
|
7868
|
-
/* provided dependency */ var process = __webpack_require__(
|
|
7452
|
+
/* provided dependency */ var process = __webpack_require__(4406);
|
|
7869
7453
|
// undocumented cb() API, needed for core, not for public API
|
|
7870
7454
|
|
|
7871
7455
|
function destroy(err, cb) {
|
|
@@ -7974,7 +7558,7 @@ module.exports = {
|
|
|
7974
7558
|
|
|
7975
7559
|
/***/ }),
|
|
7976
7560
|
|
|
7977
|
-
/***/
|
|
7561
|
+
/***/ 8610:
|
|
7978
7562
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
7979
7563
|
|
|
7980
7564
|
"use strict";
|
|
@@ -7982,7 +7566,7 @@ module.exports = {
|
|
|
7982
7566
|
// permission from the author, Mathias Buus (@mafintosh).
|
|
7983
7567
|
|
|
7984
7568
|
|
|
7985
|
-
var ERR_STREAM_PREMATURE_CLOSE = (__webpack_require__(
|
|
7569
|
+
var ERR_STREAM_PREMATURE_CLOSE = (__webpack_require__(4281)/* .codes.ERR_STREAM_PREMATURE_CLOSE */ .q.ERR_STREAM_PREMATURE_CLOSE);
|
|
7986
7570
|
|
|
7987
7571
|
function once(callback) {
|
|
7988
7572
|
var called = false;
|
|
@@ -8085,7 +7669,7 @@ module.exports = eos;
|
|
|
8085
7669
|
|
|
8086
7670
|
/***/ }),
|
|
8087
7671
|
|
|
8088
|
-
/***/
|
|
7672
|
+
/***/ 5167:
|
|
8089
7673
|
/***/ (function(module) {
|
|
8090
7674
|
|
|
8091
7675
|
module.exports = function () {
|
|
@@ -8095,7 +7679,7 @@ module.exports = function () {
|
|
|
8095
7679
|
|
|
8096
7680
|
/***/ }),
|
|
8097
7681
|
|
|
8098
|
-
/***/
|
|
7682
|
+
/***/ 9946:
|
|
8099
7683
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
8100
7684
|
|
|
8101
7685
|
"use strict";
|
|
@@ -8114,7 +7698,7 @@ function once(callback) {
|
|
|
8114
7698
|
};
|
|
8115
7699
|
}
|
|
8116
7700
|
|
|
8117
|
-
var _require$codes = (__webpack_require__(
|
|
7701
|
+
var _require$codes = (__webpack_require__(4281)/* .codes */ .q),
|
|
8118
7702
|
ERR_MISSING_ARGS = _require$codes.ERR_MISSING_ARGS,
|
|
8119
7703
|
ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED;
|
|
8120
7704
|
|
|
@@ -8133,7 +7717,7 @@ function destroyer(stream, reading, writing, callback) {
|
|
|
8133
7717
|
stream.on('close', function () {
|
|
8134
7718
|
closed = true;
|
|
8135
7719
|
});
|
|
8136
|
-
if (eos === undefined) eos = __webpack_require__(
|
|
7720
|
+
if (eos === undefined) eos = __webpack_require__(8610);
|
|
8137
7721
|
eos(stream, {
|
|
8138
7722
|
readable: reading,
|
|
8139
7723
|
writable: writing
|
|
@@ -8199,13 +7783,13 @@ module.exports = pipeline;
|
|
|
8199
7783
|
|
|
8200
7784
|
/***/ }),
|
|
8201
7785
|
|
|
8202
|
-
/***/
|
|
7786
|
+
/***/ 2457:
|
|
8203
7787
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
8204
7788
|
|
|
8205
7789
|
"use strict";
|
|
8206
7790
|
|
|
8207
7791
|
|
|
8208
|
-
var ERR_INVALID_OPT_VALUE = (__webpack_require__(
|
|
7792
|
+
var ERR_INVALID_OPT_VALUE = (__webpack_require__(4281)/* .codes.ERR_INVALID_OPT_VALUE */ .q.ERR_INVALID_OPT_VALUE);
|
|
8209
7793
|
|
|
8210
7794
|
function highWaterMarkFrom(options, isDuplex, duplexKey) {
|
|
8211
7795
|
return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null;
|
|
@@ -8233,36 +7817,36 @@ module.exports = {
|
|
|
8233
7817
|
|
|
8234
7818
|
/***/ }),
|
|
8235
7819
|
|
|
8236
|
-
/***/
|
|
7820
|
+
/***/ 2503:
|
|
8237
7821
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
8238
7822
|
|
|
8239
|
-
module.exports = __webpack_require__(
|
|
7823
|
+
module.exports = __webpack_require__(7187).EventEmitter;
|
|
8240
7824
|
|
|
8241
7825
|
|
|
8242
7826
|
/***/ }),
|
|
8243
7827
|
|
|
8244
|
-
/***/
|
|
7828
|
+
/***/ 8473:
|
|
8245
7829
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8246
7830
|
|
|
8247
|
-
exports = module.exports = __webpack_require__(
|
|
7831
|
+
exports = module.exports = __webpack_require__(9481);
|
|
8248
7832
|
exports.Stream = exports;
|
|
8249
7833
|
exports.Readable = exports;
|
|
8250
|
-
exports.Writable = __webpack_require__(
|
|
8251
|
-
exports.Duplex = __webpack_require__(
|
|
8252
|
-
exports.Transform = __webpack_require__(
|
|
8253
|
-
exports.PassThrough = __webpack_require__(
|
|
8254
|
-
exports.finished = __webpack_require__(
|
|
8255
|
-
exports.pipeline = __webpack_require__(
|
|
7834
|
+
exports.Writable = __webpack_require__(4229);
|
|
7835
|
+
exports.Duplex = __webpack_require__(6753);
|
|
7836
|
+
exports.Transform = __webpack_require__(4605);
|
|
7837
|
+
exports.PassThrough = __webpack_require__(2725);
|
|
7838
|
+
exports.finished = __webpack_require__(8610);
|
|
7839
|
+
exports.pipeline = __webpack_require__(9946);
|
|
8256
7840
|
|
|
8257
7841
|
|
|
8258
7842
|
/***/ }),
|
|
8259
7843
|
|
|
8260
|
-
/***/
|
|
7844
|
+
/***/ 9509:
|
|
8261
7845
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8262
7846
|
|
|
8263
7847
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
8264
7848
|
/* eslint-disable node/no-deprecated-api */
|
|
8265
|
-
var buffer = __webpack_require__(
|
|
7849
|
+
var buffer = __webpack_require__(8834)
|
|
8266
7850
|
var Buffer = buffer.Buffer
|
|
8267
7851
|
|
|
8268
7852
|
// alternative to using Object.keys for old browsers
|
|
@@ -8329,7 +7913,7 @@ SafeBuffer.allocUnsafeSlow = function (size) {
|
|
|
8329
7913
|
|
|
8330
7914
|
/***/ }),
|
|
8331
7915
|
|
|
8332
|
-
/***/
|
|
7916
|
+
/***/ 2553:
|
|
8333
7917
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8334
7918
|
|
|
8335
7919
|
"use strict";
|
|
@@ -8358,7 +7942,7 @@ SafeBuffer.allocUnsafeSlow = function (size) {
|
|
|
8358
7942
|
|
|
8359
7943
|
/*<replacement>*/
|
|
8360
7944
|
|
|
8361
|
-
var Buffer = (__webpack_require__(
|
|
7945
|
+
var Buffer = (__webpack_require__(9509).Buffer);
|
|
8362
7946
|
/*</replacement>*/
|
|
8363
7947
|
|
|
8364
7948
|
var isEncoding = Buffer.isEncoding || function (encoding) {
|
|
@@ -8632,7 +8216,7 @@ function simpleEnd(buf) {
|
|
|
8632
8216
|
|
|
8633
8217
|
/***/ }),
|
|
8634
8218
|
|
|
8635
|
-
/***/
|
|
8219
|
+
/***/ 4927:
|
|
8636
8220
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
8637
8221
|
|
|
8638
8222
|
|
|
@@ -8706,7 +8290,7 @@ function config (name) {
|
|
|
8706
8290
|
|
|
8707
8291
|
/***/ }),
|
|
8708
8292
|
|
|
8709
|
-
/***/
|
|
8293
|
+
/***/ 6988:
|
|
8710
8294
|
/***/ (function(module) {
|
|
8711
8295
|
|
|
8712
8296
|
module.exports = read
|
|
@@ -8742,7 +8326,7 @@ function read(buf, offset) {
|
|
|
8742
8326
|
|
|
8743
8327
|
/***/ }),
|
|
8744
8328
|
|
|
8745
|
-
/***/
|
|
8329
|
+
/***/ 1312:
|
|
8746
8330
|
/***/ (function(module) {
|
|
8747
8331
|
|
|
8748
8332
|
module.exports = encode
|
|
@@ -8779,12 +8363,12 @@ function encode(num, out, offset) {
|
|
|
8779
8363
|
|
|
8780
8364
|
/***/ }),
|
|
8781
8365
|
|
|
8782
|
-
/***/
|
|
8366
|
+
/***/ 4676:
|
|
8783
8367
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
8784
8368
|
|
|
8785
8369
|
module.exports = {
|
|
8786
|
-
encode: __webpack_require__(
|
|
8787
|
-
, decode: __webpack_require__(
|
|
8370
|
+
encode: __webpack_require__(1312)
|
|
8371
|
+
, decode: __webpack_require__(6988)
|
|
8788
8372
|
, encodingLength: __webpack_require__(82)
|
|
8789
8373
|
}
|
|
8790
8374
|
|
|
@@ -8823,7 +8407,76 @@ module.exports = function (value) {
|
|
|
8823
8407
|
|
|
8824
8408
|
/***/ }),
|
|
8825
8409
|
|
|
8826
|
-
/***/
|
|
8410
|
+
/***/ 5840:
|
|
8411
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
8412
|
+
|
|
8413
|
+
var _globalThis;
|
|
8414
|
+
if (typeof globalThis === 'object') {
|
|
8415
|
+
_globalThis = globalThis;
|
|
8416
|
+
} else {
|
|
8417
|
+
try {
|
|
8418
|
+
_globalThis = __webpack_require__(284);
|
|
8419
|
+
} catch (error) {
|
|
8420
|
+
} finally {
|
|
8421
|
+
if (!_globalThis && typeof window !== 'undefined') { _globalThis = window; }
|
|
8422
|
+
if (!_globalThis) { throw new Error('Could not determine global this'); }
|
|
8423
|
+
}
|
|
8424
|
+
}
|
|
8425
|
+
|
|
8426
|
+
var NativeWebSocket = _globalThis.WebSocket || _globalThis.MozWebSocket;
|
|
8427
|
+
var websocket_version = __webpack_require__(9387);
|
|
8428
|
+
|
|
8429
|
+
|
|
8430
|
+
/**
|
|
8431
|
+
* Expose a W3C WebSocket class with just one or two arguments.
|
|
8432
|
+
*/
|
|
8433
|
+
function W3CWebSocket(uri, protocols) {
|
|
8434
|
+
var native_instance;
|
|
8435
|
+
|
|
8436
|
+
if (protocols) {
|
|
8437
|
+
native_instance = new NativeWebSocket(uri, protocols);
|
|
8438
|
+
}
|
|
8439
|
+
else {
|
|
8440
|
+
native_instance = new NativeWebSocket(uri);
|
|
8441
|
+
}
|
|
8442
|
+
|
|
8443
|
+
/**
|
|
8444
|
+
* 'native_instance' is an instance of nativeWebSocket (the browser's WebSocket
|
|
8445
|
+
* class). Since it is an Object it will be returned as it is when creating an
|
|
8446
|
+
* instance of W3CWebSocket via 'new W3CWebSocket()'.
|
|
8447
|
+
*
|
|
8448
|
+
* ECMAScript 5: http://bclary.com/2004/11/07/#a-13.2.2
|
|
8449
|
+
*/
|
|
8450
|
+
return native_instance;
|
|
8451
|
+
}
|
|
8452
|
+
if (NativeWebSocket) {
|
|
8453
|
+
['CONNECTING', 'OPEN', 'CLOSING', 'CLOSED'].forEach(function(prop) {
|
|
8454
|
+
Object.defineProperty(W3CWebSocket, prop, {
|
|
8455
|
+
get: function() { return NativeWebSocket[prop]; }
|
|
8456
|
+
});
|
|
8457
|
+
});
|
|
8458
|
+
}
|
|
8459
|
+
|
|
8460
|
+
/**
|
|
8461
|
+
* Module exports.
|
|
8462
|
+
*/
|
|
8463
|
+
module.exports = {
|
|
8464
|
+
'w3cwebsocket' : NativeWebSocket ? W3CWebSocket : null,
|
|
8465
|
+
'version' : websocket_version
|
|
8466
|
+
};
|
|
8467
|
+
|
|
8468
|
+
|
|
8469
|
+
/***/ }),
|
|
8470
|
+
|
|
8471
|
+
/***/ 9387:
|
|
8472
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
8473
|
+
|
|
8474
|
+
module.exports = __webpack_require__(9794).version;
|
|
8475
|
+
|
|
8476
|
+
|
|
8477
|
+
/***/ }),
|
|
8478
|
+
|
|
8479
|
+
/***/ 5766:
|
|
8827
8480
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8828
8481
|
|
|
8829
8482
|
"use strict";
|
|
@@ -8981,7 +8634,7 @@ function fromByteArray (uint8) {
|
|
|
8981
8634
|
|
|
8982
8635
|
/***/ }),
|
|
8983
8636
|
|
|
8984
|
-
/***/
|
|
8637
|
+
/***/ 8834:
|
|
8985
8638
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8986
8639
|
|
|
8987
8640
|
"use strict";
|
|
@@ -8995,8 +8648,8 @@ function fromByteArray (uint8) {
|
|
|
8995
8648
|
|
|
8996
8649
|
|
|
8997
8650
|
|
|
8998
|
-
var base64 = __webpack_require__(
|
|
8999
|
-
var ieee754 = __webpack_require__(
|
|
8651
|
+
var base64 = __webpack_require__(5766)
|
|
8652
|
+
var ieee754 = __webpack_require__(2333)
|
|
9000
8653
|
var customInspectSymbol =
|
|
9001
8654
|
(typeof Symbol === 'function' && typeof Symbol['for'] === 'function') // eslint-disable-line dot-notation
|
|
9002
8655
|
? Symbol['for']('nodejs.util.inspect.custom') // eslint-disable-line dot-notation
|
|
@@ -10806,7 +10459,7 @@ var hexSliceLookupTable = (function () {
|
|
|
10806
10459
|
|
|
10807
10460
|
/***/ }),
|
|
10808
10461
|
|
|
10809
|
-
/***/
|
|
10462
|
+
/***/ 2333:
|
|
10810
10463
|
/***/ (function(__unused_webpack_module, exports) {
|
|
10811
10464
|
|
|
10812
10465
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
@@ -10898,7 +10551,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
10898
10551
|
|
|
10899
10552
|
/***/ }),
|
|
10900
10553
|
|
|
10901
|
-
/***/
|
|
10554
|
+
/***/ 4406:
|
|
10902
10555
|
/***/ (function(module) {
|
|
10903
10556
|
|
|
10904
10557
|
// shim for using process in browser
|
|
@@ -11089,18 +10742,26 @@ process.umask = function() { return 0; };
|
|
|
11089
10742
|
|
|
11090
10743
|
/***/ }),
|
|
11091
10744
|
|
|
11092
|
-
/***/
|
|
10745
|
+
/***/ 2361:
|
|
11093
10746
|
/***/ (function() {
|
|
11094
10747
|
|
|
11095
10748
|
/* (ignored) */
|
|
11096
10749
|
|
|
11097
10750
|
/***/ }),
|
|
11098
10751
|
|
|
11099
|
-
/***/
|
|
10752
|
+
/***/ 4616:
|
|
11100
10753
|
/***/ (function() {
|
|
11101
10754
|
|
|
11102
10755
|
/* (ignored) */
|
|
11103
10756
|
|
|
10757
|
+
/***/ }),
|
|
10758
|
+
|
|
10759
|
+
/***/ 9794:
|
|
10760
|
+
/***/ (function(module) {
|
|
10761
|
+
|
|
10762
|
+
"use strict";
|
|
10763
|
+
module.exports = {"version":"1.0.34"};
|
|
10764
|
+
|
|
11104
10765
|
/***/ })
|
|
11105
10766
|
|
|
11106
10767
|
/******/ });
|
|
@@ -11129,7 +10790,40 @@ process.umask = function() { return 0; };
|
|
|
11129
10790
|
/******/ return module.exports;
|
|
11130
10791
|
/******/ }
|
|
11131
10792
|
/******/
|
|
10793
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
10794
|
+
/******/ __webpack_require__.m = __webpack_modules__;
|
|
10795
|
+
/******/
|
|
11132
10796
|
/************************************************************************/
|
|
10797
|
+
/******/ /* webpack/runtime/create fake namespace object */
|
|
10798
|
+
/******/ !function() {
|
|
10799
|
+
/******/ var getProto = Object.getPrototypeOf ? function(obj) { return Object.getPrototypeOf(obj); } : function(obj) { return obj.__proto__; };
|
|
10800
|
+
/******/ var leafPrototypes;
|
|
10801
|
+
/******/ // create a fake namespace object
|
|
10802
|
+
/******/ // mode & 1: value is a module id, require it
|
|
10803
|
+
/******/ // mode & 2: merge all properties of value into the ns
|
|
10804
|
+
/******/ // mode & 4: return value when already ns object
|
|
10805
|
+
/******/ // mode & 16: return value when it's Promise-like
|
|
10806
|
+
/******/ // mode & 8|1: behave like require
|
|
10807
|
+
/******/ __webpack_require__.t = function(value, mode) {
|
|
10808
|
+
/******/ if(mode & 1) value = this(value);
|
|
10809
|
+
/******/ if(mode & 8) return value;
|
|
10810
|
+
/******/ if(typeof value === 'object' && value) {
|
|
10811
|
+
/******/ if((mode & 4) && value.__esModule) return value;
|
|
10812
|
+
/******/ if((mode & 16) && typeof value.then === 'function') return value;
|
|
10813
|
+
/******/ }
|
|
10814
|
+
/******/ var ns = Object.create(null);
|
|
10815
|
+
/******/ __webpack_require__.r(ns);
|
|
10816
|
+
/******/ var def = {};
|
|
10817
|
+
/******/ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];
|
|
10818
|
+
/******/ for(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {
|
|
10819
|
+
/******/ Object.getOwnPropertyNames(current).forEach(function(key) { def[key] = function() { return value[key]; }; });
|
|
10820
|
+
/******/ }
|
|
10821
|
+
/******/ def['default'] = function() { return value; };
|
|
10822
|
+
/******/ __webpack_require__.d(ns, def);
|
|
10823
|
+
/******/ return ns;
|
|
10824
|
+
/******/ };
|
|
10825
|
+
/******/ }();
|
|
10826
|
+
/******/
|
|
11133
10827
|
/******/ /* webpack/runtime/define property getters */
|
|
11134
10828
|
/******/ !function() {
|
|
11135
10829
|
/******/ // define getter functions for harmony exports
|
|
@@ -11142,6 +10836,28 @@ process.umask = function() { return 0; };
|
|
|
11142
10836
|
/******/ };
|
|
11143
10837
|
/******/ }();
|
|
11144
10838
|
/******/
|
|
10839
|
+
/******/ /* webpack/runtime/ensure chunk */
|
|
10840
|
+
/******/ !function() {
|
|
10841
|
+
/******/ __webpack_require__.f = {};
|
|
10842
|
+
/******/ // This file contains only the entry chunk.
|
|
10843
|
+
/******/ // The chunk loading function for additional chunks
|
|
10844
|
+
/******/ __webpack_require__.e = function(chunkId) {
|
|
10845
|
+
/******/ return Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {
|
|
10846
|
+
/******/ __webpack_require__.f[key](chunkId, promises);
|
|
10847
|
+
/******/ return promises;
|
|
10848
|
+
/******/ }, []));
|
|
10849
|
+
/******/ };
|
|
10850
|
+
/******/ }();
|
|
10851
|
+
/******/
|
|
10852
|
+
/******/ /* webpack/runtime/get javascript chunk filename */
|
|
10853
|
+
/******/ !function() {
|
|
10854
|
+
/******/ // This function allow to reference async chunks
|
|
10855
|
+
/******/ __webpack_require__.u = function(chunkId) {
|
|
10856
|
+
/******/ // return url for filenames based on template
|
|
10857
|
+
/******/ return "" + {"228":"wrtc","682":"pako"}[chunkId] + ".js";
|
|
10858
|
+
/******/ };
|
|
10859
|
+
/******/ }();
|
|
10860
|
+
/******/
|
|
11145
10861
|
/******/ /* webpack/runtime/global */
|
|
11146
10862
|
/******/ !function() {
|
|
11147
10863
|
/******/ __webpack_require__.g = (function() {
|
|
@@ -11159,6 +10875,52 @@ process.umask = function() { return 0; };
|
|
|
11159
10875
|
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
11160
10876
|
/******/ }();
|
|
11161
10877
|
/******/
|
|
10878
|
+
/******/ /* webpack/runtime/load script */
|
|
10879
|
+
/******/ !function() {
|
|
10880
|
+
/******/ var inProgress = {};
|
|
10881
|
+
/******/ var dataWebpackPrefix = "@leofcoin/peernet:";
|
|
10882
|
+
/******/ // loadScript function to load a script via script tag
|
|
10883
|
+
/******/ __webpack_require__.l = function(url, done, key, chunkId) {
|
|
10884
|
+
/******/ if(inProgress[url]) { inProgress[url].push(done); return; }
|
|
10885
|
+
/******/ var script, needAttach;
|
|
10886
|
+
/******/ if(key !== undefined) {
|
|
10887
|
+
/******/ var scripts = document.getElementsByTagName("script");
|
|
10888
|
+
/******/ for(var i = 0; i < scripts.length; i++) {
|
|
10889
|
+
/******/ var s = scripts[i];
|
|
10890
|
+
/******/ if(s.getAttribute("src") == url || s.getAttribute("data-webpack") == dataWebpackPrefix + key) { script = s; break; }
|
|
10891
|
+
/******/ }
|
|
10892
|
+
/******/ }
|
|
10893
|
+
/******/ if(!script) {
|
|
10894
|
+
/******/ needAttach = true;
|
|
10895
|
+
/******/ script = document.createElement('script');
|
|
10896
|
+
/******/
|
|
10897
|
+
/******/ script.charset = 'utf-8';
|
|
10898
|
+
/******/ script.timeout = 120;
|
|
10899
|
+
/******/ if (__webpack_require__.nc) {
|
|
10900
|
+
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
|
10901
|
+
/******/ }
|
|
10902
|
+
/******/ script.setAttribute("data-webpack", dataWebpackPrefix + key);
|
|
10903
|
+
/******/ script.src = url;
|
|
10904
|
+
/******/ }
|
|
10905
|
+
/******/ inProgress[url] = [done];
|
|
10906
|
+
/******/ var onScriptComplete = function(prev, event) {
|
|
10907
|
+
/******/ // avoid mem leaks in IE.
|
|
10908
|
+
/******/ script.onerror = script.onload = null;
|
|
10909
|
+
/******/ clearTimeout(timeout);
|
|
10910
|
+
/******/ var doneFns = inProgress[url];
|
|
10911
|
+
/******/ delete inProgress[url];
|
|
10912
|
+
/******/ script.parentNode && script.parentNode.removeChild(script);
|
|
10913
|
+
/******/ doneFns && doneFns.forEach(function(fn) { return fn(event); });
|
|
10914
|
+
/******/ if(prev) return prev(event);
|
|
10915
|
+
/******/ }
|
|
10916
|
+
/******/ ;
|
|
10917
|
+
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
|
10918
|
+
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
|
|
10919
|
+
/******/ script.onload = onScriptComplete.bind(null, script.onload);
|
|
10920
|
+
/******/ needAttach && document.head.appendChild(script);
|
|
10921
|
+
/******/ };
|
|
10922
|
+
/******/ }();
|
|
10923
|
+
/******/
|
|
11162
10924
|
/******/ /* webpack/runtime/make namespace object */
|
|
11163
10925
|
/******/ !function() {
|
|
11164
10926
|
/******/ // define __esModule on exports
|
|
@@ -11170,12 +10932,124 @@ process.umask = function() { return 0; };
|
|
|
11170
10932
|
/******/ };
|
|
11171
10933
|
/******/ }();
|
|
11172
10934
|
/******/
|
|
10935
|
+
/******/ /* webpack/runtime/publicPath */
|
|
10936
|
+
/******/ !function() {
|
|
10937
|
+
/******/ var scriptUrl;
|
|
10938
|
+
/******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + "";
|
|
10939
|
+
/******/ var document = __webpack_require__.g.document;
|
|
10940
|
+
/******/ if (!scriptUrl && document) {
|
|
10941
|
+
/******/ if (document.currentScript)
|
|
10942
|
+
/******/ scriptUrl = document.currentScript.src
|
|
10943
|
+
/******/ if (!scriptUrl) {
|
|
10944
|
+
/******/ var scripts = document.getElementsByTagName("script");
|
|
10945
|
+
/******/ if(scripts.length) scriptUrl = scripts[scripts.length - 1].src
|
|
10946
|
+
/******/ }
|
|
10947
|
+
/******/ }
|
|
10948
|
+
/******/ // When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration
|
|
10949
|
+
/******/ // or pass an empty string ("") and set the __webpack_public_path__ variable from your code to use your own logic.
|
|
10950
|
+
/******/ if (!scriptUrl) throw new Error("Automatic publicPath is not supported in this browser");
|
|
10951
|
+
/******/ scriptUrl = scriptUrl.replace(/#.*$/, "").replace(/\?.*$/, "").replace(/\/[^\/]+$/, "/");
|
|
10952
|
+
/******/ __webpack_require__.p = scriptUrl;
|
|
10953
|
+
/******/ }();
|
|
10954
|
+
/******/
|
|
10955
|
+
/******/ /* webpack/runtime/jsonp chunk loading */
|
|
10956
|
+
/******/ !function() {
|
|
10957
|
+
/******/ // no baseURI
|
|
10958
|
+
/******/
|
|
10959
|
+
/******/ // object to store loaded and loading chunks
|
|
10960
|
+
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
|
10961
|
+
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
|
|
10962
|
+
/******/ var installedChunks = {
|
|
10963
|
+
/******/ 806: 0
|
|
10964
|
+
/******/ };
|
|
10965
|
+
/******/
|
|
10966
|
+
/******/ __webpack_require__.f.j = function(chunkId, promises) {
|
|
10967
|
+
/******/ // JSONP chunk loading for javascript
|
|
10968
|
+
/******/ var installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;
|
|
10969
|
+
/******/ if(installedChunkData !== 0) { // 0 means "already installed".
|
|
10970
|
+
/******/
|
|
10971
|
+
/******/ // a Promise means "currently loading".
|
|
10972
|
+
/******/ if(installedChunkData) {
|
|
10973
|
+
/******/ promises.push(installedChunkData[2]);
|
|
10974
|
+
/******/ } else {
|
|
10975
|
+
/******/ if(true) { // all chunks have JS
|
|
10976
|
+
/******/ // setup Promise in chunk cache
|
|
10977
|
+
/******/ var promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });
|
|
10978
|
+
/******/ promises.push(installedChunkData[2] = promise);
|
|
10979
|
+
/******/
|
|
10980
|
+
/******/ // start chunk loading
|
|
10981
|
+
/******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
|
|
10982
|
+
/******/ // create error before stack unwound to get useful stacktrace later
|
|
10983
|
+
/******/ var error = new Error();
|
|
10984
|
+
/******/ var loadingEnded = function(event) {
|
|
10985
|
+
/******/ if(__webpack_require__.o(installedChunks, chunkId)) {
|
|
10986
|
+
/******/ installedChunkData = installedChunks[chunkId];
|
|
10987
|
+
/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
|
|
10988
|
+
/******/ if(installedChunkData) {
|
|
10989
|
+
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
|
10990
|
+
/******/ var realSrc = event && event.target && event.target.src;
|
|
10991
|
+
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
|
10992
|
+
/******/ error.name = 'ChunkLoadError';
|
|
10993
|
+
/******/ error.type = errorType;
|
|
10994
|
+
/******/ error.request = realSrc;
|
|
10995
|
+
/******/ installedChunkData[1](error);
|
|
10996
|
+
/******/ }
|
|
10997
|
+
/******/ }
|
|
10998
|
+
/******/ };
|
|
10999
|
+
/******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId, chunkId);
|
|
11000
|
+
/******/ } else installedChunks[chunkId] = 0;
|
|
11001
|
+
/******/ }
|
|
11002
|
+
/******/ }
|
|
11003
|
+
/******/ };
|
|
11004
|
+
/******/
|
|
11005
|
+
/******/ // no prefetching
|
|
11006
|
+
/******/
|
|
11007
|
+
/******/ // no preloaded
|
|
11008
|
+
/******/
|
|
11009
|
+
/******/ // no HMR
|
|
11010
|
+
/******/
|
|
11011
|
+
/******/ // no HMR manifest
|
|
11012
|
+
/******/
|
|
11013
|
+
/******/ // no on chunks loaded
|
|
11014
|
+
/******/
|
|
11015
|
+
/******/ // install a JSONP callback for chunk loading
|
|
11016
|
+
/******/ var webpackJsonpCallback = function(parentChunkLoadingFunction, data) {
|
|
11017
|
+
/******/ var chunkIds = data[0];
|
|
11018
|
+
/******/ var moreModules = data[1];
|
|
11019
|
+
/******/ var runtime = data[2];
|
|
11020
|
+
/******/ // add "moreModules" to the modules object,
|
|
11021
|
+
/******/ // then flag all "chunkIds" as loaded and fire callback
|
|
11022
|
+
/******/ var moduleId, chunkId, i = 0;
|
|
11023
|
+
/******/ if(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {
|
|
11024
|
+
/******/ for(moduleId in moreModules) {
|
|
11025
|
+
/******/ if(__webpack_require__.o(moreModules, moduleId)) {
|
|
11026
|
+
/******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
|
|
11027
|
+
/******/ }
|
|
11028
|
+
/******/ }
|
|
11029
|
+
/******/ if(runtime) var result = runtime(__webpack_require__);
|
|
11030
|
+
/******/ }
|
|
11031
|
+
/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
|
|
11032
|
+
/******/ for(;i < chunkIds.length; i++) {
|
|
11033
|
+
/******/ chunkId = chunkIds[i];
|
|
11034
|
+
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
|
|
11035
|
+
/******/ installedChunks[chunkId][0]();
|
|
11036
|
+
/******/ }
|
|
11037
|
+
/******/ installedChunks[chunkId] = 0;
|
|
11038
|
+
/******/ }
|
|
11039
|
+
/******/
|
|
11040
|
+
/******/ }
|
|
11041
|
+
/******/
|
|
11042
|
+
/******/ var chunkLoadingGlobal = self["webpackChunk_leofcoin_peernet"] = self["webpackChunk_leofcoin_peernet"] || [];
|
|
11043
|
+
/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
|
|
11044
|
+
/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
|
|
11045
|
+
/******/ }();
|
|
11046
|
+
/******/
|
|
11173
11047
|
/************************************************************************/
|
|
11174
11048
|
/******/
|
|
11175
11049
|
/******/ // startup
|
|
11176
11050
|
/******/ // Load entry module and return exports
|
|
11177
11051
|
/******/ // This entry module is referenced by other modules so it can't be inlined
|
|
11178
|
-
/******/ var __webpack_exports__ = __webpack_require__(
|
|
11052
|
+
/******/ var __webpack_exports__ = __webpack_require__(2659);
|
|
11179
11053
|
/******/ var __webpack_export_target__ = self;
|
|
11180
11054
|
/******/ for(var i in __webpack_exports__) __webpack_export_target__[i] = __webpack_exports__[i];
|
|
11181
11055
|
/******/ if(__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, "__esModule", { value: true });
|