PageSourceSearch

https://bigmind2.genie9.com/_next/static/chunks/80342.92a33db4746c86ef.js

js genie9.com collected 2026-09-24 10:28:50 UTC 8,950 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[80342],{80342:function(r,t){var e;!function(n,i){"use strict";void 0===(e=(function(){return n.secrets=i()}).apply(t,[]))||(r.exports=e)}(this,function(r){"use strict";function t(){c={bits:8,radix:16,minBits:3,maxBits:20,bytesPerChar:2,maxBytesPerChar:6,primitivePolynomials:[null,null,1,3,3,5,3,3,29,17,9,5,83,27,43,3,45,9,39,39,9,5,3,33,27,9,71,39,9,5,83]},m={},p=Array(1024).join("0"),d=!0,y=["nodeCryptoRandomBytes","browserCryptoGetRandomValues","testRandom"]}function e(){return!!m&&!!m.rng&&"function"==typeof m.rng}function n(r,t){var e;if(0===t||1===t)return r;if(t&&t>1024)throw Error("Padding must be multiples of no larger than 1024 bits.");return(t=t||m.bits,r&&(e=r.length%t),e)?(p+r).slice(-(t-e+r.length)):r}function i(r){var t,e,i="";for(e=r.length-1;e>=0;e--){if(isNaN(t=parseInt(r[e],16)))throw Error("Invalid hex character.");i=n(t.toString(2),4)+i}return i}function a(r){var t,e,i="";for(e=(r=n(r,4)).length;e>=4;e-=4){if(isNaN(t=parseInt(r.slice(e-4,e),2)))throw Error("Invalid binary character.");i=t.toString(16)+i}return i}function o(){return!!r&&"object"==typeof r&&("function"==typeof r.getRandomValues||"object"==typeof r.getRandomValues)&&("function"==typeof Uint32Array||"object"==typeof Uint32Array)}function s(){return"object"==typeof r&&"function"==typeof r.randomBytes}function h(t){function e(r,t,e,i){var a,o=0,s="";for(t&&(a=t.length-1);o<a||s.length<r;)s+=n(Math.abs(parseInt(t[o],e)).toString(2),i),o++;return((s=s.substr(-r)).match(/0/g)||[]).length===s.length?null:s}function i(t){var n,i=null;for(n=Math.ceil(t/8);null===i;)i=e(t,r.randomBytes(n).toString("hex"),16,4);return i}function a(t){var n,i=null;for(n=Math.ceil(t/32);null===i;)i=e(t,r.getRandomValues(new Uint32Array(n)),10,32);return i}if(t&&"testRandom"===t)return m.typeCSPRNG=t,function(r){var t,n=null;t=new Uint32Array(Math.ceil(r/32));for(var i=0;i<t.length;i++)t[i]=0x75bcd15;for(;null===n;)n=e(r,t,10,32);return n};if(t&&"nodeCryptoRandomBytes"===t)return m.typeCSPRNG=t,i;if(t&&"browserCryptoGetRandomValues"===t)return m.typeCSPRNG=t,a;if(s())return m.typeCSPRNG="nodeCryptoRandomBytes",i;if(o())return m.typeCSPRNG="browserCryptoGetRandomValues",a}function u(r,t){var e,i=[];for(t&&(r=n(r,t)),e=r.length;e>m.bits;e-=m.bits)i.push(parseInt(r.slice(e-m.bits,e),2));return i.push(parseInt(r.slice(0,e),2)),i}function f(r,t){var e,n=m.logs[r],i=0;for(e=t.length-1;e>=0;e--)i=0!==i?m.exps[(n+m.logs[i])%m.maxShares]^t[e]:t[e];return i}function l(r,t,e){var n,i,a,o,s=0;for(a=0,n=t.length;a<n;a++)if(e[a]){for(o=0,i=m.logs[e[a]];o<n;o++)if(a!==o){if(r===t[o]){i=-1;break}i=(i+m.logs[r^t[o]]-m.logs[t[a]^t[o]]+m.maxShares)%m.maxShares}s=-1===i?s:s^m.exps[i]}return s}function b(r,t,e){var n,i,a=[],o=[r];for(n=1;n<e;n++)o[n]=parseInt(m.rng(m.bits),2);for(n=1,i=t+1;n<i;n++)a[n-1]={x:n,y:f(n,o)};return a}function g(r,t,e){var i,a,o,s;if(t=parseInt(t,m.radix),i=(r=parseInt(r,10)||m.bits).toString(36).toUpperCase(),s=(o=Math.pow(2,r)-1).toString(m.radix).length,a=n(t.toString(m.radix),s),"number"!=typeof t||t%1!=0||t<1||t>o)throw Error("Share id must be an integer between 1 and "+o+", inclusive.");return i+a+e}var c,m,p,d,y,x={init:function(r,n){var i,a,o=[],s=[],h=1;if(t(),r&&("number"!=typeof r||r%1!=0||r<c.minBits||r>c.maxBits))throw Error("Number of bits must be an integer between "+c.minBits+" and "+c.maxBits+", inclusive.");if(n&&-1===y.indexOf(n))throw Error("Invalid RNG type argument : '"+n+"'");for(a=0,m.radix=c.radix,m.bits=r||c.bits,m.size=Math.pow(2,m.bits),m.maxShares=m.size-1,i=c.primitivePolynomials[m.bits];a<m.size;a++)s[a]=h,o[h]=a,(h<<=1)>=m.size&&(h^=i,h&=m.maxShares);if(m.logs=o,m.exps=s,n&&this.setRNG(n),e()||this.setRNG(),!e()||!m.bits||!m.size||!m.maxShares||
1!m.logs||!m.exps||m.logs.length!==m.size||m.exps.length!==m.size)throw Error("Initialization failed.")},combine:function(r,t){var e,o,s,h,f,b,g,c="",p=[],d=[];for(e=0,t=t||0,s=r.length;e<s;e++){if(b=this.extractShareComponents(r[e]),void 0===f)f=b.bits;else if(b.bits!==f)throw Error("Mismatched shares: Different bit settings.");if(m.bits!==f&&this.init(f),-1===p.indexOf(b.id))for(p.push(b.id),o=0,h=(g=u(i(b.data))).length;o<h;o++)d[o]=d[o]||[],d[o][p.length-1]=g[o]}for(e=0,s=d.length;e<s;e++)c=n(l(t,p,d[e]).toString(2))+c;return a(t>=1?c:c.slice(c.indexOf("1")+1))},getConfig:function(){var r={};return r.radix=m.radix,r.bits=m.bits,r.maxShares=m.maxShares,r.hasCSPRNG=e(),r.typeCSPRNG=m.typeCSPRNG,r},extractShareComponents:function(r){var t,e,n,i,a={};if((t=parseInt(r.substr(0,1),36))&&("number"!=typeof t||t%1!=0||t<c.minBits||t>c.maxBits))throw Error("Invalid share : Number of bits must be an integer between "+c.minBits+" and "+c.maxBits+", inclusive.");if(n=Math.pow(2,t)-1,(i=RegExp("^([a-kA-K3-9]{1})([a-fA-F0-9]{"+(Math.pow(2,t)-1).toString(m.radix).length+"})([a-fA-F0-9]+)$").exec(r))&&(e=parseInt(i[2],m.radix)),"number"!=typeof e||e%1!=0||e<1||e>n)throw Error("Invalid share : Share id must be an integer between 1 and "+m.maxShares+", inclusive.");if(i&&i[3])return a.bits=t,a.id=e,a.data=i[3],a;throw Error("The share data provided is invalid : "+r)},setRNG:function(r){var t="Random number generator is invalid ",e=" Supply an CSPRNG of the form function(bits){} that returns a string containing 'bits' number of random 1's and 0's.";if(r&&"string"==typeof r&&-1===y.indexOf(r))throw Error("Invalid RNG type argument : '"+r+"'");if(r||(r=h()),r&&"string"==typeof r&&(r=h(r)),d){if(r&&"function"!=typeof r)throw Error(t+"(Not a function)."+e);if(r&&"string"!=typeof r(m.bits))throw Error(t+"(Output is not a string)."+e);if(r&&!parseInt(r(m.bits),2))throw Error(t+"(Binary string output not parseable to an Integer)."+e);if(r&&r(m.bits).length>m.bits)throw Error(t+"(Output length is greater than config.bits)."+e);if(r&&r(m.bits).length<m.bits)throw Error(t+"(Output length is less than config.bits)."+e)}return m.rng=r,!0},str2hex:function(r,t){var e,i,a,o,s,h,u="";if("string"!=typeof r)throw Error("Input must be a character string.");if(t||(t=c.bytesPerChar),"number"!=typeof t||t<1||t>c.maxBytesPerChar||t%1!=0)throw Error("Bytes per character must be an integer between 1 and "+c.maxBytesPerChar+", inclusive.");for(s=0,i=Math.pow(16,e=2*t)-1,h=r.length;s<h;s++){if(isNaN(o=r[s].charCodeAt()))throw Error("Invalid character: "+r[s]);if(o>i)throw a=Math.ceil(Math.log(o+1)/Math.log(256)),Error("Invalid character code ("+o+"). Maximum allowable is 256^bytes-1 ("+i+"). To convert this character, use at least "+a+" bytes.");u=n(o.toString(16),e)+u}return u},hex2str:function(r,t){var e,i,a,o="";if("string"!=typeof r)throw Error("Input must be a hexadecimal string.");if("number"!=typeof(t=t||c.bytesPerChar)||t%1!=0||t<1||t>c.maxBytesPerChar)throw Error("Bytes per character must be an integer between 1 and "+c.maxBytesPerChar+", inclusive.");for(i=0,a=(r=n(r,e=2*t)).length;i<a;i+=e)o=String.fromCharCode(parseInt(r.slice(i,i+e),16))+o;return o},random:function(r){if("number"!=typeof r||r%1!=0||r<2||r>65536)throw Error("Number of bits must be an Integer between 1 and 65536.");return a(m.rng(r))},share:function(r,t,e,o){var s,h,f,l,c,p=Array(t),d=Array(t);if(o=o||128,"string"!=typeof r)throw Error("Secret must be a string.");if("number"!=typeof t||t%1!=0||t<2)throw Error("Number of shares must be an integer between 2 and 2^bits-1 ("+m.maxShares+"), inclusive.");if(t>m.maxShares)throw s=Math.ceil(Math.log(t+1)/Math.LN2),Error("Number of shares must be an integer between 2 and 2^bits-1 ("+m.maxShares+"), inclusive. To create "+t+" shares, use at least "+s+" bits.");if("number"!=typeof e||e%1!=0||e<2)throw Error("Threshold number of shares must be an integer between 2 and 2^bits-1 ("+m.maxShares+"), inclusive.");if(e>m.maxShares)throw s=Math.ceil(Math.log(e+1)/Math.LN2),Error("Threshold number of shares must be an integer between 2 and 2^bits-1 ("+m.maxShares+"), inclusive.  To use a threshold of "+e+", use at least "+s+" bits.");if(e>t)throw Error("Threshold number of shares was "+e+" but must be less than or equal to the "+t+" shares specified as the total to generate.");if("number"!=typeof o||o%1!=0||o<0||o>1024)throw Error("Zero-pad length must be an integer between 0 and 1024 inclusive.");for(f=0,c=(r=u(r="1"+i(r),o)).length;f<c;f++)for(l=0,h=b(r[f],t,e);l<t;l++)p[l]=p[l]||h[l].x.toString(m.radix),d[l]=n(h[l].y.toString(2))+(d[l]||"");for(f=0;f<t;f++)p[f]=g(m.bits,p[f],a(d[f]));return p},newShare:function(r,t){var e;if(r&&"string"==typeof r&&(r=parseInt(r,m.radix)),e=r.toString(m.radix),r&&e&&t&&t[0])return g(this.extractShareComponents(t[0]).bits,e,this.combine(t,r));throw Error("Invalid 'id' or 'shares' Array argument to newShare().")},_reset:t,_padLeft:n,_hex2bin:i,_bin2hex:a,_hasCryptoGetRandomValues:o,_hasCryptoRandomBytes:s,_getRNG:h,_isSetRNG:e,_splitNumStringToIntArray:u,_horner:f,_lagrange:l,_getShares:b,_constructPublicShareString:g};return x.init(),x})}}]);
2//# sourceMappingURL=80342.92a33db4746c86ef.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.