{"dependencies":[{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":66,"index":66}}],"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.augmentObject = augmentObject;\n var _polkadotUtil = require(_dependencyMap[0], \"@polkadot/util\");\n const l = (0, _polkadotUtil.logger)('api/augment');\n function logLength(type, values, and = []) {\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, [added, removed]) {\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 const srcSections = Object.keys(src);\n const dstSections = Object.keys(dst);\n return [findSectionExcludes(srcSections, dstSections), findSectionExcludes(dstSections, srcSections)];\n }\n function findMethodExcludes(src, dst) {\n const srcSections = Object.keys(src);\n const dstSections = findSectionIncludes(Object.keys(dst), srcSections);\n const excludes = [];\n for (let s = 0, scount = dstSections.length; s < scount; s++) {\n const section = dstSections[s];\n const srcMethods = Object.keys(src[section]);\n const dstMethods = Object.keys(dst[section]);\n for (let d = 0, mcount = dstMethods.length; d < mcount; d++) {\n const 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, fromEmpty = false) {\n fromEmpty && (0, _polkadotUtil.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 const sections = Object.keys(src);\n for (let i = 0, count = sections.length; i < count; i++) {\n const section = sections[i];\n const 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, _polkadotUtil.lazyMethods)(dst[section], Object.keys(methods), m => methods[m]);\n }\n return dst;\n }\n});","lineCount":79,"map":[[7,2,60,0,"exports"],[7,9,60,0],[7,10,60,0,"augmentObject"],[7,23,60,0],[7,26,60,0,"augmentObject"],[7,39,60,0],[8,2,1,0],[8,6,1,0,"_polkadotUtil"],[8,19,1,0],[8,22,1,0,"require"],[8,29,1,0],[8,30,1,0,"_dependencyMap"],[8,44,1,0],[9,2,2,0],[9,8,2,6,"l"],[9,9,2,7],[9,12,2,10],[9,16,2,10,"logger"],[9,29,2,16],[9,30,2,16,"logger"],[9,36,2,16],[9,38,2,17],[9,51,2,30],[9,52,2,31],[10,2,3,0],[10,11,3,9,"logLength"],[10,20,3,18,"logLength"],[10,21,3,19,"type"],[10,25,3,23],[10,27,3,25,"values"],[10,33,3,31],[10,35,3,33,"and"],[10,38,3,36],[10,41,3,39],[10,43,3,41],[10,45,3,43],[11,4,4,4],[11,11,4,11,"values"],[11,17,4,17],[11,18,4,18,"length"],[11,24,4,24],[11,27,5,10],[11,31,5,14,"values"],[11,37,5,20],[11,38,5,21,"length"],[11,44,5,27],[11,48,5,31,"type"],[11,52,5,35],[11,55,5,38,"and"],[11,58,5,41],[11,59,5,42,"length"],[11,65,5,48],[11,68,5,51],[11,74,5,57],[11,77,5,60],[11,79,5,62],[11,81,5,64],[11,84,6,10],[11,86,6,12],[12,2,7,0],[13,2,8,0],[13,11,8,9,"logValues"],[13,20,8,18,"logValues"],[13,21,8,19,"type"],[13,25,8,23],[13,27,8,25,"values"],[13,33,8,31],[13,35,8,33],[14,4,9,4],[14,11,9,11,"values"],[14,17,9,17],[14,18,9,18,"length"],[14,24,9,24],[14,27,10,10],[14,34,10,17,"type"],[14,38,10,21],[14,39,10,22,"padStart"],[14,47,10,30],[14,48,10,31],[14,49,10,32],[14,50,10,33],[14,55,10,38,"values"],[14,61,10,44],[14,62,10,45,"sort"],[14,66,10,49],[14,67,10,50],[14,68,10,51],[14,69,10,52,"join"],[14,73,10,56],[14,74,10,57],[14,78,10,61],[14,79,10,62],[14,81,10,64],[14,84,11,10],[14,86,11,12],[15,2,12,0],[16,2,13,0],[16,11,13,9,"warn"],[16,15,13,13,"warn"],[16,16,13,14,"prefix"],[16,22,13,20],[16,24,13,22,"type"],[16,28,13,26],[16,30,13,28],[16,31,13,29,"added"],[16,36,13,34],[16,38,13,36,"removed"],[16,45,13,43],[16,46,13,44],[16,48,13,46],[17,4,14,4],[17,8,14,8,"added"],[17,13,14,13],[17,14,14,14,"length"],[17,20,14,20],[17,24,14,24,"removed"],[17,31,14,31],[17,32,14,32,"length"],[17,38,14,38],[17,40,14,40],[18,6,15,8,"l"],[18,7,15,9],[18,8,15,10,"warn"],[18,12,15,14],[18,13,15,15],[18,20,15,22,"prefix"],[18,26,15,28],[18,36,15,38,"logLength"],[18,45,15,47],[18,46,15,48],[18,53,15,55],[18,55,15,57,"added"],[18,60,15,62],[18,62,15,64,"removed"],[18,69,15,71],[18,70,15,72],[18,73,15,75,"logLength"],[18,82,15,84],[18,83,15,85],[18,92,15,94],[18,94,15,96,"removed"],[18,101,15,103],[18,102,15,104],[18,106,15,108,"type"],[18,110,15,112],[18,114,15,116,"logValues"],[18,123,15,125],[18,124,15,126],[18,131,15,133],[18,133,15,135,"added"],[18,138,15,140],[18,139,15,141],[18,142,15,144,"logValues"],[18,151,15,153],[18,152,15,154],[18,161,15,163],[18,163,15,165,"removed"],[18,170,15,172],[18,171,15,173],[18,173,15,175],[18,174,15,176],[19,4,16,4],[20,2,17,0],[21,2,18,0],[21,11,18,9,"findSectionExcludes"],[21,30,18,28,"findSectionExcludes"],[21,31,18,29,"a"],[21,32,18,30],[21,34,18,32,"b"],[21,35,18,33],[21,37,18,35],[22,4,19,4],[22,11,19,11,"a"],[22,12,19,12],[22,13,19,13,"filter"],[22,19,19,19],[22,20,19,21,"s"],[22,21,19,22],[22,25,19,27],[22,26,19,28,"b"],[22,27,19,29],[22,28,19,30,"includes"],[22,36,19,38],[22,37,19,39,"s"],[22,38,19,40],[22,39,19,41],[22,40,19,42],[23,2,20,0],[24,2,21,0],[24,11,21,9,"findSectionIncludes"],[24,30,21,28,"findSectionIncludes"],[24,31,21,29,"a"],[24,32,21,30],[24,34,21,32,"b"],[24,35,21,33],[24,37,21,35],[25,4,22,4],[25,11,22,11,"a"],[25,12,22,12],[25,13,22,13,"filter"],[25,19,22,19],[25,20,22,21,"s"],[25,21,22,22],[25,25,22,27,"b"],[25,26,22,28],[25,27,22,29,"includes"],[25,35,22,37],[25,36,22,38,"s"],[25,37,22,39],[25,38,22,40],[25,39,22,41],[26,2,23,0],[27,2,24,0],[27,11,24,9,"extractSections"],[27,26,24,24,"extractSections"],[27,27,24,25,"src"],[27,30,24,28],[27,32,24,30,"dst"],[27,35,24,33],[27,37,24,35],[28,4,25,4],[28,10,25,10,"srcSections"],[28,21,25,21],[28,24,25,24,"Object"],[28,30,25,30],[28,31,25,31,"keys"],[28,35,25,35],[28,36,25,36,"src"],[28,39,25,39],[28,40,25,40],[29,4,26,4],[29,10,26,10,"dstSections"],[29,21,26,21],[29,24,26,24,"Object"],[29,30,26,30],[29,31,26,31,"keys"],[29,35,26,35],[29,36,26,36,"dst"],[29,39,26,39],[29,40,26,40],[30,4,27,4],[30,11,27,11],[30,12,28,8,"findSectionExcludes"],[30,31,28,27],[30,32,28,28,"srcSections"],[30,43,28,39],[30,45,28,41,"dstSections"],[30,56,28,52],[30,57,28,53],[30,59,29,8,"findSectionExcludes"],[30,78,29,27],[30,79,29,28,"dstSections"],[30,90,29,39],[30,92,29,41,"srcSections"],[30,103,29,52],[30,104,29,53],[30,105,30,5],[31,2,31,0],[32,2,32,0],[32,11,32,9,"findMethodExcludes"],[32,29,32,27,"findMethodExcludes"],[32,30,32,28,"src"],[32,33,32,31],[32,35,32,33,"dst"],[32,38,32,36],[32,40,32,38],[33,4,33,4],[33,10,33,10,"srcSections"],[33,21,33,21],[33,24,33,24,"Object"],[33,30,33,30],[33,31,33,31,"keys"],[33,35,33,35],[33,36,33,36,"src"],[33,39,33,39],[33,40,33,40],[34,4,34,4],[34,10,34,10,"dstSections"],[34,21,34,21],[34,24,34,24,"findSectionIncludes"],[34,43,34,43],[34,44,34,44,"Object"],[34,50,34,50],[34,51,34,51,"keys"],[34,55,34,55],[34,56,34,56,"dst"],[34,59,34,59],[34,60,34,60],[34,62,34,62,"srcSections"],[34,73,34,73],[34,74,34,74],[35,4,35,4],[35,10,35,10,"excludes"],[35,18,35,18],[35,21,35,21],[35,23,35,23],[36,4,36,4],[36,9,36,9],[36,13,36,13,"s"],[36,14,36,14],[36,17,36,17],[36,18,36,18],[36,20,36,20,"scount"],[36,26,36,26],[36,29,36,29,"dstSections"],[36,40,36,40],[36,41,36,41,"length"],[36,47,36,47],[36,49,36,49,"s"],[36,50,36,50],[36,53,36,53,"scount"],[36,59,36,59],[36,61,36,61,"s"],[36,62,36,62],[36,64,36,64],[36,66,36,66],[37,6,37,8],[37,12,37,14,"section"],[37,19,37,21],[37,22,37,24,"dstSections"],[37,33,37,35],[37,34,37,36,"s"],[37,35,37,37],[37,36,37,38],[38,6,38,8],[38,12,38,14,"srcMethods"],[38,22,38,24],[38,25,38,27,"Object"],[38,31,38,33],[38,32,38,34,"keys"],[38,36,38,38],[38,37,38,39,"src"],[38,40,38,42],[38,41,38,43,"section"],[38,48,38,50],[38,49,38,51],[38,50,38,52],[39,6,39,8],[39,12,39,14,"dstMethods"],[39,22,39,24],[39,25,39,27,"Object"],[39,31,39,33],[39,32,39,34,"keys"],[39,36,39,38],[39,37,39,39,"dst"],[39,40,39,42],[39,41,39,43,"section"],[39,48,39,50],[39,49,39,51],[39,50,39,52],[40,6,40,8],[40,11,40,13],[40,15,40,17,"d"],[40,16,40,18],[40,19,40,21],[40,20,40,22],[40,22,40,24,"mcount"],[40,28,40,30],[40,31,40,33,"dstMethods"],[40,41,40,43],[40,42,40,44,"length"],[40,48,40,50],[40,50,40,52,"d"],[40,51,40,53],[40,54,40,56,"mcount"],[40,60,40,62],[40,62,40,64,"d"],[40,63,40,65],[40,65,40,67],[40,67,40,69],[41,8,41,12],[41,14,41,18,"method"],[41,20,41,24],[41,23,41,27,"dstMethods"],[41,33,41,37],[41,34,41,38,"d"],[41,35,41,39],[41,36,41,40],[42,8,42,12],[42,12,42,16],[42,13,42,17,"srcMethods"],[42,23,42,27],[42,24,42,28,"includes"],[42,32,42,36],[42,33,42,37,"method"],[42,39,42,43],[42,40,42,44],[42,42,42,46],[43,10,43,16,"excludes"],[43,18,43,24],[43,19,43,25,"push"],[43,23,43,29],[43,24,43,30],[43,27,43,33,"section"],[43,34,43,40],[43,38,43,44,"method"],[43,44,43,50],[43,46,43,52],[43,47,43,53],[44,8,44,12],[45,6,45,8],[46,4,46,4],[47,4,47,4],[47,11,47,11,"excludes"],[47,19,47,19],[48,2,48,0],[49,2,49,0],[49,11,49,9,"extractMethods"],[49,25,49,23,"extractMethods"],[49,26,49,24,"src"],[49,29,49,27],[49,31,49,29,"dst"],[49,34,49,32],[49,36,49,34],[50,4,50,4],[50,11,50,11],[50,12,51,8,"findMethodExcludes"],[50,30,51,26],[50,31,51,27,"dst"],[50,34,51,30],[50,36,51,32,"src"],[50,39,51,35],[50,40,51,36],[50,42,52,8,"findMethodExcludes"],[50,60,52,26],[50,61,52,27,"src"],[50,64,52,30],[50,66,52,32,"dst"],[50,69,52,35],[50,70,52,36],[50,71,53,5],[51,2,54,0],[52,2,55,0],[53,0,56,0],[54,0,57,0],[55,0,58,0],[56,0,59,0],[57,2,60,7],[57,11,60,16,"augmentObject"],[57,24,60,29,"augmentObject"],[57,25,60,30,"prefix"],[57,31,60,36],[57,33,60,38,"src"],[57,36,60,41],[57,38,60,43,"dst"],[57,41,60,46],[57,43,60,48,"fromEmpty"],[57,52,60,57],[57,55,60,60],[57,60,60,65],[57,62,60,67],[58,4,61,4,"fromEmpty"],[58,13,61,13],[58,17,61,17],[58,21,61,17,"objectClear"],[58,34,61,28],[58,35,61,28,"objectClear"],[58,46,61,28],[58,48,61,29,"dst"],[58,51,61,32],[58,52,61,33],[59,4,62,4],[60,4,63,4],[61,4,64,4],[62,4,65,4],[62,8,65,8,"prefix"],[62,14,65,14],[62,18,65,18,"Object"],[62,24,65,24],[62,25,65,25,"keys"],[62,29,65,29],[62,30,65,30,"dst"],[62,33,65,33],[62,34,65,34],[62,35,65,35,"length"],[62,41,65,41],[62,43,65,43],[63,6,66,8,"warn"],[63,10,66,12],[63,11,66,13,"prefix"],[63,17,66,19],[63,19,66,21],[63,28,66,30],[63,30,66,32,"extractSections"],[63,45,66,47],[63,46,66,48,"src"],[63,49,66,51],[63,51,66,53,"dst"],[63,54,66,56],[63,55,66,57],[63,56,66,58],[64,6,67,8,"warn"],[64,10,67,12],[64,11,67,13,"prefix"],[64,17,67,19],[64,19,67,21],[64,26,67,28],[64,28,67,30,"extractMethods"],[64,42,67,44],[64,43,67,45,"src"],[64,46,67,48],[64,48,67,50,"dst"],[64,51,67,53],[64,52,67,54],[64,53,67,55],[65,4,68,4],[66,4,69,4],[66,10,69,10,"sections"],[66,18,69,18],[66,21,69,21,"Object"],[66,27,69,27],[66,28,69,28,"keys"],[66,32,69,32],[66,33,69,33,"src"],[66,36,69,36],[66,37,69,37],[67,4,70,4],[67,9,70,9],[67,13,70,13,"i"],[67,14,70,14],[67,17,70,17],[67,18,70,18],[67,20,70,20,"count"],[67,25,70,25],[67,28,70,28,"sections"],[67,36,70,36],[67,37,70,37,"length"],[67,43,70,43],[67,45,70,45,"i"],[67,46,70,46],[67,49,70,49,"count"],[67,54,70,54],[67,56,70,56,"i"],[67,57,70,57],[67,59,70,59],[67,61,70,61],[68,6,71,8],[68,12,71,14,"section"],[68,19,71,21],[68,22,71,24,"sections"],[68,30,71,32],[68,31,71,33,"i"],[68,32,71,34],[68,33,71,35],[69,6,72,8],[69,12,72,14,"methods"],[69,19,72,21],[69,22,72,24,"src"],[69,25,72,27],[69,26,72,28,"section"],[69,33,72,35],[69,34,72,36],[70,6,73,8],[71,6,74,8],[72,6,75,8],[72,10,75,12],[72,11,75,13,"dst"],[72,14,75,16],[72,15,75,17,"section"],[72,22,75,24],[72,23,75,25],[72,25,75,27],[73,8,76,12,"dst"],[73,11,76,15],[73,12,76,16,"section"],[73,19,76,23],[73,20,76,24],[73,23,76,27],[73,24,76,28],[73,25,76,29],[74,6,77,8],[75,6,78,8],[75,10,78,8,"lazyMethods"],[75,23,78,19],[75,24,78,19,"lazyMethods"],[75,35,78,19],[75,37,78,20,"dst"],[75,40,78,23],[75,41,78,24,"section"],[75,48,78,31],[75,49,78,32],[75,51,78,34,"Object"],[75,57,78,40],[75,58,78,41,"keys"],[75,62,78,45],[75,63,78,46,"methods"],[75,70,78,53],[75,71,78,54],[75,73,78,57,"m"],[75,74,78,58],[75,78,78,63,"methods"],[75,85,78,70],[75,86,78,71,"m"],[75,87,78,72],[75,88,78,73],[75,89,78,74],[76,4,79,4],[77,4,80,4],[77,11,80,11,"dst"],[77,14,80,14],[78,2,81,0],[79,0,81,1],[79,3]],"functionMap":{"names":["","logLength","logValues","warn","findSectionExcludes","a.filter$argument_0","findSectionIncludes","extractSections","findMethodExcludes","extractMethods","augmentObject","lazyMethods$argument_2"],"mappings":"AAA;ACE;CDI;AEC;CFI;AGC;CHI;AIC;oBCC,qBD;CJC;AMC;oBDC,oBC;CNC;AOC;CPO;AQC;CRgB;ASC;CTK;OUM;wDCkB,iBD;CVG"},"hasCjsExports":false},"type":"js/module"}]}