mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 14:31:02 +00:00
1 line
3.3 KiB
Plaintext
1 line
3.3 KiB
Plaintext
{"dependencies":[{"name":"./extractPath.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":50,"index":50}}],"key":"FLW2S+QitJ0Lqnec4FqIWYAfuOY=","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.keyExtractSuri = keyExtractSuri;\n var _extractPathJs = require(_dependencyMap[0], \"./extractPath.js\");\n const RE_CAPTURE = /^((0x[a-fA-F0-9]+|[\\p{L}\\d]+(?: [\\p{L}\\d]+)*))((\\/\\/?[^/]+)*)(\\/\\/\\/(.*))?$/u;\n /**\n * @description Extracts the phrase, path and password from a SURI format for specifying secret keys `<secret>/<soft-key>//<hard-key>///<password>` (the `///password` may be omitted, and `/<soft-key>` and `//<hard-key>` maybe repeated and mixed).\n */\n function keyExtractSuri(suri) {\n // Normalize Unicode to NFC to avoid accent-related mismatches\n const normalizedSuri = suri.normalize('NFC');\n // eslint-disable-next-line @typescript-eslint/prefer-regexp-exec\n const matches = normalizedSuri.match(RE_CAPTURE);\n if (matches === null) {\n throw new Error('Unable to match provided value to a secret URI');\n }\n const [, phrase,, derivePath,,, password] = matches;\n const {\n path\n } = (0, _extractPathJs.keyExtractPath)(derivePath);\n return {\n derivePath,\n password,\n path,\n phrase\n };\n }\n});","lineCount":32,"map":[[7,2,6,0,"exports"],[7,9,6,0],[7,10,6,0,"keyExtractSuri"],[7,24,6,0],[7,27,6,0,"keyExtractSuri"],[7,41,6,0],[8,2,1,0],[8,6,1,0,"_extractPathJs"],[8,20,1,0],[8,23,1,0,"require"],[8,30,1,0],[8,31,1,0,"_dependencyMap"],[8,45,1,0],[9,2,2,0],[9,8,2,6,"RE_CAPTURE"],[9,18,2,16],[9,21,2,19],[9,99,2,97],[10,2,3,0],[11,0,4,0],[12,0,5,0],[13,2,6,7],[13,11,6,16,"keyExtractSuri"],[13,25,6,30,"keyExtractSuri"],[13,26,6,31,"suri"],[13,30,6,35],[13,32,6,37],[14,4,7,4],[15,4,8,4],[15,10,8,10,"normalizedSuri"],[15,24,8,24],[15,27,8,27,"suri"],[15,31,8,31],[15,32,8,32,"normalize"],[15,41,8,41],[15,42,8,42],[15,47,8,47],[15,48,8,48],[16,4,9,4],[17,4,10,4],[17,10,10,10,"matches"],[17,17,10,17],[17,20,10,20,"normalizedSuri"],[17,34,10,34],[17,35,10,35,"match"],[17,40,10,40],[17,41,10,41,"RE_CAPTURE"],[17,51,10,51],[17,52,10,52],[18,4,11,4],[18,8,11,8,"matches"],[18,15,11,15],[18,20,11,20],[18,24,11,24],[18,26,11,26],[19,6,12,8],[19,12,12,14],[19,16,12,18,"Error"],[19,21,12,23],[19,22,12,24],[19,70,12,72],[19,71,12,73],[20,4,13,4],[21,4,14,4],[21,10,14,10],[21,13,14,13,"phrase"],[21,19,14,19],[21,22,14,23,"derivePath"],[21,32,14,33],[21,36,14,39,"password"],[21,44,14,47],[21,45,14,48],[21,48,14,51,"matches"],[21,55,14,58],[22,4,15,4],[22,10,15,10],[23,6,15,12,"path"],[24,4,15,17],[24,5,15,18],[24,8,15,21],[24,12,15,21,"keyExtractPath"],[24,26,15,35],[24,27,15,35,"keyExtractPath"],[24,41,15,35],[24,43,15,36,"derivePath"],[24,53,15,46],[24,54,15,47],[25,4,16,4],[25,11,16,11],[26,6,17,8,"derivePath"],[26,16,17,18],[27,6,18,8,"password"],[27,14,18,16],[28,6,19,8,"path"],[28,10,19,12],[29,6,20,8,"phrase"],[30,4,21,4],[30,5,21,5],[31,2,22,0],[32,0,22,1],[32,3]],"functionMap":{"names":["<global>","keyExtractSuri"],"mappings":"AAA;OCK;CDgB"},"hasCjsExports":false},"type":"js/module"}]} |