mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 13:31:00 +00:00
1 line
16 KiB
Plaintext
1 line
16 KiB
Plaintext
{"dependencies":[{"name":"@babel/runtime/helpers/slicedToArray","data":{"asyncType":null,"isESMImport":false,"locs":[],"key":"5y7e5+zC7teYEEC6niD9f5zII1M=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":15,"index":131},"end":{"line":4,"column":40,"index":156}}],"key":"u0mzEw2nilnHoUWtEdZl0JKHutA=","exportNames":["*"],"imports":1}}],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n\n var _slicedToArray = require(_dependencyMap[0], \"@babel/runtime/helpers/slicedToArray\").default;\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.augmentObject = augmentObject;\n var util_1 = require(_dependencyMap[1], \"@polkadot/util\");\n var l = (0, util_1.logger)('api/augment');\n function logLength(type, values) {\n var and = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];\n return values.length ? ` ${values.length} ${type}${and.length ? ' and' : ''}` : '';\n }\n function logValues(type, values) {\n return values.length ? `\\n\\t${type.padStart(7)}: ${values.sort().join(', ')}` : '';\n }\n function warn(prefix, type, _ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n added = _ref2[0],\n removed = _ref2[1];\n if (added.length || removed.length) {\n l.warn(`api.${prefix}: Found${logLength('added', added, removed)}${logLength('removed', removed)} ${type}:${logValues('added', added)}${logValues('removed', removed)}`);\n }\n }\n function findSectionExcludes(a, b) {\n return a.filter(s => !b.includes(s));\n }\n function findSectionIncludes(a, b) {\n return a.filter(s => b.includes(s));\n }\n function extractSections(src, dst) {\n var srcSections = Object.keys(src);\n var dstSections = Object.keys(dst);\n return [findSectionExcludes(srcSections, dstSections), findSectionExcludes(dstSections, srcSections)];\n }\n function findMethodExcludes(src, dst) {\n var srcSections = Object.keys(src);\n var dstSections = findSectionIncludes(Object.keys(dst), srcSections);\n var excludes = [];\n for (var s = 0, scount = dstSections.length; s < scount; s++) {\n var section = dstSections[s];\n var srcMethods = Object.keys(src[section]);\n var dstMethods = Object.keys(dst[section]);\n for (var d = 0, mcount = dstMethods.length; d < mcount; d++) {\n var method = dstMethods[d];\n if (!srcMethods.includes(method)) {\n excludes.push(`${section}.${method}`);\n }\n }\n }\n return excludes;\n }\n function extractMethods(src, dst) {\n return [findMethodExcludes(dst, src), findMethodExcludes(src, dst)];\n }\n /**\n * @description Takes a decorated api section (e.g. api.tx) and augment it with the details. It does not override what is\n * already available, but rather just adds new missing items into the result object.\n * @internal\n */\n function augmentObject(prefix, src, dst) {\n var fromEmpty = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n fromEmpty && (0, util_1.objectClear)(dst);\n // NOTE: This part is slightly problematic since it will get the\n // values for at least all the sections and the names of the methods\n // (Since methods won't be decorated before lazy, this _may_ be ok)\n if (prefix && Object.keys(dst).length) {\n warn(prefix, 'modules', extractSections(src, dst));\n warn(prefix, 'calls', extractMethods(src, dst));\n }\n var sections = Object.keys(src);\n var _loop = function () {\n var section = sections[i];\n var methods = src[section];\n // We don't set here with a lazy interface, we decorate based\n // on the top-level structure (this bypasses adding lazy onto lazy)\n if (!dst[section]) {\n dst[section] = {};\n }\n (0, util_1.lazyMethods)(dst[section], Object.keys(methods), m => methods[m]);\n };\n for (var i = 0, count = sections.length; i < count; i++) {\n _loop();\n }\n return dst;\n }\n});","lineCount":88,"map":[[2,2,1,0],[2,14,1,12],[4,2,1,13],[4,6,1,13,"_slicedToArray"],[4,20,1,13],[4,23,1,13,"require"],[4,30,1,13],[4,31,1,13,"_dependencyMap"],[4,45,1,13],[4,90,1,13,"default"],[4,97,1,13],[5,2,2,0,"Object"],[5,8,2,6],[5,9,2,7,"defineProperty"],[5,23,2,21],[5,24,2,22,"exports"],[5,31,2,29],[5,33,2,31],[5,45,2,43],[5,47,2,45],[6,4,2,47,"value"],[6,9,2,52],[6,11,2,54],[7,2,2,59],[7,3,2,60],[7,4,2,61],[8,2,3,0,"exports"],[8,9,3,7],[8,10,3,8,"augmentObject"],[8,23,3,21],[8,26,3,24,"augmentObject"],[8,39,3,37],[9,2,4,0],[9,6,4,6,"util_1"],[9,12,4,12],[9,15,4,15,"require"],[9,22,4,22],[9,23,4,22,"_dependencyMap"],[9,37,4,22],[9,58,4,39],[9,59,4,40],[10,2,5,0],[10,6,5,6,"l"],[10,7,5,7],[10,10,5,10],[10,11,5,11],[10,12,5,12],[10,14,5,14,"util_1"],[10,20,5,20],[10,21,5,21,"logger"],[10,27,5,27],[10,29,5,29],[10,42,5,42],[10,43,5,43],[11,2,6,0],[11,11,6,9,"logLength"],[11,20,6,18,"logLength"],[11,21,6,19,"type"],[11,25,6,23],[11,27,6,25,"values"],[11,33,6,31],[11,35,6,43],[12,4,6,43],[12,8,6,33,"and"],[12,11,6,36],[12,14,6,36,"arguments"],[12,23,6,36],[12,24,6,36,"length"],[12,30,6,36],[12,38,6,36,"arguments"],[12,47,6,36],[12,55,6,36,"undefined"],[12,64,6,36],[12,67,6,36,"arguments"],[12,76,6,36],[12,82,6,39],[12,84,6,41],[13,4,7,4],[13,11,7,11,"values"],[13,17,7,17],[13,18,7,18,"length"],[13,24,7,24],[13,27,8,10],[13,31,8,14,"values"],[13,37,8,20],[13,38,8,21,"length"],[13,44,8,27],[13,48,8,31,"type"],[13,52,8,35],[13,55,8,38,"and"],[13,58,8,41],[13,59,8,42,"length"],[13,65,8,48],[13,68,8,51],[13,74,8,57],[13,77,8,60],[13,79,8,62],[13,81,8,64],[13,84,9,10],[13,86,9,12],[14,2,10,0],[15,2,11,0],[15,11,11,9,"logValues"],[15,20,11,18,"logValues"],[15,21,11,19,"type"],[15,25,11,23],[15,27,11,25,"values"],[15,33,11,31],[15,35,11,33],[16,4,12,4],[16,11,12,11,"values"],[16,17,12,17],[16,18,12,18,"length"],[16,24,12,24],[16,27,13,10],[16,34,13,17,"type"],[16,38,13,21],[16,39,13,22,"padStart"],[16,47,13,30],[16,48,13,31],[16,49,13,32],[16,50,13,33],[16,55,13,38,"values"],[16,61,13,44],[16,62,13,45,"sort"],[16,66,13,49],[16,67,13,50],[16,68,13,51],[16,69,13,52,"join"],[16,73,13,56],[16,74,13,57],[16,78,13,61],[16,79,13,62],[16,81,13,64],[16,84,14,10],[16,86,14,12],[17,2,15,0],[18,2,16,0],[18,11,16,9,"warn"],[18,15,16,13,"warn"],[18,16,16,14,"prefix"],[18,22,16,20],[18,24,16,22,"type"],[18,28,16,26],[18,30,16,26,"_ref"],[18,34,16,26],[18,36,16,46],[19,4,16,46],[19,8,16,46,"_ref2"],[19,13,16,46],[19,16,16,46,"_slicedToArray"],[19,30,16,46],[19,31,16,46,"_ref"],[19,35,16,46],[20,6,16,29,"added"],[20,11,16,34],[20,14,16,34,"_ref2"],[20,19,16,34],[21,6,16,36,"removed"],[21,13,16,43],[21,16,16,43,"_ref2"],[21,21,16,43],[22,4,17,4],[22,8,17,8,"added"],[22,13,17,13],[22,14,17,14,"length"],[22,20,17,20],[22,24,17,24,"removed"],[22,31,17,31],[22,32,17,32,"length"],[22,38,17,38],[22,40,17,40],[23,6,18,8,"l"],[23,7,18,9],[23,8,18,10,"warn"],[23,12,18,14],[23,13,18,15],[23,20,18,22,"prefix"],[23,26,18,28],[23,36,18,38,"logLength"],[23,45,18,47],[23,46,18,48],[23,53,18,55],[23,55,18,57,"added"],[23,60,18,62],[23,62,18,64,"removed"],[23,69,18,71],[23,70,18,72],[23,73,18,75,"logLength"],[23,82,18,84],[23,83,18,85],[23,92,18,94],[23,94,18,96,"removed"],[23,101,18,103],[23,102,18,104],[23,106,18,108,"type"],[23,110,18,112],[23,114,18,116,"logValues"],[23,123,18,125],[23,124,18,126],[23,131,18,133],[23,133,18,135,"added"],[23,138,18,140],[23,139,18,141],[23,142,18,144,"logValues"],[23,151,18,153],[23,152,18,154],[23,161,18,163],[23,163,18,165,"removed"],[23,170,18,172],[23,171,18,173],[23,173,18,175],[23,174,18,176],[24,4,19,4],[25,2,20,0],[26,2,21,0],[26,11,21,9,"findSectionExcludes"],[26,30,21,28,"findSectionExcludes"],[26,31,21,29,"a"],[26,32,21,30],[26,34,21,32,"b"],[26,35,21,33],[26,37,21,35],[27,4,22,4],[27,11,22,11,"a"],[27,12,22,12],[27,13,22,13,"filter"],[27,19,22,19],[27,20,22,21,"s"],[27,21,22,22],[27,25,22,27],[27,26,22,28,"b"],[27,27,22,29],[27,28,22,30,"includes"],[27,36,22,38],[27,37,22,39,"s"],[27,38,22,40],[27,39,22,41],[27,40,22,42],[28,2,23,0],[29,2,24,0],[29,11,24,9,"findSectionIncludes"],[29,30,24,28,"findSectionIncludes"],[29,31,24,29,"a"],[29,32,24,30],[29,34,24,32,"b"],[29,35,24,33],[29,37,24,35],[30,4,25,4],[30,11,25,11,"a"],[30,12,25,12],[30,13,25,13,"filter"],[30,19,25,19],[30,20,25,21,"s"],[30,21,25,22],[30,25,25,27,"b"],[30,26,25,28],[30,27,25,29,"includes"],[30,35,25,37],[30,36,25,38,"s"],[30,37,25,39],[30,38,25,40],[30,39,25,41],[31,2,26,0],[32,2,27,0],[32,11,27,9,"extractSections"],[32,26,27,24,"extractSections"],[32,27,27,25,"src"],[32,30,27,28],[32,32,27,30,"dst"],[32,35,27,33],[32,37,27,35],[33,4,28,4],[33,8,28,10,"srcSections"],[33,19,28,21],[33,22,28,24,"Object"],[33,28,28,30],[33,29,28,31,"keys"],[33,33,28,35],[33,34,28,36,"src"],[33,37,28,39],[33,38,28,40],[34,4,29,4],[34,8,29,10,"dstSections"],[34,19,29,21],[34,22,29,24,"Object"],[34,28,29,30],[34,29,29,31,"keys"],[34,33,29,35],[34,34,29,36,"dst"],[34,37,29,39],[34,38,29,40],[35,4,30,4],[35,11,30,11],[35,12,31,8,"findSectionExcludes"],[35,31,31,27],[35,32,31,28,"srcSections"],[35,43,31,39],[35,45,31,41,"dstSections"],[35,56,31,52],[35,57,31,53],[35,59,32,8,"findSectionExcludes"],[35,78,32,27],[35,79,32,28,"dstSections"],[35,90,32,39],[35,92,32,41,"srcSections"],[35,103,32,52],[35,104,32,53],[35,105,33,5],[36,2,34,0],[37,2,35,0],[37,11,35,9,"findMethodExcludes"],[37,29,35,27,"findMethodExcludes"],[37,30,35,28,"src"],[37,33,35,31],[37,35,35,33,"dst"],[37,38,35,36],[37,40,35,38],[38,4,36,4],[38,8,36,10,"srcSections"],[38,19,36,21],[38,22,36,24,"Object"],[38,28,36,30],[38,29,36,31,"keys"],[38,33,36,35],[38,34,36,36,"src"],[38,37,36,39],[38,38,36,40],[39,4,37,4],[39,8,37,10,"dstSections"],[39,19,37,21],[39,22,37,24,"findSectionIncludes"],[39,41,37,43],[39,42,37,44,"Object"],[39,48,37,50],[39,49,37,51,"keys"],[39,53,37,55],[39,54,37,56,"dst"],[39,57,37,59],[39,58,37,60],[39,60,37,62,"srcSections"],[39,71,37,73],[39,72,37,74],[40,4,38,4],[40,8,38,10,"excludes"],[40,16,38,18],[40,19,38,21],[40,21,38,23],[41,4,39,4],[41,9,39,9],[41,13,39,13,"s"],[41,14,39,14],[41,17,39,17],[41,18,39,18],[41,20,39,20,"scount"],[41,26,39,26],[41,29,39,29,"dstSections"],[41,40,39,40],[41,41,39,41,"length"],[41,47,39,47],[41,49,39,49,"s"],[41,50,39,50],[41,53,39,53,"scount"],[41,59,39,59],[41,61,39,61,"s"],[41,62,39,62],[41,64,39,64],[41,66,39,66],[42,6,40,8],[42,10,40,14,"section"],[42,17,40,21],[42,20,40,24,"dstSections"],[42,31,40,35],[42,32,40,36,"s"],[42,33,40,37],[42,34,40,38],[43,6,41,8],[43,10,41,14,"srcMethods"],[43,20,41,24],[43,23,41,27,"Object"],[43,29,41,33],[43,30,41,34,"keys"],[43,34,41,38],[43,35,41,39,"src"],[43,38,41,42],[43,39,41,43,"section"],[43,46,41,50],[43,47,41,51],[43,48,41,52],[44,6,42,8],[44,10,42,14,"dstMethods"],[44,20,42,24],[44,23,42,27,"Object"],[44,29,42,33],[44,30,42,34,"keys"],[44,34,42,38],[44,35,42,39,"dst"],[44,38,42,42],[44,39,42,43,"section"],[44,46,42,50],[44,47,42,51],[44,48,42,52],[45,6,43,8],[45,11,43,13],[45,15,43,17,"d"],[45,16,43,18],[45,19,43,21],[45,20,43,22],[45,22,43,24,"mcount"],[45,28,43,30],[45,31,43,33,"dstMethods"],[45,41,43,43],[45,42,43,44,"length"],[45,48,43,50],[45,50,43,52,"d"],[45,51,43,53],[45,54,43,56,"mcount"],[45,60,43,62],[45,62,43,64,"d"],[45,63,43,65],[45,65,43,67],[45,67,43,69],[46,8,44,12],[46,12,44,18,"method"],[46,18,44,24],[46,21,44,27,"dstMethods"],[46,31,44,37],[46,32,44,38,"d"],[46,33,44,39],[46,34,44,40],[47,8,45,12],[47,12,45,16],[47,13,45,17,"srcMethods"],[47,23,45,27],[47,24,45,28,"includes"],[47,32,45,36],[47,33,45,37,"method"],[47,39,45,43],[47,40,45,44],[47,42,45,46],[48,10,46,16,"excludes"],[48,18,46,24],[48,19,46,25,"push"],[48,23,46,29],[48,24,46,30],[48,27,46,33,"section"],[48,34,46,40],[48,38,46,44,"method"],[48,44,46,50],[48,46,46,52],[48,47,46,53],[49,8,47,12],[50,6,48,8],[51,4,49,4],[52,4,50,4],[52,11,50,11,"excludes"],[52,19,50,19],[53,2,51,0],[54,2,52,0],[54,11,52,9,"extractMethods"],[54,25,52,23,"extractMethods"],[54,26,52,24,"src"],[54,29,52,27],[54,31,52,29,"dst"],[54,34,52,32],[54,36,52,34],[55,4,53,4],[55,11,53,11],[55,12,54,8,"findMethodExcludes"],[55,30,54,26],[55,31,54,27,"dst"],[55,34,54,30],[55,36,54,32,"src"],[55,39,54,35],[55,40,54,36],[55,42,55,8,"findMethodExcludes"],[55,60,55,26],[55,61,55,27,"src"],[55,64,55,30],[55,66,55,32,"dst"],[55,69,55,35],[55,70,55,36],[55,71,56,5],[56,2,57,0],[57,2,58,0],[58,0,59,0],[59,0,60,0],[60,0,61,0],[61,0,62,0],[62,2,63,0],[62,11,63,9,"augmentObject"],[62,24,63,22,"augmentObject"],[62,25,63,23,"prefix"],[62,31,63,29],[62,33,63,31,"src"],[62,36,63,34],[62,38,63,36,"dst"],[62,41,63,39],[62,43,63,60],[63,4,63,60],[63,8,63,41,"fromEmpty"],[63,17,63,50],[63,20,63,50,"arguments"],[63,29,63,50],[63,30,63,50,"length"],[63,36,63,50],[63,44,63,50,"arguments"],[63,53,63,50],[63,61,63,50,"undefined"],[63,70,63,50],[63,73,63,50,"arguments"],[63,82,63,50],[63,88,63,53],[63,93,63,58],[64,4,64,4,"fromEmpty"],[64,13,64,13],[64,17,64,17],[64,18,64,18],[64,19,64,19],[64,21,64,21,"util_1"],[64,27,64,27],[64,28,64,28,"objectClear"],[64,39,64,39],[64,41,64,41,"dst"],[64,44,64,44],[64,45,64,45],[65,4,65,4],[66,4,66,4],[67,4,67,4],[68,4,68,4],[68,8,68,8,"prefix"],[68,14,68,14],[68,18,68,18,"Object"],[68,24,68,24],[68,25,68,25,"keys"],[68,29,68,29],[68,30,68,30,"dst"],[68,33,68,33],[68,34,68,34],[68,35,68,35,"length"],[68,41,68,41],[68,43,68,43],[69,6,69,8,"warn"],[69,10,69,12],[69,11,69,13,"prefix"],[69,17,69,19],[69,19,69,21],[69,28,69,30],[69,30,69,32,"extractSections"],[69,45,69,47],[69,46,69,48,"src"],[69,49,69,51],[69,51,69,53,"dst"],[69,54,69,56],[69,55,69,57],[69,56,69,58],[70,6,70,8,"warn"],[70,10,70,12],[70,11,70,13,"prefix"],[70,17,70,19],[70,19,70,21],[70,26,70,28],[70,28,70,30,"extractMethods"],[70,42,70,44],[70,43,70,45,"src"],[70,46,70,48],[70,48,70,50,"dst"],[70,51,70,53],[70,52,70,54],[70,53,70,55],[71,4,71,4],[72,4,72,4],[72,8,72,10,"sections"],[72,16,72,18],[72,19,72,21,"Object"],[72,25,72,27],[72,26,72,28,"keys"],[72,30,72,32],[72,31,72,33,"src"],[72,34,72,36],[72,35,72,37],[73,4,72,38],[73,8,72,38,"_loop"],[73,13,72,38],[73,25,72,38,"_loop"],[73,26,72,38],[73,28,73,61],[74,6,74,8],[74,10,74,14,"section"],[74,17,74,21],[74,20,74,24,"sections"],[74,28,74,32],[74,29,74,33,"i"],[74,30,74,34],[74,31,74,35],[75,6,75,8],[75,10,75,14,"methods"],[75,17,75,21],[75,20,75,24,"src"],[75,23,75,27],[75,24,75,28,"section"],[75,31,75,35],[75,32,75,36],[76,6,76,8],[77,6,77,8],[78,6,78,8],[78,10,78,12],[78,11,78,13,"dst"],[78,14,78,16],[78,15,78,17,"section"],[78,22,78,24],[78,23,78,25],[78,25,78,27],[79,8,79,12,"dst"],[79,11,79,15],[79,12,79,16,"section"],[79,19,79,23],[79,20,79,24],[79,23,79,27],[79,24,79,28],[79,25,79,29],[80,6,80,8],[81,6,81,8],[81,7,81,9],[81,8,81,10],[81,10,81,12,"util_1"],[81,16,81,18],[81,17,81,19,"lazyMethods"],[81,28,81,30],[81,30,81,32,"dst"],[81,33,81,35],[81,34,81,36,"section"],[81,41,81,43],[81,42,81,44],[81,44,81,46,"Object"],[81,50,81,52],[81,51,81,53,"keys"],[81,55,81,57],[81,56,81,58,"methods"],[81,63,81,65],[81,64,81,66],[81,66,81,69,"m"],[81,67,81,70],[81,71,81,75,"methods"],[81,78,81,82],[81,79,81,83,"m"],[81,80,81,84],[81,81,81,85],[81,82,81,86],[82,4,82,4],[82,5,82,5],[83,4,73,4],[83,9,73,9],[83,13,73,13,"i"],[83,14,73,14],[83,17,73,17],[83,18,73,18],[83,20,73,20,"count"],[83,25,73,25],[83,28,73,28,"sections"],[83,36,73,36],[83,37,73,37,"length"],[83,43,73,43],[83,45,73,45,"i"],[83,46,73,46],[83,49,73,49,"count"],[83,54,73,54],[83,56,73,56,"i"],[83,57,73,57],[83,59,73,59],[84,6,73,59,"_loop"],[84,11,73,59],[85,4,73,59],[86,4,83,4],[86,11,83,11,"dst"],[86,14,83,14],[87,2,84,0],[88,0,84,1],[88,3]],"functionMap":{"names":["<global>","logLength","logValues","warn","findSectionExcludes","a.filter$argument_0","findSectionIncludes","extractSections","findMethodExcludes","extractMethods","augmentObject","<anonymous>"],"mappings":"AAA;ACK;CDI;AEC;CFI;AGC;CHI;AIC;oBCC,qBD;CJC;AMC;oBDC,oBC;CNC;AOC;CPO;AQC;CRgB;ASC;CTK;AUM;oECkB,iBD;CVG"},"hasCjsExports":true},"type":"js/module"}]} |