auto-commit for f8470fe1-4ce5-4123-a3e6-0b710ab3390a

This commit is contained in:
emergent-agent-e1
2025-11-08 07:19:17 +00:00
parent 92245c9124
commit dd2549e54a
1911 changed files with 1911 additions and 0 deletions
@@ -0,0 +1 @@
{"dependencies":[{"name":"../bi/helpers.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":21,"index":138},"end":{"line":4,"column":48,"index":165}}],"key":"YTaefAc6AXfUZlXh4IInaQzrO+g=","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.bnMin = exports.bnMax = void 0;\n const helpers_js_1 = require(_dependencyMap[0], \"../bi/helpers.js\");\n /**\n * @name bnMax\n * @summary Finds and returns the highest value in an array of BNs.\n * @example\n * <BR>\n *\n * ```javascript\n * import BN from 'bn.js';\n * import { bnMax } from '@polkadot/util';\n *\n * bnMax([new BN(1), new BN(3), new BN(2)]).toString(); // => '3'\n * ```\n */\n exports.bnMax = (0, helpers_js_1.createCmp)((a, b) => a.gt(b));\n /**\n * @name bnMin\n * @summary Finds and returns the smallest value in an array of BNs.\n * @example\n * <BR>\n *\n * ```javascript\n * import BN from 'bn.js';\n * import { bnMin } from '@polkadot/util';\n *\n * bnMin([new BN(1), new BN(3), new BN(2)]).toString(); // => '1'\n * ```\n */\n exports.bnMin = (0, helpers_js_1.createCmp)((a, b) => a.lt(b));\n});","lineCount":37,"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,"bnMin"],[7,15,3,13],[7,18,3,16,"exports"],[7,25,3,23],[7,26,3,24,"bnMax"],[7,31,3,29],[7,34,3,32],[7,39,3,37],[7,40,3,38],[8,2,4,0],[8,8,4,6,"helpers_js_1"],[8,20,4,18],[8,23,4,21,"require"],[8,30,4,28],[8,31,4,28,"_dependencyMap"],[8,45,4,28],[8,68,4,47],[8,69,4,48],[9,2,5,0],[10,0,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,2,18,0,"exports"],[22,9,18,7],[22,10,18,8,"bnMax"],[22,15,18,13],[22,18,18,16],[22,19,18,17],[22,20,18,18],[22,22,18,20,"helpers_js_1"],[22,34,18,32],[22,35,18,33,"createCmp"],[22,44,18,42],[22,46,18,44],[22,47,18,45,"a"],[22,48,18,46],[22,50,18,48,"b"],[22,51,18,49],[22,56,18,54,"a"],[22,57,18,55],[22,58,18,56,"gt"],[22,60,18,58],[22,61,18,59,"b"],[22,62,18,60],[22,63,18,61],[22,64,18,62],[23,2,19,0],[24,0,20,0],[25,0,21,0],[26,0,22,0],[27,0,23,0],[28,0,24,0],[29,0,25,0],[30,0,26,0],[31,0,27,0],[32,0,28,0],[33,0,29,0],[34,0,30,0],[35,0,31,0],[36,2,32,0,"exports"],[36,9,32,7],[36,10,32,8,"bnMin"],[36,15,32,13],[36,18,32,16],[36,19,32,17],[36,20,32,18],[36,22,32,20,"helpers_js_1"],[36,34,32,32],[36,35,32,33,"createCmp"],[36,44,32,42],[36,46,32,44],[36,47,32,45,"a"],[36,48,32,46],[36,50,32,48,"b"],[36,51,32,49],[36,56,32,54,"a"],[36,57,32,55],[36,58,32,56,"lt"],[36,60,32,58],[36,61,32,59,"b"],[36,62,32,60],[36,63,32,61],[36,64,32,62],[37,0,32,63],[37,3]],"functionMap":{"names":["<global>","<anonymous>"],"mappings":"AAA;4CCiB,iBD;4CCc,iBD"},"hasCjsExports":true},"type":"js/module"}]}
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":1,"column":0,"index":0},"end":{"line":1,"column":44,"index":44}}],"key":"RtGiGa+/H7VrI7GDQDLhO1UbpU8=","exportNames":["*"],"imports":1}},{"name":"./Asset","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":45},"end":{"line":2,"column":32,"index":77}}],"key":"TwnMoPBJu+ST6a0NSE4l343cBbk=","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.useAssets = useAssets;\n var _react = require(_dependencyMap[0], \"react\");\n var _Asset = require(_dependencyMap[1], \"./Asset\");\n // @needsAudit\n /**\n * Downloads and stores one or more assets locally.\n * After the assets are loaded, this hook returns a list of asset instances.\n * If something went wrong when loading the assets, an error is returned.\n *\n * > Note, the assets are not \"reloaded\" when you dynamically change the asset list.\n *\n * @return Returns an array containing:\n * - on the first position, a list of all loaded assets. If they aren't loaded yet, this value is\n * `undefined`.\n * - on the second position, an error which encountered when loading the assets. If there was no\n * error, this value is `undefined`.\n *\n * @example\n * ```tsx\n * const [assets, error] = useAssets([require('path/to/asset.jpg'), require('path/to/other.png')]);\n *\n * return assets ? <Image source={assets[0]} /> : null;\n * ```\n */\n function useAssets(moduleIds) {\n const [assets, setAssets] = (0, _react.useState)();\n const [error, setError] = (0, _react.useState)();\n (0, _react.useEffect)(() => {\n _Asset.Asset.loadAsync(moduleIds).then(setAssets).catch(setError);\n }, []);\n return [assets, error];\n }\n});","lineCount":39,"map":[[7,2,24,0,"exports"],[7,9,24,0],[7,10,24,0,"useAssets"],[7,19,24,0],[7,22,24,0,"useAssets"],[7,31,24,0],[8,2,1,0],[8,6,1,0,"_react"],[8,12,1,0],[8,15,1,0,"require"],[8,22,1,0],[8,23,1,0,"_dependencyMap"],[8,37,1,0],[9,2,2,0],[9,6,2,0,"_Asset"],[9,12,2,0],[9,15,2,0,"require"],[9,22,2,0],[9,23,2,0,"_dependencyMap"],[9,37,2,0],[10,2,3,0],[11,2,4,0],[12,0,5,0],[13,0,6,0],[14,0,7,0],[15,0,8,0],[16,0,9,0],[17,0,10,0],[18,0,11,0],[19,0,12,0],[20,0,13,0],[21,0,14,0],[22,0,15,0],[23,0,16,0],[24,0,17,0],[25,0,18,0],[26,0,19,0],[27,0,20,0],[28,0,21,0],[29,0,22,0],[30,0,23,0],[31,2,24,7],[31,11,24,16,"useAssets"],[31,20,24,25,"useAssets"],[31,21,24,26,"moduleIds"],[31,30,24,35],[31,32,24,37],[32,4,25,4],[32,10,25,10],[32,11,25,11,"assets"],[32,17,25,17],[32,19,25,19,"setAssets"],[32,28,25,28],[32,29,25,29],[32,32,25,32],[32,36,25,32,"useState"],[32,42,25,40],[32,43,25,40,"useState"],[32,51,25,40],[32,53,25,41],[32,54,25,42],[33,4,26,4],[33,10,26,10],[33,11,26,11,"error"],[33,16,26,16],[33,18,26,18,"setError"],[33,26,26,26],[33,27,26,27],[33,30,26,30],[33,34,26,30,"useState"],[33,40,26,38],[33,41,26,38,"useState"],[33,49,26,38],[33,51,26,39],[33,52,26,40],[34,4,27,4],[34,8,27,4,"useEffect"],[34,14,27,13],[34,15,27,13,"useEffect"],[34,24,27,13],[34,26,27,14],[34,32,27,20],[35,6,28,8,"Asset"],[35,12,28,13],[35,13,28,13,"Asset"],[35,18,28,13],[35,19,28,14,"loadAsync"],[35,28,28,23],[35,29,28,24,"moduleIds"],[35,38,28,33],[35,39,28,34],[35,40,28,35,"then"],[35,44,28,39],[35,45,28,40,"setAssets"],[35,54,28,49],[35,55,28,50],[35,56,28,51,"catch"],[35,61,28,56],[35,62,28,57,"setError"],[35,70,28,65],[35,71,28,66],[36,4,29,4],[36,5,29,5],[36,7,29,7],[36,9,29,9],[36,10,29,10],[37,4,30,4],[37,11,30,11],[37,12,30,12,"assets"],[37,18,30,18],[37,20,30,20,"error"],[37,25,30,25],[37,26,30,26],[38,2,31,0],[39,0,31,1],[39,3]],"functionMap":{"names":["<global>","useAssets","useEffect$argument_0"],"mappings":"AAA;OCuB;cCG;KDE;CDE"},"hasCjsExports":false},"type":"js/module"}]}