internalhub.dpdhl-brands.dev
Open in
urlscan Pro
2620:1ec:bdf::45
Public Scan
URL:
https://internalhub.dpdhl-brands.dev/assets/AuthLogin.js
Submission: On November 02 via api from US — Scanned from DE
Submission: On November 02 via api from US — Scanned from DE
Form analysis
0 forms found in the DOMText Content
"use strict";(self.webpackChunkdpdhl_internalhub_frontend=self.webpackChunkdpdhl_internalhub_frontend||[]).push([["AuthLogin"],{55157:function(e,t,n){n.d(t,{Z:function(){return u}});var a=n(92950),r=n.n(a),o=n(45697),i=n.n(o),l=n(64593),s=n(59786),c=n(64176);const d=({pageParams:e,title:t})=>{const n=s.Brands.DHL;return r().createElement(l.q,null,r().createElement("html",{lang:e.lang}),r().createElement("title",{itemProp:"name",lang:e.lang},t," ",(0,c.xj)()),r().createElement("base",{href:"/"}),r().createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1"}),r().createElement("meta",{name:"robots",content:"index,follow"}),r().createElement("link",{rel:"apple-touch-icon",sizes:"180x180",href:`/assets/${n}/favicon/apple-touch-icon.png?brand=${n}`}),r().createElement("link",{rel:"icon",sizes:"32x32",href:`/assets/${n}/favicon/favicon-32x32.png?brand=${n}`}),r().createElement("link",{rel:"icon",sizes:"16x16",href:`/assets/${n}/favicon/favicon-16x16.png?brand=${n}`}),r().createElement("link",{rel:"manifest",href:`/assets/${n}/favicon/site.webmanifest?brand=${n}`}),r().createElement("link",{rel:"preconnect",href:"https://fonts.dpdhl-brands.dev"}),r().createElement("link",{href:"https://fonts.dpdhl-brands.dev/main.bundle.css",rel:"stylesheet"}))};d.defaultProps={meta:[],description:""},d.propTypes={description:i().string,lang:i().string,meta:i().arrayOf(i().object),title:i().string.isRequired};const u=d},18707:function(e,t,n){n.d(t,{Z:function(){return p}});var a=n(92950),r=n.n(a),o=n(75371),i=n(29163),l=n(21322),s=n.n(l);const c=[o.THEME.getErrorColor("400"),o.THEME.getWarningColor("200"),o.THEME.getWarningColor("400"),o.THEME.getSuccessColor("300"),o.THEME.getSuccessColor("400")],d=i.default.div.withConfig({displayName:"PasswordInputField__Container",componentId:"sc-11n0u56-0"})(["position:relative;width:100%;height:auto;",""],(({hasMaxWidth:e})=>e&&(0,i.css)(["",";",";"],o.THEME.getMediaQuery("medium")` max-width: 85%; `,o.THEME.getMediaQuery("large")` max-width: 75%; `))),u=(0,i.default)(o.InputField).withConfig({displayName:"PasswordInputField__InputField",componentId:"sc-11n0u56-1"})(["width:100%;input{padding-right:44px;}"]),m=i.default.div.withConfig({displayName:"PasswordInputField__IconContainer",componentId:"sc-11n0u56-2"})(["position:absolute;top:28px;right:6px;width:32px;height:32px;padding:4px;cursor:pointer;transition:transform 0.25s ease-in-out;transform:",";"],(({isInvalid:e})=>e?(0,i.css)(["translateX(-32px) translateY(-50%)"]):(0,i.css)([" translateY(-50%)"]))),g=i.default.div.withConfig({displayName:"PasswordInputField__Bar",componentId:"sc-11n0u56-3"})(["display:flex;flex-flow:row nowrap;align-items:center;justify-content:flex-start;width:100%;height:auto;margin-top:8px;"]),f=i.default.div.withConfig({displayName:"PasswordInputField__BarItem",componentId:"sc-11n0u56-4"})(["width:19%;height:4px;margin-right:0.5%;margin-left:0.5%;background-color:",";border-bottom:1px solid rgba(0,0,0,0.3);:first-child{margin-left:0;}:last-child{margin-right:0;}"],(({score:e,index:t})=>e>-1&&t<=e?c[e]:o.THEME.getGrayColor("400"))),p=({id:e,variant:t,value:n,onChange:i,name:l,onBlur:c,disabled:p=!1,validation:h,ariaLabel:E,ariaDescribedBy:w,ariaHaspopup:y,ariaExpanded:v,required:b=!1,showSecurityBar:x=!1,className:I,hasMaxWidth:C=!1})=>{const[_,L]=(0,a.useState)(!1),[N,T]=(0,a.useState)(-1),M=_?r().createElement(o.IconBhVisibilityOff,{fill:"currentColor",width:24,height:24}):r().createElement(o.IconBhVisibilityOn,{fill:"currentColor",width:24,height:24});return(0,a.useEffect)((()=>{const e=s()(n);T(""!==n?e.score:-1)}),[n]),r().createElement(d,{hasMaxWidth:C,className:I},r().createElement(u,{type:_?"text":"password",isBlock:!0,id:e,variant:t,value:n,onBlur:c,onChange:i,name:l,disabled:p,validation:h,ariaLabel:E,ariaDescribedBy:w,ariaHaspopup:y,ariaExpanded:v,required:b}),r().createElement(m,{onClick:()=>{L(!_)},isInvalid:!!h},M),x&&r().createElement(g,null,[0,1,2,3,4].map((e=>r().createElement(f,{key:e,index:e,score:N})))))}},28307:function(e,t,n){n.d(t,{o:function(){return r}});var a=n(97567);class r{async validate(){console.log("validate");try{const e=this,t=await(0,a.validate)(e);if(console.log(t),0===t.length)return!0;throw new Error(JSON.stringify(t.reduceRight(((e,t)=>t.constraints?{...e,[t.property]:Object.values(null==t?void 0:t.constraints)}:{...e}),{})))}catch(e){throw console.log(e),new Error(e.message)}}}},19675:function(e,t,n){n.d(t,{D:function(){return o}});var a=n(92950),r=n(15061);const o=e=>{const{i18n:t}=(0,r.$G)();(0,a.useEffect)((()=>{e!==t.language&&t.changeLanguage(e)}),[e])}},35692:function(e,t,n){n.r(t),n.d(t,{default:function(){return de}});var a=n(92950),r=n.n(a),o=n(75371),i=n(93759),l=n(98345),s=n(65255),c=n(47194),d=n(15061),u=n(39077),m=n(29163),g=n(72671),f=n(34469),p=n(8106),h=n.n(p),E=n(96245),w=n(88767),y=n(6632),v=n(21614),b=n(97567),x=n(28307),I=function(e,t,n,a){var r,o=arguments.length,i=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,n):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,a);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(i=(o<3?r(i):o>3?r(t,n,i):r(t,n))||i);return o>3&&i&&Object.defineProperty(t,n,i),i},C=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};class _ extends x.o{constructor(e,t){super(),this.email=e,this.password=t}}I([(0,b.IsEmail)(void 0,{message:"email"}),(0,b.IsNotEmpty)({message:"required"}),C("design:type",String)],_.prototype,"email",void 0),I([(0,b.IsNotEmpty)({message:"required"}),C("design:type",String)],_.prototype,"password",void 0);var L,N=n(46188),T=n(36354),M=n(23198),A=n(84325),H=n(18707),S=n(64176);!function(e){e.INVALID_CREDENTIALS="signin-invalid-credentials",e.INVALID_LOGIN="invalid-login"}(L||(L={}));const P=m.default.div.withConfig({displayName:"LoginForm__Container",componentId:"sc-669qa9-0"})(["display:flex;flex-flow:column nowrap;align-items:flex-start;justify-content:flex-start;width:100%;height:auto;"]),R=(0,m.default)(u.UP).withConfig({displayName:"LoginForm__InputField",componentId:"sc-669qa9-1"})(["margin-top:0;"]),D=(0,m.default)(H.Z).withConfig({displayName:"LoginForm__PasswortInputField",componentId:"sc-669qa9-2"})(["margin-top:1.25rem;&:not(:first-child){margin-top:1.25rem;}"]),k=m.default.div.withConfig({displayName:"LoginForm__ButtonContainer",componentId:"sc-669qa9-3"})(["display:flex;flex-flow:column nowrap;justify-content:flex-start;margin-top:32px;user-select:none;",";"],o.THEME.getMediaQuery("medium")` align-items: center; flex-flow: row nowrap; `),F=(0,m.default)(h()).withConfig({displayName:"LoginForm__Button",componentId:"sc-669qa9-4"})(["width:100%;max-width:320px;white-space:nowrap;",";&:focus,&:active{box-shadow:none;}"],o.THEME.getMediaQuery("medium")` width: auto; `),O=m.default.div.withConfig({displayName:"LoginForm__ForgotPasswordContainer",componentId:"sc-669qa9-5"})(["width:100%;margin-top:1.5rem;",";"],o.THEME.getMediaQuery("medium")` width: auto; margin-top: 0; margin-left: 2rem; `),U=(0,m.default)(c.Link).withConfig({displayName:"LoginForm__ForgotPasswordLink",componentId:"sc-669qa9-6"})(["font-size:1rem;color:",";&:hover{color:",";}"],o.THEME.getPrimaryColor("400"),o.THEME.getPrimaryColor("300")),$=({submitLabel:e,hasPasswortForgot:t=!1})=>{var n;const[m,g]=(0,a.useState)(""),[p,h]=(0,a.useState)(""),[b,x]=(0,a.useState)(null),[,I]=(0,l.fP)([i.LJ.REFRESHTOKEN]),{t:C,i18n:H}=(0,d.$G)(),$=(0,y.useDispatch)(),{isLoading:q,currentUser:B}=(0,y.useSelector)(A.n),j=(0,c.useHistory)(),{search:V}=(0,c.useLocation)(),Q=(0,s.y)(V),G=()=>{const e=Q.get("redirect");Q.has("redirect")&&e?j.push(e):j.push(`/${H.language}/`)},z=e=>{$((0,T.jR)({id:(0,v.v4)(),isError:!0,message:C(`errors.${e}`),autoHide:!0}))},Z=e=>(0,S.Qn)(b,e,C),W=(0,w.useMutation)((({email:e,password:t})=>(0,N.x4)(e,t)),{onSuccess:async(e,t,n)=>{e&&(e=>{const{accessToken:t,refreshToken:n}=e;$((0,M.M8)(t)),$((0,M.zI)(n));const{user:a,confirmed:r}=(0,E.Z)(t);$((0,M.lx)(a)),$((0,M.qA)(r));const{iat:o,exp:l}=(0,E.Z)(n);I(i.LJ.REFRESHTOKEN,n,{path:"/",maxAge:+l-+o,httpOnly:!1,secure:!0,sameSite:"strict"}),G(),$((0,M.ow)(!1)),$((0,M.$k)(!0))})(e)},onError:async(e,t,n)=>{e.message===L.INVALID_LOGIN?z(L.INVALID_LOGIN):z(L.INVALID_CREDENTIALS),$((0,M.ow)(!1)),$((0,M.$k)(!0))}}),J=(0,a.useCallback)((e=>{e.preventDefault();const t=new _(m,p);t.validate().then((e=>{e&&W.mutateAsync(t)})).catch((e=>{console.log({error:e});const t=JSON.parse(e.message);x(t)}))}),[m,p]),Y=null===(n=(0,f.qC)(i.n8.AUTH_PASSWORD_FORGOT))||void 0===n?void 0:n.replace(":lang",H.language),K=r().createElement(u.zL,null,r().createElement(o.Loader,{size:"small"})),X=r().createElement(u.l0,{onSubmit:J,method:"POST",autoComplete:"off",noValidate:!0},r().createElement(R,{variant:{label:`${C("email")} *`,type:o.INPUTFIELD_LABEL_TYPES.ANIMATED},type:"email",id:"email",disabled:!1,required:!0,value:m,name:"email",onChange:e=>{g(e.target.value)},validation:Z("email")}),r().createElement(D,{variant:{label:`${C("password")} *`,type:o.INPUTFIELD_LABEL_TYPES.ANIMATED},id:"password",disabled:!1,required:!0,value:p,name:"password",onChange:e=>{h(e.target.value)},validation:Z("password")}),r().createElement(k,null,r().createElement(F,{isDisabled:!1,type:"submit"},e),t&&r().createElement(O,null,r().createElement(U,{to:Y},C("forgotPassword"),"?"))));return(0,a.useEffect)((()=>{B&&G()}),[B]),r().createElement(P,null,q?K:X)};var q=n(72698),B=n.n(q),j=n(36598);const V=m.default.section.withConfig({displayName:"Login__Section",componentId:"sc-1gbfv9d-0"})(["width:100%;height:auto;margin-top:2rem;margin-bottom:2rem;",";",";"],o.THEME.getMediaQuery("medium")` margin-top: 2.5rem; margin-bottom: 2.5rem; `,o.THEME.getMediaQuery("large")` margin-top: 3rem; margin-bottom: 3rem; `),Q=(0,m.default)(B()).withConfig({displayName:"Login__Headline",componentId:"sc-1gbfv9d-1"})(["width:100%;height:auto;text-transform:",";"],(e=>1===e.designLevel?"uppercase":"normal")),G=(0,m.default)(o.Text).withConfig({displayName:"Login__Copy",componentId:"sc-1gbfv9d-2"})(["margin-top:1.5rem;margin-bottom:3rem;"]),z=(0,m.default)(o.GridCell).withConfig({displayName:"Login__Column",componentId:"sc-1gbfv9d-3"})(["display:flex;flex-flow:column nowrap;align-items:flex-start;justify-content:flex-start;"]),Z=(0,m.default)(z).withConfig({displayName:"Login__Header",componentId:"sc-1gbfv9d-4"})([""]),W=m.default.div.withConfig({displayName:"Login__LoginFormWrapper",componentId:"sc-1gbfv9d-5"})(["max-width:450px;"]),J=(0,m.default)(z).withConfig({displayName:"Login__LoginColumn",componentId:"sc-1gbfv9d-6"})(["flex-direction:column;justify-content:space-between;",";&:not(:last-child){margin-bottom:3rem;}",";"],o.THEME.getMediaQuery("large")` flex-direction: row; `,o.THEME.getMediaQuery("large")` flex-direction: column; :last-child { &::before { position: absolute; top: 0; left: -5rem; bottom: 0; width: 1px; height: 100%; background-color: ${o.THEME.getGrayColor("400")}; content: ''; } } `),Y=m.default.div.withConfig({displayName:"Login__IllustrationContainer",componentId:"sc-1gbfv9d-7"})(["flex-grow:0;flex-shrink:0;max-width:180px;height:auto;margin-right:auto;margin-bottom:2rem;margin-left:0;"," ",""],o.THEME.getMediaQuery("medium")` margin-left: auto; flex-basis: 25%; max-width: 128px; margin-left: 0; `,o.THEME.getMediaQuery("large")` max-width: 202px; `),K=m.default.img.withConfig({displayName:"Login__Illustration",componentId:"sc-1gbfv9d-8"})(["width:100%;height:auto;"]),X=(0,m.default)(o.Text).withConfig({displayName:"Login__LoginDescription",componentId:"sc-1gbfv9d-9"})(["width:100%;max-width:80ch;margin-top:1rem;margin-bottom:1.5rem;"]),ee=m.default.div.withConfig({displayName:"Login__ButtonContainer",componentId:"sc-1gbfv9d-10"})(["display:flex;flex-flow:column nowrap;align-items:center;justify-content:flex-start;width:100%;max-width:320px;height:auto;",";"],o.THEME.getMediaQuery("medium")` flex-flow: row nowrap; `),te=(0,m.default)(h()).withConfig({displayName:"Login__Button",componentId:"sc-1gbfv9d-11"})(["width:100%;white-space:nowrap;",";&:focus,&:active{box-shadow:none;}"],o.THEME.getMediaQuery("medium")` width: auto; `),ne=(0,m.default)(o.Text).withConfig({displayName:"Login__SignUpText",componentId:"sc-1gbfv9d-12"})(["display:block;margin-top:1.5rem;"]),ae=m.default.div.withConfig({displayName:"Login__LoginContentContainer",componentId:"sc-1gbfv9d-13"})(["flex-basis:75%;"]),re=(0,m.default)(c.Link).withConfig({displayName:"Login__SignUpLink",componentId:"sc-1gbfv9d-14"})(["font-size:1rem;color:",";&:hover{color:",";}"],o.THEME.getPrimaryColor("400"),o.THEME.getPrimaryColor("300")),oe=({})=>{const[e,t]=(0,a.useState)(null),[,n]=(0,l.fP)([i.LJ.OPENID_REDIRECT]),{t:o}=(0,d.$G)(),m=(0,c.useLocation)(),p=(0,s.y)(m.search),h=(0,f.qC)(i.n8.AUTH_REGISTER).replace(":lang",j.Z.language);return(0,a.useEffect)((()=>{t(p.get("redirect"))}),[]),(0,a.useEffect)((()=>{t(p.get("redirect"))}),[p]),r().createElement(V,null,r().createElement(u.T5,{columns:[6,12,12]},r().createElement(Z,{spanColumns:[6,10,9],startColumn:[1,1,1],isOverflowHidden:!1},r().createElement(Q,{textAlign:"left",color:"red",tag:"h2",designLevel:1},o("loginHeadline")),r().createElement(G,{size:"large",weight:400,isParagraph:!0},o("loginCopy"))),r().createElement(J,{spanColumns:[6,12,6,5],startColumn:[1,1,1,1],isOverflowHidden:!1},r().createElement(Y,null,r().createElement(K,{src:"/assets/illustrations/login-employee-dhl.svg",alt:"Illustration für die Anmeldung"})),r().createElement(ae,null,r().createElement(Q,{textAlign:"left",color:"black",tag:"h3",designLevel:3},o("loginEmployeesHeadline")),r().createElement(X,{size:"regular",weight:400,isParagraph:!0},o("loginEmployeesCopy")),r().createElement(ee,null,r().createElement(te,{type:"button",onClick:()=>{const t="https://internalhub.dpdhl-brands.dev".replace(/^https?:\/\/www\./,"");n(i.LJ.OPENID_REDIRECT,`${e}`,{path:"/",maxAge:300,httpOnly:!1,secure:!0,sameSite:!1,domain:"MISSING_ENV_VAR".DEV_MODE?void 0:`.${t}`}),g.Z&&g.Z.signinRedirect().catch((e=>{console.log(e)}))}},o("loginEmployee"))))),r().createElement(J,{spanColumns:[6,12,6,5],startColumn:[1,1,7,8],isOverflowHidden:!1},r().createElement(Y,null,r().createElement(K,{src:"/assets/illustrations/login-external-dhl.svg",alt:"Illustration für die Anmeldung"})),r().createElement(ae,null,r().createElement(Q,{textAlign:"left",color:"black",tag:"h3",designLevel:3},o("externalPartners")),r().createElement(X,{size:"regular",weight:400,isParagraph:!0},o("loginExternalCopy")),r().createElement(W,null,r().createElement($,{hasPasswortForgot:!0,submitLabel:o("loginExternal")})),r().createElement(ne,null,o("loginExternalSignup")," ",r().createElement(re,{to:h},o("loginExternalSignupLink")))))))};var ie=n(55157),le=n(40216),se=n(59786),ce=n(19675);const de=({})=>{const{lang:e}=(0,c.useParams)(),{t}=(0,d.$G)();return(0,ce.D)(e),(0,a.useEffect)((()=>{S.jU&&(0,le.Z0)(t("seo.signin.title",{lng:"en"}),null,null,se.Brands.DHL,se.Languages.EN)}),[]),r().createElement(r().Fragment,null,r().createElement(oe,null),r().createElement(ie.Z,{title:t("seo.signin.title"),pageParams:{lang:e}}))}},21614:function(e,t,n){var a;n.d(t,{v4:function(){return b}});var r=new Uint8Array(16);function o(){if(!a&&!(a="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return a(r)}const i=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const l=function(e){return"string"==typeof e&&i.test(e)};for(var s=[],c=0;c<256;++c)s.push((c+256).toString(16).substr(1));const d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!l(n))throw TypeError("Stringified UUID is invalid");return n};const u=function(e){if(!l(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};function m(e,t,n){function a(e,a,r,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof a&&(a=u(a)),16!==a.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var i=new Uint8Array(16+e.length);if(i.set(a),i.set(e,a.length),(i=n(i))[6]=15&i[6]|t,i[8]=63&i[8]|128,r){o=o||0;for(var l=0;l<16;++l)r[o+l]=i[l];return r}return d(i)}try{a.name=e}catch(e){}return a.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",a.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",a}function g(e){return 14+(e+64>>>9<<4)+1}function f(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function p(e,t,n,a,r,o){return f((i=f(f(t,e),f(a,o)))<<(l=r)|i>>>32-l,n);var i,l}function h(e,t,n,a,r,o,i){return p(t&n|~t&a,e,t,r,o,i)}function E(e,t,n,a,r,o,i){return p(t&a|n&~a,e,t,r,o,i)}function w(e,t,n,a,r,o,i){return p(t^n^a,e,t,r,o,i)}function y(e,t,n,a,r,o,i){return p(n^(t|~a),e,t,r,o,i)}const v=function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,a="0123456789abcdef",r=0;r<n;r+=8){var o=e[r>>5]>>>r%32&255,i=parseInt(a.charAt(o>>>4&15)+a.charAt(15&o),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[g(t)-1]=t;for(var n=1732584193,a=-271733879,r=-1732584194,o=271733878,i=0;i<e.length;i+=16){var l=n,s=a,c=r,d=o;n=h(n,a,r,o,e[i],7,-680876936),o=h(o,n,a,r,e[i+1],12,-389564586),r=h(r,o,n,a,e[i+2],17,606105819),a=h(a,r,o,n,e[i+3],22,-1044525330),n=h(n,a,r,o,e[i+4],7,-176418897),o=h(o,n,a,r,e[i+5],12,1200080426),r=h(r,o,n,a,e[i+6],17,-1473231341),a=h(a,r,o,n,e[i+7],22,-45705983),n=h(n,a,r,o,e[i+8],7,1770035416),o=h(o,n,a,r,e[i+9],12,-1958414417),r=h(r,o,n,a,e[i+10],17,-42063),a=h(a,r,o,n,e[i+11],22,-1990404162),n=h(n,a,r,o,e[i+12],7,1804603682),o=h(o,n,a,r,e[i+13],12,-40341101),r=h(r,o,n,a,e[i+14],17,-1502002290),n=E(n,a=h(a,r,o,n,e[i+15],22,1236535329),r,o,e[i+1],5,-165796510),o=E(o,n,a,r,e[i+6],9,-1069501632),r=E(r,o,n,a,e[i+11],14,643717713),a=E(a,r,o,n,e[i],20,-373897302),n=E(n,a,r,o,e[i+5],5,-701558691),o=E(o,n,a,r,e[i+10],9,38016083),r=E(r,o,n,a,e[i+15],14,-660478335),a=E(a,r,o,n,e[i+4],20,-405537848),n=E(n,a,r,o,e[i+9],5,568446438),o=E(o,n,a,r,e[i+14],9,-1019803690),r=E(r,o,n,a,e[i+3],14,-187363961),a=E(a,r,o,n,e[i+8],20,1163531501),n=E(n,a,r,o,e[i+13],5,-1444681467),o=E(o,n,a,r,e[i+2],9,-51403784),r=E(r,o,n,a,e[i+7],14,1735328473),n=w(n,a=E(a,r,o,n,e[i+12],20,-1926607734),r,o,e[i+5],4,-378558),o=w(o,n,a,r,e[i+8],11,-2022574463),r=w(r,o,n,a,e[i+11],16,1839030562),a=w(a,r,o,n,e[i+14],23,-35309556),n=w(n,a,r,o,e[i+1],4,-1530992060),o=w(o,n,a,r,e[i+4],11,1272893353),r=w(r,o,n,a,e[i+7],16,-155497632),a=w(a,r,o,n,e[i+10],23,-1094730640),n=w(n,a,r,o,e[i+13],4,681279174),o=w(o,n,a,r,e[i],11,-358537222),r=w(r,o,n,a,e[i+3],16,-722521979),a=w(a,r,o,n,e[i+6],23,76029189),n=w(n,a,r,o,e[i+9],4,-640364487),o=w(o,n,a,r,e[i+12],11,-421815835),r=w(r,o,n,a,e[i+15],16,530742520),n=y(n,a=w(a,r,o,n,e[i+2],23,-995338651),r,o,e[i],6,-198630844),o=y(o,n,a,r,e[i+7],10,1126891415),r=y(r,o,n,a,e[i+14],15,-1416354905),a=y(a,r,o,n,e[i+5],21,-57434055),n=y(n,a,r,o,e[i+12],6,1700485571),o=y(o,n,a,r,e[i+3],10,-1894986606),r=y(r,o,n,a,e[i+10],15,-1051523),a=y(a,r,o,n,e[i+1],21,-2054922799),n=y(n,a,r,o,e[i+8],6,1873313359),o=y(o,n,a,r,e[i+15],10,-30611744),r=y(r,o,n,a,e[i+6],15,-1560198380),a=y(a,r,o,n,e[i+13],21,1309151649),n=y(n,a,r,o,e[i+4],6,-145523070),o=y(o,n,a,r,e[i+11],10,-1120210379),r=y(r,o,n,a,e[i+2],15,718787259),a=y(a,r,o,n,e[i+9],21,-343485551),n=f(n,l),a=f(a,s),r=f(r,c),o=f(o,d)}return[n,a,r,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(g(t)),a=0;a<t;a+=8)n[a>>5]|=(255&e[a/8])<<a%32;return n}(e),8*e.length))};m("v3",48,v);const b=function(e,t,n){var a=(e=e||{}).random||(e.rng||o)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){n=n||0;for(var r=0;r<16;++r)t[n+r]=a[r];return t}return d(a)};function x(e,t,n,a){switch(e){case 0:return t&n^~t&a;case 1:case 3:return t^n^a;case 2:return t&n^t&a^n&a}}function I(e,t){return e<<t|e>>>32-t}const C=function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var a=unescape(encodeURIComponent(e));e=[];for(var r=0;r<a.length;++r)e.push(a.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,i=Math.ceil(o/16),l=new Array(i),s=0;s<i;++s){for(var c=new Uint32Array(16),d=0;d<16;++d)c[d]=e[64*s+4*d]<<24|e[64*s+4*d+1]<<16|e[64*s+4*d+2]<<8|e[64*s+4*d+3];l[s]=c}l[i-1][14]=8*(e.length-1)/Math.pow(2,32),l[i-1][14]=Math.floor(l[i-1][14]),l[i-1][15]=8*(e.length-1)&4294967295;for(var u=0;u<i;++u){for(var m=new Uint32Array(80),g=0;g<16;++g)m[g]=l[u][g];for(var f=16;f<80;++f)m[f]=I(m[f-3]^m[f-8]^m[f-14]^m[f-16],1);for(var p=n[0],h=n[1],E=n[2],w=n[3],y=n[4],v=0;v<80;++v){var b=Math.floor(v/20),C=I(p,5)+x(b,h,E,w)+y+t[b]+m[v]>>>0;y=w,w=E,E=I(h,30)>>>0,h=p,p=C}n[0]=n[0]+p>>>0,n[1]=n[1]+h>>>0,n[2]=n[2]+E>>>0,n[3]=n[3]+w>>>0,n[4]=n[4]+y>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]};m("v5",80,C)}}]);