Files
pezkuwi-mobile-app/frontend/.metro-cache/cache/87/d2e51ab859152808db9cb0d507aba66e70fcc499a85f65bbc16516377e3234678ca123
T
2025-10-24 02:48:32 +00:00

1 line
30 KiB
Plaintext

{"dependencies":[{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":43,"index":43}}],"key":"ISHU1ovvPMrCldqRjtd1JhW9dyo=","exportNames":["*"],"imports":1}}],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n\n Object.defineProperty(exports, '__esModule', {\n value: true\n });\n exports.healthChecker = healthChecker;\n Object.defineProperty(exports, \"HealthCheckError\", {\n enumerable: true,\n get: function () {\n return HealthCheckError;\n }\n });\n var _polkadotUtil = require(_dependencyMap[0], \"@polkadot/util\");\n /*\n * Creates a new health checker.\n *\n * The role of the health checker is to report to the user the health of a smoldot chain.\n *\n * In order to use it, start by creating a health checker, and call `setSendJsonRpc` to set the\n * way to send a JSON-RPC request to a chain. The health checker is disabled by default. Use\n * `start()` in order to start the health checks. The `start()` function must be passed a callback called\n * when an update to the health of the node is available.\n *\n * In order to send a JSON-RPC request to the chain, you **must** use the `sendJsonRpc` function\n * of the health checker. The health checker rewrites the `id` of the requests it receives.\n *\n * When the chain send a JSON-RPC response, it must be passed to `responsePassThrough()`. This\n * function intercepts the responses destined to the requests that have been emitted by the health\n * checker and returns `null`. If the response doesn't concern the health checker, the response is\n * simply returned by the function.\n *\n * # How it works\n *\n * The health checker periodically calls the `system_health` JSON-RPC call in order to determine\n * the health of the chain.\n *\n * In addition to this, as long as the health check reports that `isSyncing` is `true`, the\n * health checker also maintains a subscription to new best blocks using `chain_subscribeNewHeads`.\n * Whenever a new block is notified, a health check is performed immediately in order to determine\n * whether `isSyncing` has changed to `false`.\n *\n * Thanks to this subscription, the latency of the report of the switch from `isSyncing: true` to\n * `isSyncing: false` is very low.\n *\n */\n function healthChecker() {\n // `null` if health checker is not started.\n let checker = null;\n let sendJsonRpc = null;\n return {\n responsePassThrough: jsonRpcResponse => {\n if (checker === null) {\n return jsonRpcResponse;\n }\n return checker.responsePassThrough(jsonRpcResponse);\n },\n sendJsonRpc: request => {\n if (!sendJsonRpc) {\n throw new Error('setSendJsonRpc must be called before sending requests');\n }\n if (checker === null) {\n sendJsonRpc(request);\n } else {\n checker.sendJsonRpc(request);\n }\n },\n setSendJsonRpc: cb => {\n sendJsonRpc = cb;\n },\n start: healthCallback => {\n if (checker !== null) {\n throw new Error(\"Can't start the health checker multiple times in parallel\");\n } else if (!sendJsonRpc) {\n throw new Error('setSendJsonRpc must be called before starting the health checks');\n }\n checker = new InnerChecker(healthCallback, sendJsonRpc);\n checker.update(true);\n },\n stop: () => {\n if (checker === null) {\n return;\n } // Already stopped.\n checker.destroy();\n checker = null;\n }\n };\n }\n class InnerChecker {\n #healthCallback;\n #currentHealthCheckId = null;\n #currentHealthTimeout = null;\n #currentSubunsubRequestId = null;\n #currentSubscriptionId = null;\n #requestToSmoldot;\n #isSyncing = false;\n #nextRequestId = 0;\n constructor(healthCallback, requestToSmoldot) {\n this.#healthCallback = healthCallback;\n this.#requestToSmoldot = request => requestToSmoldot((0, _polkadotUtil.stringify)(request));\n }\n sendJsonRpc = request => {\n // Replace the `id` in the request to prefix the request ID with `extern:`.\n let parsedRequest;\n try {\n parsedRequest = JSON.parse(request);\n } catch {\n return;\n }\n if (parsedRequest.id) {\n const newId = 'extern:' + (0, _polkadotUtil.stringify)(parsedRequest.id);\n parsedRequest.id = newId;\n }\n this.#requestToSmoldot(parsedRequest);\n };\n responsePassThrough = jsonRpcResponse => {\n let parsedResponse;\n try {\n parsedResponse = JSON.parse(jsonRpcResponse);\n } catch {\n return jsonRpcResponse;\n }\n // Check whether response is a response to `system_health`.\n if (parsedResponse.id && this.#currentHealthCheckId === parsedResponse.id) {\n this.#currentHealthCheckId = null;\n // Check whether query was successful. It is possible for queries to fail for\n // various reasons, such as the client being overloaded.\n if (!parsedResponse.result) {\n this.update(false);\n return null;\n }\n this.#healthCallback(parsedResponse.result);\n this.#isSyncing = parsedResponse.result.isSyncing;\n this.update(false);\n return null;\n }\n // Check whether response is a response to the subscription or unsubscription.\n if (parsedResponse.id && this.#currentSubunsubRequestId === parsedResponse.id) {\n this.#currentSubunsubRequestId = null;\n // Check whether query was successful. It is possible for queries to fail for\n // various reasons, such as the client being overloaded.\n if (!parsedResponse.result) {\n this.update(false);\n return null;\n }\n if (this.#currentSubscriptionId) {\n this.#currentSubscriptionId = null;\n } else {\n this.#currentSubscriptionId = parsedResponse.result;\n }\n this.update(false);\n return null;\n }\n // Check whether response is a notification to a subscription.\n if (parsedResponse.params && this.#currentSubscriptionId && parsedResponse.params.subscription === this.#currentSubscriptionId) {\n // Note that after a successful subscription, a notification containing\n // the current best block is always returned. Considering that a\n // subscription is performed in response to a health check, calling\n // `startHealthCheck()` here will lead to a second health check.\n // It might seem redundant to perform two health checks in a quick\n // succession, but doing so doesn't lead to any problem, and it is\n // actually possible for the health to have changed in between as the\n // current best block might have been updated during the subscription\n // request.\n this.update(true);\n return null;\n }\n // Response doesn't concern us.\n if (parsedResponse.id) {\n const id = parsedResponse.id;\n // Need to remove the `extern:` prefix.\n if (!id.startsWith('extern:')) {\n throw new Error('State inconsistency in health checker');\n }\n const newId = JSON.parse(id.slice('extern:'.length));\n parsedResponse.id = newId;\n }\n return (0, _polkadotUtil.stringify)(parsedResponse);\n };\n update = startNow => {\n // If `startNow`, clear `#currentHealthTimeout` so that it is set below.\n if (startNow && this.#currentHealthTimeout) {\n clearTimeout(this.#currentHealthTimeout);\n this.#currentHealthTimeout = null;\n }\n if (!this.#currentHealthTimeout) {\n const startHealthRequest = () => {\n this.#currentHealthTimeout = null;\n // No matter what, don't start a health request if there is already one in progress.\n // This is sane to do because receiving a response to a health request calls `update()`.\n if (this.#currentHealthCheckId) {\n return;\n }\n // Actual request starting.\n this.#currentHealthCheckId = `health-checker:${this.#nextRequestId}`;\n this.#nextRequestId += 1;\n this.#requestToSmoldot({\n id: this.#currentHealthCheckId,\n jsonrpc: '2.0',\n method: 'system_health',\n params: []\n });\n };\n if (startNow) {\n startHealthRequest();\n } else {\n this.#currentHealthTimeout = setTimeout(startHealthRequest, 1000);\n }\n }\n if (this.#isSyncing && !this.#currentSubscriptionId && !this.#currentSubunsubRequestId) {\n this.startSubscription();\n }\n if (!this.#isSyncing && this.#currentSubscriptionId && !this.#currentSubunsubRequestId) {\n this.endSubscription();\n }\n };\n startSubscription = () => {\n if (this.#currentSubunsubRequestId || this.#currentSubscriptionId) {\n throw new Error('Internal error in health checker');\n }\n this.#currentSubunsubRequestId = `health-checker:${this.#nextRequestId}`;\n this.#nextRequestId += 1;\n this.#requestToSmoldot({\n id: this.#currentSubunsubRequestId,\n jsonrpc: '2.0',\n method: 'chain_subscribeNewHeads',\n params: []\n });\n };\n endSubscription = () => {\n if (this.#currentSubunsubRequestId || !this.#currentSubscriptionId) {\n throw new Error('Internal error in health checker');\n }\n this.#currentSubunsubRequestId = `health-checker:${this.#nextRequestId}`;\n this.#nextRequestId += 1;\n this.#requestToSmoldot({\n id: this.#currentSubunsubRequestId,\n jsonrpc: '2.0',\n method: 'chain_unsubscribeNewHeads',\n params: [this.#currentSubscriptionId]\n });\n };\n destroy = () => {\n if (this.#currentHealthTimeout) {\n clearTimeout(this.#currentHealthTimeout);\n this.#currentHealthTimeout = null;\n }\n };\n }\n class HealthCheckError extends Error {\n #cause;\n getCause() {\n return this.#cause;\n }\n constructor(response, message = 'Got error response asking for system health') {\n super(message);\n this.#cause = response;\n }\n }\n});","lineCount":260,"map":[[7,2,34,0,"exports"],[7,9,34,0],[7,10,34,0,"healthChecker"],[7,23,34,0],[7,26,34,0,"healthChecker"],[7,39,34,0],[8,2,250,0,"Object"],[8,8,250,0],[8,9,250,0,"defineProperty"],[8,23,250,0],[8,24,250,0,"exports"],[8,31,250,0],[9,4,250,0,"enumerable"],[9,14,250,0],[10,4,250,0,"get"],[10,7,250,0],[10,18,250,0,"get"],[10,19,250,0],[11,6,250,0],[11,13,250,0,"HealthCheckError"],[11,29,250,0],[12,4,250,0],[13,2,250,0],[14,2,1,0],[14,6,1,0,"_polkadotUtil"],[14,19,1,0],[14,22,1,0,"require"],[14,29,1,0],[14,30,1,0,"_dependencyMap"],[14,44,1,0],[15,2,2,0],[16,0,3,0],[17,0,4,0],[18,0,5,0],[19,0,6,0],[20,0,7,0],[21,0,8,0],[22,0,9,0],[23,0,10,0],[24,0,11,0],[25,0,12,0],[26,0,13,0],[27,0,14,0],[28,0,15,0],[29,0,16,0],[30,0,17,0],[31,0,18,0],[32,0,19,0],[33,0,20,0],[34,0,21,0],[35,0,22,0],[36,0,23,0],[37,0,24,0],[38,0,25,0],[39,0,26,0],[40,0,27,0],[41,0,28,0],[42,0,29,0],[43,0,30,0],[44,0,31,0],[45,0,32,0],[46,0,33,0],[47,2,34,7],[47,11,34,16,"healthChecker"],[47,24,34,29,"healthChecker"],[47,25,34,29],[47,27,34,32],[48,4,35,4],[49,4,36,4],[49,8,36,8,"checker"],[49,15,36,15],[49,18,36,18],[49,22,36,22],[50,4,37,4],[50,8,37,8,"sendJsonRpc"],[50,19,37,19],[50,22,37,22],[50,26,37,26],[51,4,38,4],[51,11,38,11],[52,6,39,8,"responsePassThrough"],[52,25,39,27],[52,27,39,30,"jsonRpcResponse"],[52,42,39,45],[52,46,39,50],[53,8,40,12],[53,12,40,16,"checker"],[53,19,40,23],[53,24,40,28],[53,28,40,32],[53,30,40,34],[54,10,41,16],[54,17,41,23,"jsonRpcResponse"],[54,32,41,38],[55,8,42,12],[56,8,43,12],[56,15,43,19,"checker"],[56,22,43,26],[56,23,43,27,"responsePassThrough"],[56,42,43,46],[56,43,43,47,"jsonRpcResponse"],[56,58,43,62],[56,59,43,63],[57,6,44,8],[57,7,44,9],[58,6,45,8,"sendJsonRpc"],[58,17,45,19],[58,19,45,22,"request"],[58,26,45,29],[58,30,45,34],[59,8,46,12],[59,12,46,16],[59,13,46,17,"sendJsonRpc"],[59,24,46,28],[59,26,46,30],[60,10,47,16],[60,16,47,22],[60,20,47,26,"Error"],[60,25,47,31],[60,26,47,32],[60,81,47,87],[60,82,47,88],[61,8,48,12],[62,8,49,12],[62,12,49,16,"checker"],[62,19,49,23],[62,24,49,28],[62,28,49,32],[62,30,49,34],[63,10,50,16,"sendJsonRpc"],[63,21,50,27],[63,22,50,28,"request"],[63,29,50,35],[63,30,50,36],[64,8,51,12],[64,9,51,13],[64,15,52,17],[65,10,53,16,"checker"],[65,17,53,23],[65,18,53,24,"sendJsonRpc"],[65,29,53,35],[65,30,53,36,"request"],[65,37,53,43],[65,38,53,44],[66,8,54,12],[67,6,55,8],[67,7,55,9],[68,6,56,8,"setSendJsonRpc"],[68,20,56,22],[68,22,56,25,"cb"],[68,24,56,27],[68,28,56,32],[69,8,57,12,"sendJsonRpc"],[69,19,57,23],[69,22,57,26,"cb"],[69,24,57,28],[70,6,58,8],[70,7,58,9],[71,6,59,8,"start"],[71,11,59,13],[71,13,59,16,"healthCallback"],[71,27,59,30],[71,31,59,35],[72,8,60,12],[72,12,60,16,"checker"],[72,19,60,23],[72,24,60,28],[72,28,60,32],[72,30,60,34],[73,10,61,16],[73,16,61,22],[73,20,61,26,"Error"],[73,25,61,31],[73,26,61,32],[73,85,61,91],[73,86,61,92],[74,8,62,12],[74,9,62,13],[74,15,63,17],[74,19,63,21],[74,20,63,22,"sendJsonRpc"],[74,31,63,33],[74,33,63,35],[75,10,64,16],[75,16,64,22],[75,20,64,26,"Error"],[75,25,64,31],[75,26,64,32],[75,91,64,97],[75,92,64,98],[76,8,65,12],[77,8,66,12,"checker"],[77,15,66,19],[77,18,66,22],[77,22,66,26,"InnerChecker"],[77,34,66,38],[77,35,66,39,"healthCallback"],[77,49,66,53],[77,51,66,55,"sendJsonRpc"],[77,62,66,66],[77,63,66,67],[78,8,67,12,"checker"],[78,15,67,19],[78,16,67,20,"update"],[78,22,67,26],[78,23,67,27],[78,27,67,31],[78,28,67,32],[79,6,68,8],[79,7,68,9],[80,6,69,8,"stop"],[80,10,69,12],[80,12,69,14,"stop"],[80,13,69,14],[80,18,69,20],[81,8,70,12],[81,12,70,16,"checker"],[81,19,70,23],[81,24,70,28],[81,28,70,32],[81,30,70,34],[82,10,71,16],[83,8,72,12],[83,9,72,13],[83,10,72,14],[84,8,73,12,"checker"],[84,15,73,19],[84,16,73,20,"destroy"],[84,23,73,27],[84,24,73,28],[84,25,73,29],[85,8,74,12,"checker"],[85,15,74,19],[85,18,74,22],[85,22,74,26],[86,6,75,8],[87,4,76,4],[87,5,76,5],[88,2,77,0],[89,2,78,0],[89,8,78,6,"InnerChecker"],[89,20,78,18],[89,21,78,19],[90,4,79,4],[90,5,79,5,"healthCallback"],[90,19,79,19],[91,4,80,4],[91,5,80,5,"currentHealthCheckId"],[91,25,80,25],[91,28,80,28],[91,32,80,32],[92,4,81,4],[92,5,81,5,"currentHealthTimeout"],[92,25,81,25],[92,28,81,28],[92,32,81,32],[93,4,82,4],[93,5,82,5,"currentSubunsubRequestId"],[93,29,82,29],[93,32,82,32],[93,36,82,36],[94,4,83,4],[94,5,83,5,"currentSubscriptionId"],[94,26,83,26],[94,29,83,29],[94,33,83,33],[95,4,84,4],[95,5,84,5,"requestToSmoldot"],[95,21,84,21],[96,4,85,4],[96,5,85,5,"isSyncing"],[96,14,85,14],[96,17,85,17],[96,22,85,22],[97,4,86,4],[97,5,86,5,"nextRequestId"],[97,18,86,18],[97,21,86,21],[97,22,86,22],[98,4,87,4,"constructor"],[98,15,87,15,"constructor"],[98,16,87,16,"healthCallback"],[98,30,87,30],[98,32,87,32,"requestToSmoldot"],[98,48,87,48],[98,50,87,50],[99,6,88,8],[99,10,88,12],[99,11,88,13],[99,12,88,14,"healthCallback"],[99,26,88,28],[99,29,88,31,"healthCallback"],[99,43,88,45],[100,6,89,8],[100,10,89,12],[100,11,89,13],[100,12,89,14,"requestToSmoldot"],[100,28,89,30],[100,31,89,34,"request"],[100,38,89,41],[100,42,89,46,"requestToSmoldot"],[100,58,89,62],[100,59,89,63],[100,63,89,63,"stringify"],[100,76,89,72],[100,77,89,72,"stringify"],[100,86,89,72],[100,88,89,73,"request"],[100,95,89,80],[100,96,89,81],[100,97,89,82],[101,4,90,4],[102,4,91,4,"sendJsonRpc"],[102,15,91,15],[102,18,91,19,"request"],[102,25,91,26],[102,29,91,31],[103,6,92,8],[104,6,93,8],[104,10,93,12,"parsedRequest"],[104,23,93,25],[105,6,94,8],[105,10,94,12],[106,8,95,12,"parsedRequest"],[106,21,95,25],[106,24,95,28,"JSON"],[106,28,95,32],[106,29,95,33,"parse"],[106,34,95,38],[106,35,95,39,"request"],[106,42,95,46],[106,43,95,47],[107,6,96,8],[107,7,96,9],[107,8,97,8],[107,14,97,14],[108,8,98,12],[109,6,99,8],[110,6,100,8],[110,10,100,12,"parsedRequest"],[110,23,100,25],[110,24,100,26,"id"],[110,26,100,28],[110,28,100,30],[111,8,101,12],[111,14,101,18,"newId"],[111,19,101,23],[111,22,101,26],[111,31,101,35],[111,34,101,38],[111,38,101,38,"stringify"],[111,51,101,47],[111,52,101,47,"stringify"],[111,61,101,47],[111,63,101,48,"parsedRequest"],[111,76,101,61],[111,77,101,62,"id"],[111,79,101,64],[111,80,101,65],[112,8,102,12,"parsedRequest"],[112,21,102,25],[112,22,102,26,"id"],[112,24,102,28],[112,27,102,31,"newId"],[112,32,102,36],[113,6,103,8],[114,6,104,8],[114,10,104,12],[114,11,104,13],[114,12,104,14,"requestToSmoldot"],[114,28,104,30],[114,29,104,31,"parsedRequest"],[114,42,104,44],[114,43,104,45],[115,4,105,4],[115,5,105,5],[116,4,106,4,"responsePassThrough"],[116,23,106,23],[116,26,106,27,"jsonRpcResponse"],[116,41,106,42],[116,45,106,47],[117,6,107,8],[117,10,107,12,"parsedResponse"],[117,24,107,26],[118,6,108,8],[118,10,108,12],[119,8,109,12,"parsedResponse"],[119,22,109,26],[119,25,109,29,"JSON"],[119,29,109,33],[119,30,109,34,"parse"],[119,35,109,39],[119,36,109,40,"jsonRpcResponse"],[119,51,109,55],[119,52,109,56],[120,6,110,8],[120,7,110,9],[120,8,111,8],[120,14,111,14],[121,8,112,12],[121,15,112,19,"jsonRpcResponse"],[121,30,112,34],[122,6,113,8],[123,6,114,8],[124,6,115,8],[124,10,115,12,"parsedResponse"],[124,24,115,26],[124,25,115,27,"id"],[124,27,115,29],[124,31,115,33],[124,35,115,37],[124,36,115,38],[124,37,115,39,"currentHealthCheckId"],[124,57,115,59],[124,62,115,64,"parsedResponse"],[124,76,115,78],[124,77,115,79,"id"],[124,79,115,81],[124,81,115,83],[125,8,116,12],[125,12,116,16],[125,13,116,17],[125,14,116,18,"currentHealthCheckId"],[125,34,116,38],[125,37,116,41],[125,41,116,45],[126,8,117,12],[127,8,118,12],[128,8,119,12],[128,12,119,16],[128,13,119,17,"parsedResponse"],[128,27,119,31],[128,28,119,32,"result"],[128,34,119,38],[128,36,119,40],[129,10,120,16],[129,14,120,20],[129,15,120,21,"update"],[129,21,120,27],[129,22,120,28],[129,27,120,33],[129,28,120,34],[130,10,121,16],[130,17,121,23],[130,21,121,27],[131,8,122,12],[132,8,123,12],[132,12,123,16],[132,13,123,17],[132,14,123,18,"healthCallback"],[132,28,123,32],[132,29,123,33,"parsedResponse"],[132,43,123,47],[132,44,123,48,"result"],[132,50,123,54],[132,51,123,55],[133,8,124,12],[133,12,124,16],[133,13,124,17],[133,14,124,18,"isSyncing"],[133,23,124,27],[133,26,124,30,"parsedResponse"],[133,40,124,44],[133,41,124,45,"result"],[133,47,124,51],[133,48,124,52,"isSyncing"],[133,57,124,61],[134,8,125,12],[134,12,125,16],[134,13,125,17,"update"],[134,19,125,23],[134,20,125,24],[134,25,125,29],[134,26,125,30],[135,8,126,12],[135,15,126,19],[135,19,126,23],[136,6,127,8],[137,6,128,8],[138,6,129,8],[138,10,129,12,"parsedResponse"],[138,24,129,26],[138,25,129,27,"id"],[138,27,129,29],[138,31,130,12],[138,35,130,16],[138,36,130,17],[138,37,130,18,"currentSubunsubRequestId"],[138,61,130,42],[138,66,130,47,"parsedResponse"],[138,80,130,61],[138,81,130,62,"id"],[138,83,130,64],[138,85,130,66],[139,8,131,12],[139,12,131,16],[139,13,131,17],[139,14,131,18,"currentSubunsubRequestId"],[139,38,131,42],[139,41,131,45],[139,45,131,49],[140,8,132,12],[141,8,133,12],[142,8,134,12],[142,12,134,16],[142,13,134,17,"parsedResponse"],[142,27,134,31],[142,28,134,32,"result"],[142,34,134,38],[142,36,134,40],[143,10,135,16],[143,14,135,20],[143,15,135,21,"update"],[143,21,135,27],[143,22,135,28],[143,27,135,33],[143,28,135,34],[144,10,136,16],[144,17,136,23],[144,21,136,27],[145,8,137,12],[146,8,138,12],[146,12,138,16],[146,16,138,20],[146,17,138,21],[146,18,138,22,"currentSubscriptionId"],[146,39,138,43],[146,41,138,45],[147,10,139,16],[147,14,139,20],[147,15,139,21],[147,16,139,22,"currentSubscriptionId"],[147,37,139,43],[147,40,139,46],[147,44,139,50],[148,8,140,12],[148,9,140,13],[148,15,141,17],[149,10,142,16],[149,14,142,20],[149,15,142,21],[149,16,142,22,"currentSubscriptionId"],[149,37,142,43],[149,40,142,46,"parsedResponse"],[149,54,142,60],[149,55,142,61,"result"],[149,61,142,67],[150,8,143,12],[151,8,144,12],[151,12,144,16],[151,13,144,17,"update"],[151,19,144,23],[151,20,144,24],[151,25,144,29],[151,26,144,30],[152,8,145,12],[152,15,145,19],[152,19,145,23],[153,6,146,8],[154,6,147,8],[155,6,148,8],[155,10,148,12,"parsedResponse"],[155,24,148,26],[155,25,148,27,"params"],[155,31,148,33],[155,35,149,12],[155,39,149,16],[155,40,149,17],[155,41,149,18,"currentSubscriptionId"],[155,62,149,39],[155,66,150,12,"parsedResponse"],[155,80,150,26],[155,81,150,27,"params"],[155,87,150,33],[155,88,150,34,"subscription"],[155,100,150,46],[155,105,150,51],[155,109,150,55],[155,110,150,56],[155,111,150,57,"currentSubscriptionId"],[155,132,150,78],[155,134,150,80],[156,8,151,12],[157,8,152,12],[158,8,153,12],[159,8,154,12],[160,8,155,12],[161,8,156,12],[162,8,157,12],[163,8,158,12],[164,8,159,12],[165,8,160,12],[165,12,160,16],[165,13,160,17,"update"],[165,19,160,23],[165,20,160,24],[165,24,160,28],[165,25,160,29],[166,8,161,12],[166,15,161,19],[166,19,161,23],[167,6,162,8],[168,6,163,8],[169,6,164,8],[169,10,164,12,"parsedResponse"],[169,24,164,26],[169,25,164,27,"id"],[169,27,164,29],[169,29,164,31],[170,8,165,12],[170,14,165,18,"id"],[170,16,165,20],[170,19,165,23,"parsedResponse"],[170,33,165,37],[170,34,165,38,"id"],[170,36,165,40],[171,8,166,12],[172,8,167,12],[172,12,167,16],[172,13,167,17,"id"],[172,15,167,19],[172,16,167,20,"startsWith"],[172,26,167,30],[172,27,167,31],[172,36,167,40],[172,37,167,41],[172,39,167,43],[173,10,168,16],[173,16,168,22],[173,20,168,26,"Error"],[173,25,168,31],[173,26,168,32],[173,65,168,71],[173,66,168,72],[174,8,169,12],[175,8,170,12],[175,14,170,18,"newId"],[175,19,170,23],[175,22,170,26,"JSON"],[175,26,170,30],[175,27,170,31,"parse"],[175,32,170,36],[175,33,170,37,"id"],[175,35,170,39],[175,36,170,40,"slice"],[175,41,170,45],[175,42,170,46],[175,51,170,55],[175,52,170,56,"length"],[175,58,170,62],[175,59,170,63],[175,60,170,64],[176,8,171,12,"parsedResponse"],[176,22,171,26],[176,23,171,27,"id"],[176,25,171,29],[176,28,171,32,"newId"],[176,33,171,37],[177,6,172,8],[178,6,173,8],[178,13,173,15],[178,17,173,15,"stringify"],[178,30,173,24],[178,31,173,24,"stringify"],[178,40,173,24],[178,42,173,25,"parsedResponse"],[178,56,173,39],[178,57,173,40],[179,4,174,4],[179,5,174,5],[180,4,175,4,"update"],[180,10,175,10],[180,13,175,14,"startNow"],[180,21,175,22],[180,25,175,27],[181,6,176,8],[182,6,177,8],[182,10,177,12,"startNow"],[182,18,177,20],[182,22,177,24],[182,26,177,28],[182,27,177,29],[182,28,177,30,"currentHealthTimeout"],[182,48,177,50],[182,50,177,52],[183,8,178,12,"clearTimeout"],[183,20,178,24],[183,21,178,25],[183,25,178,29],[183,26,178,30],[183,27,178,31,"currentHealthTimeout"],[183,47,178,51],[183,48,178,52],[184,8,179,12],[184,12,179,16],[184,13,179,17],[184,14,179,18,"currentHealthTimeout"],[184,34,179,38],[184,37,179,41],[184,41,179,45],[185,6,180,8],[186,6,181,8],[186,10,181,12],[186,11,181,13],[186,15,181,17],[186,16,181,18],[186,17,181,19,"currentHealthTimeout"],[186,37,181,39],[186,39,181,41],[187,8,182,12],[187,14,182,18,"startHealthRequest"],[187,32,182,36],[187,35,182,39,"startHealthRequest"],[187,36,182,39],[187,41,182,45],[188,10,183,16],[188,14,183,20],[188,15,183,21],[188,16,183,22,"currentHealthTimeout"],[188,36,183,42],[188,39,183,45],[188,43,183,49],[189,10,184,16],[190,10,185,16],[191,10,186,16],[191,14,186,20],[191,18,186,24],[191,19,186,25],[191,20,186,26,"currentHealthCheckId"],[191,40,186,46],[191,42,186,48],[192,12,187,20],[193,10,188,16],[194,10,189,16],[195,10,190,16],[195,14,190,20],[195,15,190,21],[195,16,190,22,"currentHealthCheckId"],[195,36,190,42],[195,39,190,45],[195,57,190,63],[195,61,190,67],[195,62,190,68],[195,63,190,69,"nextRequestId"],[195,76,190,82],[195,78,190,84],[196,10,191,16],[196,14,191,20],[196,15,191,21],[196,16,191,22,"nextRequestId"],[196,29,191,35],[196,33,191,39],[196,34,191,40],[197,10,192,16],[197,14,192,20],[197,15,192,21],[197,16,192,22,"requestToSmoldot"],[197,32,192,38],[197,33,192,39],[198,12,193,20,"id"],[198,14,193,22],[198,16,193,24],[198,20,193,28],[198,21,193,29],[198,22,193,30,"currentHealthCheckId"],[198,42,193,50],[199,12,194,20,"jsonrpc"],[199,19,194,27],[199,21,194,29],[199,26,194,34],[200,12,195,20,"method"],[200,18,195,26],[200,20,195,28],[200,35,195,43],[201,12,196,20,"params"],[201,18,196,26],[201,20,196,28],[202,10,197,16],[202,11,197,17],[202,12,197,18],[203,8,198,12],[203,9,198,13],[204,8,199,12],[204,12,199,16,"startNow"],[204,20,199,24],[204,22,199,26],[205,10,200,16,"startHealthRequest"],[205,28,200,34],[205,29,200,35],[205,30,200,36],[206,8,201,12],[206,9,201,13],[206,15,202,17],[207,10,203,16],[207,14,203,20],[207,15,203,21],[207,16,203,22,"currentHealthTimeout"],[207,36,203,42],[207,39,203,45,"setTimeout"],[207,49,203,55],[207,50,203,56,"startHealthRequest"],[207,68,203,74],[207,70,203,76],[207,74,203,80],[207,75,203,81],[208,8,204,12],[209,6,205,8],[210,6,206,8],[210,10,206,12],[210,14,206,16],[210,15,206,17],[210,16,206,18,"isSyncing"],[210,25,206,27],[210,29,207,12],[210,30,207,13],[210,34,207,17],[210,35,207,18],[210,36,207,19,"currentSubscriptionId"],[210,57,207,40],[210,61,208,12],[210,62,208,13],[210,66,208,17],[210,67,208,18],[210,68,208,19,"currentSubunsubRequestId"],[210,92,208,43],[210,94,208,45],[211,8,209,12],[211,12,209,16],[211,13,209,17,"startSubscription"],[211,30,209,34],[211,31,209,35],[211,32,209,36],[212,6,210,8],[213,6,211,8],[213,10,211,12],[213,11,211,13],[213,15,211,17],[213,16,211,18],[213,17,211,19,"isSyncing"],[213,26,211,28],[213,30,212,12],[213,34,212,16],[213,35,212,17],[213,36,212,18,"currentSubscriptionId"],[213,57,212,39],[213,61,213,12],[213,62,213,13],[213,66,213,17],[213,67,213,18],[213,68,213,19,"currentSubunsubRequestId"],[213,92,213,43],[213,94,213,45],[214,8,214,12],[214,12,214,16],[214,13,214,17,"endSubscription"],[214,28,214,32],[214,29,214,33],[214,30,214,34],[215,6,215,8],[216,4,216,4],[216,5,216,5],[217,4,217,4,"startSubscription"],[217,21,217,21],[217,24,217,24,"startSubscription"],[217,25,217,24],[217,30,217,30],[218,6,218,8],[218,10,218,12],[218,14,218,16],[218,15,218,17],[218,16,218,18,"currentSubunsubRequestId"],[218,40,218,42],[218,44,218,46],[218,48,218,50],[218,49,218,51],[218,50,218,52,"currentSubscriptionId"],[218,71,218,73],[218,73,218,75],[219,8,219,12],[219,14,219,18],[219,18,219,22,"Error"],[219,23,219,27],[219,24,219,28],[219,58,219,62],[219,59,219,63],[220,6,220,8],[221,6,221,8],[221,10,221,12],[221,11,221,13],[221,12,221,14,"currentSubunsubRequestId"],[221,36,221,38],[221,39,221,41],[221,57,221,59],[221,61,221,63],[221,62,221,64],[221,63,221,65,"nextRequestId"],[221,76,221,78],[221,78,221,80],[222,6,222,8],[222,10,222,12],[222,11,222,13],[222,12,222,14,"nextRequestId"],[222,25,222,27],[222,29,222,31],[222,30,222,32],[223,6,223,8],[223,10,223,12],[223,11,223,13],[223,12,223,14,"requestToSmoldot"],[223,28,223,30],[223,29,223,31],[224,8,224,12,"id"],[224,10,224,14],[224,12,224,16],[224,16,224,20],[224,17,224,21],[224,18,224,22,"currentSubunsubRequestId"],[224,42,224,46],[225,8,225,12,"jsonrpc"],[225,15,225,19],[225,17,225,21],[225,22,225,26],[226,8,226,12,"method"],[226,14,226,18],[226,16,226,20],[226,41,226,45],[227,8,227,12,"params"],[227,14,227,18],[227,16,227,20],[228,6,228,8],[228,7,228,9],[228,8,228,10],[229,4,229,4],[229,5,229,5],[230,4,230,4,"endSubscription"],[230,19,230,19],[230,22,230,22,"endSubscription"],[230,23,230,22],[230,28,230,28],[231,6,231,8],[231,10,231,12],[231,14,231,16],[231,15,231,17],[231,16,231,18,"currentSubunsubRequestId"],[231,40,231,42],[231,44,231,46],[231,45,231,47],[231,49,231,51],[231,50,231,52],[231,51,231,53,"currentSubscriptionId"],[231,72,231,74],[231,74,231,76],[232,8,232,12],[232,14,232,18],[232,18,232,22,"Error"],[232,23,232,27],[232,24,232,28],[232,58,232,62],[232,59,232,63],[233,6,233,8],[234,6,234,8],[234,10,234,12],[234,11,234,13],[234,12,234,14,"currentSubunsubRequestId"],[234,36,234,38],[234,39,234,41],[234,57,234,59],[234,61,234,63],[234,62,234,64],[234,63,234,65,"nextRequestId"],[234,76,234,78],[234,78,234,80],[235,6,235,8],[235,10,235,12],[235,11,235,13],[235,12,235,14,"nextRequestId"],[235,25,235,27],[235,29,235,31],[235,30,235,32],[236,6,236,8],[236,10,236,12],[236,11,236,13],[236,12,236,14,"requestToSmoldot"],[236,28,236,30],[236,29,236,31],[237,8,237,12,"id"],[237,10,237,14],[237,12,237,16],[237,16,237,20],[237,17,237,21],[237,18,237,22,"currentSubunsubRequestId"],[237,42,237,46],[238,8,238,12,"jsonrpc"],[238,15,238,19],[238,17,238,21],[238,22,238,26],[239,8,239,12,"method"],[239,14,239,18],[239,16,239,20],[239,43,239,47],[240,8,240,12,"params"],[240,14,240,18],[240,16,240,20],[240,17,240,21],[240,21,240,25],[240,22,240,26],[240,23,240,27,"currentSubscriptionId"],[240,44,240,48],[241,6,241,8],[241,7,241,9],[241,8,241,10],[242,4,242,4],[242,5,242,5],[243,4,243,4,"destroy"],[243,11,243,11],[243,14,243,14,"destroy"],[243,15,243,14],[243,20,243,20],[244,6,244,8],[244,10,244,12],[244,14,244,16],[244,15,244,17],[244,16,244,18,"currentHealthTimeout"],[244,36,244,38],[244,38,244,40],[245,8,245,12,"clearTimeout"],[245,20,245,24],[245,21,245,25],[245,25,245,29],[245,26,245,30],[245,27,245,31,"currentHealthTimeout"],[245,47,245,51],[245,48,245,52],[246,8,246,12],[246,12,246,16],[246,13,246,17],[246,14,246,18,"currentHealthTimeout"],[246,34,246,38],[246,37,246,41],[246,41,246,45],[247,6,247,8],[248,4,248,4],[248,5,248,5],[249,2,249,0],[250,2,250,7],[250,8,250,13,"HealthCheckError"],[250,24,250,29],[250,33,250,38,"Error"],[250,38,250,43],[250,39,250,44],[251,4,251,4],[251,5,251,5,"cause"],[251,10,251,10],[252,4,252,4,"getCause"],[252,12,252,12,"getCause"],[252,13,252,12],[252,15,252,15],[253,6,253,8],[253,13,253,15],[253,17,253,19],[253,18,253,20],[253,19,253,21,"cause"],[253,24,253,26],[254,4,254,4],[255,4,255,4,"constructor"],[255,15,255,15,"constructor"],[255,16,255,16,"response"],[255,24,255,24],[255,26,255,26,"message"],[255,33,255,33],[255,36,255,36],[255,81,255,81],[255,83,255,83],[256,6,256,8],[256,11,256,13],[256,12,256,14,"message"],[256,19,256,21],[256,20,256,22],[257,6,257,8],[257,10,257,12],[257,11,257,13],[257,12,257,14,"cause"],[257,17,257,19],[257,20,257,22,"response"],[257,28,257,30],[258,4,258,4],[259,2,259,0],[260,0,259,1],[260,3]],"functionMap":{"names":["<global>","healthChecker","responsePassThrough","sendJsonRpc","setSendJsonRpc","start","stop","InnerChecker","InnerChecker#constructor","<anonymous>","InnerChecker#sendJsonRpc","InnerChecker#responsePassThrough","InnerChecker#update","startHealthRequest","InnerChecker#startSubscription","InnerChecker#endSubscription","InnerChecker#destroy","HealthCheckError","HealthCheckError#getCause","HealthCheckError#constructor"],"mappings":"AAA;OCiC;6BCK;SDK;qBEC;SFU;wBGC;SHE;eIC;SJS;cKC;SLM;CDE;AOC;ICS;iCCE,iDD;KDC;kBGC;KHc;0BIC;KJoE;aKC;uCCO;aDgB;KLkB;wBOC;KPY;sBQC;KRY;cSC;KTK;CPC;OiBC;ICE;KDE;IEC;KFG;CjBC"},"hasCjsExports":false},"type":"js/module"}]}