mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 13:31:00 +00:00
1 line
12 KiB
Plaintext
1 line
12 KiB
Plaintext
{"dependencies":[{"name":"rxjs","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":88,"index":88}}],"key":"PnOMrhZAPWoeW3ygrvUJ7ff768Y=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":89},"end":{"line":2,"column":68,"index":157}}],"key":"ISHU1ovvPMrCldqRjtd1JhW9dyo=","exportNames":["*"],"imports":1}},{"name":"../util/index.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":3,"column":0,"index":158},"end":{"line":3,"column":40,"index":198}}],"key":"GRJlO1cmIj14nBxcasNpiq30og4=","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.filterEras = filterEras;\n exports.erasHistoricApply = erasHistoricApply;\n exports.erasHistoricApplyAccount = erasHistoricApplyAccount;\n exports.singleEra = singleEra;\n exports.combineEras = combineEras;\n var _rxjs = require(_dependencyMap[0], \"rxjs\");\n var _polkadotUtil = require(_dependencyMap[1], \"@polkadot/util\");\n var _utilIndexJs = require(_dependencyMap[2], \"../util/index.js\");\n const ERA_CHUNK_SIZE = 14;\n function chunkEras(eras, fn) {\n const chunked = (0, _polkadotUtil.arrayChunk)(eras, ERA_CHUNK_SIZE);\n let index = 0;\n const subject = new _rxjs.BehaviorSubject(chunked[index]);\n return subject.pipe((0, _rxjs.switchMap)(fn), (0, _rxjs.tap)(() => {\n (0, _polkadotUtil.nextTick)(() => {\n index++;\n index === chunked.length ? subject.complete() : subject.next(chunked[index]);\n });\n }), (0, _rxjs.toArray)(), (0, _rxjs.map)(_polkadotUtil.arrayFlatten));\n }\n function filterEras(eras, list) {\n return eras.filter(e => !list.some(({\n era\n }) => e.eq(era)));\n }\n function erasHistoricApply(fn) {\n return (instanceId, api) =>\n // Cannot quite get the typing right, but it is right in the code\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n (0, _utilIndexJs.memo)(instanceId, (withActive = false) => api.derive.staking.erasHistoric(withActive).pipe((0, _rxjs.switchMap)(e => api.derive.staking[fn](e, withActive))));\n }\n function erasHistoricApplyAccount(fn) {\n return (instanceId, api) =>\n // Cannot quite get the typing right, but it is right in the code\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n (0, _utilIndexJs.memo)(instanceId, (accountId, withActive = false, page) => api.derive.staking.erasHistoric(withActive).pipe((0, _rxjs.switchMap)(e => api.derive.staking[fn](accountId, e, withActive, page || 0))));\n }\n function singleEra(fn) {\n return (instanceId, api) =>\n // Cannot quite get the typing right, but it is right in the code\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n (0, _utilIndexJs.memo)(instanceId, era => api.derive.staking[fn](era, true));\n }\n function combineEras(fn) {\n return (instanceId, api) =>\n // Cannot quite get the typing right, but it is right in the code\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n (0, _utilIndexJs.memo)(instanceId, (eras, withActive) => !eras.length ? (0, _rxjs.of)([]) : chunkEras(eras, eras => (0, _rxjs.combineLatest)(eras.map(e => api.derive.staking[fn](e, withActive)))));\n }\n});","lineCount":56,"map":[[7,2,18,0,"exports"],[7,9,18,0],[7,10,18,0,"filterEras"],[7,20,18,0],[7,23,18,0,"filterEras"],[7,33,18,0],[8,2,21,0,"exports"],[8,9,21,0],[8,10,21,0,"erasHistoricApply"],[8,27,21,0],[8,30,21,0,"erasHistoricApply"],[8,47,21,0],[9,2,27,0,"exports"],[9,9,27,0],[9,10,27,0,"erasHistoricApplyAccount"],[9,34,27,0],[9,37,27,0,"erasHistoricApplyAccount"],[9,61,27,0],[10,2,33,0,"exports"],[10,9,33,0],[10,10,33,0,"singleEra"],[10,19,33,0],[10,22,33,0,"singleEra"],[10,31,33,0],[11,2,39,0,"exports"],[11,9,39,0],[11,10,39,0,"combineEras"],[11,21,39,0],[11,24,39,0,"combineEras"],[11,35,39,0],[12,2,1,0],[12,6,1,0,"_rxjs"],[12,11,1,0],[12,14,1,0,"require"],[12,21,1,0],[12,22,1,0,"_dependencyMap"],[12,36,1,0],[13,2,2,0],[13,6,2,0,"_polkadotUtil"],[13,19,2,0],[13,22,2,0,"require"],[13,29,2,0],[13,30,2,0,"_dependencyMap"],[13,44,2,0],[14,2,3,0],[14,6,3,0,"_utilIndexJs"],[14,18,3,0],[14,21,3,0,"require"],[14,28,3,0],[14,29,3,0,"_dependencyMap"],[14,43,3,0],[15,2,4,0],[15,8,4,6,"ERA_CHUNK_SIZE"],[15,22,4,20],[15,25,4,23],[15,27,4,25],[16,2,5,0],[16,11,5,9,"chunkEras"],[16,20,5,18,"chunkEras"],[16,21,5,19,"eras"],[16,25,5,23],[16,27,5,25,"fn"],[16,29,5,27],[16,31,5,29],[17,4,6,4],[17,10,6,10,"chunked"],[17,17,6,17],[17,20,6,20],[17,24,6,20,"arrayChunk"],[17,37,6,30],[17,38,6,30,"arrayChunk"],[17,48,6,30],[17,50,6,31,"eras"],[17,54,6,35],[17,56,6,37,"ERA_CHUNK_SIZE"],[17,70,6,51],[17,71,6,52],[18,4,7,4],[18,8,7,8,"index"],[18,13,7,13],[18,16,7,16],[18,17,7,17],[19,4,8,4],[19,10,8,10,"subject"],[19,17,8,17],[19,20,8,20],[19,24,8,24,"BehaviorSubject"],[19,29,8,39],[19,30,8,39,"BehaviorSubject"],[19,45,8,39],[19,46,8,40,"chunked"],[19,53,8,47],[19,54,8,48,"index"],[19,59,8,53],[19,60,8,54],[19,61,8,55],[20,4,9,4],[20,11,9,11,"subject"],[20,18,9,18],[20,19,9,19,"pipe"],[20,23,9,23],[20,24,9,24],[20,28,9,24,"switchMap"],[20,33,9,33],[20,34,9,33,"switchMap"],[20,43,9,33],[20,45,9,34,"fn"],[20,47,9,36],[20,48,9,37],[20,50,9,39],[20,54,9,39,"tap"],[20,59,9,42],[20,60,9,42,"tap"],[20,63,9,42],[20,65,9,43],[20,71,9,49],[21,6,10,8],[21,10,10,8,"nextTick"],[21,23,10,16],[21,24,10,16,"nextTick"],[21,32,10,16],[21,34,10,17],[21,40,10,23],[22,8,11,12,"index"],[22,13,11,17],[22,15,11,19],[23,8,12,12,"index"],[23,13,12,17],[23,18,12,22,"chunked"],[23,25,12,29],[23,26,12,30,"length"],[23,32,12,36],[23,35,13,18,"subject"],[23,42,13,25],[23,43,13,26,"complete"],[23,51,13,34],[23,52,13,35],[23,53,13,36],[23,56,14,18,"subject"],[23,63,14,25],[23,64,14,26,"next"],[23,68,14,30],[23,69,14,31,"chunked"],[23,76,14,38],[23,77,14,39,"index"],[23,82,14,44],[23,83,14,45],[23,84,14,46],[24,6,15,8],[24,7,15,9],[24,8,15,10],[25,4,16,4],[25,5,16,5],[25,6,16,6],[25,8,16,8],[25,12,16,8,"toArray"],[25,17,16,15],[25,18,16,15,"toArray"],[25,25,16,15],[25,27,16,16],[25,28,16,17],[25,30,16,19],[25,34,16,19,"map"],[25,39,16,22],[25,40,16,22,"map"],[25,43,16,22],[25,45,16,23,"arrayFlatten"],[25,58,16,35],[25,59,16,35,"arrayFlatten"],[25,71,16,35],[25,72,16,36],[25,73,16,37],[26,2,17,0],[27,2,18,7],[27,11,18,16,"filterEras"],[27,21,18,26,"filterEras"],[27,22,18,27,"eras"],[27,26,18,31],[27,28,18,33,"list"],[27,32,18,37],[27,34,18,39],[28,4,19,4],[28,11,19,11,"eras"],[28,15,19,15],[28,16,19,16,"filter"],[28,22,19,22],[28,23,19,24,"e"],[28,24,19,25],[28,28,19,30],[28,29,19,31,"list"],[28,33,19,35],[28,34,19,36,"some"],[28,38,19,40],[28,39,19,41],[28,40,19,42],[29,6,19,44,"era"],[30,4,19,48],[30,5,19,49],[30,10,19,54,"e"],[30,11,19,55],[30,12,19,56,"eq"],[30,14,19,58],[30,15,19,59,"era"],[30,18,19,62],[30,19,19,63],[30,20,19,64],[30,21,19,65],[31,2,20,0],[32,2,21,7],[32,11,21,16,"erasHistoricApply"],[32,28,21,33,"erasHistoricApply"],[32,29,21,34,"fn"],[32,31,21,36],[32,33,21,38],[33,4,22,4],[33,11,22,11],[33,12,22,12,"instanceId"],[33,22,22,22],[33,24,22,24,"api"],[33,27,22,27],[34,4,23,4],[35,4,24,4],[36,4,25,4],[36,8,25,4,"memo"],[36,20,25,8],[36,21,25,8,"memo"],[36,25,25,8],[36,27,25,9,"instanceId"],[36,37,25,19],[36,39,25,21],[36,40,25,22,"withActive"],[36,50,25,32],[36,53,25,35],[36,58,25,40],[36,63,25,45,"api"],[36,66,25,48],[36,67,25,49,"derive"],[36,73,25,55],[36,74,25,56,"staking"],[36,81,25,63],[36,82,25,64,"erasHistoric"],[36,94,25,76],[36,95,25,77,"withActive"],[36,105,25,87],[36,106,25,88],[36,107,25,89,"pipe"],[36,111,25,93],[36,112,25,94],[36,116,25,94,"switchMap"],[36,121,25,103],[36,122,25,103,"switchMap"],[36,131,25,103],[36,133,25,105,"e"],[36,134,25,106],[36,138,25,111,"api"],[36,141,25,114],[36,142,25,115,"derive"],[36,148,25,121],[36,149,25,122,"staking"],[36,156,25,129],[36,157,25,130,"fn"],[36,159,25,132],[36,160,25,133],[36,161,25,134,"e"],[36,162,25,135],[36,164,25,137,"withActive"],[36,174,25,147],[36,175,25,148],[36,176,25,149],[36,177,25,150],[36,178,25,151],[37,2,26,0],[38,2,27,7],[38,11,27,16,"erasHistoricApplyAccount"],[38,35,27,40,"erasHistoricApplyAccount"],[38,36,27,41,"fn"],[38,38,27,43],[38,40,27,45],[39,4,28,4],[39,11,28,11],[39,12,28,12,"instanceId"],[39,22,28,22],[39,24,28,24,"api"],[39,27,28,27],[40,4,29,4],[41,4,30,4],[42,4,31,4],[42,8,31,4,"memo"],[42,20,31,8],[42,21,31,8,"memo"],[42,25,31,8],[42,27,31,9,"instanceId"],[42,37,31,19],[42,39,31,21],[42,40,31,22,"accountId"],[42,49,31,31],[42,51,31,33,"withActive"],[42,61,31,43],[42,64,31,46],[42,69,31,51],[42,71,31,53,"page"],[42,75,31,57],[42,80,31,62,"api"],[42,83,31,65],[42,84,31,66,"derive"],[42,90,31,72],[42,91,31,73,"staking"],[42,98,31,80],[42,99,31,81,"erasHistoric"],[42,111,31,93],[42,112,31,94,"withActive"],[42,122,31,104],[42,123,31,105],[42,124,31,106,"pipe"],[42,128,31,110],[42,129,31,111],[42,133,31,111,"switchMap"],[42,138,31,120],[42,139,31,120,"switchMap"],[42,148,31,120],[42,150,31,122,"e"],[42,151,31,123],[42,155,31,128,"api"],[42,158,31,131],[42,159,31,132,"derive"],[42,165,31,138],[42,166,31,139,"staking"],[42,173,31,146],[42,174,31,147,"fn"],[42,176,31,149],[42,177,31,150],[42,178,31,151,"accountId"],[42,187,31,160],[42,189,31,162,"e"],[42,190,31,163],[42,192,31,165,"withActive"],[42,202,31,175],[42,204,31,177,"page"],[42,208,31,181],[42,212,31,185],[42,213,31,186],[42,214,31,187],[42,215,31,188],[42,216,31,189],[42,217,31,190],[43,2,32,0],[44,2,33,7],[44,11,33,16,"singleEra"],[44,20,33,25,"singleEra"],[44,21,33,26,"fn"],[44,23,33,28],[44,25,33,30],[45,4,34,4],[45,11,34,11],[45,12,34,12,"instanceId"],[45,22,34,22],[45,24,34,24,"api"],[45,27,34,27],[46,4,35,4],[47,4,36,4],[48,4,37,4],[48,8,37,4,"memo"],[48,20,37,8],[48,21,37,8,"memo"],[48,25,37,8],[48,27,37,9,"instanceId"],[48,37,37,19],[48,39,37,22,"era"],[48,42,37,25],[48,46,37,30,"api"],[48,49,37,33],[48,50,37,34,"derive"],[48,56,37,40],[48,57,37,41,"staking"],[48,64,37,48],[48,65,37,49,"fn"],[48,67,37,51],[48,68,37,52],[48,69,37,53,"era"],[48,72,37,56],[48,74,37,58],[48,78,37,62],[48,79,37,63],[48,80,37,64],[49,2,38,0],[50,2,39,7],[50,11,39,16,"combineEras"],[50,22,39,27,"combineEras"],[50,23,39,28,"fn"],[50,25,39,30],[50,27,39,32],[51,4,40,4],[51,11,40,11],[51,12,40,12,"instanceId"],[51,22,40,22],[51,24,40,24,"api"],[51,27,40,27],[52,4,41,4],[53,4,42,4],[54,4,43,4],[54,8,43,4,"memo"],[54,20,43,8],[54,21,43,8,"memo"],[54,25,43,8],[54,27,43,9,"instanceId"],[54,37,43,19],[54,39,43,21],[54,40,43,22,"eras"],[54,44,43,26],[54,46,43,28,"withActive"],[54,56,43,38],[54,61,43,43],[54,62,43,44,"eras"],[54,66,43,48],[54,67,43,49,"length"],[54,73,43,55],[54,76,44,10],[54,80,44,10,"of"],[54,85,44,12],[54,86,44,12,"of"],[54,88,44,12],[54,90,44,13],[54,92,44,15],[54,93,44,16],[54,96,45,10,"chunkEras"],[54,105,45,19],[54,106,45,20,"eras"],[54,110,45,24],[54,112,45,27,"eras"],[54,116,45,31],[54,120,45,36],[54,124,45,36,"combineLatest"],[54,129,45,49],[54,130,45,49,"combineLatest"],[54,143,45,49],[54,145,45,50,"eras"],[54,149,45,54],[54,150,45,55,"map"],[54,153,45,58],[54,154,45,60,"e"],[54,155,45,61],[54,159,45,66,"api"],[54,162,45,69],[54,163,45,70,"derive"],[54,169,45,76],[54,170,45,77,"staking"],[54,177,45,84],[54,178,45,85,"fn"],[54,180,45,87],[54,181,45,88],[54,182,45,89,"e"],[54,183,45,90],[54,185,45,92,"withActive"],[54,195,45,102],[54,196,45,103],[54,197,45,104],[54,198,45,105],[54,199,45,106],[54,200,45,107],[55,2,46,0],[56,0,46,1],[56,3]],"functionMap":{"names":["<global>","chunkEras","tap$argument_0","nextTick$argument_0","filterEras","eras.filter$argument_0","list.some$argument_0","erasHistoricApply","<anonymous>","memo$argument_1","switchMap$argument_0","erasHistoricApplyAccount","singleEra","combineEras","chunkEras$argument_1","eras.map$argument_0"],"mappings":"AAA;ACI;2CCI;iBCC;SDK;KDC;CDC;OIC;uBCC,kBC,sBD,CD;CJC;OOC;WCC;qBCG,mFC,4CD,ED,CD;CPC;OWC;WHC;qBCG,oGC,kED,ED,CG;CXC;OYC;WJC;qBCG,0CD,CI;CZC;OaC;WLC;qBCG;0BKE,iCC,4CD,EL,CD,CK;CbC"},"hasCjsExports":false},"type":"js/module"}]} |