Files
pezkuwi-mobile-app/frontend/.metro-cache/cache/d9/8900ec118ca3657d515cef7c9d29a3c06778646dfda13337ab51f056bb4306c65cb9e2
T
2025-11-08 10:07:13 +00:00

1 line
17 KiB
Plaintext

{"dependencies":[{"name":"@babel/runtime/helpers/classCallCheck","data":{"asyncType":null,"isESMImport":false,"locs":[],"key":"yg7e6laZwmpbIvId5jovq9ugXp8=","exportNames":["*"],"imports":1}},{"name":"@babel/runtime/helpers/createClass","data":{"asyncType":null,"isESMImport":false,"locs":[],"key":"Z6pzkVZ2fvxBLkFTgVVOy4UDj30=","exportNames":["*"],"imports":1}},{"name":"@babel/runtime/helpers/callSuper","data":{"asyncType":null,"isESMImport":false,"locs":[],"key":"378KbBHdmndC3iMXZ2Ix8oB3LeE=","exportNames":["*"],"imports":1}},{"name":"@babel/runtime/helpers/inherits","data":{"asyncType":null,"isESMImport":false,"locs":[],"key":"y0uNg4LxF1CLscQChxzgo5dfjvA=","exportNames":["*"],"imports":1}},{"name":"@babel/runtime/helpers/superPropGet","data":{"asyncType":null,"isESMImport":false,"locs":[],"key":"b4Lel0pEiTM8mvZZX/d05uR+OmU=","exportNames":["*"],"imports":1}},{"name":"@babel/runtime/helpers/classPrivateFieldLooseBase","data":{"asyncType":null,"isESMImport":false,"locs":[],"key":"jktBven9cFmiXr10q2uuMiBaNBg=","exportNames":["*"],"imports":1}},{"name":"@babel/runtime/helpers/classPrivateFieldLooseKey","data":{"asyncType":null,"isESMImport":false,"locs":[],"key":"YYsVumDWjUPySlBONhl8so2wff4=","exportNames":["*"],"imports":1}},{"name":"rxjs","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":15,"index":116},"end":{"line":4,"column":30,"index":131}}],"key":"atDzfUGaJNRNtwyVumomzH/5ygw=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":15,"index":148},"end":{"line":5,"column":40,"index":173}}],"key":"u0mzEw2nilnHoUWtEdZl0JKHutA=","exportNames":["*"],"imports":1}},{"name":"../base/index.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":6,"column":19,"index":194},"end":{"line":6,"column":46,"index":221}}],"key":"6LGhkk8t77NLLcuOWVqakFlZ26o=","exportNames":["*"],"imports":1}},{"name":"./decorateMethod.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":7,"column":28,"index":251},"end":{"line":7,"column":58,"index":281}}],"key":"UpHug+leW+HiuYrFQEdxS5jlXD8=","exportNames":["*"],"imports":1}}],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n\n var _classCallCheck = require(_dependencyMap[0], \"@babel/runtime/helpers/classCallCheck\").default;\n var _createClass = require(_dependencyMap[1], \"@babel/runtime/helpers/createClass\").default;\n var _callSuper = require(_dependencyMap[2], \"@babel/runtime/helpers/callSuper\").default;\n var _inherits = require(_dependencyMap[3], \"@babel/runtime/helpers/inherits\").default;\n var _superPropGet = require(_dependencyMap[4], \"@babel/runtime/helpers/superPropGet\").default;\n var _classPrivateFieldLooseBase = require(_dependencyMap[5], \"@babel/runtime/helpers/classPrivateFieldLooseBase\").default;\n var _classPrivateFieldLooseKey = require(_dependencyMap[6], \"@babel/runtime/helpers/classPrivateFieldLooseKey\").default;\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.ApiRx = void 0;\n var rxjs_1 = require(_dependencyMap[7], \"rxjs\");\n var util_1 = require(_dependencyMap[8], \"@polkadot/util\");\n var index_js_1 = require(_dependencyMap[9], \"../base/index.js\");\n var decorateMethod_js_1 = require(_dependencyMap[10], \"./decorateMethod.js\");\n /**\n * # @polkadot/api/rx\n *\n * ## Overview\n *\n * @name ApiRx\n *\n * @description\n * ApiRx is a powerful RxJS Observable wrapper around the RPC and interfaces on the Polkadot network. As a full Observable API, all interface calls return RxJS Observables, including the static `.create(...)`. In the same fashion and subscription-based methods return long-running Observables that update with the latest values.\n *\n * The API is well suited to real-time applications where the latest state is needed, unlocking the subscription-based features of Polkadot (and Substrate) clients. Some familiarity with RxJS is a requirement to use the API, however just understanding `.subscribe` and `.pipe` on Observables will unlock full-scale use thereof.\n *\n * @see [[ApiPromise]]\n *\n * ## Usage\n *\n * Making rpc calls -\n * <BR>\n *\n * ```javascript\n * import ApiRx from '@polkadot/api/rx';\n *\n * // initialize via Promise & static create\n * const api = await ApiRx.create().toPromise();\n *\n * // make a call to retrieve the current network head\n * api.rpc.chain.subscribeNewHeads().subscribe((header) => {\n * console.log(`Chain is at #${header.number}`);\n * });\n * ```\n * <BR>\n *\n * Subscribing to chain state -\n * <BR>\n *\n * ```javascript\n * import { combineLatest, pairwise, switchMap } from 'rxjs';\n * import { ApiRx, WsProvider } from '@polkadot/api';\n *\n *\n * // initialize a provider with a specific endpoint\n * const provider = new WsProvider('wss://example.com:9944')\n *\n * // initialize via isReady & new with specific provider\n * new ApiRx({ provider })\n * .isReady\n * .pipe(\n * switchMap((api) =>\n * combineLatest([\n * api.query.timestamp.blockPeriod(),\n * api.query.timestamp.now().pipe(pairwise())\n * ])\n * )\n * )\n * .subscribe(([blockPeriod, timestamp]) => {\n * const elapsed = timestamp[1].toNumber() - timestamp[0].toNumber();\n * console.log(`timestamp ${timestamp[1]} \\nelapsed ${elapsed} \\n(${blockPeriod}s target)`);\n * });\n * ```\n * <BR>\n *\n * Submitting a transaction -\n * <BR>\n *\n * ```javascript\n * import { first, switchMap } from 'rxjs';\n * import ApiRx from '@polkadot/api/rx';\n *\n * // import the test keyring (already has dev keys for Alice, Bob, Charlie, Eve & Ferdie)\n * import testingPairs from '@polkadot/keyring/testingPairs';\n * const keyring = testingPairs();\n *\n * // get api via Promise\n * const api = await ApiRx.create().toPromise();\n *\n * // retrieve nonce for the account\n * api.query.system\n * .account(keyring.alice.address)\n * .pipe(\n * first(),\n * // pipe nonce into transfer\n * switchMap(([nonce]) =>\n * api.tx.balances\n * // create transfer\n * .transferAllowDeath(keyring.bob.address, 12345)\n * // sign the transaction\n * .sign(keyring.alice, { nonce })\n * // send the transaction\n * .send()\n * )\n * )\n * // subscribe to overall result\n * .subscribe(({ status }) => {\n * if (status.isInBlock) {\n * console.log('Completed at block hash', status.asFinalized.toHex());\n * }\n * });\n * ```\n */\n var _isReadyRx = /*#__PURE__*/_classPrivateFieldLooseKey(\"isReadyRx\");\n var ApiRx = /*#__PURE__*/function (_index_js_1$ApiBase) {\n /**\n * @description Create an instance of the ApiRx class\n * @param options Options to create an instance. Can be either [[ApiOptions]] or [[WsProvider]]\n * @example\n * <BR>\n *\n * ```javascript\n * import { switchMap } from 'rxjs';\n * import Api from '@polkadot/api/rx';\n *\n * new Api().isReady\n * .pipe(\n * switchMap((api) =>\n * api.rpc.chain.subscribeNewHeads()\n * ))\n * .subscribe((header) => {\n * console.log(`new block #${header.number.toNumber()}`);\n * });\n * ```\n */\n function ApiRx(options) {\n var _this;\n _classCallCheck(this, ApiRx);\n _this = _callSuper(this, ApiRx, [options, 'rxjs', decorateMethod_js_1.toRxMethod]);\n Object.defineProperty(_this, _isReadyRx, {\n writable: true,\n value: void 0\n });\n _classPrivateFieldLooseBase(_this, _isReadyRx)[_isReadyRx] = (0, rxjs_1.from)(\n // You can create an observable from an event, however my mind groks this form better\n new Promise(function (resolve) {\n _superPropGet((_this, ApiRx), \"on\", _this, 3)(['ready', function () {\n return resolve(_this);\n }]);\n }));\n return _this;\n }\n /**\n * @description Creates an ApiRx instance using the supplied provider. Returns an Observable containing the actual Api instance.\n * @param options options that is passed to the class constructor. Can be either [[ApiOptions]] or [[WsProvider]]\n * @example\n * <BR>\n *\n * ```javascript\n * import { switchMap } from 'rxjs';\n * import Api from '@polkadot/api/rx';\n *\n * Api.create()\n * .pipe(\n * switchMap((api) =>\n * api.rpc.chain.subscribeNewHeads()\n * ))\n * .subscribe((header) => {\n * console.log(`new block #${header.number.toNumber()}`);\n * });\n * ```\n */\n _inherits(ApiRx, _index_js_1$ApiBase);\n return _createClass(ApiRx, [{\n key: \"isReady\",\n get:\n /**\n * @description Observable that returns the first time we are connected and loaded\n */\n function get() {\n return _classPrivateFieldLooseBase(this, _isReadyRx)[_isReadyRx];\n }\n /**\n * @description Returns a clone of this ApiRx instance (new underlying provider connection)\n */\n }, {\n key: \"clone\",\n value: function clone() {\n return new ApiRx((0, util_1.objectSpread)({}, this._options, {\n source: this\n }));\n }\n }], [{\n key: \"create\",\n value: function create(options) {\n return new ApiRx(options).isReady;\n }\n }]);\n }(index_js_1.ApiBase);\n exports.ApiRx = ApiRx;\n});","lineCount":205,"map":[[2,2,1,0],[2,14,1,12],[4,2,1,13],[4,6,1,13,"_classCallCheck"],[4,21,1,13],[4,24,1,13,"require"],[4,31,1,13],[4,32,1,13,"_dependencyMap"],[4,46,1,13],[4,92,1,13,"default"],[4,99,1,13],[5,2,1,13],[5,6,1,13,"_createClass"],[5,18,1,13],[5,21,1,13,"require"],[5,28,1,13],[5,29,1,13,"_dependencyMap"],[5,43,1,13],[5,86,1,13,"default"],[5,93,1,13],[6,2,1,13],[6,6,1,13,"_callSuper"],[6,16,1,13],[6,19,1,13,"require"],[6,26,1,13],[6,27,1,13,"_dependencyMap"],[6,41,1,13],[6,82,1,13,"default"],[6,89,1,13],[7,2,1,13],[7,6,1,13,"_inherits"],[7,15,1,13],[7,18,1,13,"require"],[7,25,1,13],[7,26,1,13,"_dependencyMap"],[7,40,1,13],[7,80,1,13,"default"],[7,87,1,13],[8,2,1,13],[8,6,1,13,"_superPropGet"],[8,19,1,13],[8,22,1,13,"require"],[8,29,1,13],[8,30,1,13,"_dependencyMap"],[8,44,1,13],[8,88,1,13,"default"],[8,95,1,13],[9,2,1,13],[9,6,1,13,"_classPrivateFieldLooseBase"],[9,33,1,13],[9,36,1,13,"require"],[9,43,1,13],[9,44,1,13,"_dependencyMap"],[9,58,1,13],[9,116,1,13,"default"],[9,123,1,13],[10,2,1,13],[10,6,1,13,"_classPrivateFieldLooseKey"],[10,32,1,13],[10,35,1,13,"require"],[10,42,1,13],[10,43,1,13,"_dependencyMap"],[10,57,1,13],[10,114,1,13,"default"],[10,121,1,13],[11,2,2,0,"Object"],[11,8,2,6],[11,9,2,7,"defineProperty"],[11,23,2,21],[11,24,2,22,"exports"],[11,31,2,29],[11,33,2,31],[11,45,2,43],[11,47,2,45],[12,4,2,47,"value"],[12,9,2,52],[12,11,2,54],[13,2,2,59],[13,3,2,60],[13,4,2,61],[14,2,3,0,"exports"],[14,9,3,7],[14,10,3,8,"ApiRx"],[14,15,3,13],[14,18,3,16],[14,23,3,21],[14,24,3,22],[15,2,4,0],[15,6,4,6,"rxjs_1"],[15,12,4,12],[15,15,4,15,"require"],[15,22,4,22],[15,23,4,22,"_dependencyMap"],[15,37,4,22],[15,48,4,29],[15,49,4,30],[16,2,5,0],[16,6,5,6,"util_1"],[16,12,5,12],[16,15,5,15,"require"],[16,22,5,22],[16,23,5,22,"_dependencyMap"],[16,37,5,22],[16,58,5,39],[16,59,5,40],[17,2,6,0],[17,6,6,6,"index_js_1"],[17,16,6,16],[17,19,6,19,"require"],[17,26,6,26],[17,27,6,26,"_dependencyMap"],[17,41,6,26],[17,64,6,45],[17,65,6,46],[18,2,7,0],[18,6,7,6,"decorateMethod_js_1"],[18,25,7,25],[18,28,7,28,"require"],[18,35,7,35],[18,36,7,35,"_dependencyMap"],[18,50,7,35],[18,77,7,57],[18,78,7,58],[19,2,8,0],[20,0,9,0],[21,0,10,0],[22,0,11,0],[23,0,12,0],[24,0,13,0],[25,0,14,0],[26,0,15,0],[27,0,16,0],[28,0,17,0],[29,0,18,0],[30,0,19,0],[31,0,20,0],[32,0,21,0],[33,0,22,0],[34,0,23,0],[35,0,24,0],[36,0,25,0],[37,0,26,0],[38,0,27,0],[39,0,28,0],[40,0,29,0],[41,0,30,0],[42,0,31,0],[43,0,32,0],[44,0,33,0],[45,0,34,0],[46,0,35,0],[47,0,36,0],[48,0,37,0],[49,0,38,0],[50,0,39,0],[51,0,40,0],[52,0,41,0],[53,0,42,0],[54,0,43,0],[55,0,44,0],[56,0,45,0],[57,0,46,0],[58,0,47,0],[59,0,48,0],[60,0,49,0],[61,0,50,0],[62,0,51,0],[63,0,52,0],[64,0,53,0],[65,0,54,0],[66,0,55,0],[67,0,56,0],[68,0,57,0],[69,0,58,0],[70,0,59,0],[71,0,60,0],[72,0,61,0],[73,0,62,0],[74,0,63,0],[75,0,64,0],[76,0,65,0],[77,0,66,0],[78,0,67,0],[79,0,68,0],[80,0,69,0],[81,0,70,0],[82,0,71,0],[83,0,72,0],[84,0,73,0],[85,0,74,0],[86,0,75,0],[87,0,76,0],[88,0,77,0],[89,0,78,0],[90,0,79,0],[91,0,80,0],[92,0,81,0],[93,0,82,0],[94,0,83,0],[95,0,84,0],[96,0,85,0],[97,0,86,0],[98,0,87,0],[99,0,88,0],[100,0,89,0],[101,0,90,0],[102,0,91,0],[103,0,92,0],[104,0,93,0],[105,0,94,0],[106,0,95,0],[107,0,96,0],[108,0,97,0],[109,0,98,0],[110,0,99,0],[111,0,100,0],[112,0,101,0],[113,0,102,0],[114,0,103,0],[115,0,104,0],[116,0,105,0],[117,0,106,0],[118,2,8,0],[118,6,8,0,"_isReadyRx"],[118,16,8,0],[118,32,8,0,"_classPrivateFieldLooseKey"],[118,58,8,0],[119,2,8,0],[119,6,107,6,"ApiRx"],[119,11,107,11],[119,37,107,11,"_index_js_1$ApiBase"],[119,56,107,11],[120,4,109,4],[121,0,110,0],[122,0,111,0],[123,0,112,0],[124,0,113,0],[125,0,114,0],[126,0,115,0],[127,0,116,0],[128,0,117,0],[129,0,118,0],[130,0,119,0],[131,0,120,0],[132,0,121,0],[133,0,122,0],[134,0,123,0],[135,0,124,0],[136,0,125,0],[137,0,126,0],[138,0,127,0],[139,0,128,0],[140,4,129,4],[140,13,129,4,"ApiRx"],[140,19,129,16,"options"],[140,26,129,23],[140,28,129,25],[141,6,129,25],[141,10,129,25,"_this"],[141,15,129,25],[142,6,129,25,"_classCallCheck"],[142,21,129,25],[142,28,129,25,"ApiRx"],[142,33,129,25],[143,6,130,8,"_this"],[143,11,130,8],[143,14,130,8,"_callSuper"],[143,24,130,8],[143,31,130,8,"ApiRx"],[143,36,130,8],[143,39,130,14,"options"],[143,46,130,21],[143,48,130,23],[143,54,130,29],[143,56,130,31,"decorateMethod_js_1"],[143,75,130,50],[143,76,130,51,"toRxMethod"],[143,86,130,61],[144,6,130,63,"Object"],[144,12,130,63],[144,13,130,63,"defineProperty"],[144,27,130,63],[144,28,130,63,"_this"],[144,33,130,63],[144,35,130,63,"_isReadyRx"],[144,45,130,63],[145,8,130,63,"writable"],[145,16,130,63],[146,8,130,63,"value"],[146,13,130,63],[147,6,130,63],[148,6,131,8,"_classPrivateFieldLooseBase"],[148,33,131,8],[148,34,131,8,"_this"],[148,39,131,8],[148,41,131,8,"_isReadyRx"],[148,51,131,8],[148,53,131,8,"_isReadyRx"],[148,63,131,8],[148,67,131,26],[148,68,131,27],[148,69,131,28],[148,71,131,30,"rxjs_1"],[148,77,131,36],[148,78,131,37,"from"],[148,82,131,41],[149,6,132,8],[150,6,133,8],[150,10,133,12,"Promise"],[150,17,133,19],[150,18,133,20],[150,28,133,21,"resolve"],[150,35,133,28],[150,37,133,33],[151,8,134,12,"_superPropGet"],[151,21,134,12],[151,23,134,12,"_this"],[151,28,134,12],[151,30,134,12,"ApiRx"],[151,35,134,12],[151,44,134,12,"_this"],[151,49,134,12],[151,55,134,21],[151,62,134,28],[151,64,134,30],[152,10,134,30],[152,17,134,36,"resolve"],[152,24,134,43],[152,25,134,43,"_this"],[152,30,134,48],[152,31,134,49],[153,8,134,49],[154,6,135,8],[154,7,135,9],[154,8,135,10],[154,9,135,11],[155,6,135,12],[155,13,135,12,"_this"],[155,18,135,12],[156,4,136,4],[157,4,137,4],[158,0,138,0],[159,0,139,0],[160,0,140,0],[161,0,141,0],[162,0,142,0],[163,0,143,0],[164,0,144,0],[165,0,145,0],[166,0,146,0],[167,0,147,0],[168,0,148,0],[169,0,149,0],[170,0,150,0],[171,0,151,0],[172,0,152,0],[173,0,153,0],[174,0,154,0],[175,0,155,0],[176,0,156,0],[177,4,137,4,"_inherits"],[177,13,137,4],[177,14,137,4,"ApiRx"],[177,19,137,4],[177,21,137,4,"_index_js_1$ApiBase"],[177,40,137,4],[178,4,137,4],[178,11,137,4,"_createClass"],[178,23,137,4],[178,24,137,4,"ApiRx"],[178,29,137,4],[179,6,137,4,"key"],[179,9,137,4],[180,6,137,4,"get"],[180,9,137,4],[181,6,160,4],[182,0,161,0],[183,0,162,0],[184,6,163,4],[184,15,163,4,"get"],[184,19,163,4],[184,21,163,18],[185,8,164,8],[185,15,164,8,"_classPrivateFieldLooseBase"],[185,42,164,8],[185,43,164,15],[185,47,164,19],[185,49,164,19,"_isReadyRx"],[185,59,164,19],[185,61,164,19,"_isReadyRx"],[185,71,164,19],[186,6,165,4],[187,6,166,4],[188,0,167,0],[189,0,168,0],[190,4,166,4],[191,6,166,4,"key"],[191,9,166,4],[192,6,166,4,"value"],[192,11,166,4],[192,13,169,4],[192,22,169,4,"clone"],[192,27,169,9,"clone"],[192,28,169,9],[192,30,169,12],[193,8,170,8],[193,15,170,15],[193,19,170,19,"ApiRx"],[193,24,170,24],[193,25,170,25],[193,26,170,26],[193,27,170,27],[193,29,170,29,"util_1"],[193,35,170,35],[193,36,170,36,"objectSpread"],[193,48,170,48],[193,50,170,50],[193,51,170,51],[193,52,170,52],[193,54,170,54],[193,58,170,58],[193,59,170,59,"_options"],[193,67,170,67],[193,69,170,69],[194,10,170,71,"source"],[194,16,170,77],[194,18,170,79],[195,8,170,84],[195,9,170,85],[195,10,170,86],[195,11,170,87],[196,6,171,4],[197,4,171,5],[198,6,171,5,"key"],[198,9,171,5],[199,6,171,5,"value"],[199,11,171,5],[199,13,157,4],[199,22,157,11,"create"],[199,28,157,17,"create"],[199,29,157,18,"options"],[199,36,157,25],[199,38,157,27],[200,8,158,8],[200,15,158,15],[200,19,158,19,"ApiRx"],[200,24,158,24],[200,25,158,25,"options"],[200,32,158,32],[200,33,158,33],[200,34,158,34,"isReady"],[200,41,158,41],[201,6,159,4],[202,4,159,5],[203,2,159,5],[203,4,107,20,"index_js_1"],[203,14,107,30],[203,15,107,31,"ApiBase"],[203,22,107,38],[204,2,173,0,"exports"],[204,9,173,7],[204,10,173,8,"ApiRx"],[204,15,173,13],[204,18,173,16,"ApiRx"],[204,23,173,21],[205,0,173,22],[205,3]],"functionMap":{"names":["<global>","ApiRx","ApiRx#constructor","Promise$argument_0","on$argument_1","ApiRx.create","ApiRx#get__isReady","ApiRx#clone"],"mappings":"AAA;AC0G;ICsB;oBCI;8BCC,mBD;SDC;KDC;IIqB;KJE;IKI;KLE;IMI;KNE;CDC"},"hasCjsExports":true},"type":"js/module"}]}