{"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, \"equals\", {\n enumerable: true,\n get: function () {\n return equals;\n }\n });\n Object.defineProperty(exports, \"coerce\", {\n enumerable: true,\n get: function () {\n return coerce;\n }\n });\n Object.defineProperty(exports, \"isBinary\", {\n enumerable: true,\n get: function () {\n return isBinary;\n }\n });\n Object.defineProperty(exports, \"fromHex\", {\n enumerable: true,\n get: function () {\n return fromHex;\n }\n });\n Object.defineProperty(exports, \"toHex\", {\n enumerable: true,\n get: function () {\n return toHex;\n }\n });\n Object.defineProperty(exports, \"fromString\", {\n enumerable: true,\n get: function () {\n return fromString;\n }\n });\n Object.defineProperty(exports, \"toString\", {\n enumerable: true,\n get: function () {\n return toString;\n }\n });\n Object.defineProperty(exports, \"empty\", {\n enumerable: true,\n get: function () {\n return empty;\n }\n });\n const empty = new Uint8Array(0);\n const toHex = d => d.reduce((hex, byte) => hex + byte.toString(16).padStart(2, '0'), '');\n const fromHex = hex => {\n const hexes = hex.match(/../g);\n return hexes ? new Uint8Array(hexes.map(b => parseInt(b, 16))) : empty;\n };\n const equals = (aa, bb) => {\n if (aa === bb) return true;\n if (aa.byteLength !== bb.byteLength) {\n return false;\n }\n for (let ii = 0; ii < aa.byteLength; ii++) {\n if (aa[ii] !== bb[ii]) {\n return false;\n }\n }\n return true;\n };\n const coerce = o => {\n if (o instanceof Uint8Array && o.constructor.name === 'Uint8Array') return o;\n if (o instanceof ArrayBuffer) return new Uint8Array(o);\n if (ArrayBuffer.isView(o)) {\n return new Uint8Array(o.buffer, o.byteOffset, o.byteLength);\n }\n throw new Error('Unknown type, must be binary type');\n };\n const isBinary = o => o instanceof ArrayBuffer || ArrayBuffer.isView(o);\n const fromString = str => new TextEncoder().encode(str);\n const toString = b => new TextDecoder().decode(b);\n});","lineCount":84,"map":[[7,2,33,0,"Object"],[7,8,33,0],[7,9,33,0,"defineProperty"],[7,23,33,0],[7,24,33,0,"exports"],[7,31,33,0],[8,4,33,0,"enumerable"],[8,14,33,0],[9,4,33,0,"get"],[9,7,33,0],[9,18,33,0,"get"],[9,19,33,0],[10,6,33,0],[10,13,34,2,"equals"],[10,19,34,8],[11,4,34,8],[12,2,34,8],[13,2,33,0,"Object"],[13,8,33,0],[13,9,33,0,"defineProperty"],[13,23,33,0],[13,24,33,0,"exports"],[13,31,33,0],[14,4,33,0,"enumerable"],[14,14,33,0],[15,4,33,0,"get"],[15,7,33,0],[15,18,33,0,"get"],[15,19,33,0],[16,6,33,0],[16,13,35,2,"coerce"],[16,19,35,8],[17,4,35,8],[18,2,35,8],[19,2,33,0,"Object"],[19,8,33,0],[19,9,33,0,"defineProperty"],[19,23,33,0],[19,24,33,0,"exports"],[19,31,33,0],[20,4,33,0,"enumerable"],[20,14,33,0],[21,4,33,0,"get"],[21,7,33,0],[21,18,33,0,"get"],[21,19,33,0],[22,6,33,0],[22,13,36,2,"isBinary"],[22,21,36,10],[23,4,36,10],[24,2,36,10],[25,2,33,0,"Object"],[25,8,33,0],[25,9,33,0,"defineProperty"],[25,23,33,0],[25,24,33,0,"exports"],[25,31,33,0],[26,4,33,0,"enumerable"],[26,14,33,0],[27,4,33,0,"get"],[27,7,33,0],[27,18,33,0,"get"],[27,19,33,0],[28,6,33,0],[28,13,37,2,"fromHex"],[28,20,37,9],[29,4,37,9],[30,2,37,9],[31,2,33,0,"Object"],[31,8,33,0],[31,9,33,0,"defineProperty"],[31,23,33,0],[31,24,33,0,"exports"],[31,31,33,0],[32,4,33,0,"enumerable"],[32,14,33,0],[33,4,33,0,"get"],[33,7,33,0],[33,18,33,0,"get"],[33,19,33,0],[34,6,33,0],[34,13,38,2,"toHex"],[34,18,38,7],[35,4,38,7],[36,2,38,7],[37,2,33,0,"Object"],[37,8,33,0],[37,9,33,0,"defineProperty"],[37,23,33,0],[37,24,33,0,"exports"],[37,31,33,0],[38,4,33,0,"enumerable"],[38,14,33,0],[39,4,33,0,"get"],[39,7,33,0],[39,18,33,0,"get"],[39,19,33,0],[40,6,33,0],[40,13,39,2,"fromString"],[40,23,39,12],[41,4,39,12],[42,2,39,12],[43,2,33,0,"Object"],[43,8,33,0],[43,9,33,0,"defineProperty"],[43,23,33,0],[43,24,33,0,"exports"],[43,31,33,0],[44,4,33,0,"enumerable"],[44,14,33,0],[45,4,33,0,"get"],[45,7,33,0],[45,18,33,0,"get"],[45,19,33,0],[46,6,33,0],[46,13,40,2,"toString"],[46,21,40,10],[47,4,40,10],[48,2,40,10],[49,2,33,0,"Object"],[49,8,33,0],[49,9,33,0,"defineProperty"],[49,23,33,0],[49,24,33,0,"exports"],[49,31,33,0],[50,4,33,0,"enumerable"],[50,14,33,0],[51,4,33,0,"get"],[51,7,33,0],[51,18,33,0,"get"],[51,19,33,0],[52,6,33,0],[52,13,41,2,"empty"],[52,18,41,7],[53,4,41,7],[54,2,41,7],[55,2,1,0],[55,8,1,6,"empty"],[55,13,1,11],[55,16,1,14],[55,20,1,18,"Uint8Array"],[55,30,1,28],[55,31,1,29],[55,32,1,30],[55,33,1,31],[56,2,2,0],[56,8,2,6,"toHex"],[56,13,2,11],[56,16,2,14,"d"],[56,17,2,15],[56,21,2,19,"d"],[56,22,2,20],[56,23,2,21,"reduce"],[56,29,2,27],[56,30,2,28],[56,31,2,29,"hex"],[56,34,2,32],[56,36,2,34,"byte"],[56,40,2,38],[56,45,2,43,"hex"],[56,48,2,46],[56,51,2,49,"byte"],[56,55,2,53],[56,56,2,54,"toString"],[56,64,2,62],[56,65,2,63],[56,67,2,65],[56,68,2,66],[56,69,2,67,"padStart"],[56,77,2,75],[56,78,2,76],[56,79,2,77],[56,81,2,79],[56,84,2,82],[56,85,2,83],[56,87,2,85],[56,89,2,87],[56,90,2,88],[57,2,3,0],[57,8,3,6,"fromHex"],[57,15,3,13],[57,18,3,16,"hex"],[57,21,3,19],[57,25,3,23],[58,4,4,2],[58,10,4,8,"hexes"],[58,15,4,13],[58,18,4,16,"hex"],[58,21,4,19],[58,22,4,20,"match"],[58,27,4,25],[58,28,4,26],[58,33,4,31],[58,34,4,32],[59,4,5,2],[59,11,5,9,"hexes"],[59,16,5,14],[59,19,5,17],[59,23,5,21,"Uint8Array"],[59,33,5,31],[59,34,5,32,"hexes"],[59,39,5,37],[59,40,5,38,"map"],[59,43,5,41],[59,44,5,42,"b"],[59,45,5,43],[59,49,5,47,"parseInt"],[59,57,5,55],[59,58,5,56,"b"],[59,59,5,57],[59,61,5,59],[59,63,5,61],[59,64,5,62],[59,65,5,63],[59,66,5,64],[59,69,5,67,"empty"],[59,74,5,72],[60,2,6,0],[60,3,6,1],[61,2,7,0],[61,8,7,6,"equals"],[61,14,7,12],[61,17,7,15,"equals"],[61,18,7,16,"aa"],[61,20,7,18],[61,22,7,20,"bb"],[61,24,7,22],[61,29,7,27],[62,4,8,2],[62,8,8,6,"aa"],[62,10,8,8],[62,15,8,13,"bb"],[62,17,8,15],[62,19,9,4],[62,26,9,11],[62,30,9,15],[63,4,10,2],[63,8,10,6,"aa"],[63,10,10,8],[63,11,10,9,"byteLength"],[63,21,10,19],[63,26,10,24,"bb"],[63,28,10,26],[63,29,10,27,"byteLength"],[63,39,10,37],[63,41,10,39],[64,6,11,4],[64,13,11,11],[64,18,11,16],[65,4,12,2],[66,4,13,2],[66,9,13,7],[66,13,13,11,"ii"],[66,15,13,13],[66,18,13,16],[66,19,13,17],[66,21,13,19,"ii"],[66,23,13,21],[66,26,13,24,"aa"],[66,28,13,26],[66,29,13,27,"byteLength"],[66,39,13,37],[66,41,13,39,"ii"],[66,43,13,41],[66,45,13,43],[66,47,13,45],[67,6,14,4],[67,10,14,8,"aa"],[67,12,14,10],[67,13,14,11,"ii"],[67,15,14,13],[67,16,14,14],[67,21,14,19,"bb"],[67,23,14,21],[67,24,14,22,"ii"],[67,26,14,24],[67,27,14,25],[67,29,14,27],[68,8,15,6],[68,15,15,13],[68,20,15,18],[69,6,16,4],[70,4,17,2],[71,4,18,2],[71,11,18,9],[71,15,18,13],[72,2,19,0],[72,3,19,1],[73,2,20,0],[73,8,20,6,"coerce"],[73,14,20,12],[73,17,20,15,"o"],[73,18,20,16],[73,22,20,20],[74,4,21,2],[74,8,21,6,"o"],[74,9,21,7],[74,21,21,19,"Uint8Array"],[74,31,21,29],[74,35,21,33,"o"],[74,36,21,34],[74,37,21,35,"constructor"],[74,48,21,46],[74,49,21,47,"name"],[74,53,21,51],[74,58,21,56],[74,70,21,68],[74,72,22,4],[74,79,22,11,"o"],[74,80,22,12],[75,4,23,2],[75,8,23,6,"o"],[75,9,23,7],[75,21,23,19,"ArrayBuffer"],[75,32,23,30],[75,34,24,4],[75,41,24,11],[75,45,24,15,"Uint8Array"],[75,55,24,25],[75,56,24,26,"o"],[75,57,24,27],[75,58,24,28],[76,4,25,2],[76,8,25,6,"ArrayBuffer"],[76,19,25,17],[76,20,25,18,"isView"],[76,26,25,24],[76,27,25,25,"o"],[76,28,25,26],[76,29,25,27],[76,31,25,29],[77,6,26,4],[77,13,26,11],[77,17,26,15,"Uint8Array"],[77,27,26,25],[77,28,26,26,"o"],[77,29,26,27],[77,30,26,28,"buffer"],[77,36,26,34],[77,38,26,36,"o"],[77,39,26,37],[77,40,26,38,"byteOffset"],[77,50,26,48],[77,52,26,50,"o"],[77,53,26,51],[77,54,26,52,"byteLength"],[77,64,26,62],[77,65,26,63],[78,4,27,2],[79,4,28,2],[79,10,28,8],[79,14,28,12,"Error"],[79,19,28,17],[79,20,28,18],[79,55,28,53],[79,56,28,54],[80,2,29,0],[80,3,29,1],[81,2,30,0],[81,8,30,6,"isBinary"],[81,16,30,14],[81,19,30,17,"o"],[81,20,30,18],[81,24,30,22,"o"],[81,25,30,23],[81,37,30,35,"ArrayBuffer"],[81,48,30,46],[81,52,30,50,"ArrayBuffer"],[81,63,30,61],[81,64,30,62,"isView"],[81,70,30,68],[81,71,30,69,"o"],[81,72,30,70],[81,73,30,71],[82,2,31,0],[82,8,31,6,"fromString"],[82,18,31,16],[82,21,31,19,"str"],[82,24,31,22],[82,28,31,26],[82,32,31,30,"TextEncoder"],[82,43,31,41],[82,44,31,42],[82,45,31,43],[82,46,31,44,"encode"],[82,52,31,50],[82,53,31,51,"str"],[82,56,31,54],[82,57,31,55],[83,2,32,0],[83,8,32,6,"toString"],[83,16,32,14],[83,19,32,17,"b"],[83,20,32,18],[83,24,32,22],[83,28,32,26,"TextDecoder"],[83,39,32,37],[83,40,32,38],[83,41,32,39],[83,42,32,40,"decode"],[83,48,32,46],[83,49,32,47,"b"],[83,50,32,48],[83,51,32,49],[84,0,32,50],[84,3]],"functionMap":{"names":["","toHex","d.reduce$argument_0","fromHex","hexes.map$argument_0","equals","coerce","isBinary","fromString","toString"],"mappings":"AAA;cCC,cC,uDD,KD;gBGC;0CCE,oBD;CHC;eKC;CLY;eMC;CNS;iBOC,sDP;mBQC,oCR;iBSC,gCT"},"hasCjsExports":false},"type":"js/module"}]}