local-id-scan-journey
Version:
A React component for GBG ID verification and document scanning with bundled SDK
3 lines • 16.1 kB
JavaScript
/*! For license information please see vendor.hash.js.9a08305c13c240a0f2eb.js.LICENSE.txt */
(this.webpackChunkGBG_Idscan=this.webpackChunkGBG_Idscan||[]).push([[112],{1911:(t,i,h)=>{"use strict";var n=h(7426),r=h(7766);function s(){if(!(this instanceof s))return new s;r.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(s,r),t.exports=s,s.blockSize=1024,s.outSize=384,s.hmacStrength=192,s.padLength=128,s.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},2287:(t,i,h)=>{"use strict";var n=h(7426),r=h(6166),s=h(6225),e=h(3349),o=n.sum32,u=n.sum32_4,a=n.sum32_5,c=s.ch32,l=s.maj32,f=s.s0_256,g=s.s1_256,p=s.g0_256,d=s.g1_256,_=r.BlockHash,v=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function m(){if(!(this instanceof m))return new m;_.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}n.inherits(m,_),t.exports=m,m.blockSize=512,m.outSize=256,m.hmacStrength=192,m.padLength=64,m.prototype._update=function(t,i){for(var h=this.W,n=0;n<16;n++)h[n]=t[i+n];for(;n<h.length;n++)h[n]=u(d(h[n-2]),h[n-7],p(h[n-15]),h[n-16]);var r=this.h[0],s=this.h[1],_=this.h[2],v=this.h[3],m=this.h[4],S=this.h[5],k=this.h[6],b=this.h[7];for(e(this.k.length===h.length),n=0;n<h.length;n++){var y=a(b,g(m),c(m,S,k),this.k[n],h[n]),z=o(f(r),l(r,s,_));b=k,k=S,S=m,m=o(v,y),v=_,_=s,s=r,r=o(y,z)}this.h[0]=o(this.h[0],r),this.h[1]=o(this.h[1],s),this.h[2]=o(this.h[2],_),this.h[3]=o(this.h[3],v),this.h[4]=o(this.h[4],m),this.h[5]=o(this.h[5],S),this.h[6]=o(this.h[6],k),this.h[7]=o(this.h[7],b)},m.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},3917:(t,i,h)=>{"use strict";var n=h(7426),r=h(6166),s=h(6225),e=n.rotl32,o=n.sum32,u=n.sum32_5,a=s.ft_1,c=r.BlockHash,l=[1518500249,1859775393,2400959708,3395469782];function f(){if(!(this instanceof f))return new f;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(f,c),t.exports=f,f.blockSize=512,f.outSize=160,f.hmacStrength=80,f.padLength=64,f.prototype._update=function(t,i){for(var h=this.W,n=0;n<16;n++)h[n]=t[i+n];for(;n<h.length;n++)h[n]=e(h[n-3]^h[n-8]^h[n-14]^h[n-16],1);var r=this.h[0],s=this.h[1],c=this.h[2],f=this.h[3],g=this.h[4];for(n=0;n<h.length;n++){var p=~~(n/20),d=u(e(r,5),a(p,s,c,f),g,h[n],l[p]);g=f,f=c,c=e(s,30),s=r,r=d}this.h[0]=o(this.h[0],r),this.h[1]=o(this.h[1],s),this.h[2]=o(this.h[2],c),this.h[3]=o(this.h[3],f),this.h[4]=o(this.h[4],g)},f.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},5333:(t,i,h)=>{"use strict";var n=h(7426),r=h(2287);function s(){if(!(this instanceof s))return new s;r.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(s,r),t.exports=s,s.blockSize=512,s.outSize=224,s.hmacStrength=192,s.padLength=64,s.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},6166:(t,i,h)=>{"use strict";var n=h(7426),r=h(3349);function s(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}i.BlockHash=s,s.prototype.update=function(t,i){if(t=n.toArray(t,i),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var h=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-h,t.length),0===this.pending.length&&(this.pending=null),t=n.join32(t,0,t.length-h,this.endian);for(var r=0;r<t.length;r+=this._delta32)this._update(t,r,r+this._delta32)}return this},s.prototype.digest=function(t){return this.update(this._pad()),r(null===this.pending),this._digest(t)},s.prototype._pad=function(){var t=this.pendingTotal,i=this._delta8,h=i-(t+this.padLength)%i,n=new Array(h+this.padLength);n[0]=128;for(var r=1;r<h;r++)n[r]=0;if(t<<=3,"big"===this.endian){for(var s=8;s<this.padLength;s++)n[r++]=0;n[r++]=0,n[r++]=0,n[r++]=0,n[r++]=0,n[r++]=t>>>24&255,n[r++]=t>>>16&255,n[r++]=t>>>8&255,n[r++]=255&t}else for(n[r++]=255&t,n[r++]=t>>>8&255,n[r++]=t>>>16&255,n[r++]=t>>>24&255,n[r++]=0,n[r++]=0,n[r++]=0,n[r++]=0,s=8;s<this.padLength;s++)n[r++]=0;return n}},6225:(t,i,h)=>{"use strict";var n=h(7426).rotr32;function r(t,i,h){return t&i^~t&h}function s(t,i,h){return t&i^t&h^i&h}function e(t,i,h){return t^i^h}i.ft_1=function(t,i,h,n){return 0===t?r(i,h,n):1===t||3===t?e(i,h,n):2===t?s(i,h,n):void 0},i.ch32=r,i.maj32=s,i.p32=e,i.s0_256=function(t){return n(t,2)^n(t,13)^n(t,22)},i.s1_256=function(t){return n(t,6)^n(t,11)^n(t,25)},i.g0_256=function(t){return n(t,7)^n(t,18)^t>>>3},i.g1_256=function(t){return n(t,17)^n(t,19)^t>>>10}},6229:(t,i,h)=>{"use strict";i.sha1=h(3917),i.sha224=h(5333),i.sha256=h(2287),i.sha384=h(1911),i.sha512=h(7766)},6784:(t,i,h)=>{"use strict";var n=h(7426),r=h(6166),s=n.rotl32,e=n.sum32,o=n.sum32_3,u=n.sum32_4,a=r.BlockHash;function c(){if(!(this instanceof c))return new c;a.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function l(t,i,h,n){return t<=15?i^h^n:t<=31?i&h|~i&n:t<=47?(i|~h)^n:t<=63?i&n|h&~n:i^(h|~n)}function f(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function g(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}n.inherits(c,a),i.ripemd160=c,c.blockSize=512,c.outSize=160,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(t,i){for(var h=this.h[0],n=this.h[1],r=this.h[2],a=this.h[3],c=this.h[4],m=h,S=n,k=r,b=a,y=c,z=0;z<80;z++){var x=e(s(u(h,l(z,n,r,a),t[p[z]+i],f(z)),_[z]),c);h=c,c=a,a=s(r,10),r=n,n=x,x=e(s(u(m,l(79-z,S,k,b),t[d[z]+i],g(z)),v[z]),y),m=y,y=b,b=s(k,10),k=S,S=x}x=o(this.h[1],r,b),this.h[1]=o(this.h[2],a,y),this.h[2]=o(this.h[3],c,m),this.h[3]=o(this.h[4],h,S),this.h[4]=o(this.h[0],n,k),this.h[0]=x},c.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],d=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],_=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],v=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},7426:(t,i,h)=>{"use strict";var n=h(3349),r=h(6698);function s(t,i){return 55296==(64512&t.charCodeAt(i))&&(!(i<0||i+1>=t.length)&&56320==(64512&t.charCodeAt(i+1)))}function e(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function o(t){return 1===t.length?"0"+t:t}function u(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}i.inherits=r,i.toArray=function(t,i){if(Array.isArray(t))return t.slice();if(!t)return[];var h=[];if("string"==typeof t)if(i){if("hex"===i)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),r=0;r<t.length;r+=2)h.push(parseInt(t[r]+t[r+1],16))}else for(var n=0,r=0;r<t.length;r++){var e=t.charCodeAt(r);e<128?h[n++]=e:e<2048?(h[n++]=e>>6|192,h[n++]=63&e|128):s(t,r)?(e=65536+((1023&e)<<10)+(1023&t.charCodeAt(++r)),h[n++]=e>>18|240,h[n++]=e>>12&63|128,h[n++]=e>>6&63|128,h[n++]=63&e|128):(h[n++]=e>>12|224,h[n++]=e>>6&63|128,h[n++]=63&e|128)}else for(r=0;r<t.length;r++)h[r]=0|t[r];return h},i.toHex=function(t){for(var i="",h=0;h<t.length;h++)i+=o(t[h].toString(16));return i},i.htonl=e,i.toHex32=function(t,i){for(var h="",n=0;n<t.length;n++){var r=t[n];"little"===i&&(r=e(r)),h+=u(r.toString(16))}return h},i.zero2=o,i.zero8=u,i.join32=function(t,i,h,r){var s=h-i;n(s%4==0);for(var e=new Array(s/4),o=0,u=i;o<e.length;o++,u+=4){var a;a="big"===r?t[u]<<24|t[u+1]<<16|t[u+2]<<8|t[u+3]:t[u+3]<<24|t[u+2]<<16|t[u+1]<<8|t[u],e[o]=a>>>0}return e},i.split32=function(t,i){for(var h=new Array(4*t.length),n=0,r=0;n<t.length;n++,r+=4){var s=t[n];"big"===i?(h[r]=s>>>24,h[r+1]=s>>>16&255,h[r+2]=s>>>8&255,h[r+3]=255&s):(h[r+3]=s>>>24,h[r+2]=s>>>16&255,h[r+1]=s>>>8&255,h[r]=255&s)}return h},i.rotr32=function(t,i){return t>>>i|t<<32-i},i.rotl32=function(t,i){return t<<i|t>>>32-i},i.sum32=function(t,i){return t+i>>>0},i.sum32_3=function(t,i,h){return t+i+h>>>0},i.sum32_4=function(t,i,h,n){return t+i+h+n>>>0},i.sum32_5=function(t,i,h,n,r){return t+i+h+n+r>>>0},i.sum64=function(t,i,h,n){var r=t[i],s=n+t[i+1]>>>0,e=(s<n?1:0)+h+r;t[i]=e>>>0,t[i+1]=s},i.sum64_hi=function(t,i,h,n){return(i+n>>>0<i?1:0)+t+h>>>0},i.sum64_lo=function(t,i,h,n){return i+n>>>0},i.sum64_4_hi=function(t,i,h,n,r,s,e,o){var u=0,a=i;return u+=(a=a+n>>>0)<i?1:0,u+=(a=a+s>>>0)<s?1:0,t+h+r+e+(u+=(a=a+o>>>0)<o?1:0)>>>0},i.sum64_4_lo=function(t,i,h,n,r,s,e,o){return i+n+s+o>>>0},i.sum64_5_hi=function(t,i,h,n,r,s,e,o,u,a){var c=0,l=i;return c+=(l=l+n>>>0)<i?1:0,c+=(l=l+s>>>0)<s?1:0,c+=(l=l+o>>>0)<o?1:0,t+h+r+e+u+(c+=(l=l+a>>>0)<a?1:0)>>>0},i.sum64_5_lo=function(t,i,h,n,r,s,e,o,u,a){return i+n+s+o+a>>>0},i.rotr64_hi=function(t,i,h){return(i<<32-h|t>>>h)>>>0},i.rotr64_lo=function(t,i,h){return(t<<32-h|i>>>h)>>>0},i.shr64_hi=function(t,i,h){return t>>>h},i.shr64_lo=function(t,i,h){return(t<<32-h|i>>>h)>>>0}},7766:(t,i,h)=>{"use strict";var n=h(7426),r=h(6166),s=h(3349),e=n.rotr64_hi,o=n.rotr64_lo,u=n.shr64_hi,a=n.shr64_lo,c=n.sum64,l=n.sum64_hi,f=n.sum64_lo,g=n.sum64_4_hi,p=n.sum64_4_lo,d=n.sum64_5_hi,_=n.sum64_5_lo,v=r.BlockHash,m=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function S(){if(!(this instanceof S))return new S;v.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=m,this.W=new Array(160)}function k(t,i,h,n,r){var s=t&h^~t&r;return s<0&&(s+=4294967296),s}function b(t,i,h,n,r,s){var e=i&n^~i&s;return e<0&&(e+=4294967296),e}function y(t,i,h,n,r){var s=t&h^t&r^h&r;return s<0&&(s+=4294967296),s}function z(t,i,h,n,r,s){var e=i&n^i&s^n&s;return e<0&&(e+=4294967296),e}function x(t,i){var h=e(t,i,28)^e(i,t,2)^e(i,t,7);return h<0&&(h+=4294967296),h}function w(t,i){var h=o(t,i,28)^o(i,t,2)^o(i,t,7);return h<0&&(h+=4294967296),h}function H(t,i){var h=e(t,i,14)^e(t,i,18)^e(i,t,9);return h<0&&(h+=4294967296),h}function A(t,i){var h=o(t,i,14)^o(t,i,18)^o(i,t,9);return h<0&&(h+=4294967296),h}function L(t,i){var h=e(t,i,1)^e(t,i,8)^u(t,i,7);return h<0&&(h+=4294967296),h}function B(t,i){var h=o(t,i,1)^o(t,i,8)^a(t,i,7);return h<0&&(h+=4294967296),h}function W(t,i){var h=e(t,i,19)^e(i,t,29)^u(t,i,6);return h<0&&(h+=4294967296),h}function C(t,i){var h=o(t,i,19)^o(i,t,29)^a(t,i,6);return h<0&&(h+=4294967296),h}n.inherits(S,v),t.exports=S,S.blockSize=1024,S.outSize=512,S.hmacStrength=192,S.padLength=128,S.prototype._prepareBlock=function(t,i){for(var h=this.W,n=0;n<32;n++)h[n]=t[i+n];for(;n<h.length;n+=2){var r=W(h[n-4],h[n-3]),s=C(h[n-4],h[n-3]),e=h[n-14],o=h[n-13],u=L(h[n-30],h[n-29]),a=B(h[n-30],h[n-29]),c=h[n-32],l=h[n-31];h[n]=g(r,s,e,o,u,a,c,l),h[n+1]=p(r,s,e,o,u,a,c,l)}},S.prototype._update=function(t,i){this._prepareBlock(t,i);var h=this.W,n=this.h[0],r=this.h[1],e=this.h[2],o=this.h[3],u=this.h[4],a=this.h[5],g=this.h[6],p=this.h[7],v=this.h[8],m=this.h[9],S=this.h[10],L=this.h[11],B=this.h[12],W=this.h[13],C=this.h[14],j=this.h[15];s(this.k.length===h.length);for(var G=0;G<h.length;G+=2){var I=C,T=j,q=H(v,m),D=A(v,m),E=k(v,m,S,L,B),F=b(v,m,S,L,B,W),J=this.k[G],K=this.k[G+1],M=h[G],N=h[G+1],O=d(I,T,q,D,E,F,J,K,M,N),P=_(I,T,q,D,E,F,J,K,M,N);I=x(n,r),T=w(n,r),q=y(n,r,e,o,u),D=z(n,r,e,o,u,a);var Q=l(I,T,q,D),R=f(I,T,q,D);C=B,j=W,B=S,W=L,S=v,L=m,v=l(g,p,O,P),m=f(p,p,O,P),g=u,p=a,u=e,a=o,e=n,o=r,n=l(O,P,Q,R),r=f(O,P,Q,R)}c(this.h,0,n,r),c(this.h,2,e,o),c(this.h,4,u,a),c(this.h,6,g,p),c(this.h,8,v,m),c(this.h,10,S,L),c(this.h,12,B,W),c(this.h,14,C,j)},S.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},7952:(t,i,h)=>{var n=i;n.utils=h(7426),n.common=h(6166),n.sha=h(6229),n.ripemd=h(6784),n.hmac=h(8948),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},8948:(t,i,h)=>{"use strict";var n=h(7426),r=h(3349);function s(t,i,h){if(!(this instanceof s))return new s(t,i,h);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(i,h))}t.exports=s,s.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),r(t.length<=this.blockSize);for(var i=t.length;i<this.blockSize;i++)t.push(0);for(i=0;i<t.length;i++)t[i]^=54;for(this.inner=(new this.Hash).update(t),i=0;i<t.length;i++)t[i]^=106;this.outer=(new this.Hash).update(t)},s.prototype.update=function(t,i){return this.inner.update(t,i),this},s.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}}}]);
//# sourceMappingURL=vendor.hash.js.9a08305c13c240a0f2eb.js.map