mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 16:51:02 +00:00
1 line
5.4 KiB
Plaintext
1 line
5.4 KiB
Plaintext
{"dependencies":[],"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.typeSplit = typeSplit;\n function typeSplit(type) {\n const result = [];\n // these are the depths of the various tokens: <, [, {, (\n let c = 0;\n let f = 0;\n let s = 0;\n let t = 0;\n // current start position\n let start = 0;\n for (let i = 0, count = type.length; i < count; i++) {\n switch (type[i]) {\n // if we are not nested, add the type\n case ',':\n {\n if (!(c || f || s || t)) {\n result.push(type.substring(start, i).trim());\n start = i + 1;\n }\n break;\n }\n // adjust compact/vec (and friends) depth\n case '<':\n c++;\n break;\n case '>':\n c--;\n break;\n // adjust fixed vec depths\n case '[':\n f++;\n break;\n case ']':\n f--;\n break;\n // adjust struct depth\n case '{':\n s++;\n break;\n case '}':\n s--;\n break;\n // adjust tuple depth\n case '(':\n t++;\n break;\n case ')':\n t--;\n break;\n }\n }\n // ensure we have all the terminators taken care of\n if (c || f || s || t) {\n throw new Error(`Invalid definition (missing terminators) found in ${type}`);\n }\n // the final leg of the journey\n result.push(type.substring(start, type.length).trim());\n return result;\n }\n});","lineCount":66,"map":[[2,2,1,0],[2,14,1,12],[4,2,2,0,"Object"],[4,8,2,6],[4,9,2,7,"defineProperty"],[4,23,2,21],[4,24,2,22,"exports"],[4,31,2,29],[4,33,2,31],[4,45,2,43],[4,47,2,45],[5,4,2,47,"value"],[5,9,2,52],[5,11,2,54],[6,2,2,59],[6,3,2,60],[6,4,2,61],[7,2,3,0,"exports"],[7,9,3,7],[7,10,3,8,"typeSplit"],[7,19,3,17],[7,22,3,20,"typeSplit"],[7,31,3,29],[8,2,4,0],[8,11,4,9,"typeSplit"],[8,20,4,18,"typeSplit"],[8,21,4,19,"type"],[8,25,4,23],[8,27,4,25],[9,4,5,4],[9,10,5,10,"result"],[9,16,5,16],[9,19,5,19],[9,21,5,21],[10,4,6,4],[11,4,7,4],[11,8,7,8,"c"],[11,9,7,9],[11,12,7,12],[11,13,7,13],[12,4,8,4],[12,8,8,8,"f"],[12,9,8,9],[12,12,8,12],[12,13,8,13],[13,4,9,4],[13,8,9,8,"s"],[13,9,9,9],[13,12,9,12],[13,13,9,13],[14,4,10,4],[14,8,10,8,"t"],[14,9,10,9],[14,12,10,12],[14,13,10,13],[15,4,11,4],[16,4,12,4],[16,8,12,8,"start"],[16,13,12,13],[16,16,12,16],[16,17,12,17],[17,4,13,4],[17,9,13,9],[17,13,13,13,"i"],[17,14,13,14],[17,17,13,17],[17,18,13,18],[17,20,13,20,"count"],[17,25,13,25],[17,28,13,28,"type"],[17,32,13,32],[17,33,13,33,"length"],[17,39,13,39],[17,41,13,41,"i"],[17,42,13,42],[17,45,13,45,"count"],[17,50,13,50],[17,52,13,52,"i"],[17,53,13,53],[17,55,13,55],[17,57,13,57],[18,6,14,8],[18,14,14,16,"type"],[18,18,14,20],[18,19,14,21,"i"],[18,20,14,22],[18,21,14,23],[19,8,15,12],[20,8,16,12],[20,13,16,17],[20,16,16,20],[21,10,16,22],[22,12,17,16],[22,16,17,20],[22,18,17,22,"c"],[22,19,17,23],[22,23,17,27,"f"],[22,24,17,28],[22,28,17,32,"s"],[22,29,17,33],[22,33,17,37,"t"],[22,34,17,38],[22,35,17,39],[22,37,17,41],[23,14,18,20,"result"],[23,20,18,26],[23,21,18,27,"push"],[23,25,18,31],[23,26,18,32,"type"],[23,30,18,36],[23,31,18,37,"substring"],[23,40,18,46],[23,41,18,47,"start"],[23,46,18,52],[23,48,18,54,"i"],[23,49,18,55],[23,50,18,56],[23,51,18,57,"trim"],[23,55,18,61],[23,56,18,62],[23,57,18,63],[23,58,18,64],[24,14,19,20,"start"],[24,19,19,25],[24,22,19,28,"i"],[24,23,19,29],[24,26,19,32],[24,27,19,33],[25,12,20,16],[26,12,21,16],[27,10,22,12],[28,8,23,12],[29,8,24,12],[29,13,24,17],[29,16,24,20],[30,10,25,16,"c"],[30,11,25,17],[30,13,25,19],[31,10,26,16],[32,8,27,12],[32,13,27,17],[32,16,27,20],[33,10,28,16,"c"],[33,11,28,17],[33,13,28,19],[34,10,29,16],[35,8,30,12],[36,8,31,12],[36,13,31,17],[36,16,31,20],[37,10,32,16,"f"],[37,11,32,17],[37,13,32,19],[38,10,33,16],[39,8,34,12],[39,13,34,17],[39,16,34,20],[40,10,35,16,"f"],[40,11,35,17],[40,13,35,19],[41,10,36,16],[42,8,37,12],[43,8,38,12],[43,13,38,17],[43,16,38,20],[44,10,39,16,"s"],[44,11,39,17],[44,13,39,19],[45,10,40,16],[46,8,41,12],[46,13,41,17],[46,16,41,20],[47,10,42,16,"s"],[47,11,42,17],[47,13,42,19],[48,10,43,16],[49,8,44,12],[50,8,45,12],[50,13,45,17],[50,16,45,20],[51,10,46,16,"t"],[51,11,46,17],[51,13,46,19],[52,10,47,16],[53,8,48,12],[53,13,48,17],[53,16,48,20],[54,10,49,16,"t"],[54,11,49,17],[54,13,49,19],[55,10,50,16],[56,6,51,8],[57,4,52,4],[58,4,53,4],[59,4,54,4],[59,8,54,8,"c"],[59,9,54,9],[59,13,54,13,"f"],[59,14,54,14],[59,18,54,18,"s"],[59,19,54,19],[59,23,54,23,"t"],[59,24,54,24],[59,26,54,26],[60,6,55,8],[60,12,55,14],[60,16,55,18,"Error"],[60,21,55,23],[60,22,55,24],[60,75,55,77,"type"],[60,79,55,81],[60,81,55,83],[60,82,55,84],[61,4,56,4],[62,4,57,4],[63,4,58,4,"result"],[63,10,58,10],[63,11,58,11,"push"],[63,15,58,15],[63,16,58,16,"type"],[63,20,58,20],[63,21,58,21,"substring"],[63,30,58,30],[63,31,58,31,"start"],[63,36,58,36],[63,38,58,38,"type"],[63,42,58,42],[63,43,58,43,"length"],[63,49,58,49],[63,50,58,50],[63,51,58,51,"trim"],[63,55,58,55],[63,56,58,56],[63,57,58,57],[63,58,58,58],[64,4,59,4],[64,11,59,11,"result"],[64,17,59,17],[65,2,60,0],[66,0,60,1],[66,3]],"functionMap":{"names":["<global>","typeSplit"],"mappings":"AAA;ACG;CDwD"},"hasCjsExports":true},"type":"js/module"}]} |