auto-commit for e1b77dbf-09c7-4e17-9a19-2e6f489c3c66

This commit is contained in:
emergent-agent-e1
2025-11-07 20:14:32 +00:00
parent 0f29efcf0e
commit b2cd315456
4434 changed files with 4434 additions and 1 deletions
@@ -0,0 +1 @@
{"dependencies":[{"name":"../random/asU8a.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":19,"index":131},"end":{"line":4,"column":48,"index":160}}],"key":"2ZSy5c3i9e+6e3ao+1xxUHMwhTg=","exportNames":["*"],"imports":1}},{"name":"./tweetnacl.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":23,"index":185},"end":{"line":5,"column":48,"index":210}}],"key":"syY+anY7mApUI/b8gV91BzpQysA=","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.naclEncrypt = naclEncrypt;\n const asU8a_js_1 = require(_dependencyMap[0], \"../random/asU8a.js\");\n const tweetnacl_js_1 = require(_dependencyMap[1], \"./tweetnacl.js\");\n /**\n * @name naclEncrypt\n * @summary Encrypts a message using the supplied secretKey and nonce\n * @description\n * Returns an encrypted message, using the `secretKey` and `nonce`. If the `nonce` was not supplied, a random value is generated.\n * @example\n * <BR>\n *\n * ```javascript\n * import { naclEncrypt } from '@polkadot/util-crypto';\n *\n * naclEncrypt([...], [...]); // => [...]\n * ```\n */\n function naclEncrypt(message, secret, nonce = (0, asU8a_js_1.randomAsU8a)(24)) {\n return {\n encrypted: (0, tweetnacl_js_1.naclSecretbox)(message, nonce, secret),\n nonce\n };\n }\n});","lineCount":30,"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,"naclEncrypt"],[7,21,3,19],[7,24,3,22,"naclEncrypt"],[7,35,3,33],[8,2,4,0],[8,8,4,6,"asU8a_js_1"],[8,18,4,16],[8,21,4,19,"require"],[8,28,4,26],[8,29,4,26,"_dependencyMap"],[8,43,4,26],[8,68,4,47],[8,69,4,48],[9,2,5,0],[9,8,5,6,"tweetnacl_js_1"],[9,22,5,20],[9,25,5,23,"require"],[9,32,5,30],[9,33,5,30,"_dependencyMap"],[9,47,5,30],[9,68,5,47],[9,69,5,48],[10,2,6,0],[11,0,7,0],[12,0,8,0],[13,0,9,0],[14,0,10,0],[15,0,11,0],[16,0,12,0],[17,0,13,0],[18,0,14,0],[19,0,15,0],[20,0,16,0],[21,0,17,0],[22,0,18,0],[23,0,19,0],[24,2,20,0],[24,11,20,9,"naclEncrypt"],[24,22,20,20,"naclEncrypt"],[24,23,20,21,"message"],[24,30,20,28],[24,32,20,30,"secret"],[24,38,20,36],[24,40,20,38,"nonce"],[24,45,20,43],[24,48,20,46],[24,49,20,47],[24,50,20,48],[24,52,20,50,"asU8a_js_1"],[24,62,20,60],[24,63,20,61,"randomAsU8a"],[24,74,20,72],[24,76,20,74],[24,78,20,76],[24,79,20,77],[24,81,20,79],[25,4,21,4],[25,11,21,11],[26,6,22,8,"encrypted"],[26,15,22,17],[26,17,22,19],[26,18,22,20],[26,19,22,21],[26,21,22,23,"tweetnacl_js_1"],[26,35,22,37],[26,36,22,38,"naclSecretbox"],[26,49,22,51],[26,51,22,53,"message"],[26,58,22,60],[26,60,22,62,"nonce"],[26,65,22,67],[26,67,22,69,"secret"],[26,73,22,75],[26,74,22,76],[27,6,23,8,"nonce"],[28,4,24,4],[28,5,24,5],[29,2,25,0],[30,0,25,1],[30,3]],"functionMap":{"names":["<global>","naclEncrypt"],"mappings":"AAA;ACmB;CDK"},"hasCjsExports":true},"type":"js/module"}]}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
{"dependencies":[{"name":"react","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":3,"column":0,"index":15},"end":{"line":3,"column":31,"index":46}}],"key":"RtGiGa+/H7VrI7GDQDLhO1UbpU8=","exportNames":["*"],"imports":1}},{"name":"./PreventRemoveContext.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":4,"column":0,"index":47},"end":{"line":4,"column":65,"index":112}}],"key":"gocprUc09OHt9JxWdj0Uy4jHmps=","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 function _interopNamespace(e) {\n if (e && e.__esModule) return e;\n var n = {};\n if (e) Object.keys(e).forEach(function (k) {\n var d = Object.getOwnPropertyDescriptor(e, k);\n Object.defineProperty(n, k, d.get ? d : {\n enumerable: true,\n get: function () {\n return e[k];\n }\n });\n });\n n.default = e;\n return n;\n }\n exports.usePreventRemoveContext = usePreventRemoveContext;\n var _react = require(_dependencyMap[0], \"react\");\n var React = _interopNamespace(_react);\n var _PreventRemoveContextJs = require(_dependencyMap[1], \"./PreventRemoveContext.js\");\n function usePreventRemoveContext() {\n const value = React.useContext(_PreventRemoveContextJs.PreventRemoveContext);\n if (value == null) {\n throw new Error(\"Couldn't find the prevent remove context. Is your component inside NavigationContent?\");\n }\n return value;\n }\n});","lineCount":33,"map":[[2,2,1,0],[2,14,1,12],[4,2,1,13,"Object"],[4,8,1,13],[4,9,1,13,"defineProperty"],[4,23,1,13],[4,24,1,13,"exports"],[4,31,1,13],[5,4,1,13,"value"],[5,9,1,13],[6,2,1,13],[7,2,1,13],[7,11,1,13,"_interopNamespace"],[7,29,1,13,"e"],[7,30,1,13],[8,4,1,13],[8,8,1,13,"e"],[8,9,1,13],[8,13,1,13,"e"],[8,14,1,13],[8,15,1,13,"__esModule"],[8,25,1,13],[8,34,1,13,"e"],[8,35,1,13],[9,4,1,13],[9,8,1,13,"n"],[9,9,1,13],[10,4,1,13],[10,8,1,13,"e"],[10,9,1,13],[10,11,1,13,"Object"],[10,17,1,13],[10,18,1,13,"keys"],[10,22,1,13],[10,23,1,13,"e"],[10,24,1,13],[10,26,1,13,"forEach"],[10,33,1,13],[10,44,1,13,"k"],[10,45,1,13],[11,6,1,13],[11,10,1,13,"d"],[11,11,1,13],[11,14,1,13,"Object"],[11,20,1,13],[11,21,1,13,"getOwnPropertyDescriptor"],[11,45,1,13],[11,46,1,13,"e"],[11,47,1,13],[11,49,1,13,"k"],[11,50,1,13],[12,6,1,13,"Object"],[12,12,1,13],[12,13,1,13,"defineProperty"],[12,27,1,13],[12,28,1,13,"n"],[12,29,1,13],[12,31,1,13,"k"],[12,32,1,13],[12,34,1,13,"d"],[12,35,1,13],[12,36,1,13,"get"],[12,39,1,13],[12,42,1,13,"d"],[12,43,1,13],[13,8,1,13,"enumerable"],[13,18,1,13],[14,8,1,13,"get"],[14,11,1,13],[14,22,1,13,"get"],[14,23,1,13],[15,10,1,13],[15,17,1,13,"e"],[15,18,1,13],[15,19,1,13,"k"],[15,20,1,13],[16,8,1,13],[17,6,1,13],[18,4,1,13],[19,4,1,13,"n"],[19,5,1,13],[19,6,1,13,"default"],[19,13,1,13],[19,16,1,13,"e"],[19,17,1,13],[20,4,1,13],[20,11,1,13,"n"],[20,12,1,13],[21,2,1,13],[22,2,5,0,"exports"],[22,9,5,0],[22,10,5,0,"usePreventRemoveContext"],[22,33,5,0],[22,36,5,0,"usePreventRemoveContext"],[22,59,5,0],[23,2,3,0],[23,6,3,0,"_react"],[23,12,3,0],[23,15,3,0,"require"],[23,22,3,0],[23,23,3,0,"_dependencyMap"],[23,37,3,0],[24,2,3,0],[24,6,3,0,"React"],[24,11,3,0],[24,14,3,0,"_interopNamespace"],[24,31,3,0],[24,32,3,0,"_react"],[24,38,3,0],[25,2,4,0],[25,6,4,0,"_PreventRemoveContextJs"],[25,29,4,0],[25,32,4,0,"require"],[25,39,4,0],[25,40,4,0,"_dependencyMap"],[25,54,4,0],[26,2,5,7],[26,11,5,16,"usePreventRemoveContext"],[26,34,5,39,"usePreventRemoveContext"],[26,35,5,39],[26,37,5,42],[27,4,6,2],[27,10,6,8,"value"],[27,15,6,13],[27,18,6,16,"React"],[27,23,6,21],[27,24,6,22,"useContext"],[27,34,6,32],[27,35,6,33,"PreventRemoveContext"],[27,58,6,53],[27,59,6,53,"PreventRemoveContext"],[27,79,6,53],[27,80,6,54],[28,4,7,2],[28,8,7,6,"value"],[28,13,7,11],[28,17,7,15],[28,21,7,19],[28,23,7,21],[29,6,8,4],[29,12,8,10],[29,16,8,14,"Error"],[29,21,8,19],[29,22,8,20],[29,109,8,107],[29,110,8,108],[30,4,9,2],[31,4,10,2],[31,11,10,9,"value"],[31,16,10,14],[32,2,11,0],[33,0,11,1],[33,3]],"functionMap":{"names":["<global>","usePreventRemoveContext"],"mappings":"AAA;OCI;CDM"},"hasCjsExports":false},"type":"js/module"}]}
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
{"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 Object.defineProperty(exports, \"VALUE_BYTES_LIMIT\", {\n enumerable: true,\n get: function () {\n return VALUE_BYTES_LIMIT;\n }\n });\n exports.byteCountOverLimit = byteCountOverLimit;\n const VALUE_BYTES_LIMIT = 2048;\n // note this probably could be JS-engine dependent\n // inspired by https://stackoverflow.com/a/39488643\n function byteCountOverLimit(value, limit) {\n let bytes = 0;\n for (let i = 0; i < value.length; i++) {\n const codePoint = value.charCodeAt(i);\n // Lone surrogates cannot be passed to encodeURI\n if (codePoint >= 0xd800 && codePoint < 0xe000) {\n if (codePoint < 0xdc00 && i + 1 < value.length) {\n const next = value.charCodeAt(i + 1);\n if (next >= 0xdc00 && next < 0xe000) {\n bytes += 4;\n if (bytes > limit) {\n return true;\n }\n i++;\n continue;\n }\n }\n }\n bytes += codePoint < 0x80 ? 1 : codePoint < 0x800 ? 2 : 3;\n if (bytes > limit) {\n return true;\n }\n }\n return bytes > limit;\n }\n});","lineCount":42,"map":[[7,2,1,0,"Object"],[7,8,1,0],[7,9,1,0,"defineProperty"],[7,23,1,0],[7,24,1,0,"exports"],[7,31,1,0],[8,4,1,0,"enumerable"],[8,14,1,0],[9,4,1,0,"get"],[9,7,1,0],[9,18,1,0,"get"],[9,19,1,0],[10,6,1,0],[10,13,1,0,"VALUE_BYTES_LIMIT"],[10,30,1,0],[11,4,1,0],[12,2,1,0],[13,2,4,0,"exports"],[13,9,4,0],[13,10,4,0,"byteCountOverLimit"],[13,28,4,0],[13,31,4,0,"byteCountOverLimit"],[13,49,4,0],[14,2,1,7],[14,8,1,13,"VALUE_BYTES_LIMIT"],[14,25,1,30],[14,28,1,33],[14,32,1,37],[15,2,2,0],[16,2,3,0],[17,2,4,7],[17,11,4,16,"byteCountOverLimit"],[17,29,4,34,"byteCountOverLimit"],[17,30,4,35,"value"],[17,35,4,40],[17,37,4,42,"limit"],[17,42,4,47],[17,44,4,49],[18,4,5,4],[18,8,5,8,"bytes"],[18,13,5,13],[18,16,5,16],[18,17,5,17],[19,4,6,4],[19,9,6,9],[19,13,6,13,"i"],[19,14,6,14],[19,17,6,17],[19,18,6,18],[19,20,6,20,"i"],[19,21,6,21],[19,24,6,24,"value"],[19,29,6,29],[19,30,6,30,"length"],[19,36,6,36],[19,38,6,38,"i"],[19,39,6,39],[19,41,6,41],[19,43,6,43],[20,6,7,8],[20,12,7,14,"codePoint"],[20,21,7,23],[20,24,7,26,"value"],[20,29,7,31],[20,30,7,32,"charCodeAt"],[20,40,7,42],[20,41,7,43,"i"],[20,42,7,44],[20,43,7,45],[21,6,8,8],[22,6,9,8],[22,10,9,12,"codePoint"],[22,19,9,21],[22,23,9,25],[22,29,9,31],[22,33,9,35,"codePoint"],[22,42,9,44],[22,45,9,47],[22,51,9,53],[22,53,9,55],[23,8,10,12],[23,12,10,16,"codePoint"],[23,21,10,25],[23,24,10,28],[23,30,10,34],[23,34,10,38,"i"],[23,35,10,39],[23,38,10,42],[23,39,10,43],[23,42,10,46,"value"],[23,47,10,51],[23,48,10,52,"length"],[23,54,10,58],[23,56,10,60],[24,10,11,16],[24,16,11,22,"next"],[24,20,11,26],[24,23,11,29,"value"],[24,28,11,34],[24,29,11,35,"charCodeAt"],[24,39,11,45],[24,40,11,46,"i"],[24,41,11,47],[24,44,11,50],[24,45,11,51],[24,46,11,52],[25,10,12,16],[25,14,12,20,"next"],[25,18,12,24],[25,22,12,28],[25,28,12,34],[25,32,12,38,"next"],[25,36,12,42],[25,39,12,45],[25,45,12,51],[25,47,12,53],[26,12,13,20,"bytes"],[26,17,13,25],[26,21,13,29],[26,22,13,30],[27,12,14,20],[27,16,14,24,"bytes"],[27,21,14,29],[27,24,14,32,"limit"],[27,29,14,37],[27,31,14,39],[28,14,15,24],[28,21,15,31],[28,25,15,35],[29,12,16,20],[30,12,17,20,"i"],[30,13,17,21],[30,15,17,23],[31,12,18,20],[32,10,19,16],[33,8,20,12],[34,6,21,8],[35,6,22,8,"bytes"],[35,11,22,13],[35,15,22,17,"codePoint"],[35,24,22,26],[35,27,22,29],[35,31,22,33],[35,34,22,36],[35,35,22,37],[35,38,22,40,"codePoint"],[35,47,22,49],[35,50,22,52],[35,55,22,57],[35,58,22,60],[35,59,22,61],[35,62,22,64],[35,63,22,65],[36,6,23,8],[36,10,23,12,"bytes"],[36,15,23,17],[36,18,23,20,"limit"],[36,23,23,25],[36,25,23,27],[37,8,24,12],[37,15,24,19],[37,19,24,23],[38,6,25,8],[39,4,26,4],[40,4,27,4],[40,11,27,11,"bytes"],[40,16,27,16],[40,19,27,19,"limit"],[40,24,27,24],[41,2,28,0],[42,0,28,1],[42,3]],"functionMap":{"names":["<global>","byteCountOverLimit"],"mappings":"AAA;OCG;CDwB"},"hasCjsExports":false},"type":"js/module"}]}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long